Skip to content

Commit 4d8c2dd

Browse files
YegorZhjoshuakcockrelldharshatharan
authored
Minor received payment and stop payment fixes (#469)
* Add ReceivedPaymentCreated direction * Update CreateStopPaymentRequest type to match docs --------- Co-authored-by: Josh Cockrell <[email protected]> Co-authored-by: dharshatharan <[email protected]>
1 parent aedbe8d commit 4d8c2dd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

types/checkPayment.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,10 @@ export interface CheckPayment {
187187
export interface CreateStopPaymentRequest {
188188
type: "stopPayment"
189189
attributes: {
190-
amount: number
190+
amount?: number
191191
checkNumber: string
192192
tags: Tags
193+
idempotencyKey?: string
193194
}
194195
relationships: {
195196
account: Relationship

types/events.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ export type ReceivedPaymentCreated = BaseEvent & {
474474
type: "receivedPayment.created"
475475
attributes: {
476476
status: ReceivedPaymentStatus
477+
direction: Direction
477478
type: string
478479
amount: number
479480
isAdvaceable: boolean // TODO: typo, will be fixed on API and be removed in a future version

0 commit comments

Comments
 (0)