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,289 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import * as Shared from '../resources/shared';
|
|
4
|
+
export declare class RealTimeDecisions extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve a Real-Time Decision
|
|
7
|
+
*/
|
|
8
|
+
retrieve(
|
|
9
|
+
realTimeDecisionId: string,
|
|
10
|
+
options?: Core.RequestOptions,
|
|
11
|
+
): Promise<Core.APIResponse<RealTimeDecision>>;
|
|
12
|
+
/**
|
|
13
|
+
* Action a Real-Time Decision
|
|
14
|
+
*/
|
|
15
|
+
action(
|
|
16
|
+
realTimeDecisionId: string,
|
|
17
|
+
body: RealTimeDecisionActionParams,
|
|
18
|
+
options?: Core.RequestOptions,
|
|
19
|
+
): Promise<Core.APIResponse<RealTimeDecision>>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Real Time Decisions are created when your application needs to take action in
|
|
23
|
+
* real-time to some event such as a card authorization. Real time decisions are
|
|
24
|
+
* currently in beta; please contact support@increase.com if you're interested in
|
|
25
|
+
* trying them out!
|
|
26
|
+
*/
|
|
27
|
+
export interface RealTimeDecision {
|
|
28
|
+
/**
|
|
29
|
+
* Fields related to a card authorization.
|
|
30
|
+
*/
|
|
31
|
+
card_authorization: RealTimeDecision.CardAuthorization | null;
|
|
32
|
+
/**
|
|
33
|
+
* The category of the Real-Time Decision.
|
|
34
|
+
*/
|
|
35
|
+
category:
|
|
36
|
+
| 'card_authorization_requested'
|
|
37
|
+
| 'digital_wallet_token_requested'
|
|
38
|
+
| 'digital_wallet_authentication_requested';
|
|
39
|
+
/**
|
|
40
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
41
|
+
* the Real-Time Decision was created.
|
|
42
|
+
*/
|
|
43
|
+
created_at: string;
|
|
44
|
+
/**
|
|
45
|
+
* Fields related to a digital wallet authentication attempt.
|
|
46
|
+
*/
|
|
47
|
+
digital_wallet_authentication: RealTimeDecision.DigitalWalletAuthentication | null;
|
|
48
|
+
/**
|
|
49
|
+
* Fields related to a digital wallet token provisioning attempt.
|
|
50
|
+
*/
|
|
51
|
+
digital_wallet_token: RealTimeDecision.DigitalWalletToken | null;
|
|
52
|
+
/**
|
|
53
|
+
* The Real-Time Decision identifier.
|
|
54
|
+
*/
|
|
55
|
+
id: string;
|
|
56
|
+
/**
|
|
57
|
+
* The status of the Real-Time Decision.
|
|
58
|
+
*/
|
|
59
|
+
status: 'pending' | 'responded' | 'timed_out';
|
|
60
|
+
/**
|
|
61
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
62
|
+
* your application can no longer respond to the Real-Time Decision.
|
|
63
|
+
*/
|
|
64
|
+
timeout_at: string;
|
|
65
|
+
/**
|
|
66
|
+
* A constant representing the object's type. For this resource it will always be
|
|
67
|
+
* `real_time_decision`.
|
|
68
|
+
*/
|
|
69
|
+
type: 'real_time_decision';
|
|
70
|
+
}
|
|
71
|
+
export declare namespace RealTimeDecision {
|
|
72
|
+
interface CardAuthorization {
|
|
73
|
+
/**
|
|
74
|
+
* The identifier of the Account the authorization will debit.
|
|
75
|
+
*/
|
|
76
|
+
account_id: string;
|
|
77
|
+
/**
|
|
78
|
+
* The identifier of the Card that is being authorized.
|
|
79
|
+
*/
|
|
80
|
+
card_id: string;
|
|
81
|
+
/**
|
|
82
|
+
* Whether or not the authorization was approved.
|
|
83
|
+
*/
|
|
84
|
+
decision: 'approve' | 'decline' | null;
|
|
85
|
+
/**
|
|
86
|
+
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
87
|
+
* is transacting with.
|
|
88
|
+
*/
|
|
89
|
+
merchant_acceptor_id: string;
|
|
90
|
+
/**
|
|
91
|
+
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
92
|
+
* card is transacting with.
|
|
93
|
+
*/
|
|
94
|
+
merchant_category_code: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* The city the merchant resides in.
|
|
97
|
+
*/
|
|
98
|
+
merchant_city: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* The country the merchant resides in.
|
|
101
|
+
*/
|
|
102
|
+
merchant_country: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* The merchant descriptor of the merchant the card is transacting with.
|
|
105
|
+
*/
|
|
106
|
+
merchant_descriptor: string;
|
|
107
|
+
/**
|
|
108
|
+
* The payment network used to process this card authorization
|
|
109
|
+
*/
|
|
110
|
+
network: 'visa';
|
|
111
|
+
/**
|
|
112
|
+
* Fields specific to the `network`
|
|
113
|
+
*/
|
|
114
|
+
network_details: CardAuthorization.NetworkDetails;
|
|
115
|
+
/**
|
|
116
|
+
* The amount of the attempted authorization in the currency the card user sees at
|
|
117
|
+
* the time of purchase, in the minor unit of that currency. For dollars, for
|
|
118
|
+
* example, this is cents.
|
|
119
|
+
*/
|
|
120
|
+
presentment_amount: number;
|
|
121
|
+
/**
|
|
122
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the currency the
|
|
123
|
+
* user sees at the time of purchase.
|
|
124
|
+
*/
|
|
125
|
+
presentment_currency: string;
|
|
126
|
+
/**
|
|
127
|
+
* The amount of the attempted authorization in the currency it will be settled in.
|
|
128
|
+
* This currency is the same as that of the Account the card belongs to.
|
|
129
|
+
*/
|
|
130
|
+
settlement_amount: number;
|
|
131
|
+
/**
|
|
132
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the currency the
|
|
133
|
+
* transaction will be settled in.
|
|
134
|
+
*/
|
|
135
|
+
settlement_currency: string;
|
|
136
|
+
}
|
|
137
|
+
namespace CardAuthorization {
|
|
138
|
+
interface NetworkDetails {
|
|
139
|
+
/**
|
|
140
|
+
* Fields specific to the `visa` network
|
|
141
|
+
*/
|
|
142
|
+
visa: NetworkDetails.Visa;
|
|
143
|
+
}
|
|
144
|
+
namespace NetworkDetails {
|
|
145
|
+
interface Visa {
|
|
146
|
+
/**
|
|
147
|
+
* For electronic commerce transactions, this identifies the level of security used
|
|
148
|
+
* in obtaining the customer's payment credential. For mail or telephone order
|
|
149
|
+
* transactions, identifies the type of mail or telephone order.
|
|
150
|
+
*/
|
|
151
|
+
electronic_commerce_indicator:
|
|
152
|
+
| 'mail_phone_order'
|
|
153
|
+
| 'recurring'
|
|
154
|
+
| 'installment'
|
|
155
|
+
| 'unknown_mail_phone_order'
|
|
156
|
+
| 'secure_electronic_commerce'
|
|
157
|
+
| 'non_authenticated_security_transaction_at_3ds_capable_merchant'
|
|
158
|
+
| 'non_authenticated_security_transaction'
|
|
159
|
+
| 'non_secure_transaction'
|
|
160
|
+
| null;
|
|
161
|
+
/**
|
|
162
|
+
* The method used to enter the cardholder's primary account number and card
|
|
163
|
+
* expiration date
|
|
164
|
+
*/
|
|
165
|
+
point_of_service_entry_mode: Shared.PointOfServiceEntryMode;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
interface DigitalWalletToken {
|
|
170
|
+
/**
|
|
171
|
+
* The identifier of the Card that is being tokenized.
|
|
172
|
+
*/
|
|
173
|
+
card_id: string;
|
|
174
|
+
/**
|
|
175
|
+
* The identifier of the Card Profile that was set via the real time decision. This
|
|
176
|
+
* will be null until the real time decision is responded to or if the real time
|
|
177
|
+
* decision did not set a card profile.
|
|
178
|
+
*/
|
|
179
|
+
card_profile_id: string | null;
|
|
180
|
+
/**
|
|
181
|
+
* Whether or not the provisioning request was approved. This will be null until
|
|
182
|
+
* the real time decision is responded to.
|
|
183
|
+
*/
|
|
184
|
+
decision: 'approve' | 'decline' | null;
|
|
185
|
+
/**
|
|
186
|
+
* The digital wallet app being used.
|
|
187
|
+
*/
|
|
188
|
+
digital_wallet: 'apple_pay' | 'google_pay';
|
|
189
|
+
}
|
|
190
|
+
interface DigitalWalletAuthentication {
|
|
191
|
+
/**
|
|
192
|
+
* The identifier of the Card that is being tokenized.
|
|
193
|
+
*/
|
|
194
|
+
card_id: string;
|
|
195
|
+
/**
|
|
196
|
+
* The channel to send the card user their one-time passcode.
|
|
197
|
+
*/
|
|
198
|
+
channel: 'sms' | 'email';
|
|
199
|
+
/**
|
|
200
|
+
* The digital wallet app being used.
|
|
201
|
+
*/
|
|
202
|
+
digital_wallet: 'apple_pay' | 'google_pay';
|
|
203
|
+
/**
|
|
204
|
+
* The email to send the one-time passcode to if `channel` is equal to `email`.
|
|
205
|
+
*/
|
|
206
|
+
email: string | null;
|
|
207
|
+
/**
|
|
208
|
+
* The one-time passcode to send the card user.
|
|
209
|
+
*/
|
|
210
|
+
one_time_passcode: string;
|
|
211
|
+
/**
|
|
212
|
+
* The phone number to send the one-time passcode to if `channel` is equal to
|
|
213
|
+
* `sms`.
|
|
214
|
+
*/
|
|
215
|
+
phone: string | null;
|
|
216
|
+
/**
|
|
217
|
+
* Whether your application successfully delivered the one-time passcode.
|
|
218
|
+
*/
|
|
219
|
+
result: 'success' | 'failure' | null;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
export interface RealTimeDecisionActionParams {
|
|
223
|
+
/**
|
|
224
|
+
* If the Real-Time Decision relates to a card authorization attempt, this object
|
|
225
|
+
* contains your response to the authorization.
|
|
226
|
+
*/
|
|
227
|
+
card_authorization?: RealTimeDecisionActionParams.CardAuthorization;
|
|
228
|
+
/**
|
|
229
|
+
* If the Real-Time Decision relates to a digital wallet authentication attempt,
|
|
230
|
+
* this object contains your response to the authentication.
|
|
231
|
+
*/
|
|
232
|
+
digital_wallet_authentication?: RealTimeDecisionActionParams.DigitalWalletAuthentication;
|
|
233
|
+
/**
|
|
234
|
+
* If the Real-Time Decision relates to a digital wallet token provisioning
|
|
235
|
+
* attempt, this object contains your response to the attempt.
|
|
236
|
+
*/
|
|
237
|
+
digital_wallet_token?: RealTimeDecisionActionParams.DigitalWalletToken;
|
|
238
|
+
}
|
|
239
|
+
export declare namespace RealTimeDecisionActionParams {
|
|
240
|
+
interface CardAuthorization {
|
|
241
|
+
/**
|
|
242
|
+
* Whether the card authorization should be approved or declined.
|
|
243
|
+
*/
|
|
244
|
+
decision: 'approve' | 'decline';
|
|
245
|
+
}
|
|
246
|
+
interface DigitalWalletToken {
|
|
247
|
+
/**
|
|
248
|
+
* If your application approves the provisioning attempt, this contains metadata
|
|
249
|
+
* about the digital wallet token that will be generated.
|
|
250
|
+
*/
|
|
251
|
+
approval?: DigitalWalletToken.Approval;
|
|
252
|
+
/**
|
|
253
|
+
* If your application declines the provisioning attempt, this contains details
|
|
254
|
+
* about the decline.
|
|
255
|
+
*/
|
|
256
|
+
decline?: DigitalWalletToken.Decline;
|
|
257
|
+
}
|
|
258
|
+
namespace DigitalWalletToken {
|
|
259
|
+
interface Approval {
|
|
260
|
+
/**
|
|
261
|
+
* The identifier of the Card Profile to assign to the Digital Wallet token.
|
|
262
|
+
*/
|
|
263
|
+
card_profile_id: string;
|
|
264
|
+
/**
|
|
265
|
+
* An email address that can be used to verify the cardholder via one-time
|
|
266
|
+
* passcode.
|
|
267
|
+
*/
|
|
268
|
+
email?: string;
|
|
269
|
+
/**
|
|
270
|
+
* A phone number that can be used to verify the cardholder via one-time passcode
|
|
271
|
+
* over SMS.
|
|
272
|
+
*/
|
|
273
|
+
phone?: string;
|
|
274
|
+
}
|
|
275
|
+
interface Decline {
|
|
276
|
+
/**
|
|
277
|
+
* Why the tokenization attempt was declined. This is for logging purposes only and
|
|
278
|
+
* is not displayed to the end-user.
|
|
279
|
+
*/
|
|
280
|
+
reason?: string;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
interface DigitalWalletAuthentication {
|
|
284
|
+
/**
|
|
285
|
+
* Whether your application was able to deliver the one-time passcode.
|
|
286
|
+
*/
|
|
287
|
+
result: 'success' | 'failure';
|
|
288
|
+
}
|
|
289
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.RealTimeDecisions = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
class RealTimeDecisions extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve a Real-Time Decision
|
|
9
|
+
*/
|
|
10
|
+
retrieve(realTimeDecisionId, options) {
|
|
11
|
+
return this.get(`/real_time_decisions/${realTimeDecisionId}`, options);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Action a Real-Time Decision
|
|
15
|
+
*/
|
|
16
|
+
action(realTimeDecisionId, body, options) {
|
|
17
|
+
return this.post(`/real_time_decisions/${realTimeDecisionId}/action`, Object.assign({ body }, options));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.RealTimeDecisions = RealTimeDecisions;
|
|
21
|
+
//# sourceMappingURL=real-time-decisions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"real-time-decisions.js","sourceRoot":"","sources":["../../../resources/real-time-decisions.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AAGzC,MAAa,iBAAkB,SAAQ,sBAAW;IAChD;;OAEG;IACH,QAAQ,CACN,kBAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,GAAG,CAAC,wBAAwB,kBAAkB,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,kBAA0B,EAC1B,IAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,wBAAwB,kBAAkB,SAAS,kBAAI,IAAI,IAAK,OAAO,EAAG,CAAC;IAC9F,CAAC;CACF;AArBD,8CAqBC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import { Page, PageParams } from '../pagination';
|
|
4
|
+
export declare class RoutingNumbers extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* You can use this API to confirm if a routing number is valid, such as when a
|
|
7
|
+
* user is providing you with bank account details. Since routing numbers uniquely
|
|
8
|
+
* identify a bank, this will always return 0 or 1 entry. In Sandbox, the only
|
|
9
|
+
* valid routing number for this method is 110000000.
|
|
10
|
+
*/
|
|
11
|
+
list(query: RoutingNumberListParams, options?: Core.RequestOptions): Core.PagePromise<RoutingNumbersPage>;
|
|
12
|
+
}
|
|
13
|
+
export declare class RoutingNumbersPage extends Page<RoutingNumber> {}
|
|
14
|
+
/**
|
|
15
|
+
* Routing numbers are used to identify your bank in a financial transaction.
|
|
16
|
+
*/
|
|
17
|
+
export interface RoutingNumber {
|
|
18
|
+
/**
|
|
19
|
+
* This routing number's support for ACH Transfers.
|
|
20
|
+
*/
|
|
21
|
+
ach_transfers: 'supported' | 'not_supported';
|
|
22
|
+
/**
|
|
23
|
+
* The name of the financial institution belonging to a routing number.
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* This routing number's support for Real Time Payments Transfers.
|
|
28
|
+
*/
|
|
29
|
+
real_time_payments_transfers: 'supported' | 'not_supported';
|
|
30
|
+
/**
|
|
31
|
+
* The nine digit routing number identifier.
|
|
32
|
+
*/
|
|
33
|
+
routing_number: string;
|
|
34
|
+
/**
|
|
35
|
+
* A constant representing the object's type. For this resource it will always be
|
|
36
|
+
* `routing_number`.
|
|
37
|
+
*/
|
|
38
|
+
type: 'routing_number';
|
|
39
|
+
/**
|
|
40
|
+
* This routing number's support for Wire Transfers.
|
|
41
|
+
*/
|
|
42
|
+
wire_transfers: 'supported' | 'not_supported';
|
|
43
|
+
}
|
|
44
|
+
export interface RoutingNumberListParams extends PageParams {
|
|
45
|
+
/**
|
|
46
|
+
* Filter financial institutions by routing number.
|
|
47
|
+
*/
|
|
48
|
+
routing_number: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.RoutingNumbersPage = exports.RoutingNumbers = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
const pagination_1 = require('../pagination');
|
|
7
|
+
class RoutingNumbers extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* You can use this API to confirm if a routing number is valid, such as when a
|
|
10
|
+
* user is providing you with bank account details. Since routing numbers uniquely
|
|
11
|
+
* identify a bank, this will always return 0 or 1 entry. In Sandbox, the only
|
|
12
|
+
* valid routing number for this method is 110000000.
|
|
13
|
+
*/
|
|
14
|
+
list(query, options) {
|
|
15
|
+
return this.getAPIList('/routing_numbers', RoutingNumbersPage, Object.assign({ query }, options));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.RoutingNumbers = RoutingNumbers;
|
|
19
|
+
class RoutingNumbersPage extends pagination_1.Page {}
|
|
20
|
+
exports.RoutingNumbersPage = RoutingNumbersPage;
|
|
21
|
+
//# sourceMappingURL=routing-numbers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing-numbers.js","sourceRoot":"","sources":["../../../resources/routing-numbers.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,6CAAgD;AAEhD,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;OAKG;IACH,IAAI,CAAC,KAA8B,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,UAAU,CAAC,kBAAkB,EAAE,kBAAkB,kBAAI,KAAK,IAAK,OAAO,EAAG,CAAC;IACxF,CAAC;CACF;AAVD,wCAUC;AAED,MAAa,kBAAmB,SAAQ,iBAAmB;CAAG;AAA9D,gDAA8D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The method used to enter the cardholder's primary account number and card
|
|
3
|
+
* expiration date
|
|
4
|
+
*/
|
|
5
|
+
export type PointOfServiceEntryMode =
|
|
6
|
+
| 'manual'
|
|
7
|
+
| 'magnetic_stripe_no_cvv'
|
|
8
|
+
| 'optical_code'
|
|
9
|
+
| 'integrated_circuit_card'
|
|
10
|
+
| 'contactless'
|
|
11
|
+
| 'credential_on_file'
|
|
12
|
+
| 'magnetic_stripe'
|
|
13
|
+
| 'contactless_magnetic_stripe'
|
|
14
|
+
| 'integrated_circuit_card_no_cvv'
|
|
15
|
+
| null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../resources/shared.ts"],"names":[],"mappings":";AAAA,qDAAqD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as Core from '../../core';
|
|
2
|
+
import { APIResource } from '../../resource';
|
|
3
|
+
import * as AccountStatements_ from '../../resources/account-statements';
|
|
4
|
+
export declare class AccountStatements extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Simulates an [Account Statement](#account-statements) being created for an
|
|
7
|
+
* account. In production, Account Statements are generated once per month.
|
|
8
|
+
*/
|
|
9
|
+
create(
|
|
10
|
+
body: AccountStatementCreateParams,
|
|
11
|
+
options?: Core.RequestOptions,
|
|
12
|
+
): Promise<Core.APIResponse<AccountStatements_.AccountStatement>>;
|
|
13
|
+
}
|
|
14
|
+
export interface AccountStatementCreateParams {
|
|
15
|
+
/**
|
|
16
|
+
* The identifier of the Account the statement is for.
|
|
17
|
+
*/
|
|
18
|
+
account_id: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.AccountStatements = void 0;
|
|
5
|
+
const resource_1 = require('../../resource');
|
|
6
|
+
class AccountStatements extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Simulates an [Account Statement](#account-statements) being created for an
|
|
9
|
+
* account. In production, Account Statements are generated once per month.
|
|
10
|
+
*/
|
|
11
|
+
create(body, options) {
|
|
12
|
+
return this.post('/simulations/account_statements', Object.assign({ body }, options));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.AccountStatements = AccountStatements;
|
|
16
|
+
//# sourceMappingURL=account-statements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-statements.js","sourceRoot":"","sources":["../../../../resources/simulations/account-statements.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AAGzC,MAAa,iBAAkB,SAAQ,sBAAW;IAChD;;;OAGG;IACH,MAAM,CACJ,IAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,iCAAiC,kBAAI,IAAI,IAAK,OAAO,EAAG,CAAC;IAC5E,CAAC;CACF;AAXD,8CAWC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as Core from '../../core';
|
|
2
|
+
import { APIResource } from '../../resource';
|
|
3
|
+
import * as AccountTransfers_ from '../../resources/account-transfers';
|
|
4
|
+
export declare class AccountTransfers extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* If your account is configured to require approval for each transfer, this
|
|
7
|
+
* endpoint simulates the approval of an [Account Transfer](#account-transfers).
|
|
8
|
+
* You can also approve sandbox Account Transfers in the dashboard. This transfer
|
|
9
|
+
* must first have a `status` of `pending_approval`.
|
|
10
|
+
*/
|
|
11
|
+
complete(
|
|
12
|
+
accountTransferId: string,
|
|
13
|
+
options?: Core.RequestOptions,
|
|
14
|
+
): Promise<Core.APIResponse<AccountTransfers_.AccountTransfer>>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.AccountTransfers = void 0;
|
|
5
|
+
const resource_1 = require('../../resource');
|
|
6
|
+
class AccountTransfers extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* If your account is configured to require approval for each transfer, this
|
|
9
|
+
* endpoint simulates the approval of an [Account Transfer](#account-transfers).
|
|
10
|
+
* You can also approve sandbox Account Transfers in the dashboard. This transfer
|
|
11
|
+
* must first have a `status` of `pending_approval`.
|
|
12
|
+
*/
|
|
13
|
+
complete(accountTransferId, options) {
|
|
14
|
+
return this.post(`/simulations/account_transfers/${accountTransferId}/complete`, options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AccountTransfers = AccountTransfers;
|
|
18
|
+
//# sourceMappingURL=account-transfers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-transfers.js","sourceRoot":"","sources":["../../../../resources/simulations/account-transfers.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AAGzC,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;OAKG;IACH,QAAQ,CACN,iBAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,kCAAkC,iBAAiB,WAAW,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;CACF;AAbD,4CAaC"}
|