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,172 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __awaiter =
|
|
4
|
+
(this && this.__awaiter) ||
|
|
5
|
+
function (thisArg, _arguments, P, generator) {
|
|
6
|
+
function adopt(value) {
|
|
7
|
+
return value instanceof P ? value
|
|
8
|
+
: new P(function (resolve) {
|
|
9
|
+
resolve(value);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13
|
+
function fulfilled(value) {
|
|
14
|
+
try {
|
|
15
|
+
step(generator.next(value));
|
|
16
|
+
} catch (e) {
|
|
17
|
+
reject(e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function rejected(value) {
|
|
21
|
+
try {
|
|
22
|
+
step(generator['throw'](value));
|
|
23
|
+
} catch (e) {
|
|
24
|
+
reject(e);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function step(result) {
|
|
28
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
29
|
+
}
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
var __importDefault =
|
|
34
|
+
(this && this.__importDefault) ||
|
|
35
|
+
function (mod) {
|
|
36
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
39
|
+
const index_1 = __importDefault(require('../../index'));
|
|
40
|
+
const increase = new index_1.default({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
41
|
+
describe('resource check_transfers', () => {
|
|
42
|
+
test('create: only required params', () =>
|
|
43
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
+
const response = yield increase.checkTransfers.create({
|
|
45
|
+
account_id: 'account_in71c4amph0vgo2qllky',
|
|
46
|
+
address_line1: '33 Liberty Street',
|
|
47
|
+
address_city: 'New York',
|
|
48
|
+
address_state: 'NY',
|
|
49
|
+
address_zip: '10045',
|
|
50
|
+
amount: 1000,
|
|
51
|
+
message: 'Check payment',
|
|
52
|
+
recipient_name: 'Ian Crease',
|
|
53
|
+
});
|
|
54
|
+
}));
|
|
55
|
+
test('create: required and optional params', () =>
|
|
56
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
57
|
+
const response = yield increase.checkTransfers.create({
|
|
58
|
+
account_id: 'account_in71c4amph0vgo2qllky',
|
|
59
|
+
address_line1: '33 Liberty Street',
|
|
60
|
+
address_line2: 'x',
|
|
61
|
+
address_city: 'New York',
|
|
62
|
+
address_state: 'NY',
|
|
63
|
+
address_zip: '10045',
|
|
64
|
+
return_address: { name: 'x', line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
65
|
+
amount: 1000,
|
|
66
|
+
message: 'Check payment',
|
|
67
|
+
note: 'x',
|
|
68
|
+
recipient_name: 'Ian Crease',
|
|
69
|
+
require_approval: true,
|
|
70
|
+
});
|
|
71
|
+
}));
|
|
72
|
+
test('retrieve', () =>
|
|
73
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
74
|
+
const response = yield increase.checkTransfers.retrieve('check_transfer_30b43acfu9vw8fyc4f5');
|
|
75
|
+
}));
|
|
76
|
+
test('retrieve: request options instead of params are passed correctly', () =>
|
|
77
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
78
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
79
|
+
yield expect(
|
|
80
|
+
increase.checkTransfers.retrieve('check_transfer_30b43acfu9vw8fyc4f5', {
|
|
81
|
+
path: '/_stainless_unknown_path',
|
|
82
|
+
}),
|
|
83
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
84
|
+
}));
|
|
85
|
+
test('list: only required params', () =>
|
|
86
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
87
|
+
const response = yield increase.checkTransfers.list();
|
|
88
|
+
}));
|
|
89
|
+
test('list: required and optional params', () =>
|
|
90
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
91
|
+
const response = yield increase.checkTransfers.list({
|
|
92
|
+
cursor: 'string',
|
|
93
|
+
limit: 0,
|
|
94
|
+
account_id: 'string',
|
|
95
|
+
created_at: {
|
|
96
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
97
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
98
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
99
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
}));
|
|
103
|
+
test('list: request options instead of params are passed correctly', () =>
|
|
104
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
105
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
106
|
+
yield expect(increase.checkTransfers.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
107
|
+
index_1.default.NotFoundError,
|
|
108
|
+
);
|
|
109
|
+
}));
|
|
110
|
+
test('list: request options and params are passed correctly', () =>
|
|
111
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
112
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
113
|
+
yield expect(
|
|
114
|
+
increase.checkTransfers.list(
|
|
115
|
+
{
|
|
116
|
+
cursor: 'string',
|
|
117
|
+
limit: 0,
|
|
118
|
+
account_id: 'string',
|
|
119
|
+
created_at: {
|
|
120
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
121
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
122
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
123
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
{ path: '/_stainless_unknown_path' },
|
|
127
|
+
),
|
|
128
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
129
|
+
}));
|
|
130
|
+
test('approve', () =>
|
|
131
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
132
|
+
const response = yield increase.checkTransfers.approve('check_transfer_30b43acfu9vw8fyc4f5');
|
|
133
|
+
}));
|
|
134
|
+
test('approve: request options instead of params are passed correctly', () =>
|
|
135
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
136
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
137
|
+
yield expect(
|
|
138
|
+
increase.checkTransfers.approve('check_transfer_30b43acfu9vw8fyc4f5', {
|
|
139
|
+
path: '/_stainless_unknown_path',
|
|
140
|
+
}),
|
|
141
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
142
|
+
}));
|
|
143
|
+
test('cancel', () =>
|
|
144
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
145
|
+
const response = yield increase.checkTransfers.cancel('check_transfer_30b43acfu9vw8fyc4f5');
|
|
146
|
+
}));
|
|
147
|
+
test('cancel: request options instead of params are passed correctly', () =>
|
|
148
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
149
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
150
|
+
yield expect(
|
|
151
|
+
increase.checkTransfers.cancel('check_transfer_30b43acfu9vw8fyc4f5', {
|
|
152
|
+
path: '/_stainless_unknown_path',
|
|
153
|
+
}),
|
|
154
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
155
|
+
}));
|
|
156
|
+
// Prism doesn't accept no request body being sent but returns 415 if it is sent
|
|
157
|
+
test.skip('stop_payment', () =>
|
|
158
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
159
|
+
const response = yield increase.checkTransfers.stopPayment('check_transfer_30b43acfu9vw8fyc4f5');
|
|
160
|
+
}));
|
|
161
|
+
// Prism doesn't accept no request body being sent but returns 415 if it is sent
|
|
162
|
+
test.skip('stop_payment: request options instead of params are passed correctly', () =>
|
|
163
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
164
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
165
|
+
yield expect(
|
|
166
|
+
increase.checkTransfers.stopPayment('check_transfer_30b43acfu9vw8fyc4f5', {
|
|
167
|
+
path: '/_stainless_unknown_path',
|
|
168
|
+
}),
|
|
169
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
170
|
+
}));
|
|
171
|
+
});
|
|
172
|
+
//# sourceMappingURL=check-transfers.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-transfers.test.js","sourceRoot":"","sources":["../../../../tests/api-resources/check-transfers.test.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;AAErD,oDAA+B;AAC/B,MAAM,QAAQ,GAAG,IAAI,eAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC,CAAC;AAE7F,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,IAAI,CAAC,8BAA8B,EAAE,GAAS,EAAE;QAC9C,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC;YACpD,UAAU,EAAE,8BAA8B;YAC1C,aAAa,EAAE,mBAAmB;YAClC,YAAY,EAAE,UAAU;YACxB,aA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ACH,CAAC,OAAO,CAAC,OAAO,CAAC,eAAQ,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __awaiter =
|
|
4
|
+
(this && this.__awaiter) ||
|
|
5
|
+
function (thisArg, _arguments, P, generator) {
|
|
6
|
+
function adopt(value) {
|
|
7
|
+
return value instanceof P ? value
|
|
8
|
+
: new P(function (resolve) {
|
|
9
|
+
resolve(value);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13
|
+
function fulfilled(value) {
|
|
14
|
+
try {
|
|
15
|
+
step(generator.next(value));
|
|
16
|
+
} catch (e) {
|
|
17
|
+
reject(e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function rejected(value) {
|
|
21
|
+
try {
|
|
22
|
+
step(generator['throw'](value));
|
|
23
|
+
} catch (e) {
|
|
24
|
+
reject(e);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function step(result) {
|
|
28
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
29
|
+
}
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
var __importDefault =
|
|
34
|
+
(this && this.__importDefault) ||
|
|
35
|
+
function (mod) {
|
|
36
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
39
|
+
const index_1 = __importDefault(require('../../index'));
|
|
40
|
+
const increase = new index_1.default({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
41
|
+
describe('resource declined_transactions', () => {
|
|
42
|
+
test('retrieve', () =>
|
|
43
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
+
const response = yield increase.declinedTransactions.retrieve(
|
|
45
|
+
'declined_transaction_17jbn0yyhvkt4v4ooym8',
|
|
46
|
+
);
|
|
47
|
+
}));
|
|
48
|
+
test('retrieve: request options instead of params are passed correctly', () =>
|
|
49
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
50
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
51
|
+
yield expect(
|
|
52
|
+
increase.declinedTransactions.retrieve('declined_transaction_17jbn0yyhvkt4v4ooym8', {
|
|
53
|
+
path: '/_stainless_unknown_path',
|
|
54
|
+
}),
|
|
55
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
56
|
+
}));
|
|
57
|
+
test('list: only required params', () =>
|
|
58
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
+
const response = yield increase.declinedTransactions.list();
|
|
60
|
+
}));
|
|
61
|
+
test('list: required and optional params', () =>
|
|
62
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
63
|
+
const response = yield increase.declinedTransactions.list({
|
|
64
|
+
cursor: 'string',
|
|
65
|
+
limit: 0,
|
|
66
|
+
account_id: 'string',
|
|
67
|
+
route_id: 'string',
|
|
68
|
+
created_at: {
|
|
69
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
70
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
71
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
72
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
}));
|
|
76
|
+
test('list: request options instead of params are passed correctly', () =>
|
|
77
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
78
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
79
|
+
yield expect(increase.declinedTransactions.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
80
|
+
index_1.default.NotFoundError,
|
|
81
|
+
);
|
|
82
|
+
}));
|
|
83
|
+
test('list: request options and params are passed correctly', () =>
|
|
84
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
85
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
86
|
+
yield expect(
|
|
87
|
+
increase.declinedTransactions.list(
|
|
88
|
+
{
|
|
89
|
+
cursor: 'string',
|
|
90
|
+
limit: 0,
|
|
91
|
+
account_id: 'string',
|
|
92
|
+
route_id: 'string',
|
|
93
|
+
created_at: {
|
|
94
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
95
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
96
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
97
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
{ path: '/_stainless_unknown_path' },
|
|
101
|
+
),
|
|
102
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
103
|
+
}));
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=declined-transactions.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declined-transactions.test.js","sourceRoot":"","sources":["../../../../tests/api-resources/declined-transactions.test.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;AAErD,oDAA+B;AAC/B,MAAM,QAAQ,GAAG,IAAI,eAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC,CAAC;AAE7F,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC9C,IAAI,CAAC,UAAU,EAAE,GAAS,EAAE;QAC1B,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAC3D,2CAA2C,CAC5C,CAAC;IACJ,CAAC,CAAA,CAAC,CAAC;IAEH,IAAI,CAAC,kEAAkE,EAAE,GAAS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AAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE;gBACV,KAAK,EAAE,0BAA0B;gBACjC,MAAM,EAAE,0BAA0B;gBAClC,WAAW,EAAE,0BAA0B;gBACvC,YAAY,EAAE,0BAA0B;aACzC;SACF,EACD,EAAE,IAAI,EAAE,0BAA0B,EAAE,CACrC,CACF,CAAC,OAAO,CAAC,OAAO,CAAC,eAAQ,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __awaiter =
|
|
4
|
+
(this && this.__awaiter) ||
|
|
5
|
+
function (thisArg, _arguments, P, generator) {
|
|
6
|
+
function adopt(value) {
|
|
7
|
+
return value instanceof P ? value
|
|
8
|
+
: new P(function (resolve) {
|
|
9
|
+
resolve(value);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13
|
+
function fulfilled(value) {
|
|
14
|
+
try {
|
|
15
|
+
step(generator.next(value));
|
|
16
|
+
} catch (e) {
|
|
17
|
+
reject(e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function rejected(value) {
|
|
21
|
+
try {
|
|
22
|
+
step(generator['throw'](value));
|
|
23
|
+
} catch (e) {
|
|
24
|
+
reject(e);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function step(result) {
|
|
28
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
29
|
+
}
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
var __importDefault =
|
|
34
|
+
(this && this.__importDefault) ||
|
|
35
|
+
function (mod) {
|
|
36
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
39
|
+
const index_1 = __importDefault(require('../../index'));
|
|
40
|
+
const increase = new index_1.default({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
41
|
+
describe('resource digital_wallet_tokens', () => {
|
|
42
|
+
test('retrieve', () =>
|
|
43
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
+
const response = yield increase.digitalWalletTokens.retrieve(
|
|
45
|
+
'digital_wallet_token_izi62go3h51p369jrie0',
|
|
46
|
+
);
|
|
47
|
+
}));
|
|
48
|
+
test('retrieve: request options instead of params are passed correctly', () =>
|
|
49
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
50
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
51
|
+
yield expect(
|
|
52
|
+
increase.digitalWalletTokens.retrieve('digital_wallet_token_izi62go3h51p369jrie0', {
|
|
53
|
+
path: '/_stainless_unknown_path',
|
|
54
|
+
}),
|
|
55
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
56
|
+
}));
|
|
57
|
+
test('list: only required params', () =>
|
|
58
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
+
const response = yield increase.digitalWalletTokens.list();
|
|
60
|
+
}));
|
|
61
|
+
test('list: required and optional params', () =>
|
|
62
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
63
|
+
const response = yield increase.digitalWalletTokens.list({
|
|
64
|
+
cursor: 'string',
|
|
65
|
+
limit: 0,
|
|
66
|
+
card_id: 'string',
|
|
67
|
+
created_at: {
|
|
68
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
69
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
70
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
71
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
}));
|
|
75
|
+
test('list: request options instead of params are passed correctly', () =>
|
|
76
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
77
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
78
|
+
yield expect(increase.digitalWalletTokens.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
79
|
+
index_1.default.NotFoundError,
|
|
80
|
+
);
|
|
81
|
+
}));
|
|
82
|
+
test('list: request options and params are passed correctly', () =>
|
|
83
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
84
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
85
|
+
yield expect(
|
|
86
|
+
increase.digitalWalletTokens.list(
|
|
87
|
+
{
|
|
88
|
+
cursor: 'string',
|
|
89
|
+
limit: 0,
|
|
90
|
+
card_id: 'string',
|
|
91
|
+
created_at: {
|
|
92
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
93
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
94
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
95
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
{ path: '/_stainless_unknown_path' },
|
|
99
|
+
),
|
|
100
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
101
|
+
}));
|
|
102
|
+
});
|
|
103
|
+
//# sourceMappingURL=digital-wallet-tokens.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digital-wallet-tokens.test.js","sourceRoot":"","sources":["../../../../tests/api-resources/digital-wallet-tokens.test.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;AAErD,oDAA+B;AAC/B,MAAM,QAAQ,GAAG,IAAI,eAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC,CAAC;AAE7F,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC9C,IAA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DAAuD,EAAE,GAAS,EAAE;QACvE,qHAAqH;QACrH,MAAM,MAAM,CACV,QAAQ,CAAC,mBAAmB,CAAC,IAAI,CAC/B;YACE,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,CAAC;YACR,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE;gBACV,KAAK,EAAE,0BAA0B;gBACjC,MAAM,EAAE,0BAA0B;gBAClC,WAAW,EAAE,0BAA0B;gBACvC,YAAY,EAAE,0BAA0B;aACzC;SACF,EACD,EAAE,IAAI,EAAE,0BAA0B,EAAE,CACrC,CACF,CAAC,OAAO,CAAC,OAAO,CAAC,eAAQ,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __awaiter =
|
|
4
|
+
(this && this.__awaiter) ||
|
|
5
|
+
function (thisArg, _arguments, P, generator) {
|
|
6
|
+
function adopt(value) {
|
|
7
|
+
return value instanceof P ? value
|
|
8
|
+
: new P(function (resolve) {
|
|
9
|
+
resolve(value);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13
|
+
function fulfilled(value) {
|
|
14
|
+
try {
|
|
15
|
+
step(generator.next(value));
|
|
16
|
+
} catch (e) {
|
|
17
|
+
reject(e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function rejected(value) {
|
|
21
|
+
try {
|
|
22
|
+
step(generator['throw'](value));
|
|
23
|
+
} catch (e) {
|
|
24
|
+
reject(e);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function step(result) {
|
|
28
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
29
|
+
}
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
var __importDefault =
|
|
34
|
+
(this && this.__importDefault) ||
|
|
35
|
+
function (mod) {
|
|
36
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
39
|
+
const index_1 = __importDefault(require('../../index'));
|
|
40
|
+
const increase = new index_1.default({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
41
|
+
describe('resource documents', () => {
|
|
42
|
+
test('retrieve', () =>
|
|
43
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
+
const response = yield increase.documents.retrieve('document_qjtqc6s4c14ve2q89izm');
|
|
45
|
+
}));
|
|
46
|
+
test('retrieve: request options instead of params are passed correctly', () =>
|
|
47
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
48
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
49
|
+
yield expect(
|
|
50
|
+
increase.documents.retrieve('document_qjtqc6s4c14ve2q89izm', { path: '/_stainless_unknown_path' }),
|
|
51
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
52
|
+
}));
|
|
53
|
+
test('list: only required params', () =>
|
|
54
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
55
|
+
const response = yield increase.documents.list();
|
|
56
|
+
}));
|
|
57
|
+
test('list: required and optional params', () =>
|
|
58
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
+
const response = yield increase.documents.list({
|
|
60
|
+
cursor: 'string',
|
|
61
|
+
limit: 0,
|
|
62
|
+
entity_id: 'string',
|
|
63
|
+
category: { in: ['form_1099_int', 'form_1099_int', 'form_1099_int'] },
|
|
64
|
+
created_at: {
|
|
65
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
66
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
67
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
68
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}));
|
|
72
|
+
test('list: request options instead of params are passed correctly', () =>
|
|
73
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
74
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
75
|
+
yield expect(increase.documents.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
76
|
+
index_1.default.NotFoundError,
|
|
77
|
+
);
|
|
78
|
+
}));
|
|
79
|
+
test('list: request options and params are passed correctly', () =>
|
|
80
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
81
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
82
|
+
yield expect(
|
|
83
|
+
increase.documents.list(
|
|
84
|
+
{
|
|
85
|
+
cursor: 'string',
|
|
86
|
+
limit: 0,
|
|
87
|
+
entity_id: 'string',
|
|
88
|
+
category: { in: ['form_1099_int', 'form_1099_int', 'form_1099_int'] },
|
|
89
|
+
created_at: {
|
|
90
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
91
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
92
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
93
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
{ path: '/_stainless_unknown_path' },
|
|
97
|
+
),
|
|
98
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
99
|
+
}));
|
|
100
|
+
});
|
|
101
|
+
//# sourceMappingURL=documents.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documents.test.js","sourceRoot":"","sources":["../../../../tests/api-resources/documents.test.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;AAErD,oDAA+B;AAC/B,MAAM,QAAQ,GAAG,IAAI,eAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,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