Skip to content

Commit a9471ad

Browse files
committed
Add returnedCheckPaymentTransaction
1 parent 328d22b commit a9471ad

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

types/transactions.ts

Lines changed: 28 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 | ReleaseTransaction | AdjustmentTransaction | InterestTransaction | DisputeTransaction | CheckDepositTransaction | CheckPaymentTransaction | ReturnedCheckDepositTransaction | ReturnedCheckPaymentTransaction | PaymentAdvanceTransaction |
55
RepaidPaymentAdvanceTransaction | PaymentCanceledTransaction | RewardTransaction | NegativeBalanceCoverageTransaction | PushToCardTransaction | AccountLowBalanceClosureTransaction | BankRepaymentTransaction
66

77
export interface BaseTransaction {
@@ -813,6 +813,33 @@ export type ReturnedCheckDepositTransaction = BaseTransaction & {
813813
}
814814
}
815815

816+
export type ReturnedCheckPaymentTransaction = BaseTransaction & {
817+
/**
818+
* Type of the transaction resource. The value is always returnedCheckPaymentTransaction.
819+
*/
820+
type: "returnedCheckPaymentTransaction"
821+
822+
/**
823+
* JSON object representing the transaction data.
824+
*/
825+
attributes: {
826+
/**
827+
* The reason for the transaction return. This is a replacement to the deprecated `reason` attribute.
828+
*/
829+
returnReason: string
830+
}
831+
832+
/**
833+
* Describes relationships between the transaction resource and other resources (account, customer, checkDeposit).
834+
*/
835+
relationships: {
836+
/**
837+
* The [Check Payment](https://developers.unit.co/resources/#transaction-check-payment) the transaction is related to.
838+
*/
839+
checkPayment: Relationship
840+
}
841+
}
842+
816843
export type PaymentAdvanceTransaction = BaseTransaction & {
817844
/**
818845
* Type of the transaction resource. The value is always paymentAdvanceTransaction.

0 commit comments

Comments
 (0)