increase 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +10 -0
- package/.prettierrc +6 -0
- package/.stats.yml +1 -0
- package/LICENSE +201 -0
- package/README.md +211 -0
- package/api.md +477 -0
- package/bin/check-test-server +50 -0
- package/build +12 -0
- package/check-version.ts +15 -0
- package/core.ts +908 -0
- package/dist/cjs/check-version.d.ts +1 -0
- package/dist/cjs/check-version.js +21 -0
- package/dist/cjs/check-version.js.map +1 -0
- package/dist/cjs/core.d.ts +262 -0
- package/dist/cjs/core.js +978 -0
- package/dist/cjs/core.js.map +1 -0
- package/dist/cjs/fetch-polyfill.d.ts +5 -0
- package/dist/cjs/fetch-polyfill.js +55 -0
- package/dist/cjs/fetch-polyfill.js.map +1 -0
- package/dist/cjs/index.d.ts +201 -0
- package/dist/cjs/index.js +180 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/pagination.d.ts +28 -0
- package/dist/cjs/pagination.js +30 -0
- package/dist/cjs/pagination.js.map +1 -0
- package/dist/cjs/resource.d.ts +11 -0
- package/dist/cjs/resource.js +17 -0
- package/dist/cjs/resource.js.map +1 -0
- package/dist/cjs/resources/account-numbers.d.ts +103 -0
- package/dist/cjs/resources/account-numbers.js +37 -0
- package/dist/cjs/resources/account-numbers.js.map +1 -0
- package/dist/cjs/resources/account-statements.d.ts +99 -0
- package/dist/cjs/resources/account-statements.js +25 -0
- package/dist/cjs/resources/account-statements.js.map +1 -0
- package/dist/cjs/resources/account-transfers.d.ts +189 -0
- package/dist/cjs/resources/account-transfers.js +43 -0
- package/dist/cjs/resources/account-transfers.js.map +1 -0
- package/dist/cjs/resources/accounts.d.ts +133 -0
- package/dist/cjs/resources/accounts.js +43 -0
- package/dist/cjs/resources/accounts.js.map +1 -0
- package/dist/cjs/resources/ach-prenotifications.d.ts +188 -0
- package/dist/cjs/resources/ach-prenotifications.js +35 -0
- package/dist/cjs/resources/ach-prenotifications.js.map +1 -0
- package/dist/cjs/resources/ach-transfers.d.ts +375 -0
- package/dist/cjs/resources/ach-transfers.js +43 -0
- package/dist/cjs/resources/ach-transfers.js.map +1 -0
- package/dist/cjs/resources/card-disputes.d.ts +143 -0
- package/dist/cjs/resources/card-disputes.js +31 -0
- package/dist/cjs/resources/card-disputes.js.map +1 -0
- package/dist/cjs/resources/card-profiles.d.ts +183 -0
- package/dist/cjs/resources/card-profiles.js +31 -0
- package/dist/cjs/resources/card-profiles.js.map +1 -0
- package/dist/cjs/resources/cards.d.ts +316 -0
- package/dist/cjs/resources/cards.js +43 -0
- package/dist/cjs/resources/cards.js.map +1 -0
- package/dist/cjs/resources/check-deposits.d.ts +241 -0
- package/dist/cjs/resources/check-deposits.js +31 -0
- package/dist/cjs/resources/check-deposits.js.map +1 -0
- package/dist/cjs/resources/check-transfers.d.ts +331 -0
- package/dist/cjs/resources/check-transfers.js +49 -0
- package/dist/cjs/resources/check-transfers.js.map +1 -0
- package/dist/cjs/resources/declined-transactions.d.ts +424 -0
- package/dist/cjs/resources/declined-transactions.js +29 -0
- package/dist/cjs/resources/declined-transactions.js.map +1 -0
- package/dist/cjs/resources/digital-wallet-tokens.d.ts +85 -0
- package/dist/cjs/resources/digital-wallet-tokens.js +29 -0
- package/dist/cjs/resources/digital-wallet-tokens.js.map +1 -0
- package/dist/cjs/resources/documents.d.ts +87 -0
- package/dist/cjs/resources/documents.js +25 -0
- package/dist/cjs/resources/documents.js.map +1 -0
- package/dist/cjs/resources/entities/entities.d.ts +1383 -0
- package/dist/cjs/resources/entities/entities.js +36 -0
- package/dist/cjs/resources/entities/entities.js.map +1 -0
- package/dist/cjs/resources/entities/index.d.ts +2 -0
- package/dist/cjs/resources/entities/index.js +12 -0
- package/dist/cjs/resources/entities/index.js.map +1 -0
- package/dist/cjs/resources/entities/supplemental-documents.d.ts +19 -0
- package/dist/cjs/resources/entities/supplemental-documents.js +15 -0
- package/dist/cjs/resources/entities/supplemental-documents.js.map +1 -0
- package/dist/cjs/resources/event-subscriptions.d.ts +196 -0
- package/dist/cjs/resources/event-subscriptions.js +37 -0
- package/dist/cjs/resources/event-subscriptions.js.map +1 -0
- package/dist/cjs/resources/events.d.ts +183 -0
- package/dist/cjs/resources/events.js +25 -0
- package/dist/cjs/resources/events.js.map +1 -0
- package/dist/cjs/resources/external-accounts.d.ts +121 -0
- package/dist/cjs/resources/external-accounts.js +37 -0
- package/dist/cjs/resources/external-accounts.js.map +1 -0
- package/dist/cjs/resources/files.d.ts +148 -0
- package/dist/cjs/resources/files.js +34 -0
- package/dist/cjs/resources/files.js.map +1 -0
- package/dist/cjs/resources/groups.d.ts +37 -0
- package/dist/cjs/resources/groups.js +15 -0
- package/dist/cjs/resources/groups.js.map +1 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts +106 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.js +35 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.js.map +1 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts +124 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.js +29 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.js.map +1 -0
- package/dist/cjs/resources/index.d.ts +163 -0
- package/dist/cjs/resources/index.js +478 -0
- package/dist/cjs/resources/index.js.map +1 -0
- package/dist/cjs/resources/limits.d.ts +105 -0
- package/dist/cjs/resources/limits.js +37 -0
- package/dist/cjs/resources/limits.js.map +1 -0
- package/dist/cjs/resources/oauth-connections.d.ts +50 -0
- package/dist/cjs/resources/oauth-connections.js +25 -0
- package/dist/cjs/resources/oauth-connections.js.map +1 -0
- package/dist/cjs/resources/pending-transactions.d.ts +397 -0
- package/dist/cjs/resources/pending-transactions.js +29 -0
- package/dist/cjs/resources/pending-transactions.js.map +1 -0
- package/dist/cjs/resources/real-time-decisions.d.ts +289 -0
- package/dist/cjs/resources/real-time-decisions.js +21 -0
- package/dist/cjs/resources/real-time-decisions.js.map +1 -0
- package/dist/cjs/resources/routing-numbers.d.ts +49 -0
- package/dist/cjs/resources/routing-numbers.js +21 -0
- package/dist/cjs/resources/routing-numbers.js.map +1 -0
- package/dist/cjs/resources/shared.d.ts +15 -0
- package/dist/cjs/resources/shared.js +4 -0
- package/dist/cjs/resources/shared.js.map +1 -0
- package/dist/cjs/resources/simulations/account-statements.d.ts +19 -0
- package/dist/cjs/resources/simulations/account-statements.js +16 -0
- package/dist/cjs/resources/simulations/account-statements.js.map +1 -0
- package/dist/cjs/resources/simulations/account-transfers.d.ts +15 -0
- package/dist/cjs/resources/simulations/account-transfers.js +18 -0
- package/dist/cjs/resources/simulations/account-transfers.js.map +1 -0
- package/dist/cjs/resources/simulations/ach-transfers.d.ts +1488 -0
- package/dist/cjs/resources/simulations/ach-transfers.js +39 -0
- package/dist/cjs/resources/simulations/ach-transfers.js.map +1 -0
- package/dist/cjs/resources/simulations/card-disputes.d.ts +26 -0
- package/dist/cjs/resources/simulations/card-disputes.js +18 -0
- package/dist/cjs/resources/simulations/card-disputes.js.map +1 -0
- package/dist/cjs/resources/simulations/card-refunds.d.ts +20 -0
- package/dist/cjs/resources/simulations/card-refunds.js +16 -0
- package/dist/cjs/resources/simulations/card-refunds.js.map +1 -0
- package/dist/cjs/resources/simulations/cards.d.ts +793 -0
- package/dist/cjs/resources/simulations/cards.js +31 -0
- package/dist/cjs/resources/simulations/cards.js.map +1 -0
- package/dist/cjs/resources/simulations/check-deposits.d.ts +30 -0
- package/dist/cjs/resources/simulations/check-deposits.js +31 -0
- package/dist/cjs/resources/simulations/check-deposits.js.map +1 -0
- package/dist/cjs/resources/simulations/check-transfers.d.ts +22 -0
- package/dist/cjs/resources/simulations/check-transfers.js +24 -0
- package/dist/cjs/resources/simulations/check-transfers.js.map +1 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts +43 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.js +16 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.js.map +1 -0
- package/dist/cjs/resources/simulations/documents.d.ts +18 -0
- package/dist/cjs/resources/simulations/documents.js +15 -0
- package/dist/cjs/resources/simulations/documents.js.map +1 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts +101 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.js +16 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -0
- package/dist/cjs/resources/simulations/index.d.ts +20 -0
- package/dist/cjs/resources/simulations/index.js +4 -0
- package/dist/cjs/resources/simulations/index.js.map +1 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +1431 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js +16 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js.map +1 -0
- package/dist/cjs/resources/simulations/simulations.d.ts +29 -0
- package/dist/cjs/resources/simulations/simulations.js +44 -0
- package/dist/cjs/resources/simulations/simulations.js.map +1 -0
- package/dist/cjs/resources/simulations/wire-transfers.d.ts +1104 -0
- package/dist/cjs/resources/simulations/wire-transfers.js +15 -0
- package/dist/cjs/resources/simulations/wire-transfers.js.map +1 -0
- package/dist/cjs/resources/transactions.d.ts +1101 -0
- package/dist/cjs/resources/transactions.js +25 -0
- package/dist/cjs/resources/transactions.js.map +1 -0
- package/dist/cjs/resources/wire-drawdown-requests.d.ts +148 -0
- package/dist/cjs/resources/wire-drawdown-requests.js +35 -0
- package/dist/cjs/resources/wire-drawdown-requests.js.map +1 -0
- package/dist/cjs/resources/wire-transfers.d.ts +310 -0
- package/dist/cjs/resources/wire-transfers.js +60 -0
- package/dist/cjs/resources/wire-transfers.js.map +1 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.js +104 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/account-statements.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-statements.test.js +101 -0
- package/dist/cjs/tests/api-resources/account-statements.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.js +146 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/accounts.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/accounts.test.js +119 -0
- package/dist/cjs/tests/api-resources/accounts.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js +125 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.js +159 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.js +108 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.js +97 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/cards.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/cards.test.js +138 -0
- package/dist/cjs/tests/api-resources/cards.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.js +113 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.js +172 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.js +105 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js +103 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/documents.test.js +101 -0
- package/dist/cjs/tests/api-resources/documents.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.js +280 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js +49 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js +109 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/events.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/events.test.js +101 -0
- package/dist/cjs/tests/api-resources/events.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.js +113 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/files.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/files.test.js +117 -0
- package/dist/cjs/tests/api-resources/files.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/groups.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/groups.test.js +54 -0
- package/dist/cjs/tests/api-resources/groups.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js +90 -0
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js +83 -0
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/limits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/limits.test.js +100 -0
- package/dist/cjs/tests/api-resources/limits.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.js +78 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.js +97 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js +71 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.js +55 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js +49 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js +60 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js +92 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js +56 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js +49 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.js +70 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js +86 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js +73 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js +49 -0
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.js +49 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js +81 -0
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js +62 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js +70 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/transactions.test.js +109 -0
- package/dist/cjs/tests/api-resources/transactions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js +110 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.js +184 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.js.map +1 -0
- package/dist/cjs/tests/form.test.d.ts +1 -0
- package/dist/cjs/tests/form.test.js +60 -0
- package/dist/cjs/tests/form.test.js.map +1 -0
- package/dist/cjs/tests/index.test.d.ts +1 -0
- package/dist/cjs/tests/index.test.js +44 -0
- package/dist/cjs/tests/index.test.js.map +1 -0
- package/dist/cjs/tests/responses.test.d.ts +1 -0
- package/dist/cjs/tests/responses.test.js +59 -0
- package/dist/cjs/tests/responses.test.js.map +1 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +5 -0
- package/dist/cjs/version.js.map +1 -0
- package/fetch-polyfill.ts +69 -0
- package/index.ts +276 -0
- package/jest.config.js +8 -0
- package/package.json +47 -0
- package/pagination.ts +58 -0
- package/resource.ts +24 -0
- package/resources/account-numbers.ts +141 -0
- package/resources/account-statements.ts +132 -0
- package/resources/account-transfers.ts +244 -0
- package/resources/accounts.ts +179 -0
- package/resources/ach-prenotifications.ts +242 -0
- package/resources/ach-transfers.ts +465 -0
- package/resources/card-disputes.ts +187 -0
- package/resources/card-profiles.ts +236 -0
- package/resources/cards.ts +398 -0
- package/resources/check-deposits.ts +303 -0
- package/resources/check-transfers.ts +422 -0
- package/resources/declined-transactions.ts +547 -0
- package/resources/digital-wallet-tokens.ts +115 -0
- package/resources/documents.ts +119 -0
- package/resources/entities/entities.ts +1668 -0
- package/resources/entities/index.ts +4 -0
- package/resources/entities/supplemental-documents.ts +25 -0
- package/resources/event-subscriptions.ts +232 -0
- package/resources/events.ts +215 -0
- package/resources/external-accounts.ts +162 -0
- package/resources/files.ts +188 -0
- package/resources/groups.ts +47 -0
- package/resources/inbound-ach-transfer-returns.ts +142 -0
- package/resources/inbound-wire-drawdown-requests.ts +168 -0
- package/resources/index.ts +165 -0
- package/resources/limits.ts +144 -0
- package/resources/oauth-connections.ts +74 -0
- package/resources/pending-transactions.ts +491 -0
- package/resources/real-time-decisions.ts +345 -0
- package/resources/routing-numbers.ts +62 -0
- package/resources/shared.ts +17 -0
- package/resources/simulations/account-statements.ts +25 -0
- package/resources/simulations/account-transfers.ts +20 -0
- package/resources/simulations/ach-transfers.ts +1873 -0
- package/resources/simulations/card-disputes.ts +33 -0
- package/resources/simulations/card-refunds.ts +26 -0
- package/resources/simulations/cards.ts +979 -0
- package/resources/simulations/check-deposits.ts +41 -0
- package/resources/simulations/check-transfers.ts +30 -0
- package/resources/simulations/digital-wallet-token-requests.ts +52 -0
- package/resources/simulations/documents.ts +24 -0
- package/resources/simulations/inbound-wire-drawdown-requests.ts +126 -0
- package/resources/simulations/index.ts +22 -0
- package/resources/simulations/real-time-payments-transfers.ts +1809 -0
- package/resources/simulations/simulations.ts +32 -0
- package/resources/simulations/wire-transfers.ts +1391 -0
- package/resources/transactions.ts +1393 -0
- package/resources/wire-drawdown-requests.ts +195 -0
- package/resources/wire-transfers.ts +399 -0
- package/tests/api-resources/account-numbers.test.ts +67 -0
- package/tests/api-resources/account-statements.test.ts +64 -0
- package/tests/api-resources/account-transfers.test.ts +109 -0
- package/tests/api-resources/accounts.test.ts +82 -0
- package/tests/api-resources/ach-prenotifications.test.ts +86 -0
- package/tests/api-resources/ach-transfers.test.ts +120 -0
- package/tests/api-resources/card-disputes.test.ts +71 -0
- package/tests/api-resources/card-profiles.test.ts +60 -0
- package/tests/api-resources/cards.test.ts +101 -0
- package/tests/api-resources/check-deposits.test.ts +74 -0
- package/tests/api-resources/check-transfers.test.ts +135 -0
- package/tests/api-resources/declined-transactions.test.ts +68 -0
- package/tests/api-resources/digital-wallet-tokens.test.ts +64 -0
- package/tests/api-resources/documents.test.ts +64 -0
- package/tests/api-resources/entities/entities.test.ts +243 -0
- package/tests/api-resources/entities/supplemental-documents.test.ts +12 -0
- package/tests/api-resources/event-subscriptions.test.ts +69 -0
- package/tests/api-resources/events.test.ts +64 -0
- package/tests/api-resources/external-accounts.test.ts +76 -0
- package/tests/api-resources/files.test.ts +81 -0
- package/tests/api-resources/groups.test.ts +17 -0
- package/tests/api-resources/inbound-ach-transfer-returns.test.ts +53 -0
- package/tests/api-resources/inbound-wire-drawdown-requests.test.ts +46 -0
- package/tests/api-resources/limits.test.ts +63 -0
- package/tests/api-resources/oauth-connections.test.ts +41 -0
- package/tests/api-resources/pending-transactions.test.ts +58 -0
- package/tests/api-resources/real-time-decisions.test.ts +34 -0
- package/tests/api-resources/routing-numbers.test.ts +18 -0
- package/tests/api-resources/simulations/account-statements.test.ts +12 -0
- package/tests/api-resources/simulations/account-transfers.test.ts +23 -0
- package/tests/api-resources/simulations/ach-transfers.test.ts +52 -0
- package/tests/api-resources/simulations/card-disputes.test.ts +19 -0
- package/tests/api-resources/simulations/card-refunds.test.ts +12 -0
- package/tests/api-resources/simulations/cards.test.ts +33 -0
- package/tests/api-resources/simulations/check-deposits.test.ts +49 -0
- package/tests/api-resources/simulations/check-transfers.test.ts +34 -0
- package/tests/api-resources/simulations/digital-wallet-token-requests.test.ts +12 -0
- package/tests/api-resources/simulations/documents.test.ts +12 -0
- package/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.ts +44 -0
- package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +25 -0
- package/tests/api-resources/simulations/wire-transfers.test.ts +33 -0
- package/tests/api-resources/transactions.test.ts +70 -0
- package/tests/api-resources/wire-drawdown-requests.test.ts +73 -0
- package/tests/api-resources/wire-transfers.test.ts +147 -0
- package/tests/form.test.ts +27 -0
- package/tests/index.test.ts +47 -0
- package/tests/responses.test.ts +25 -0
- package/tsconfig.cjs.json +8 -0
- package/tsconfig.json +37 -0
- package/typings/digest-fetch/index.d.ts +33 -0
- package/version.ts +1 -0
|
@@ -0,0 +1,1488 @@
|
|
|
1
|
+
import * as Core from '../../core';
|
|
2
|
+
import { APIResource } from '../../resource';
|
|
3
|
+
import * as ACHTransfers_ from '../../resources/ach-transfers';
|
|
4
|
+
import * as Shared from '../../resources/shared';
|
|
5
|
+
export declare class ACHTransfers extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Simulates an inbound ACH transfer to your account. This imitates initiating a
|
|
8
|
+
* transaction to an Increase account from a different financial institution. The
|
|
9
|
+
* transfer may be either a credit or a debit depending on if the `amount` is
|
|
10
|
+
* positive or negative. The result of calling this API will be either a
|
|
11
|
+
* [Transaction](#transactions) or a [Declined Transaction](#declined-transactions)
|
|
12
|
+
* depending on whether or not the transfer is allowed.
|
|
13
|
+
*/
|
|
14
|
+
createInbound(
|
|
15
|
+
body: ACHTransferCreateInboundParams,
|
|
16
|
+
options?: Core.RequestOptions,
|
|
17
|
+
): Promise<Core.APIResponse<ACHTransferSimulation>>;
|
|
18
|
+
/**
|
|
19
|
+
* Simulates the return of an [ACH Transfer](#ach-transfers) by the Federal Reserve
|
|
20
|
+
* due to an error condition. This will also create a Transaction to account for
|
|
21
|
+
* the returned funds. This transfer must first have a `status` of `submitted`.
|
|
22
|
+
*/
|
|
23
|
+
return(
|
|
24
|
+
achTransferId: string,
|
|
25
|
+
body: ACHTransferReturnParams,
|
|
26
|
+
options?: Core.RequestOptions,
|
|
27
|
+
): Promise<Core.APIResponse<ACHTransfers_.ACHTransfer>>;
|
|
28
|
+
/**
|
|
29
|
+
* Simulates the submission of an [ACH Transfer](#ach-transfers) to the Federal
|
|
30
|
+
* Reserve. This transfer must first have a `status` of `pending_approval` or
|
|
31
|
+
* `pending_submission`. In production, Increase submits ACH Transfers to the
|
|
32
|
+
* Federal Reserve three times per day on weekdays. Since sandbox ACH Transfers are
|
|
33
|
+
* not submitted to the Federal Reserve, this endpoint allows you to skip that
|
|
34
|
+
* delay and transition the ACH Transfer to a status of `submitted`.
|
|
35
|
+
*/
|
|
36
|
+
submit(
|
|
37
|
+
achTransferId: string,
|
|
38
|
+
options?: Core.RequestOptions,
|
|
39
|
+
): Promise<Core.APIResponse<ACHTransfers_.ACHTransfer>>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The results of an inbound ACH Transfer simulation.
|
|
43
|
+
*/
|
|
44
|
+
export interface ACHTransferSimulation {
|
|
45
|
+
/**
|
|
46
|
+
* If the ACH Transfer attempt fails, this will contain the resulting
|
|
47
|
+
* [Declined Transaction](#declined-transactions) object. The Declined
|
|
48
|
+
* Transaction's `source` will be of `category: inbound_ach_transfer`.
|
|
49
|
+
*/
|
|
50
|
+
declined_transaction: ACHTransferSimulation.DeclinedTransaction | null;
|
|
51
|
+
/**
|
|
52
|
+
* If the ACH Transfer attempt succeeds, this will contain the resulting
|
|
53
|
+
* [Transaction](#transactions) object. The Transaction's `source` will be of
|
|
54
|
+
* `category: inbound_ach_transfer`.
|
|
55
|
+
*/
|
|
56
|
+
transaction: ACHTransferSimulation.Transaction | null;
|
|
57
|
+
/**
|
|
58
|
+
* A constant representing the object's type. For this resource it will always be
|
|
59
|
+
* `inbound_ach_transfer_simulation_result`.
|
|
60
|
+
*/
|
|
61
|
+
type: 'inbound_ach_transfer_simulation_result';
|
|
62
|
+
}
|
|
63
|
+
export declare namespace ACHTransferSimulation {
|
|
64
|
+
interface Transaction {
|
|
65
|
+
/**
|
|
66
|
+
* The identifier for the Account the Transaction belongs to.
|
|
67
|
+
*/
|
|
68
|
+
account_id: string;
|
|
69
|
+
/**
|
|
70
|
+
* The Transaction amount in the minor unit of its currency. For dollars, for
|
|
71
|
+
* example, this is cents.
|
|
72
|
+
*/
|
|
73
|
+
amount: number;
|
|
74
|
+
/**
|
|
75
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the
|
|
76
|
+
* Transaction occured.
|
|
77
|
+
*/
|
|
78
|
+
created_at: string;
|
|
79
|
+
/**
|
|
80
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
81
|
+
* Transaction's currency. This will match the currency on the Transcation's
|
|
82
|
+
* Account.
|
|
83
|
+
*/
|
|
84
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
85
|
+
/**
|
|
86
|
+
* For a Transaction related to a transfer, this is the description you provide.
|
|
87
|
+
* For a Transaction related to a payment, this is the description the vendor
|
|
88
|
+
* provides.
|
|
89
|
+
*/
|
|
90
|
+
description: string;
|
|
91
|
+
/**
|
|
92
|
+
* The Transaction identifier.
|
|
93
|
+
*/
|
|
94
|
+
id: string;
|
|
95
|
+
/**
|
|
96
|
+
* The identifier for the route this Transaction came through. Routes are things
|
|
97
|
+
* like cards and ACH details.
|
|
98
|
+
*/
|
|
99
|
+
route_id: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* The type of the route this Transaction came through.
|
|
102
|
+
*/
|
|
103
|
+
route_type: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* This is an object giving more details on the network-level event that caused the
|
|
106
|
+
* Transaction. Note that for backwards compatibility reasons, additional
|
|
107
|
+
* undocumented keys may appear in this object. These should be treated as
|
|
108
|
+
* deprecated and will be removed in the future.
|
|
109
|
+
*/
|
|
110
|
+
source: Transaction.Source;
|
|
111
|
+
/**
|
|
112
|
+
* A constant representing the object's type. For this resource it will always be
|
|
113
|
+
* `transaction`.
|
|
114
|
+
*/
|
|
115
|
+
type: 'transaction';
|
|
116
|
+
}
|
|
117
|
+
namespace Transaction {
|
|
118
|
+
interface Source {
|
|
119
|
+
/**
|
|
120
|
+
* A Account Transfer Intention object. This field will be present in the JSON
|
|
121
|
+
* response if and only if `category` is equal to `account_transfer_intention`.
|
|
122
|
+
*/
|
|
123
|
+
account_transfer_intention: Source.AccountTransferIntention | null;
|
|
124
|
+
/**
|
|
125
|
+
* A ACH Check Conversion object. This field will be present in the JSON response
|
|
126
|
+
* if and only if `category` is equal to `ach_check_conversion`.
|
|
127
|
+
*/
|
|
128
|
+
ach_check_conversion: Source.ACHCheckConversion | null;
|
|
129
|
+
/**
|
|
130
|
+
* A ACH Check Conversion Return object. This field will be present in the JSON
|
|
131
|
+
* response if and only if `category` is equal to `ach_check_conversion_return`.
|
|
132
|
+
*/
|
|
133
|
+
ach_check_conversion_return: Source.ACHCheckConversionReturn | null;
|
|
134
|
+
/**
|
|
135
|
+
* A ACH Transfer Intention object. This field will be present in the JSON response
|
|
136
|
+
* if and only if `category` is equal to `ach_transfer_intention`.
|
|
137
|
+
*/
|
|
138
|
+
ach_transfer_intention: Source.ACHTransferIntention | null;
|
|
139
|
+
/**
|
|
140
|
+
* A ACH Transfer Rejection object. This field will be present in the JSON response
|
|
141
|
+
* if and only if `category` is equal to `ach_transfer_rejection`.
|
|
142
|
+
*/
|
|
143
|
+
ach_transfer_rejection: Source.ACHTransferRejection | null;
|
|
144
|
+
/**
|
|
145
|
+
* A ACH Transfer Return object. This field will be present in the JSON response if
|
|
146
|
+
* and only if `category` is equal to `ach_transfer_return`.
|
|
147
|
+
*/
|
|
148
|
+
ach_transfer_return: Source.ACHTransferReturn | null;
|
|
149
|
+
/**
|
|
150
|
+
* A Card Dispute Acceptance object. This field will be present in the JSON
|
|
151
|
+
* response if and only if `category` is equal to `card_dispute_acceptance`.
|
|
152
|
+
*/
|
|
153
|
+
card_dispute_acceptance: Source.CardDisputeAcceptance | null;
|
|
154
|
+
/**
|
|
155
|
+
* A Card Refund object. This field will be present in the JSON response if and
|
|
156
|
+
* only if `category` is equal to `card_refund`.
|
|
157
|
+
*/
|
|
158
|
+
card_refund: Source.CardRefund | null;
|
|
159
|
+
/**
|
|
160
|
+
* A Deprecated Card Refund object. This field will be present in the JSON response
|
|
161
|
+
* if and only if `category` is equal to `card_route_refund`.
|
|
162
|
+
*/
|
|
163
|
+
card_route_refund: Source.CardRouteRefund | null;
|
|
164
|
+
/**
|
|
165
|
+
* A Deprecated Card Settlement object. This field will be present in the JSON
|
|
166
|
+
* response if and only if `category` is equal to `card_route_settlement`.
|
|
167
|
+
*/
|
|
168
|
+
card_route_settlement: Source.CardRouteSettlement | null;
|
|
169
|
+
/**
|
|
170
|
+
* A Card Settlement object. This field will be present in the JSON response if and
|
|
171
|
+
* only if `category` is equal to `card_settlement`.
|
|
172
|
+
*/
|
|
173
|
+
card_settlement: Source.CardSettlement | null;
|
|
174
|
+
/**
|
|
175
|
+
* The type of transaction that took place. We may add additional possible values
|
|
176
|
+
* for this enum over time; your application should be able to handle such
|
|
177
|
+
* additions gracefully.
|
|
178
|
+
*/
|
|
179
|
+
category:
|
|
180
|
+
| 'account_transfer_intention'
|
|
181
|
+
| 'ach_check_conversion_return'
|
|
182
|
+
| 'ach_check_conversion'
|
|
183
|
+
| 'ach_transfer_intention'
|
|
184
|
+
| 'ach_transfer_rejection'
|
|
185
|
+
| 'ach_transfer_return'
|
|
186
|
+
| 'card_dispute_acceptance'
|
|
187
|
+
| 'card_refund'
|
|
188
|
+
| 'card_settlement'
|
|
189
|
+
| 'check_deposit_acceptance'
|
|
190
|
+
| 'check_deposit_return'
|
|
191
|
+
| 'check_transfer_intention'
|
|
192
|
+
| 'check_transfer_return'
|
|
193
|
+
| 'check_transfer_rejection'
|
|
194
|
+
| 'check_transfer_stop_payment_request'
|
|
195
|
+
| 'dispute_resolution'
|
|
196
|
+
| 'empyreal_cash_deposit'
|
|
197
|
+
| 'inbound_ach_transfer'
|
|
198
|
+
| 'inbound_ach_transfer_return_intention'
|
|
199
|
+
| 'inbound_check'
|
|
200
|
+
| 'inbound_international_ach_transfer'
|
|
201
|
+
| 'inbound_real_time_payments_transfer_confirmation'
|
|
202
|
+
| 'inbound_wire_drawdown_payment_reversal'
|
|
203
|
+
| 'inbound_wire_drawdown_payment'
|
|
204
|
+
| 'inbound_wire_reversal'
|
|
205
|
+
| 'inbound_wire_transfer'
|
|
206
|
+
| 'interest_payment'
|
|
207
|
+
| 'internal_general_ledger_transaction'
|
|
208
|
+
| 'internal_source'
|
|
209
|
+
| 'card_route_refund'
|
|
210
|
+
| 'card_route_settlement'
|
|
211
|
+
| 'real_time_payments_transfer_acknowledgement'
|
|
212
|
+
| 'sample_funds'
|
|
213
|
+
| 'wire_drawdown_payment_intention'
|
|
214
|
+
| 'wire_drawdown_payment_rejection'
|
|
215
|
+
| 'wire_transfer_intention'
|
|
216
|
+
| 'wire_transfer_rejection'
|
|
217
|
+
| 'other';
|
|
218
|
+
/**
|
|
219
|
+
* A Check Deposit Acceptance object. This field will be present in the JSON
|
|
220
|
+
* response if and only if `category` is equal to `check_deposit_acceptance`.
|
|
221
|
+
*/
|
|
222
|
+
check_deposit_acceptance: Source.CheckDepositAcceptance | null;
|
|
223
|
+
/**
|
|
224
|
+
* A Check Deposit Return object. This field will be present in the JSON response
|
|
225
|
+
* if and only if `category` is equal to `check_deposit_return`.
|
|
226
|
+
*/
|
|
227
|
+
check_deposit_return: Source.CheckDepositReturn | null;
|
|
228
|
+
/**
|
|
229
|
+
* A Check Transfer Intention object. This field will be present in the JSON
|
|
230
|
+
* response if and only if `category` is equal to `check_transfer_intention`.
|
|
231
|
+
*/
|
|
232
|
+
check_transfer_intention: Source.CheckTransferIntention | null;
|
|
233
|
+
/**
|
|
234
|
+
* A Check Transfer Rejection object. This field will be present in the JSON
|
|
235
|
+
* response if and only if `category` is equal to `check_transfer_rejection`.
|
|
236
|
+
*/
|
|
237
|
+
check_transfer_rejection: Source.CheckTransferRejection | null;
|
|
238
|
+
/**
|
|
239
|
+
* A Check Transfer Return object. This field will be present in the JSON response
|
|
240
|
+
* if and only if `category` is equal to `check_transfer_return`.
|
|
241
|
+
*/
|
|
242
|
+
check_transfer_return: Source.CheckTransferReturn | null;
|
|
243
|
+
/**
|
|
244
|
+
* A Check Transfer Stop Payment Request object. This field will be present in the
|
|
245
|
+
* JSON response if and only if `category` is equal to
|
|
246
|
+
* `check_transfer_stop_payment_request`.
|
|
247
|
+
*/
|
|
248
|
+
check_transfer_stop_payment_request: Source.CheckTransferStopPaymentRequest | null;
|
|
249
|
+
/**
|
|
250
|
+
* A Dispute Resolution object. This field will be present in the JSON response if
|
|
251
|
+
* and only if `category` is equal to `dispute_resolution`.
|
|
252
|
+
*/
|
|
253
|
+
dispute_resolution: Source.DisputeResolution | null;
|
|
254
|
+
/**
|
|
255
|
+
* A Empyreal Cash Deposit object. This field will be present in the JSON response
|
|
256
|
+
* if and only if `category` is equal to `empyreal_cash_deposit`.
|
|
257
|
+
*/
|
|
258
|
+
empyreal_cash_deposit: Source.EmpyrealCashDeposit | null;
|
|
259
|
+
/**
|
|
260
|
+
* A Inbound ACH Transfer object. This field will be present in the JSON response
|
|
261
|
+
* if and only if `category` is equal to `inbound_ach_transfer`.
|
|
262
|
+
*/
|
|
263
|
+
inbound_ach_transfer: Source.InboundACHTransfer | null;
|
|
264
|
+
/**
|
|
265
|
+
* A Inbound Check object. This field will be present in the JSON response if and
|
|
266
|
+
* only if `category` is equal to `inbound_check`.
|
|
267
|
+
*/
|
|
268
|
+
inbound_check: Source.InboundCheck | null;
|
|
269
|
+
/**
|
|
270
|
+
* A Inbound International ACH Transfer object. This field will be present in the
|
|
271
|
+
* JSON response if and only if `category` is equal to
|
|
272
|
+
* `inbound_international_ach_transfer`.
|
|
273
|
+
*/
|
|
274
|
+
inbound_international_ach_transfer: Source.InboundInternationalACHTransfer | null;
|
|
275
|
+
/**
|
|
276
|
+
* A Inbound Real Time Payments Transfer Confirmation object. This field will be
|
|
277
|
+
* present in the JSON response if and only if `category` is equal to
|
|
278
|
+
* `inbound_real_time_payments_transfer_confirmation`.
|
|
279
|
+
*/
|
|
280
|
+
inbound_real_time_payments_transfer_confirmation: Source.InboundRealTimePaymentsTransferConfirmation | null;
|
|
281
|
+
/**
|
|
282
|
+
* A Inbound Wire Drawdown Payment object. This field will be present in the JSON
|
|
283
|
+
* response if and only if `category` is equal to `inbound_wire_drawdown_payment`.
|
|
284
|
+
*/
|
|
285
|
+
inbound_wire_drawdown_payment: Source.InboundWireDrawdownPayment | null;
|
|
286
|
+
/**
|
|
287
|
+
* A Inbound Wire Drawdown Payment Reversal object. This field will be present in
|
|
288
|
+
* the JSON response if and only if `category` is equal to
|
|
289
|
+
* `inbound_wire_drawdown_payment_reversal`.
|
|
290
|
+
*/
|
|
291
|
+
inbound_wire_drawdown_payment_reversal: Source.InboundWireDrawdownPaymentReversal | null;
|
|
292
|
+
/**
|
|
293
|
+
* A Inbound Wire Reversal object. This field will be present in the JSON response
|
|
294
|
+
* if and only if `category` is equal to `inbound_wire_reversal`.
|
|
295
|
+
*/
|
|
296
|
+
inbound_wire_reversal: Source.InboundWireReversal | null;
|
|
297
|
+
/**
|
|
298
|
+
* A Inbound Wire Transfer object. This field will be present in the JSON response
|
|
299
|
+
* if and only if `category` is equal to `inbound_wire_transfer`.
|
|
300
|
+
*/
|
|
301
|
+
inbound_wire_transfer: Source.InboundWireTransfer | null;
|
|
302
|
+
/**
|
|
303
|
+
* A Interest Payment object. This field will be present in the JSON response if
|
|
304
|
+
* and only if `category` is equal to `interest_payment`.
|
|
305
|
+
*/
|
|
306
|
+
interest_payment: Source.InterestPayment | null;
|
|
307
|
+
/**
|
|
308
|
+
* A Internal Source object. This field will be present in the JSON response if and
|
|
309
|
+
* only if `category` is equal to `internal_source`.
|
|
310
|
+
*/
|
|
311
|
+
internal_source: Source.InternalSource | null;
|
|
312
|
+
/**
|
|
313
|
+
* A Sample Funds object. This field will be present in the JSON response if and
|
|
314
|
+
* only if `category` is equal to `sample_funds`.
|
|
315
|
+
*/
|
|
316
|
+
sample_funds: Source.SampleFunds | null;
|
|
317
|
+
/**
|
|
318
|
+
* A Wire Drawdown Payment Intention object. This field will be present in the JSON
|
|
319
|
+
* response if and only if `category` is equal to
|
|
320
|
+
* `wire_drawdown_payment_intention`.
|
|
321
|
+
*/
|
|
322
|
+
wire_drawdown_payment_intention: Source.WireDrawdownPaymentIntention | null;
|
|
323
|
+
/**
|
|
324
|
+
* A Wire Drawdown Payment Rejection object. This field will be present in the JSON
|
|
325
|
+
* response if and only if `category` is equal to
|
|
326
|
+
* `wire_drawdown_payment_rejection`.
|
|
327
|
+
*/
|
|
328
|
+
wire_drawdown_payment_rejection: Source.WireDrawdownPaymentRejection | null;
|
|
329
|
+
/**
|
|
330
|
+
* A Wire Transfer Intention object. This field will be present in the JSON
|
|
331
|
+
* response if and only if `category` is equal to `wire_transfer_intention`.
|
|
332
|
+
*/
|
|
333
|
+
wire_transfer_intention: Source.WireTransferIntention | null;
|
|
334
|
+
/**
|
|
335
|
+
* A Wire Transfer Rejection object. This field will be present in the JSON
|
|
336
|
+
* response if and only if `category` is equal to `wire_transfer_rejection`.
|
|
337
|
+
*/
|
|
338
|
+
wire_transfer_rejection: Source.WireTransferRejection | null;
|
|
339
|
+
}
|
|
340
|
+
namespace Source {
|
|
341
|
+
interface AccountTransferIntention {
|
|
342
|
+
/**
|
|
343
|
+
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
344
|
+
* for example, this is cents.
|
|
345
|
+
*/
|
|
346
|
+
amount: number;
|
|
347
|
+
/**
|
|
348
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
|
|
349
|
+
* account currency.
|
|
350
|
+
*/
|
|
351
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
352
|
+
/**
|
|
353
|
+
* The description you chose to give the transfer.
|
|
354
|
+
*/
|
|
355
|
+
description: string;
|
|
356
|
+
/**
|
|
357
|
+
* The identifier of the Account to where the Account Transfer was sent.
|
|
358
|
+
*/
|
|
359
|
+
destination_account_id: string;
|
|
360
|
+
/**
|
|
361
|
+
* The identifier of the Account from where the Account Transfer was sent.
|
|
362
|
+
*/
|
|
363
|
+
source_account_id: string;
|
|
364
|
+
/**
|
|
365
|
+
* The identifier of the Account Transfer that led to this Pending Transaction.
|
|
366
|
+
*/
|
|
367
|
+
transfer_id: string;
|
|
368
|
+
}
|
|
369
|
+
interface ACHCheckConversionReturn {
|
|
370
|
+
/**
|
|
371
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
372
|
+
* example, this is cents.
|
|
373
|
+
*/
|
|
374
|
+
amount: number;
|
|
375
|
+
/**
|
|
376
|
+
* Why the transfer was returned.
|
|
377
|
+
*/
|
|
378
|
+
return_reason_code: string;
|
|
379
|
+
}
|
|
380
|
+
interface ACHCheckConversion {
|
|
381
|
+
/**
|
|
382
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
383
|
+
* example, this is cents.
|
|
384
|
+
*/
|
|
385
|
+
amount: number;
|
|
386
|
+
/**
|
|
387
|
+
* The identifier of the File containing an image of the returned check.
|
|
388
|
+
*/
|
|
389
|
+
file_id: string;
|
|
390
|
+
}
|
|
391
|
+
interface ACHTransferIntention {
|
|
392
|
+
account_number: string;
|
|
393
|
+
/**
|
|
394
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
395
|
+
* example, this is cents.
|
|
396
|
+
*/
|
|
397
|
+
amount: number;
|
|
398
|
+
routing_number: string;
|
|
399
|
+
statement_descriptor: string;
|
|
400
|
+
/**
|
|
401
|
+
* The identifier of the ACH Transfer that led to this Transaction.
|
|
402
|
+
*/
|
|
403
|
+
transfer_id: string;
|
|
404
|
+
}
|
|
405
|
+
interface ACHTransferRejection {
|
|
406
|
+
/**
|
|
407
|
+
* The identifier of the ACH Transfer that led to this Transaction.
|
|
408
|
+
*/
|
|
409
|
+
transfer_id: string;
|
|
410
|
+
}
|
|
411
|
+
interface ACHTransferReturn {
|
|
412
|
+
/**
|
|
413
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
414
|
+
* the transfer was created.
|
|
415
|
+
*/
|
|
416
|
+
created_at: string;
|
|
417
|
+
/**
|
|
418
|
+
* Why the ACH Transfer was returned.
|
|
419
|
+
*/
|
|
420
|
+
return_reason_code:
|
|
421
|
+
| 'insufficient_fund'
|
|
422
|
+
| 'no_account'
|
|
423
|
+
| 'account_closed'
|
|
424
|
+
| 'invalid_account_number_structure'
|
|
425
|
+
| 'account_frozen_entry_returned_per_ofac_instruction'
|
|
426
|
+
| 'credit_entry_refused_by_receiver'
|
|
427
|
+
| 'unauthorized_debit_to_consumer_account_using_corporate_sec_code'
|
|
428
|
+
| 'corporate_customer_advised_not_authorized'
|
|
429
|
+
| 'payment_stopped'
|
|
430
|
+
| 'non_transaction_account'
|
|
431
|
+
| 'uncollected_funds'
|
|
432
|
+
| 'routing_number_check_digit_error'
|
|
433
|
+
| 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
|
|
434
|
+
| 'amount_field_error'
|
|
435
|
+
| 'authorization_revoked_by_customer'
|
|
436
|
+
| 'invalid_ach_routing_number'
|
|
437
|
+
| 'file_record_edit_criteria'
|
|
438
|
+
| 'enr_invalid_individual_name'
|
|
439
|
+
| 'returned_per_odfi_request'
|
|
440
|
+
| 'addenda_error'
|
|
441
|
+
| 'limited_participation_dfi'
|
|
442
|
+
| 'incorrectly_coded_outbound_international_payment'
|
|
443
|
+
| 'other';
|
|
444
|
+
/**
|
|
445
|
+
* The identifier of the Tranasaction associated with this return.
|
|
446
|
+
*/
|
|
447
|
+
transaction_id: string;
|
|
448
|
+
/**
|
|
449
|
+
* The identifier of the ACH Transfer associated with this return.
|
|
450
|
+
*/
|
|
451
|
+
transfer_id: string;
|
|
452
|
+
}
|
|
453
|
+
interface CardDisputeAcceptance {
|
|
454
|
+
/**
|
|
455
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
456
|
+
* the Card Dispute was accepted.
|
|
457
|
+
*/
|
|
458
|
+
accepted_at: string;
|
|
459
|
+
/**
|
|
460
|
+
* The identifier of the Card Dispute that was accepted.
|
|
461
|
+
*/
|
|
462
|
+
card_dispute_id: string;
|
|
463
|
+
/**
|
|
464
|
+
* The identifier of the Transaction that was created to return the disputed funds
|
|
465
|
+
* to your account.
|
|
466
|
+
*/
|
|
467
|
+
transaction_id: string | null;
|
|
468
|
+
}
|
|
469
|
+
interface CardRefund {
|
|
470
|
+
/**
|
|
471
|
+
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
472
|
+
* for example, this is cents.
|
|
473
|
+
*/
|
|
474
|
+
amount: number;
|
|
475
|
+
/**
|
|
476
|
+
* The identifier for the Transaction this refunds, if any.
|
|
477
|
+
*/
|
|
478
|
+
card_settlement_transaction_id: string | null;
|
|
479
|
+
/**
|
|
480
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
481
|
+
* transaction's currency.
|
|
482
|
+
*/
|
|
483
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
484
|
+
/**
|
|
485
|
+
* A constant representing the object's type. For this resource it will always be
|
|
486
|
+
* `card_refund`.
|
|
487
|
+
*/
|
|
488
|
+
type: 'card_refund';
|
|
489
|
+
}
|
|
490
|
+
interface CardSettlement {
|
|
491
|
+
/**
|
|
492
|
+
* The amount in the minor unit of the transaction's settlement currency. For
|
|
493
|
+
* dollars, for example, this is cents.
|
|
494
|
+
*/
|
|
495
|
+
amount: number;
|
|
496
|
+
/**
|
|
497
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
498
|
+
* transaction's settlement currency.
|
|
499
|
+
*/
|
|
500
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
501
|
+
merchant_category_code: string;
|
|
502
|
+
merchant_city: string | null;
|
|
503
|
+
merchant_country: string;
|
|
504
|
+
merchant_name: string | null;
|
|
505
|
+
merchant_state: string | null;
|
|
506
|
+
/**
|
|
507
|
+
* The identifier of the Pending Transaction associated with this Transaction.
|
|
508
|
+
*/
|
|
509
|
+
pending_transaction_id: string | null;
|
|
510
|
+
/**
|
|
511
|
+
* The amount in the minor unit of the transaction's presentment currency.
|
|
512
|
+
*/
|
|
513
|
+
presentment_amount: number;
|
|
514
|
+
/**
|
|
515
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
516
|
+
* transaction's presentment currency.
|
|
517
|
+
*/
|
|
518
|
+
presentment_currency: string;
|
|
519
|
+
/**
|
|
520
|
+
* A constant representing the object's type. For this resource it will always be
|
|
521
|
+
* `card_settlement`.
|
|
522
|
+
*/
|
|
523
|
+
type: 'card_settlement';
|
|
524
|
+
}
|
|
525
|
+
interface CheckDepositAcceptance {
|
|
526
|
+
/**
|
|
527
|
+
* The account number printed on the check.
|
|
528
|
+
*/
|
|
529
|
+
account_number: string;
|
|
530
|
+
/**
|
|
531
|
+
* The amount to be deposited in the minor unit of the transaction's currency. For
|
|
532
|
+
* dollars, for example, this is cents.
|
|
533
|
+
*/
|
|
534
|
+
amount: number;
|
|
535
|
+
/**
|
|
536
|
+
* An additional line of metadata printed on the check. This typically includes the
|
|
537
|
+
* check number for business checks.
|
|
538
|
+
*/
|
|
539
|
+
auxiliary_on_us: string | null;
|
|
540
|
+
/**
|
|
541
|
+
* The ID of the Check Deposit that was accepted.
|
|
542
|
+
*/
|
|
543
|
+
check_deposit_id: string;
|
|
544
|
+
/**
|
|
545
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
546
|
+
* transaction's currency.
|
|
547
|
+
*/
|
|
548
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
549
|
+
/**
|
|
550
|
+
* The routing number printed on the check.
|
|
551
|
+
*/
|
|
552
|
+
routing_number: string;
|
|
553
|
+
/**
|
|
554
|
+
* The check serial number, if present, for consumer checks. For business checks,
|
|
555
|
+
* the serial number is usually in the `auxiliary_on_us` field.
|
|
556
|
+
*/
|
|
557
|
+
serial_number: string | null;
|
|
558
|
+
}
|
|
559
|
+
interface CheckDepositReturn {
|
|
560
|
+
/**
|
|
561
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
562
|
+
* example, this is cents.
|
|
563
|
+
*/
|
|
564
|
+
amount: number;
|
|
565
|
+
/**
|
|
566
|
+
* The identifier of the Check Deposit that was returned.
|
|
567
|
+
*/
|
|
568
|
+
check_deposit_id: string;
|
|
569
|
+
/**
|
|
570
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
571
|
+
* transaction's currency.
|
|
572
|
+
*/
|
|
573
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
574
|
+
return_reason:
|
|
575
|
+
| 'ach_conversion_not_supported'
|
|
576
|
+
| 'closed_account'
|
|
577
|
+
| 'duplicate_submission'
|
|
578
|
+
| 'insufficient_funds'
|
|
579
|
+
| 'no_account'
|
|
580
|
+
| 'not_authorized'
|
|
581
|
+
| 'stale_dated'
|
|
582
|
+
| 'stop_payment'
|
|
583
|
+
| 'unknown_reason'
|
|
584
|
+
| 'unmatched_details'
|
|
585
|
+
| 'unreadable_image';
|
|
586
|
+
/**
|
|
587
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
588
|
+
* the check deposit was returned.
|
|
589
|
+
*/
|
|
590
|
+
returned_at: string;
|
|
591
|
+
/**
|
|
592
|
+
* The identifier of the transaction that reversed the original check deposit
|
|
593
|
+
* transaction.
|
|
594
|
+
*/
|
|
595
|
+
transaction_id: string;
|
|
596
|
+
}
|
|
597
|
+
interface CheckTransferIntention {
|
|
598
|
+
/**
|
|
599
|
+
* The city of the check's destination.
|
|
600
|
+
*/
|
|
601
|
+
address_city: string;
|
|
602
|
+
/**
|
|
603
|
+
* The street address of the check's destination.
|
|
604
|
+
*/
|
|
605
|
+
address_line1: string;
|
|
606
|
+
/**
|
|
607
|
+
* The second line of the address of the check's destination.
|
|
608
|
+
*/
|
|
609
|
+
address_line2: string | null;
|
|
610
|
+
/**
|
|
611
|
+
* The state of the check's destination.
|
|
612
|
+
*/
|
|
613
|
+
address_state: string;
|
|
614
|
+
/**
|
|
615
|
+
* The postal code of the check's destination.
|
|
616
|
+
*/
|
|
617
|
+
address_zip: string;
|
|
618
|
+
/**
|
|
619
|
+
* The transfer amount in USD cents.
|
|
620
|
+
*/
|
|
621
|
+
amount: number;
|
|
622
|
+
/**
|
|
623
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's
|
|
624
|
+
* currency.
|
|
625
|
+
*/
|
|
626
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
627
|
+
/**
|
|
628
|
+
* The name that will be printed on the check.
|
|
629
|
+
*/
|
|
630
|
+
recipient_name: string;
|
|
631
|
+
/**
|
|
632
|
+
* The identifier of the Check Transfer with which this is associated.
|
|
633
|
+
*/
|
|
634
|
+
transfer_id: string;
|
|
635
|
+
}
|
|
636
|
+
interface CheckTransferReturn {
|
|
637
|
+
/**
|
|
638
|
+
* If available, a document with additional information about the return.
|
|
639
|
+
*/
|
|
640
|
+
file_id: string | null;
|
|
641
|
+
/**
|
|
642
|
+
* The identifier of the returned Check Transfer.
|
|
643
|
+
*/
|
|
644
|
+
transfer_id: string;
|
|
645
|
+
}
|
|
646
|
+
interface CheckTransferRejection {
|
|
647
|
+
/**
|
|
648
|
+
* The identifier of the Check Transfer that led to this Transaction.
|
|
649
|
+
*/
|
|
650
|
+
transfer_id: string;
|
|
651
|
+
}
|
|
652
|
+
interface CheckTransferStopPaymentRequest {
|
|
653
|
+
/**
|
|
654
|
+
* The time the stop-payment was requested.
|
|
655
|
+
*/
|
|
656
|
+
requested_at: string;
|
|
657
|
+
/**
|
|
658
|
+
* The transaction ID of the corresponding credit transaction.
|
|
659
|
+
*/
|
|
660
|
+
transaction_id: string;
|
|
661
|
+
/**
|
|
662
|
+
* The ID of the check transfer that was stopped.
|
|
663
|
+
*/
|
|
664
|
+
transfer_id: string;
|
|
665
|
+
/**
|
|
666
|
+
* A constant representing the object's type. For this resource it will always be
|
|
667
|
+
* `check_transfer_stop_payment_request`.
|
|
668
|
+
*/
|
|
669
|
+
type: 'check_transfer_stop_payment_request';
|
|
670
|
+
}
|
|
671
|
+
interface DisputeResolution {
|
|
672
|
+
/**
|
|
673
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
674
|
+
* example, this is cents.
|
|
675
|
+
*/
|
|
676
|
+
amount: number;
|
|
677
|
+
/**
|
|
678
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
679
|
+
* transaction's currency.
|
|
680
|
+
*/
|
|
681
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
682
|
+
/**
|
|
683
|
+
* The identifier of the Transaction that was disputed.
|
|
684
|
+
*/
|
|
685
|
+
disputed_transaction_id: string;
|
|
686
|
+
}
|
|
687
|
+
interface EmpyrealCashDeposit {
|
|
688
|
+
/**
|
|
689
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
690
|
+
* example, this is cents.
|
|
691
|
+
*/
|
|
692
|
+
amount: number;
|
|
693
|
+
bag_id: string;
|
|
694
|
+
deposit_date: string;
|
|
695
|
+
}
|
|
696
|
+
interface InboundACHTransfer {
|
|
697
|
+
/**
|
|
698
|
+
* The amount in the minor unit of the destination account currency. For dollars,
|
|
699
|
+
* for example, this is cents.
|
|
700
|
+
*/
|
|
701
|
+
amount: number;
|
|
702
|
+
originator_company_descriptive_date: string | null;
|
|
703
|
+
originator_company_discretionary_data: string | null;
|
|
704
|
+
originator_company_entry_description: string;
|
|
705
|
+
originator_company_id: string;
|
|
706
|
+
originator_company_name: string;
|
|
707
|
+
receiver_id_number: string | null;
|
|
708
|
+
receiver_name: string | null;
|
|
709
|
+
trace_number: string;
|
|
710
|
+
}
|
|
711
|
+
interface InboundCheck {
|
|
712
|
+
/**
|
|
713
|
+
* The amount in the minor unit of the destination account currency. For dollars,
|
|
714
|
+
* for example, this is cents.
|
|
715
|
+
*/
|
|
716
|
+
amount: number;
|
|
717
|
+
check_front_image_file_id: string | null;
|
|
718
|
+
check_number: string | null;
|
|
719
|
+
check_rear_image_file_id: string | null;
|
|
720
|
+
/**
|
|
721
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
722
|
+
* transaction's currency.
|
|
723
|
+
*/
|
|
724
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
725
|
+
}
|
|
726
|
+
interface InboundInternationalACHTransfer {
|
|
727
|
+
/**
|
|
728
|
+
* The amount in the minor unit of the destination account currency. For dollars,
|
|
729
|
+
* for example, this is cents.
|
|
730
|
+
*/
|
|
731
|
+
amount: number;
|
|
732
|
+
destination_country_code: string;
|
|
733
|
+
destination_currency_code: string;
|
|
734
|
+
foreign_exchange_indicator: string;
|
|
735
|
+
foreign_exchange_reference: string | null;
|
|
736
|
+
foreign_exchange_reference_indicator: string;
|
|
737
|
+
foreign_payment_amount: number;
|
|
738
|
+
foreign_trace_number: string | null;
|
|
739
|
+
international_transaction_type_code: string;
|
|
740
|
+
originating_currency_code: string;
|
|
741
|
+
originating_depository_financial_institution_branch_country: string;
|
|
742
|
+
originating_depository_financial_institution_id: string;
|
|
743
|
+
originating_depository_financial_institution_id_qualifier: string;
|
|
744
|
+
originating_depository_financial_institution_name: string;
|
|
745
|
+
originator_city: string;
|
|
746
|
+
originator_company_entry_description: string;
|
|
747
|
+
originator_country: string;
|
|
748
|
+
originator_identification: string;
|
|
749
|
+
originator_name: string;
|
|
750
|
+
originator_postal_code: string | null;
|
|
751
|
+
originator_state_or_province: string | null;
|
|
752
|
+
originator_street_address: string;
|
|
753
|
+
payment_related_information: string | null;
|
|
754
|
+
payment_related_information2: string | null;
|
|
755
|
+
receiver_city: string;
|
|
756
|
+
receiver_country: string;
|
|
757
|
+
receiver_identification_number: string | null;
|
|
758
|
+
receiver_postal_code: string | null;
|
|
759
|
+
receiver_state_or_province: string | null;
|
|
760
|
+
receiver_street_address: string;
|
|
761
|
+
receiving_company_or_individual_name: string;
|
|
762
|
+
receiving_depository_financial_institution_country: string;
|
|
763
|
+
receiving_depository_financial_institution_id: string;
|
|
764
|
+
receiving_depository_financial_institution_id_qualifier: string;
|
|
765
|
+
receiving_depository_financial_institution_name: string;
|
|
766
|
+
trace_number: string;
|
|
767
|
+
}
|
|
768
|
+
interface InboundRealTimePaymentsTransferConfirmation {
|
|
769
|
+
/**
|
|
770
|
+
* The amount in the minor unit of the transfer's currency. For dollars, for
|
|
771
|
+
* example, this is cents.
|
|
772
|
+
*/
|
|
773
|
+
amount: number;
|
|
774
|
+
/**
|
|
775
|
+
* The name the sender of the transfer specified as the recipient of the transfer.
|
|
776
|
+
*/
|
|
777
|
+
creditor_name: string;
|
|
778
|
+
/**
|
|
779
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's
|
|
780
|
+
* currency. This will always be "USD" for a Real Time Payments transfer.
|
|
781
|
+
*/
|
|
782
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
783
|
+
/**
|
|
784
|
+
* The account number of the account that sent the transfer.
|
|
785
|
+
*/
|
|
786
|
+
debtor_account_number: string;
|
|
787
|
+
/**
|
|
788
|
+
* The name provided by the sender of the transfer.
|
|
789
|
+
*/
|
|
790
|
+
debtor_name: string;
|
|
791
|
+
/**
|
|
792
|
+
* The routing number of the account that sent the transfer.
|
|
793
|
+
*/
|
|
794
|
+
debtor_routing_number: string;
|
|
795
|
+
/**
|
|
796
|
+
* Additional information included with the transfer.
|
|
797
|
+
*/
|
|
798
|
+
remittance_information: string | null;
|
|
799
|
+
/**
|
|
800
|
+
* The Real Time Payments network identification of the transfer
|
|
801
|
+
*/
|
|
802
|
+
transaction_identification: string;
|
|
803
|
+
}
|
|
804
|
+
interface InboundWireDrawdownPaymentReversal {
|
|
805
|
+
/**
|
|
806
|
+
* The amount that was reversed.
|
|
807
|
+
*/
|
|
808
|
+
amount: number;
|
|
809
|
+
/**
|
|
810
|
+
* The description on the reversal message from Fedwire.
|
|
811
|
+
*/
|
|
812
|
+
description: string;
|
|
813
|
+
/**
|
|
814
|
+
* The Fedwire cycle date for the wire reversal.
|
|
815
|
+
*/
|
|
816
|
+
input_cycle_date: string;
|
|
817
|
+
/**
|
|
818
|
+
* The Fedwire transaction identifier.
|
|
819
|
+
*/
|
|
820
|
+
input_message_accountability_data: string;
|
|
821
|
+
/**
|
|
822
|
+
* The Fedwire sequence number.
|
|
823
|
+
*/
|
|
824
|
+
input_sequence_number: string;
|
|
825
|
+
/**
|
|
826
|
+
* The Fedwire input source identifier.
|
|
827
|
+
*/
|
|
828
|
+
input_source: string;
|
|
829
|
+
/**
|
|
830
|
+
* The Fedwire cycle date for the wire transfer that was reversed.
|
|
831
|
+
*/
|
|
832
|
+
previous_message_input_cycle_date: string;
|
|
833
|
+
/**
|
|
834
|
+
* The Fedwire transaction identifier for the wire transfer that was reversed.
|
|
835
|
+
*/
|
|
836
|
+
previous_message_input_message_accountability_data: string;
|
|
837
|
+
/**
|
|
838
|
+
* The Fedwire sequence number for the wire transfer that was reversed.
|
|
839
|
+
*/
|
|
840
|
+
previous_message_input_sequence_number: string;
|
|
841
|
+
/**
|
|
842
|
+
* The Fedwire input source identifier for the wire transfer that was reversed.
|
|
843
|
+
*/
|
|
844
|
+
previous_message_input_source: string;
|
|
845
|
+
}
|
|
846
|
+
interface InboundWireDrawdownPayment {
|
|
847
|
+
/**
|
|
848
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
849
|
+
* example, this is cents.
|
|
850
|
+
*/
|
|
851
|
+
amount: number;
|
|
852
|
+
beneficiary_address_line1: string | null;
|
|
853
|
+
beneficiary_address_line2: string | null;
|
|
854
|
+
beneficiary_address_line3: string | null;
|
|
855
|
+
beneficiary_name: string | null;
|
|
856
|
+
beneficiary_reference: string | null;
|
|
857
|
+
description: string;
|
|
858
|
+
input_message_accountability_data: string | null;
|
|
859
|
+
originator_address_line1: string | null;
|
|
860
|
+
originator_address_line2: string | null;
|
|
861
|
+
originator_address_line3: string | null;
|
|
862
|
+
originator_name: string | null;
|
|
863
|
+
originator_to_beneficiary_information: string | null;
|
|
864
|
+
}
|
|
865
|
+
interface InboundWireReversal {
|
|
866
|
+
/**
|
|
867
|
+
* The amount that was reversed.
|
|
868
|
+
*/
|
|
869
|
+
amount: number;
|
|
870
|
+
/**
|
|
871
|
+
* The description on the reversal message from Fedwire.
|
|
872
|
+
*/
|
|
873
|
+
description: string;
|
|
874
|
+
/**
|
|
875
|
+
* Additional financial institution information included in the wire reversal.
|
|
876
|
+
*/
|
|
877
|
+
financial_institution_to_financial_institution_information: string | null;
|
|
878
|
+
/**
|
|
879
|
+
* The Fedwire cycle date for the wire reversal.
|
|
880
|
+
*/
|
|
881
|
+
input_cycle_date: string;
|
|
882
|
+
/**
|
|
883
|
+
* The Fedwire transaction identifier.
|
|
884
|
+
*/
|
|
885
|
+
input_message_accountability_data: string;
|
|
886
|
+
/**
|
|
887
|
+
* The Fedwire sequence number.
|
|
888
|
+
*/
|
|
889
|
+
input_sequence_number: string;
|
|
890
|
+
/**
|
|
891
|
+
* The Fedwire input source identifier.
|
|
892
|
+
*/
|
|
893
|
+
input_source: string;
|
|
894
|
+
/**
|
|
895
|
+
* The Fedwire cycle date for the wire transfer that was reversed.
|
|
896
|
+
*/
|
|
897
|
+
previous_message_input_cycle_date: string;
|
|
898
|
+
/**
|
|
899
|
+
* The Fedwire transaction identifier for the wire transfer that was reversed.
|
|
900
|
+
*/
|
|
901
|
+
previous_message_input_message_accountability_data: string;
|
|
902
|
+
/**
|
|
903
|
+
* The Fedwire sequence number for the wire transfer that was reversed.
|
|
904
|
+
*/
|
|
905
|
+
previous_message_input_sequence_number: string;
|
|
906
|
+
/**
|
|
907
|
+
* The Fedwire input source identifier for the wire transfer that was reversed.
|
|
908
|
+
*/
|
|
909
|
+
previous_message_input_source: string;
|
|
910
|
+
/**
|
|
911
|
+
* Information included in the wire reversal for the receiving financial
|
|
912
|
+
* institution.
|
|
913
|
+
*/
|
|
914
|
+
receiver_financial_institution_information: string | null;
|
|
915
|
+
}
|
|
916
|
+
interface InboundWireTransfer {
|
|
917
|
+
/**
|
|
918
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
919
|
+
* example, this is cents.
|
|
920
|
+
*/
|
|
921
|
+
amount: number;
|
|
922
|
+
beneficiary_address_line1: string | null;
|
|
923
|
+
beneficiary_address_line2: string | null;
|
|
924
|
+
beneficiary_address_line3: string | null;
|
|
925
|
+
beneficiary_name: string | null;
|
|
926
|
+
beneficiary_reference: string | null;
|
|
927
|
+
description: string;
|
|
928
|
+
input_message_accountability_data: string | null;
|
|
929
|
+
originator_address_line1: string | null;
|
|
930
|
+
originator_address_line2: string | null;
|
|
931
|
+
originator_address_line3: string | null;
|
|
932
|
+
originator_name: string | null;
|
|
933
|
+
originator_to_beneficiary_information: string | null;
|
|
934
|
+
originator_to_beneficiary_information_line1: string | null;
|
|
935
|
+
originator_to_beneficiary_information_line2: string | null;
|
|
936
|
+
originator_to_beneficiary_information_line3: string | null;
|
|
937
|
+
originator_to_beneficiary_information_line4: string | null;
|
|
938
|
+
}
|
|
939
|
+
interface InterestPayment {
|
|
940
|
+
/**
|
|
941
|
+
* The account on which the interest was accrued.
|
|
942
|
+
*/
|
|
943
|
+
accrued_on_account_id: string | null;
|
|
944
|
+
/**
|
|
945
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
946
|
+
* example, this is cents.
|
|
947
|
+
*/
|
|
948
|
+
amount: number;
|
|
949
|
+
/**
|
|
950
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
|
|
951
|
+
* currency.
|
|
952
|
+
*/
|
|
953
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
954
|
+
/**
|
|
955
|
+
* The end of the period for which this transaction paid interest.
|
|
956
|
+
*/
|
|
957
|
+
period_end: string;
|
|
958
|
+
/**
|
|
959
|
+
* The start of the period for which this transaction paid interest.
|
|
960
|
+
*/
|
|
961
|
+
period_start: string;
|
|
962
|
+
}
|
|
963
|
+
interface InternalSource {
|
|
964
|
+
/**
|
|
965
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
966
|
+
* example, this is cents.
|
|
967
|
+
*/
|
|
968
|
+
amount: number;
|
|
969
|
+
/**
|
|
970
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
|
|
971
|
+
* currency.
|
|
972
|
+
*/
|
|
973
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
974
|
+
reason:
|
|
975
|
+
| 'bank_migration'
|
|
976
|
+
| 'cashback'
|
|
977
|
+
| 'empyreal_adjustment'
|
|
978
|
+
| 'error'
|
|
979
|
+
| 'error_correction'
|
|
980
|
+
| 'fees'
|
|
981
|
+
| 'interest'
|
|
982
|
+
| 'sample_funds'
|
|
983
|
+
| 'sample_funds_return';
|
|
984
|
+
}
|
|
985
|
+
interface CardRouteRefund {
|
|
986
|
+
/**
|
|
987
|
+
* The refunded amount in the minor unit of the refunded currency. For dollars, for
|
|
988
|
+
* example, this is cents.
|
|
989
|
+
*/
|
|
990
|
+
amount: number;
|
|
991
|
+
/**
|
|
992
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the refund
|
|
993
|
+
* currency.
|
|
994
|
+
*/
|
|
995
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
996
|
+
merchant_acceptor_id: string;
|
|
997
|
+
merchant_category_code: string | null;
|
|
998
|
+
merchant_city: string | null;
|
|
999
|
+
merchant_country: string;
|
|
1000
|
+
merchant_descriptor: string;
|
|
1001
|
+
merchant_state: string | null;
|
|
1002
|
+
}
|
|
1003
|
+
interface CardRouteSettlement {
|
|
1004
|
+
/**
|
|
1005
|
+
* The settled amount in the minor unit of the settlement currency. For dollars,
|
|
1006
|
+
* for example, this is cents.
|
|
1007
|
+
*/
|
|
1008
|
+
amount: number;
|
|
1009
|
+
/**
|
|
1010
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the settlement
|
|
1011
|
+
* currency.
|
|
1012
|
+
*/
|
|
1013
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
1014
|
+
merchant_acceptor_id: string;
|
|
1015
|
+
merchant_category_code: string | null;
|
|
1016
|
+
merchant_city: string | null;
|
|
1017
|
+
merchant_country: string | null;
|
|
1018
|
+
merchant_descriptor: string;
|
|
1019
|
+
merchant_state: string | null;
|
|
1020
|
+
}
|
|
1021
|
+
interface SampleFunds {
|
|
1022
|
+
/**
|
|
1023
|
+
* Where the sample funds came from.
|
|
1024
|
+
*/
|
|
1025
|
+
originator: string;
|
|
1026
|
+
}
|
|
1027
|
+
interface WireDrawdownPaymentIntention {
|
|
1028
|
+
account_number: string;
|
|
1029
|
+
/**
|
|
1030
|
+
* The transfer amount in USD cents.
|
|
1031
|
+
*/
|
|
1032
|
+
amount: number;
|
|
1033
|
+
message_to_recipient: string;
|
|
1034
|
+
routing_number: string;
|
|
1035
|
+
transfer_id: string;
|
|
1036
|
+
}
|
|
1037
|
+
interface WireDrawdownPaymentRejection {
|
|
1038
|
+
transfer_id: string;
|
|
1039
|
+
}
|
|
1040
|
+
interface WireTransferIntention {
|
|
1041
|
+
/**
|
|
1042
|
+
* The destination account number.
|
|
1043
|
+
*/
|
|
1044
|
+
account_number: string;
|
|
1045
|
+
/**
|
|
1046
|
+
* The transfer amount in USD cents.
|
|
1047
|
+
*/
|
|
1048
|
+
amount: number;
|
|
1049
|
+
/**
|
|
1050
|
+
* The message that will show on the recipient's bank statement.
|
|
1051
|
+
*/
|
|
1052
|
+
message_to_recipient: string;
|
|
1053
|
+
/**
|
|
1054
|
+
* The American Bankers' Association (ABA) Routing Transit Number (RTN).
|
|
1055
|
+
*/
|
|
1056
|
+
routing_number: string;
|
|
1057
|
+
transfer_id: string;
|
|
1058
|
+
}
|
|
1059
|
+
interface WireTransferRejection {
|
|
1060
|
+
transfer_id: string;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
interface DeclinedTransaction {
|
|
1065
|
+
/**
|
|
1066
|
+
* The identifier for the Account the Declined Transaction belongs to.
|
|
1067
|
+
*/
|
|
1068
|
+
account_id: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* The Declined Transaction amount in the minor unit of its currency. For dollars,
|
|
1071
|
+
* for example, this is cents.
|
|
1072
|
+
*/
|
|
1073
|
+
amount: number;
|
|
1074
|
+
/**
|
|
1075
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the
|
|
1076
|
+
* Transaction occured.
|
|
1077
|
+
*/
|
|
1078
|
+
created_at: string;
|
|
1079
|
+
/**
|
|
1080
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Declined
|
|
1081
|
+
* Transaction's currency. This will match the currency on the Declined
|
|
1082
|
+
* Transcation's Account.
|
|
1083
|
+
*/
|
|
1084
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
1085
|
+
/**
|
|
1086
|
+
* This is the description the vendor provides.
|
|
1087
|
+
*/
|
|
1088
|
+
description: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* The Declined Transaction identifier.
|
|
1091
|
+
*/
|
|
1092
|
+
id: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* The identifier for the route this Declined Transaction came through. Routes are
|
|
1095
|
+
* things like cards and ACH details.
|
|
1096
|
+
*/
|
|
1097
|
+
route_id: string | null;
|
|
1098
|
+
/**
|
|
1099
|
+
* The type of the route this Declined Transaction came through.
|
|
1100
|
+
*/
|
|
1101
|
+
route_type: string | null;
|
|
1102
|
+
/**
|
|
1103
|
+
* This is an object giving more details on the network-level event that caused the
|
|
1104
|
+
* Declined Transaction. For example, for a card transaction this lists the
|
|
1105
|
+
* merchant's industry and location. Note that for backwards compatibility reasons,
|
|
1106
|
+
* additional undocumented keys may appear in this object. These should be treated
|
|
1107
|
+
* as deprecated and will be removed in the future.
|
|
1108
|
+
*/
|
|
1109
|
+
source: DeclinedTransaction.Source;
|
|
1110
|
+
/**
|
|
1111
|
+
* A constant representing the object's type. For this resource it will always be
|
|
1112
|
+
* `declined_transaction`.
|
|
1113
|
+
*/
|
|
1114
|
+
type: 'declined_transaction';
|
|
1115
|
+
}
|
|
1116
|
+
namespace DeclinedTransaction {
|
|
1117
|
+
interface Source {
|
|
1118
|
+
/**
|
|
1119
|
+
* A ACH Decline object. This field will be present in the JSON response if and
|
|
1120
|
+
* only if `category` is equal to `ach_decline`.
|
|
1121
|
+
*/
|
|
1122
|
+
ach_decline: Source.ACHDecline | null;
|
|
1123
|
+
/**
|
|
1124
|
+
* A Card Decline object. This field will be present in the JSON response if and
|
|
1125
|
+
* only if `category` is equal to `card_decline`.
|
|
1126
|
+
*/
|
|
1127
|
+
card_decline: Source.CardDecline | null;
|
|
1128
|
+
/**
|
|
1129
|
+
* A Deprecated Card Decline object. This field will be present in the JSON
|
|
1130
|
+
* response if and only if `category` is equal to `card_route_decline`.
|
|
1131
|
+
*/
|
|
1132
|
+
card_route_decline: Source.CardRouteDecline | null;
|
|
1133
|
+
/**
|
|
1134
|
+
* The type of decline that took place. We may add additional possible values for
|
|
1135
|
+
* this enum over time; your application should be able to handle such additions
|
|
1136
|
+
* gracefully.
|
|
1137
|
+
*/
|
|
1138
|
+
category:
|
|
1139
|
+
| 'ach_decline'
|
|
1140
|
+
| 'card_decline'
|
|
1141
|
+
| 'check_decline'
|
|
1142
|
+
| 'inbound_real_time_payments_transfer_decline'
|
|
1143
|
+
| 'international_ach_decline'
|
|
1144
|
+
| 'card_route_decline'
|
|
1145
|
+
| 'other';
|
|
1146
|
+
/**
|
|
1147
|
+
* A Check Decline object. This field will be present in the JSON response if and
|
|
1148
|
+
* only if `category` is equal to `check_decline`.
|
|
1149
|
+
*/
|
|
1150
|
+
check_decline: Source.CheckDecline | null;
|
|
1151
|
+
/**
|
|
1152
|
+
* A Inbound Real Time Payments Transfer Decline object. This field will be present
|
|
1153
|
+
* in the JSON response if and only if `category` is equal to
|
|
1154
|
+
* `inbound_real_time_payments_transfer_decline`.
|
|
1155
|
+
*/
|
|
1156
|
+
inbound_real_time_payments_transfer_decline: Source.InboundRealTimePaymentsTransferDecline | null;
|
|
1157
|
+
/**
|
|
1158
|
+
* A International ACH Decline object. This field will be present in the JSON
|
|
1159
|
+
* response if and only if `category` is equal to `international_ach_decline`.
|
|
1160
|
+
*/
|
|
1161
|
+
international_ach_decline: Source.InternationalACHDecline | null;
|
|
1162
|
+
}
|
|
1163
|
+
namespace Source {
|
|
1164
|
+
interface ACHDecline {
|
|
1165
|
+
/**
|
|
1166
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
1167
|
+
* dollars, for example, this is cents.
|
|
1168
|
+
*/
|
|
1169
|
+
amount: number;
|
|
1170
|
+
originator_company_descriptive_date: string | null;
|
|
1171
|
+
originator_company_discretionary_data: string | null;
|
|
1172
|
+
originator_company_id: string;
|
|
1173
|
+
originator_company_name: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* Why the ACH transfer was declined.
|
|
1176
|
+
*/
|
|
1177
|
+
reason:
|
|
1178
|
+
| 'ach_route_canceled'
|
|
1179
|
+
| 'ach_route_disabled'
|
|
1180
|
+
| 'breaches_limit'
|
|
1181
|
+
| 'credit_entry_refused_by_receiver'
|
|
1182
|
+
| 'duplicate_return'
|
|
1183
|
+
| 'entity_not_active'
|
|
1184
|
+
| 'transaction_not_allowed'
|
|
1185
|
+
| 'group_locked'
|
|
1186
|
+
| 'insufficient_funds'
|
|
1187
|
+
| 'no_ach_route'
|
|
1188
|
+
| 'originator_request';
|
|
1189
|
+
receiver_id_number: string | null;
|
|
1190
|
+
receiver_name: string | null;
|
|
1191
|
+
trace_number: string;
|
|
1192
|
+
}
|
|
1193
|
+
interface CardDecline {
|
|
1194
|
+
/**
|
|
1195
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
1196
|
+
* dollars, for example, this is cents.
|
|
1197
|
+
*/
|
|
1198
|
+
amount: number;
|
|
1199
|
+
/**
|
|
1200
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
|
|
1201
|
+
* account currency.
|
|
1202
|
+
*/
|
|
1203
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
1204
|
+
/**
|
|
1205
|
+
* If the authorization was attempted using a Digital Wallet Token (such as an
|
|
1206
|
+
* Apple Pay purchase), the identifier of the token that was used.
|
|
1207
|
+
*/
|
|
1208
|
+
digital_wallet_token_id: string | null;
|
|
1209
|
+
/**
|
|
1210
|
+
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
1211
|
+
* is transacting with.
|
|
1212
|
+
*/
|
|
1213
|
+
merchant_acceptor_id: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
1216
|
+
* card is transacting with.
|
|
1217
|
+
*/
|
|
1218
|
+
merchant_category_code: string | null;
|
|
1219
|
+
/**
|
|
1220
|
+
* The city the merchant resides in.
|
|
1221
|
+
*/
|
|
1222
|
+
merchant_city: string | null;
|
|
1223
|
+
/**
|
|
1224
|
+
* The country the merchant resides in.
|
|
1225
|
+
*/
|
|
1226
|
+
merchant_country: string | null;
|
|
1227
|
+
/**
|
|
1228
|
+
* The merchant descriptor of the merchant the card is transacting with.
|
|
1229
|
+
*/
|
|
1230
|
+
merchant_descriptor: string;
|
|
1231
|
+
/**
|
|
1232
|
+
* The state the merchant resides in.
|
|
1233
|
+
*/
|
|
1234
|
+
merchant_state: string | null;
|
|
1235
|
+
/**
|
|
1236
|
+
* The payment network used to process this card authorization
|
|
1237
|
+
*/
|
|
1238
|
+
network: 'visa';
|
|
1239
|
+
/**
|
|
1240
|
+
* Fields specific to the `network`
|
|
1241
|
+
*/
|
|
1242
|
+
network_details: CardDecline.NetworkDetails;
|
|
1243
|
+
/**
|
|
1244
|
+
* The identifier of the Real-Time Decision sent to approve or decline this
|
|
1245
|
+
* transaction.
|
|
1246
|
+
*/
|
|
1247
|
+
real_time_decision_id: string | null;
|
|
1248
|
+
/**
|
|
1249
|
+
* Why the transaction was declined.
|
|
1250
|
+
*/
|
|
1251
|
+
reason:
|
|
1252
|
+
| 'card_not_active'
|
|
1253
|
+
| 'entity_not_active'
|
|
1254
|
+
| 'group_locked'
|
|
1255
|
+
| 'insufficient_funds'
|
|
1256
|
+
| 'cvv2_mismatch'
|
|
1257
|
+
| 'transaction_not_allowed'
|
|
1258
|
+
| 'breaches_limit'
|
|
1259
|
+
| 'webhook_declined'
|
|
1260
|
+
| 'webhook_timed_out'
|
|
1261
|
+
| 'declined_by_stand_in_processing';
|
|
1262
|
+
}
|
|
1263
|
+
namespace CardDecline {
|
|
1264
|
+
interface NetworkDetails {
|
|
1265
|
+
/**
|
|
1266
|
+
* Fields specific to the `visa` network
|
|
1267
|
+
*/
|
|
1268
|
+
visa: NetworkDetails.Visa;
|
|
1269
|
+
}
|
|
1270
|
+
namespace NetworkDetails {
|
|
1271
|
+
interface Visa {
|
|
1272
|
+
/**
|
|
1273
|
+
* For electronic commerce transactions, this identifies the level of security used
|
|
1274
|
+
* in obtaining the customer's payment credential. For mail or telephone order
|
|
1275
|
+
* transactions, identifies the type of mail or telephone order.
|
|
1276
|
+
*/
|
|
1277
|
+
electronic_commerce_indicator:
|
|
1278
|
+
| 'mail_phone_order'
|
|
1279
|
+
| 'recurring'
|
|
1280
|
+
| 'installment'
|
|
1281
|
+
| 'unknown_mail_phone_order'
|
|
1282
|
+
| 'secure_electronic_commerce'
|
|
1283
|
+
| 'non_authenticated_security_transaction_at_3ds_capable_merchant'
|
|
1284
|
+
| 'non_authenticated_security_transaction'
|
|
1285
|
+
| 'non_secure_transaction'
|
|
1286
|
+
| null;
|
|
1287
|
+
/**
|
|
1288
|
+
* The method used to enter the cardholder's primary account number and card
|
|
1289
|
+
* expiration date
|
|
1290
|
+
*/
|
|
1291
|
+
point_of_service_entry_mode: Shared.PointOfServiceEntryMode;
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
interface CheckDecline {
|
|
1296
|
+
/**
|
|
1297
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
1298
|
+
* dollars, for example, this is cents.
|
|
1299
|
+
*/
|
|
1300
|
+
amount: number;
|
|
1301
|
+
auxiliary_on_us: string | null;
|
|
1302
|
+
/**
|
|
1303
|
+
* Why the check was declined.
|
|
1304
|
+
*/
|
|
1305
|
+
reason:
|
|
1306
|
+
| 'ach_route_canceled'
|
|
1307
|
+
| 'ach_route_disabled'
|
|
1308
|
+
| 'breaches_limit'
|
|
1309
|
+
| 'entity_not_active'
|
|
1310
|
+
| 'group_locked'
|
|
1311
|
+
| 'insufficient_funds'
|
|
1312
|
+
| 'unable_to_locate_account'
|
|
1313
|
+
| 'unable_to_process'
|
|
1314
|
+
| 'refer_to_image'
|
|
1315
|
+
| 'stop_payment_requested'
|
|
1316
|
+
| 'returned';
|
|
1317
|
+
}
|
|
1318
|
+
interface InboundRealTimePaymentsTransferDecline {
|
|
1319
|
+
/**
|
|
1320
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
1321
|
+
* dollars, for example, this is cents.
|
|
1322
|
+
*/
|
|
1323
|
+
amount: number;
|
|
1324
|
+
/**
|
|
1325
|
+
* The name the sender of the transfer specified as the recipient of the transfer.
|
|
1326
|
+
*/
|
|
1327
|
+
creditor_name: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined
|
|
1330
|
+
* transfer's currency. This will always be "USD" for a Real Time Payments
|
|
1331
|
+
* transfer.
|
|
1332
|
+
*/
|
|
1333
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
1334
|
+
/**
|
|
1335
|
+
* The account number of the account that sent the transfer.
|
|
1336
|
+
*/
|
|
1337
|
+
debtor_account_number: string;
|
|
1338
|
+
/**
|
|
1339
|
+
* The name provided by the sender of the transfer.
|
|
1340
|
+
*/
|
|
1341
|
+
debtor_name: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* The routing number of the account that sent the transfer.
|
|
1344
|
+
*/
|
|
1345
|
+
debtor_routing_number: string;
|
|
1346
|
+
/**
|
|
1347
|
+
* Why the transfer was declined.
|
|
1348
|
+
*/
|
|
1349
|
+
reason:
|
|
1350
|
+
| 'account_number_canceled'
|
|
1351
|
+
| 'account_number_disabled'
|
|
1352
|
+
| 'group_locked'
|
|
1353
|
+
| 'entity_not_active'
|
|
1354
|
+
| 'real_time_payments_not_enabled';
|
|
1355
|
+
/**
|
|
1356
|
+
* Additional information included with the transfer.
|
|
1357
|
+
*/
|
|
1358
|
+
remittance_information: string | null;
|
|
1359
|
+
/**
|
|
1360
|
+
* The Real Time Payments network identification of the declined transfer.
|
|
1361
|
+
*/
|
|
1362
|
+
transaction_identification: string;
|
|
1363
|
+
}
|
|
1364
|
+
interface InternationalACHDecline {
|
|
1365
|
+
/**
|
|
1366
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
1367
|
+
* dollars, for example, this is cents.
|
|
1368
|
+
*/
|
|
1369
|
+
amount: number;
|
|
1370
|
+
destination_country_code: string;
|
|
1371
|
+
destination_currency_code: string;
|
|
1372
|
+
foreign_exchange_indicator: string;
|
|
1373
|
+
foreign_exchange_reference: string | null;
|
|
1374
|
+
foreign_exchange_reference_indicator: string;
|
|
1375
|
+
foreign_payment_amount: number;
|
|
1376
|
+
foreign_trace_number: string | null;
|
|
1377
|
+
international_transaction_type_code: string;
|
|
1378
|
+
originating_currency_code: string;
|
|
1379
|
+
originating_depository_financial_institution_branch_country: string;
|
|
1380
|
+
originating_depository_financial_institution_id: string;
|
|
1381
|
+
originating_depository_financial_institution_id_qualifier: string;
|
|
1382
|
+
originating_depository_financial_institution_name: string;
|
|
1383
|
+
originator_city: string;
|
|
1384
|
+
originator_company_entry_description: string;
|
|
1385
|
+
originator_country: string;
|
|
1386
|
+
originator_identification: string;
|
|
1387
|
+
originator_name: string;
|
|
1388
|
+
originator_postal_code: string | null;
|
|
1389
|
+
originator_state_or_province: string | null;
|
|
1390
|
+
originator_street_address: string;
|
|
1391
|
+
payment_related_information: string | null;
|
|
1392
|
+
payment_related_information2: string | null;
|
|
1393
|
+
receiver_city: string;
|
|
1394
|
+
receiver_country: string;
|
|
1395
|
+
receiver_identification_number: string | null;
|
|
1396
|
+
receiver_postal_code: string | null;
|
|
1397
|
+
receiver_state_or_province: string | null;
|
|
1398
|
+
receiver_street_address: string;
|
|
1399
|
+
receiving_company_or_individual_name: string;
|
|
1400
|
+
receiving_depository_financial_institution_country: string;
|
|
1401
|
+
receiving_depository_financial_institution_id: string;
|
|
1402
|
+
receiving_depository_financial_institution_id_qualifier: string;
|
|
1403
|
+
receiving_depository_financial_institution_name: string;
|
|
1404
|
+
trace_number: string;
|
|
1405
|
+
}
|
|
1406
|
+
interface CardRouteDecline {
|
|
1407
|
+
/**
|
|
1408
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
1409
|
+
* dollars, for example, this is cents.
|
|
1410
|
+
*/
|
|
1411
|
+
amount: number;
|
|
1412
|
+
/**
|
|
1413
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
|
|
1414
|
+
* account currency.
|
|
1415
|
+
*/
|
|
1416
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
1417
|
+
merchant_acceptor_id: string;
|
|
1418
|
+
merchant_category_code: string | null;
|
|
1419
|
+
merchant_city: string | null;
|
|
1420
|
+
merchant_country: string;
|
|
1421
|
+
merchant_descriptor: string;
|
|
1422
|
+
merchant_state: string | null;
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
export interface ACHTransferCreateInboundParams {
|
|
1428
|
+
/**
|
|
1429
|
+
* The identifier of the Account Number the inbound ACH Transfer is for.
|
|
1430
|
+
*/
|
|
1431
|
+
account_number_id: string;
|
|
1432
|
+
/**
|
|
1433
|
+
* The transfer amount in cents. A positive amount originates a credit transfer
|
|
1434
|
+
* pushing funds to the receiving account. A negative amount originates a debit
|
|
1435
|
+
* transfer pulling funds from the receiving account.
|
|
1436
|
+
*/
|
|
1437
|
+
amount: number;
|
|
1438
|
+
/**
|
|
1439
|
+
* The description of the date of the transfer.
|
|
1440
|
+
*/
|
|
1441
|
+
company_descriptive_date?: string;
|
|
1442
|
+
/**
|
|
1443
|
+
* Data associated with the transfer set by the sender.
|
|
1444
|
+
*/
|
|
1445
|
+
company_discretionary_data?: string;
|
|
1446
|
+
/**
|
|
1447
|
+
* The description of the transfer set by the sender.
|
|
1448
|
+
*/
|
|
1449
|
+
company_entry_description?: string;
|
|
1450
|
+
/**
|
|
1451
|
+
* The sender's company id.
|
|
1452
|
+
*/
|
|
1453
|
+
company_id?: string;
|
|
1454
|
+
/**
|
|
1455
|
+
* The name of the sender.
|
|
1456
|
+
*/
|
|
1457
|
+
company_name?: string;
|
|
1458
|
+
}
|
|
1459
|
+
export interface ACHTransferReturnParams {
|
|
1460
|
+
/**
|
|
1461
|
+
* The reason why the Federal Reserve or destination bank returned this transfer.
|
|
1462
|
+
* Defaults to `no_account`.
|
|
1463
|
+
*/
|
|
1464
|
+
reason?:
|
|
1465
|
+
| 'insufficient_fund'
|
|
1466
|
+
| 'no_account'
|
|
1467
|
+
| 'account_closed'
|
|
1468
|
+
| 'invalid_account_number_structure'
|
|
1469
|
+
| 'account_frozen_entry_returned_per_ofac_instruction'
|
|
1470
|
+
| 'credit_entry_refused_by_receiver'
|
|
1471
|
+
| 'unauthorized_debit_to_consumer_account_using_corporate_sec_code'
|
|
1472
|
+
| 'corporate_customer_advised_not_authorized'
|
|
1473
|
+
| 'payment_stopped'
|
|
1474
|
+
| 'non_transaction_account'
|
|
1475
|
+
| 'uncollected_funds'
|
|
1476
|
+
| 'routing_number_check_digit_error'
|
|
1477
|
+
| 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
|
|
1478
|
+
| 'amount_field_error'
|
|
1479
|
+
| 'authorization_revoked_by_customer'
|
|
1480
|
+
| 'invalid_ach_routing_number'
|
|
1481
|
+
| 'file_record_edit_criteria'
|
|
1482
|
+
| 'enr_invalid_individual_name'
|
|
1483
|
+
| 'returned_per_odfi_request'
|
|
1484
|
+
| 'addenda_error'
|
|
1485
|
+
| 'limited_participation_dfi'
|
|
1486
|
+
| 'incorrectly_coded_outbound_international_payment'
|
|
1487
|
+
| 'other';
|
|
1488
|
+
}
|