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,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.EntitiesPage = exports.Entities = void 0;
|
|
5
|
+
const resource_1 = require('../../resource');
|
|
6
|
+
const core_1 = require('../../core');
|
|
7
|
+
const pagination_1 = require('../../pagination');
|
|
8
|
+
const supplemental_documents_1 = require('./supplemental-documents');
|
|
9
|
+
class Entities extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.supplementalDocuments = new supplemental_documents_1.SupplementalDocuments(this.client);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Create an Entity
|
|
16
|
+
*/
|
|
17
|
+
create(body, options) {
|
|
18
|
+
return this.post('/entities', Object.assign({ body }, options));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve an Entity
|
|
22
|
+
*/
|
|
23
|
+
retrieve(entityId, options) {
|
|
24
|
+
return this.get(`/entities/${entityId}`, options);
|
|
25
|
+
}
|
|
26
|
+
list(query = {}, options) {
|
|
27
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
28
|
+
return this.list({}, query);
|
|
29
|
+
}
|
|
30
|
+
return this.getAPIList('/entities', EntitiesPage, Object.assign({ query }, options));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.Entities = Entities;
|
|
34
|
+
class EntitiesPage extends pagination_1.Page {}
|
|
35
|
+
exports.EntitiesPage = EntitiesPage;
|
|
36
|
+
//# sourceMappingURL=entities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../../resources/entities/entities.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAgD;AAChD,qEAAiE;AAEjE,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,0BAAqB,GAA0B,IAAI,8CAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IA+BxF,CAAC;IA7BC;;OAEG;IACH,MAAM,CAAC,IAAwB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,kBAAI,IAAI,IAAK,OAAO,EAAG,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,GAAG,CAAC,aAAa,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAOD,IAAI,CACF,QAAgD,EAAE,EAClD,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,WAAW,EAAE,YAAY,kBAAI,KAAK,IAAK,OAAO,EAAG,CAAC;IAC3E,CAAC;CACF;AAhCD,4BAgCC;AAED,MAAa,YAAa,SAAQ,iBAAY;CAAG;AAAjD,oCAAiD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.EntitiesPage = void 0;
|
|
5
|
+
var entities_1 = require('./entities');
|
|
6
|
+
Object.defineProperty(exports, 'EntitiesPage', {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return entities_1.EntitiesPage;
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../resources/entities/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,uCAAwF;AAAjC,wGAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as Core from '../../core';
|
|
2
|
+
import { APIResource } from '../../resource';
|
|
3
|
+
import * as Entities from '../../resources/entities';
|
|
4
|
+
export declare class SupplementalDocuments extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a supplemental document for an Entity
|
|
7
|
+
*/
|
|
8
|
+
create(
|
|
9
|
+
entityId: string,
|
|
10
|
+
body: SupplementalDocumentCreateParams,
|
|
11
|
+
options?: Core.RequestOptions,
|
|
12
|
+
): Promise<Core.APIResponse<Entities.Entity>>;
|
|
13
|
+
}
|
|
14
|
+
export interface SupplementalDocumentCreateParams {
|
|
15
|
+
/**
|
|
16
|
+
* The identifier of the File containing the document.
|
|
17
|
+
*/
|
|
18
|
+
file_id: string;
|
|
19
|
+
}
|
|
@@ -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.SupplementalDocuments = void 0;
|
|
5
|
+
const resource_1 = require('../../resource');
|
|
6
|
+
class SupplementalDocuments extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a supplemental document for an Entity
|
|
9
|
+
*/
|
|
10
|
+
create(entityId, body, options) {
|
|
11
|
+
return this.post(`/entities/${entityId}/supplemental_documents`, Object.assign({ body }, options));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.SupplementalDocuments = SupplementalDocuments;
|
|
15
|
+
//# sourceMappingURL=supplemental-documents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supplemental-documents.js","sourceRoot":"","sources":["../../../../resources/entities/supplemental-documents.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AAGzC,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,IAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,QAAQ,yBAAyB,kBAAI,IAAI,IAAK,OAAO,EAAG,CAAC;IACzF,CAAC;CACF;AAXD,sDAWC"}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import { Page, PageParams } from '../pagination';
|
|
4
|
+
export declare class EventSubscriptions extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create an Event Subscription
|
|
7
|
+
*/
|
|
8
|
+
create(
|
|
9
|
+
body: EventSubscriptionCreateParams,
|
|
10
|
+
options?: Core.RequestOptions,
|
|
11
|
+
): Promise<Core.APIResponse<EventSubscription>>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve an Event Subscription
|
|
14
|
+
*/
|
|
15
|
+
retrieve(
|
|
16
|
+
eventSubscriptionId: string,
|
|
17
|
+
options?: Core.RequestOptions,
|
|
18
|
+
): Promise<Core.APIResponse<EventSubscription>>;
|
|
19
|
+
/**
|
|
20
|
+
* Update an Event Subscription
|
|
21
|
+
*/
|
|
22
|
+
update(
|
|
23
|
+
eventSubscriptionId: string,
|
|
24
|
+
body: EventSubscriptionUpdateParams,
|
|
25
|
+
options?: Core.RequestOptions,
|
|
26
|
+
): Promise<Core.APIResponse<EventSubscription>>;
|
|
27
|
+
/**
|
|
28
|
+
* List Event Subscriptions
|
|
29
|
+
*/
|
|
30
|
+
list(
|
|
31
|
+
query?: EventSubscriptionListParams,
|
|
32
|
+
options?: Core.RequestOptions,
|
|
33
|
+
): Core.PagePromise<EventSubscriptionsPage>;
|
|
34
|
+
list(options?: Core.RequestOptions): Core.PagePromise<EventSubscriptionsPage>;
|
|
35
|
+
}
|
|
36
|
+
export declare class EventSubscriptionsPage extends Page<EventSubscription> {}
|
|
37
|
+
/**
|
|
38
|
+
* Webhooks are event notifications we send to you by HTTPS POST requests. Event
|
|
39
|
+
* Subscriptions are how you configure your application to listen for them. You can
|
|
40
|
+
* create an Event Subscription through your
|
|
41
|
+
* [developer dashboard](https://dashboard.increase.com/developers/webhooks) or the
|
|
42
|
+
* API. For more information, see our
|
|
43
|
+
* [webhooks guide](https://increase.com/documentation/webhooks).
|
|
44
|
+
*/
|
|
45
|
+
export interface EventSubscription {
|
|
46
|
+
/**
|
|
47
|
+
* The time the event subscription was created.
|
|
48
|
+
*/
|
|
49
|
+
created_at: string;
|
|
50
|
+
/**
|
|
51
|
+
* The event subscription identifier.
|
|
52
|
+
*/
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* If specified, this subscription will only receive webhooks for Events with the
|
|
56
|
+
* specified `category`.
|
|
57
|
+
*/
|
|
58
|
+
selected_event_category:
|
|
59
|
+
| 'account.created'
|
|
60
|
+
| 'account.updated'
|
|
61
|
+
| 'account_number.created'
|
|
62
|
+
| 'account_number.updated'
|
|
63
|
+
| 'account_statement.created'
|
|
64
|
+
| 'account_transfer.created'
|
|
65
|
+
| 'account_transfer.updated'
|
|
66
|
+
| 'ach_prenotification.created'
|
|
67
|
+
| 'ach_prenotification.updated'
|
|
68
|
+
| 'ach_transfer.created'
|
|
69
|
+
| 'ach_transfer.updated'
|
|
70
|
+
| 'card.created'
|
|
71
|
+
| 'card.updated'
|
|
72
|
+
| 'card_dispute.created'
|
|
73
|
+
| 'card_dispute.updated'
|
|
74
|
+
| 'check_deposit.created'
|
|
75
|
+
| 'check_deposit.updated'
|
|
76
|
+
| 'check_transfer.created'
|
|
77
|
+
| 'check_transfer.updated'
|
|
78
|
+
| 'declined_transaction.created'
|
|
79
|
+
| 'digital_wallet_token.created'
|
|
80
|
+
| 'digital_wallet_token.updated'
|
|
81
|
+
| 'document.created'
|
|
82
|
+
| 'entity.created'
|
|
83
|
+
| 'entity.updated'
|
|
84
|
+
| 'external_account.created'
|
|
85
|
+
| 'file.created'
|
|
86
|
+
| 'group.updated'
|
|
87
|
+
| 'group.heartbeat'
|
|
88
|
+
| 'inbound_ach_transfer_return.created'
|
|
89
|
+
| 'inbound_ach_transfer_return.updated'
|
|
90
|
+
| 'inbound_wire_drawdown_request.created'
|
|
91
|
+
| 'oauth_connection.created'
|
|
92
|
+
| 'oauth_connection.deactivated'
|
|
93
|
+
| 'pending_transaction.created'
|
|
94
|
+
| 'pending_transaction.updated'
|
|
95
|
+
| 'real_time_decision.card_authorization_requested'
|
|
96
|
+
| 'real_time_decision.digital_wallet_token_requested'
|
|
97
|
+
| 'real_time_decision.digital_wallet_authentication_requested'
|
|
98
|
+
| 'real_time_payments_transfer.created'
|
|
99
|
+
| 'real_time_payments_transfer.updated'
|
|
100
|
+
| 'real_time_payments_request_for_payment.created'
|
|
101
|
+
| 'real_time_payments_request_for_payment.updated'
|
|
102
|
+
| 'transaction.created'
|
|
103
|
+
| 'wire_drawdown_request.created'
|
|
104
|
+
| 'wire_drawdown_request.updated'
|
|
105
|
+
| 'wire_transfer.created'
|
|
106
|
+
| 'wire_transfer.updated'
|
|
107
|
+
| null;
|
|
108
|
+
/**
|
|
109
|
+
* The key that will be used to sign webhooks.
|
|
110
|
+
*/
|
|
111
|
+
shared_secret: string;
|
|
112
|
+
/**
|
|
113
|
+
* This indicates if we'll send notifications to this subscription.
|
|
114
|
+
*/
|
|
115
|
+
status: 'active' | 'disabled' | 'deleted' | 'requires_attention';
|
|
116
|
+
/**
|
|
117
|
+
* A constant representing the object's type. For this resource it will always be
|
|
118
|
+
* `event_subscription`.
|
|
119
|
+
*/
|
|
120
|
+
type: 'event_subscription';
|
|
121
|
+
/**
|
|
122
|
+
* The webhook url where we'll send notifications.
|
|
123
|
+
*/
|
|
124
|
+
url: string;
|
|
125
|
+
}
|
|
126
|
+
export interface EventSubscriptionCreateParams {
|
|
127
|
+
/**
|
|
128
|
+
* The URL you'd like us to send webhooks to.
|
|
129
|
+
*/
|
|
130
|
+
url: string;
|
|
131
|
+
/**
|
|
132
|
+
* If specified, this subscription will only receive webhooks for Events with the
|
|
133
|
+
* specified `category`.
|
|
134
|
+
*/
|
|
135
|
+
selected_event_category?:
|
|
136
|
+
| 'account.created'
|
|
137
|
+
| 'account.updated'
|
|
138
|
+
| 'account_number.created'
|
|
139
|
+
| 'account_number.updated'
|
|
140
|
+
| 'account_statement.created'
|
|
141
|
+
| 'account_transfer.created'
|
|
142
|
+
| 'account_transfer.updated'
|
|
143
|
+
| 'ach_prenotification.created'
|
|
144
|
+
| 'ach_prenotification.updated'
|
|
145
|
+
| 'ach_transfer.created'
|
|
146
|
+
| 'ach_transfer.updated'
|
|
147
|
+
| 'card.created'
|
|
148
|
+
| 'card.updated'
|
|
149
|
+
| 'card_dispute.created'
|
|
150
|
+
| 'card_dispute.updated'
|
|
151
|
+
| 'check_deposit.created'
|
|
152
|
+
| 'check_deposit.updated'
|
|
153
|
+
| 'check_transfer.created'
|
|
154
|
+
| 'check_transfer.updated'
|
|
155
|
+
| 'declined_transaction.created'
|
|
156
|
+
| 'digital_wallet_token.created'
|
|
157
|
+
| 'digital_wallet_token.updated'
|
|
158
|
+
| 'document.created'
|
|
159
|
+
| 'entity.created'
|
|
160
|
+
| 'entity.updated'
|
|
161
|
+
| 'external_account.created'
|
|
162
|
+
| 'file.created'
|
|
163
|
+
| 'group.updated'
|
|
164
|
+
| 'group.heartbeat'
|
|
165
|
+
| 'inbound_ach_transfer_return.created'
|
|
166
|
+
| 'inbound_ach_transfer_return.updated'
|
|
167
|
+
| 'inbound_wire_drawdown_request.created'
|
|
168
|
+
| 'oauth_connection.created'
|
|
169
|
+
| 'oauth_connection.deactivated'
|
|
170
|
+
| 'pending_transaction.created'
|
|
171
|
+
| 'pending_transaction.updated'
|
|
172
|
+
| 'real_time_decision.card_authorization_requested'
|
|
173
|
+
| 'real_time_decision.digital_wallet_token_requested'
|
|
174
|
+
| 'real_time_decision.digital_wallet_authentication_requested'
|
|
175
|
+
| 'real_time_payments_transfer.created'
|
|
176
|
+
| 'real_time_payments_transfer.updated'
|
|
177
|
+
| 'real_time_payments_request_for_payment.created'
|
|
178
|
+
| 'real_time_payments_request_for_payment.updated'
|
|
179
|
+
| 'transaction.created'
|
|
180
|
+
| 'wire_drawdown_request.created'
|
|
181
|
+
| 'wire_drawdown_request.updated'
|
|
182
|
+
| 'wire_transfer.created'
|
|
183
|
+
| 'wire_transfer.updated';
|
|
184
|
+
/**
|
|
185
|
+
* The key that will be used to sign webhooks. If no value is passed, a random
|
|
186
|
+
* string will be used as default.
|
|
187
|
+
*/
|
|
188
|
+
shared_secret?: string;
|
|
189
|
+
}
|
|
190
|
+
export interface EventSubscriptionUpdateParams {
|
|
191
|
+
/**
|
|
192
|
+
* The status to update the Event Subscription with.
|
|
193
|
+
*/
|
|
194
|
+
status?: 'active' | 'disabled' | 'deleted';
|
|
195
|
+
}
|
|
196
|
+
export interface EventSubscriptionListParams extends PageParams {}
|
|
@@ -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.EventSubscriptionsPage = exports.EventSubscriptions = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
const core_1 = require('../core');
|
|
7
|
+
const pagination_1 = require('../pagination');
|
|
8
|
+
class EventSubscriptions extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create an Event Subscription
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return this.post('/event_subscriptions', Object.assign({ body }, options));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve an Event Subscription
|
|
17
|
+
*/
|
|
18
|
+
retrieve(eventSubscriptionId, options) {
|
|
19
|
+
return this.get(`/event_subscriptions/${eventSubscriptionId}`, options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Update an Event Subscription
|
|
23
|
+
*/
|
|
24
|
+
update(eventSubscriptionId, body, options) {
|
|
25
|
+
return this.patch(`/event_subscriptions/${eventSubscriptionId}`, 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('/event_subscriptions', EventSubscriptionsPage, Object.assign({ query }, options));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.EventSubscriptions = EventSubscriptions;
|
|
35
|
+
class EventSubscriptionsPage extends pagination_1.Page {}
|
|
36
|
+
exports.EventSubscriptionsPage = EventSubscriptionsPage;
|
|
37
|
+
//# sourceMappingURL=event-subscriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-subscriptions.js","sourceRoot":"","sources":["../../../resources/event-subscriptions.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAgD;AAEhD,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;OAEG;IACH,MAAM,CACJ,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,sBAAsB,kBAAI,IAAI,IAAK,OAAO,EAAG,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,mBAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,GAAG,CAAC,wBAAwB,mBAAmB,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,mBAA2B,EAC3B,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,wBAAwB,mBAAmB,EAAE,kBAAI,IAAI,IAAK,OAAO,EAAG,CAAC;IACzF,CAAC;IAUD,IAAI,CACF,QAA2D,EAAE,EAC7D,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,sBAAsB,EAAE,sBAAsB,kBAAI,KAAK,IAAK,OAAO,EAAG,CAAC;IAChG,CAAC;CACF;AAlDD,gDAkDC;AAED,MAAa,sBAAuB,SAAQ,iBAAuB;CAAG;AAAtE,wDAAsE"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import { Page, PageParams } from '../pagination';
|
|
4
|
+
export declare class Events extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve an Event
|
|
7
|
+
*/
|
|
8
|
+
retrieve(eventId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<Event>>;
|
|
9
|
+
/**
|
|
10
|
+
* List Events
|
|
11
|
+
*/
|
|
12
|
+
list(query?: EventListParams, options?: Core.RequestOptions): Core.PagePromise<EventsPage>;
|
|
13
|
+
list(options?: Core.RequestOptions): Core.PagePromise<EventsPage>;
|
|
14
|
+
}
|
|
15
|
+
export declare class EventsPage extends Page<Event> {}
|
|
16
|
+
/**
|
|
17
|
+
* Events are records of things that happened to objects in the API. They also
|
|
18
|
+
* result in webhooks being generated.
|
|
19
|
+
*/
|
|
20
|
+
export interface Event {
|
|
21
|
+
/**
|
|
22
|
+
* The identifier of the object that generated this Event.
|
|
23
|
+
*/
|
|
24
|
+
associated_object_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The type of the object that generated this Event.
|
|
27
|
+
*/
|
|
28
|
+
associated_object_type: string;
|
|
29
|
+
/**
|
|
30
|
+
* The category of the Event. We may add additional possible values for this enum
|
|
31
|
+
* over time; your application should be able to handle such additions gracefully.
|
|
32
|
+
*/
|
|
33
|
+
category:
|
|
34
|
+
| 'account.created'
|
|
35
|
+
| 'account.updated'
|
|
36
|
+
| 'account_number.created'
|
|
37
|
+
| 'account_number.updated'
|
|
38
|
+
| 'account_statement.created'
|
|
39
|
+
| 'account_transfer.created'
|
|
40
|
+
| 'account_transfer.updated'
|
|
41
|
+
| 'ach_prenotification.created'
|
|
42
|
+
| 'ach_prenotification.updated'
|
|
43
|
+
| 'ach_transfer.created'
|
|
44
|
+
| 'ach_transfer.updated'
|
|
45
|
+
| 'card.created'
|
|
46
|
+
| 'card.updated'
|
|
47
|
+
| 'card_dispute.created'
|
|
48
|
+
| 'card_dispute.updated'
|
|
49
|
+
| 'check_deposit.created'
|
|
50
|
+
| 'check_deposit.updated'
|
|
51
|
+
| 'check_transfer.created'
|
|
52
|
+
| 'check_transfer.updated'
|
|
53
|
+
| 'declined_transaction.created'
|
|
54
|
+
| 'digital_wallet_token.created'
|
|
55
|
+
| 'digital_wallet_token.updated'
|
|
56
|
+
| 'document.created'
|
|
57
|
+
| 'entity.created'
|
|
58
|
+
| 'entity.updated'
|
|
59
|
+
| 'external_account.created'
|
|
60
|
+
| 'file.created'
|
|
61
|
+
| 'group.updated'
|
|
62
|
+
| 'group.heartbeat'
|
|
63
|
+
| 'inbound_ach_transfer_return.created'
|
|
64
|
+
| 'inbound_ach_transfer_return.updated'
|
|
65
|
+
| 'inbound_wire_drawdown_request.created'
|
|
66
|
+
| 'oauth_connection.created'
|
|
67
|
+
| 'oauth_connection.deactivated'
|
|
68
|
+
| 'pending_transaction.created'
|
|
69
|
+
| 'pending_transaction.updated'
|
|
70
|
+
| 'real_time_decision.card_authorization_requested'
|
|
71
|
+
| 'real_time_decision.digital_wallet_token_requested'
|
|
72
|
+
| 'real_time_decision.digital_wallet_authentication_requested'
|
|
73
|
+
| 'real_time_payments_transfer.created'
|
|
74
|
+
| 'real_time_payments_transfer.updated'
|
|
75
|
+
| 'real_time_payments_request_for_payment.created'
|
|
76
|
+
| 'real_time_payments_request_for_payment.updated'
|
|
77
|
+
| 'transaction.created'
|
|
78
|
+
| 'wire_drawdown_request.created'
|
|
79
|
+
| 'wire_drawdown_request.updated'
|
|
80
|
+
| 'wire_transfer.created'
|
|
81
|
+
| 'wire_transfer.updated';
|
|
82
|
+
/**
|
|
83
|
+
* The time the Event was created.
|
|
84
|
+
*/
|
|
85
|
+
created_at: string;
|
|
86
|
+
/**
|
|
87
|
+
* The Event identifier.
|
|
88
|
+
*/
|
|
89
|
+
id: string;
|
|
90
|
+
/**
|
|
91
|
+
* A constant representing the object's type. For this resource it will always be
|
|
92
|
+
* `event`.
|
|
93
|
+
*/
|
|
94
|
+
type: 'event';
|
|
95
|
+
}
|
|
96
|
+
export interface EventListParams extends PageParams {
|
|
97
|
+
/**
|
|
98
|
+
* Filter Events to those belonging to the object with the provided identifier.
|
|
99
|
+
*/
|
|
100
|
+
associated_object_id?: string;
|
|
101
|
+
category?: EventListParams.Category;
|
|
102
|
+
created_at?: EventListParams.CreatedAt;
|
|
103
|
+
}
|
|
104
|
+
export declare namespace EventListParams {
|
|
105
|
+
interface CreatedAt {
|
|
106
|
+
/**
|
|
107
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
108
|
+
* timestamp.
|
|
109
|
+
*/
|
|
110
|
+
after?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
113
|
+
* timestamp.
|
|
114
|
+
*/
|
|
115
|
+
before?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Return results on or after this
|
|
118
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
119
|
+
*/
|
|
120
|
+
on_or_after?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Return results on or before this
|
|
123
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
124
|
+
*/
|
|
125
|
+
on_or_before?: string;
|
|
126
|
+
}
|
|
127
|
+
interface Category {
|
|
128
|
+
/**
|
|
129
|
+
* Return results whose value is in the provided list. For GET requests, this
|
|
130
|
+
* should be encoded as a comma-delimited string, such as `?in=one,two,three`.
|
|
131
|
+
*/
|
|
132
|
+
in?: Array<
|
|
133
|
+
| 'account.created'
|
|
134
|
+
| 'account.updated'
|
|
135
|
+
| 'account_number.created'
|
|
136
|
+
| 'account_number.updated'
|
|
137
|
+
| 'account_statement.created'
|
|
138
|
+
| 'account_transfer.created'
|
|
139
|
+
| 'account_transfer.updated'
|
|
140
|
+
| 'ach_prenotification.created'
|
|
141
|
+
| 'ach_prenotification.updated'
|
|
142
|
+
| 'ach_transfer.created'
|
|
143
|
+
| 'ach_transfer.updated'
|
|
144
|
+
| 'card.created'
|
|
145
|
+
| 'card.updated'
|
|
146
|
+
| 'card_dispute.created'
|
|
147
|
+
| 'card_dispute.updated'
|
|
148
|
+
| 'check_deposit.created'
|
|
149
|
+
| 'check_deposit.updated'
|
|
150
|
+
| 'check_transfer.created'
|
|
151
|
+
| 'check_transfer.updated'
|
|
152
|
+
| 'declined_transaction.created'
|
|
153
|
+
| 'digital_wallet_token.created'
|
|
154
|
+
| 'digital_wallet_token.updated'
|
|
155
|
+
| 'document.created'
|
|
156
|
+
| 'entity.created'
|
|
157
|
+
| 'entity.updated'
|
|
158
|
+
| 'external_account.created'
|
|
159
|
+
| 'file.created'
|
|
160
|
+
| 'group.updated'
|
|
161
|
+
| 'group.heartbeat'
|
|
162
|
+
| 'inbound_ach_transfer_return.created'
|
|
163
|
+
| 'inbound_ach_transfer_return.updated'
|
|
164
|
+
| 'inbound_wire_drawdown_request.created'
|
|
165
|
+
| 'oauth_connection.created'
|
|
166
|
+
| 'oauth_connection.deactivated'
|
|
167
|
+
| 'pending_transaction.created'
|
|
168
|
+
| 'pending_transaction.updated'
|
|
169
|
+
| 'real_time_decision.card_authorization_requested'
|
|
170
|
+
| 'real_time_decision.digital_wallet_token_requested'
|
|
171
|
+
| 'real_time_decision.digital_wallet_authentication_requested'
|
|
172
|
+
| 'real_time_payments_transfer.created'
|
|
173
|
+
| 'real_time_payments_transfer.updated'
|
|
174
|
+
| 'real_time_payments_request_for_payment.created'
|
|
175
|
+
| 'real_time_payments_request_for_payment.updated'
|
|
176
|
+
| 'transaction.created'
|
|
177
|
+
| 'wire_drawdown_request.created'
|
|
178
|
+
| 'wire_drawdown_request.updated'
|
|
179
|
+
| 'wire_transfer.created'
|
|
180
|
+
| 'wire_transfer.updated'
|
|
181
|
+
>;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.EventsPage = exports.Events = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
const core_1 = require('../core');
|
|
7
|
+
const pagination_1 = require('../pagination');
|
|
8
|
+
class Events extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve an Event
|
|
11
|
+
*/
|
|
12
|
+
retrieve(eventId, options) {
|
|
13
|
+
return this.get(`/events/${eventId}`, options);
|
|
14
|
+
}
|
|
15
|
+
list(query = {}, options) {
|
|
16
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
17
|
+
return this.list({}, query);
|
|
18
|
+
}
|
|
19
|
+
return this.getAPIList('/events', EventsPage, Object.assign({ query }, options));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.Events = Events;
|
|
23
|
+
class EventsPage extends pagination_1.Page {}
|
|
24
|
+
exports.EventsPage = EventsPage;
|
|
25
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../resources/events.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAgD;AAEhD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAOD,IAAI,CACF,QAA+C,EAAE,EACjD,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,SAAS,EAAE,UAAU,kBAAI,KAAK,IAAK,OAAO,EAAG,CAAC;IACvE,CAAC;CACF;AAvBD,wBAuBC;AAED,MAAa,UAAW,SAAQ,iBAAW;CAAG;AAA9C,gCAA8C"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import { Page, PageParams } from '../pagination';
|
|
4
|
+
export declare class ExternalAccounts extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create an External Account
|
|
7
|
+
*/
|
|
8
|
+
create(
|
|
9
|
+
body: ExternalAccountCreateParams,
|
|
10
|
+
options?: Core.RequestOptions,
|
|
11
|
+
): Promise<Core.APIResponse<ExternalAccount>>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve an External Account
|
|
14
|
+
*/
|
|
15
|
+
retrieve(
|
|
16
|
+
externalAccountId: string,
|
|
17
|
+
options?: Core.RequestOptions,
|
|
18
|
+
): Promise<Core.APIResponse<ExternalAccount>>;
|
|
19
|
+
/**
|
|
20
|
+
* Update an External Account
|
|
21
|
+
*/
|
|
22
|
+
update(
|
|
23
|
+
externalAccountId: string,
|
|
24
|
+
body: ExternalAccountUpdateParams,
|
|
25
|
+
options?: Core.RequestOptions,
|
|
26
|
+
): Promise<Core.APIResponse<ExternalAccount>>;
|
|
27
|
+
/**
|
|
28
|
+
* List External Accounts
|
|
29
|
+
*/
|
|
30
|
+
list(
|
|
31
|
+
query?: ExternalAccountListParams,
|
|
32
|
+
options?: Core.RequestOptions,
|
|
33
|
+
): Core.PagePromise<ExternalAccountsPage>;
|
|
34
|
+
list(options?: Core.RequestOptions): Core.PagePromise<ExternalAccountsPage>;
|
|
35
|
+
}
|
|
36
|
+
export declare class ExternalAccountsPage extends Page<ExternalAccount> {}
|
|
37
|
+
/**
|
|
38
|
+
* External Accounts represent accounts at financial institutions other than
|
|
39
|
+
* Increase. You can use this API to store their details for reuse.
|
|
40
|
+
*/
|
|
41
|
+
export interface ExternalAccount {
|
|
42
|
+
/**
|
|
43
|
+
* The destination account number.
|
|
44
|
+
*/
|
|
45
|
+
account_number: string;
|
|
46
|
+
/**
|
|
47
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
48
|
+
* the External Account was created.
|
|
49
|
+
*/
|
|
50
|
+
created_at: string;
|
|
51
|
+
/**
|
|
52
|
+
* The External Account's description for display purposes.
|
|
53
|
+
*/
|
|
54
|
+
description: string;
|
|
55
|
+
/**
|
|
56
|
+
* The type of the account to which the transfer will be sent.
|
|
57
|
+
*/
|
|
58
|
+
funding: 'checking' | 'savings' | 'other';
|
|
59
|
+
/**
|
|
60
|
+
* The External Account's identifier.
|
|
61
|
+
*/
|
|
62
|
+
id: string;
|
|
63
|
+
/**
|
|
64
|
+
* The American Bankers' Association (ABA) Routing Transit Number (RTN).
|
|
65
|
+
*/
|
|
66
|
+
routing_number: string;
|
|
67
|
+
/**
|
|
68
|
+
* The External Account's status.
|
|
69
|
+
*/
|
|
70
|
+
status: 'active' | 'archived';
|
|
71
|
+
/**
|
|
72
|
+
* A constant representing the object's type. For this resource it will always be
|
|
73
|
+
* `external_account`.
|
|
74
|
+
*/
|
|
75
|
+
type: 'external_account';
|
|
76
|
+
/**
|
|
77
|
+
* If you have verified ownership of the External Account.
|
|
78
|
+
*/
|
|
79
|
+
verification_status: 'unverified' | 'pending' | 'verified';
|
|
80
|
+
}
|
|
81
|
+
export interface ExternalAccountCreateParams {
|
|
82
|
+
/**
|
|
83
|
+
* The account number for the destination account.
|
|
84
|
+
*/
|
|
85
|
+
account_number: string;
|
|
86
|
+
/**
|
|
87
|
+
* The name you choose for the Account.
|
|
88
|
+
*/
|
|
89
|
+
description: string;
|
|
90
|
+
/**
|
|
91
|
+
* The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
|
|
92
|
+
* destination account.
|
|
93
|
+
*/
|
|
94
|
+
routing_number: string;
|
|
95
|
+
/**
|
|
96
|
+
* The type of the destination account. Defaults to `checking`.
|
|
97
|
+
*/
|
|
98
|
+
funding?: 'checking' | 'savings' | 'other';
|
|
99
|
+
}
|
|
100
|
+
export interface ExternalAccountUpdateParams {
|
|
101
|
+
/**
|
|
102
|
+
* The description you choose to give the external account.
|
|
103
|
+
*/
|
|
104
|
+
description?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The status of the External Account.
|
|
107
|
+
*/
|
|
108
|
+
status?: 'active' | 'archived';
|
|
109
|
+
}
|
|
110
|
+
export interface ExternalAccountListParams extends PageParams {
|
|
111
|
+
status?: ExternalAccountListParams.Status;
|
|
112
|
+
}
|
|
113
|
+
export declare namespace ExternalAccountListParams {
|
|
114
|
+
interface Status {
|
|
115
|
+
/**
|
|
116
|
+
* Return results whose value is in the provided list. For GET requests, this
|
|
117
|
+
* should be encoded as a comma-delimited string, such as `?in=one,two,three`.
|
|
118
|
+
*/
|
|
119
|
+
in?: Array<'active' | 'archived'>;
|
|
120
|
+
}
|
|
121
|
+
}
|