|
1 | | -import { Address, CardNetwork, Coordinates, Counterparty, Direction, Merchant, Relationship, RelationshipsArray, Tags, UnimplementedFields } from "./common" |
| 1 | +import { Address, CardNetwork, Coordinates, Counterparty, CurrencyConversion, Direction, Merchant, Relationship, RelationshipsArray, RichMerchantData, Tags, UnimplementedFields } from "./common" |
2 | 2 |
|
3 | | -export type Transaction = OriginatedAchTransaction | ReceivedAchTransaction | ReturnedAchTransaction | ReturnedReceivedAchTransaction | DishonoredAchTransaction | BookTransaction | PurchaseTransaction | AtmTransaction | FeeTransaction | |
4 | | -CardReversalTransaction | CardTransaction | WireTransaction | ReleaseTransaction | AdjustmentTransaction | InterestTransaction | DisputeTransaction | CheckDepositTransaction | ReturnedCheckDepositTransaction | PaymentAdvanceTransaction | |
5 | | -RepaidPaymentAdvanceTransaction | PaymentCanceledTransaction | RewardTransaction | NegativeBalanceCoverageTransaction | PushToCardTransaction | AccountLowBalanceClosureTransaction |
| 3 | +export type Transaction = OriginatedAchTransaction | ReceivedAchTransaction | ReturnedAchTransaction | ReturnedReceivedAchTransaction | DishonoredAchTransaction | BookTransaction | PurchaseTransaction | AtmTransaction | FeeTransaction | |
| 4 | + CardReversalTransaction | CardTransaction | WireTransaction | ReleaseTransaction | AdjustmentTransaction | InterestTransaction | DisputeTransaction | CheckDepositTransaction | ReturnedCheckDepositTransaction | PaymentAdvanceTransaction | |
| 5 | + RepaidPaymentAdvanceTransaction | PaymentCanceledTransaction | RewardTransaction | NegativeBalanceCoverageTransaction | PushToCardTransaction | AccountLowBalanceClosureTransaction |
6 | 6 |
|
7 | 7 | export interface BaseTransaction { |
8 | 8 | /** |
@@ -396,8 +396,28 @@ export type PurchaseTransaction = BaseTransaction & { |
396 | 396 | * Optional. The interchange share for this transaction. Calculated at the end of each day, see the transaction.updated event. |
397 | 397 | */ |
398 | 398 | interchange?: number |
| 399 | + |
| 400 | + /** |
| 401 | + * Optional. The gross interchange share for this transaction. |
| 402 | + */ |
| 403 | + grossInterchange?: string |
| 404 | + |
| 405 | + /** |
| 406 | + * Optional. Cash withdrawal amount |
| 407 | + */ |
| 408 | + cashWithdrawalAmount?: number |
| 409 | + |
| 410 | + /** |
| 411 | + * Optional. Full merchant information. |
| 412 | + */ |
| 413 | + richMerchantData?: RichMerchantData |
| 414 | + |
| 415 | + /** |
| 416 | + * Optional. When original currency for transaction is not USD. |
| 417 | + */ |
| 418 | + currencyConversion?: CurrencyConversion |
399 | 419 | } & CardRelatedTransactionsBaseAttributes & |
400 | | - BaseTransactionAttributes |
| 420 | + BaseTransactionAttributes |
401 | 421 |
|
402 | 422 | /** |
403 | 423 | * Describes relationships between the transaction resource and other resources (account and customer). |
@@ -455,6 +475,16 @@ export type AtmTransaction = BaseTransaction & { |
455 | 475 | * Calculated at the end of each day, see the [transaction.updated](https://developers.unit.co/events/#transactionupdated) event. |
456 | 476 | */ |
457 | 477 | intercharge?: number |
| 478 | + |
| 479 | + /** |
| 480 | + * Optional. The gross interchange share for this transaction. |
| 481 | + */ |
| 482 | + grossInterchange?: string |
| 483 | + |
| 484 | + /** |
| 485 | + * Optional. When original currency for transaction is not USD. |
| 486 | + */ |
| 487 | + currencyConversion?: CurrencyConversion |
458 | 488 | } |
459 | 489 |
|
460 | 490 | /** |
@@ -531,6 +561,21 @@ export type CardTransaction = BaseTransaction & { |
531 | 561 | * Optional. The interchange share for this transaction. Calculated at the end of each day, see the [transaction.updated](https://developers.unit.co/events/#transactionupdated) event. |
532 | 562 | */ |
533 | 563 | interchange?: number |
| 564 | + |
| 565 | + /** |
| 566 | + * Optional. The gross interchange share for this transaction. |
| 567 | + */ |
| 568 | + grossInterchange?: string |
| 569 | + |
| 570 | + /** |
| 571 | + * Optional. Full merchant information. |
| 572 | + */ |
| 573 | + richMerchantData?: RichMerchantData |
| 574 | + |
| 575 | + /** |
| 576 | + * Optional. When original currency for transaction is not USD. |
| 577 | + */ |
| 578 | + currencyConversion?: CurrencyConversion |
534 | 579 | } & CardRelatedTransactionsBaseAttributes |
535 | 580 |
|
536 | 581 | /** |
|
0 commit comments