increase 0.4.0 → 0.5.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/CHANGELOG.md +41 -0
- package/README.md +20 -5
- package/_shims/agent.node.ts +20 -0
- package/_shims/agent.ts +12 -0
- package/_shims/fetch.node.ts +11 -0
- package/_shims/fetch.ts +32 -0
- package/_shims/fileFromPath.node.ts +30 -0
- package/_shims/fileFromPath.ts +30 -0
- package/_shims/formdata.node.ts +9 -0
- package/_shims/formdata.ts +22 -0
- package/_shims/getMultipartRequestOptions.node.ts +24 -0
- package/_shims/getMultipartRequestOptions.ts +13 -0
- package/_shims/newFileArgs.ts +94 -0
- package/_shims/toFile.node.ts +25 -0
- package/_shims/toFile.ts +26 -0
- package/_shims/uploadable.node.ts +21 -0
- package/_shims/uploadable.ts +82 -0
- package/core.ts +34 -87
- package/dist/cjs/_shims/agent.d.ts +9 -0
- package/dist/cjs/_shims/agent.d.ts.map +1 -0
- package/dist/cjs/_shims/agent.js +14 -0
- package/dist/cjs/_shims/agent.js.map +1 -0
- package/dist/cjs/_shims/agent.node.d.ts +6 -0
- package/dist/cjs/_shims/agent.node.d.ts.map +1 -0
- package/dist/cjs/_shims/agent.node.js +28 -0
- package/dist/cjs/_shims/agent.node.js.map +1 -0
- package/dist/cjs/_shims/fetch.d.ts +19 -0
- package/dist/cjs/_shims/fetch.d.ts.map +1 -0
- package/dist/cjs/_shims/fetch.js +24 -0
- package/dist/cjs/_shims/fetch.js.map +1 -0
- package/dist/cjs/_shims/fetch.node.d.ts +9 -0
- package/dist/cjs/_shims/fetch.node.d.ts.map +1 -0
- package/dist/cjs/_shims/fetch.node.js +68 -0
- package/dist/cjs/_shims/fetch.node.js.map +1 -0
- package/dist/cjs/_shims/fileFromPath.d.ts +23 -0
- package/dist/cjs/_shims/fileFromPath.d.ts.map +1 -0
- package/dist/cjs/{tests/api-resources/simulations/programs.test.js → _shims/fileFromPath.js} +16 -19
- package/dist/cjs/_shims/fileFromPath.js.map +1 -0
- package/dist/cjs/_shims/fileFromPath.node.d.ts +18 -0
- package/dist/cjs/_shims/fileFromPath.node.d.ts.map +1 -0
- package/dist/cjs/{tests/form.test.js → _shims/fileFromPath.node.js} +16 -27
- package/dist/cjs/_shims/fileFromPath.node.js.map +1 -0
- package/dist/cjs/_shims/formdata.d.ts +13 -0
- package/dist/cjs/_shims/formdata.d.ts.map +1 -0
- package/dist/cjs/_shims/formdata.js +20 -0
- package/dist/cjs/_shims/formdata.js.map +1 -0
- package/dist/cjs/_shims/formdata.node.d.ts +7 -0
- package/dist/cjs/_shims/formdata.node.d.ts.map +1 -0
- package/dist/cjs/_shims/formdata.node.js +27 -0
- package/dist/cjs/_shims/formdata.node.js.map +1 -0
- package/dist/cjs/_shims/getMultipartRequestOptions.d.ts +10 -0
- package/dist/cjs/_shims/getMultipartRequestOptions.d.ts.map +1 -0
- package/dist/cjs/{tests/api-resources/simulations/documents.test.js → _shims/getMultipartRequestOptions.js} +11 -19
- package/dist/cjs/_shims/getMultipartRequestOptions.js.map +1 -0
- package/dist/cjs/_shims/getMultipartRequestOptions.node.d.ts +10 -0
- package/dist/cjs/_shims/getMultipartRequestOptions.node.d.ts.map +1 -0
- package/dist/cjs/{tests/api-resources/simulations/card-refunds.test.js → _shims/getMultipartRequestOptions.node.js} +19 -19
- package/dist/cjs/_shims/getMultipartRequestOptions.node.js.map +1 -0
- package/dist/cjs/_shims/newFileArgs.d.ts +19 -0
- package/dist/cjs/_shims/newFileArgs.d.ts.map +1 -0
- package/dist/cjs/_shims/newFileArgs.js +169 -0
- package/dist/cjs/_shims/newFileArgs.js.map +1 -0
- package/dist/cjs/_shims/toFile.d.ts +21 -0
- package/dist/cjs/_shims/toFile.d.ts.map +1 -0
- package/dist/cjs/_shims/toFile.js +56 -0
- package/dist/cjs/_shims/toFile.js.map +1 -0
- package/dist/cjs/_shims/toFile.node.d.ts +20 -0
- package/dist/cjs/_shims/toFile.node.d.ts.map +1 -0
- package/dist/cjs/_shims/toFile.node.js +56 -0
- package/dist/cjs/_shims/toFile.node.js.map +1 -0
- package/dist/cjs/_shims/uploadable.d.ts +56 -0
- package/dist/cjs/_shims/uploadable.d.ts.map +1 -0
- package/dist/cjs/_shims/uploadable.js +37 -0
- package/dist/cjs/_shims/uploadable.js.map +1 -0
- package/dist/cjs/_shims/uploadable.node.d.ts +7 -0
- package/dist/cjs/_shims/uploadable.node.d.ts.map +1 -0
- package/dist/cjs/_shims/uploadable.node.js +23 -0
- package/dist/cjs/_shims/uploadable.node.js.map +1 -0
- package/dist/cjs/core.d.ts +6 -17
- package/dist/cjs/core.d.ts.map +1 -1
- package/dist/cjs/core.js +45 -74
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/error.js +28 -28
- package/dist/cjs/error.js.map +1 -1
- package/dist/cjs/index.d.ts +43 -3
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +48 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/pagination.d.ts +3 -1
- package/dist/cjs/pagination.d.ts.map +1 -1
- package/dist/cjs/pagination.js.map +1 -1
- package/dist/cjs/resources/account-numbers.d.ts +12 -4
- package/dist/cjs/resources/account-numbers.d.ts.map +1 -1
- package/dist/cjs/resources/account-numbers.js +44 -0
- package/dist/cjs/resources/account-numbers.js.map +1 -1
- package/dist/cjs/resources/account-statements.d.ts +10 -4
- package/dist/cjs/resources/account-statements.d.ts.map +1 -1
- package/dist/cjs/resources/account-statements.js +44 -0
- package/dist/cjs/resources/account-statements.js.map +1 -1
- package/dist/cjs/resources/account-transfers.d.ts +11 -4
- package/dist/cjs/resources/account-transfers.d.ts.map +1 -1
- package/dist/cjs/resources/account-transfers.js +44 -0
- package/dist/cjs/resources/account-transfers.js.map +1 -1
- package/dist/cjs/resources/accounts.d.ts +12 -4
- package/dist/cjs/resources/accounts.d.ts.map +1 -1
- package/dist/cjs/resources/accounts.js +44 -0
- package/dist/cjs/resources/accounts.js.map +1 -1
- package/dist/cjs/resources/ach-prenotifications.d.ts +11 -4
- package/dist/cjs/resources/ach-prenotifications.d.ts.map +1 -1
- package/dist/cjs/resources/ach-prenotifications.js +44 -0
- package/dist/cjs/resources/ach-prenotifications.js.map +1 -1
- package/dist/cjs/resources/ach-transfers.d.ts +11 -5
- package/dist/cjs/resources/ach-transfers.d.ts.map +1 -1
- package/dist/cjs/resources/ach-transfers.js +44 -0
- package/dist/cjs/resources/ach-transfers.js.map +1 -1
- package/dist/cjs/resources/balance-lookups.d.ts +5 -0
- package/dist/cjs/resources/balance-lookups.d.ts.map +1 -1
- package/dist/cjs/resources/balance-lookups.js +1 -0
- package/dist/cjs/resources/balance-lookups.js.map +1 -1
- package/dist/cjs/resources/bookkeeping-accounts.d.ts +11 -4
- package/dist/cjs/resources/bookkeeping-accounts.d.ts.map +1 -1
- package/dist/cjs/resources/bookkeeping-accounts.js +44 -0
- package/dist/cjs/resources/bookkeeping-accounts.js.map +1 -1
- package/dist/cjs/resources/bookkeeping-entries.d.ts +10 -4
- package/dist/cjs/resources/bookkeeping-entries.d.ts.map +1 -1
- package/dist/cjs/resources/bookkeeping-entries.js +44 -0
- package/dist/cjs/resources/bookkeeping-entries.js.map +1 -1
- package/dist/cjs/resources/bookkeeping-entry-sets.d.ts +17 -12
- package/dist/cjs/resources/bookkeeping-entry-sets.d.ts.map +1 -1
- package/dist/cjs/resources/bookkeeping-entry-sets.js +3 -0
- package/dist/cjs/resources/bookkeeping-entry-sets.js.map +1 -1
- package/dist/cjs/resources/card-disputes.d.ts +11 -4
- package/dist/cjs/resources/card-disputes.d.ts.map +1 -1
- package/dist/cjs/resources/card-disputes.js +44 -0
- package/dist/cjs/resources/card-disputes.js.map +1 -1
- package/dist/cjs/resources/card-profiles.d.ts +11 -4
- package/dist/cjs/resources/card-profiles.d.ts.map +1 -1
- package/dist/cjs/resources/card-profiles.js +44 -0
- package/dist/cjs/resources/card-profiles.js.map +1 -1
- package/dist/cjs/resources/cards.d.ts +15 -6
- package/dist/cjs/resources/cards.d.ts.map +1 -1
- package/dist/cjs/resources/cards.js +44 -0
- package/dist/cjs/resources/cards.js.map +1 -1
- package/dist/cjs/resources/check-deposits.d.ts +11 -4
- package/dist/cjs/resources/check-deposits.d.ts.map +1 -1
- package/dist/cjs/resources/check-deposits.js +44 -0
- package/dist/cjs/resources/check-deposits.js.map +1 -1
- package/dist/cjs/resources/check-transfers.d.ts +83 -75
- package/dist/cjs/resources/check-transfers.d.ts.map +1 -1
- package/dist/cjs/resources/check-transfers.js +44 -0
- package/dist/cjs/resources/check-transfers.js.map +1 -1
- package/dist/cjs/resources/declined-transactions.d.ts +10 -4
- package/dist/cjs/resources/declined-transactions.d.ts.map +1 -1
- package/dist/cjs/resources/declined-transactions.js +44 -0
- package/dist/cjs/resources/declined-transactions.js.map +1 -1
- package/dist/cjs/resources/digital-wallet-tokens.d.ts +10 -4
- package/dist/cjs/resources/digital-wallet-tokens.d.ts.map +1 -1
- package/dist/cjs/resources/digital-wallet-tokens.js +44 -0
- package/dist/cjs/resources/digital-wallet-tokens.js.map +1 -1
- package/dist/cjs/resources/documents.d.ts +12 -105
- package/dist/cjs/resources/documents.d.ts.map +1 -1
- package/dist/cjs/resources/documents.js +44 -0
- package/dist/cjs/resources/documents.js.map +1 -1
- package/dist/cjs/resources/entities/entities.d.ts +291 -279
- package/dist/cjs/resources/entities/entities.d.ts.map +1 -1
- package/dist/cjs/resources/entities/entities.js +46 -0
- package/dist/cjs/resources/entities/entities.js.map +1 -1
- package/dist/cjs/resources/entities/index.d.ts +2 -1
- package/dist/cjs/resources/entities/index.d.ts.map +1 -1
- package/dist/cjs/resources/entities/index.js +17 -1
- package/dist/cjs/resources/entities/index.js.map +1 -1
- package/dist/cjs/resources/entities/supplemental-documents.d.ts +7 -0
- package/dist/cjs/resources/entities/supplemental-documents.d.ts.map +1 -1
- package/dist/cjs/resources/entities/supplemental-documents.js +44 -0
- package/dist/cjs/resources/entities/supplemental-documents.js.map +1 -1
- package/dist/cjs/resources/event-subscriptions.d.ts +12 -4
- package/dist/cjs/resources/event-subscriptions.d.ts.map +1 -1
- package/dist/cjs/resources/event-subscriptions.js +44 -0
- package/dist/cjs/resources/event-subscriptions.js.map +1 -1
- package/dist/cjs/resources/events.d.ts +10 -4
- package/dist/cjs/resources/events.d.ts.map +1 -1
- package/dist/cjs/resources/events.js +44 -0
- package/dist/cjs/resources/events.js.map +1 -1
- package/dist/cjs/resources/exports.d.ts +11 -4
- package/dist/cjs/resources/exports.d.ts.map +1 -1
- package/dist/cjs/resources/exports.js +44 -0
- package/dist/cjs/resources/exports.js.map +1 -1
- package/dist/cjs/resources/external-accounts.d.ts +12 -4
- package/dist/cjs/resources/external-accounts.d.ts.map +1 -1
- package/dist/cjs/resources/external-accounts.js +44 -0
- package/dist/cjs/resources/external-accounts.js.map +1 -1
- package/dist/cjs/resources/files.d.ts +19 -6
- package/dist/cjs/resources/files.d.ts.map +1 -1
- package/dist/cjs/resources/files.js +82 -2
- package/dist/cjs/resources/files.js.map +1 -1
- package/dist/cjs/resources/groups.d.ts +8 -4
- package/dist/cjs/resources/groups.d.ts.map +1 -1
- package/dist/cjs/resources/groups.js +1 -0
- package/dist/cjs/resources/groups.js.map +1 -1
- package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts +7 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts.map +1 -1
- package/dist/cjs/resources/inbound-ach-transfer-returns.js +46 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.js.map +1 -1
- package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts +10 -4
- package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/dist/cjs/resources/inbound-wire-drawdown-requests.js +47 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.js.map +1 -1
- package/dist/cjs/resources/limits.d.ts +8 -0
- package/dist/cjs/resources/limits.d.ts.map +1 -1
- package/dist/cjs/resources/limits.js +44 -0
- package/dist/cjs/resources/limits.js.map +1 -1
- package/dist/cjs/resources/oauth-connections.d.ts +10 -4
- package/dist/cjs/resources/oauth-connections.d.ts.map +1 -1
- package/dist/cjs/resources/oauth-connections.js +44 -0
- package/dist/cjs/resources/oauth-connections.js.map +1 -1
- package/dist/cjs/resources/pending-transactions.d.ts +14 -8
- package/dist/cjs/resources/pending-transactions.d.ts.map +1 -1
- package/dist/cjs/resources/pending-transactions.js +44 -0
- package/dist/cjs/resources/pending-transactions.js.map +1 -1
- package/dist/cjs/resources/programs.d.ts +10 -4
- package/dist/cjs/resources/programs.d.ts.map +1 -1
- package/dist/cjs/resources/programs.js +44 -0
- package/dist/cjs/resources/programs.js.map +1 -1
- package/dist/cjs/resources/real-time-decisions.d.ts +33 -28
- package/dist/cjs/resources/real-time-decisions.d.ts.map +1 -1
- package/dist/cjs/resources/real-time-decisions.js +3 -0
- package/dist/cjs/resources/real-time-decisions.js.map +1 -1
- package/dist/cjs/resources/real-time-payments-transfers.d.ts +26 -19
- package/dist/cjs/resources/real-time-payments-transfers.d.ts.map +1 -1
- package/dist/cjs/resources/real-time-payments-transfers.js +46 -0
- package/dist/cjs/resources/real-time-payments-transfers.js.map +1 -1
- package/dist/cjs/resources/routing-numbers.d.ts +6 -0
- package/dist/cjs/resources/routing-numbers.d.ts.map +1 -1
- package/dist/cjs/resources/routing-numbers.js +44 -0
- package/dist/cjs/resources/routing-numbers.js.map +1 -1
- package/dist/cjs/resources/simulations/account-statements.d.ts +4 -0
- package/dist/cjs/resources/simulations/account-statements.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/account-statements.js +3 -0
- package/dist/cjs/resources/simulations/account-statements.js.map +1 -1
- package/dist/cjs/resources/simulations/ach-transfers.d.ts +1236 -1201
- package/dist/cjs/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/ach-transfers.js +1 -0
- package/dist/cjs/resources/simulations/ach-transfers.js.map +1 -1
- package/dist/cjs/resources/simulations/card-disputes.d.ts +4 -0
- package/dist/cjs/resources/simulations/card-disputes.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/card-disputes.js +1 -0
- package/dist/cjs/resources/simulations/card-disputes.js.map +1 -1
- package/dist/cjs/resources/simulations/card-refunds.d.ts +4 -0
- package/dist/cjs/resources/simulations/card-refunds.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/card-refunds.js +1 -0
- package/dist/cjs/resources/simulations/card-refunds.js.map +1 -1
- package/dist/cjs/resources/simulations/cards.d.ts +453 -447
- package/dist/cjs/resources/simulations/cards.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/cards.js +1 -0
- package/dist/cjs/resources/simulations/cards.js.map +1 -1
- package/dist/cjs/resources/simulations/check-transfers.d.ts +4 -0
- package/dist/cjs/resources/simulations/check-transfers.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/check-transfers.js +1 -0
- package/dist/cjs/resources/simulations/check-transfers.js.map +1 -1
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts +5 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.js +4 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.js.map +1 -1
- package/dist/cjs/resources/simulations/documents.d.ts +4 -0
- package/dist/cjs/resources/simulations/documents.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/documents.js +1 -0
- package/dist/cjs/resources/simulations/documents.js.map +1 -1
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts +4 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.js +4 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -1
- package/dist/cjs/resources/simulations/index.d.ts +23 -10
- package/dist/cjs/resources/simulations/index.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/index.js +129 -0
- package/dist/cjs/resources/simulations/index.js.map +1 -1
- package/dist/cjs/resources/simulations/interest-payments.d.ts +117 -82
- package/dist/cjs/resources/simulations/interest-payments.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/interest-payments.js +3 -0
- package/dist/cjs/resources/simulations/interest-payments.js.map +1 -1
- package/dist/cjs/resources/simulations/programs.d.ts +4 -0
- package/dist/cjs/resources/simulations/programs.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/programs.js +1 -0
- package/dist/cjs/resources/simulations/programs.js.map +1 -1
- package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +1236 -1200
- package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js +3 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/dist/cjs/resources/simulations/simulations.d.ts +40 -0
- package/dist/cjs/resources/simulations/simulations.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/simulations.js +58 -0
- package/dist/cjs/resources/simulations/simulations.js.map +1 -1
- package/dist/cjs/resources/simulations/wire-transfers.d.ts +117 -82
- package/dist/cjs/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/wire-transfers.js +1 -0
- package/dist/cjs/resources/simulations/wire-transfers.js.map +1 -1
- package/dist/cjs/resources/transactions.d.ts +122 -85
- package/dist/cjs/resources/transactions.d.ts.map +1 -1
- package/dist/cjs/resources/transactions.js +44 -0
- package/dist/cjs/resources/transactions.js.map +1 -1
- package/dist/cjs/resources/wire-drawdown-requests.d.ts +11 -4
- package/dist/cjs/resources/wire-drawdown-requests.d.ts.map +1 -1
- package/dist/cjs/resources/wire-drawdown-requests.js +44 -0
- package/dist/cjs/resources/wire-drawdown-requests.js.map +1 -1
- package/dist/cjs/resources/wire-transfers.d.ts +11 -4
- package/dist/cjs/resources/wire-transfers.d.ts.map +1 -1
- package/dist/cjs/resources/wire-transfers.js +44 -0
- package/dist/cjs/resources/wire-transfers.js.map +1 -1
- package/dist/cjs/streaming.d.ts +1 -2
- package/dist/cjs/streaming.d.ts.map +1 -1
- package/dist/cjs/streaming.js +2 -0
- package/dist/cjs/streaming.js.map +1 -1
- package/dist/cjs/uploads.d.ts +24 -0
- package/dist/cjs/uploads.d.ts.map +1 -0
- package/dist/cjs/uploads.js +121 -0
- package/dist/cjs/uploads.js.map +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/_shims/agent.d.ts +9 -0
- package/dist/esm/_shims/agent.d.ts.map +1 -0
- package/dist/esm/_shims/agent.js +10 -0
- package/dist/esm/_shims/agent.js.map +1 -0
- package/dist/esm/_shims/agent.node.d.ts +6 -0
- package/dist/esm/_shims/agent.node.d.ts.map +1 -0
- package/dist/esm/_shims/agent.node.js +16 -0
- package/dist/esm/_shims/agent.node.js.map +1 -0
- package/dist/esm/_shims/fetch.d.ts +19 -0
- package/dist/esm/_shims/fetch.d.ts.map +1 -0
- package/dist/esm/_shims/fetch.js +18 -0
- package/dist/esm/_shims/fetch.js.map +1 -0
- package/dist/esm/_shims/fetch.node.d.ts +9 -0
- package/dist/esm/_shims/fetch.node.d.ts.map +1 -0
- package/dist/esm/_shims/fetch.node.js +7 -0
- package/dist/esm/_shims/fetch.node.js.map +1 -0
- package/dist/esm/_shims/fileFromPath.d.ts +23 -0
- package/dist/esm/_shims/fileFromPath.d.ts.map +1 -0
- package/dist/esm/_shims/fileFromPath.js +12 -0
- package/dist/esm/_shims/fileFromPath.js.map +1 -0
- package/dist/esm/_shims/fileFromPath.node.d.ts +18 -0
- package/dist/esm/_shims/fileFromPath.node.d.ts.map +1 -0
- package/dist/esm/_shims/fileFromPath.node.js +13 -0
- package/dist/esm/_shims/fileFromPath.node.js.map +1 -0
- package/dist/esm/_shims/formdata.d.ts +13 -0
- package/dist/esm/_shims/formdata.d.ts.map +1 -0
- package/dist/esm/_shims/formdata.js +15 -0
- package/dist/esm/_shims/formdata.js.map +1 -0
- package/dist/esm/_shims/formdata.node.d.ts +7 -0
- package/dist/esm/_shims/formdata.node.d.ts.map +1 -0
- package/dist/esm/_shims/formdata.node.js +7 -0
- package/dist/esm/_shims/formdata.node.js.map +1 -0
- package/dist/esm/_shims/getMultipartRequestOptions.d.ts +10 -0
- package/dist/esm/_shims/getMultipartRequestOptions.d.ts.map +1 -0
- package/dist/esm/_shims/getMultipartRequestOptions.js +7 -0
- package/dist/esm/_shims/getMultipartRequestOptions.js.map +1 -0
- package/dist/esm/_shims/getMultipartRequestOptions.node.d.ts +10 -0
- package/dist/esm/_shims/getMultipartRequestOptions.node.d.ts.map +1 -0
- package/dist/esm/_shims/getMultipartRequestOptions.node.js +17 -0
- package/dist/esm/_shims/getMultipartRequestOptions.node.js.map +1 -0
- package/dist/esm/_shims/newFileArgs.d.ts +19 -0
- package/dist/esm/_shims/newFileArgs.d.ts.map +1 -0
- package/dist/esm/_shims/newFileArgs.js +66 -0
- package/dist/esm/_shims/newFileArgs.js.map +1 -0
- package/dist/esm/_shims/toFile.d.ts +21 -0
- package/dist/esm/_shims/toFile.d.ts.map +1 -0
- package/dist/esm/_shims/toFile.js +19 -0
- package/dist/esm/_shims/toFile.js.map +1 -0
- package/dist/esm/_shims/toFile.node.d.ts +20 -0
- package/dist/esm/_shims/toFile.node.d.ts.map +1 -0
- package/dist/esm/_shims/toFile.node.js +19 -0
- package/dist/esm/_shims/toFile.node.js.map +1 -0
- package/dist/esm/_shims/uploadable.d.ts +56 -0
- package/dist/esm/_shims/uploadable.d.ts.map +1 -0
- package/dist/esm/_shims/uploadable.js +30 -0
- package/dist/esm/_shims/uploadable.js.map +1 -0
- package/dist/esm/_shims/uploadable.node.d.ts +7 -0
- package/dist/esm/_shims/uploadable.node.d.ts.map +1 -0
- package/dist/esm/_shims/uploadable.node.js +10 -0
- package/dist/esm/_shims/uploadable.node.js.map +1 -0
- package/dist/esm/check-version.d.ts +2 -0
- package/dist/esm/check-version.d.ts.map +1 -0
- package/dist/esm/check-version.js +16 -0
- package/dist/esm/check-version.js.map +1 -0
- package/dist/esm/core.d.ts +221 -0
- package/dist/esm/core.d.ts.map +1 -0
- package/dist/esm/core.js +556 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/error.d.ts +208 -0
- package/dist/esm/error.d.ts.map +1 -0
- package/dist/esm/error.js +275 -0
- package/dist/esm/error.js.map +1 -0
- package/dist/esm/index.d.ts +301 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +213 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagination.d.ts +34 -0
- package/dist/esm/pagination.d.ts.map +1 -0
- package/dist/esm/pagination.js +26 -0
- package/dist/esm/pagination.js.map +1 -0
- package/dist/esm/resource.d.ts +12 -0
- package/dist/esm/resource.d.ts.map +1 -0
- package/dist/esm/resource.js +13 -0
- package/dist/esm/resource.js.map +1 -0
- package/dist/esm/resources/account-numbers.d.ts +137 -0
- package/dist/esm/resources/account-numbers.d.ts.map +1 -0
- package/dist/esm/resources/account-numbers.js +36 -0
- package/dist/esm/resources/account-numbers.js.map +1 -0
- package/dist/esm/resources/account-statements.d.ts +106 -0
- package/dist/esm/resources/account-statements.d.ts.map +1 -0
- package/dist/esm/resources/account-statements.js +24 -0
- package/dist/esm/resources/account-statements.js.map +1 -0
- package/dist/esm/resources/account-transfers.d.ts +205 -0
- package/dist/esm/resources/account-transfers.d.ts.map +1 -0
- package/dist/esm/resources/account-transfers.js +42 -0
- package/dist/esm/resources/account-transfers.js.map +1 -0
- package/dist/esm/resources/accounts.d.ts +163 -0
- package/dist/esm/resources/accounts.d.ts.map +1 -0
- package/dist/esm/resources/accounts.js +42 -0
- package/dist/esm/resources/accounts.js.map +1 -0
- package/dist/esm/resources/ach-prenotifications.d.ts +199 -0
- package/dist/esm/resources/ach-prenotifications.d.ts.map +1 -0
- package/dist/esm/resources/ach-prenotifications.js +30 -0
- package/dist/esm/resources/ach-prenotifications.js.map +1 -0
- package/dist/esm/resources/ach-transfers.d.ts +461 -0
- package/dist/esm/resources/ach-transfers.d.ts.map +1 -0
- package/dist/esm/resources/ach-transfers.js +42 -0
- package/dist/esm/resources/ach-transfers.js.map +1 -0
- package/dist/esm/resources/balance-lookups.d.ts +52 -0
- package/dist/esm/resources/balance-lookups.d.ts.map +1 -0
- package/dist/esm/resources/balance-lookups.js +12 -0
- package/dist/esm/resources/balance-lookups.js.map +1 -0
- package/dist/esm/resources/bookkeeping-accounts.d.ts +78 -0
- package/dist/esm/resources/bookkeeping-accounts.d.ts.map +1 -0
- package/dist/esm/resources/bookkeeping-accounts.js +24 -0
- package/dist/esm/resources/bookkeeping-accounts.js.map +1 -0
- package/dist/esm/resources/bookkeeping-entries.d.ts +49 -0
- package/dist/esm/resources/bookkeeping-entries.d.ts.map +1 -0
- package/dist/esm/resources/bookkeeping-entries.js +18 -0
- package/dist/esm/resources/bookkeeping-entries.js.map +1 -0
- package/dist/esm/resources/bookkeeping-entry-sets.d.ts +88 -0
- package/dist/esm/resources/bookkeeping-entry-sets.d.ts.map +1 -0
- package/dist/esm/resources/bookkeeping-entry-sets.js +12 -0
- package/dist/esm/resources/bookkeeping-entry-sets.js.map +1 -0
- package/dist/esm/resources/card-disputes.d.ts +160 -0
- package/dist/esm/resources/card-disputes.d.ts.map +1 -0
- package/dist/esm/resources/card-disputes.js +30 -0
- package/dist/esm/resources/card-disputes.js.map +1 -0
- package/dist/esm/resources/card-profiles.d.ts +206 -0
- package/dist/esm/resources/card-profiles.d.ts.map +1 -0
- package/dist/esm/resources/card-profiles.js +30 -0
- package/dist/esm/resources/card-profiles.js.map +1 -0
- package/dist/esm/resources/cards.d.ts +354 -0
- package/dist/esm/resources/cards.d.ts.map +1 -0
- package/dist/esm/resources/cards.js +42 -0
- package/dist/esm/resources/cards.js.map +1 -0
- package/dist/esm/resources/check-deposits.d.ts +263 -0
- package/dist/esm/resources/check-deposits.d.ts.map +1 -0
- package/dist/esm/resources/check-deposits.js +30 -0
- package/dist/esm/resources/check-deposits.js.map +1 -0
- package/dist/esm/resources/check-transfers.d.ts +438 -0
- package/dist/esm/resources/check-transfers.d.ts.map +1 -0
- package/dist/esm/resources/check-transfers.js +48 -0
- package/dist/esm/resources/check-transfers.js.map +1 -0
- package/dist/esm/resources/declined-transactions.d.ts +492 -0
- package/dist/esm/resources/declined-transactions.d.ts.map +1 -0
- package/dist/esm/resources/declined-transactions.js +24 -0
- package/dist/esm/resources/declined-transactions.js.map +1 -0
- package/dist/esm/resources/digital-wallet-tokens.d.ts +92 -0
- package/dist/esm/resources/digital-wallet-tokens.d.ts.map +1 -0
- package/dist/esm/resources/digital-wallet-tokens.js +24 -0
- package/dist/esm/resources/digital-wallet-tokens.js.map +1 -0
- package/dist/esm/resources/documents.d.ts +95 -0
- package/dist/esm/resources/documents.d.ts.map +1 -0
- package/dist/esm/resources/documents.js +24 -0
- package/dist/esm/resources/documents.js.map +1 -0
- package/dist/esm/resources/entities/entities.d.ts +1622 -0
- package/dist/esm/resources/entities/entities.d.ts.map +1 -0
- package/dist/esm/resources/entities/entities.js +37 -0
- package/dist/esm/resources/entities/entities.js.map +1 -0
- package/dist/esm/resources/entities/index.d.ts +9 -0
- package/dist/esm/resources/entities/index.d.ts.map +1 -0
- package/dist/esm/resources/entities/index.js +4 -0
- package/dist/esm/resources/entities/index.js.map +1 -0
- package/dist/esm/resources/entities/supplemental-documents.d.ts +62 -0
- package/dist/esm/resources/entities/supplemental-documents.d.ts.map +1 -0
- package/dist/esm/resources/entities/supplemental-documents.js +26 -0
- package/dist/esm/resources/entities/supplemental-documents.js.map +1 -0
- package/dist/esm/resources/event-subscriptions.d.ts +209 -0
- package/dist/esm/resources/event-subscriptions.d.ts.map +1 -0
- package/dist/esm/resources/event-subscriptions.js +36 -0
- package/dist/esm/resources/event-subscriptions.js.map +1 -0
- package/dist/esm/resources/events.d.ts +195 -0
- package/dist/esm/resources/events.d.ts.map +1 -0
- package/dist/esm/resources/events.js +24 -0
- package/dist/esm/resources/events.js.map +1 -0
- package/dist/esm/resources/exports.d.ts +169 -0
- package/dist/esm/resources/exports.d.ts.map +1 -0
- package/dist/esm/resources/exports.js +30 -0
- package/dist/esm/resources/exports.js.map +1 -0
- package/dist/esm/resources/external-accounts.d.ts +131 -0
- package/dist/esm/resources/external-accounts.d.ts.map +1 -0
- package/dist/esm/resources/external-accounts.js +36 -0
- package/dist/esm/resources/external-accounts.js.map +1 -0
- package/dist/esm/resources/files.d.ts +167 -0
- package/dist/esm/resources/files.d.ts.map +1 -0
- package/dist/esm/resources/files.js +33 -0
- package/dist/esm/resources/files.js.map +1 -0
- package/dist/esm/resources/groups.d.ts +42 -0
- package/dist/esm/resources/groups.d.ts.map +1 -0
- package/dist/esm/resources/groups.js +12 -0
- package/dist/esm/resources/groups.js.map +1 -0
- package/dist/esm/resources/inbound-ach-transfer-returns.d.ts +117 -0
- package/dist/esm/resources/inbound-ach-transfer-returns.d.ts.map +1 -0
- package/dist/esm/resources/inbound-ach-transfer-returns.js +33 -0
- package/dist/esm/resources/inbound-ach-transfer-returns.js.map +1 -0
- package/dist/esm/resources/inbound-wire-drawdown-requests.d.ts +131 -0
- package/dist/esm/resources/inbound-wire-drawdown-requests.d.ts.map +1 -0
- package/dist/esm/resources/inbound-wire-drawdown-requests.js +27 -0
- package/dist/esm/resources/inbound-wire-drawdown-requests.js.map +1 -0
- package/dist/esm/resources/index.d.ts +199 -0
- package/dist/esm/resources/index.d.ts.map +1 -0
- package/dist/esm/resources/index.js +44 -0
- package/dist/esm/resources/index.js.map +1 -0
- package/dist/esm/resources/limits.d.ts +114 -0
- package/dist/esm/resources/limits.d.ts.map +1 -0
- package/dist/esm/resources/limits.js +36 -0
- package/dist/esm/resources/limits.js.map +1 -0
- package/dist/esm/resources/oauth-connections.d.ts +57 -0
- package/dist/esm/resources/oauth-connections.d.ts.map +1 -0
- package/dist/esm/resources/oauth-connections.js +24 -0
- package/dist/esm/resources/oauth-connections.js.map +1 -0
- package/dist/esm/resources/pending-transactions.d.ts +482 -0
- package/dist/esm/resources/pending-transactions.d.ts.map +1 -0
- package/dist/esm/resources/pending-transactions.js +24 -0
- package/dist/esm/resources/pending-transactions.js.map +1 -0
- package/dist/esm/resources/programs.d.ts +54 -0
- package/dist/esm/resources/programs.d.ts.map +1 -0
- package/dist/esm/resources/programs.js +24 -0
- package/dist/esm/resources/programs.js.map +1 -0
- package/dist/esm/resources/real-time-decisions.d.ts +330 -0
- package/dist/esm/resources/real-time-decisions.d.ts.map +1 -0
- package/dist/esm/resources/real-time-decisions.js +18 -0
- package/dist/esm/resources/real-time-decisions.js.map +1 -0
- package/dist/esm/resources/real-time-payments-transfers.d.ts +294 -0
- package/dist/esm/resources/real-time-payments-transfers.d.ts.map +1 -0
- package/dist/esm/resources/real-time-payments-transfers.js +33 -0
- package/dist/esm/resources/real-time-payments-transfers.js.map +1 -0
- package/dist/esm/resources/routing-numbers.d.ts +56 -0
- package/dist/esm/resources/routing-numbers.d.ts.map +1 -0
- package/dist/esm/resources/routing-numbers.js +20 -0
- package/dist/esm/resources/routing-numbers.js.map +1 -0
- package/dist/esm/resources/shared.d.ts +16 -0
- package/dist/esm/resources/shared.d.ts.map +1 -0
- package/dist/esm/resources/shared.js +3 -0
- package/dist/esm/resources/shared.js.map +1 -0
- package/dist/esm/resources/simulations/account-statements.d.ts +24 -0
- package/dist/esm/resources/simulations/account-statements.d.ts.map +1 -0
- package/dist/esm/resources/simulations/account-statements.js +13 -0
- package/dist/esm/resources/simulations/account-statements.js.map +1 -0
- package/dist/esm/resources/simulations/account-transfers.d.ts +16 -0
- package/dist/esm/resources/simulations/account-transfers.d.ts.map +1 -0
- package/dist/esm/resources/simulations/account-transfers.js +14 -0
- package/dist/esm/resources/simulations/account-transfers.js.map +1 -0
- package/dist/esm/resources/simulations/ach-transfers.d.ts +1836 -0
- package/dist/esm/resources/simulations/ach-transfers.d.ts.map +1 -0
- package/dist/esm/resources/simulations/ach-transfers.js +36 -0
- package/dist/esm/resources/simulations/ach-transfers.js.map +1 -0
- package/dist/esm/resources/simulations/card-disputes.d.ts +31 -0
- package/dist/esm/resources/simulations/card-disputes.d.ts.map +1 -0
- package/dist/esm/resources/simulations/card-disputes.js +15 -0
- package/dist/esm/resources/simulations/card-disputes.js.map +1 -0
- package/dist/esm/resources/simulations/card-refunds.d.ts +25 -0
- package/dist/esm/resources/simulations/card-refunds.d.ts.map +1 -0
- package/dist/esm/resources/simulations/card-refunds.js +13 -0
- package/dist/esm/resources/simulations/card-refunds.js.map +1 -0
- package/dist/esm/resources/simulations/cards.d.ts +931 -0
- package/dist/esm/resources/simulations/cards.d.ts.map +1 -0
- package/dist/esm/resources/simulations/cards.js +28 -0
- package/dist/esm/resources/simulations/cards.js.map +1 -0
- package/dist/esm/resources/simulations/check-deposits.d.ts +31 -0
- package/dist/esm/resources/simulations/check-deposits.d.ts.map +1 -0
- package/dist/esm/resources/simulations/check-deposits.js +27 -0
- package/dist/esm/resources/simulations/check-deposits.js.map +1 -0
- package/dist/esm/resources/simulations/check-transfers.d.ts +42 -0
- package/dist/esm/resources/simulations/check-transfers.d.ts.map +1 -0
- package/dist/esm/resources/simulations/check-transfers.js +28 -0
- package/dist/esm/resources/simulations/check-transfers.js.map +1 -0
- package/dist/esm/resources/simulations/digital-wallet-token-requests.d.ts +49 -0
- package/dist/esm/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -0
- package/dist/esm/resources/simulations/digital-wallet-token-requests.js +13 -0
- package/dist/esm/resources/simulations/digital-wallet-token-requests.js.map +1 -0
- package/dist/esm/resources/simulations/documents.d.ts +23 -0
- package/dist/esm/resources/simulations/documents.d.ts.map +1 -0
- package/dist/esm/resources/simulations/documents.js +12 -0
- package/dist/esm/resources/simulations/documents.js.map +1 -0
- package/dist/esm/resources/simulations/inbound-wire-drawdown-requests.d.ts +106 -0
- package/dist/esm/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -0
- package/dist/esm/resources/simulations/inbound-wire-drawdown-requests.js +15 -0
- package/dist/esm/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -0
- package/dist/esm/resources/simulations/index.d.ts +38 -0
- package/dist/esm/resources/simulations/index.d.ts.map +1 -0
- package/dist/esm/resources/simulations/index.js +18 -0
- package/dist/esm/resources/simulations/index.js.map +1 -0
- package/dist/esm/resources/simulations/interest-payments.d.ts +1272 -0
- package/dist/esm/resources/simulations/interest-payments.d.ts.map +1 -0
- package/dist/esm/resources/simulations/interest-payments.js +13 -0
- package/dist/esm/resources/simulations/interest-payments.js.map +1 -0
- package/dist/esm/resources/simulations/programs.d.ts +25 -0
- package/dist/esm/resources/simulations/programs.d.ts.map +1 -0
- package/dist/esm/resources/simulations/programs.js +14 -0
- package/dist/esm/resources/simulations/programs.js.map +1 -0
- package/dist/esm/resources/simulations/real-time-payments-transfers.d.ts +1782 -0
- package/dist/esm/resources/simulations/real-time-payments-transfers.d.ts.map +1 -0
- package/dist/esm/resources/simulations/real-time-payments-transfers.js +24 -0
- package/dist/esm/resources/simulations/real-time-payments-transfers.js.map +1 -0
- package/dist/esm/resources/simulations/simulations.d.ts +74 -0
- package/dist/esm/resources/simulations/simulations.d.ts.map +1 -0
- package/dist/esm/resources/simulations/simulations.js +56 -0
- package/dist/esm/resources/simulations/simulations.js.map +1 -0
- package/dist/esm/resources/simulations/wire-transfers.d.ts +1338 -0
- package/dist/esm/resources/simulations/wire-transfers.d.ts.map +1 -0
- package/dist/esm/resources/simulations/wire-transfers.js +12 -0
- package/dist/esm/resources/simulations/wire-transfers.js.map +1 -0
- package/dist/esm/resources/transactions.d.ts +1326 -0
- package/dist/esm/resources/transactions.d.ts.map +1 -0
- package/dist/esm/resources/transactions.js +24 -0
- package/dist/esm/resources/transactions.js.map +1 -0
- package/dist/esm/resources/wire-drawdown-requests.d.ts +160 -0
- package/dist/esm/resources/wire-drawdown-requests.d.ts.map +1 -0
- package/dist/esm/resources/wire-drawdown-requests.js +30 -0
- package/dist/esm/resources/wire-drawdown-requests.js.map +1 -0
- package/dist/esm/resources/wire-transfers.d.ts +352 -0
- package/dist/esm/resources/wire-transfers.d.ts.map +1 -0
- package/dist/esm/resources/wire-transfers.js +59 -0
- package/dist/esm/resources/wire-transfers.js.map +1 -0
- package/dist/esm/streaming.d.ts +12 -0
- package/dist/esm/streaming.d.ts.map +1 -0
- package/dist/esm/streaming.js +150 -0
- package/dist/esm/streaming.js.map +1 -0
- package/dist/esm/uploads.d.ts +24 -0
- package/dist/esm/uploads.d.ts.map +1 -0
- package/dist/esm/uploads.js +61 -0
- package/dist/esm/uploads.js.map +1 -0
- package/dist/esm/version.d.ts +2 -0
- package/dist/esm/version.d.ts.map +1 -0
- package/dist/esm/version.js +2 -0
- package/dist/esm/version.js.map +1 -0
- package/error.ts +29 -29
- package/index.ts +46 -7
- package/package.json +85 -5
- package/pagination.ts +4 -1
- package/resources/account-numbers.ts +14 -5
- package/resources/account-statements.ts +12 -5
- package/resources/account-transfers.ts +13 -5
- package/resources/accounts.ts +14 -5
- package/resources/ach-prenotifications.ts +13 -5
- package/resources/ach-transfers.ts +13 -6
- package/resources/balance-lookups.ts +6 -0
- package/resources/bookkeeping-accounts.ts +13 -5
- package/resources/bookkeeping-entries.ts +12 -5
- package/resources/bookkeeping-entry-sets.ts +20 -14
- package/resources/card-disputes.ts +13 -5
- package/resources/card-profiles.ts +13 -5
- package/resources/cards.ts +17 -7
- package/resources/check-deposits.ts +13 -5
- package/resources/check-transfers.ts +91 -82
- package/resources/declined-transactions.ts +12 -5
- package/resources/digital-wallet-tokens.ts +12 -5
- package/resources/documents.ts +14 -106
- package/resources/entities/entities.ts +349 -335
- package/resources/entities/index.ts +2 -1
- package/resources/entities/supplemental-documents.ts +8 -0
- package/resources/event-subscriptions.ts +13 -4
- package/resources/events.ts +12 -5
- package/resources/exports.ts +13 -5
- package/resources/external-accounts.ts +14 -5
- package/resources/files.ts +23 -10
- package/resources/groups.ts +10 -5
- package/resources/inbound-ach-transfer-returns.ts +8 -0
- package/resources/inbound-wire-drawdown-requests.ts +12 -5
- package/resources/limits.ts +9 -0
- package/resources/oauth-connections.ts +12 -5
- package/resources/pending-transactions.ts +17 -10
- package/resources/programs.ts +12 -5
- package/resources/real-time-decisions.ts +39 -33
- package/resources/real-time-payments-transfers.ts +30 -22
- package/resources/routing-numbers.ts +7 -0
- package/resources/simulations/account-statements.ts +5 -0
- package/resources/simulations/ach-transfers.ts +1372 -1331
- package/resources/simulations/card-disputes.ts +5 -0
- package/resources/simulations/card-refunds.ts +5 -0
- package/resources/simulations/cards.ts +530 -523
- package/resources/simulations/check-transfers.ts +5 -0
- package/resources/simulations/digital-wallet-token-requests.ts +6 -0
- package/resources/simulations/documents.ts +5 -0
- package/resources/simulations/inbound-wire-drawdown-requests.ts +5 -0
- package/resources/simulations/index.ts +23 -10
- package/resources/simulations/interest-payments.ts +145 -104
- package/resources/simulations/programs.ts +5 -0
- package/resources/simulations/real-time-payments-transfers.ts +1373 -1331
- package/resources/simulations/simulations.ts +55 -0
- package/resources/simulations/wire-transfers.ts +145 -104
- package/resources/transactions.ts +150 -107
- package/resources/wire-drawdown-requests.ts +13 -5
- package/resources/wire-transfers.ts +13 -5
- package/streaming.ts +3 -1
- package/uploads.ts +81 -0
- package/version.ts +1 -1
- package/.eslintrc.js +0 -10
- package/.prettierignore +0 -1
- package/.prettierrc +0 -6
- package/.release-please-manifest.json +0 -3
- package/.stats.yml +0 -1
- package/api.md +0 -576
- package/bin/check-release-environment +0 -25
- package/bin/check-test-server +0 -50
- package/bin/publish-npm +0 -6
- package/build +0 -12
- package/dist/cjs/examples/api-error.d.ts +0 -3
- package/dist/cjs/examples/api-error.d.ts.map +0 -1
- package/dist/cjs/examples/api-error.js +0 -92
- package/dist/cjs/examples/api-error.js.map +0 -1
- package/dist/cjs/fetch-polyfill.d.ts +0 -6
- package/dist/cjs/fetch-polyfill.d.ts.map +0 -1
- package/dist/cjs/fetch-polyfill.js +0 -57
- package/dist/cjs/fetch-polyfill.js.map +0 -1
- package/dist/cjs/tests/api-resources/account-numbers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/account-numbers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/account-numbers.test.js +0 -101
- package/dist/cjs/tests/api-resources/account-numbers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/account-statements.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/account-statements.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/account-statements.test.js +0 -88
- package/dist/cjs/tests/api-resources/account-statements.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/account-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/account-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/account-transfers.test.js +0 -133
- package/dist/cjs/tests/api-resources/account-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/accounts.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/accounts.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/accounts.test.js +0 -118
- package/dist/cjs/tests/api-resources/accounts.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js +0 -113
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/ach-transfers.test.js +0 -145
- package/dist/cjs/tests/api-resources/ach-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/balance-lookups.test.js +0 -55
- package/dist/cjs/tests/api-resources/balance-lookups.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js +0 -78
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js +0 -65
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js +0 -66
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/card-disputes.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/card-disputes.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/card-disputes.test.js +0 -102
- package/dist/cjs/tests/api-resources/card-disputes.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/card-profiles.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/card-profiles.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/card-profiles.test.js +0 -106
- package/dist/cjs/tests/api-resources/card-profiles.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/cards.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/cards.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/cards.test.js +0 -116
- package/dist/cjs/tests/api-resources/cards.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/check-deposits.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/check-deposits.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/check-deposits.test.js +0 -110
- package/dist/cjs/tests/api-resources/check-deposits.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/check-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/check-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/check-transfers.test.js +0 -159
- package/dist/cjs/tests/api-resources/check-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/declined-transactions.test.js +0 -91
- package/dist/cjs/tests/api-resources/declined-transactions.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js +0 -90
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/documents.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/documents.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/documents.test.js +0 -93
- package/dist/cjs/tests/api-resources/documents.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/entities/entities.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/entities/entities.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/entities/entities.test.js +0 -289
- package/dist/cjs/tests/api-resources/entities/entities.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js +0 -68
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js +0 -99
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/events.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/events.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/events.test.js +0 -87
- package/dist/cjs/tests/api-resources/events.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/exports.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/exports.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/exports.test.js +0 -101
- package/dist/cjs/tests/api-resources/exports.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/external-accounts.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/external-accounts.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/external-accounts.test.js +0 -99
- package/dist/cjs/tests/api-resources/external-accounts.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/files.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/files.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/files.test.js +0 -104
- package/dist/cjs/tests/api-resources/files.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/groups.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/groups.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/groups.test.js +0 -55
- package/dist/cjs/tests/api-resources/groups.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js +0 -94
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js +0 -80
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/limits.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/limits.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/limits.test.js +0 -97
- package/dist/cjs/tests/api-resources/limits.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/oauth-connections.test.js +0 -75
- package/dist/cjs/tests/api-resources/oauth-connections.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/pending-transactions.test.js +0 -93
- package/dist/cjs/tests/api-resources/pending-transactions.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/programs.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/programs.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/programs.test.js +0 -73
- package/dist/cjs/tests/api-resources/programs.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js +0 -61
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js +0 -113
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/routing-numbers.test.js +0 -56
- package/dist/cjs/tests/api-resources/routing-numbers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js +0 -52
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js +0 -61
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js +0 -86
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js +0 -57
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/cards.test.js +0 -72
- package/dist/cjs/tests/api-resources/simulations/cards.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js +0 -87
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js +0 -92
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js +0 -52
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/documents.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js +0 -82
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js +0 -58
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/programs.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/programs.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/programs.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js +0 -70
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js +0 -71
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/transactions.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/transactions.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/transactions.test.js +0 -92
- package/dist/cjs/tests/api-resources/transactions.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js +0 -107
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/wire-transfers.test.js +0 -170
- package/dist/cjs/tests/api-resources/wire-transfers.test.js.map +0 -1
- package/dist/cjs/tests/form.test.d.ts +0 -2
- package/dist/cjs/tests/form.test.d.ts.map +0 -1
- package/dist/cjs/tests/form.test.js.map +0 -1
- package/dist/cjs/tests/index.test.d.ts +0 -2
- package/dist/cjs/tests/index.test.d.ts.map +0 -1
- package/dist/cjs/tests/index.test.js +0 -113
- package/dist/cjs/tests/index.test.js.map +0 -1
- package/dist/cjs/tests/responses.test.d.ts +0 -2
- package/dist/cjs/tests/responses.test.d.ts.map +0 -1
- package/dist/cjs/tests/responses.test.js +0 -60
- package/dist/cjs/tests/responses.test.js.map +0 -1
- package/examples/api-error.ts +0 -21
- package/fetch-polyfill.ts +0 -69
- package/jest.config.js +0 -8
- package/release-please-config.json +0 -61
- package/tests/api-resources/account-numbers.test.ts +0 -64
- package/tests/api-resources/account-statements.test.ts +0 -51
- package/tests/api-resources/account-transfers.test.ts +0 -96
- package/tests/api-resources/accounts.test.ts +0 -81
- package/tests/api-resources/ach-prenotifications.test.ts +0 -74
- package/tests/api-resources/ach-transfers.test.ts +0 -106
- package/tests/api-resources/balance-lookups.test.ts +0 -18
- package/tests/api-resources/bookkeeping-accounts.test.ts +0 -38
- package/tests/api-resources/bookkeeping-entries.test.ts +0 -25
- package/tests/api-resources/bookkeeping-entry-sets.test.ts +0 -29
- package/tests/api-resources/card-disputes.test.ts +0 -65
- package/tests/api-resources/card-profiles.test.ts +0 -69
- package/tests/api-resources/cards.test.ts +0 -79
- package/tests/api-resources/check-deposits.test.ts +0 -71
- package/tests/api-resources/check-transfers.test.ts +0 -122
- package/tests/api-resources/declined-transactions.test.ts +0 -54
- package/tests/api-resources/digital-wallet-tokens.test.ts +0 -51
- package/tests/api-resources/documents.test.ts +0 -52
- package/tests/api-resources/entities/entities.test.ts +0 -249
- package/tests/api-resources/entities/supplemental-documents.test.ts +0 -31
- package/tests/api-resources/event-subscriptions.test.ts +0 -59
- package/tests/api-resources/events.test.ts +0 -50
- package/tests/api-resources/exports.test.ts +0 -64
- package/tests/api-resources/external-accounts.test.ts +0 -62
- package/tests/api-resources/files.test.ts +0 -67
- package/tests/api-resources/groups.test.ts +0 -18
- package/tests/api-resources/inbound-ach-transfer-returns.test.ts +0 -57
- package/tests/api-resources/inbound-wire-drawdown-requests.test.ts +0 -43
- package/tests/api-resources/limits.test.ts +0 -60
- package/tests/api-resources/oauth-connections.test.ts +0 -38
- package/tests/api-resources/pending-transactions.test.ts +0 -54
- package/tests/api-resources/programs.test.ts +0 -36
- package/tests/api-resources/real-time-decisions.test.ts +0 -24
- package/tests/api-resources/real-time-payments-transfers.test.ts +0 -76
- package/tests/api-resources/routing-numbers.test.ts +0 -19
- package/tests/api-resources/simulations/account-statements.test.ts +0 -15
- package/tests/api-resources/simulations/account-transfers.test.ts +0 -24
- package/tests/api-resources/simulations/ach-transfers.test.ts +0 -46
- package/tests/api-resources/simulations/card-disputes.test.ts +0 -20
- package/tests/api-resources/simulations/card-refunds.test.ts +0 -15
- package/tests/api-resources/simulations/cards.test.ts +0 -35
- package/tests/api-resources/simulations/check-deposits.test.ts +0 -50
- package/tests/api-resources/simulations/check-transfers.test.ts +0 -47
- package/tests/api-resources/simulations/digital-wallet-token-requests.test.ts +0 -15
- package/tests/api-resources/simulations/documents.test.ts +0 -15
- package/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.ts +0 -45
- package/tests/api-resources/simulations/interest-payments.test.ts +0 -15
- package/tests/api-resources/simulations/programs.test.ts +0 -15
- package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +0 -33
- package/tests/api-resources/simulations/wire-transfers.test.ts +0 -34
- package/tests/api-resources/transactions.test.ts +0 -53
- package/tests/api-resources/wire-drawdown-requests.test.ts +0 -70
- package/tests/api-resources/wire-transfers.test.ts +0 -133
- package/tests/form.test.ts +0 -27
- package/tests/index.test.ts +0 -83
- package/tests/responses.test.ts +0 -25
- package/tsconfig.cjs.json +0 -8
- package/tsconfig.json +0 -39
- package/typings/digest-fetch/index.d.ts +0 -33
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import * as Core from '~/core';
|
|
4
4
|
import { APIResource } from '~/resource';
|
|
5
5
|
import { isRequestOptions } from '~/core';
|
|
6
|
+
import * as API from './';
|
|
6
7
|
import { Page, PageParams } from '~/pagination';
|
|
7
8
|
|
|
8
9
|
export class Transactions extends APIResource {
|
|
@@ -36,6 +37,11 @@ export class TransactionsPage extends Page<Transaction> {}
|
|
|
36
37
|
* account. They're the equivalent of line items on your bank statement.
|
|
37
38
|
*/
|
|
38
39
|
export interface Transaction {
|
|
40
|
+
/**
|
|
41
|
+
* The Transaction identifier.
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
|
|
39
45
|
/**
|
|
40
46
|
* The identifier for the Account the Transaction belongs to.
|
|
41
47
|
*/
|
|
@@ -67,11 +73,6 @@ export interface Transaction {
|
|
|
67
73
|
*/
|
|
68
74
|
description: string;
|
|
69
75
|
|
|
70
|
-
/**
|
|
71
|
-
* The Transaction identifier.
|
|
72
|
-
*/
|
|
73
|
-
id: string;
|
|
74
|
-
|
|
75
76
|
/**
|
|
76
77
|
* The identifier for the route this Transaction came through. Routes are things
|
|
77
78
|
* like cards and ACH details.
|
|
@@ -166,13 +167,14 @@ export namespace Transaction {
|
|
|
166
167
|
| 'ach_transfer_return'
|
|
167
168
|
| 'card_dispute_acceptance'
|
|
168
169
|
| 'card_refund'
|
|
169
|
-
| 'card_settlement'
|
|
170
170
|
| 'card_revenue_payment'
|
|
171
|
+
| 'card_settlement'
|
|
171
172
|
| 'check_deposit_acceptance'
|
|
172
173
|
| 'check_deposit_return'
|
|
174
|
+
| 'check_transfer_deposit'
|
|
173
175
|
| 'check_transfer_intention'
|
|
174
|
-
| 'check_transfer_return'
|
|
175
176
|
| 'check_transfer_rejection'
|
|
177
|
+
| 'check_transfer_return'
|
|
176
178
|
| 'check_transfer_stop_payment_request'
|
|
177
179
|
| 'fee_payment'
|
|
178
180
|
| 'inbound_ach_transfer'
|
|
@@ -180,8 +182,8 @@ export namespace Transaction {
|
|
|
180
182
|
| 'inbound_check'
|
|
181
183
|
| 'inbound_international_ach_transfer'
|
|
182
184
|
| 'inbound_real_time_payments_transfer_confirmation'
|
|
183
|
-
| 'inbound_wire_drawdown_payment_reversal'
|
|
184
185
|
| 'inbound_wire_drawdown_payment'
|
|
186
|
+
| 'inbound_wire_drawdown_payment_reversal'
|
|
185
187
|
| 'inbound_wire_reversal'
|
|
186
188
|
| 'inbound_wire_transfer'
|
|
187
189
|
| 'interest_payment'
|
|
@@ -204,6 +206,12 @@ export namespace Transaction {
|
|
|
204
206
|
*/
|
|
205
207
|
check_deposit_return: Source.CheckDepositReturn | null;
|
|
206
208
|
|
|
209
|
+
/**
|
|
210
|
+
* A Check Transfer Deposit object. This field will be present in the JSON response
|
|
211
|
+
* if and only if `category` is equal to `check_transfer_deposit`.
|
|
212
|
+
*/
|
|
213
|
+
check_transfer_deposit: Source.CheckTransferDeposit | null;
|
|
214
|
+
|
|
207
215
|
/**
|
|
208
216
|
* A Check Transfer Intention object. This field will be present in the JSON
|
|
209
217
|
* response if and only if `category` is equal to `check_transfer_intention`.
|
|
@@ -438,7 +446,6 @@ export namespace Transaction {
|
|
|
438
446
|
| 'returned_per_odfi_request'
|
|
439
447
|
| 'limited_participation_dfi'
|
|
440
448
|
| 'incorrectly_coded_outbound_international_payment'
|
|
441
|
-
| 'other'
|
|
442
449
|
| 'account_sold_to_another_dfi'
|
|
443
450
|
| 'addenda_error'
|
|
444
451
|
| 'beneficiary_or_account_holder_deceased'
|
|
@@ -528,6 +535,11 @@ export namespace Transaction {
|
|
|
528
535
|
* only if `category` is equal to `card_refund`.
|
|
529
536
|
*/
|
|
530
537
|
export interface CardRefund {
|
|
538
|
+
/**
|
|
539
|
+
* The Card Refund identifier.
|
|
540
|
+
*/
|
|
541
|
+
id: string;
|
|
542
|
+
|
|
531
543
|
/**
|
|
532
544
|
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
533
545
|
* for example, this is cents.
|
|
@@ -540,11 +552,6 @@ export namespace Transaction {
|
|
|
540
552
|
*/
|
|
541
553
|
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
542
554
|
|
|
543
|
-
/**
|
|
544
|
-
* The Card Refund identifier.
|
|
545
|
-
*/
|
|
546
|
-
id: string;
|
|
547
|
-
|
|
548
555
|
/**
|
|
549
556
|
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
550
557
|
* is transacting with.
|
|
@@ -583,11 +590,49 @@ export namespace Transaction {
|
|
|
583
590
|
type: 'card_refund';
|
|
584
591
|
}
|
|
585
592
|
|
|
593
|
+
/**
|
|
594
|
+
* A Card Revenue Payment object. This field will be present in the JSON response
|
|
595
|
+
* if and only if `category` is equal to `card_revenue_payment`.
|
|
596
|
+
*/
|
|
597
|
+
export interface CardRevenuePayment {
|
|
598
|
+
/**
|
|
599
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
600
|
+
* example, this is cents.
|
|
601
|
+
*/
|
|
602
|
+
amount: number;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
|
|
606
|
+
* currency.
|
|
607
|
+
*/
|
|
608
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* The end of the period for which this transaction paid interest.
|
|
612
|
+
*/
|
|
613
|
+
period_end: string;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* The start of the period for which this transaction paid interest.
|
|
617
|
+
*/
|
|
618
|
+
period_start: string;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* The account the card belonged to.
|
|
622
|
+
*/
|
|
623
|
+
transacted_on_account_id: string | null;
|
|
624
|
+
}
|
|
625
|
+
|
|
586
626
|
/**
|
|
587
627
|
* A Card Settlement object. This field will be present in the JSON response if and
|
|
588
628
|
* only if `category` is equal to `card_settlement`.
|
|
589
629
|
*/
|
|
590
630
|
export interface CardSettlement {
|
|
631
|
+
/**
|
|
632
|
+
* The Card Settlement identifier.
|
|
633
|
+
*/
|
|
634
|
+
id: string;
|
|
635
|
+
|
|
591
636
|
/**
|
|
592
637
|
* The amount in the minor unit of the transaction's settlement currency. For
|
|
593
638
|
* dollars, for example, this is cents.
|
|
@@ -606,11 +651,6 @@ export namespace Transaction {
|
|
|
606
651
|
*/
|
|
607
652
|
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
608
653
|
|
|
609
|
-
/**
|
|
610
|
-
* The Card Settlement identifier.
|
|
611
|
-
*/
|
|
612
|
-
id: string;
|
|
613
|
-
|
|
614
654
|
/**
|
|
615
655
|
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
616
656
|
* is transacting with.
|
|
@@ -665,39 +705,6 @@ export namespace Transaction {
|
|
|
665
705
|
type: 'card_settlement';
|
|
666
706
|
}
|
|
667
707
|
|
|
668
|
-
/**
|
|
669
|
-
* A Card Revenue Payment object. This field will be present in the JSON response
|
|
670
|
-
* if and only if `category` is equal to `card_revenue_payment`.
|
|
671
|
-
*/
|
|
672
|
-
export interface CardRevenuePayment {
|
|
673
|
-
/**
|
|
674
|
-
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
675
|
-
* example, this is cents.
|
|
676
|
-
*/
|
|
677
|
-
amount: number;
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
|
|
681
|
-
* currency.
|
|
682
|
-
*/
|
|
683
|
-
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* The end of the period for which this transaction paid interest.
|
|
687
|
-
*/
|
|
688
|
-
period_end: string;
|
|
689
|
-
|
|
690
|
-
/**
|
|
691
|
-
* The start of the period for which this transaction paid interest.
|
|
692
|
-
*/
|
|
693
|
-
period_start: string;
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* The account the card belonged to.
|
|
697
|
-
*/
|
|
698
|
-
transacted_on_account_id: string | null;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
708
|
/**
|
|
702
709
|
* A Check Deposit Acceptance object. This field will be present in the JSON
|
|
703
710
|
* response if and only if `category` is equal to `check_deposit_acceptance`.
|
|
@@ -792,6 +799,35 @@ export namespace Transaction {
|
|
|
792
799
|
transaction_id: string;
|
|
793
800
|
}
|
|
794
801
|
|
|
802
|
+
/**
|
|
803
|
+
* A Check Transfer Deposit object. This field will be present in the JSON response
|
|
804
|
+
* if and only if `category` is equal to `check_transfer_deposit`.
|
|
805
|
+
*/
|
|
806
|
+
export interface CheckTransferDeposit {
|
|
807
|
+
/**
|
|
808
|
+
* The identifier of the API File object containing an image of the back of the
|
|
809
|
+
* deposited check.
|
|
810
|
+
*/
|
|
811
|
+
back_image_file_id: string | null;
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* When the check was deposited.
|
|
815
|
+
*/
|
|
816
|
+
deposited_at: string;
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* The identifier of the API File object containing an image of the front of the
|
|
820
|
+
* deposited check.
|
|
821
|
+
*/
|
|
822
|
+
front_image_file_id: string | null;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* A constant representing the object's type. For this resource it will always be
|
|
826
|
+
* `check_transfer_deposit`.
|
|
827
|
+
*/
|
|
828
|
+
type: 'check_transfer_deposit';
|
|
829
|
+
}
|
|
830
|
+
|
|
795
831
|
/**
|
|
796
832
|
* A Check Transfer Intention object. This field will be present in the JSON
|
|
797
833
|
* response if and only if `category` is equal to `check_transfer_intention`.
|
|
@@ -800,12 +836,12 @@ export namespace Transaction {
|
|
|
800
836
|
/**
|
|
801
837
|
* The city of the check's destination.
|
|
802
838
|
*/
|
|
803
|
-
address_city: string;
|
|
839
|
+
address_city: string | null;
|
|
804
840
|
|
|
805
841
|
/**
|
|
806
842
|
* The street address of the check's destination.
|
|
807
843
|
*/
|
|
808
|
-
address_line1: string;
|
|
844
|
+
address_line1: string | null;
|
|
809
845
|
|
|
810
846
|
/**
|
|
811
847
|
* The second line of the address of the check's destination.
|
|
@@ -815,12 +851,12 @@ export namespace Transaction {
|
|
|
815
851
|
/**
|
|
816
852
|
* The state of the check's destination.
|
|
817
853
|
*/
|
|
818
|
-
address_state: string;
|
|
854
|
+
address_state: string | null;
|
|
819
855
|
|
|
820
856
|
/**
|
|
821
857
|
* The postal code of the check's destination.
|
|
822
858
|
*/
|
|
823
|
-
address_zip: string;
|
|
859
|
+
address_zip: string | null;
|
|
824
860
|
|
|
825
861
|
/**
|
|
826
862
|
* The transfer amount in USD cents.
|
|
@@ -836,7 +872,7 @@ export namespace Transaction {
|
|
|
836
872
|
/**
|
|
837
873
|
* The name that will be printed on the check.
|
|
838
874
|
*/
|
|
839
|
-
recipient_name: string;
|
|
875
|
+
recipient_name: string | null;
|
|
840
876
|
|
|
841
877
|
/**
|
|
842
878
|
* The identifier of the Check Transfer with which this is associated.
|
|
@@ -844,6 +880,17 @@ export namespace Transaction {
|
|
|
844
880
|
transfer_id: string;
|
|
845
881
|
}
|
|
846
882
|
|
|
883
|
+
/**
|
|
884
|
+
* A Check Transfer Rejection object. This field will be present in the JSON
|
|
885
|
+
* response if and only if `category` is equal to `check_transfer_rejection`.
|
|
886
|
+
*/
|
|
887
|
+
export interface CheckTransferRejection {
|
|
888
|
+
/**
|
|
889
|
+
* The identifier of the Check Transfer that led to this Transaction.
|
|
890
|
+
*/
|
|
891
|
+
transfer_id: string;
|
|
892
|
+
}
|
|
893
|
+
|
|
847
894
|
/**
|
|
848
895
|
* A Check Transfer Return object. This field will be present in the JSON response
|
|
849
896
|
* if and only if `category` is equal to `check_transfer_return`.
|
|
@@ -877,17 +924,6 @@ export namespace Transaction {
|
|
|
877
924
|
transfer_id: string;
|
|
878
925
|
}
|
|
879
926
|
|
|
880
|
-
/**
|
|
881
|
-
* A Check Transfer Rejection object. This field will be present in the JSON
|
|
882
|
-
* response if and only if `category` is equal to `check_transfer_rejection`.
|
|
883
|
-
*/
|
|
884
|
-
export interface CheckTransferRejection {
|
|
885
|
-
/**
|
|
886
|
-
* The identifier of the Check Transfer that led to this Transaction.
|
|
887
|
-
*/
|
|
888
|
-
transfer_id: string;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
927
|
/**
|
|
892
928
|
* A Check Transfer Stop Payment Request object. This field will be present in the
|
|
893
929
|
* JSON response if and only if `category` is equal to
|
|
@@ -1118,6 +1154,42 @@ export namespace Transaction {
|
|
|
1118
1154
|
transaction_identification: string;
|
|
1119
1155
|
}
|
|
1120
1156
|
|
|
1157
|
+
/**
|
|
1158
|
+
* A Inbound Wire Drawdown Payment object. This field will be present in the JSON
|
|
1159
|
+
* response if and only if `category` is equal to `inbound_wire_drawdown_payment`.
|
|
1160
|
+
*/
|
|
1161
|
+
export interface InboundWireDrawdownPayment {
|
|
1162
|
+
/**
|
|
1163
|
+
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
1164
|
+
* example, this is cents.
|
|
1165
|
+
*/
|
|
1166
|
+
amount: number;
|
|
1167
|
+
|
|
1168
|
+
beneficiary_address_line1: string | null;
|
|
1169
|
+
|
|
1170
|
+
beneficiary_address_line2: string | null;
|
|
1171
|
+
|
|
1172
|
+
beneficiary_address_line3: string | null;
|
|
1173
|
+
|
|
1174
|
+
beneficiary_name: string | null;
|
|
1175
|
+
|
|
1176
|
+
beneficiary_reference: string | null;
|
|
1177
|
+
|
|
1178
|
+
description: string;
|
|
1179
|
+
|
|
1180
|
+
input_message_accountability_data: string | null;
|
|
1181
|
+
|
|
1182
|
+
originator_address_line1: string | null;
|
|
1183
|
+
|
|
1184
|
+
originator_address_line2: string | null;
|
|
1185
|
+
|
|
1186
|
+
originator_address_line3: string | null;
|
|
1187
|
+
|
|
1188
|
+
originator_name: string | null;
|
|
1189
|
+
|
|
1190
|
+
originator_to_beneficiary_information: string | null;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1121
1193
|
/**
|
|
1122
1194
|
* A Inbound Wire Drawdown Payment Reversal object. This field will be present in
|
|
1123
1195
|
* the JSON response if and only if `category` is equal to
|
|
@@ -1175,42 +1247,6 @@ export namespace Transaction {
|
|
|
1175
1247
|
previous_message_input_source: string;
|
|
1176
1248
|
}
|
|
1177
1249
|
|
|
1178
|
-
/**
|
|
1179
|
-
* A Inbound Wire Drawdown Payment object. This field will be present in the JSON
|
|
1180
|
-
* response if and only if `category` is equal to `inbound_wire_drawdown_payment`.
|
|
1181
|
-
*/
|
|
1182
|
-
export interface InboundWireDrawdownPayment {
|
|
1183
|
-
/**
|
|
1184
|
-
* The amount in the minor unit of the transaction's currency. For dollars, for
|
|
1185
|
-
* example, this is cents.
|
|
1186
|
-
*/
|
|
1187
|
-
amount: number;
|
|
1188
|
-
|
|
1189
|
-
beneficiary_address_line1: string | null;
|
|
1190
|
-
|
|
1191
|
-
beneficiary_address_line2: string | null;
|
|
1192
|
-
|
|
1193
|
-
beneficiary_address_line3: string | null;
|
|
1194
|
-
|
|
1195
|
-
beneficiary_name: string | null;
|
|
1196
|
-
|
|
1197
|
-
beneficiary_reference: string | null;
|
|
1198
|
-
|
|
1199
|
-
description: string;
|
|
1200
|
-
|
|
1201
|
-
input_message_accountability_data: string | null;
|
|
1202
|
-
|
|
1203
|
-
originator_address_line1: string | null;
|
|
1204
|
-
|
|
1205
|
-
originator_address_line2: string | null;
|
|
1206
|
-
|
|
1207
|
-
originator_address_line3: string | null;
|
|
1208
|
-
|
|
1209
|
-
originator_name: string | null;
|
|
1210
|
-
|
|
1211
|
-
originator_to_beneficiary_information: string | null;
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
1250
|
/**
|
|
1215
1251
|
* A Inbound Wire Reversal object. This field will be present in the JSON response
|
|
1216
1252
|
* if and only if `category` is equal to `inbound_wire_reversal`.
|
|
@@ -1514,13 +1550,14 @@ export namespace TransactionListParams {
|
|
|
1514
1550
|
| 'ach_transfer_return'
|
|
1515
1551
|
| 'card_dispute_acceptance'
|
|
1516
1552
|
| 'card_refund'
|
|
1517
|
-
| 'card_settlement'
|
|
1518
1553
|
| 'card_revenue_payment'
|
|
1554
|
+
| 'card_settlement'
|
|
1519
1555
|
| 'check_deposit_acceptance'
|
|
1520
1556
|
| 'check_deposit_return'
|
|
1557
|
+
| 'check_transfer_deposit'
|
|
1521
1558
|
| 'check_transfer_intention'
|
|
1522
|
-
| 'check_transfer_return'
|
|
1523
1559
|
| 'check_transfer_rejection'
|
|
1560
|
+
| 'check_transfer_return'
|
|
1524
1561
|
| 'check_transfer_stop_payment_request'
|
|
1525
1562
|
| 'fee_payment'
|
|
1526
1563
|
| 'inbound_ach_transfer'
|
|
@@ -1528,8 +1565,8 @@ export namespace TransactionListParams {
|
|
|
1528
1565
|
| 'inbound_check'
|
|
1529
1566
|
| 'inbound_international_ach_transfer'
|
|
1530
1567
|
| 'inbound_real_time_payments_transfer_confirmation'
|
|
1531
|
-
| 'inbound_wire_drawdown_payment_reversal'
|
|
1532
1568
|
| 'inbound_wire_drawdown_payment'
|
|
1569
|
+
| 'inbound_wire_drawdown_payment_reversal'
|
|
1533
1570
|
| 'inbound_wire_reversal'
|
|
1534
1571
|
| 'inbound_wire_transfer'
|
|
1535
1572
|
| 'interest_payment'
|
|
@@ -1568,3 +1605,9 @@ export namespace TransactionListParams {
|
|
|
1568
1605
|
on_or_before?: string;
|
|
1569
1606
|
}
|
|
1570
1607
|
}
|
|
1608
|
+
|
|
1609
|
+
export namespace Transactions {
|
|
1610
|
+
export import Transaction = API.Transaction;
|
|
1611
|
+
export import TransactionsPage = API.TransactionsPage;
|
|
1612
|
+
export import TransactionListParams = API.TransactionListParams;
|
|
1613
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import * as Core from '~/core';
|
|
4
4
|
import { APIResource } from '~/resource';
|
|
5
5
|
import { isRequestOptions } from '~/core';
|
|
6
|
+
import * as API from './';
|
|
6
7
|
import { Page, PageParams } from '~/pagination';
|
|
7
8
|
|
|
8
9
|
export class WireDrawdownRequests extends APIResource {
|
|
@@ -53,6 +54,11 @@ export class WireDrawdownRequestsPage extends Page<WireDrawdownRequest> {}
|
|
|
53
54
|
* [support@increase.com](mailto:support@increase.com) to learn more.
|
|
54
55
|
*/
|
|
55
56
|
export interface WireDrawdownRequest {
|
|
57
|
+
/**
|
|
58
|
+
* The Wire drawdown request identifier.
|
|
59
|
+
*/
|
|
60
|
+
id: string;
|
|
61
|
+
|
|
56
62
|
/**
|
|
57
63
|
* The Account Number to which the recipient of this request is being requested to
|
|
58
64
|
* send funds.
|
|
@@ -76,11 +82,6 @@ export interface WireDrawdownRequest {
|
|
|
76
82
|
*/
|
|
77
83
|
fulfillment_transaction_id: string | null;
|
|
78
84
|
|
|
79
|
-
/**
|
|
80
|
-
* The Wire drawdown request identifier.
|
|
81
|
-
*/
|
|
82
|
-
id: string;
|
|
83
|
-
|
|
84
85
|
/**
|
|
85
86
|
* The message the recipient will see as part of the drawdown request.
|
|
86
87
|
*/
|
|
@@ -196,3 +197,10 @@ export interface WireDrawdownRequestCreateParams {
|
|
|
196
197
|
}
|
|
197
198
|
|
|
198
199
|
export interface WireDrawdownRequestListParams extends PageParams {}
|
|
200
|
+
|
|
201
|
+
export namespace WireDrawdownRequests {
|
|
202
|
+
export import WireDrawdownRequest = API.WireDrawdownRequest;
|
|
203
|
+
export import WireDrawdownRequestsPage = API.WireDrawdownRequestsPage;
|
|
204
|
+
export import WireDrawdownRequestCreateParams = API.WireDrawdownRequestCreateParams;
|
|
205
|
+
export import WireDrawdownRequestListParams = API.WireDrawdownRequestListParams;
|
|
206
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import * as Core from '~/core';
|
|
4
4
|
import { APIResource } from '~/resource';
|
|
5
5
|
import { isRequestOptions } from '~/core';
|
|
6
|
+
import * as API from './';
|
|
6
7
|
import { Page, PageParams } from '~/pagination';
|
|
7
8
|
|
|
8
9
|
export class WireTransfers extends APIResource {
|
|
@@ -79,6 +80,11 @@ export class WireTransfersPage extends Page<WireTransfer> {}
|
|
|
79
80
|
* accessible by Fedwire.
|
|
80
81
|
*/
|
|
81
82
|
export interface WireTransfer {
|
|
83
|
+
/**
|
|
84
|
+
* The wire transfer's identifier.
|
|
85
|
+
*/
|
|
86
|
+
id: string;
|
|
87
|
+
|
|
82
88
|
/**
|
|
83
89
|
* The Account to which the transfer belongs.
|
|
84
90
|
*/
|
|
@@ -143,11 +149,6 @@ export interface WireTransfer {
|
|
|
143
149
|
*/
|
|
144
150
|
external_account_id: string | null;
|
|
145
151
|
|
|
146
|
-
/**
|
|
147
|
-
* The wire transfer's identifier.
|
|
148
|
-
*/
|
|
149
|
-
id: string;
|
|
150
|
-
|
|
151
152
|
/**
|
|
152
153
|
* The message that will show on the recipient's bank statement.
|
|
153
154
|
*/
|
|
@@ -434,3 +435,10 @@ export namespace WireTransferListParams {
|
|
|
434
435
|
on_or_before?: string;
|
|
435
436
|
}
|
|
436
437
|
}
|
|
438
|
+
|
|
439
|
+
export namespace WireTransfers {
|
|
440
|
+
export import WireTransfer = API.WireTransfer;
|
|
441
|
+
export import WireTransfersPage = API.WireTransfersPage;
|
|
442
|
+
export import WireTransferCreateParams = API.WireTransferCreateParams;
|
|
443
|
+
export import WireTransferListParams = API.WireTransferListParams;
|
|
444
|
+
}
|
package/streaming.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Response } from '
|
|
1
|
+
import type { Response } from 'increase/_shims/fetch';
|
|
2
2
|
import { APIResponse, Headers, createResponseHeaders } from '~/core';
|
|
3
3
|
|
|
4
4
|
type ServerSentEvent = {
|
|
@@ -88,6 +88,8 @@ export class Stream<Item> implements AsyncIterable<Item>, APIResponse<Stream<Ite
|
|
|
88
88
|
let text;
|
|
89
89
|
if (chunk instanceof Buffer) {
|
|
90
90
|
text = chunk.toString();
|
|
91
|
+
} else if ((chunk as any) instanceof Uint8Array) {
|
|
92
|
+
text = Buffer.from(chunk).toString();
|
|
91
93
|
} else {
|
|
92
94
|
text = chunk;
|
|
93
95
|
}
|
package/uploads.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { Readable } from 'node:stream';
|
|
2
|
+
import type { RequestOptions } from './core';
|
|
3
|
+
import { type BodyInit } from 'increase/_shims/fetch';
|
|
4
|
+
import { FormData } from 'increase/_shims/formdata';
|
|
5
|
+
import { getMultipartRequestOptions } from 'increase/_shims/getMultipartRequestOptions';
|
|
6
|
+
import { isUploadable } from 'increase/_shims/uploadable';
|
|
7
|
+
import { toFile } from 'increase/_shims/toFile';
|
|
8
|
+
import { fileFromPath } from 'increase/_shims/fileFromPath';
|
|
9
|
+
|
|
10
|
+
export { toFile, fileFromPath };
|
|
11
|
+
|
|
12
|
+
type MultipartBody = {
|
|
13
|
+
__multipartBody__: Readable | BodyInit;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const isMultipartBody = (body: any): body is MultipartBody =>
|
|
17
|
+
typeof body === 'object' && body?.__multipartBody__ != null;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Returns a multipart/form-data request if any part of the given request body contains a File / Blob value.
|
|
21
|
+
* Otherwise returns the request as is.
|
|
22
|
+
*/
|
|
23
|
+
export const maybeMultipartFormRequestOptions = async <T extends {} = Record<string, unknown>>(
|
|
24
|
+
opts: RequestOptions<T>,
|
|
25
|
+
): Promise<RequestOptions<T | MultipartBody>> => {
|
|
26
|
+
if (!hasUploadableValue(opts.body)) return opts;
|
|
27
|
+
|
|
28
|
+
const form = await createForm(opts.body);
|
|
29
|
+
return getMultipartRequestOptions(form, opts);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const multipartFormRequestOptions = async <T extends {} = Record<string, unknown>>(
|
|
33
|
+
opts: RequestOptions<T>,
|
|
34
|
+
): Promise<RequestOptions<T | MultipartBody>> => {
|
|
35
|
+
const form = await createForm(opts.body);
|
|
36
|
+
return getMultipartRequestOptions(form, opts);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const createForm = async <T = Record<string, unknown>>(body: T | undefined): Promise<FormData> => {
|
|
40
|
+
const form = new FormData();
|
|
41
|
+
await Promise.all(Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value)));
|
|
42
|
+
return form;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const hasUploadableValue = (value: unknown): boolean => {
|
|
46
|
+
if (isUploadable(value)) return true;
|
|
47
|
+
if (Array.isArray(value)) return value.some(hasUploadableValue);
|
|
48
|
+
if (value && typeof value === 'object') {
|
|
49
|
+
for (const k in value) {
|
|
50
|
+
if (hasUploadableValue((value as any)[k])) return true;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return false;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const addFormValue = async (form: FormData, key: string, value: unknown): Promise<void> => {
|
|
57
|
+
if (value === undefined) return;
|
|
58
|
+
if (value == null) {
|
|
59
|
+
throw new TypeError(
|
|
60
|
+
`Received null for "${key}"; to pass null in FormData, you must use the string 'null'`,
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// TODO: make nested formats configurable
|
|
65
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
66
|
+
form.append(key, value);
|
|
67
|
+
} else if (isUploadable(value)) {
|
|
68
|
+
const file = await toFile(value);
|
|
69
|
+
form.append(key, file);
|
|
70
|
+
} else if (Array.isArray(value)) {
|
|
71
|
+
await Promise.all(value.map((entry) => addFormValue(form, key + '[]', entry)));
|
|
72
|
+
} else if (typeof value === 'object') {
|
|
73
|
+
await Promise.all(
|
|
74
|
+
Object.entries(value).map(([name, prop]) => addFormValue(form, `${key}[${name}]`, prop)),
|
|
75
|
+
);
|
|
76
|
+
} else {
|
|
77
|
+
throw new TypeError(
|
|
78
|
+
`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${value} instead`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
};
|
package/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.5.0'; // x-release-please-version
|
package/.eslintrc.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
plugins: ['@typescript-eslint', 'unused-imports', 'prettier'],
|
|
4
|
-
rules: {
|
|
5
|
-
'no-unused-vars': 'off',
|
|
6
|
-
'prettier/prettier': 'error',
|
|
7
|
-
'unused-imports/no-unused-imports': 'error',
|
|
8
|
-
},
|
|
9
|
-
root: true,
|
|
10
|
-
};
|
package/.prettierignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
CHANGELOG.md
|
package/.prettierrc
DELETED
package/.stats.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
configured_endpoints: 133
|