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,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.ExternalAccountsPage = exports.ExternalAccounts = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
const core_1 = require('../core');
|
|
7
|
+
const pagination_1 = require('../pagination');
|
|
8
|
+
class ExternalAccounts extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create an External Account
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return this.post('/external_accounts', Object.assign({ body }, options));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve an External Account
|
|
17
|
+
*/
|
|
18
|
+
retrieve(externalAccountId, options) {
|
|
19
|
+
return this.get(`/external_accounts/${externalAccountId}`, options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Update an External Account
|
|
23
|
+
*/
|
|
24
|
+
update(externalAccountId, body, options) {
|
|
25
|
+
return this.patch(`/external_accounts/${externalAccountId}`, Object.assign({ body }, options));
|
|
26
|
+
}
|
|
27
|
+
list(query = {}, options) {
|
|
28
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
29
|
+
return this.list({}, query);
|
|
30
|
+
}
|
|
31
|
+
return this.getAPIList('/external_accounts', ExternalAccountsPage, Object.assign({ query }, options));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.ExternalAccounts = ExternalAccounts;
|
|
35
|
+
class ExternalAccountsPage extends pagination_1.Page {}
|
|
36
|
+
exports.ExternalAccountsPage = ExternalAccountsPage;
|
|
37
|
+
//# sourceMappingURL=external-accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-accounts.js","sourceRoot":"","sources":["../../../resources/external-accounts.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAgD;AAEhD,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,oBAAoB,kBAAI,IAAI,IAAK,OAAO,EAAG,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,iBAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,GAAG,CAAC,sBAAsB,iBAAiB,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,iBAAyB,EACzB,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,sBAAsB,iBAAiB,EAAE,kBAAI,IAAI,IAAK,OAAO,EAAG,CAAC;IACrF,CAAC;IAUD,IAAI,CACF,QAAyD,EAAE,EAC3D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,oBAAoB,EAAE,oBAAoB,kBAAI,KAAK,IAAK,OAAO,EAAG,CAAC;IAC5F,CAAC;CACF;AAlDD,4CAkDC;AAED,MAAa,oBAAqB,SAAQ,iBAAqB;CAAG;AAAlE,oDAAkE"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import { Page, PageParams } from '../pagination';
|
|
4
|
+
import type * as FormData from 'formdata-node';
|
|
5
|
+
export declare class Files extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* To upload a file to Increase, you'll need to send a request of Content-Type
|
|
8
|
+
* `multipart/form-data`. The request should contain the file you would like to
|
|
9
|
+
* upload, as well as the parameters for creating a file.
|
|
10
|
+
*/
|
|
11
|
+
create(body: FileCreateParams, options?: Core.RequestOptions): Promise<Core.APIResponse<File>>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve a File
|
|
14
|
+
*/
|
|
15
|
+
retrieve(fileId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<File>>;
|
|
16
|
+
/**
|
|
17
|
+
* List Files
|
|
18
|
+
*/
|
|
19
|
+
list(query?: FileListParams, options?: Core.RequestOptions): Core.PagePromise<FilesPage>;
|
|
20
|
+
list(options?: Core.RequestOptions): Core.PagePromise<FilesPage>;
|
|
21
|
+
}
|
|
22
|
+
export declare class FilesPage extends Page<File> {}
|
|
23
|
+
/**
|
|
24
|
+
* Files are objects that represent a file hosted on Increase's servers. The file
|
|
25
|
+
* may have been uploaded by you (for example, when uploading a check image) or it
|
|
26
|
+
* may have been created by Increase (for example, an autogenerated statement PDF).
|
|
27
|
+
*/
|
|
28
|
+
export interface File {
|
|
29
|
+
/**
|
|
30
|
+
* The time the File was created.
|
|
31
|
+
*/
|
|
32
|
+
created_at: string;
|
|
33
|
+
/**
|
|
34
|
+
* A description of the File.
|
|
35
|
+
*/
|
|
36
|
+
description: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the File was generated by Increase or by you and sent to Increase.
|
|
39
|
+
*/
|
|
40
|
+
direction: 'to_increase' | 'from_increase';
|
|
41
|
+
/**
|
|
42
|
+
* A URL from where the File can be downloaded at this point in time. The location
|
|
43
|
+
* of this URL may change over time.
|
|
44
|
+
*/
|
|
45
|
+
download_url: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The filename that was provided upon upload or generated by Increase.
|
|
48
|
+
*/
|
|
49
|
+
filename: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* The File's identifier.
|
|
52
|
+
*/
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* What the File will be used for. We may add additional possible values for this
|
|
56
|
+
* enum over time; your application should be able to handle such additions
|
|
57
|
+
* gracefully.
|
|
58
|
+
*/
|
|
59
|
+
purpose:
|
|
60
|
+
| 'check_image_front'
|
|
61
|
+
| 'check_image_back'
|
|
62
|
+
| 'form_1099_int'
|
|
63
|
+
| 'form_ss_4'
|
|
64
|
+
| 'identity_document'
|
|
65
|
+
| 'increase_statement'
|
|
66
|
+
| 'other'
|
|
67
|
+
| 'trust_formation_document'
|
|
68
|
+
| 'digital_wallet_artwork'
|
|
69
|
+
| 'digital_wallet_app_icon'
|
|
70
|
+
| 'entity_supplemental_document';
|
|
71
|
+
/**
|
|
72
|
+
* A constant representing the object's type. For this resource it will always be
|
|
73
|
+
* `file`.
|
|
74
|
+
*/
|
|
75
|
+
type: 'file';
|
|
76
|
+
}
|
|
77
|
+
export interface FileCreateParams {
|
|
78
|
+
/**
|
|
79
|
+
* The file contents. This should follow the specifications of
|
|
80
|
+
* [RFC 7578](https://datatracker.ietf.org/doc/html/rfc7578) which defines file
|
|
81
|
+
* transfers for the multipart/form-data protocol.
|
|
82
|
+
*/
|
|
83
|
+
file: FormData.Blob | FormData.File;
|
|
84
|
+
/**
|
|
85
|
+
* What the File will be used for in Increase's systems.
|
|
86
|
+
*/
|
|
87
|
+
purpose:
|
|
88
|
+
| 'check_image_front'
|
|
89
|
+
| 'check_image_back'
|
|
90
|
+
| 'form_ss_4'
|
|
91
|
+
| 'identity_document'
|
|
92
|
+
| 'other'
|
|
93
|
+
| 'trust_formation_document'
|
|
94
|
+
| 'digital_wallet_artwork'
|
|
95
|
+
| 'digital_wallet_app_icon'
|
|
96
|
+
| 'entity_supplemental_document';
|
|
97
|
+
/**
|
|
98
|
+
* The description you choose to give the File.
|
|
99
|
+
*/
|
|
100
|
+
description?: string;
|
|
101
|
+
}
|
|
102
|
+
export interface FileListParams extends PageParams {
|
|
103
|
+
created_at?: FileListParams.CreatedAt;
|
|
104
|
+
purpose?: FileListParams.Purpose;
|
|
105
|
+
}
|
|
106
|
+
export declare namespace FileListParams {
|
|
107
|
+
interface CreatedAt {
|
|
108
|
+
/**
|
|
109
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
110
|
+
* timestamp.
|
|
111
|
+
*/
|
|
112
|
+
after?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
115
|
+
* timestamp.
|
|
116
|
+
*/
|
|
117
|
+
before?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Return results on or after this
|
|
120
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
121
|
+
*/
|
|
122
|
+
on_or_after?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Return results on or before this
|
|
125
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
126
|
+
*/
|
|
127
|
+
on_or_before?: string;
|
|
128
|
+
}
|
|
129
|
+
interface Purpose {
|
|
130
|
+
/**
|
|
131
|
+
* Return results whose value is in the provided list. For GET requests, this
|
|
132
|
+
* should be encoded as a comma-delimited string, such as `?in=one,two,three`.
|
|
133
|
+
*/
|
|
134
|
+
in?: Array<
|
|
135
|
+
| 'check_image_front'
|
|
136
|
+
| 'check_image_back'
|
|
137
|
+
| 'form_1099_int'
|
|
138
|
+
| 'form_ss_4'
|
|
139
|
+
| 'identity_document'
|
|
140
|
+
| 'increase_statement'
|
|
141
|
+
| 'other'
|
|
142
|
+
| 'trust_formation_document'
|
|
143
|
+
| 'digital_wallet_artwork'
|
|
144
|
+
| 'digital_wallet_app_icon'
|
|
145
|
+
| 'entity_supplemental_document'
|
|
146
|
+
>;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.FilesPage = exports.Files = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
const core_1 = require('../core');
|
|
7
|
+
const pagination_1 = require('../pagination');
|
|
8
|
+
const core_2 = require('../core');
|
|
9
|
+
class Files extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* To upload a file to Increase, you'll need to send a request of Content-Type
|
|
12
|
+
* `multipart/form-data`. The request should contain the file you would like to
|
|
13
|
+
* upload, as well as the parameters for creating a file.
|
|
14
|
+
*/
|
|
15
|
+
create(body, options) {
|
|
16
|
+
return this.post('/files', (0, core_2.multipartFormRequestOptions)(Object.assign({ body }, options)));
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve a File
|
|
20
|
+
*/
|
|
21
|
+
retrieve(fileId, options) {
|
|
22
|
+
return this.get(`/files/${fileId}`, options);
|
|
23
|
+
}
|
|
24
|
+
list(query = {}, options) {
|
|
25
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
26
|
+
return this.list({}, query);
|
|
27
|
+
}
|
|
28
|
+
return this.getAPIList('/files', FilesPage, Object.assign({ query }, options));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.Files = Files;
|
|
32
|
+
class FilesPage extends pagination_1.Page {}
|
|
33
|
+
exports.FilesPage = FilesPage;
|
|
34
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../resources/files.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAgD;AAEhD,iCAAqD;AAErD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;OAIG;IACH,MAAM,CAAC,IAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAA,kCAA2B,kBAAG,IAAI,IAAK,OAAO,EAAG,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAOD,IAAI,CACF,QAA8C,EAAE,EAChD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,SAAS,kBAAI,KAAK,IAAK,OAAO,EAAG,CAAC;IACrE,CAAC;CACF;AAhCD,sBAgCC;AAED,MAAa,SAAU,SAAQ,iBAAU;CAAG;AAA5C,8BAA4C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
export declare class Groups extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Returns details for the currently authenticated Group.
|
|
6
|
+
*/
|
|
7
|
+
retrieveDetails(options?: Core.RequestOptions): Promise<Core.APIResponse<Group>>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Groups represent organizations using Increase. You can retrieve information
|
|
11
|
+
* about your own organization via the API, or (more commonly) OAuth platforms can
|
|
12
|
+
* retrieve information about the organizations that have granted them access.
|
|
13
|
+
*/
|
|
14
|
+
export interface Group {
|
|
15
|
+
/**
|
|
16
|
+
* If the Group is allowed to create ACH debits.
|
|
17
|
+
*/
|
|
18
|
+
ach_debit_status: 'disabled' | 'enabled';
|
|
19
|
+
/**
|
|
20
|
+
* If the Group is activated or not.
|
|
21
|
+
*/
|
|
22
|
+
activation_status: 'unactivated' | 'activated';
|
|
23
|
+
/**
|
|
24
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Group
|
|
25
|
+
* was created.
|
|
26
|
+
*/
|
|
27
|
+
created_at: string;
|
|
28
|
+
/**
|
|
29
|
+
* The Group identifier.
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* A constant representing the object's type. For this resource it will always be
|
|
34
|
+
* `group`.
|
|
35
|
+
*/
|
|
36
|
+
type: 'group';
|
|
37
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.Groups = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
class Groups extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Returns details for the currently authenticated Group.
|
|
9
|
+
*/
|
|
10
|
+
retrieveDetails(options) {
|
|
11
|
+
return this.get('/groups/current', options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.Groups = Groups;
|
|
15
|
+
//# sourceMappingURL=groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../resources/groups.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AAEzC,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,eAAe,CAAC,OAA6B;QAC3C,OAAO,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF;AAPD,wBAOC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import { Page, PageParams } from '../pagination';
|
|
4
|
+
export declare class InboundACHTransferReturns extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create an ACH Return
|
|
7
|
+
*/
|
|
8
|
+
create(
|
|
9
|
+
body: InboundACHTransferReturnCreateParams,
|
|
10
|
+
options?: Core.RequestOptions,
|
|
11
|
+
): Promise<Core.APIResponse<InboundACHTransferReturn>>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve an Inbound ACH Transfer Return
|
|
14
|
+
*/
|
|
15
|
+
retrieve(
|
|
16
|
+
inboundACHTransferReturnId: string,
|
|
17
|
+
options?: Core.RequestOptions,
|
|
18
|
+
): Promise<Core.APIResponse<InboundACHTransferReturn>>;
|
|
19
|
+
/**
|
|
20
|
+
* List Inbound ACH Transfer Returns
|
|
21
|
+
*/
|
|
22
|
+
list(
|
|
23
|
+
query?: InboundACHTransferReturnListParams,
|
|
24
|
+
options?: Core.RequestOptions,
|
|
25
|
+
): Core.PagePromise<InboundACHTransferReturnsPage>;
|
|
26
|
+
list(options?: Core.RequestOptions): Core.PagePromise<InboundACHTransferReturnsPage>;
|
|
27
|
+
}
|
|
28
|
+
export declare class InboundACHTransferReturnsPage extends Page<InboundACHTransferReturn> {}
|
|
29
|
+
/**
|
|
30
|
+
* If unauthorized activity occurs via ACH, you can create an Inbound ACH Transfer
|
|
31
|
+
* Return and we'll reverse the transaction. You can create an Inbound ACH Transfer
|
|
32
|
+
* return the first two days after receiving an Inbound ACH Transfer.
|
|
33
|
+
*/
|
|
34
|
+
export interface InboundACHTransferReturn {
|
|
35
|
+
/**
|
|
36
|
+
* The ID of the Inbound ACH Transfer Return.
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* The ID for the Transaction that is being returned.
|
|
41
|
+
*/
|
|
42
|
+
inbound_ach_transfer_transaction_id: string;
|
|
43
|
+
/**
|
|
44
|
+
* The reason why this transfer will be returned. This is sent to the initiating
|
|
45
|
+
* bank.
|
|
46
|
+
*/
|
|
47
|
+
reason:
|
|
48
|
+
| 'authorization_revoked_by_customer'
|
|
49
|
+
| 'payment_stopped'
|
|
50
|
+
| 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
|
|
51
|
+
| 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
|
|
52
|
+
| 'beneficiary_or_account_holder_deceased'
|
|
53
|
+
| 'credit_entry_refused_by_receiver'
|
|
54
|
+
| 'duplicate_entry'
|
|
55
|
+
| 'corporate_customer_advised_not_authorized';
|
|
56
|
+
/**
|
|
57
|
+
* The lifecycle status of the transfer.
|
|
58
|
+
*/
|
|
59
|
+
status: 'pending_submitting' | 'submitted';
|
|
60
|
+
/**
|
|
61
|
+
* After the return is submitted to FedACH, this will contain supplemental details.
|
|
62
|
+
*/
|
|
63
|
+
submission: InboundACHTransferReturn.Submission | null;
|
|
64
|
+
/**
|
|
65
|
+
* The ID for the transaction refunding the transfer.
|
|
66
|
+
*/
|
|
67
|
+
transaction_id: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* A constant representing the object's type. For this resource it will always be
|
|
70
|
+
* `inbound_ach_transfer_return`.
|
|
71
|
+
*/
|
|
72
|
+
type: 'inbound_ach_transfer_return';
|
|
73
|
+
}
|
|
74
|
+
export declare namespace InboundACHTransferReturn {
|
|
75
|
+
interface Submission {
|
|
76
|
+
/**
|
|
77
|
+
* When the ACH transfer return was sent to FedACH.
|
|
78
|
+
*/
|
|
79
|
+
submitted_at: string;
|
|
80
|
+
/**
|
|
81
|
+
* The trace number for the submission.
|
|
82
|
+
*/
|
|
83
|
+
trace_number: string;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export interface InboundACHTransferReturnCreateParams {
|
|
87
|
+
/**
|
|
88
|
+
* The reason why this transfer will be returned. The most usual return codes are
|
|
89
|
+
* `payment_stopped` for debits and `credit_entry_refused_by_receiver` for credits.
|
|
90
|
+
*/
|
|
91
|
+
reason:
|
|
92
|
+
| 'authorization_revoked_by_customer'
|
|
93
|
+
| 'payment_stopped'
|
|
94
|
+
| 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
|
|
95
|
+
| 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
|
|
96
|
+
| 'beneficiary_or_account_holder_deceased'
|
|
97
|
+
| 'credit_entry_refused_by_receiver'
|
|
98
|
+
| 'duplicate_entry'
|
|
99
|
+
| 'corporate_customer_advised_not_authorized';
|
|
100
|
+
/**
|
|
101
|
+
* The transaction identifier of the Inbound ACH Transfer to return to the
|
|
102
|
+
* originating financial institution.
|
|
103
|
+
*/
|
|
104
|
+
transaction_id: string;
|
|
105
|
+
}
|
|
106
|
+
export interface InboundACHTransferReturnListParams extends PageParams {}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.InboundACHTransferReturnsPage = exports.InboundACHTransferReturns = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
const core_1 = require('../core');
|
|
7
|
+
const pagination_1 = require('../pagination');
|
|
8
|
+
class InboundACHTransferReturns extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create an ACH Return
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return this.post('/inbound_ach_transfer_returns', Object.assign({ body }, options));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve an Inbound ACH Transfer Return
|
|
17
|
+
*/
|
|
18
|
+
retrieve(inboundACHTransferReturnId, options) {
|
|
19
|
+
return this.get(`/inbound_ach_transfer_returns/${inboundACHTransferReturnId}`, options);
|
|
20
|
+
}
|
|
21
|
+
list(query = {}, options) {
|
|
22
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
23
|
+
return this.list({}, query);
|
|
24
|
+
}
|
|
25
|
+
return this.getAPIList(
|
|
26
|
+
'/inbound_ach_transfer_returns',
|
|
27
|
+
InboundACHTransferReturnsPage,
|
|
28
|
+
Object.assign({ query }, options),
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.InboundACHTransferReturns = InboundACHTransferReturns;
|
|
33
|
+
class InboundACHTransferReturnsPage extends pagination_1.Page {}
|
|
34
|
+
exports.InboundACHTransferReturnsPage = InboundACHTransferReturnsPage;
|
|
35
|
+
//# sourceMappingURL=inbound-ach-transfer-returns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbound-ach-transfer-returns.js","sourceRoot":"","sources":["../../../resources/inbound-ach-transfer-returns.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAgD;AAEhD,MAAa,yBAA0B,SAAQ,sBAAW;IACxD;;OAEG;IACH,MAAM,CACJ,IAA0C,EAC1C,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,+BAA+B,kBAAI,IAAI,IAAK,OAAO,EAAG,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,0BAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,GAAG,CAAC,iCAAiC,0BAA0B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1F,CAAC;IAUD,IAAI,CACF,QAAkE,EAAE,EACpE,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,+BAA+B,EAAE,6BAA6B,kBACnF,KAAK,IACF,OAAO,EACV,CAAC;IACL,CAAC;CACF;AA1CD,8DA0CC;AAED,MAAa,6BAA8B,SAAQ,iBAA8B;CAAG;AAApF,sEAAoF"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import { Page, PageParams } from '../pagination';
|
|
4
|
+
export declare class InboundWireDrawdownRequests extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve an Inbound Wire Drawdown Request
|
|
7
|
+
*/
|
|
8
|
+
retrieve(
|
|
9
|
+
inboundWireDrawdownRequestId: string,
|
|
10
|
+
options?: Core.RequestOptions,
|
|
11
|
+
): Promise<Core.APIResponse<InboundWireDrawdownRequest>>;
|
|
12
|
+
/**
|
|
13
|
+
* List Inbound Wire Drawdown Requests
|
|
14
|
+
*/
|
|
15
|
+
list(
|
|
16
|
+
query?: InboundWireDrawdownRequestListParams,
|
|
17
|
+
options?: Core.RequestOptions,
|
|
18
|
+
): Core.PagePromise<InboundWireDrawdownRequestsPage>;
|
|
19
|
+
list(options?: Core.RequestOptions): Core.PagePromise<InboundWireDrawdownRequestsPage>;
|
|
20
|
+
}
|
|
21
|
+
export declare class InboundWireDrawdownRequestsPage extends Page<InboundWireDrawdownRequest> {}
|
|
22
|
+
/**
|
|
23
|
+
* Inbound wire drawdown requests are requests from someone else to send them a
|
|
24
|
+
* wire. This feature is in beta; reach out to
|
|
25
|
+
* [support@increase.com](mailto:support@increase.com) to learn more.
|
|
26
|
+
*/
|
|
27
|
+
export interface InboundWireDrawdownRequest {
|
|
28
|
+
/**
|
|
29
|
+
* The amount being requested in cents.
|
|
30
|
+
*/
|
|
31
|
+
amount: number;
|
|
32
|
+
/**
|
|
33
|
+
* The drawdown request's beneficiary's account number.
|
|
34
|
+
*/
|
|
35
|
+
beneficiary_account_number: string;
|
|
36
|
+
/**
|
|
37
|
+
* Line 1 of the drawdown request's beneficiary's address.
|
|
38
|
+
*/
|
|
39
|
+
beneficiary_address_line1: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Line 2 of the drawdown request's beneficiary's address.
|
|
42
|
+
*/
|
|
43
|
+
beneficiary_address_line2: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Line 3 of the drawdown request's beneficiary's address.
|
|
46
|
+
*/
|
|
47
|
+
beneficiary_address_line3: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* The drawdown request's beneficiary's name.
|
|
50
|
+
*/
|
|
51
|
+
beneficiary_name: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* The drawdown request's beneficiary's routing number.
|
|
54
|
+
*/
|
|
55
|
+
beneficiary_routing_number: string;
|
|
56
|
+
/**
|
|
57
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being
|
|
58
|
+
* requested. Will always be "USD".
|
|
59
|
+
*/
|
|
60
|
+
currency: string;
|
|
61
|
+
/**
|
|
62
|
+
* The Wire drawdown request identifier.
|
|
63
|
+
*/
|
|
64
|
+
id: string;
|
|
65
|
+
/**
|
|
66
|
+
* A message from the drawdown request's originator.
|
|
67
|
+
*/
|
|
68
|
+
message_to_recipient: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* The drawdown request's originator's account number.
|
|
71
|
+
*/
|
|
72
|
+
originator_account_number: string;
|
|
73
|
+
/**
|
|
74
|
+
* Line 1 of the drawdown request's originator's address.
|
|
75
|
+
*/
|
|
76
|
+
originator_address_line1: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* Line 2 of the drawdown request's originator's address.
|
|
79
|
+
*/
|
|
80
|
+
originator_address_line2: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* Line 3 of the drawdown request's originator's address.
|
|
83
|
+
*/
|
|
84
|
+
originator_address_line3: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* The drawdown request's originator's name.
|
|
87
|
+
*/
|
|
88
|
+
originator_name: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* The drawdown request's originator's routing number.
|
|
91
|
+
*/
|
|
92
|
+
originator_routing_number: string;
|
|
93
|
+
/**
|
|
94
|
+
* Line 1 of the information conveyed from the originator of the message to the
|
|
95
|
+
* beneficiary.
|
|
96
|
+
*/
|
|
97
|
+
originator_to_beneficiary_information_line1: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* Line 2 of the information conveyed from the originator of the message to the
|
|
100
|
+
* beneficiary.
|
|
101
|
+
*/
|
|
102
|
+
originator_to_beneficiary_information_line2: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Line 3 of the information conveyed from the originator of the message to the
|
|
105
|
+
* beneficiary.
|
|
106
|
+
*/
|
|
107
|
+
originator_to_beneficiary_information_line3: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Line 4 of the information conveyed from the originator of the message to the
|
|
110
|
+
* beneficiary.
|
|
111
|
+
*/
|
|
112
|
+
originator_to_beneficiary_information_line4: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* The Account Number from which the recipient of this request is being requested
|
|
115
|
+
* to send funds.
|
|
116
|
+
*/
|
|
117
|
+
recipient_account_number_id: string;
|
|
118
|
+
/**
|
|
119
|
+
* A constant representing the object's type. For this resource it will always be
|
|
120
|
+
* `inbound_wire_drawdown_request`.
|
|
121
|
+
*/
|
|
122
|
+
type: 'inbound_wire_drawdown_request';
|
|
123
|
+
}
|
|
124
|
+
export interface InboundWireDrawdownRequestListParams extends PageParams {}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.InboundWireDrawdownRequestsPage = exports.InboundWireDrawdownRequests = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
const core_1 = require('../core');
|
|
7
|
+
const pagination_1 = require('../pagination');
|
|
8
|
+
class InboundWireDrawdownRequests extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve an Inbound Wire Drawdown Request
|
|
11
|
+
*/
|
|
12
|
+
retrieve(inboundWireDrawdownRequestId, options) {
|
|
13
|
+
return this.get(`/inbound_wire_drawdown_requests/${inboundWireDrawdownRequestId}`, options);
|
|
14
|
+
}
|
|
15
|
+
list(query = {}, options) {
|
|
16
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
17
|
+
return this.list({}, query);
|
|
18
|
+
}
|
|
19
|
+
return this.getAPIList(
|
|
20
|
+
'/inbound_wire_drawdown_requests',
|
|
21
|
+
InboundWireDrawdownRequestsPage,
|
|
22
|
+
Object.assign({ query }, options),
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.InboundWireDrawdownRequests = InboundWireDrawdownRequests;
|
|
27
|
+
class InboundWireDrawdownRequestsPage extends pagination_1.Page {}
|
|
28
|
+
exports.InboundWireDrawdownRequestsPage = InboundWireDrawdownRequestsPage;
|
|
29
|
+
//# sourceMappingURL=inbound-wire-drawdown-requests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbound-wire-drawdown-requests.js","sourceRoot":"","sources":["../../../resources/inbound-wire-drawdown-requests.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAgD;AAEhD,MAAa,2BAA4B,SAAQ,sBAAW;IAC1D;;OAEG;IACH,QAAQ,CACN,4BAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,GAAG,CAAC,mCAAmC,4BAA4B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;IAUD,IAAI,CACF,QAAoE,EAAE,EACtE,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,iCAAiC,EAAE,+BAA+B,kBACvF,KAAK,IACF,OAAO,EACV,CAAC;IACL,CAAC;CACF;AAhCD,kEAgCC;AAED,MAAa,+BAAgC,SAAQ,iBAAgC;CAAG;AAAxF,0EAAwF"}
|