Skip to content

Commit 5b724b6

Browse files
Add fee reversal transaction type (#414)
1 parent cbec23a commit 5b724b6

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

types/transactions.ts

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

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

@@ -520,6 +520,23 @@ export type FeeTransaction = BaseTransaction & {
520520
}
521521
}
522522

523+
export type FeeReversalTransaction = BaseTransaction & {
524+
/**
525+
* Type of the transaction resource. The value is always feeReversalTransaction.
526+
*/
527+
type: "feeReversalTransaction"
528+
529+
/**
530+
* Describes relationships between the transaction resource and other resources (account and customer).
531+
*/
532+
relationships: {
533+
/**
534+
* The requested resource after the operation was completed.
535+
*/
536+
relatedTransaction: Relationship
537+
};
538+
};
539+
523540
export type CardReversalTransaction = BaseTransaction & {
524541
/**
525542
* Type of the transaction resource. The value is always cardReversalTransaction.

0 commit comments

Comments
 (0)