increase 0.3.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 +87 -0
- package/README.md +22 -8
- 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 +38 -227
- 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/documents.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/card-refunds.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/account-statements.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 +9 -70
- package/dist/cjs/core.d.ts.map +1 -1
- package/dist/cjs/core.js +57 -253
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/error.d.ts +72 -27
- package/dist/cjs/error.d.ts.map +1 -1
- package/dist/cjs/error.js +203 -81
- package/dist/cjs/error.js.map +1 -1
- package/dist/cjs/index.d.ts +68 -31
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +77 -80
- 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 +13 -24
- 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 +11 -24
- 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 +12 -24
- 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 +29 -29
- 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 +17 -29
- 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 +80 -41
- 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 +15 -8
- 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 +20 -27
- 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 +13 -30
- 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 +12 -67
- 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 +16 -122
- 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 +14 -25
- 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 +92 -132
- 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 +12 -52
- 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 +11 -24
- 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 +14 -181
- 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 +297 -1225
- 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 +8 -2
- package/dist/cjs/resources/entities/index.d.ts.map +1 -1
- package/dist/cjs/resources/entities/index.js +24 -1
- package/dist/cjs/resources/entities/index.js.map +1 -1
- package/dist/cjs/resources/entities/supplemental-documents.d.ts +42 -0
- package/dist/cjs/resources/entities/supplemental-documents.d.ts.map +1 -1
- package/dist/cjs/resources/entities/supplemental-documents.js +58 -1
- package/dist/cjs/resources/entities/supplemental-documents.js.map +1 -1
- package/dist/cjs/resources/event-subscriptions.d.ts +16 -8
- 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 +34 -103
- 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 +15 -90
- 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 +17 -14
- 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 +25 -49
- 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 +12 -4
- 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 +25 -94
- 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 -97
- 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 +35 -47
- 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 +1264 -1335
- 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 +8 -4
- 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 +449 -520
- 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 +29 -25
- 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 -9
- 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 +173 -265
- 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 +25 -0
- package/dist/cjs/resources/simulations/programs.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/programs.js +18 -0
- package/dist/cjs/resources/simulations/programs.js.map +1 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +1225 -1373
- 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 +42 -0
- package/dist/cjs/resources/simulations/simulations.d.ts.map +1 -1
- package/dist/cjs/resources/simulations/simulations.js +60 -0
- package/dist/cjs/resources/simulations/simulations.js.map +1 -1
- package/dist/cjs/resources/simulations/wire-transfers.d.ts +173 -265
- 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 +202 -365
- 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 +19 -12
- 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 +24 -36
- 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 +12 -0
- package/dist/cjs/streaming.d.ts.map +1 -0
- package/dist/cjs/streaming.js +284 -0
- package/dist/cjs/streaming.js.map +1 -0
- 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 +222 -54
- package/index.ts +71 -100
- package/package.json +85 -5
- package/pagination.ts +4 -1
- package/resources/account-numbers.ts +15 -28
- package/resources/account-statements.ts +13 -28
- package/resources/account-transfers.ts +14 -28
- package/resources/accounts.ts +33 -33
- package/resources/ach-prenotifications.ts +20 -34
- package/resources/ach-transfers.ts +85 -47
- package/resources/balance-lookups.ts +6 -0
- package/resources/bookkeeping-accounts.ts +18 -10
- package/resources/bookkeeping-entries.ts +12 -5
- package/resources/bookkeeping-entry-sets.ts +23 -31
- package/resources/card-disputes.ts +15 -34
- package/resources/card-profiles.ts +14 -79
- package/resources/cards.ts +18 -142
- package/resources/check-deposits.ts +16 -29
- package/resources/check-transfers.ts +101 -149
- package/resources/declined-transactions.ts +14 -65
- package/resources/digital-wallet-tokens.ts +13 -28
- package/resources/documents.ts +16 -185
- package/resources/entities/entities.ts +393 -1477
- package/resources/entities/index.ts +8 -2
- package/resources/entities/supplemental-documents.ts +54 -0
- package/resources/event-subscriptions.ts +18 -9
- package/resources/events.ts +40 -111
- package/resources/exports.ts +18 -104
- package/resources/external-accounts.ts +20 -16
- package/resources/files.ts +29 -56
- 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 +14 -5
- package/resources/oauth-connections.ts +12 -5
- package/resources/pending-transactions.ts +29 -114
- package/resources/programs.ts +12 -5
- package/resources/real-time-decisions.ts +39 -110
- package/resources/real-time-payments-transfers.ts +41 -55
- package/resources/routing-numbers.ts +7 -0
- package/resources/simulations/account-statements.ts +5 -0
- package/resources/simulations/ach-transfers.ts +1398 -1511
- package/resources/simulations/card-disputes.ts +9 -4
- package/resources/simulations/card-refunds.ts +5 -0
- package/resources/simulations/cards.ts +542 -635
- 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 +32 -27
- package/resources/simulations/index.ts +23 -9
- package/resources/simulations/interest-payments.ts +202 -327
- package/resources/simulations/programs.ts +31 -0
- package/resources/simulations/real-time-payments-transfers.ts +1400 -1591
- package/resources/simulations/simulations.ts +57 -0
- package/resources/simulations/wire-transfers.ts +202 -327
- package/resources/transactions.ts +235 -434
- package/resources/wire-drawdown-requests.ts +23 -15
- package/resources/wire-transfers.ts +28 -42
- package/streaming.ts +201 -0
- package/uploads.ts +81 -0
- package/version.ts +1 -1
- package/.eslintrc.js +0 -10
- package/.github/workflows/publish-npm.yml +0 -28
- package/.github/workflows/release-doctor.yml +0 -20
- package/.github/workflows/release.yml +0 -38
- package/.prettierignore +0 -1
- package/.prettierrc +0 -6
- package/.release-please-manifest.json +0 -3
- package/.stats.yml +0 -1
- package/api.md +0 -565
- 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 -102
- 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 -86
- 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 -132
- 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 -120
- 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 -121
- 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 -157
- 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 -58
- 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 -83
- 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 -68
- 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 -100
- 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 -124
- 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 -108
- 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 -161
- 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 -89
- 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 -88
- 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 -89
- 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 -357
- 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 -56
- 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 -103
- 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 -85
- 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 -105
- 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 -103
- 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 -103
- 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 -102
- 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 -91
- 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 -65
- 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 -115
- 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 -60
- 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.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 -90
- 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 -58
- 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 -78
- 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 -94
- 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/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 -75
- 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 -84
- 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 -110
- 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 -175
- 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 -108
- 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 -64
- package/tests/api-resources/account-numbers.test.ts +0 -65
- package/tests/api-resources/account-statements.test.ts +0 -49
- package/tests/api-resources/account-transfers.test.ts +0 -95
- package/tests/api-resources/accounts.test.ts +0 -83
- package/tests/api-resources/ach-prenotifications.test.ts +0 -82
- package/tests/api-resources/ach-transfers.test.ts +0 -118
- package/tests/api-resources/balance-lookups.test.ts +0 -21
- package/tests/api-resources/bookkeeping-accounts.test.ts +0 -43
- package/tests/api-resources/bookkeeping-entries.test.ts +0 -25
- package/tests/api-resources/bookkeeping-entry-sets.test.ts +0 -31
- package/tests/api-resources/card-disputes.test.ts +0 -63
- package/tests/api-resources/card-profiles.test.ts +0 -69
- package/tests/api-resources/cards.test.ts +0 -87
- package/tests/api-resources/check-deposits.test.ts +0 -69
- package/tests/api-resources/check-transfers.test.ts +0 -124
- package/tests/api-resources/declined-transactions.test.ts +0 -52
- package/tests/api-resources/digital-wallet-tokens.test.ts +0 -49
- package/tests/api-resources/documents.test.ts +0 -52
- package/tests/api-resources/entities/entities.test.ts +0 -320
- package/tests/api-resources/entities/supplemental-documents.test.ts +0 -19
- package/tests/api-resources/event-subscriptions.test.ts +0 -63
- package/tests/api-resources/events.test.ts +0 -48
- package/tests/api-resources/exports.test.ts +0 -68
- package/tests/api-resources/external-accounts.test.ts +0 -66
- package/tests/api-resources/files.test.ts +0 -66
- 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 -65
- package/tests/api-resources/oauth-connections.test.ts +0 -38
- package/tests/api-resources/pending-transactions.test.ts +0 -52
- package/tests/api-resources/programs.test.ts +0 -36
- package/tests/api-resources/real-time-decisions.test.ts +0 -28
- package/tests/api-resources/real-time-payments-transfers.test.ts +0 -78
- package/tests/api-resources/routing-numbers.test.ts +0 -23
- 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 -53
- package/tests/api-resources/simulations/card-disputes.test.ts +0 -21
- package/tests/api-resources/simulations/card-refunds.test.ts +0 -15
- package/tests/api-resources/simulations/cards.test.ts +0 -41
- 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 -57
- package/tests/api-resources/simulations/interest-payments.test.ts +0 -15
- package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +0 -38
- package/tests/api-resources/simulations/wire-transfers.test.ts +0 -47
- package/tests/api-resources/transactions.test.ts +0 -53
- package/tests/api-resources/wire-drawdown-requests.test.ts +0 -73
- package/tests/api-resources/wire-transfers.test.ts +0 -138
- package/tests/form.test.ts +0 -27
- package/tests/index.test.ts +0 -78
- 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
|
@@ -0,0 +1,931 @@
|
|
|
1
|
+
import * as Core from '../../core.js';
|
|
2
|
+
import { APIResource } from '../../resource.js';
|
|
3
|
+
import * as Transactions from '../../resources/transactions.js';
|
|
4
|
+
import * as Shared from '../../resources/shared.js';
|
|
5
|
+
import * as API from './index.js';
|
|
6
|
+
export declare class Cards extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Simulates a purchase authorization on a [Card](#cards). Depending on the balance
|
|
9
|
+
* available to the card and the `amount` submitted, the authorization activity
|
|
10
|
+
* will result in a [Pending Transaction](#pending-transactions) of type
|
|
11
|
+
* `card_authorization` or a [Declined Transaction](#declined-transactions) of type
|
|
12
|
+
* `card_decline`. You can pass either a Card id or a
|
|
13
|
+
* [Digital Wallet Token](#digital-wallet-tokens) id to simulate the two different
|
|
14
|
+
* ways purchases can be made.
|
|
15
|
+
*/
|
|
16
|
+
authorize(
|
|
17
|
+
body: CardAuthorizeParams,
|
|
18
|
+
options?: Core.RequestOptions,
|
|
19
|
+
): Promise<Core.APIResponse<CardAuthorizationSimulation>>;
|
|
20
|
+
/**
|
|
21
|
+
* Simulates the settlement of an authorization by a card acquirer. After a card
|
|
22
|
+
* authorization is created, the merchant will eventually send a settlement. This
|
|
23
|
+
* simulates that event, which may occur many days after the purchase in
|
|
24
|
+
* production. The amount settled can be different from the amount originally
|
|
25
|
+
* authorized, for example, when adding a tip to a restaurant bill.
|
|
26
|
+
*/
|
|
27
|
+
settlement(
|
|
28
|
+
body: CardSettlementParams,
|
|
29
|
+
options?: Core.RequestOptions,
|
|
30
|
+
): Promise<Core.APIResponse<Transactions.Transaction>>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The results of a Card Authorization simulation.
|
|
34
|
+
*/
|
|
35
|
+
export interface CardAuthorizationSimulation {
|
|
36
|
+
/**
|
|
37
|
+
* If the authorization attempt fails, this will contain the resulting
|
|
38
|
+
* [Declined Transaction](#declined-transactions) object. The Declined
|
|
39
|
+
* Transaction's `source` will be of `category: card_decline`.
|
|
40
|
+
*/
|
|
41
|
+
declined_transaction: CardAuthorizationSimulation.DeclinedTransaction | null;
|
|
42
|
+
/**
|
|
43
|
+
* If the authorization attempt succeeds, this will contain the resulting Pending
|
|
44
|
+
* Transaction object. The Pending Transaction's `source` will be of
|
|
45
|
+
* `category: card_authorization`.
|
|
46
|
+
*/
|
|
47
|
+
pending_transaction: CardAuthorizationSimulation.PendingTransaction | null;
|
|
48
|
+
/**
|
|
49
|
+
* A constant representing the object's type. For this resource it will always be
|
|
50
|
+
* `inbound_card_authorization_simulation_result`.
|
|
51
|
+
*/
|
|
52
|
+
type: 'inbound_card_authorization_simulation_result';
|
|
53
|
+
}
|
|
54
|
+
export declare namespace CardAuthorizationSimulation {
|
|
55
|
+
/**
|
|
56
|
+
* If the authorization attempt fails, this will contain the resulting
|
|
57
|
+
* [Declined Transaction](#declined-transactions) object. The Declined
|
|
58
|
+
* Transaction's `source` will be of `category: card_decline`.
|
|
59
|
+
*/
|
|
60
|
+
interface DeclinedTransaction {
|
|
61
|
+
/**
|
|
62
|
+
* The Declined Transaction identifier.
|
|
63
|
+
*/
|
|
64
|
+
id: string;
|
|
65
|
+
/**
|
|
66
|
+
* The identifier for the Account the Declined Transaction belongs to.
|
|
67
|
+
*/
|
|
68
|
+
account_id: string;
|
|
69
|
+
/**
|
|
70
|
+
* The Declined Transaction amount in the minor unit of its currency. For dollars,
|
|
71
|
+
* for example, this is cents.
|
|
72
|
+
*/
|
|
73
|
+
amount: number;
|
|
74
|
+
/**
|
|
75
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the
|
|
76
|
+
* Transaction occured.
|
|
77
|
+
*/
|
|
78
|
+
created_at: string;
|
|
79
|
+
/**
|
|
80
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Declined
|
|
81
|
+
* Transaction's currency. This will match the currency on the Declined
|
|
82
|
+
* Transcation's Account.
|
|
83
|
+
*/
|
|
84
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
85
|
+
/**
|
|
86
|
+
* This is the description the vendor provides.
|
|
87
|
+
*/
|
|
88
|
+
description: string;
|
|
89
|
+
/**
|
|
90
|
+
* The identifier for the route this Declined Transaction came through. Routes are
|
|
91
|
+
* things like cards and ACH details.
|
|
92
|
+
*/
|
|
93
|
+
route_id: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* The type of the route this Declined Transaction came through.
|
|
96
|
+
*/
|
|
97
|
+
route_type: 'account_number' | 'card' | null;
|
|
98
|
+
/**
|
|
99
|
+
* This is an object giving more details on the network-level event that caused the
|
|
100
|
+
* Declined Transaction. For example, for a card transaction this lists the
|
|
101
|
+
* merchant's industry and location. Note that for backwards compatibility reasons,
|
|
102
|
+
* additional undocumented keys may appear in this object. These should be treated
|
|
103
|
+
* as deprecated and will be removed in the future.
|
|
104
|
+
*/
|
|
105
|
+
source: DeclinedTransaction.Source;
|
|
106
|
+
/**
|
|
107
|
+
* A constant representing the object's type. For this resource it will always be
|
|
108
|
+
* `declined_transaction`.
|
|
109
|
+
*/
|
|
110
|
+
type: 'declined_transaction';
|
|
111
|
+
}
|
|
112
|
+
namespace DeclinedTransaction {
|
|
113
|
+
/**
|
|
114
|
+
* This is an object giving more details on the network-level event that caused the
|
|
115
|
+
* Declined Transaction. For example, for a card transaction this lists the
|
|
116
|
+
* merchant's industry and location. Note that for backwards compatibility reasons,
|
|
117
|
+
* additional undocumented keys may appear in this object. These should be treated
|
|
118
|
+
* as deprecated and will be removed in the future.
|
|
119
|
+
*/
|
|
120
|
+
interface Source {
|
|
121
|
+
/**
|
|
122
|
+
* A ACH Decline object. This field will be present in the JSON response if and
|
|
123
|
+
* only if `category` is equal to `ach_decline`.
|
|
124
|
+
*/
|
|
125
|
+
ach_decline: Source.ACHDecline | null;
|
|
126
|
+
/**
|
|
127
|
+
* A Card Decline object. This field will be present in the JSON response if and
|
|
128
|
+
* only if `category` is equal to `card_decline`.
|
|
129
|
+
*/
|
|
130
|
+
card_decline: Source.CardDecline | null;
|
|
131
|
+
/**
|
|
132
|
+
* The type of decline that took place. We may add additional possible values for
|
|
133
|
+
* this enum over time; your application should be able to handle such additions
|
|
134
|
+
* gracefully.
|
|
135
|
+
*/
|
|
136
|
+
category:
|
|
137
|
+
| 'ach_decline'
|
|
138
|
+
| 'card_decline'
|
|
139
|
+
| 'check_decline'
|
|
140
|
+
| 'inbound_real_time_payments_transfer_decline'
|
|
141
|
+
| 'international_ach_decline'
|
|
142
|
+
| 'wire_decline'
|
|
143
|
+
| 'other';
|
|
144
|
+
/**
|
|
145
|
+
* A Check Decline object. This field will be present in the JSON response if and
|
|
146
|
+
* only if `category` is equal to `check_decline`.
|
|
147
|
+
*/
|
|
148
|
+
check_decline: Source.CheckDecline | null;
|
|
149
|
+
/**
|
|
150
|
+
* A Inbound Real Time Payments Transfer Decline object. This field will be present
|
|
151
|
+
* in the JSON response if and only if `category` is equal to
|
|
152
|
+
* `inbound_real_time_payments_transfer_decline`.
|
|
153
|
+
*/
|
|
154
|
+
inbound_real_time_payments_transfer_decline: Source.InboundRealTimePaymentsTransferDecline | null;
|
|
155
|
+
/**
|
|
156
|
+
* A International ACH Decline object. This field will be present in the JSON
|
|
157
|
+
* response if and only if `category` is equal to `international_ach_decline`.
|
|
158
|
+
*/
|
|
159
|
+
international_ach_decline: Source.InternationalACHDecline | null;
|
|
160
|
+
/**
|
|
161
|
+
* A Wire Decline object. This field will be present in the JSON response if and
|
|
162
|
+
* only if `category` is equal to `wire_decline`.
|
|
163
|
+
*/
|
|
164
|
+
wire_decline: Source.WireDecline | null;
|
|
165
|
+
}
|
|
166
|
+
namespace Source {
|
|
167
|
+
/**
|
|
168
|
+
* A ACH Decline object. This field will be present in the JSON response if and
|
|
169
|
+
* only if `category` is equal to `ach_decline`.
|
|
170
|
+
*/
|
|
171
|
+
interface ACHDecline {
|
|
172
|
+
/**
|
|
173
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
174
|
+
* dollars, for example, this is cents.
|
|
175
|
+
*/
|
|
176
|
+
amount: number;
|
|
177
|
+
originator_company_descriptive_date: string | null;
|
|
178
|
+
originator_company_discretionary_data: string | null;
|
|
179
|
+
originator_company_id: string;
|
|
180
|
+
originator_company_name: string;
|
|
181
|
+
/**
|
|
182
|
+
* Why the ACH transfer was declined.
|
|
183
|
+
*/
|
|
184
|
+
reason:
|
|
185
|
+
| 'ach_route_canceled'
|
|
186
|
+
| 'ach_route_disabled'
|
|
187
|
+
| 'breaches_limit'
|
|
188
|
+
| 'credit_entry_refused_by_receiver'
|
|
189
|
+
| 'duplicate_return'
|
|
190
|
+
| 'entity_not_active'
|
|
191
|
+
| 'group_locked'
|
|
192
|
+
| 'insufficient_funds'
|
|
193
|
+
| 'misrouted_return'
|
|
194
|
+
| 'no_ach_route'
|
|
195
|
+
| 'originator_request'
|
|
196
|
+
| 'transaction_not_allowed';
|
|
197
|
+
receiver_id_number: string | null;
|
|
198
|
+
receiver_name: string | null;
|
|
199
|
+
trace_number: string;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* A Card Decline object. This field will be present in the JSON response if and
|
|
203
|
+
* only if `category` is equal to `card_decline`.
|
|
204
|
+
*/
|
|
205
|
+
interface CardDecline {
|
|
206
|
+
/**
|
|
207
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
208
|
+
* dollars, for example, this is cents.
|
|
209
|
+
*/
|
|
210
|
+
amount: number;
|
|
211
|
+
/**
|
|
212
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
|
|
213
|
+
* account currency.
|
|
214
|
+
*/
|
|
215
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
216
|
+
/**
|
|
217
|
+
* If the authorization was attempted using a Digital Wallet Token (such as an
|
|
218
|
+
* Apple Pay purchase), the identifier of the token that was used.
|
|
219
|
+
*/
|
|
220
|
+
digital_wallet_token_id: string | null;
|
|
221
|
+
/**
|
|
222
|
+
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
223
|
+
* is transacting with.
|
|
224
|
+
*/
|
|
225
|
+
merchant_acceptor_id: string;
|
|
226
|
+
/**
|
|
227
|
+
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
228
|
+
* card is transacting with.
|
|
229
|
+
*/
|
|
230
|
+
merchant_category_code: string | null;
|
|
231
|
+
/**
|
|
232
|
+
* The city the merchant resides in.
|
|
233
|
+
*/
|
|
234
|
+
merchant_city: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* The country the merchant resides in.
|
|
237
|
+
*/
|
|
238
|
+
merchant_country: string | null;
|
|
239
|
+
/**
|
|
240
|
+
* The merchant descriptor of the merchant the card is transacting with.
|
|
241
|
+
*/
|
|
242
|
+
merchant_descriptor: string;
|
|
243
|
+
/**
|
|
244
|
+
* The state the merchant resides in.
|
|
245
|
+
*/
|
|
246
|
+
merchant_state: string | null;
|
|
247
|
+
/**
|
|
248
|
+
* The payment network used to process this card authorization
|
|
249
|
+
*/
|
|
250
|
+
network: 'visa';
|
|
251
|
+
/**
|
|
252
|
+
* Fields specific to the `network`
|
|
253
|
+
*/
|
|
254
|
+
network_details: CardDecline.NetworkDetails;
|
|
255
|
+
/**
|
|
256
|
+
* The identifier of the Real-Time Decision sent to approve or decline this
|
|
257
|
+
* transaction.
|
|
258
|
+
*/
|
|
259
|
+
real_time_decision_id: string | null;
|
|
260
|
+
/**
|
|
261
|
+
* Why the transaction was declined.
|
|
262
|
+
*/
|
|
263
|
+
reason:
|
|
264
|
+
| 'card_not_active'
|
|
265
|
+
| 'entity_not_active'
|
|
266
|
+
| 'group_locked'
|
|
267
|
+
| 'insufficient_funds'
|
|
268
|
+
| 'cvv2_mismatch'
|
|
269
|
+
| 'transaction_not_allowed'
|
|
270
|
+
| 'breaches_internal_limit'
|
|
271
|
+
| 'breaches_limit'
|
|
272
|
+
| 'webhook_declined'
|
|
273
|
+
| 'webhook_timed_out'
|
|
274
|
+
| 'declined_by_stand_in_processing'
|
|
275
|
+
| 'invalid_physical_card'
|
|
276
|
+
| 'missing_original_authorization';
|
|
277
|
+
}
|
|
278
|
+
namespace CardDecline {
|
|
279
|
+
/**
|
|
280
|
+
* Fields specific to the `network`
|
|
281
|
+
*/
|
|
282
|
+
interface NetworkDetails {
|
|
283
|
+
/**
|
|
284
|
+
* Fields specific to the `visa` network
|
|
285
|
+
*/
|
|
286
|
+
visa: NetworkDetails.Visa;
|
|
287
|
+
}
|
|
288
|
+
namespace NetworkDetails {
|
|
289
|
+
/**
|
|
290
|
+
* Fields specific to the `visa` network
|
|
291
|
+
*/
|
|
292
|
+
interface Visa {
|
|
293
|
+
/**
|
|
294
|
+
* For electronic commerce transactions, this identifies the level of security used
|
|
295
|
+
* in obtaining the customer's payment credential. For mail or telephone order
|
|
296
|
+
* transactions, identifies the type of mail or telephone order.
|
|
297
|
+
*/
|
|
298
|
+
electronic_commerce_indicator:
|
|
299
|
+
| 'mail_phone_order'
|
|
300
|
+
| 'recurring'
|
|
301
|
+
| 'installment'
|
|
302
|
+
| 'unknown_mail_phone_order'
|
|
303
|
+
| 'secure_electronic_commerce'
|
|
304
|
+
| 'non_authenticated_security_transaction_at_3ds_capable_merchant'
|
|
305
|
+
| 'non_authenticated_security_transaction'
|
|
306
|
+
| 'non_secure_transaction'
|
|
307
|
+
| null;
|
|
308
|
+
/**
|
|
309
|
+
* The method used to enter the cardholder's primary account number and card
|
|
310
|
+
* expiration date
|
|
311
|
+
*/
|
|
312
|
+
point_of_service_entry_mode: Shared.PointOfServiceEntryMode | null;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* A Check Decline object. This field will be present in the JSON response if and
|
|
318
|
+
* only if `category` is equal to `check_decline`.
|
|
319
|
+
*/
|
|
320
|
+
interface CheckDecline {
|
|
321
|
+
/**
|
|
322
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
323
|
+
* dollars, for example, this is cents.
|
|
324
|
+
*/
|
|
325
|
+
amount: number;
|
|
326
|
+
auxiliary_on_us: string | null;
|
|
327
|
+
/**
|
|
328
|
+
* Why the check was declined.
|
|
329
|
+
*/
|
|
330
|
+
reason:
|
|
331
|
+
| 'ach_route_canceled'
|
|
332
|
+
| 'ach_route_disabled'
|
|
333
|
+
| 'breaches_limit'
|
|
334
|
+
| 'entity_not_active'
|
|
335
|
+
| 'group_locked'
|
|
336
|
+
| 'insufficient_funds'
|
|
337
|
+
| 'unable_to_locate_account'
|
|
338
|
+
| 'not_our_item'
|
|
339
|
+
| 'unable_to_process'
|
|
340
|
+
| 'refer_to_image'
|
|
341
|
+
| 'stop_payment_requested'
|
|
342
|
+
| 'returned'
|
|
343
|
+
| 'duplicate_presentment'
|
|
344
|
+
| 'not_authorized'
|
|
345
|
+
| 'altered_or_fictitious';
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* A Inbound Real Time Payments Transfer Decline object. This field will be present
|
|
349
|
+
* in the JSON response if and only if `category` is equal to
|
|
350
|
+
* `inbound_real_time_payments_transfer_decline`.
|
|
351
|
+
*/
|
|
352
|
+
interface InboundRealTimePaymentsTransferDecline {
|
|
353
|
+
/**
|
|
354
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
355
|
+
* dollars, for example, this is cents.
|
|
356
|
+
*/
|
|
357
|
+
amount: number;
|
|
358
|
+
/**
|
|
359
|
+
* The name the sender of the transfer specified as the recipient of the transfer.
|
|
360
|
+
*/
|
|
361
|
+
creditor_name: string;
|
|
362
|
+
/**
|
|
363
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined
|
|
364
|
+
* transfer's currency. This will always be "USD" for a Real Time Payments
|
|
365
|
+
* transfer.
|
|
366
|
+
*/
|
|
367
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
368
|
+
/**
|
|
369
|
+
* The account number of the account that sent the transfer.
|
|
370
|
+
*/
|
|
371
|
+
debtor_account_number: string;
|
|
372
|
+
/**
|
|
373
|
+
* The name provided by the sender of the transfer.
|
|
374
|
+
*/
|
|
375
|
+
debtor_name: string;
|
|
376
|
+
/**
|
|
377
|
+
* The routing number of the account that sent the transfer.
|
|
378
|
+
*/
|
|
379
|
+
debtor_routing_number: string;
|
|
380
|
+
/**
|
|
381
|
+
* Why the transfer was declined.
|
|
382
|
+
*/
|
|
383
|
+
reason:
|
|
384
|
+
| 'account_number_canceled'
|
|
385
|
+
| 'account_number_disabled'
|
|
386
|
+
| 'account_restricted'
|
|
387
|
+
| 'group_locked'
|
|
388
|
+
| 'entity_not_active'
|
|
389
|
+
| 'real_time_payments_not_enabled';
|
|
390
|
+
/**
|
|
391
|
+
* Additional information included with the transfer.
|
|
392
|
+
*/
|
|
393
|
+
remittance_information: string | null;
|
|
394
|
+
/**
|
|
395
|
+
* The Real Time Payments network identification of the declined transfer.
|
|
396
|
+
*/
|
|
397
|
+
transaction_identification: string;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* A International ACH Decline object. This field will be present in the JSON
|
|
401
|
+
* response if and only if `category` is equal to `international_ach_decline`.
|
|
402
|
+
*/
|
|
403
|
+
interface InternationalACHDecline {
|
|
404
|
+
/**
|
|
405
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
406
|
+
* dollars, for example, this is cents.
|
|
407
|
+
*/
|
|
408
|
+
amount: number;
|
|
409
|
+
destination_country_code: string;
|
|
410
|
+
destination_currency_code: string;
|
|
411
|
+
foreign_exchange_indicator: string;
|
|
412
|
+
foreign_exchange_reference: string | null;
|
|
413
|
+
foreign_exchange_reference_indicator: string;
|
|
414
|
+
foreign_payment_amount: number;
|
|
415
|
+
foreign_trace_number: string | null;
|
|
416
|
+
international_transaction_type_code: string;
|
|
417
|
+
originating_currency_code: string;
|
|
418
|
+
originating_depository_financial_institution_branch_country: string;
|
|
419
|
+
originating_depository_financial_institution_id: string;
|
|
420
|
+
originating_depository_financial_institution_id_qualifier: string;
|
|
421
|
+
originating_depository_financial_institution_name: string;
|
|
422
|
+
originator_city: string;
|
|
423
|
+
originator_company_entry_description: string;
|
|
424
|
+
originator_country: string;
|
|
425
|
+
originator_identification: string;
|
|
426
|
+
originator_name: string;
|
|
427
|
+
originator_postal_code: string | null;
|
|
428
|
+
originator_state_or_province: string | null;
|
|
429
|
+
originator_street_address: string;
|
|
430
|
+
payment_related_information: string | null;
|
|
431
|
+
payment_related_information2: string | null;
|
|
432
|
+
receiver_city: string;
|
|
433
|
+
receiver_country: string;
|
|
434
|
+
receiver_identification_number: string | null;
|
|
435
|
+
receiver_postal_code: string | null;
|
|
436
|
+
receiver_state_or_province: string | null;
|
|
437
|
+
receiver_street_address: string;
|
|
438
|
+
receiving_company_or_individual_name: string;
|
|
439
|
+
receiving_depository_financial_institution_country: string;
|
|
440
|
+
receiving_depository_financial_institution_id: string;
|
|
441
|
+
receiving_depository_financial_institution_id_qualifier: string;
|
|
442
|
+
receiving_depository_financial_institution_name: string;
|
|
443
|
+
trace_number: string;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* A Wire Decline object. This field will be present in the JSON response if and
|
|
447
|
+
* only if `category` is equal to `wire_decline`.
|
|
448
|
+
*/
|
|
449
|
+
interface WireDecline {
|
|
450
|
+
/**
|
|
451
|
+
* The declined amount in the minor unit of the destination account currency. For
|
|
452
|
+
* dollars, for example, this is cents.
|
|
453
|
+
*/
|
|
454
|
+
amount: number;
|
|
455
|
+
beneficiary_address_line1: string | null;
|
|
456
|
+
beneficiary_address_line2: string | null;
|
|
457
|
+
beneficiary_address_line3: string | null;
|
|
458
|
+
beneficiary_name: string | null;
|
|
459
|
+
beneficiary_reference: string | null;
|
|
460
|
+
description: string;
|
|
461
|
+
input_message_accountability_data: string | null;
|
|
462
|
+
originator_address_line1: string | null;
|
|
463
|
+
originator_address_line2: string | null;
|
|
464
|
+
originator_address_line3: string | null;
|
|
465
|
+
originator_name: string | null;
|
|
466
|
+
originator_to_beneficiary_information_line1: string | null;
|
|
467
|
+
originator_to_beneficiary_information_line2: string | null;
|
|
468
|
+
originator_to_beneficiary_information_line3: string | null;
|
|
469
|
+
originator_to_beneficiary_information_line4: string | null;
|
|
470
|
+
/**
|
|
471
|
+
* Why the wire transfer was declined.
|
|
472
|
+
*/
|
|
473
|
+
reason:
|
|
474
|
+
| 'account_number_canceled'
|
|
475
|
+
| 'account_number_disabled'
|
|
476
|
+
| 'entity_not_active'
|
|
477
|
+
| 'group_locked'
|
|
478
|
+
| 'no_account_number'
|
|
479
|
+
| 'transaction_not_allowed';
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* If the authorization attempt succeeds, this will contain the resulting Pending
|
|
485
|
+
* Transaction object. The Pending Transaction's `source` will be of
|
|
486
|
+
* `category: card_authorization`.
|
|
487
|
+
*/
|
|
488
|
+
interface PendingTransaction {
|
|
489
|
+
/**
|
|
490
|
+
* The Pending Transaction identifier.
|
|
491
|
+
*/
|
|
492
|
+
id: string;
|
|
493
|
+
/**
|
|
494
|
+
* The identifier for the account this Pending Transaction belongs to.
|
|
495
|
+
*/
|
|
496
|
+
account_id: string;
|
|
497
|
+
/**
|
|
498
|
+
* The Pending Transaction amount in the minor unit of its currency. For dollars,
|
|
499
|
+
* for example, this is cents.
|
|
500
|
+
*/
|
|
501
|
+
amount: number;
|
|
502
|
+
/**
|
|
503
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
|
|
504
|
+
* Transaction was completed.
|
|
505
|
+
*/
|
|
506
|
+
completed_at: string | null;
|
|
507
|
+
/**
|
|
508
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
|
|
509
|
+
* Transaction occured.
|
|
510
|
+
*/
|
|
511
|
+
created_at: string;
|
|
512
|
+
/**
|
|
513
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Pending
|
|
514
|
+
* Transaction's currency. This will match the currency on the Pending
|
|
515
|
+
* Transcation's Account.
|
|
516
|
+
*/
|
|
517
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
518
|
+
/**
|
|
519
|
+
* For a Pending Transaction related to a transfer, this is the description you
|
|
520
|
+
* provide. For a Pending Transaction related to a payment, this is the description
|
|
521
|
+
* the vendor provides.
|
|
522
|
+
*/
|
|
523
|
+
description: string;
|
|
524
|
+
/**
|
|
525
|
+
* The identifier for the route this Pending Transaction came through. Routes are
|
|
526
|
+
* things like cards and ACH details.
|
|
527
|
+
*/
|
|
528
|
+
route_id: string | null;
|
|
529
|
+
/**
|
|
530
|
+
* The type of the route this Pending Transaction came through.
|
|
531
|
+
*/
|
|
532
|
+
route_type: 'account_number' | 'card' | null;
|
|
533
|
+
/**
|
|
534
|
+
* This is an object giving more details on the network-level event that caused the
|
|
535
|
+
* Pending Transaction. For example, for a card transaction this lists the
|
|
536
|
+
* merchant's industry and location.
|
|
537
|
+
*/
|
|
538
|
+
source: PendingTransaction.Source;
|
|
539
|
+
/**
|
|
540
|
+
* Whether the Pending Transaction has been confirmed and has an associated
|
|
541
|
+
* Transaction.
|
|
542
|
+
*/
|
|
543
|
+
status: 'pending' | 'complete';
|
|
544
|
+
/**
|
|
545
|
+
* A constant representing the object's type. For this resource it will always be
|
|
546
|
+
* `pending_transaction`.
|
|
547
|
+
*/
|
|
548
|
+
type: 'pending_transaction';
|
|
549
|
+
}
|
|
550
|
+
namespace PendingTransaction {
|
|
551
|
+
/**
|
|
552
|
+
* This is an object giving more details on the network-level event that caused the
|
|
553
|
+
* Pending Transaction. For example, for a card transaction this lists the
|
|
554
|
+
* merchant's industry and location.
|
|
555
|
+
*/
|
|
556
|
+
interface Source {
|
|
557
|
+
/**
|
|
558
|
+
* A Account Transfer Instruction object. This field will be present in the JSON
|
|
559
|
+
* response if and only if `category` is equal to `account_transfer_instruction`.
|
|
560
|
+
*/
|
|
561
|
+
account_transfer_instruction: Source.AccountTransferInstruction | null;
|
|
562
|
+
/**
|
|
563
|
+
* A ACH Transfer Instruction object. This field will be present in the JSON
|
|
564
|
+
* response if and only if `category` is equal to `ach_transfer_instruction`.
|
|
565
|
+
*/
|
|
566
|
+
ach_transfer_instruction: Source.ACHTransferInstruction | null;
|
|
567
|
+
/**
|
|
568
|
+
* A Card Authorization object. This field will be present in the JSON response if
|
|
569
|
+
* and only if `category` is equal to `card_authorization`.
|
|
570
|
+
*/
|
|
571
|
+
card_authorization: Source.CardAuthorization | null;
|
|
572
|
+
/**
|
|
573
|
+
* The type of transaction that took place. We may add additional possible values
|
|
574
|
+
* for this enum over time; your application should be able to handle such
|
|
575
|
+
* additions gracefully.
|
|
576
|
+
*/
|
|
577
|
+
category:
|
|
578
|
+
| 'account_transfer_instruction'
|
|
579
|
+
| 'ach_transfer_instruction'
|
|
580
|
+
| 'card_authorization'
|
|
581
|
+
| 'check_deposit_instruction'
|
|
582
|
+
| 'check_transfer_instruction'
|
|
583
|
+
| 'inbound_funds_hold'
|
|
584
|
+
| 'real_time_payments_transfer_instruction'
|
|
585
|
+
| 'wire_transfer_instruction'
|
|
586
|
+
| 'other';
|
|
587
|
+
/**
|
|
588
|
+
* A Check Deposit Instruction object. This field will be present in the JSON
|
|
589
|
+
* response if and only if `category` is equal to `check_deposit_instruction`.
|
|
590
|
+
*/
|
|
591
|
+
check_deposit_instruction: Source.CheckDepositInstruction | null;
|
|
592
|
+
/**
|
|
593
|
+
* A Check Transfer Instruction object. This field will be present in the JSON
|
|
594
|
+
* response if and only if `category` is equal to `check_transfer_instruction`.
|
|
595
|
+
*/
|
|
596
|
+
check_transfer_instruction: Source.CheckTransferInstruction | null;
|
|
597
|
+
/**
|
|
598
|
+
* A Inbound Funds Hold object. This field will be present in the JSON response if
|
|
599
|
+
* and only if `category` is equal to `inbound_funds_hold`.
|
|
600
|
+
*/
|
|
601
|
+
inbound_funds_hold: Source.InboundFundsHold | null;
|
|
602
|
+
/**
|
|
603
|
+
* A Real Time Payments Transfer Instruction object. This field will be present in
|
|
604
|
+
* the JSON response if and only if `category` is equal to
|
|
605
|
+
* `real_time_payments_transfer_instruction`.
|
|
606
|
+
*/
|
|
607
|
+
real_time_payments_transfer_instruction: Source.RealTimePaymentsTransferInstruction | null;
|
|
608
|
+
/**
|
|
609
|
+
* A Wire Transfer Instruction object. This field will be present in the JSON
|
|
610
|
+
* response if and only if `category` is equal to `wire_transfer_instruction`.
|
|
611
|
+
*/
|
|
612
|
+
wire_transfer_instruction: Source.WireTransferInstruction | null;
|
|
613
|
+
}
|
|
614
|
+
namespace Source {
|
|
615
|
+
/**
|
|
616
|
+
* A Account Transfer Instruction object. This field will be present in the JSON
|
|
617
|
+
* response if and only if `category` is equal to `account_transfer_instruction`.
|
|
618
|
+
*/
|
|
619
|
+
interface AccountTransferInstruction {
|
|
620
|
+
/**
|
|
621
|
+
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
622
|
+
* for example, this is cents.
|
|
623
|
+
*/
|
|
624
|
+
amount: number;
|
|
625
|
+
/**
|
|
626
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
|
|
627
|
+
* account currency.
|
|
628
|
+
*/
|
|
629
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
630
|
+
/**
|
|
631
|
+
* The identifier of the Account Transfer that led to this Pending Transaction.
|
|
632
|
+
*/
|
|
633
|
+
transfer_id: string;
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* A ACH Transfer Instruction object. This field will be present in the JSON
|
|
637
|
+
* response if and only if `category` is equal to `ach_transfer_instruction`.
|
|
638
|
+
*/
|
|
639
|
+
interface ACHTransferInstruction {
|
|
640
|
+
/**
|
|
641
|
+
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
642
|
+
* for example, this is cents.
|
|
643
|
+
*/
|
|
644
|
+
amount: number;
|
|
645
|
+
/**
|
|
646
|
+
* The identifier of the ACH Transfer that led to this Pending Transaction.
|
|
647
|
+
*/
|
|
648
|
+
transfer_id: string;
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* A Card Authorization object. This field will be present in the JSON response if
|
|
652
|
+
* and only if `category` is equal to `card_authorization`.
|
|
653
|
+
*/
|
|
654
|
+
interface CardAuthorization {
|
|
655
|
+
/**
|
|
656
|
+
* The Card Authorization identifier.
|
|
657
|
+
*/
|
|
658
|
+
id: string;
|
|
659
|
+
/**
|
|
660
|
+
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
661
|
+
* for example, this is cents.
|
|
662
|
+
*/
|
|
663
|
+
amount: number;
|
|
664
|
+
/**
|
|
665
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
666
|
+
* transaction's currency.
|
|
667
|
+
*/
|
|
668
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
669
|
+
/**
|
|
670
|
+
* If the authorization was made via a Digital Wallet Token (such as an Apple Pay
|
|
671
|
+
* purchase), the identifier of the token that was used.
|
|
672
|
+
*/
|
|
673
|
+
digital_wallet_token_id: string | null;
|
|
674
|
+
/**
|
|
675
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) when this authorization
|
|
676
|
+
* will expire and the pending transaction will be released.
|
|
677
|
+
*/
|
|
678
|
+
expires_at: string;
|
|
679
|
+
/**
|
|
680
|
+
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
681
|
+
* is transacting with.
|
|
682
|
+
*/
|
|
683
|
+
merchant_acceptor_id: string;
|
|
684
|
+
/**
|
|
685
|
+
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
686
|
+
* card is transacting with.
|
|
687
|
+
*/
|
|
688
|
+
merchant_category_code: string | null;
|
|
689
|
+
/**
|
|
690
|
+
* The city the merchant resides in.
|
|
691
|
+
*/
|
|
692
|
+
merchant_city: string | null;
|
|
693
|
+
/**
|
|
694
|
+
* The country the merchant resides in.
|
|
695
|
+
*/
|
|
696
|
+
merchant_country: string | null;
|
|
697
|
+
/**
|
|
698
|
+
* The merchant descriptor of the merchant the card is transacting with.
|
|
699
|
+
*/
|
|
700
|
+
merchant_descriptor: string;
|
|
701
|
+
/**
|
|
702
|
+
* The payment network used to process this card authorization
|
|
703
|
+
*/
|
|
704
|
+
network: 'visa';
|
|
705
|
+
/**
|
|
706
|
+
* Fields specific to the `network`
|
|
707
|
+
*/
|
|
708
|
+
network_details: CardAuthorization.NetworkDetails;
|
|
709
|
+
/**
|
|
710
|
+
* The identifier of the Pending Transaction associated with this Transaction.
|
|
711
|
+
*/
|
|
712
|
+
pending_transaction_id: string | null;
|
|
713
|
+
/**
|
|
714
|
+
* The identifier of the Real-Time Decision sent to approve or decline this
|
|
715
|
+
* transaction.
|
|
716
|
+
*/
|
|
717
|
+
real_time_decision_id: string | null;
|
|
718
|
+
/**
|
|
719
|
+
* A constant representing the object's type. For this resource it will always be
|
|
720
|
+
* `card_authorization`.
|
|
721
|
+
*/
|
|
722
|
+
type: 'card_authorization';
|
|
723
|
+
}
|
|
724
|
+
namespace CardAuthorization {
|
|
725
|
+
/**
|
|
726
|
+
* Fields specific to the `network`
|
|
727
|
+
*/
|
|
728
|
+
interface NetworkDetails {
|
|
729
|
+
/**
|
|
730
|
+
* Fields specific to the `visa` network
|
|
731
|
+
*/
|
|
732
|
+
visa: NetworkDetails.Visa;
|
|
733
|
+
}
|
|
734
|
+
namespace NetworkDetails {
|
|
735
|
+
/**
|
|
736
|
+
* Fields specific to the `visa` network
|
|
737
|
+
*/
|
|
738
|
+
interface Visa {
|
|
739
|
+
/**
|
|
740
|
+
* For electronic commerce transactions, this identifies the level of security used
|
|
741
|
+
* in obtaining the customer's payment credential. For mail or telephone order
|
|
742
|
+
* transactions, identifies the type of mail or telephone order.
|
|
743
|
+
*/
|
|
744
|
+
electronic_commerce_indicator:
|
|
745
|
+
| 'mail_phone_order'
|
|
746
|
+
| 'recurring'
|
|
747
|
+
| 'installment'
|
|
748
|
+
| 'unknown_mail_phone_order'
|
|
749
|
+
| 'secure_electronic_commerce'
|
|
750
|
+
| 'non_authenticated_security_transaction_at_3ds_capable_merchant'
|
|
751
|
+
| 'non_authenticated_security_transaction'
|
|
752
|
+
| 'non_secure_transaction'
|
|
753
|
+
| null;
|
|
754
|
+
/**
|
|
755
|
+
* The method used to enter the cardholder's primary account number and card
|
|
756
|
+
* expiration date
|
|
757
|
+
*/
|
|
758
|
+
point_of_service_entry_mode: Shared.PointOfServiceEntryMode | null;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* A Check Deposit Instruction object. This field will be present in the JSON
|
|
764
|
+
* response if and only if `category` is equal to `check_deposit_instruction`.
|
|
765
|
+
*/
|
|
766
|
+
interface CheckDepositInstruction {
|
|
767
|
+
/**
|
|
768
|
+
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
769
|
+
* for example, this is cents.
|
|
770
|
+
*/
|
|
771
|
+
amount: number;
|
|
772
|
+
/**
|
|
773
|
+
* The identifier of the File containing the image of the back of the check that
|
|
774
|
+
* was deposited.
|
|
775
|
+
*/
|
|
776
|
+
back_image_file_id: string | null;
|
|
777
|
+
/**
|
|
778
|
+
* The identifier of the Check Deposit.
|
|
779
|
+
*/
|
|
780
|
+
check_deposit_id: string | null;
|
|
781
|
+
/**
|
|
782
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
783
|
+
* transaction's currency.
|
|
784
|
+
*/
|
|
785
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
786
|
+
/**
|
|
787
|
+
* The identifier of the File containing the image of the front of the check that
|
|
788
|
+
* was deposited.
|
|
789
|
+
*/
|
|
790
|
+
front_image_file_id: string;
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* A Check Transfer Instruction object. This field will be present in the JSON
|
|
794
|
+
* response if and only if `category` is equal to `check_transfer_instruction`.
|
|
795
|
+
*/
|
|
796
|
+
interface CheckTransferInstruction {
|
|
797
|
+
/**
|
|
798
|
+
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
799
|
+
* for example, this is cents.
|
|
800
|
+
*/
|
|
801
|
+
amount: number;
|
|
802
|
+
/**
|
|
803
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's
|
|
804
|
+
* currency.
|
|
805
|
+
*/
|
|
806
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
807
|
+
/**
|
|
808
|
+
* The identifier of the Check Transfer that led to this Pending Transaction.
|
|
809
|
+
*/
|
|
810
|
+
transfer_id: string;
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* A Inbound Funds Hold object. This field will be present in the JSON response if
|
|
814
|
+
* and only if `category` is equal to `inbound_funds_hold`.
|
|
815
|
+
*/
|
|
816
|
+
interface InboundFundsHold {
|
|
817
|
+
/**
|
|
818
|
+
* The held amount in the minor unit of the account's currency. For dollars, for
|
|
819
|
+
* example, this is cents.
|
|
820
|
+
*/
|
|
821
|
+
amount: number;
|
|
822
|
+
/**
|
|
823
|
+
* When the hold will be released automatically. Certain conditions may cause it to
|
|
824
|
+
* be released before this time.
|
|
825
|
+
*/
|
|
826
|
+
automatically_releases_at: string;
|
|
827
|
+
/**
|
|
828
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the hold
|
|
829
|
+
* was created.
|
|
830
|
+
*/
|
|
831
|
+
created_at: string;
|
|
832
|
+
/**
|
|
833
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's
|
|
834
|
+
* currency.
|
|
835
|
+
*/
|
|
836
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
837
|
+
/**
|
|
838
|
+
* The ID of the Transaction for which funds were held.
|
|
839
|
+
*/
|
|
840
|
+
held_transaction_id: string | null;
|
|
841
|
+
/**
|
|
842
|
+
* The ID of the Pending Transaction representing the held funds.
|
|
843
|
+
*/
|
|
844
|
+
pending_transaction_id: string | null;
|
|
845
|
+
/**
|
|
846
|
+
* When the hold was released (if it has been released).
|
|
847
|
+
*/
|
|
848
|
+
released_at: string | null;
|
|
849
|
+
/**
|
|
850
|
+
* The status of the hold.
|
|
851
|
+
*/
|
|
852
|
+
status: 'held' | 'complete';
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* A Real Time Payments Transfer Instruction object. This field will be present in
|
|
856
|
+
* the JSON response if and only if `category` is equal to
|
|
857
|
+
* `real_time_payments_transfer_instruction`.
|
|
858
|
+
*/
|
|
859
|
+
interface RealTimePaymentsTransferInstruction {
|
|
860
|
+
/**
|
|
861
|
+
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
862
|
+
* for example, this is cents.
|
|
863
|
+
*/
|
|
864
|
+
amount: number;
|
|
865
|
+
/**
|
|
866
|
+
* The identifier of the Real Time Payments Transfer that led to this Pending
|
|
867
|
+
* Transaction.
|
|
868
|
+
*/
|
|
869
|
+
transfer_id: string;
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* A Wire Transfer Instruction object. This field will be present in the JSON
|
|
873
|
+
* response if and only if `category` is equal to `wire_transfer_instruction`.
|
|
874
|
+
*/
|
|
875
|
+
interface WireTransferInstruction {
|
|
876
|
+
account_number: string;
|
|
877
|
+
/**
|
|
878
|
+
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
879
|
+
* for example, this is cents.
|
|
880
|
+
*/
|
|
881
|
+
amount: number;
|
|
882
|
+
message_to_recipient: string;
|
|
883
|
+
routing_number: string;
|
|
884
|
+
transfer_id: string;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
export interface CardAuthorizeParams {
|
|
890
|
+
/**
|
|
891
|
+
* The authorization amount in cents.
|
|
892
|
+
*/
|
|
893
|
+
amount: number;
|
|
894
|
+
/**
|
|
895
|
+
* The identifier of the Card to be authorized.
|
|
896
|
+
*/
|
|
897
|
+
card_id?: string;
|
|
898
|
+
/**
|
|
899
|
+
* The identifier of the Digital Wallet Token to be authorized.
|
|
900
|
+
*/
|
|
901
|
+
digital_wallet_token_id?: string;
|
|
902
|
+
/**
|
|
903
|
+
* The identifier of the Event Subscription to use. If provided, will override the
|
|
904
|
+
* default real time event subscription. Because you can only create one real time
|
|
905
|
+
* decision event subscription, you can use this field to route events to any
|
|
906
|
+
* specified event subscription for testing purposes.
|
|
907
|
+
*/
|
|
908
|
+
event_subscription_id?: string;
|
|
909
|
+
}
|
|
910
|
+
export interface CardSettlementParams {
|
|
911
|
+
/**
|
|
912
|
+
* The identifier of the Card to create a settlement on.
|
|
913
|
+
*/
|
|
914
|
+
card_id: string;
|
|
915
|
+
/**
|
|
916
|
+
* The identifier of the Pending Transaction for the Card Authorization you wish to
|
|
917
|
+
* settle.
|
|
918
|
+
*/
|
|
919
|
+
pending_transaction_id: string;
|
|
920
|
+
/**
|
|
921
|
+
* The amount to be settled. This defaults to the amount of the Pending Transaction
|
|
922
|
+
* being settled.
|
|
923
|
+
*/
|
|
924
|
+
amount?: number;
|
|
925
|
+
}
|
|
926
|
+
export declare namespace Cards {
|
|
927
|
+
export import CardAuthorizationSimulation = API.CardAuthorizationSimulation;
|
|
928
|
+
export import CardAuthorizeParams = API.CardAuthorizeParams;
|
|
929
|
+
export import CardSettlementParams = API.CardSettlementParams;
|
|
930
|
+
}
|
|
931
|
+
//# sourceMappingURL=cards.d.ts.map
|