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,424 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import { Page, PageParams } from '../pagination';
|
|
4
|
+
import * as Shared from '../resources/shared';
|
|
5
|
+
export declare class DeclinedTransactions extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieve a Declined Transaction
|
|
8
|
+
*/
|
|
9
|
+
retrieve(
|
|
10
|
+
declinedTransactionId: string,
|
|
11
|
+
options?: Core.RequestOptions,
|
|
12
|
+
): Promise<Core.APIResponse<DeclinedTransaction>>;
|
|
13
|
+
/**
|
|
14
|
+
* List Declined Transactions
|
|
15
|
+
*/
|
|
16
|
+
list(
|
|
17
|
+
query?: DeclinedTransactionListParams,
|
|
18
|
+
options?: Core.RequestOptions,
|
|
19
|
+
): Core.PagePromise<DeclinedTransactionsPage>;
|
|
20
|
+
list(options?: Core.RequestOptions): Core.PagePromise<DeclinedTransactionsPage>;
|
|
21
|
+
}
|
|
22
|
+
export declare class DeclinedTransactionsPage extends Page<DeclinedTransaction> {}
|
|
23
|
+
/**
|
|
24
|
+
* Declined Transactions are refused additions and removals of money from your bank
|
|
25
|
+
* account. For example, Declined Transactions are caused when your Account has an
|
|
26
|
+
* insufficient balance or your Limits are triggered.
|
|
27
|
+
*/
|
|
28
|
+
export interface DeclinedTransaction {
|
|
29
|
+
/**
|
|
30
|
+
* The identifier for the Account the Declined Transaction belongs to.
|
|
31
|
+
*/
|
|
32
|
+
account_id: string;
|
|
33
|
+
/**
|
|
34
|
+
* The Declined Transaction amount in the minor unit of its currency. For dollars,
|
|
35
|
+
* for example, this is cents.
|
|
36
|
+
*/
|
|
37
|
+
amount: number;
|
|
38
|
+
/**
|
|
39
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the
|
|
40
|
+
* Transaction occured.
|
|
41
|
+
*/
|
|
42
|
+
created_at: string;
|
|
43
|
+
/**
|
|
44
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Declined
|
|
45
|
+
* Transaction's currency. This will match the currency on the Declined
|
|
46
|
+
* Transcation's Account.
|
|
47
|
+
*/
|
|
48
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
49
|
+
/**
|
|
50
|
+
* This is the description the vendor provides.
|
|
51
|
+
*/
|
|
52
|
+
description: string;
|
|
53
|
+
/**
|
|
54
|
+
* The Declined Transaction identifier.
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* The identifier for the route this Declined Transaction came through. Routes are
|
|
59
|
+
* things like cards and ACH details.
|
|
60
|
+
*/
|
|
61
|
+
route_id: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* The type of the route this Declined Transaction came through.
|
|
64
|
+
*/
|
|
65
|
+
route_type: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* This is an object giving more details on the network-level event that caused the
|
|
68
|
+
* Declined Transaction. For example, for a card transaction this lists the
|
|
69
|
+
* merchant's industry and location. Note that for backwards compatibility reasons,
|
|
70
|
+
* additional undocumented keys may appear in this object. These should be treated
|
|
71
|
+
* as deprecated and will be removed in the future.
|
|
72
|
+
*/
|
|
73
|
+
source: DeclinedTransaction.Source;
|
|
74
|
+
/**
|
|
75
|
+
* A constant representing the object's type. For this resource it will always be
|
|
76
|
+
* `declined_transaction`.
|
|
77
|
+
*/
|
|
78
|
+
type: 'declined_transaction';
|
|
79
|
+
}
|
|
80
|
+
export declare namespace DeclinedTransaction {
|
|
81
|
+
interface Source {
|
|
82
|
+
/**
|
|
83
|
+
* A ACH Decline object. This field will be present in the JSON response if and
|
|
84
|
+
* only if `category` is equal to `ach_decline`.
|
|
85
|
+
*/
|
|
86
|
+
ach_decline: Source.ACHDecline | null;
|
|
87
|
+
/**
|
|
88
|
+
* A Card Decline object. This field will be present in the JSON response if and
|
|
89
|
+
* only if `category` is equal to `card_decline`.
|
|
90
|
+
*/
|
|
91
|
+
card_decline: Source.CardDecline | null;
|
|
92
|
+
/**
|
|
93
|
+
* A Deprecated Card Decline object. This field will be present in the JSON
|
|
94
|
+
* response if and only if `category` is equal to `card_route_decline`.
|
|
95
|
+
*/
|
|
96
|
+
card_route_decline: Source.CardRouteDecline | null;
|
|
97
|
+
/**
|
|
98
|
+
* The type of decline that took place. We may add additional possible values for
|
|
99
|
+
* this enum over time; your application should be able to handle such additions
|
|
100
|
+
* gracefully.
|
|
101
|
+
*/
|
|
102
|
+
category:
|
|
103
|
+
| 'ach_decline'
|
|
104
|
+
| 'card_decline'
|
|
105
|
+
| 'check_decline'
|
|
106
|
+
| 'inbound_real_time_payments_transfer_decline'
|
|
107
|
+
| 'international_ach_decline'
|
|
108
|
+
| 'card_route_decline'
|
|
109
|
+
| 'other';
|
|
110
|
+
/**
|
|
111
|
+
* A Check Decline object. This field will be present in the JSON response if and
|
|
112
|
+
* only if `category` is equal to `check_decline`.
|
|
113
|
+
*/
|
|
114
|
+
check_decline: Source.CheckDecline | null;
|
|
115
|
+
/**
|
|
116
|
+
* A Inbound Real Time Payments Transfer Decline object. This field will be present
|
|
117
|
+
* in the JSON response if and only if `category` is equal to
|
|
118
|
+
* `inbound_real_time_payments_transfer_decline`.
|
|
119
|
+
*/
|
|
120
|
+
inbound_real_time_payments_transfer_decline: Source.InboundRealTimePaymentsTransferDecline | null;
|
|
121
|
+
/**
|
|
122
|
+
* A International ACH Decline object. This field will be present in the JSON
|
|
123
|
+
* response if and only if `category` is equal to `international_ach_decline`.
|
|
124
|
+
*/
|
|
125
|
+
international_ach_decline: Source.InternationalACHDecline | null;
|
|
126
|
+
}
|
|
127
|
+
namespace Source {
|
|
128
|
+
interface ACHDecline {
|
|
129
|
+
/**
|
|
130
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
131
|
+
* dollars, for example, this is cents.
|
|
132
|
+
*/
|
|
133
|
+
amount: number;
|
|
134
|
+
originator_company_descriptive_date: string | null;
|
|
135
|
+
originator_company_discretionary_data: string | null;
|
|
136
|
+
originator_company_id: string;
|
|
137
|
+
originator_company_name: string;
|
|
138
|
+
/**
|
|
139
|
+
* Why the ACH transfer was declined.
|
|
140
|
+
*/
|
|
141
|
+
reason:
|
|
142
|
+
| 'ach_route_canceled'
|
|
143
|
+
| 'ach_route_disabled'
|
|
144
|
+
| 'breaches_limit'
|
|
145
|
+
| 'credit_entry_refused_by_receiver'
|
|
146
|
+
| 'duplicate_return'
|
|
147
|
+
| 'entity_not_active'
|
|
148
|
+
| 'transaction_not_allowed'
|
|
149
|
+
| 'group_locked'
|
|
150
|
+
| 'insufficient_funds'
|
|
151
|
+
| 'no_ach_route'
|
|
152
|
+
| 'originator_request';
|
|
153
|
+
receiver_id_number: string | null;
|
|
154
|
+
receiver_name: string | null;
|
|
155
|
+
trace_number: string;
|
|
156
|
+
}
|
|
157
|
+
interface CardDecline {
|
|
158
|
+
/**
|
|
159
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
160
|
+
* dollars, for example, this is cents.
|
|
161
|
+
*/
|
|
162
|
+
amount: number;
|
|
163
|
+
/**
|
|
164
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
|
|
165
|
+
* account currency.
|
|
166
|
+
*/
|
|
167
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
168
|
+
/**
|
|
169
|
+
* If the authorization was attempted using a Digital Wallet Token (such as an
|
|
170
|
+
* Apple Pay purchase), the identifier of the token that was used.
|
|
171
|
+
*/
|
|
172
|
+
digital_wallet_token_id: string | null;
|
|
173
|
+
/**
|
|
174
|
+
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
175
|
+
* is transacting with.
|
|
176
|
+
*/
|
|
177
|
+
merchant_acceptor_id: string;
|
|
178
|
+
/**
|
|
179
|
+
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
180
|
+
* card is transacting with.
|
|
181
|
+
*/
|
|
182
|
+
merchant_category_code: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* The city the merchant resides in.
|
|
185
|
+
*/
|
|
186
|
+
merchant_city: string | null;
|
|
187
|
+
/**
|
|
188
|
+
* The country the merchant resides in.
|
|
189
|
+
*/
|
|
190
|
+
merchant_country: string | null;
|
|
191
|
+
/**
|
|
192
|
+
* The merchant descriptor of the merchant the card is transacting with.
|
|
193
|
+
*/
|
|
194
|
+
merchant_descriptor: string;
|
|
195
|
+
/**
|
|
196
|
+
* The state the merchant resides in.
|
|
197
|
+
*/
|
|
198
|
+
merchant_state: string | null;
|
|
199
|
+
/**
|
|
200
|
+
* The payment network used to process this card authorization
|
|
201
|
+
*/
|
|
202
|
+
network: 'visa';
|
|
203
|
+
/**
|
|
204
|
+
* Fields specific to the `network`
|
|
205
|
+
*/
|
|
206
|
+
network_details: CardDecline.NetworkDetails;
|
|
207
|
+
/**
|
|
208
|
+
* The identifier of the Real-Time Decision sent to approve or decline this
|
|
209
|
+
* transaction.
|
|
210
|
+
*/
|
|
211
|
+
real_time_decision_id: string | null;
|
|
212
|
+
/**
|
|
213
|
+
* Why the transaction was declined.
|
|
214
|
+
*/
|
|
215
|
+
reason:
|
|
216
|
+
| 'card_not_active'
|
|
217
|
+
| 'entity_not_active'
|
|
218
|
+
| 'group_locked'
|
|
219
|
+
| 'insufficient_funds'
|
|
220
|
+
| 'cvv2_mismatch'
|
|
221
|
+
| 'transaction_not_allowed'
|
|
222
|
+
| 'breaches_limit'
|
|
223
|
+
| 'webhook_declined'
|
|
224
|
+
| 'webhook_timed_out'
|
|
225
|
+
| 'declined_by_stand_in_processing';
|
|
226
|
+
}
|
|
227
|
+
namespace CardDecline {
|
|
228
|
+
interface NetworkDetails {
|
|
229
|
+
/**
|
|
230
|
+
* Fields specific to the `visa` network
|
|
231
|
+
*/
|
|
232
|
+
visa: NetworkDetails.Visa;
|
|
233
|
+
}
|
|
234
|
+
namespace NetworkDetails {
|
|
235
|
+
interface Visa {
|
|
236
|
+
/**
|
|
237
|
+
* For electronic commerce transactions, this identifies the level of security used
|
|
238
|
+
* in obtaining the customer's payment credential. For mail or telephone order
|
|
239
|
+
* transactions, identifies the type of mail or telephone order.
|
|
240
|
+
*/
|
|
241
|
+
electronic_commerce_indicator:
|
|
242
|
+
| 'mail_phone_order'
|
|
243
|
+
| 'recurring'
|
|
244
|
+
| 'installment'
|
|
245
|
+
| 'unknown_mail_phone_order'
|
|
246
|
+
| 'secure_electronic_commerce'
|
|
247
|
+
| 'non_authenticated_security_transaction_at_3ds_capable_merchant'
|
|
248
|
+
| 'non_authenticated_security_transaction'
|
|
249
|
+
| 'non_secure_transaction'
|
|
250
|
+
| null;
|
|
251
|
+
/**
|
|
252
|
+
* The method used to enter the cardholder's primary account number and card
|
|
253
|
+
* expiration date
|
|
254
|
+
*/
|
|
255
|
+
point_of_service_entry_mode: Shared.PointOfServiceEntryMode;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
interface CheckDecline {
|
|
260
|
+
/**
|
|
261
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
262
|
+
* dollars, for example, this is cents.
|
|
263
|
+
*/
|
|
264
|
+
amount: number;
|
|
265
|
+
auxiliary_on_us: string | null;
|
|
266
|
+
/**
|
|
267
|
+
* Why the check was declined.
|
|
268
|
+
*/
|
|
269
|
+
reason:
|
|
270
|
+
| 'ach_route_canceled'
|
|
271
|
+
| 'ach_route_disabled'
|
|
272
|
+
| 'breaches_limit'
|
|
273
|
+
| 'entity_not_active'
|
|
274
|
+
| 'group_locked'
|
|
275
|
+
| 'insufficient_funds'
|
|
276
|
+
| 'unable_to_locate_account'
|
|
277
|
+
| 'unable_to_process'
|
|
278
|
+
| 'refer_to_image'
|
|
279
|
+
| 'stop_payment_requested'
|
|
280
|
+
| 'returned';
|
|
281
|
+
}
|
|
282
|
+
interface InboundRealTimePaymentsTransferDecline {
|
|
283
|
+
/**
|
|
284
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
285
|
+
* dollars, for example, this is cents.
|
|
286
|
+
*/
|
|
287
|
+
amount: number;
|
|
288
|
+
/**
|
|
289
|
+
* The name the sender of the transfer specified as the recipient of the transfer.
|
|
290
|
+
*/
|
|
291
|
+
creditor_name: string;
|
|
292
|
+
/**
|
|
293
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined
|
|
294
|
+
* transfer's currency. This will always be "USD" for a Real Time Payments
|
|
295
|
+
* transfer.
|
|
296
|
+
*/
|
|
297
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
298
|
+
/**
|
|
299
|
+
* The account number of the account that sent the transfer.
|
|
300
|
+
*/
|
|
301
|
+
debtor_account_number: string;
|
|
302
|
+
/**
|
|
303
|
+
* The name provided by the sender of the transfer.
|
|
304
|
+
*/
|
|
305
|
+
debtor_name: string;
|
|
306
|
+
/**
|
|
307
|
+
* The routing number of the account that sent the transfer.
|
|
308
|
+
*/
|
|
309
|
+
debtor_routing_number: string;
|
|
310
|
+
/**
|
|
311
|
+
* Why the transfer was declined.
|
|
312
|
+
*/
|
|
313
|
+
reason:
|
|
314
|
+
| 'account_number_canceled'
|
|
315
|
+
| 'account_number_disabled'
|
|
316
|
+
| 'group_locked'
|
|
317
|
+
| 'entity_not_active'
|
|
318
|
+
| 'real_time_payments_not_enabled';
|
|
319
|
+
/**
|
|
320
|
+
* Additional information included with the transfer.
|
|
321
|
+
*/
|
|
322
|
+
remittance_information: string | null;
|
|
323
|
+
/**
|
|
324
|
+
* The Real Time Payments network identification of the declined transfer.
|
|
325
|
+
*/
|
|
326
|
+
transaction_identification: string;
|
|
327
|
+
}
|
|
328
|
+
interface InternationalACHDecline {
|
|
329
|
+
/**
|
|
330
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
331
|
+
* dollars, for example, this is cents.
|
|
332
|
+
*/
|
|
333
|
+
amount: number;
|
|
334
|
+
destination_country_code: string;
|
|
335
|
+
destination_currency_code: string;
|
|
336
|
+
foreign_exchange_indicator: string;
|
|
337
|
+
foreign_exchange_reference: string | null;
|
|
338
|
+
foreign_exchange_reference_indicator: string;
|
|
339
|
+
foreign_payment_amount: number;
|
|
340
|
+
foreign_trace_number: string | null;
|
|
341
|
+
international_transaction_type_code: string;
|
|
342
|
+
originating_currency_code: string;
|
|
343
|
+
originating_depository_financial_institution_branch_country: string;
|
|
344
|
+
originating_depository_financial_institution_id: string;
|
|
345
|
+
originating_depository_financial_institution_id_qualifier: string;
|
|
346
|
+
originating_depository_financial_institution_name: string;
|
|
347
|
+
originator_city: string;
|
|
348
|
+
originator_company_entry_description: string;
|
|
349
|
+
originator_country: string;
|
|
350
|
+
originator_identification: string;
|
|
351
|
+
originator_name: string;
|
|
352
|
+
originator_postal_code: string | null;
|
|
353
|
+
originator_state_or_province: string | null;
|
|
354
|
+
originator_street_address: string;
|
|
355
|
+
payment_related_information: string | null;
|
|
356
|
+
payment_related_information2: string | null;
|
|
357
|
+
receiver_city: string;
|
|
358
|
+
receiver_country: string;
|
|
359
|
+
receiver_identification_number: string | null;
|
|
360
|
+
receiver_postal_code: string | null;
|
|
361
|
+
receiver_state_or_province: string | null;
|
|
362
|
+
receiver_street_address: string;
|
|
363
|
+
receiving_company_or_individual_name: string;
|
|
364
|
+
receiving_depository_financial_institution_country: string;
|
|
365
|
+
receiving_depository_financial_institution_id: string;
|
|
366
|
+
receiving_depository_financial_institution_id_qualifier: string;
|
|
367
|
+
receiving_depository_financial_institution_name: string;
|
|
368
|
+
trace_number: string;
|
|
369
|
+
}
|
|
370
|
+
interface CardRouteDecline {
|
|
371
|
+
/**
|
|
372
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
373
|
+
* dollars, for example, this is cents.
|
|
374
|
+
*/
|
|
375
|
+
amount: number;
|
|
376
|
+
/**
|
|
377
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
|
|
378
|
+
* account currency.
|
|
379
|
+
*/
|
|
380
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
381
|
+
merchant_acceptor_id: string;
|
|
382
|
+
merchant_category_code: string | null;
|
|
383
|
+
merchant_city: string | null;
|
|
384
|
+
merchant_country: string;
|
|
385
|
+
merchant_descriptor: string;
|
|
386
|
+
merchant_state: string | null;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
export interface DeclinedTransactionListParams extends PageParams {
|
|
391
|
+
/**
|
|
392
|
+
* Filter Declined Transactions to ones belonging to the specified Account.
|
|
393
|
+
*/
|
|
394
|
+
account_id?: string;
|
|
395
|
+
created_at?: DeclinedTransactionListParams.CreatedAt;
|
|
396
|
+
/**
|
|
397
|
+
* Filter Declined Transactions to those belonging to the specified route.
|
|
398
|
+
*/
|
|
399
|
+
route_id?: string;
|
|
400
|
+
}
|
|
401
|
+
export declare namespace DeclinedTransactionListParams {
|
|
402
|
+
interface CreatedAt {
|
|
403
|
+
/**
|
|
404
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
405
|
+
* timestamp.
|
|
406
|
+
*/
|
|
407
|
+
after?: string;
|
|
408
|
+
/**
|
|
409
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
410
|
+
* timestamp.
|
|
411
|
+
*/
|
|
412
|
+
before?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Return results on or after this
|
|
415
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
416
|
+
*/
|
|
417
|
+
on_or_after?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Return results on or before this
|
|
420
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
421
|
+
*/
|
|
422
|
+
on_or_before?: string;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.DeclinedTransactionsPage = exports.DeclinedTransactions = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
const core_1 = require('../core');
|
|
7
|
+
const pagination_1 = require('../pagination');
|
|
8
|
+
class DeclinedTransactions extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a Declined Transaction
|
|
11
|
+
*/
|
|
12
|
+
retrieve(declinedTransactionId, options) {
|
|
13
|
+
return this.get(`/declined_transactions/${declinedTransactionId}`, options);
|
|
14
|
+
}
|
|
15
|
+
list(query = {}, options) {
|
|
16
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
17
|
+
return this.list({}, query);
|
|
18
|
+
}
|
|
19
|
+
return this.getAPIList(
|
|
20
|
+
'/declined_transactions',
|
|
21
|
+
DeclinedTransactionsPage,
|
|
22
|
+
Object.assign({ query }, options),
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.DeclinedTransactions = DeclinedTransactions;
|
|
27
|
+
class DeclinedTransactionsPage extends pagination_1.Page {}
|
|
28
|
+
exports.DeclinedTransactionsPage = DeclinedTransactionsPage;
|
|
29
|
+
//# sourceMappingURL=declined-transactions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declined-transactions.js","sourceRoot":"","sources":["../../../resources/declined-transactions.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAgD;AAGhD,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;OAEG;IACH,QAAQ,CACN,qBAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,GAAG,CAAC,0BAA0B,qBAAqB,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAUD,IAAI,CACF,QAA6D,EAAE,EAC/D,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,wBAAwB,EAAE,wBAAwB,kBAAI,KAAK,IAAK,OAAO,EAAG,CAAC;IACpG,CAAC;CACF;AA7BD,oDA6BC;AAED,MAAa,wBAAyB,SAAQ,iBAAyB;CAAG;AAA1E,4DAA0E"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import { Page, PageParams } from '../pagination';
|
|
4
|
+
export declare class DigitalWalletTokens extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve a Digital Wallet Token
|
|
7
|
+
*/
|
|
8
|
+
retrieve(
|
|
9
|
+
digitalWalletTokenId: string,
|
|
10
|
+
options?: Core.RequestOptions,
|
|
11
|
+
): Promise<Core.APIResponse<DigitalWalletToken>>;
|
|
12
|
+
/**
|
|
13
|
+
* List Digital Wallet Tokens
|
|
14
|
+
*/
|
|
15
|
+
list(
|
|
16
|
+
query?: DigitalWalletTokenListParams,
|
|
17
|
+
options?: Core.RequestOptions,
|
|
18
|
+
): Core.PagePromise<DigitalWalletTokensPage>;
|
|
19
|
+
list(options?: Core.RequestOptions): Core.PagePromise<DigitalWalletTokensPage>;
|
|
20
|
+
}
|
|
21
|
+
export declare class DigitalWalletTokensPage extends Page<DigitalWalletToken> {}
|
|
22
|
+
/**
|
|
23
|
+
* A Digital Wallet Token is created when a user adds a Card to their Apple Pay or
|
|
24
|
+
* Google Pay app. The Digital Wallet Token can be used for purchases just like a
|
|
25
|
+
* Card.
|
|
26
|
+
*/
|
|
27
|
+
export interface DigitalWalletToken {
|
|
28
|
+
/**
|
|
29
|
+
* The identifier for the Card this Digital Wallet Token belongs to.
|
|
30
|
+
*/
|
|
31
|
+
card_id: string;
|
|
32
|
+
/**
|
|
33
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
34
|
+
* the Card was created.
|
|
35
|
+
*/
|
|
36
|
+
created_at: string;
|
|
37
|
+
/**
|
|
38
|
+
* The Digital Wallet Token identifier.
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* This indicates if payments can be made with the Digital Wallet Token.
|
|
43
|
+
*/
|
|
44
|
+
status: 'active' | 'inactive' | 'suspended' | 'deactivated';
|
|
45
|
+
/**
|
|
46
|
+
* The digital wallet app being used.
|
|
47
|
+
*/
|
|
48
|
+
token_requestor: 'apple_pay' | 'google_pay';
|
|
49
|
+
/**
|
|
50
|
+
* A constant representing the object's type. For this resource it will always be
|
|
51
|
+
* `digital_wallet_token`.
|
|
52
|
+
*/
|
|
53
|
+
type: 'digital_wallet_token';
|
|
54
|
+
}
|
|
55
|
+
export interface DigitalWalletTokenListParams extends PageParams {
|
|
56
|
+
/**
|
|
57
|
+
* Filter Digital Wallet Tokens to ones belonging to the specified Card.
|
|
58
|
+
*/
|
|
59
|
+
card_id?: string;
|
|
60
|
+
created_at?: DigitalWalletTokenListParams.CreatedAt;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace DigitalWalletTokenListParams {
|
|
63
|
+
interface CreatedAt {
|
|
64
|
+
/**
|
|
65
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
66
|
+
* timestamp.
|
|
67
|
+
*/
|
|
68
|
+
after?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
71
|
+
* timestamp.
|
|
72
|
+
*/
|
|
73
|
+
before?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Return results on or after this
|
|
76
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
77
|
+
*/
|
|
78
|
+
on_or_after?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Return results on or before this
|
|
81
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
82
|
+
*/
|
|
83
|
+
on_or_before?: string;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.DigitalWalletTokensPage = exports.DigitalWalletTokens = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
const core_1 = require('../core');
|
|
7
|
+
const pagination_1 = require('../pagination');
|
|
8
|
+
class DigitalWalletTokens extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a Digital Wallet Token
|
|
11
|
+
*/
|
|
12
|
+
retrieve(digitalWalletTokenId, options) {
|
|
13
|
+
return this.get(`/digital_wallet_tokens/${digitalWalletTokenId}`, options);
|
|
14
|
+
}
|
|
15
|
+
list(query = {}, options) {
|
|
16
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
17
|
+
return this.list({}, query);
|
|
18
|
+
}
|
|
19
|
+
return this.getAPIList(
|
|
20
|
+
'/digital_wallet_tokens',
|
|
21
|
+
DigitalWalletTokensPage,
|
|
22
|
+
Object.assign({ query }, options),
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.DigitalWalletTokens = DigitalWalletTokens;
|
|
27
|
+
class DigitalWalletTokensPage extends pagination_1.Page {}
|
|
28
|
+
exports.DigitalWalletTokensPage = DigitalWalletTokensPage;
|
|
29
|
+
//# sourceMappingURL=digital-wallet-tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digital-wallet-tokens.js","sourceRoot":"","sources":["../../../resources/digital-wallet-tokens.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAgD;AAEhD,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;OAEG;IACH,QAAQ,CACN,oBAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,GAAG,CAAC,0BAA0B,oBAAoB,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAUD,IAAI,CACF,QAA4D,EAAE,EAC9D,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,wBAAwB,EAAE,uBAAuB,kBAAI,KAAK,IAAK,OAAO,EAAG,CAAC;IACnG,CAAC;CACF;AA7BD,kDA6BC;AAED,MAAa,uBAAwB,SAAQ,iBAAwB;CAAG;AAAxE,0DAAwE"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as Core from '../core';
|
|
2
|
+
import { APIResource } from '../resource';
|
|
3
|
+
import { Page, PageParams } from '../pagination';
|
|
4
|
+
export declare class Documents extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve a Document
|
|
7
|
+
*/
|
|
8
|
+
retrieve(documentId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<Document>>;
|
|
9
|
+
/**
|
|
10
|
+
* List Documents
|
|
11
|
+
*/
|
|
12
|
+
list(query?: DocumentListParams, options?: Core.RequestOptions): Core.PagePromise<DocumentsPage>;
|
|
13
|
+
list(options?: Core.RequestOptions): Core.PagePromise<DocumentsPage>;
|
|
14
|
+
}
|
|
15
|
+
export declare class DocumentsPage extends Page<Document> {}
|
|
16
|
+
/**
|
|
17
|
+
* Increase generates certain documents / forms automatically for your application;
|
|
18
|
+
* they can be listed here. Currently the only supported document type is IRS Form
|
|
19
|
+
* 1099-INT.
|
|
20
|
+
*/
|
|
21
|
+
export interface Document {
|
|
22
|
+
/**
|
|
23
|
+
* The type of document.
|
|
24
|
+
*/
|
|
25
|
+
category: 'form_1099_int';
|
|
26
|
+
/**
|
|
27
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
|
|
28
|
+
* Document was created.
|
|
29
|
+
*/
|
|
30
|
+
created_at: string;
|
|
31
|
+
/**
|
|
32
|
+
* The identifier of the Entity the document was generated for.
|
|
33
|
+
*/
|
|
34
|
+
entity_id: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* The identifier of the File containing the Document's contents.
|
|
37
|
+
*/
|
|
38
|
+
file_id: string;
|
|
39
|
+
/**
|
|
40
|
+
* The Document identifier.
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* A constant representing the object's type. For this resource it will always be
|
|
45
|
+
* `document`.
|
|
46
|
+
*/
|
|
47
|
+
type: 'document';
|
|
48
|
+
}
|
|
49
|
+
export interface DocumentListParams extends PageParams {
|
|
50
|
+
category?: DocumentListParams.Category;
|
|
51
|
+
created_at?: DocumentListParams.CreatedAt;
|
|
52
|
+
/**
|
|
53
|
+
* Filter Documents to ones belonging to the specified Entity.
|
|
54
|
+
*/
|
|
55
|
+
entity_id?: string;
|
|
56
|
+
}
|
|
57
|
+
export declare namespace DocumentListParams {
|
|
58
|
+
interface Category {
|
|
59
|
+
/**
|
|
60
|
+
* Return results whose value is in the provided list. For GET requests, this
|
|
61
|
+
* should be encoded as a comma-delimited string, such as `?in=one,two,three`.
|
|
62
|
+
*/
|
|
63
|
+
in?: Array<'form_1099_int'>;
|
|
64
|
+
}
|
|
65
|
+
interface CreatedAt {
|
|
66
|
+
/**
|
|
67
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
68
|
+
* timestamp.
|
|
69
|
+
*/
|
|
70
|
+
after?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
73
|
+
* timestamp.
|
|
74
|
+
*/
|
|
75
|
+
before?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Return results on or after this
|
|
78
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
79
|
+
*/
|
|
80
|
+
on_or_after?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Return results on or before this
|
|
83
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
84
|
+
*/
|
|
85
|
+
on_or_before?: string;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.DocumentsPage = exports.Documents = void 0;
|
|
5
|
+
const resource_1 = require('../resource');
|
|
6
|
+
const core_1 = require('../core');
|
|
7
|
+
const pagination_1 = require('../pagination');
|
|
8
|
+
class Documents extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a Document
|
|
11
|
+
*/
|
|
12
|
+
retrieve(documentId, options) {
|
|
13
|
+
return this.get(`/documents/${documentId}`, options);
|
|
14
|
+
}
|
|
15
|
+
list(query = {}, options) {
|
|
16
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
17
|
+
return this.list({}, query);
|
|
18
|
+
}
|
|
19
|
+
return this.getAPIList('/documents', DocumentsPage, Object.assign({ query }, options));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.Documents = Documents;
|
|
23
|
+
class DocumentsPage extends pagination_1.Page {}
|
|
24
|
+
exports.DocumentsPage = DocumentsPage;
|
|
25
|
+
//# sourceMappingURL=documents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../../../resources/documents.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAgD;AAEhD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,GAAG,CAAC,cAAc,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAOD,IAAI,CACF,QAAkD,EAAE,EACpD,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,YAAY,EAAE,aAAa,kBAAI,KAAK,IAAK,OAAO,EAAG,CAAC;IAC7E,CAAC;CACF;AAvBD,8BAuBC;AAED,MAAa,aAAc,SAAQ,iBAAc;CAAG;AAApD,sCAAoD"}
|