Skip to content

Commit 4acae0d

Browse files
committed
Add returnedWireTransaction
1 parent 328d22b commit 4acae0d

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

types/transactions.ts

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Address, CardNetwork, Coordinates, Counterparty, CurrencyConversion, Direction, Merchant, Relationship, RelationshipsArray, RichMerchantData, Tags, UnimplementedFields } from "./common"
22

33
export type Transaction = OriginatedAchTransaction | ReceivedAchTransaction | ReturnedAchTransaction | ReturnedReceivedAchTransaction | DishonoredAchTransaction | BookTransaction | PurchaseTransaction | AtmTransaction | FeeTransaction | FeeReversalTransaction |
4-
CardReversalTransaction | CardTransaction | WireTransaction | ReleaseTransaction | AdjustmentTransaction | InterestTransaction | DisputeTransaction | CheckDepositTransaction | CheckPaymentTransaction | ReturnedCheckDepositTransaction | PaymentAdvanceTransaction |
4+
CardReversalTransaction | CardTransaction | WireTransaction | ReturnedWireTransaction | ReleaseTransaction | AdjustmentTransaction | InterestTransaction | DisputeTransaction | CheckDepositTransaction | CheckPaymentTransaction | ReturnedCheckDepositTransaction | PaymentAdvanceTransaction |
55
RepaidPaymentAdvanceTransaction | PaymentCanceledTransaction | RewardTransaction | NegativeBalanceCoverageTransaction | PushToCardTransaction | AccountLowBalanceClosureTransaction | BankRepaymentTransaction
66

77
export interface BaseTransaction {
@@ -662,6 +662,43 @@ export type WireTransaction = BaseTransaction & {
662662
}
663663
}
664664

665+
export type ReturnedWireTransaction = BaseTransaction & {
666+
/**
667+
* Type of the transaction resource. The value is always returnedWireTransaction.
668+
*/
669+
type: "returnedWireTransaction"
670+
671+
/**
672+
* JSON object representing the transaction data.
673+
*/
674+
attributes: {
675+
/**
676+
* The reason for the return.
677+
*/
678+
reason: string
679+
680+
/**
681+
* Input Message Accountability Data. It's a unique number given to each FedWire payment in case of payment has been sent and fully processed.
682+
*/
683+
imad: string
684+
685+
/**
686+
* Optional. Output Message Accountability Data. It's a unique number given to each FedWire payment in case of payment has been sent and fully processed.
687+
*/
688+
omad?: string
689+
}
690+
691+
/**
692+
* Describes relationships between the transaction resource and other resources (account and customer).
693+
*/
694+
relationships: {
695+
/**
696+
* The payment belonging to this transaction.
697+
*/
698+
payment: Relationship
699+
}
700+
}
701+
665702
export type ReleaseTransaction = BaseTransaction & {
666703
/**
667704
* Type of the transaction resource. The value is always releaseTransaction.

0 commit comments

Comments
 (0)