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,316 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import { Page, PageParams } from '../pagination';
|
|
4
|
+
export declare class Cards extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a Card
|
|
7
|
+
*/
|
|
8
|
+
create(body: CardCreateParams, options?: Core.RequestOptions): Promise<Core.APIResponse<Card>>;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a Card
|
|
11
|
+
*/
|
|
12
|
+
retrieve(cardId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<Card>>;
|
|
13
|
+
/**
|
|
14
|
+
* Update a Card
|
|
15
|
+
*/
|
|
16
|
+
update(
|
|
17
|
+
cardId: string,
|
|
18
|
+
body: CardUpdateParams,
|
|
19
|
+
options?: Core.RequestOptions,
|
|
20
|
+
): Promise<Core.APIResponse<Card>>;
|
|
21
|
+
/**
|
|
22
|
+
* List Cards
|
|
23
|
+
*/
|
|
24
|
+
list(query?: CardListParams, options?: Core.RequestOptions): Core.PagePromise<CardsPage>;
|
|
25
|
+
list(options?: Core.RequestOptions): Core.PagePromise<CardsPage>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve sensitive details for a Card
|
|
28
|
+
*/
|
|
29
|
+
retrieveSensitiveDetails(
|
|
30
|
+
cardId: string,
|
|
31
|
+
options?: Core.RequestOptions,
|
|
32
|
+
): Promise<Core.APIResponse<CardDetails>>;
|
|
33
|
+
}
|
|
34
|
+
export declare class CardsPage extends Page<Card> {}
|
|
35
|
+
/**
|
|
36
|
+
* Cards are commercial credit cards. They'll immediately work for online purchases
|
|
37
|
+
* after you create them. All cards maintain a credit limit of 100% of the
|
|
38
|
+
* Account’s available balance at the time of transaction. Funds are deducted from
|
|
39
|
+
* the Account upon transaction settlement.
|
|
40
|
+
*/
|
|
41
|
+
export interface Card {
|
|
42
|
+
/**
|
|
43
|
+
* The identifier for the account this card belongs to.
|
|
44
|
+
*/
|
|
45
|
+
account_id: string;
|
|
46
|
+
/**
|
|
47
|
+
* The Card's billing address.
|
|
48
|
+
*/
|
|
49
|
+
billing_address: Card.BillingAddress;
|
|
50
|
+
/**
|
|
51
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
52
|
+
* the Card was created.
|
|
53
|
+
*/
|
|
54
|
+
created_at: string;
|
|
55
|
+
/**
|
|
56
|
+
* The card's description for display purposes.
|
|
57
|
+
*/
|
|
58
|
+
description: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* The contact information used in the two-factor steps for digital wallet card
|
|
61
|
+
* creation. At least one field must be present to complete the digital wallet
|
|
62
|
+
* steps.
|
|
63
|
+
*/
|
|
64
|
+
digital_wallet: Card.DigitalWallet | null;
|
|
65
|
+
/**
|
|
66
|
+
* The month the card expires in M format (e.g., August is 8).
|
|
67
|
+
*/
|
|
68
|
+
expiration_month: number;
|
|
69
|
+
/**
|
|
70
|
+
* The year the card expires in YYYY format (e.g., 2025).
|
|
71
|
+
*/
|
|
72
|
+
expiration_year: number;
|
|
73
|
+
/**
|
|
74
|
+
* The card identifier.
|
|
75
|
+
*/
|
|
76
|
+
id: string;
|
|
77
|
+
/**
|
|
78
|
+
* The last 4 digits of the Card's Primary Account Number.
|
|
79
|
+
*/
|
|
80
|
+
last4: string;
|
|
81
|
+
/**
|
|
82
|
+
* This indicates if payments can be made with the card.
|
|
83
|
+
*/
|
|
84
|
+
status: 'active' | 'disabled' | 'canceled';
|
|
85
|
+
/**
|
|
86
|
+
* A constant representing the object's type. For this resource it will always be
|
|
87
|
+
* `card`.
|
|
88
|
+
*/
|
|
89
|
+
type: 'card';
|
|
90
|
+
}
|
|
91
|
+
export declare namespace Card {
|
|
92
|
+
interface BillingAddress {
|
|
93
|
+
/**
|
|
94
|
+
* The city of the billing address.
|
|
95
|
+
*/
|
|
96
|
+
city: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* The first line of the billing address.
|
|
99
|
+
*/
|
|
100
|
+
line1: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* The second line of the billing address.
|
|
103
|
+
*/
|
|
104
|
+
line2: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* The postal code of the billing address.
|
|
107
|
+
*/
|
|
108
|
+
postal_code: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* The US state of the billing address.
|
|
111
|
+
*/
|
|
112
|
+
state: string | null;
|
|
113
|
+
}
|
|
114
|
+
interface DigitalWallet {
|
|
115
|
+
/**
|
|
116
|
+
* The card profile assigned to this digital card. Card profiles may also be
|
|
117
|
+
* assigned at the program level.
|
|
118
|
+
*/
|
|
119
|
+
card_profile_id: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* An email address that can be used to verify the cardholder via one-time passcode
|
|
122
|
+
* over email.
|
|
123
|
+
*/
|
|
124
|
+
email: string | null;
|
|
125
|
+
/**
|
|
126
|
+
* A phone number that can be used to verify the cardholder via one-time passcode
|
|
127
|
+
* over SMS.
|
|
128
|
+
*/
|
|
129
|
+
phone: string | null;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* An object containing the sensitive details (card number, cvc, etc) for a Card.
|
|
134
|
+
*/
|
|
135
|
+
export interface CardDetails {
|
|
136
|
+
/**
|
|
137
|
+
* The identifier for the Card for which sensitive details have been returned.
|
|
138
|
+
*/
|
|
139
|
+
card_id: string;
|
|
140
|
+
/**
|
|
141
|
+
* The month the card expires in M format (e.g., August is 8).
|
|
142
|
+
*/
|
|
143
|
+
expiration_month: number;
|
|
144
|
+
/**
|
|
145
|
+
* The year the card expires in YYYY format (e.g., 2025).
|
|
146
|
+
*/
|
|
147
|
+
expiration_year: number;
|
|
148
|
+
/**
|
|
149
|
+
* The card number.
|
|
150
|
+
*/
|
|
151
|
+
primary_account_number: string;
|
|
152
|
+
/**
|
|
153
|
+
* A constant representing the object's type. For this resource it will always be
|
|
154
|
+
* `card_details`.
|
|
155
|
+
*/
|
|
156
|
+
type: 'card_details';
|
|
157
|
+
/**
|
|
158
|
+
* The three-digit verification code for the card. It's also known as the Card
|
|
159
|
+
* Verification Code (CVC), the Card Verification Value (CVV), or the Card
|
|
160
|
+
* Identification (CID).
|
|
161
|
+
*/
|
|
162
|
+
verification_code: string;
|
|
163
|
+
}
|
|
164
|
+
export interface CardCreateParams {
|
|
165
|
+
/**
|
|
166
|
+
* The Account the card should belong to.
|
|
167
|
+
*/
|
|
168
|
+
account_id: string;
|
|
169
|
+
/**
|
|
170
|
+
* The card's billing address.
|
|
171
|
+
*/
|
|
172
|
+
billing_address?: CardCreateParams.BillingAddress;
|
|
173
|
+
/**
|
|
174
|
+
* The description you choose to give the card.
|
|
175
|
+
*/
|
|
176
|
+
description?: string;
|
|
177
|
+
/**
|
|
178
|
+
* The contact information used in the two-factor steps for digital wallet card
|
|
179
|
+
* creation. At least one field must be present to complete the digital wallet
|
|
180
|
+
* steps.
|
|
181
|
+
*/
|
|
182
|
+
digital_wallet?: CardCreateParams.DigitalWallet;
|
|
183
|
+
}
|
|
184
|
+
export declare namespace CardCreateParams {
|
|
185
|
+
interface BillingAddress {
|
|
186
|
+
/**
|
|
187
|
+
* The city of the billing address.
|
|
188
|
+
*/
|
|
189
|
+
city: string;
|
|
190
|
+
/**
|
|
191
|
+
* The first line of the billing address.
|
|
192
|
+
*/
|
|
193
|
+
line1: string;
|
|
194
|
+
/**
|
|
195
|
+
* The postal code of the billing address.
|
|
196
|
+
*/
|
|
197
|
+
postal_code: string;
|
|
198
|
+
/**
|
|
199
|
+
* The US state of the billing address.
|
|
200
|
+
*/
|
|
201
|
+
state: string;
|
|
202
|
+
/**
|
|
203
|
+
* The second line of the billing address.
|
|
204
|
+
*/
|
|
205
|
+
line2?: string;
|
|
206
|
+
}
|
|
207
|
+
interface DigitalWallet {
|
|
208
|
+
/**
|
|
209
|
+
* The card profile assigned to this digital card. Card profiles may also be
|
|
210
|
+
* assigned at the program level.
|
|
211
|
+
*/
|
|
212
|
+
card_profile_id?: string;
|
|
213
|
+
/**
|
|
214
|
+
* An email address that can be used to verify the cardholder via one-time passcode
|
|
215
|
+
* over email.
|
|
216
|
+
*/
|
|
217
|
+
email?: string;
|
|
218
|
+
/**
|
|
219
|
+
* A phone number that can be used to verify the cardholder via one-time passcode
|
|
220
|
+
* over SMS.
|
|
221
|
+
*/
|
|
222
|
+
phone?: string;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
export interface CardUpdateParams {
|
|
226
|
+
/**
|
|
227
|
+
* The card's updated billing address.
|
|
228
|
+
*/
|
|
229
|
+
billing_address?: CardUpdateParams.BillingAddress;
|
|
230
|
+
/**
|
|
231
|
+
* The description you choose to give the card.
|
|
232
|
+
*/
|
|
233
|
+
description?: string;
|
|
234
|
+
/**
|
|
235
|
+
* The contact information used in the two-factor steps for digital wallet card
|
|
236
|
+
* creation. At least one field must be present to complete the digital wallet
|
|
237
|
+
* steps.
|
|
238
|
+
*/
|
|
239
|
+
digital_wallet?: CardUpdateParams.DigitalWallet;
|
|
240
|
+
/**
|
|
241
|
+
* The status to update the Card with.
|
|
242
|
+
*/
|
|
243
|
+
status?: 'active' | 'disabled' | 'canceled';
|
|
244
|
+
}
|
|
245
|
+
export declare namespace CardUpdateParams {
|
|
246
|
+
interface BillingAddress {
|
|
247
|
+
/**
|
|
248
|
+
* The city of the billing address.
|
|
249
|
+
*/
|
|
250
|
+
city: string;
|
|
251
|
+
/**
|
|
252
|
+
* The first line of the billing address.
|
|
253
|
+
*/
|
|
254
|
+
line1: string;
|
|
255
|
+
/**
|
|
256
|
+
* The postal code of the billing address.
|
|
257
|
+
*/
|
|
258
|
+
postal_code: string;
|
|
259
|
+
/**
|
|
260
|
+
* The US state of the billing address.
|
|
261
|
+
*/
|
|
262
|
+
state: string;
|
|
263
|
+
/**
|
|
264
|
+
* The second line of the billing address.
|
|
265
|
+
*/
|
|
266
|
+
line2?: string;
|
|
267
|
+
}
|
|
268
|
+
interface DigitalWallet {
|
|
269
|
+
/**
|
|
270
|
+
* The card profile assigned to this digital card. Card profiles may also be
|
|
271
|
+
* assigned at the program level.
|
|
272
|
+
*/
|
|
273
|
+
card_profile_id?: string;
|
|
274
|
+
/**
|
|
275
|
+
* An email address that can be used to verify the cardholder via one-time passcode
|
|
276
|
+
* over email.
|
|
277
|
+
*/
|
|
278
|
+
email?: string;
|
|
279
|
+
/**
|
|
280
|
+
* A phone number that can be used to verify the cardholder via one-time passcode
|
|
281
|
+
* over SMS.
|
|
282
|
+
*/
|
|
283
|
+
phone?: string;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
export interface CardListParams extends PageParams {
|
|
287
|
+
/**
|
|
288
|
+
* Filter Cards to ones belonging to the specified Account.
|
|
289
|
+
*/
|
|
290
|
+
account_id?: string;
|
|
291
|
+
created_at?: CardListParams.CreatedAt;
|
|
292
|
+
}
|
|
293
|
+
export declare namespace CardListParams {
|
|
294
|
+
interface CreatedAt {
|
|
295
|
+
/**
|
|
296
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
297
|
+
* timestamp.
|
|
298
|
+
*/
|
|
299
|
+
after?: string;
|
|
300
|
+
/**
|
|
301
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
302
|
+
* timestamp.
|
|
303
|
+
*/
|
|
304
|
+
before?: string;
|
|
305
|
+
/**
|
|
306
|
+
* Return results on or after this
|
|
307
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
308
|
+
*/
|
|
309
|
+
on_or_after?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Return results on or before this
|
|
312
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
313
|
+
*/
|
|
314
|
+
on_or_before?: string;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.CardsPage = exports.Cards = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
const core_1 = require('../core');
|
|
7
|
+
const pagination_1 = require('../pagination');
|
|
8
|
+
class Cards extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a Card
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return this.post('/cards', Object.assign({ body }, options));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve a Card
|
|
17
|
+
*/
|
|
18
|
+
retrieve(cardId, options) {
|
|
19
|
+
return this.get(`/cards/${cardId}`, options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Update a Card
|
|
23
|
+
*/
|
|
24
|
+
update(cardId, body, options) {
|
|
25
|
+
return this.patch(`/cards/${cardId}`, 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('/cards', CardsPage, Object.assign({ query }, options));
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Retrieve sensitive details for a Card
|
|
35
|
+
*/
|
|
36
|
+
retrieveSensitiveDetails(cardId, options) {
|
|
37
|
+
return this.get(`/cards/${cardId}/details`, options);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.Cards = Cards;
|
|
41
|
+
class CardsPage extends pagination_1.Page {}
|
|
42
|
+
exports.CardsPage = CardsPage;
|
|
43
|
+
//# sourceMappingURL=cards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cards.js","sourceRoot":"","sources":["../../../resources/cards.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAgD;AAEhD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,kBAAI,IAAI,IAAK,OAAO,EAAG,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,MAAc,EACd,IAAsB,EACtB,OAA6B;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,MAAM,EAAE,kBAAI,IAAI,IAAK,OAAO,EAAG,CAAC;IAC9D,CAAC;IAOD,IAAI,CACF,QAA8C,EAAE,EAChD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,SAAS,kBAAI,KAAK,IAAK,OAAO,EAAG,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,wBAAwB,CACtB,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;CACF;AAnDD,sBAmDC;AAED,MAAa,SAAU,SAAQ,iBAAU;CAAG;AAA5C,8BAA4C"}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import { Page, PageParams } from '../pagination';
|
|
4
|
+
export declare class CheckDeposits extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a Check Deposit
|
|
7
|
+
*/
|
|
8
|
+
create(
|
|
9
|
+
body: CheckDepositCreateParams,
|
|
10
|
+
options?: Core.RequestOptions,
|
|
11
|
+
): Promise<Core.APIResponse<CheckDeposit>>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve a Check Deposit
|
|
14
|
+
*/
|
|
15
|
+
retrieve(checkDepositId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<CheckDeposit>>;
|
|
16
|
+
/**
|
|
17
|
+
* List Check Deposits
|
|
18
|
+
*/
|
|
19
|
+
list(query?: CheckDepositListParams, options?: Core.RequestOptions): Core.PagePromise<CheckDepositsPage>;
|
|
20
|
+
list(options?: Core.RequestOptions): Core.PagePromise<CheckDepositsPage>;
|
|
21
|
+
}
|
|
22
|
+
export declare class CheckDepositsPage extends Page<CheckDeposit> {}
|
|
23
|
+
/**
|
|
24
|
+
* Check Deposits allow you to deposit images of paper checks into your account.
|
|
25
|
+
*/
|
|
26
|
+
export interface CheckDeposit {
|
|
27
|
+
/**
|
|
28
|
+
* The Account the check was deposited into.
|
|
29
|
+
*/
|
|
30
|
+
account_id: string;
|
|
31
|
+
/**
|
|
32
|
+
* The deposited amount in the minor unit of the destination account currency. For
|
|
33
|
+
* dollars, for example, this is cents.
|
|
34
|
+
*/
|
|
35
|
+
amount: number;
|
|
36
|
+
/**
|
|
37
|
+
* The ID for the File containing the image of the back of the check.
|
|
38
|
+
*/
|
|
39
|
+
back_image_file_id: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
42
|
+
* the transfer was created.
|
|
43
|
+
*/
|
|
44
|
+
created_at: string;
|
|
45
|
+
/**
|
|
46
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the deposit.
|
|
47
|
+
*/
|
|
48
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
49
|
+
/**
|
|
50
|
+
* If your deposit is successfully parsed and accepted by Increase, this will
|
|
51
|
+
* contain details of the parsed check.
|
|
52
|
+
*/
|
|
53
|
+
deposit_acceptance: CheckDeposit.DepositAcceptance | null;
|
|
54
|
+
/**
|
|
55
|
+
* If your deposit is rejected by Increase, this will contain details as to why it
|
|
56
|
+
* was rejected.
|
|
57
|
+
*/
|
|
58
|
+
deposit_rejection: CheckDeposit.DepositRejection | null;
|
|
59
|
+
/**
|
|
60
|
+
* If your deposit is returned, this will contain details as to why it was
|
|
61
|
+
* returned.
|
|
62
|
+
*/
|
|
63
|
+
deposit_return: CheckDeposit.DepositReturn | null;
|
|
64
|
+
/**
|
|
65
|
+
* The ID for the File containing the image of the front of the check.
|
|
66
|
+
*/
|
|
67
|
+
front_image_file_id: string;
|
|
68
|
+
/**
|
|
69
|
+
* The deposit's identifier.
|
|
70
|
+
*/
|
|
71
|
+
id: string;
|
|
72
|
+
/**
|
|
73
|
+
* The status of the Check Deposit.
|
|
74
|
+
*/
|
|
75
|
+
status: 'pending' | 'submitted' | 'rejected' | 'returned';
|
|
76
|
+
/**
|
|
77
|
+
* The ID for the Transaction created by the deposit.
|
|
78
|
+
*/
|
|
79
|
+
transaction_id: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* A constant representing the object's type. For this resource it will always be
|
|
82
|
+
* `check_deposit`.
|
|
83
|
+
*/
|
|
84
|
+
type: 'check_deposit';
|
|
85
|
+
}
|
|
86
|
+
export declare namespace CheckDeposit {
|
|
87
|
+
interface DepositAcceptance {
|
|
88
|
+
/**
|
|
89
|
+
* The account number printed on the check.
|
|
90
|
+
*/
|
|
91
|
+
account_number: string;
|
|
92
|
+
/**
|
|
93
|
+
* The amount to be deposited in the minor unit of the transaction's currency. For
|
|
94
|
+
* dollars, for example, this is cents.
|
|
95
|
+
*/
|
|
96
|
+
amount: number;
|
|
97
|
+
/**
|
|
98
|
+
* An additional line of metadata printed on the check. This typically includes the
|
|
99
|
+
* check number for business checks.
|
|
100
|
+
*/
|
|
101
|
+
auxiliary_on_us: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* The ID of the Check Deposit that was accepted.
|
|
104
|
+
*/
|
|
105
|
+
check_deposit_id: string;
|
|
106
|
+
/**
|
|
107
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
108
|
+
* transaction's currency.
|
|
109
|
+
*/
|
|
110
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
111
|
+
/**
|
|
112
|
+
* The routing number printed on the check.
|
|
113
|
+
*/
|
|
114
|
+
routing_number: string;
|
|
115
|
+
/**
|
|
116
|
+
* The check serial number, if present, for consumer checks. For business checks,
|
|
117
|
+
* the serial number is usually in the `auxiliary_on_us` field.
|
|
118
|
+
*/
|
|
119
|
+
serial_number: string | null;
|
|
120
|
+
}
|
|
121
|
+
interface DepositRejection {
|
|
122
|
+
/**
|
|
123
|
+
* The rejected amount in the minor unit of check's currency. For dollars, for
|
|
124
|
+
* example, this is cents.
|
|
125
|
+
*/
|
|
126
|
+
amount: number;
|
|
127
|
+
/**
|
|
128
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's
|
|
129
|
+
* currency.
|
|
130
|
+
*/
|
|
131
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
132
|
+
/**
|
|
133
|
+
* Why the check deposit was rejected.
|
|
134
|
+
*/
|
|
135
|
+
reason:
|
|
136
|
+
| 'incomplete_image'
|
|
137
|
+
| 'duplicate'
|
|
138
|
+
| 'poor_image_quality'
|
|
139
|
+
| 'incorrect_amount'
|
|
140
|
+
| 'incorrect_recipient'
|
|
141
|
+
| 'not_eligible_for_mobile_deposit'
|
|
142
|
+
| 'unknown';
|
|
143
|
+
/**
|
|
144
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
145
|
+
* the check deposit was rejected.
|
|
146
|
+
*/
|
|
147
|
+
rejected_at: string;
|
|
148
|
+
}
|
|
149
|
+
interface DepositReturn {
|
|
150
|
+
/**
|
|
151
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
152
|
+
* example, this is cents.
|
|
153
|
+
*/
|
|
154
|
+
amount: number;
|
|
155
|
+
/**
|
|
156
|
+
* The identifier of the Check Deposit that was returned.
|
|
157
|
+
*/
|
|
158
|
+
check_deposit_id: string;
|
|
159
|
+
/**
|
|
160
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
161
|
+
* transaction's currency.
|
|
162
|
+
*/
|
|
163
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
164
|
+
return_reason:
|
|
165
|
+
| 'ach_conversion_not_supported'
|
|
166
|
+
| 'closed_account'
|
|
167
|
+
| 'duplicate_submission'
|
|
168
|
+
| 'insufficient_funds'
|
|
169
|
+
| 'no_account'
|
|
170
|
+
| 'not_authorized'
|
|
171
|
+
| 'stale_dated'
|
|
172
|
+
| 'stop_payment'
|
|
173
|
+
| 'unknown_reason'
|
|
174
|
+
| 'unmatched_details'
|
|
175
|
+
| 'unreadable_image';
|
|
176
|
+
/**
|
|
177
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
178
|
+
* the check deposit was returned.
|
|
179
|
+
*/
|
|
180
|
+
returned_at: string;
|
|
181
|
+
/**
|
|
182
|
+
* The identifier of the transaction that reversed the original check deposit
|
|
183
|
+
* transaction.
|
|
184
|
+
*/
|
|
185
|
+
transaction_id: string;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
export interface CheckDepositCreateParams {
|
|
189
|
+
/**
|
|
190
|
+
* The identifier for the Account to deposit the check in.
|
|
191
|
+
*/
|
|
192
|
+
account_id: string;
|
|
193
|
+
/**
|
|
194
|
+
* The deposit amount in the minor unit of the account currency. For dollars, for
|
|
195
|
+
* example, this is cents.
|
|
196
|
+
*/
|
|
197
|
+
amount: number;
|
|
198
|
+
/**
|
|
199
|
+
* The File containing the check's back image.
|
|
200
|
+
*/
|
|
201
|
+
back_image_file_id: string;
|
|
202
|
+
/**
|
|
203
|
+
* The currency to use for the deposit.
|
|
204
|
+
*/
|
|
205
|
+
currency: string;
|
|
206
|
+
/**
|
|
207
|
+
* The File containing the check's front image.
|
|
208
|
+
*/
|
|
209
|
+
front_image_file_id: string;
|
|
210
|
+
}
|
|
211
|
+
export interface CheckDepositListParams extends PageParams {
|
|
212
|
+
/**
|
|
213
|
+
* Filter Check Deposits to those belonging to the specified Account.
|
|
214
|
+
*/
|
|
215
|
+
account_id?: string;
|
|
216
|
+
created_at?: CheckDepositListParams.CreatedAt;
|
|
217
|
+
}
|
|
218
|
+
export declare namespace CheckDepositListParams {
|
|
219
|
+
interface CreatedAt {
|
|
220
|
+
/**
|
|
221
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
222
|
+
* timestamp.
|
|
223
|
+
*/
|
|
224
|
+
after?: string;
|
|
225
|
+
/**
|
|
226
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
227
|
+
* timestamp.
|
|
228
|
+
*/
|
|
229
|
+
before?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Return results on or after this
|
|
232
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
233
|
+
*/
|
|
234
|
+
on_or_after?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Return results on or before this
|
|
237
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
238
|
+
*/
|
|
239
|
+
on_or_before?: string;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.CheckDepositsPage = exports.CheckDeposits = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
const core_1 = require('../core');
|
|
7
|
+
const pagination_1 = require('../pagination');
|
|
8
|
+
class CheckDeposits extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a Check Deposit
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return this.post('/check_deposits', Object.assign({ body }, options));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve a Check Deposit
|
|
17
|
+
*/
|
|
18
|
+
retrieve(checkDepositId, options) {
|
|
19
|
+
return this.get(`/check_deposits/${checkDepositId}`, options);
|
|
20
|
+
}
|
|
21
|
+
list(query = {}, options) {
|
|
22
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
23
|
+
return this.list({}, query);
|
|
24
|
+
}
|
|
25
|
+
return this.getAPIList('/check_deposits', CheckDepositsPage, Object.assign({ query }, options));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.CheckDeposits = CheckDeposits;
|
|
29
|
+
class CheckDepositsPage extends pagination_1.Page {}
|
|
30
|
+
exports.CheckDepositsPage = CheckDepositsPage;
|
|
31
|
+
//# sourceMappingURL=check-deposits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-deposits.js","sourceRoot":"","sources":["../../../resources/check-deposits.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAgD;AAEhD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,iBAAiB,kBAAI,IAAI,IAAK,OAAO,EAAG,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,cAAsB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,GAAG,CAAC,mBAAmB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAOD,IAAI,CACF,QAAsD,EAAE,EACxD,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,iBAAiB,EAAE,iBAAiB,kBAAI,KAAK,IAAK,OAAO,EAAG,CAAC;IACtF,CAAC;CACF;AAjCD,sCAiCC;AAED,MAAa,iBAAkB,SAAQ,iBAAkB;CAAG;AAA5D,8CAA4D"}
|