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,243 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import Increase from '~/index';
|
|
4
|
+
const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
5
|
+
|
|
6
|
+
describe('resource entities', () => {
|
|
7
|
+
test('create: only required params', async () => {
|
|
8
|
+
const response = await increase.entities.create({
|
|
9
|
+
structure: 'corporation',
|
|
10
|
+
relationship: 'informational',
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
test('create: required and optional params', async () => {
|
|
15
|
+
const response = await increase.entities.create({
|
|
16
|
+
structure: 'corporation',
|
|
17
|
+
corporation: {
|
|
18
|
+
name: 'National Phonograph Company',
|
|
19
|
+
website: 'https://example.com',
|
|
20
|
+
tax_identifier: '602214076',
|
|
21
|
+
incorporation_state: 'NY',
|
|
22
|
+
address: { line1: '33 Liberty Street', line2: 'x', city: 'New York', state: 'NY', zip: '10045' },
|
|
23
|
+
beneficial_owners: [
|
|
24
|
+
{
|
|
25
|
+
individual: {
|
|
26
|
+
name: 'x',
|
|
27
|
+
date_of_birth: '2019-12-27',
|
|
28
|
+
address: { line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
29
|
+
confirmed_no_us_tax_id: true,
|
|
30
|
+
identification: {
|
|
31
|
+
method: 'social_security_number',
|
|
32
|
+
number: 'xxxx',
|
|
33
|
+
passport: { file_id: 'string', expiration_date: '2019-12-27', country: 'x' },
|
|
34
|
+
drivers_license: { file_id: 'string', expiration_date: '2019-12-27', state: 'x' },
|
|
35
|
+
other: { country: 'x', description: 'x', expiration_date: '2019-12-27', file_id: 'string' },
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
company_title: 'x',
|
|
39
|
+
prong: 'ownership',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
individual: {
|
|
43
|
+
name: 'x',
|
|
44
|
+
date_of_birth: '2019-12-27',
|
|
45
|
+
address: { line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
46
|
+
confirmed_no_us_tax_id: true,
|
|
47
|
+
identification: {
|
|
48
|
+
method: 'social_security_number',
|
|
49
|
+
number: 'xxxx',
|
|
50
|
+
passport: { file_id: 'string', expiration_date: '2019-12-27', country: 'x' },
|
|
51
|
+
drivers_license: { file_id: 'string', expiration_date: '2019-12-27', state: 'x' },
|
|
52
|
+
other: { country: 'x', description: 'x', expiration_date: '2019-12-27', file_id: 'string' },
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
company_title: 'x',
|
|
56
|
+
prong: 'ownership',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
individual: {
|
|
60
|
+
name: 'x',
|
|
61
|
+
date_of_birth: '2019-12-27',
|
|
62
|
+
address: { line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
63
|
+
confirmed_no_us_tax_id: true,
|
|
64
|
+
identification: {
|
|
65
|
+
method: 'social_security_number',
|
|
66
|
+
number: 'xxxx',
|
|
67
|
+
passport: { file_id: 'string', expiration_date: '2019-12-27', country: 'x' },
|
|
68
|
+
drivers_license: { file_id: 'string', expiration_date: '2019-12-27', state: 'x' },
|
|
69
|
+
other: { country: 'x', description: 'x', expiration_date: '2019-12-27', file_id: 'string' },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
company_title: 'x',
|
|
73
|
+
prong: 'ownership',
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
natural_person: {
|
|
78
|
+
name: 'x',
|
|
79
|
+
date_of_birth: '2019-12-27',
|
|
80
|
+
address: { line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
81
|
+
confirmed_no_us_tax_id: true,
|
|
82
|
+
identification: {
|
|
83
|
+
method: 'social_security_number',
|
|
84
|
+
number: 'xxxx',
|
|
85
|
+
passport: { file_id: 'string', expiration_date: '2019-12-27', country: 'x' },
|
|
86
|
+
drivers_license: { file_id: 'string', expiration_date: '2019-12-27', state: 'x' },
|
|
87
|
+
other: { country: 'x', description: 'x', expiration_date: '2019-12-27', file_id: 'string' },
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
joint: {
|
|
91
|
+
name: 'x',
|
|
92
|
+
individuals: [
|
|
93
|
+
{
|
|
94
|
+
name: 'x',
|
|
95
|
+
date_of_birth: '2019-12-27',
|
|
96
|
+
address: { line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
97
|
+
confirmed_no_us_tax_id: true,
|
|
98
|
+
identification: {
|
|
99
|
+
method: 'social_security_number',
|
|
100
|
+
number: 'xxxx',
|
|
101
|
+
passport: { file_id: 'string', expiration_date: '2019-12-27', country: 'x' },
|
|
102
|
+
drivers_license: { file_id: 'string', expiration_date: '2019-12-27', state: 'x' },
|
|
103
|
+
other: { country: 'x', description: 'x', expiration_date: '2019-12-27', file_id: 'string' },
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'x',
|
|
108
|
+
date_of_birth: '2019-12-27',
|
|
109
|
+
address: { line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
110
|
+
confirmed_no_us_tax_id: true,
|
|
111
|
+
identification: {
|
|
112
|
+
method: 'social_security_number',
|
|
113
|
+
number: 'xxxx',
|
|
114
|
+
passport: { file_id: 'string', expiration_date: '2019-12-27', country: 'x' },
|
|
115
|
+
drivers_license: { file_id: 'string', expiration_date: '2019-12-27', state: 'x' },
|
|
116
|
+
other: { country: 'x', description: 'x', expiration_date: '2019-12-27', file_id: 'string' },
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'x',
|
|
121
|
+
date_of_birth: '2019-12-27',
|
|
122
|
+
address: { line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
123
|
+
confirmed_no_us_tax_id: true,
|
|
124
|
+
identification: {
|
|
125
|
+
method: 'social_security_number',
|
|
126
|
+
number: 'xxxx',
|
|
127
|
+
passport: { file_id: 'string', expiration_date: '2019-12-27', country: 'x' },
|
|
128
|
+
drivers_license: { file_id: 'string', expiration_date: '2019-12-27', state: 'x' },
|
|
129
|
+
other: { country: 'x', description: 'x', expiration_date: '2019-12-27', file_id: 'string' },
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
trust: {
|
|
135
|
+
name: 'x',
|
|
136
|
+
category: 'revocable',
|
|
137
|
+
tax_identifier: 'x',
|
|
138
|
+
formation_state: 'x',
|
|
139
|
+
address: { line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
140
|
+
formation_document_file_id: 'string',
|
|
141
|
+
trustees: [
|
|
142
|
+
{
|
|
143
|
+
structure: 'individual',
|
|
144
|
+
individual: {
|
|
145
|
+
name: 'x',
|
|
146
|
+
date_of_birth: '2019-12-27',
|
|
147
|
+
address: { line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
148
|
+
confirmed_no_us_tax_id: true,
|
|
149
|
+
identification: {
|
|
150
|
+
method: 'social_security_number',
|
|
151
|
+
number: 'xxxx',
|
|
152
|
+
passport: { file_id: 'string', expiration_date: '2019-12-27', country: 'x' },
|
|
153
|
+
drivers_license: { file_id: 'string', expiration_date: '2019-12-27', state: 'x' },
|
|
154
|
+
other: { country: 'x', description: 'x', expiration_date: '2019-12-27', file_id: 'string' },
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
structure: 'individual',
|
|
160
|
+
individual: {
|
|
161
|
+
name: 'x',
|
|
162
|
+
date_of_birth: '2019-12-27',
|
|
163
|
+
address: { line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
164
|
+
confirmed_no_us_tax_id: true,
|
|
165
|
+
identification: {
|
|
166
|
+
method: 'social_security_number',
|
|
167
|
+
number: 'xxxx',
|
|
168
|
+
passport: { file_id: 'string', expiration_date: '2019-12-27', country: 'x' },
|
|
169
|
+
drivers_license: { file_id: 'string', expiration_date: '2019-12-27', state: 'x' },
|
|
170
|
+
other: { country: 'x', description: 'x', expiration_date: '2019-12-27', file_id: 'string' },
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
structure: 'individual',
|
|
176
|
+
individual: {
|
|
177
|
+
name: 'x',
|
|
178
|
+
date_of_birth: '2019-12-27',
|
|
179
|
+
address: { line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
180
|
+
confirmed_no_us_tax_id: true,
|
|
181
|
+
identification: {
|
|
182
|
+
method: 'social_security_number',
|
|
183
|
+
number: 'xxxx',
|
|
184
|
+
passport: { file_id: 'string', expiration_date: '2019-12-27', country: 'x' },
|
|
185
|
+
drivers_license: { file_id: 'string', expiration_date: '2019-12-27', state: 'x' },
|
|
186
|
+
other: { country: 'x', description: 'x', expiration_date: '2019-12-27', file_id: 'string' },
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
grantor: {
|
|
192
|
+
name: 'x',
|
|
193
|
+
date_of_birth: '2019-12-27',
|
|
194
|
+
address: { line1: 'x', line2: 'x', city: 'x', state: 'x', zip: 'x' },
|
|
195
|
+
confirmed_no_us_tax_id: true,
|
|
196
|
+
identification: {
|
|
197
|
+
method: 'social_security_number',
|
|
198
|
+
number: 'xxxx',
|
|
199
|
+
passport: { file_id: 'string', expiration_date: '2019-12-27', country: 'x' },
|
|
200
|
+
drivers_license: { file_id: 'string', expiration_date: '2019-12-27', state: 'x' },
|
|
201
|
+
other: { country: 'x', description: 'x', expiration_date: '2019-12-27', file_id: 'string' },
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
description: 'x',
|
|
206
|
+
relationship: 'informational',
|
|
207
|
+
supplemental_documents: [{ file_id: 'string' }, { file_id: 'string' }, { file_id: 'string' }],
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
test('retrieve', async () => {
|
|
212
|
+
const response = await increase.entities.retrieve('entity_n8y8tnk2p9339ti393yi');
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
test('retrieve: request options instead of params are passed correctly', async () => {
|
|
216
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
217
|
+
await expect(
|
|
218
|
+
increase.entities.retrieve('entity_n8y8tnk2p9339ti393yi', { path: '/_stainless_unknown_path' }),
|
|
219
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
test('list: only required params', async () => {
|
|
223
|
+
const response = await increase.entities.list();
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
test('list: required and optional params', async () => {
|
|
227
|
+
const response = await increase.entities.list({ cursor: 'string', limit: 0 });
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
test('list: request options instead of params are passed correctly', async () => {
|
|
231
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
232
|
+
await expect(increase.entities.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
233
|
+
Increase.NotFoundError,
|
|
234
|
+
);
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
test('list: request options and params are passed correctly', async () => {
|
|
238
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
239
|
+
await expect(
|
|
240
|
+
increase.entities.list({ cursor: 'string', limit: 0 }, { path: '/_stainless_unknown_path' }),
|
|
241
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
242
|
+
});
|
|
243
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import Increase from '~/index';
|
|
4
|
+
const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
5
|
+
|
|
6
|
+
describe('resource supplemental_documents', () => {
|
|
7
|
+
test('create', async () => {
|
|
8
|
+
const response = await increase.entities.supplementalDocuments.create('entity_n8y8tnk2p9339ti393yi', {
|
|
9
|
+
file_id: 'file_makxrc67oh9l6sg7w9yc',
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import Increase from '~/index';
|
|
4
|
+
const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
5
|
+
|
|
6
|
+
describe('resource event_subscriptions', () => {
|
|
7
|
+
test('create: only required params', async () => {
|
|
8
|
+
const response = await increase.eventSubscriptions.create({ url: 'https://website.com/webhooks' });
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
test('create: required and optional params', async () => {
|
|
12
|
+
const response = await increase.eventSubscriptions.create({
|
|
13
|
+
url: 'https://website.com/webhooks',
|
|
14
|
+
shared_secret: 'x',
|
|
15
|
+
selected_event_category: 'account.created',
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
test('retrieve', async () => {
|
|
20
|
+
const response = await increase.eventSubscriptions.retrieve(
|
|
21
|
+
'event_subscription_001dzz0r20rcdxgb013zqb8m04g',
|
|
22
|
+
);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
test('retrieve: request options instead of params are passed correctly', async () => {
|
|
26
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
27
|
+
await expect(
|
|
28
|
+
increase.eventSubscriptions.retrieve('event_subscription_001dzz0r20rcdxgb013zqb8m04g', {
|
|
29
|
+
path: '/_stainless_unknown_path',
|
|
30
|
+
}),
|
|
31
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
test('update: only required params', async () => {
|
|
35
|
+
const response = await increase.eventSubscriptions.update(
|
|
36
|
+
'event_subscription_001dzz0r20rcdxgb013zqb8m04g',
|
|
37
|
+
{},
|
|
38
|
+
);
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
test('update: required and optional params', async () => {
|
|
42
|
+
const response = await increase.eventSubscriptions.update(
|
|
43
|
+
'event_subscription_001dzz0r20rcdxgb013zqb8m04g',
|
|
44
|
+
{ status: 'active' },
|
|
45
|
+
);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test('list: only required params', async () => {
|
|
49
|
+
const response = await increase.eventSubscriptions.list();
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
test('list: required and optional params', async () => {
|
|
53
|
+
const response = await increase.eventSubscriptions.list({ cursor: 'string', limit: 0 });
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
test('list: request options instead of params are passed correctly', async () => {
|
|
57
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
58
|
+
await expect(increase.eventSubscriptions.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
59
|
+
Increase.NotFoundError,
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
test('list: request options and params are passed correctly', async () => {
|
|
64
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
65
|
+
await expect(
|
|
66
|
+
increase.eventSubscriptions.list({ cursor: 'string', limit: 0 }, { path: '/_stainless_unknown_path' }),
|
|
67
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
68
|
+
});
|
|
69
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import Increase from '~/index';
|
|
4
|
+
const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
5
|
+
|
|
6
|
+
describe('resource events', () => {
|
|
7
|
+
test('retrieve', async () => {
|
|
8
|
+
const response = await increase.events.retrieve('event_001dzz0r20rzr4zrhrr1364hy80');
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
test('retrieve: request options instead of params are passed correctly', async () => {
|
|
12
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
13
|
+
await expect(
|
|
14
|
+
increase.events.retrieve('event_001dzz0r20rzr4zrhrr1364hy80', { path: '/_stainless_unknown_path' }),
|
|
15
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test('list: only required params', async () => {
|
|
19
|
+
const response = await increase.events.list();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
test('list: required and optional params', async () => {
|
|
23
|
+
const response = await increase.events.list({
|
|
24
|
+
cursor: 'string',
|
|
25
|
+
limit: 0,
|
|
26
|
+
associated_object_id: 'string',
|
|
27
|
+
created_at: {
|
|
28
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
29
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
30
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
31
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
32
|
+
},
|
|
33
|
+
category: { in: ['account.created', 'account.created', 'account.created'] },
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
test('list: request options instead of params are passed correctly', async () => {
|
|
38
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
39
|
+
await expect(increase.events.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
40
|
+
Increase.NotFoundError,
|
|
41
|
+
);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
test('list: request options and params are passed correctly', async () => {
|
|
45
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
46
|
+
await expect(
|
|
47
|
+
increase.events.list(
|
|
48
|
+
{
|
|
49
|
+
cursor: 'string',
|
|
50
|
+
limit: 0,
|
|
51
|
+
associated_object_id: 'string',
|
|
52
|
+
created_at: {
|
|
53
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
54
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
55
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
56
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
57
|
+
},
|
|
58
|
+
category: { in: ['account.created', 'account.created', 'account.created'] },
|
|
59
|
+
},
|
|
60
|
+
{ path: '/_stainless_unknown_path' },
|
|
61
|
+
),
|
|
62
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import Increase from '~/index';
|
|
4
|
+
const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
5
|
+
|
|
6
|
+
describe('resource external_accounts', () => {
|
|
7
|
+
test('create: only required params', async () => {
|
|
8
|
+
const response = await increase.externalAccounts.create({
|
|
9
|
+
routing_number: '101050001',
|
|
10
|
+
account_number: '987654321',
|
|
11
|
+
description: 'Landlord',
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
test('create: required and optional params', async () => {
|
|
16
|
+
const response = await increase.externalAccounts.create({
|
|
17
|
+
routing_number: '101050001',
|
|
18
|
+
account_number: '987654321',
|
|
19
|
+
funding: 'checking',
|
|
20
|
+
description: 'Landlord',
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test('retrieve', async () => {
|
|
25
|
+
const response = await increase.externalAccounts.retrieve('external_account_ukk55lr923a3ac0pp7iv');
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
test('retrieve: request options instead of params are passed correctly', async () => {
|
|
29
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
30
|
+
await expect(
|
|
31
|
+
increase.externalAccounts.retrieve('external_account_ukk55lr923a3ac0pp7iv', {
|
|
32
|
+
path: '/_stainless_unknown_path',
|
|
33
|
+
}),
|
|
34
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
test('update: only required params', async () => {
|
|
38
|
+
const response = await increase.externalAccounts.update('external_account_ukk55lr923a3ac0pp7iv', {});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
test('update: required and optional params', async () => {
|
|
42
|
+
const response = await increase.externalAccounts.update('external_account_ukk55lr923a3ac0pp7iv', {
|
|
43
|
+
description: 'New description',
|
|
44
|
+
status: 'active',
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test('list: only required params', async () => {
|
|
49
|
+
const response = await increase.externalAccounts.list();
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
test('list: required and optional params', async () => {
|
|
53
|
+
const response = await increase.externalAccounts.list({
|
|
54
|
+
cursor: 'string',
|
|
55
|
+
limit: 0,
|
|
56
|
+
status: { in: ['active', 'active', 'active'] },
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
test('list: request options instead of params are passed correctly', async () => {
|
|
61
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
62
|
+
await expect(increase.externalAccounts.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
63
|
+
Increase.NotFoundError,
|
|
64
|
+
);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
test('list: request options and params are passed correctly', async () => {
|
|
68
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
69
|
+
await expect(
|
|
70
|
+
increase.externalAccounts.list(
|
|
71
|
+
{ cursor: 'string', limit: 0, status: { in: ['active', 'active', 'active'] } },
|
|
72
|
+
{ path: '/_stainless_unknown_path' },
|
|
73
|
+
),
|
|
74
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import { fileFromPath } from 'formdata-node/file-from-path';
|
|
4
|
+
|
|
5
|
+
import Increase from '~/index';
|
|
6
|
+
const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
7
|
+
|
|
8
|
+
describe('resource files', () => {
|
|
9
|
+
// skipped: prism mock server is broken for file uploads
|
|
10
|
+
test.skip('create: only required params', async () => {
|
|
11
|
+
const response = await increase.files.create({
|
|
12
|
+
file: await fileFromPath('README.md'),
|
|
13
|
+
purpose: 'check_image_front',
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// skipped: prism mock server is broken for file uploads
|
|
18
|
+
test.skip('create: required and optional params', async () => {
|
|
19
|
+
const response = await increase.files.create({
|
|
20
|
+
file: await fileFromPath('README.md'),
|
|
21
|
+
description: 'x',
|
|
22
|
+
purpose: 'check_image_front',
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
test('retrieve', async () => {
|
|
27
|
+
const response = await increase.files.retrieve('file_makxrc67oh9l6sg7w9yc');
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
test('retrieve: request options instead of params are passed correctly', async () => {
|
|
31
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
32
|
+
await expect(
|
|
33
|
+
increase.files.retrieve('file_makxrc67oh9l6sg7w9yc', { path: '/_stainless_unknown_path' }),
|
|
34
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
test('list: only required params', async () => {
|
|
38
|
+
const response = await increase.files.list();
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
test('list: required and optional params', async () => {
|
|
42
|
+
const response = await increase.files.list({
|
|
43
|
+
cursor: 'string',
|
|
44
|
+
limit: 0,
|
|
45
|
+
created_at: {
|
|
46
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
47
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
48
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
49
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
50
|
+
},
|
|
51
|
+
purpose: { in: ['check_image_front', 'check_image_front', 'check_image_front'] },
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
test('list: request options instead of params are passed correctly', async () => {
|
|
56
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
57
|
+
await expect(increase.files.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
58
|
+
Increase.NotFoundError,
|
|
59
|
+
);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
test('list: request options and params are passed correctly', async () => {
|
|
63
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
64
|
+
await expect(
|
|
65
|
+
increase.files.list(
|
|
66
|
+
{
|
|
67
|
+
cursor: 'string',
|
|
68
|
+
limit: 0,
|
|
69
|
+
created_at: {
|
|
70
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
71
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
72
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
73
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
74
|
+
},
|
|
75
|
+
purpose: { in: ['check_image_front', 'check_image_front', 'check_image_front'] },
|
|
76
|
+
},
|
|
77
|
+
{ path: '/_stainless_unknown_path' },
|
|
78
|
+
),
|
|
79
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
80
|
+
});
|
|
81
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import Increase from '~/index';
|
|
4
|
+
const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
5
|
+
|
|
6
|
+
describe('resource groups', () => {
|
|
7
|
+
test('retrieve_details', async () => {
|
|
8
|
+
const response = await increase.groups.retrieveDetails();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
test('retrieve_details: request options instead of params are passed correctly', async () => {
|
|
12
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
13
|
+
await expect(increase.groups.retrieveDetails({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
14
|
+
Increase.NotFoundError,
|
|
15
|
+
);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import Increase from '~/index';
|
|
4
|
+
const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
5
|
+
|
|
6
|
+
describe('resource inbound_ach_transfer_returns', () => {
|
|
7
|
+
test('create', async () => {
|
|
8
|
+
const response = await increase.inboundACHTransferReturns.create({
|
|
9
|
+
transaction_id: 'transaction_uyrp7fld2ium70oa7oi',
|
|
10
|
+
reason: 'payment_stopped',
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
test('retrieve', async () => {
|
|
15
|
+
const response = await increase.inboundACHTransferReturns.retrieve(
|
|
16
|
+
'inbound_ach_transfer_return_fhcxk5huskwhmt7iz0gk',
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
test('retrieve: request options instead of params are passed correctly', async () => {
|
|
21
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
22
|
+
await expect(
|
|
23
|
+
increase.inboundACHTransferReturns.retrieve('inbound_ach_transfer_return_fhcxk5huskwhmt7iz0gk', {
|
|
24
|
+
path: '/_stainless_unknown_path',
|
|
25
|
+
}),
|
|
26
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
test('list: only required params', async () => {
|
|
30
|
+
const response = await increase.inboundACHTransferReturns.list();
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
test('list: required and optional params', async () => {
|
|
34
|
+
const response = await increase.inboundACHTransferReturns.list({ cursor: 'string', limit: 0 });
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
test('list: request options instead of params are passed correctly', async () => {
|
|
38
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
39
|
+
await expect(
|
|
40
|
+
increase.inboundACHTransferReturns.list({ path: '/_stainless_unknown_path' }),
|
|
41
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
test('list: request options and params are passed correctly', async () => {
|
|
45
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
46
|
+
await expect(
|
|
47
|
+
increase.inboundACHTransferReturns.list(
|
|
48
|
+
{ cursor: 'string', limit: 0 },
|
|
49
|
+
{ path: '/_stainless_unknown_path' },
|
|
50
|
+
),
|
|
51
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import Increase from '~/index';
|
|
4
|
+
const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
5
|
+
|
|
6
|
+
describe('resource inbound_wire_drawdown_requests', () => {
|
|
7
|
+
test('retrieve', async () => {
|
|
8
|
+
const response = await increase.inboundWireDrawdownRequests.retrieve(
|
|
9
|
+
'inbound_wire_drawdown_request_u5a92ikqhz1ytphn799e',
|
|
10
|
+
);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
test('retrieve: request options instead of params are passed correctly', async () => {
|
|
14
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
15
|
+
await expect(
|
|
16
|
+
increase.inboundWireDrawdownRequests.retrieve('inbound_wire_drawdown_request_u5a92ikqhz1ytphn799e', {
|
|
17
|
+
path: '/_stainless_unknown_path',
|
|
18
|
+
}),
|
|
19
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
test('list: only required params', async () => {
|
|
23
|
+
const response = await increase.inboundWireDrawdownRequests.list();
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
test('list: required and optional params', async () => {
|
|
27
|
+
const response = await increase.inboundWireDrawdownRequests.list({ cursor: 'string', limit: 0 });
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
test('list: request options instead of params are passed correctly', async () => {
|
|
31
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
32
|
+
await expect(
|
|
33
|
+
increase.inboundWireDrawdownRequests.list({ path: '/_stainless_unknown_path' }),
|
|
34
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
test('list: request options and params are passed correctly', async () => {
|
|
38
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
39
|
+
await expect(
|
|
40
|
+
increase.inboundWireDrawdownRequests.list(
|
|
41
|
+
{ cursor: 'string', limit: 0 },
|
|
42
|
+
{ path: '/_stainless_unknown_path' },
|
|
43
|
+
),
|
|
44
|
+
).rejects.toThrow(Increase.NotFoundError);
|
|
45
|
+
});
|
|
46
|
+
});
|