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,242 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from '~/core';
|
|
4
|
+
import { APIResource } from '~/resource';
|
|
5
|
+
import { isRequestOptions } from '~/core';
|
|
6
|
+
import { Page, PageParams } from '~/pagination';
|
|
7
|
+
|
|
8
|
+
export class ACHPrenotifications extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create an ACH Prenotification
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
body: ACHPrenotificationCreateParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Promise<Core.APIResponse<ACHPrenotification>> {
|
|
16
|
+
return this.post('/ach_prenotifications', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve an ACH Prenotification
|
|
21
|
+
*/
|
|
22
|
+
retrieve(
|
|
23
|
+
achPrenotificationId: string,
|
|
24
|
+
options?: Core.RequestOptions,
|
|
25
|
+
): Promise<Core.APIResponse<ACHPrenotification>> {
|
|
26
|
+
return this.get(`/ach_prenotifications/${achPrenotificationId}`, options);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* List ACH Prenotifications
|
|
31
|
+
*/
|
|
32
|
+
list(
|
|
33
|
+
query?: ACHPrenotificationListParams,
|
|
34
|
+
options?: Core.RequestOptions,
|
|
35
|
+
): Core.PagePromise<ACHPrenotificationsPage>;
|
|
36
|
+
list(options?: Core.RequestOptions): Core.PagePromise<ACHPrenotificationsPage>;
|
|
37
|
+
list(
|
|
38
|
+
query: ACHPrenotificationListParams | Core.RequestOptions = {},
|
|
39
|
+
options?: Core.RequestOptions,
|
|
40
|
+
): Core.PagePromise<ACHPrenotificationsPage> {
|
|
41
|
+
if (isRequestOptions(query)) {
|
|
42
|
+
return this.list({}, query);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return this.getAPIList('/ach_prenotifications', ACHPrenotificationsPage, { query, ...options });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class ACHPrenotificationsPage extends Page<ACHPrenotification> {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* ACH Prenotifications are one way you can verify account and routing numbers by
|
|
53
|
+
* Automated Clearing House (ACH).
|
|
54
|
+
*/
|
|
55
|
+
export interface ACHPrenotification {
|
|
56
|
+
/**
|
|
57
|
+
* The destination account number.
|
|
58
|
+
*/
|
|
59
|
+
account_number: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Additional information for the recipient.
|
|
63
|
+
*/
|
|
64
|
+
addendum: string | null;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The description of the date of the notification.
|
|
68
|
+
*/
|
|
69
|
+
company_descriptive_date: string | null;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Optional data associated with the notification.
|
|
73
|
+
*/
|
|
74
|
+
company_discretionary_data: string | null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The description of the notification.
|
|
78
|
+
*/
|
|
79
|
+
company_entry_description: string | null;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The name by which you know the company.
|
|
83
|
+
*/
|
|
84
|
+
company_name: string | null;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
88
|
+
* the prenotification was created.
|
|
89
|
+
*/
|
|
90
|
+
created_at: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* If the notification is for a future credit or debit.
|
|
94
|
+
*/
|
|
95
|
+
credit_debit_indicator: 'credit' | 'debit' | null;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The effective date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
99
|
+
*/
|
|
100
|
+
effective_date: string | null;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The ACH Prenotification's identifier.
|
|
104
|
+
*/
|
|
105
|
+
id: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* If your prenotification is returned, this will contain details of the return.
|
|
109
|
+
*/
|
|
110
|
+
prenotification_return: ACHPrenotification.PrenotificationReturn | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The American Bankers' Association (ABA) Routing Transit Number (RTN).
|
|
114
|
+
*/
|
|
115
|
+
routing_number: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* The lifecycle status of the ACH Prenotification.
|
|
119
|
+
*/
|
|
120
|
+
status: 'pending_submitting' | 'requires_attention' | 'returned' | 'submitted';
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* A constant representing the object's type. For this resource it will always be
|
|
124
|
+
* `ach_prenotification`.
|
|
125
|
+
*/
|
|
126
|
+
type: 'ach_prenotification';
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export namespace ACHPrenotification {
|
|
130
|
+
export interface PrenotificationReturn {
|
|
131
|
+
/**
|
|
132
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
133
|
+
* the Prenotification was returned.
|
|
134
|
+
*/
|
|
135
|
+
created_at: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Why the Prenotification was returned.
|
|
139
|
+
*/
|
|
140
|
+
return_reason_code: string;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface ACHPrenotificationCreateParams {
|
|
145
|
+
/**
|
|
146
|
+
* The account number for the destination account.
|
|
147
|
+
*/
|
|
148
|
+
account_number: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
|
|
152
|
+
* destination account.
|
|
153
|
+
*/
|
|
154
|
+
routing_number: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Additional information that will be sent to the recipient.
|
|
158
|
+
*/
|
|
159
|
+
addendum?: string;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* The description of the date of the transfer.
|
|
163
|
+
*/
|
|
164
|
+
company_descriptive_date?: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* The data you choose to associate with the transfer.
|
|
168
|
+
*/
|
|
169
|
+
company_discretionary_data?: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The description of the transfer you wish to be shown to the recipient.
|
|
173
|
+
*/
|
|
174
|
+
company_entry_description?: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The name by which the recipient knows you.
|
|
178
|
+
*/
|
|
179
|
+
company_name?: string;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Whether the Prenotification is for a future debit or credit.
|
|
183
|
+
*/
|
|
184
|
+
credit_debit_indicator?: 'credit' | 'debit';
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* The transfer effective date in
|
|
188
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
189
|
+
*/
|
|
190
|
+
effective_date?: string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Your identifer for the transfer recipient.
|
|
194
|
+
*/
|
|
195
|
+
individual_id?: string;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The name of the transfer recipient. This value is information and not verified
|
|
199
|
+
* by the recipient's bank.
|
|
200
|
+
*/
|
|
201
|
+
individual_name?: string;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The Standard Entry Class (SEC) code to use for the ACH Prenotification.
|
|
205
|
+
*/
|
|
206
|
+
standard_entry_class_code?:
|
|
207
|
+
| 'corporate_credit_or_debit'
|
|
208
|
+
| 'prearranged_payments_and_deposit'
|
|
209
|
+
| 'internet_initiated';
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export interface ACHPrenotificationListParams extends PageParams {
|
|
213
|
+
created_at?: ACHPrenotificationListParams.CreatedAt;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export namespace ACHPrenotificationListParams {
|
|
217
|
+
export interface CreatedAt {
|
|
218
|
+
/**
|
|
219
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
220
|
+
* timestamp.
|
|
221
|
+
*/
|
|
222
|
+
after?: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
226
|
+
* timestamp.
|
|
227
|
+
*/
|
|
228
|
+
before?: string;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Return results on or after this
|
|
232
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
233
|
+
*/
|
|
234
|
+
on_or_after?: string;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Return results on or before this
|
|
238
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
239
|
+
*/
|
|
240
|
+
on_or_before?: string;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from '~/core';
|
|
4
|
+
import { APIResource } from '~/resource';
|
|
5
|
+
import { isRequestOptions } from '~/core';
|
|
6
|
+
import { Page, PageParams } from '~/pagination';
|
|
7
|
+
|
|
8
|
+
export class ACHTransfers extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create an ACH Transfer
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
body: ACHTransferCreateParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Promise<Core.APIResponse<ACHTransfer>> {
|
|
16
|
+
return this.post('/ach_transfers', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve an ACH Transfer
|
|
21
|
+
*/
|
|
22
|
+
retrieve(achTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<ACHTransfer>> {
|
|
23
|
+
return this.get(`/ach_transfers/${achTransferId}`, options);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* List ACH Transfers
|
|
28
|
+
*/
|
|
29
|
+
list(query?: ACHTransferListParams, options?: Core.RequestOptions): Core.PagePromise<ACHTransfersPage>;
|
|
30
|
+
list(options?: Core.RequestOptions): Core.PagePromise<ACHTransfersPage>;
|
|
31
|
+
list(
|
|
32
|
+
query: ACHTransferListParams | Core.RequestOptions = {},
|
|
33
|
+
options?: Core.RequestOptions,
|
|
34
|
+
): Core.PagePromise<ACHTransfersPage> {
|
|
35
|
+
if (isRequestOptions(query)) {
|
|
36
|
+
return this.list({}, query);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return this.getAPIList('/ach_transfers', ACHTransfersPage, { query, ...options });
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Approves an ACH Transfer in a pending_approval state.
|
|
44
|
+
*/
|
|
45
|
+
approve(achTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<ACHTransfer>> {
|
|
46
|
+
return this.post(`/ach_transfers/${achTransferId}/approve`, options);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Cancels an ACH Transfer in a pending_approval state.
|
|
51
|
+
*/
|
|
52
|
+
cancel(achTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<ACHTransfer>> {
|
|
53
|
+
return this.post(`/ach_transfers/${achTransferId}/cancel`, options);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export class ACHTransfersPage extends Page<ACHTransfer> {}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* ACH transfers move funds between your Increase account and any other account
|
|
61
|
+
* accessible by the Automated Clearing House (ACH).
|
|
62
|
+
*/
|
|
63
|
+
export interface ACHTransfer {
|
|
64
|
+
/**
|
|
65
|
+
* The Account to which the transfer belongs.
|
|
66
|
+
*/
|
|
67
|
+
account_id: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The destination account number.
|
|
71
|
+
*/
|
|
72
|
+
account_number: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Additional information that will be sent to the recipient.
|
|
76
|
+
*/
|
|
77
|
+
addendum: string | null;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The transfer amount in USD cents. A positive amount indicates a credit transfer
|
|
81
|
+
* pushing funds to the receiving account. A negative amount indicates a debit
|
|
82
|
+
* transfer pulling funds from the receiving account.
|
|
83
|
+
*/
|
|
84
|
+
amount: number;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* If your account requires approvals for transfers and the transfer was approved,
|
|
88
|
+
* this will contain details of the approval.
|
|
89
|
+
*/
|
|
90
|
+
approval: ACHTransfer.Approval | null;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* If your account requires approvals for transfers and the transfer was not
|
|
94
|
+
* approved, this will contain details of the cancellation.
|
|
95
|
+
*/
|
|
96
|
+
cancellation: ACHTransfer.Cancellation | null;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The description of the date of the transfer.
|
|
100
|
+
*/
|
|
101
|
+
company_descriptive_date: string | null;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* The data you chose to associate with the transfer.
|
|
105
|
+
*/
|
|
106
|
+
company_discretionary_data: string | null;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The description of the transfer you set to be shown to the recipient.
|
|
110
|
+
*/
|
|
111
|
+
company_entry_description: string | null;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The name by which the recipient knows you.
|
|
115
|
+
*/
|
|
116
|
+
company_name: string | null;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
120
|
+
* the transfer was created.
|
|
121
|
+
*/
|
|
122
|
+
created_at: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
|
|
126
|
+
* currency. For ACH transfers this is always equal to `usd`.
|
|
127
|
+
*/
|
|
128
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The identifier of the External Account the transfer was made to, if any.
|
|
132
|
+
*/
|
|
133
|
+
external_account_id: string | null;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The type of the account to which the transfer will be sent.
|
|
137
|
+
*/
|
|
138
|
+
funding: 'checking' | 'savings';
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The ACH transfer's identifier.
|
|
142
|
+
*/
|
|
143
|
+
id: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Your identifer for the transfer recipient.
|
|
147
|
+
*/
|
|
148
|
+
individual_id: string | null;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The name of the transfer recipient. This value is information and not verified
|
|
152
|
+
* by the recipient's bank.
|
|
153
|
+
*/
|
|
154
|
+
individual_name: string | null;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The transfer's network.
|
|
158
|
+
*/
|
|
159
|
+
network: 'ach';
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* If the receiving bank accepts the transfer but notifies that future transfers
|
|
163
|
+
* should use different details, this will contain those details.
|
|
164
|
+
*/
|
|
165
|
+
notification_of_change: ACHTransfer.NotificationOfChange | null;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* If your transfer is returned, this will contain details of the return.
|
|
169
|
+
*/
|
|
170
|
+
return: ACHTransfer.Return | null;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The American Bankers' Association (ABA) Routing Transit Number (RTN).
|
|
174
|
+
*/
|
|
175
|
+
routing_number: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The Standard Entry Class (SEC) code to use for the transfer.
|
|
179
|
+
*/
|
|
180
|
+
standard_entry_class_code:
|
|
181
|
+
| 'corporate_credit_or_debit'
|
|
182
|
+
| 'prearranged_payments_and_deposit'
|
|
183
|
+
| 'internet_initiated';
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The descriptor that will show on the recipient's bank statement.
|
|
187
|
+
*/
|
|
188
|
+
statement_descriptor: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The lifecycle status of the transfer.
|
|
192
|
+
*/
|
|
193
|
+
status:
|
|
194
|
+
| 'pending_approval'
|
|
195
|
+
| 'canceled'
|
|
196
|
+
| 'pending_submission'
|
|
197
|
+
| 'submitted'
|
|
198
|
+
| 'returned'
|
|
199
|
+
| 'requires_attention'
|
|
200
|
+
| 'rejected';
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* After the transfer is submitted to FedACH, this will contain supplemental
|
|
204
|
+
* details.
|
|
205
|
+
*/
|
|
206
|
+
submission: ACHTransfer.Submission | null;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* If the transfer was created from a template, this will be the template's ID.
|
|
210
|
+
*/
|
|
211
|
+
template_id: string | null;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* The ID for the transaction funding the transfer.
|
|
215
|
+
*/
|
|
216
|
+
transaction_id: string | null;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* A constant representing the object's type. For this resource it will always be
|
|
220
|
+
* `ach_transfer`.
|
|
221
|
+
*/
|
|
222
|
+
type: 'ach_transfer';
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export namespace ACHTransfer {
|
|
226
|
+
export interface Approval {
|
|
227
|
+
/**
|
|
228
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
229
|
+
* the transfer was approved.
|
|
230
|
+
*/
|
|
231
|
+
approved_at: string;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface Cancellation {
|
|
235
|
+
/**
|
|
236
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
237
|
+
* the Transfer was canceled.
|
|
238
|
+
*/
|
|
239
|
+
canceled_at: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface NotificationOfChange {
|
|
243
|
+
/**
|
|
244
|
+
* The type of change that occurred.
|
|
245
|
+
*/
|
|
246
|
+
change_code: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* The corrected data.
|
|
250
|
+
*/
|
|
251
|
+
corrected_data: string;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
255
|
+
* the notification occurred.
|
|
256
|
+
*/
|
|
257
|
+
created_at: string;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface Return {
|
|
261
|
+
/**
|
|
262
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
263
|
+
* the transfer was created.
|
|
264
|
+
*/
|
|
265
|
+
created_at: string;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Why the ACH Transfer was returned.
|
|
269
|
+
*/
|
|
270
|
+
return_reason_code:
|
|
271
|
+
| 'insufficient_fund'
|
|
272
|
+
| 'no_account'
|
|
273
|
+
| 'account_closed'
|
|
274
|
+
| 'invalid_account_number_structure'
|
|
275
|
+
| 'account_frozen_entry_returned_per_ofac_instruction'
|
|
276
|
+
| 'credit_entry_refused_by_receiver'
|
|
277
|
+
| 'unauthorized_debit_to_consumer_account_using_corporate_sec_code'
|
|
278
|
+
| 'corporate_customer_advised_not_authorized'
|
|
279
|
+
| 'payment_stopped'
|
|
280
|
+
| 'non_transaction_account'
|
|
281
|
+
| 'uncollected_funds'
|
|
282
|
+
| 'routing_number_check_digit_error'
|
|
283
|
+
| 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
|
|
284
|
+
| 'amount_field_error'
|
|
285
|
+
| 'authorization_revoked_by_customer'
|
|
286
|
+
| 'invalid_ach_routing_number'
|
|
287
|
+
| 'file_record_edit_criteria'
|
|
288
|
+
| 'enr_invalid_individual_name'
|
|
289
|
+
| 'returned_per_odfi_request'
|
|
290
|
+
| 'addenda_error'
|
|
291
|
+
| 'limited_participation_dfi'
|
|
292
|
+
| 'incorrectly_coded_outbound_international_payment'
|
|
293
|
+
| 'other';
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* The identifier of the Tranasaction associated with this return.
|
|
297
|
+
*/
|
|
298
|
+
transaction_id: string;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* The identifier of the ACH Transfer associated with this return.
|
|
302
|
+
*/
|
|
303
|
+
transfer_id: string;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export interface Submission {
|
|
307
|
+
/**
|
|
308
|
+
* When the ACH transfer was sent to FedACH.
|
|
309
|
+
*/
|
|
310
|
+
submitted_at: string;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* The trace number for the submission.
|
|
314
|
+
*/
|
|
315
|
+
trace_number: string;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface ACHTransferCreateParams {
|
|
320
|
+
/**
|
|
321
|
+
* The Increase identifier for the account that will send the transfer.
|
|
322
|
+
*/
|
|
323
|
+
account_id: string;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* The transfer amount in cents. A positive amount originates a credit transfer
|
|
327
|
+
* pushing funds to the receiving account. A negative amount originates a debit
|
|
328
|
+
* transfer pulling funds from the receiving account.
|
|
329
|
+
*/
|
|
330
|
+
amount: number;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* A description you choose to give the transfer. This will be saved with the
|
|
334
|
+
* transfer details, displayed in the dashboard, and returned by the API. If
|
|
335
|
+
* `individual_name` and `company_name` are not explicitly set by this API, the
|
|
336
|
+
* `statement_descriptor` will be sent in those fields to the receiving bank to
|
|
337
|
+
* help the customer recognize the transfer. You are highly encouraged to pass
|
|
338
|
+
* `individual_name` and `company_name` instead of relying on this fallback.
|
|
339
|
+
*/
|
|
340
|
+
statement_descriptor: string;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* The account number for the destination account.
|
|
344
|
+
*/
|
|
345
|
+
account_number?: string;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Additional information that will be sent to the recipient. This is included in
|
|
349
|
+
* the transfer data sent to the receiving bank.
|
|
350
|
+
*/
|
|
351
|
+
addendum?: string;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* The description of the date of the transfer, usually in the format `YYYYMMDD`.
|
|
355
|
+
* This is included in the transfer data sent to the receiving bank.
|
|
356
|
+
*/
|
|
357
|
+
company_descriptive_date?: string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* The data you choose to associate with the transfer. This is included in the
|
|
361
|
+
* transfer data sent to the receiving bank.
|
|
362
|
+
*/
|
|
363
|
+
company_discretionary_data?: string;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* A description of the transfer. This is included in the transfer data sent to the
|
|
367
|
+
* receiving bank.
|
|
368
|
+
*/
|
|
369
|
+
company_entry_description?: string;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* The name by which the recipient knows you. This is included in the transfer data
|
|
373
|
+
* sent to the receiving bank.
|
|
374
|
+
*/
|
|
375
|
+
company_name?: string;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* The transfer effective date in
|
|
379
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
380
|
+
*/
|
|
381
|
+
effective_date?: string;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* The ID of an External Account to initiate a transfer to. If this parameter is
|
|
385
|
+
* provided, `account_number`, `routing_number`, and `funding` must be absent.
|
|
386
|
+
*/
|
|
387
|
+
external_account_id?: string;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* The type of the account to which the transfer will be sent.
|
|
391
|
+
*/
|
|
392
|
+
funding?: 'checking' | 'savings';
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Your identifer for the transfer recipient.
|
|
396
|
+
*/
|
|
397
|
+
individual_id?: string;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* The name of the transfer recipient. This value is informational and not verified
|
|
401
|
+
* by the recipient's bank.
|
|
402
|
+
*/
|
|
403
|
+
individual_name?: string;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Whether the transfer requires explicit approval via the dashboard or API.
|
|
407
|
+
*/
|
|
408
|
+
require_approval?: boolean;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
|
|
412
|
+
* destination account.
|
|
413
|
+
*/
|
|
414
|
+
routing_number?: string;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* The Standard Entry Class (SEC) code to use for the transfer.
|
|
418
|
+
*/
|
|
419
|
+
standard_entry_class_code?:
|
|
420
|
+
| 'corporate_credit_or_debit'
|
|
421
|
+
| 'prearranged_payments_and_deposit'
|
|
422
|
+
| 'internet_initiated';
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export interface ACHTransferListParams extends PageParams {
|
|
426
|
+
/**
|
|
427
|
+
* Filter ACH Transfers to those that originated from the specified Account.
|
|
428
|
+
*/
|
|
429
|
+
account_id?: string;
|
|
430
|
+
|
|
431
|
+
created_at?: ACHTransferListParams.CreatedAt;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Filter ACH Transfers to those made to the specified External Account.
|
|
435
|
+
*/
|
|
436
|
+
external_account_id?: string;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export namespace ACHTransferListParams {
|
|
440
|
+
export interface CreatedAt {
|
|
441
|
+
/**
|
|
442
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
443
|
+
* timestamp.
|
|
444
|
+
*/
|
|
445
|
+
after?: string;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
449
|
+
* timestamp.
|
|
450
|
+
*/
|
|
451
|
+
before?: string;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Return results on or after this
|
|
455
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
456
|
+
*/
|
|
457
|
+
on_or_after?: string;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Return results on or before this
|
|
461
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
462
|
+
*/
|
|
463
|
+
on_or_before?: string;
|
|
464
|
+
}
|
|
465
|
+
}
|