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,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from '~/core';
|
|
4
|
+
import { APIResource } from '~/resource';
|
|
5
|
+
import * as Entities from '~/resources/entities';
|
|
6
|
+
|
|
7
|
+
export class SupplementalDocuments extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create a supplemental document for an Entity
|
|
10
|
+
*/
|
|
11
|
+
create(
|
|
12
|
+
entityId: string,
|
|
13
|
+
body: SupplementalDocumentCreateParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Promise<Core.APIResponse<Entities.Entity>> {
|
|
16
|
+
return this.post(`/entities/${entityId}/supplemental_documents`, { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface SupplementalDocumentCreateParams {
|
|
21
|
+
/**
|
|
22
|
+
* The identifier of the File containing the document.
|
|
23
|
+
*/
|
|
24
|
+
file_id: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
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 EventSubscriptions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create an Event Subscription
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
body: EventSubscriptionCreateParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Promise<Core.APIResponse<EventSubscription>> {
|
|
16
|
+
return this.post('/event_subscriptions', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve an Event Subscription
|
|
21
|
+
*/
|
|
22
|
+
retrieve(
|
|
23
|
+
eventSubscriptionId: string,
|
|
24
|
+
options?: Core.RequestOptions,
|
|
25
|
+
): Promise<Core.APIResponse<EventSubscription>> {
|
|
26
|
+
return this.get(`/event_subscriptions/${eventSubscriptionId}`, options);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Update an Event Subscription
|
|
31
|
+
*/
|
|
32
|
+
update(
|
|
33
|
+
eventSubscriptionId: string,
|
|
34
|
+
body: EventSubscriptionUpdateParams,
|
|
35
|
+
options?: Core.RequestOptions,
|
|
36
|
+
): Promise<Core.APIResponse<EventSubscription>> {
|
|
37
|
+
return this.patch(`/event_subscriptions/${eventSubscriptionId}`, { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* List Event Subscriptions
|
|
42
|
+
*/
|
|
43
|
+
list(
|
|
44
|
+
query?: EventSubscriptionListParams,
|
|
45
|
+
options?: Core.RequestOptions,
|
|
46
|
+
): Core.PagePromise<EventSubscriptionsPage>;
|
|
47
|
+
list(options?: Core.RequestOptions): Core.PagePromise<EventSubscriptionsPage>;
|
|
48
|
+
list(
|
|
49
|
+
query: EventSubscriptionListParams | Core.RequestOptions = {},
|
|
50
|
+
options?: Core.RequestOptions,
|
|
51
|
+
): Core.PagePromise<EventSubscriptionsPage> {
|
|
52
|
+
if (isRequestOptions(query)) {
|
|
53
|
+
return this.list({}, query);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return this.getAPIList('/event_subscriptions', EventSubscriptionsPage, { query, ...options });
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export class EventSubscriptionsPage extends Page<EventSubscription> {}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Webhooks are event notifications we send to you by HTTPS POST requests. Event
|
|
64
|
+
* Subscriptions are how you configure your application to listen for them. You can
|
|
65
|
+
* create an Event Subscription through your
|
|
66
|
+
* [developer dashboard](https://dashboard.increase.com/developers/webhooks) or the
|
|
67
|
+
* API. For more information, see our
|
|
68
|
+
* [webhooks guide](https://increase.com/documentation/webhooks).
|
|
69
|
+
*/
|
|
70
|
+
export interface EventSubscription {
|
|
71
|
+
/**
|
|
72
|
+
* The time the event subscription was created.
|
|
73
|
+
*/
|
|
74
|
+
created_at: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The event subscription identifier.
|
|
78
|
+
*/
|
|
79
|
+
id: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* If specified, this subscription will only receive webhooks for Events with the
|
|
83
|
+
* specified `category`.
|
|
84
|
+
*/
|
|
85
|
+
selected_event_category:
|
|
86
|
+
| 'account.created'
|
|
87
|
+
| 'account.updated'
|
|
88
|
+
| 'account_number.created'
|
|
89
|
+
| 'account_number.updated'
|
|
90
|
+
| 'account_statement.created'
|
|
91
|
+
| 'account_transfer.created'
|
|
92
|
+
| 'account_transfer.updated'
|
|
93
|
+
| 'ach_prenotification.created'
|
|
94
|
+
| 'ach_prenotification.updated'
|
|
95
|
+
| 'ach_transfer.created'
|
|
96
|
+
| 'ach_transfer.updated'
|
|
97
|
+
| 'card.created'
|
|
98
|
+
| 'card.updated'
|
|
99
|
+
| 'card_dispute.created'
|
|
100
|
+
| 'card_dispute.updated'
|
|
101
|
+
| 'check_deposit.created'
|
|
102
|
+
| 'check_deposit.updated'
|
|
103
|
+
| 'check_transfer.created'
|
|
104
|
+
| 'check_transfer.updated'
|
|
105
|
+
| 'declined_transaction.created'
|
|
106
|
+
| 'digital_wallet_token.created'
|
|
107
|
+
| 'digital_wallet_token.updated'
|
|
108
|
+
| 'document.created'
|
|
109
|
+
| 'entity.created'
|
|
110
|
+
| 'entity.updated'
|
|
111
|
+
| 'external_account.created'
|
|
112
|
+
| 'file.created'
|
|
113
|
+
| 'group.updated'
|
|
114
|
+
| 'group.heartbeat'
|
|
115
|
+
| 'inbound_ach_transfer_return.created'
|
|
116
|
+
| 'inbound_ach_transfer_return.updated'
|
|
117
|
+
| 'inbound_wire_drawdown_request.created'
|
|
118
|
+
| 'oauth_connection.created'
|
|
119
|
+
| 'oauth_connection.deactivated'
|
|
120
|
+
| 'pending_transaction.created'
|
|
121
|
+
| 'pending_transaction.updated'
|
|
122
|
+
| 'real_time_decision.card_authorization_requested'
|
|
123
|
+
| 'real_time_decision.digital_wallet_token_requested'
|
|
124
|
+
| 'real_time_decision.digital_wallet_authentication_requested'
|
|
125
|
+
| 'real_time_payments_transfer.created'
|
|
126
|
+
| 'real_time_payments_transfer.updated'
|
|
127
|
+
| 'real_time_payments_request_for_payment.created'
|
|
128
|
+
| 'real_time_payments_request_for_payment.updated'
|
|
129
|
+
| 'transaction.created'
|
|
130
|
+
| 'wire_drawdown_request.created'
|
|
131
|
+
| 'wire_drawdown_request.updated'
|
|
132
|
+
| 'wire_transfer.created'
|
|
133
|
+
| 'wire_transfer.updated'
|
|
134
|
+
| null;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* The key that will be used to sign webhooks.
|
|
138
|
+
*/
|
|
139
|
+
shared_secret: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* This indicates if we'll send notifications to this subscription.
|
|
143
|
+
*/
|
|
144
|
+
status: 'active' | 'disabled' | 'deleted' | 'requires_attention';
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* A constant representing the object's type. For this resource it will always be
|
|
148
|
+
* `event_subscription`.
|
|
149
|
+
*/
|
|
150
|
+
type: 'event_subscription';
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* The webhook url where we'll send notifications.
|
|
154
|
+
*/
|
|
155
|
+
url: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface EventSubscriptionCreateParams {
|
|
159
|
+
/**
|
|
160
|
+
* The URL you'd like us to send webhooks to.
|
|
161
|
+
*/
|
|
162
|
+
url: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* If specified, this subscription will only receive webhooks for Events with the
|
|
166
|
+
* specified `category`.
|
|
167
|
+
*/
|
|
168
|
+
selected_event_category?:
|
|
169
|
+
| 'account.created'
|
|
170
|
+
| 'account.updated'
|
|
171
|
+
| 'account_number.created'
|
|
172
|
+
| 'account_number.updated'
|
|
173
|
+
| 'account_statement.created'
|
|
174
|
+
| 'account_transfer.created'
|
|
175
|
+
| 'account_transfer.updated'
|
|
176
|
+
| 'ach_prenotification.created'
|
|
177
|
+
| 'ach_prenotification.updated'
|
|
178
|
+
| 'ach_transfer.created'
|
|
179
|
+
| 'ach_transfer.updated'
|
|
180
|
+
| 'card.created'
|
|
181
|
+
| 'card.updated'
|
|
182
|
+
| 'card_dispute.created'
|
|
183
|
+
| 'card_dispute.updated'
|
|
184
|
+
| 'check_deposit.created'
|
|
185
|
+
| 'check_deposit.updated'
|
|
186
|
+
| 'check_transfer.created'
|
|
187
|
+
| 'check_transfer.updated'
|
|
188
|
+
| 'declined_transaction.created'
|
|
189
|
+
| 'digital_wallet_token.created'
|
|
190
|
+
| 'digital_wallet_token.updated'
|
|
191
|
+
| 'document.created'
|
|
192
|
+
| 'entity.created'
|
|
193
|
+
| 'entity.updated'
|
|
194
|
+
| 'external_account.created'
|
|
195
|
+
| 'file.created'
|
|
196
|
+
| 'group.updated'
|
|
197
|
+
| 'group.heartbeat'
|
|
198
|
+
| 'inbound_ach_transfer_return.created'
|
|
199
|
+
| 'inbound_ach_transfer_return.updated'
|
|
200
|
+
| 'inbound_wire_drawdown_request.created'
|
|
201
|
+
| 'oauth_connection.created'
|
|
202
|
+
| 'oauth_connection.deactivated'
|
|
203
|
+
| 'pending_transaction.created'
|
|
204
|
+
| 'pending_transaction.updated'
|
|
205
|
+
| 'real_time_decision.card_authorization_requested'
|
|
206
|
+
| 'real_time_decision.digital_wallet_token_requested'
|
|
207
|
+
| 'real_time_decision.digital_wallet_authentication_requested'
|
|
208
|
+
| 'real_time_payments_transfer.created'
|
|
209
|
+
| 'real_time_payments_transfer.updated'
|
|
210
|
+
| 'real_time_payments_request_for_payment.created'
|
|
211
|
+
| 'real_time_payments_request_for_payment.updated'
|
|
212
|
+
| 'transaction.created'
|
|
213
|
+
| 'wire_drawdown_request.created'
|
|
214
|
+
| 'wire_drawdown_request.updated'
|
|
215
|
+
| 'wire_transfer.created'
|
|
216
|
+
| 'wire_transfer.updated';
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* The key that will be used to sign webhooks. If no value is passed, a random
|
|
220
|
+
* string will be used as default.
|
|
221
|
+
*/
|
|
222
|
+
shared_secret?: string;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export interface EventSubscriptionUpdateParams {
|
|
226
|
+
/**
|
|
227
|
+
* The status to update the Event Subscription with.
|
|
228
|
+
*/
|
|
229
|
+
status?: 'active' | 'disabled' | 'deleted';
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface EventSubscriptionListParams extends PageParams {}
|
|
@@ -0,0 +1,215 @@
|
|
|
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 Events extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve an Event
|
|
11
|
+
*/
|
|
12
|
+
retrieve(eventId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<Event>> {
|
|
13
|
+
return this.get(`/events/${eventId}`, options);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* List Events
|
|
18
|
+
*/
|
|
19
|
+
list(query?: EventListParams, options?: Core.RequestOptions): Core.PagePromise<EventsPage>;
|
|
20
|
+
list(options?: Core.RequestOptions): Core.PagePromise<EventsPage>;
|
|
21
|
+
list(
|
|
22
|
+
query: EventListParams | Core.RequestOptions = {},
|
|
23
|
+
options?: Core.RequestOptions,
|
|
24
|
+
): Core.PagePromise<EventsPage> {
|
|
25
|
+
if (isRequestOptions(query)) {
|
|
26
|
+
return this.list({}, query);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return this.getAPIList('/events', EventsPage, { query, ...options });
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class EventsPage extends Page<Event> {}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Events are records of things that happened to objects in the API. They also
|
|
37
|
+
* result in webhooks being generated.
|
|
38
|
+
*/
|
|
39
|
+
export interface Event {
|
|
40
|
+
/**
|
|
41
|
+
* The identifier of the object that generated this Event.
|
|
42
|
+
*/
|
|
43
|
+
associated_object_id: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The type of the object that generated this Event.
|
|
47
|
+
*/
|
|
48
|
+
associated_object_type: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The category of the Event. We may add additional possible values for this enum
|
|
52
|
+
* over time; your application should be able to handle such additions gracefully.
|
|
53
|
+
*/
|
|
54
|
+
category:
|
|
55
|
+
| 'account.created'
|
|
56
|
+
| 'account.updated'
|
|
57
|
+
| 'account_number.created'
|
|
58
|
+
| 'account_number.updated'
|
|
59
|
+
| 'account_statement.created'
|
|
60
|
+
| 'account_transfer.created'
|
|
61
|
+
| 'account_transfer.updated'
|
|
62
|
+
| 'ach_prenotification.created'
|
|
63
|
+
| 'ach_prenotification.updated'
|
|
64
|
+
| 'ach_transfer.created'
|
|
65
|
+
| 'ach_transfer.updated'
|
|
66
|
+
| 'card.created'
|
|
67
|
+
| 'card.updated'
|
|
68
|
+
| 'card_dispute.created'
|
|
69
|
+
| 'card_dispute.updated'
|
|
70
|
+
| 'check_deposit.created'
|
|
71
|
+
| 'check_deposit.updated'
|
|
72
|
+
| 'check_transfer.created'
|
|
73
|
+
| 'check_transfer.updated'
|
|
74
|
+
| 'declined_transaction.created'
|
|
75
|
+
| 'digital_wallet_token.created'
|
|
76
|
+
| 'digital_wallet_token.updated'
|
|
77
|
+
| 'document.created'
|
|
78
|
+
| 'entity.created'
|
|
79
|
+
| 'entity.updated'
|
|
80
|
+
| 'external_account.created'
|
|
81
|
+
| 'file.created'
|
|
82
|
+
| 'group.updated'
|
|
83
|
+
| 'group.heartbeat'
|
|
84
|
+
| 'inbound_ach_transfer_return.created'
|
|
85
|
+
| 'inbound_ach_transfer_return.updated'
|
|
86
|
+
| 'inbound_wire_drawdown_request.created'
|
|
87
|
+
| 'oauth_connection.created'
|
|
88
|
+
| 'oauth_connection.deactivated'
|
|
89
|
+
| 'pending_transaction.created'
|
|
90
|
+
| 'pending_transaction.updated'
|
|
91
|
+
| 'real_time_decision.card_authorization_requested'
|
|
92
|
+
| 'real_time_decision.digital_wallet_token_requested'
|
|
93
|
+
| 'real_time_decision.digital_wallet_authentication_requested'
|
|
94
|
+
| 'real_time_payments_transfer.created'
|
|
95
|
+
| 'real_time_payments_transfer.updated'
|
|
96
|
+
| 'real_time_payments_request_for_payment.created'
|
|
97
|
+
| 'real_time_payments_request_for_payment.updated'
|
|
98
|
+
| 'transaction.created'
|
|
99
|
+
| 'wire_drawdown_request.created'
|
|
100
|
+
| 'wire_drawdown_request.updated'
|
|
101
|
+
| 'wire_transfer.created'
|
|
102
|
+
| 'wire_transfer.updated';
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The time the Event was created.
|
|
106
|
+
*/
|
|
107
|
+
created_at: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The Event identifier.
|
|
111
|
+
*/
|
|
112
|
+
id: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* A constant representing the object's type. For this resource it will always be
|
|
116
|
+
* `event`.
|
|
117
|
+
*/
|
|
118
|
+
type: 'event';
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface EventListParams extends PageParams {
|
|
122
|
+
/**
|
|
123
|
+
* Filter Events to those belonging to the object with the provided identifier.
|
|
124
|
+
*/
|
|
125
|
+
associated_object_id?: string;
|
|
126
|
+
|
|
127
|
+
category?: EventListParams.Category;
|
|
128
|
+
|
|
129
|
+
created_at?: EventListParams.CreatedAt;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export namespace EventListParams {
|
|
133
|
+
export interface CreatedAt {
|
|
134
|
+
/**
|
|
135
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
136
|
+
* timestamp.
|
|
137
|
+
*/
|
|
138
|
+
after?: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
142
|
+
* timestamp.
|
|
143
|
+
*/
|
|
144
|
+
before?: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Return results on or after this
|
|
148
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
149
|
+
*/
|
|
150
|
+
on_or_after?: string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Return results on or before this
|
|
154
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
155
|
+
*/
|
|
156
|
+
on_or_before?: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface Category {
|
|
160
|
+
/**
|
|
161
|
+
* Return results whose value is in the provided list. For GET requests, this
|
|
162
|
+
* should be encoded as a comma-delimited string, such as `?in=one,two,three`.
|
|
163
|
+
*/
|
|
164
|
+
in?: Array<
|
|
165
|
+
| 'account.created'
|
|
166
|
+
| 'account.updated'
|
|
167
|
+
| 'account_number.created'
|
|
168
|
+
| 'account_number.updated'
|
|
169
|
+
| 'account_statement.created'
|
|
170
|
+
| 'account_transfer.created'
|
|
171
|
+
| 'account_transfer.updated'
|
|
172
|
+
| 'ach_prenotification.created'
|
|
173
|
+
| 'ach_prenotification.updated'
|
|
174
|
+
| 'ach_transfer.created'
|
|
175
|
+
| 'ach_transfer.updated'
|
|
176
|
+
| 'card.created'
|
|
177
|
+
| 'card.updated'
|
|
178
|
+
| 'card_dispute.created'
|
|
179
|
+
| 'card_dispute.updated'
|
|
180
|
+
| 'check_deposit.created'
|
|
181
|
+
| 'check_deposit.updated'
|
|
182
|
+
| 'check_transfer.created'
|
|
183
|
+
| 'check_transfer.updated'
|
|
184
|
+
| 'declined_transaction.created'
|
|
185
|
+
| 'digital_wallet_token.created'
|
|
186
|
+
| 'digital_wallet_token.updated'
|
|
187
|
+
| 'document.created'
|
|
188
|
+
| 'entity.created'
|
|
189
|
+
| 'entity.updated'
|
|
190
|
+
| 'external_account.created'
|
|
191
|
+
| 'file.created'
|
|
192
|
+
| 'group.updated'
|
|
193
|
+
| 'group.heartbeat'
|
|
194
|
+
| 'inbound_ach_transfer_return.created'
|
|
195
|
+
| 'inbound_ach_transfer_return.updated'
|
|
196
|
+
| 'inbound_wire_drawdown_request.created'
|
|
197
|
+
| 'oauth_connection.created'
|
|
198
|
+
| 'oauth_connection.deactivated'
|
|
199
|
+
| 'pending_transaction.created'
|
|
200
|
+
| 'pending_transaction.updated'
|
|
201
|
+
| 'real_time_decision.card_authorization_requested'
|
|
202
|
+
| 'real_time_decision.digital_wallet_token_requested'
|
|
203
|
+
| 'real_time_decision.digital_wallet_authentication_requested'
|
|
204
|
+
| 'real_time_payments_transfer.created'
|
|
205
|
+
| 'real_time_payments_transfer.updated'
|
|
206
|
+
| 'real_time_payments_request_for_payment.created'
|
|
207
|
+
| 'real_time_payments_request_for_payment.updated'
|
|
208
|
+
| 'transaction.created'
|
|
209
|
+
| 'wire_drawdown_request.created'
|
|
210
|
+
| 'wire_drawdown_request.updated'
|
|
211
|
+
| 'wire_transfer.created'
|
|
212
|
+
| 'wire_transfer.updated'
|
|
213
|
+
>;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
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 ExternalAccounts extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create an External Account
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
body: ExternalAccountCreateParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Promise<Core.APIResponse<ExternalAccount>> {
|
|
16
|
+
return this.post('/external_accounts', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve an External Account
|
|
21
|
+
*/
|
|
22
|
+
retrieve(
|
|
23
|
+
externalAccountId: string,
|
|
24
|
+
options?: Core.RequestOptions,
|
|
25
|
+
): Promise<Core.APIResponse<ExternalAccount>> {
|
|
26
|
+
return this.get(`/external_accounts/${externalAccountId}`, options);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Update an External Account
|
|
31
|
+
*/
|
|
32
|
+
update(
|
|
33
|
+
externalAccountId: string,
|
|
34
|
+
body: ExternalAccountUpdateParams,
|
|
35
|
+
options?: Core.RequestOptions,
|
|
36
|
+
): Promise<Core.APIResponse<ExternalAccount>> {
|
|
37
|
+
return this.patch(`/external_accounts/${externalAccountId}`, { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* List External Accounts
|
|
42
|
+
*/
|
|
43
|
+
list(
|
|
44
|
+
query?: ExternalAccountListParams,
|
|
45
|
+
options?: Core.RequestOptions,
|
|
46
|
+
): Core.PagePromise<ExternalAccountsPage>;
|
|
47
|
+
list(options?: Core.RequestOptions): Core.PagePromise<ExternalAccountsPage>;
|
|
48
|
+
list(
|
|
49
|
+
query: ExternalAccountListParams | Core.RequestOptions = {},
|
|
50
|
+
options?: Core.RequestOptions,
|
|
51
|
+
): Core.PagePromise<ExternalAccountsPage> {
|
|
52
|
+
if (isRequestOptions(query)) {
|
|
53
|
+
return this.list({}, query);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return this.getAPIList('/external_accounts', ExternalAccountsPage, { query, ...options });
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export class ExternalAccountsPage extends Page<ExternalAccount> {}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* External Accounts represent accounts at financial institutions other than
|
|
64
|
+
* Increase. You can use this API to store their details for reuse.
|
|
65
|
+
*/
|
|
66
|
+
export interface ExternalAccount {
|
|
67
|
+
/**
|
|
68
|
+
* The destination account number.
|
|
69
|
+
*/
|
|
70
|
+
account_number: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
74
|
+
* the External Account was created.
|
|
75
|
+
*/
|
|
76
|
+
created_at: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The External Account's description for display purposes.
|
|
80
|
+
*/
|
|
81
|
+
description: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The type of the account to which the transfer will be sent.
|
|
85
|
+
*/
|
|
86
|
+
funding: 'checking' | 'savings' | 'other';
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The External Account's identifier.
|
|
90
|
+
*/
|
|
91
|
+
id: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The American Bankers' Association (ABA) Routing Transit Number (RTN).
|
|
95
|
+
*/
|
|
96
|
+
routing_number: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The External Account's status.
|
|
100
|
+
*/
|
|
101
|
+
status: 'active' | 'archived';
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* A constant representing the object's type. For this resource it will always be
|
|
105
|
+
* `external_account`.
|
|
106
|
+
*/
|
|
107
|
+
type: 'external_account';
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* If you have verified ownership of the External Account.
|
|
111
|
+
*/
|
|
112
|
+
verification_status: 'unverified' | 'pending' | 'verified';
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface ExternalAccountCreateParams {
|
|
116
|
+
/**
|
|
117
|
+
* The account number for the destination account.
|
|
118
|
+
*/
|
|
119
|
+
account_number: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* The name you choose for the Account.
|
|
123
|
+
*/
|
|
124
|
+
description: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
|
|
128
|
+
* destination account.
|
|
129
|
+
*/
|
|
130
|
+
routing_number: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The type of the destination account. Defaults to `checking`.
|
|
134
|
+
*/
|
|
135
|
+
funding?: 'checking' | 'savings' | 'other';
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface ExternalAccountUpdateParams {
|
|
139
|
+
/**
|
|
140
|
+
* The description you choose to give the external account.
|
|
141
|
+
*/
|
|
142
|
+
description?: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The status of the External Account.
|
|
146
|
+
*/
|
|
147
|
+
status?: 'active' | 'archived';
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface ExternalAccountListParams extends PageParams {
|
|
151
|
+
status?: ExternalAccountListParams.Status;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export namespace ExternalAccountListParams {
|
|
155
|
+
export interface Status {
|
|
156
|
+
/**
|
|
157
|
+
* Return results whose value is in the provided list. For GET requests, this
|
|
158
|
+
* should be encoded as a comma-delimited string, such as `?in=one,two,three`.
|
|
159
|
+
*/
|
|
160
|
+
in?: Array<'active' | 'archived'>;
|
|
161
|
+
}
|
|
162
|
+
}
|