increase 0.2.0 → 0.4.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/.prettierignore +1 -0
- package/.release-please-manifest.json +3 -0
- package/.stats.yml +1 -1
- package/CHANGELOG.md +130 -0
- package/README.md +19 -5
- package/api.md +99 -0
- package/bin/check-release-environment +25 -0
- package/bin/publish-npm +6 -0
- package/check-version.ts +4 -1
- package/core.ts +32 -126
- package/dist/cjs/check-version.d.ts +1 -0
- package/dist/cjs/check-version.d.ts.map +1 -0
- package/dist/cjs/check-version.js +3 -1
- package/dist/cjs/check-version.js.map +1 -1
- package/dist/cjs/core.d.ts +25 -55
- package/dist/cjs/core.d.ts.map +1 -0
- package/dist/cjs/core.js +43 -168
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/error.d.ts +208 -0
- package/dist/cjs/error.d.ts.map +1 -0
- package/dist/cjs/error.js +326 -0
- package/dist/cjs/error.js.map +1 -0
- package/dist/cjs/examples/api-error.d.ts +3 -0
- package/dist/cjs/examples/api-error.d.ts.map +1 -0
- package/dist/cjs/examples/api-error.js +92 -0
- package/dist/cjs/examples/api-error.js.map +1 -0
- package/dist/cjs/fetch-polyfill.d.ts +1 -0
- package/dist/cjs/fetch-polyfill.d.ts.map +1 -0
- package/dist/cjs/fetch-polyfill.js +2 -2
- package/dist/cjs/fetch-polyfill.js.map +1 -1
- package/dist/cjs/index.d.ts +81 -22
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +80 -26
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/pagination.d.ts +4 -0
- package/dist/cjs/pagination.d.ts.map +1 -0
- package/dist/cjs/pagination.js.map +1 -1
- package/dist/cjs/resource.d.ts +1 -0
- package/dist/cjs/resource.d.ts.map +1 -0
- package/dist/cjs/resources/account-numbers.d.ts +26 -0
- package/dist/cjs/resources/account-numbers.d.ts.map +1 -0
- package/dist/cjs/resources/account-numbers.js.map +1 -1
- package/dist/cjs/resources/account-statements.d.ts +1 -0
- package/dist/cjs/resources/account-statements.d.ts.map +1 -0
- package/dist/cjs/resources/account-statements.js.map +1 -1
- package/dist/cjs/resources/account-transfers.d.ts +20 -11
- package/dist/cjs/resources/account-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/account-transfers.js.map +1 -1
- package/dist/cjs/resources/accounts.d.ts +41 -19
- package/dist/cjs/resources/accounts.d.ts.map +1 -0
- package/dist/cjs/resources/accounts.js.map +1 -1
- package/dist/cjs/resources/ach-prenotifications.d.ts +4 -0
- package/dist/cjs/resources/ach-prenotifications.d.ts.map +1 -0
- package/dist/cjs/resources/ach-prenotifications.js.map +1 -1
- package/dist/cjs/resources/ach-transfers.d.ts +89 -9
- package/dist/cjs/resources/ach-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/ach-transfers.js.map +1 -1
- package/dist/cjs/resources/balance-lookups.d.ts +47 -0
- package/dist/cjs/resources/balance-lookups.d.ts.map +1 -0
- package/dist/cjs/resources/balance-lookups.js +15 -0
- package/dist/cjs/resources/balance-lookups.js.map +1 -0
- package/dist/cjs/resources/bookkeeping-accounts.d.ts +71 -0
- package/dist/cjs/resources/bookkeeping-accounts.d.ts.map +1 -0
- package/dist/cjs/resources/bookkeeping-accounts.js +29 -0
- package/dist/cjs/resources/bookkeeping-accounts.js.map +1 -0
- package/dist/cjs/resources/bookkeeping-entries.d.ts +43 -0
- package/dist/cjs/resources/bookkeeping-entries.d.ts.map +1 -0
- package/dist/cjs/resources/bookkeeping-entries.js +19 -0
- package/dist/cjs/resources/bookkeeping-entries.js.map +1 -0
- package/dist/cjs/resources/bookkeeping-entry-sets.d.ts +83 -0
- package/dist/cjs/resources/bookkeeping-entry-sets.d.ts.map +1 -0
- package/dist/cjs/resources/bookkeeping-entry-sets.js +15 -0
- package/dist/cjs/resources/bookkeeping-entry-sets.js.map +1 -0
- package/dist/cjs/resources/card-disputes.d.ts +13 -3
- package/dist/cjs/resources/card-disputes.d.ts.map +1 -0
- package/dist/cjs/resources/card-disputes.js.map +1 -1
- package/dist/cjs/resources/card-profiles.d.ts +18 -2
- package/dist/cjs/resources/card-profiles.d.ts.map +1 -0
- package/dist/cjs/resources/card-profiles.js.map +1 -1
- package/dist/cjs/resources/cards.d.ts +31 -2
- package/dist/cjs/resources/cards.d.ts.map +1 -0
- package/dist/cjs/resources/cards.js.map +1 -1
- package/dist/cjs/resources/check-deposits.d.ts +16 -1
- package/dist/cjs/resources/check-deposits.d.ts.map +1 -0
- package/dist/cjs/resources/check-deposits.js.map +1 -1
- package/dist/cjs/resources/check-transfers.d.ts +104 -5
- package/dist/cjs/resources/check-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/check-transfers.js.map +1 -1
- package/dist/cjs/resources/declined-transactions.d.ts +85 -23
- package/dist/cjs/resources/declined-transactions.d.ts.map +1 -0
- package/dist/cjs/resources/declined-transactions.js.map +1 -1
- package/dist/cjs/resources/digital-wallet-tokens.d.ts +1 -0
- package/dist/cjs/resources/digital-wallet-tokens.d.ts.map +1 -0
- package/dist/cjs/resources/digital-wallet-tokens.js.map +1 -1
- package/dist/cjs/resources/documents.d.ts +105 -4
- package/dist/cjs/resources/documents.d.ts.map +1 -0
- package/dist/cjs/resources/documents.js.map +1 -1
- package/dist/cjs/resources/entities/entities.d.ts +363 -136
- package/dist/cjs/resources/entities/entities.d.ts.map +1 -0
- package/dist/cjs/resources/entities/entities.js +1 -1
- package/dist/cjs/resources/entities/entities.js.map +1 -1
- package/dist/cjs/resources/entities/index.d.ts +7 -1
- package/dist/cjs/resources/entities/index.d.ts.map +1 -0
- package/dist/cjs/resources/entities/index.js +8 -1
- package/dist/cjs/resources/entities/index.js.map +1 -1
- package/dist/cjs/resources/entities/supplemental-documents.d.ts +36 -0
- package/dist/cjs/resources/entities/supplemental-documents.d.ts.map +1 -0
- package/dist/cjs/resources/entities/supplemental-documents.js +14 -1
- package/dist/cjs/resources/entities/supplemental-documents.js.map +1 -1
- package/dist/cjs/resources/event-subscriptions.d.ts +5 -0
- package/dist/cjs/resources/event-subscriptions.d.ts.map +1 -0
- package/dist/cjs/resources/event-subscriptions.js.map +1 -1
- package/dist/cjs/resources/events.d.ts +30 -24
- package/dist/cjs/resources/events.d.ts.map +1 -0
- package/dist/cjs/resources/events.js.map +1 -1
- package/dist/cjs/resources/exports.d.ts +162 -0
- package/dist/cjs/resources/exports.d.ts.map +1 -0
- package/dist/cjs/resources/exports.js +31 -0
- package/dist/cjs/resources/exports.js.map +1 -0
- package/dist/cjs/resources/external-accounts.d.ts +4 -2
- package/dist/cjs/resources/external-accounts.d.ts.map +1 -0
- package/dist/cjs/resources/external-accounts.js.map +1 -1
- package/dist/cjs/resources/files.d.ts +10 -4
- package/dist/cjs/resources/files.d.ts.map +1 -0
- package/dist/cjs/resources/files.js.map +1 -1
- package/dist/cjs/resources/groups.d.ts +1 -0
- package/dist/cjs/resources/groups.d.ts.map +1 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts +4 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts.map +1 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.js.map +1 -1
- package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts +1 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts.map +1 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.js.map +1 -1
- package/dist/cjs/resources/index.d.ts +29 -0
- package/dist/cjs/resources/index.d.ts.map +1 -0
- package/dist/cjs/resources/index.js +100 -9
- package/dist/cjs/resources/index.js.map +1 -1
- package/dist/cjs/resources/limits.d.ts +1 -0
- package/dist/cjs/resources/limits.d.ts.map +1 -0
- package/dist/cjs/resources/limits.js.map +1 -1
- package/dist/cjs/resources/oauth-connections.d.ts +1 -0
- package/dist/cjs/resources/oauth-connections.d.ts.map +1 -0
- package/dist/cjs/resources/oauth-connections.js.map +1 -1
- package/dist/cjs/resources/pending-transactions.d.ts +115 -36
- package/dist/cjs/resources/pending-transactions.d.ts.map +1 -0
- package/dist/cjs/resources/pending-transactions.js.map +1 -1
- package/dist/cjs/resources/programs.d.ts +48 -0
- package/dist/cjs/resources/programs.d.ts.map +1 -0
- package/dist/cjs/resources/programs.js +25 -0
- package/dist/cjs/resources/programs.js.map +1 -0
- package/dist/cjs/resources/real-time-decisions.d.ts +43 -7
- package/dist/cjs/resources/real-time-decisions.d.ts.map +1 -0
- package/dist/cjs/resources/real-time-payments-transfers.d.ts +287 -0
- package/dist/cjs/resources/real-time-payments-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/real-time-payments-transfers.js +35 -0
- package/dist/cjs/resources/real-time-payments-transfers.js.map +1 -0
- package/dist/cjs/resources/routing-numbers.d.ts +1 -0
- package/dist/cjs/resources/routing-numbers.d.ts.map +1 -0
- package/dist/cjs/resources/shared.d.ts +1 -0
- package/dist/cjs/resources/shared.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/account-statements.d.ts +1 -0
- package/dist/cjs/resources/simulations/account-statements.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/account-transfers.d.ts +1 -0
- package/dist/cjs/resources/simulations/account-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/ach-transfers.d.ts +470 -157
- package/dist/cjs/resources/simulations/ach-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/card-disputes.d.ts +1 -0
- package/dist/cjs/resources/simulations/card-disputes.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/card-refunds.d.ts +1 -0
- package/dist/cjs/resources/simulations/card-refunds.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/cards.d.ts +188 -56
- package/dist/cjs/resources/simulations/cards.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/check-deposits.d.ts +1 -0
- package/dist/cjs/resources/simulations/check-deposits.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/check-transfers.d.ts +16 -0
- package/dist/cjs/resources/simulations/check-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/check-transfers.js +10 -0
- package/dist/cjs/resources/simulations/check-transfers.js.map +1 -1
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts +1 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/documents.d.ts +1 -0
- package/dist/cjs/resources/simulations/documents.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts +1 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/index.d.ts +5 -0
- package/dist/cjs/resources/simulations/index.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/interest-payments.d.ts +1237 -0
- package/dist/cjs/resources/simulations/interest-payments.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/interest-payments.js +16 -0
- package/dist/cjs/resources/simulations/interest-payments.js.map +1 -0
- package/dist/cjs/resources/simulations/programs.d.ts +21 -0
- package/dist/cjs/resources/simulations/programs.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/programs.js +17 -0
- package/dist/cjs/resources/simulations/programs.js.map +1 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +470 -155
- package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js +11 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/dist/cjs/resources/simulations/simulations.d.ts +5 -0
- package/dist/cjs/resources/simulations/simulations.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/simulations.js +4 -0
- package/dist/cjs/resources/simulations/simulations.js.map +1 -1
- package/dist/cjs/resources/simulations/wire-transfers.d.ts +332 -133
- package/dist/cjs/resources/simulations/wire-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/transactions.d.ts +353 -165
- package/dist/cjs/resources/transactions.d.ts.map +1 -0
- package/dist/cjs/resources/transactions.js.map +1 -1
- package/dist/cjs/resources/wire-drawdown-requests.d.ts +5 -0
- package/dist/cjs/resources/wire-drawdown-requests.d.ts.map +1 -0
- package/dist/cjs/resources/wire-drawdown-requests.js.map +1 -1
- package/dist/cjs/resources/wire-transfers.d.ts +39 -4
- package/dist/cjs/resources/wire-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/wire-transfers.js.map +1 -1
- package/dist/cjs/streaming.d.ts +13 -0
- package/dist/cjs/streaming.d.ts.map +1 -0
- package/dist/cjs/streaming.js +282 -0
- package/dist/cjs/streaming.js.map +1 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.js +25 -28
- package/dist/cjs/tests/api-resources/account-numbers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/account-statements.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-statements.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/account-statements.test.js +7 -20
- package/dist/cjs/tests/api-resources/account-statements.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/account-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.js +16 -29
- package/dist/cjs/tests/api-resources/account-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/accounts.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/accounts.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/accounts.test.js +22 -23
- package/dist/cjs/tests/api-resources/accounts.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js +12 -24
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.js +17 -31
- package/dist/cjs/tests/api-resources/ach-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/balance-lookups.test.js +55 -0
- package/dist/cjs/tests/api-resources/balance-lookups.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js +78 -0
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js +65 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js +66 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.js +18 -24
- package/dist/cjs/tests/api-resources/card-disputes.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/card-profiles.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.js +28 -19
- package/dist/cjs/tests/api-resources/card-profiles.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/cards.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/cards.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/cards.test.js +13 -35
- package/dist/cjs/tests/api-resources/cards.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/check-deposits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.js +24 -27
- package/dist/cjs/tests/api-resources/check-deposits.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/check-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.js +27 -40
- package/dist/cjs/tests/api-resources/check-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.js +9 -23
- package/dist/cjs/tests/api-resources/declined-transactions.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js +8 -21
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/documents.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/documents.test.js +15 -23
- package/dist/cjs/tests/api-resources/documents.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/entities/entities.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.js +40 -31
- package/dist/cjs/tests/api-resources/entities/entities.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js +25 -6
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js +10 -20
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/events.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/events.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/events.test.js +8 -22
- package/dist/cjs/tests/api-resources/events.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/exports.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/exports.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/exports.test.js +101 -0
- package/dist/cjs/tests/api-resources/exports.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.js +13 -27
- package/dist/cjs/tests/api-resources/external-accounts.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/files.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/files.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/files.test.js +8 -21
- package/dist/cjs/tests/api-resources/files.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/groups.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/groups.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/groups.test.js +6 -5
- package/dist/cjs/tests/api-resources/groups.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js +16 -12
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js +6 -9
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/limits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/limits.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/limits.test.js +14 -17
- package/dist/cjs/tests/api-resources/limits.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.js +6 -9
- package/dist/cjs/tests/api-resources/oauth-connections.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.js +13 -17
- package/dist/cjs/tests/api-resources/pending-transactions.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/programs.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/programs.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/programs.test.js +73 -0
- package/dist/cjs/tests/api-resources/programs.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js +6 -16
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js +113 -0
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.js +6 -5
- package/dist/cjs/tests/api-resources/routing-numbers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js +11 -8
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js +5 -4
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js +13 -19
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js +8 -7
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js +11 -8
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.js +12 -10
- package/dist/cjs/tests/api-resources/simulations/cards.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js +5 -4
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js +23 -4
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js +11 -8
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.js +10 -7
- package/dist/cjs/tests/api-resources/simulations/documents.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js +29 -28
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js +58 -0
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/programs.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/simulations/programs.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/programs.test.js +52 -0
- package/dist/cjs/tests/api-resources/simulations/programs.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js +20 -12
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js +11 -10
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/transactions.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/transactions.test.js +11 -28
- package/dist/cjs/tests/api-resources/transactions.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js +20 -23
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.js +22 -36
- package/dist/cjs/tests/api-resources/wire-transfers.test.js.map +1 -1
- package/dist/cjs/tests/form.test.d.ts +1 -0
- package/dist/cjs/tests/form.test.d.ts.map +1 -0
- package/dist/cjs/tests/form.test.js +4 -3
- package/dist/cjs/tests/index.test.d.ts +1 -0
- package/dist/cjs/tests/index.test.d.ts.map +1 -0
- package/dist/cjs/tests/index.test.js +36 -4
- package/dist/cjs/tests/index.test.js.map +1 -1
- package/dist/cjs/tests/responses.test.d.ts +1 -0
- package/dist/cjs/tests/responses.test.d.ts.map +1 -0
- package/dist/cjs/tests/responses.test.js +4 -3
- package/dist/cjs/version.d.ts +2 -1
- package/dist/cjs/version.d.ts.map +1 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/error.ts +505 -0
- package/examples/api-error.ts +21 -0
- package/fetch-polyfill.ts +2 -2
- package/index.ts +90 -20
- package/package.json +2 -2
- package/pagination.ts +3 -0
- package/release-please-config.json +61 -0
- package/resources/account-numbers.ts +30 -1
- package/resources/account-statements.ts +0 -1
- package/resources/account-transfers.ts +21 -13
- package/resources/accounts.ts +48 -23
- package/resources/ach-prenotifications.ts +3 -1
- package/resources/ach-transfers.ts +92 -11
- package/resources/balance-lookups.ts +57 -0
- package/resources/bookkeeping-accounts.ts +98 -0
- package/resources/bookkeeping-entries.ts +62 -0
- package/resources/bookkeeping-entry-sets.ts +100 -0
- package/resources/card-disputes.ts +12 -4
- package/resources/card-profiles.ts +17 -3
- package/resources/cards.ts +30 -3
- package/resources/check-deposits.ts +15 -2
- package/resources/check-transfers.ts +117 -7
- package/resources/declined-transactions.ts +96 -27
- package/resources/digital-wallet-tokens.ts +0 -1
- package/resources/documents.ts +104 -5
- package/resources/entities/entities.ts +443 -212
- package/resources/entities/index.ts +6 -1
- package/resources/entities/supplemental-documents.ts +46 -0
- package/resources/event-subscriptions.ts +4 -1
- package/resources/events.ts +33 -29
- package/resources/exports.ts +204 -0
- package/resources/external-accounts.ts +3 -3
- package/resources/files.ts +9 -5
- package/resources/inbound-ach-transfer-returns.ts +3 -1
- package/resources/inbound-wire-drawdown-requests.ts +0 -1
- package/resources/index.ts +28 -0
- package/resources/limits.ts +0 -1
- package/resources/oauth-connections.ts +0 -1
- package/resources/pending-transactions.ts +126 -48
- package/resources/programs.ts +70 -0
- package/resources/real-time-decisions.ts +43 -8
- package/resources/real-time-payments-transfers.ts +351 -0
- package/resources/simulations/ach-transfers.ts +504 -192
- package/resources/simulations/cards.ts +206 -69
- package/resources/simulations/check-transfers.ts +19 -0
- package/resources/simulations/index.ts +4 -0
- package/resources/simulations/interest-payments.ts +1501 -0
- package/resources/simulations/programs.ts +26 -0
- package/resources/simulations/real-time-payments-transfers.ts +512 -190
- package/resources/simulations/simulations.ts +4 -0
- package/resources/simulations/wire-transfers.ts +354 -165
- package/resources/transactions.ts +379 -202
- package/resources/wire-drawdown-requests.ts +4 -1
- package/resources/wire-transfers.ts +43 -6
- package/streaming.ts +199 -0
- package/tests/api-resources/account-numbers.test.ts +22 -25
- package/tests/api-resources/account-statements.test.ts +4 -17
- package/tests/api-resources/account-transfers.test.ts +13 -26
- package/tests/api-resources/accounts.test.ts +19 -20
- package/tests/api-resources/ach-prenotifications.test.ts +9 -21
- package/tests/api-resources/ach-transfers.test.ts +14 -28
- package/tests/api-resources/balance-lookups.test.ts +18 -0
- package/tests/api-resources/bookkeeping-accounts.test.ts +38 -0
- package/tests/api-resources/bookkeeping-entries.test.ts +25 -0
- package/tests/api-resources/bookkeeping-entry-sets.test.ts +29 -0
- package/tests/api-resources/card-disputes.test.ts +15 -21
- package/tests/api-resources/card-profiles.test.ts +25 -16
- package/tests/api-resources/cards.test.ts +10 -32
- package/tests/api-resources/check-deposits.test.ts +21 -24
- package/tests/api-resources/check-transfers.test.ts +24 -37
- package/tests/api-resources/declined-transactions.test.ts +6 -20
- package/tests/api-resources/digital-wallet-tokens.test.ts +5 -18
- package/tests/api-resources/documents.test.ts +8 -20
- package/tests/api-resources/entities/entities.test.ts +37 -31
- package/tests/api-resources/entities/supplemental-documents.test.ts +22 -3
- package/tests/api-resources/event-subscriptions.test.ts +7 -17
- package/tests/api-resources/events.test.ts +5 -19
- package/tests/api-resources/exports.test.ts +64 -0
- package/tests/api-resources/external-accounts.test.ts +10 -24
- package/tests/api-resources/files.test.ts +5 -19
- package/tests/api-resources/groups.test.ts +3 -2
- package/tests/api-resources/inbound-ach-transfer-returns.test.ts +13 -9
- package/tests/api-resources/inbound-wire-drawdown-requests.test.ts +3 -6
- package/tests/api-resources/limits.test.ts +11 -14
- package/tests/api-resources/oauth-connections.test.ts +3 -6
- package/tests/api-resources/pending-transactions.test.ts +10 -14
- package/tests/api-resources/programs.test.ts +36 -0
- package/tests/api-resources/real-time-decisions.test.ts +3 -13
- package/tests/api-resources/real-time-payments-transfers.test.ts +76 -0
- package/tests/api-resources/routing-numbers.test.ts +3 -2
- package/tests/api-resources/simulations/account-statements.test.ts +8 -5
- package/tests/api-resources/simulations/account-transfers.test.ts +2 -1
- package/tests/api-resources/simulations/ach-transfers.test.ts +10 -16
- package/tests/api-resources/simulations/card-disputes.test.ts +5 -4
- package/tests/api-resources/simulations/card-refunds.test.ts +8 -5
- package/tests/api-resources/simulations/cards.test.ts +9 -7
- package/tests/api-resources/simulations/check-deposits.test.ts +2 -1
- package/tests/api-resources/simulations/check-transfers.test.ts +14 -1
- package/tests/api-resources/simulations/digital-wallet-token-requests.test.ts +8 -5
- package/tests/api-resources/simulations/documents.test.ts +7 -4
- package/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.ts +26 -25
- package/tests/api-resources/simulations/interest-payments.test.ts +15 -0
- package/tests/api-resources/simulations/programs.test.ts +15 -0
- package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +17 -9
- package/tests/api-resources/simulations/wire-transfers.test.ts +8 -7
- package/tests/api-resources/transactions.test.ts +8 -25
- package/tests/api-resources/wire-drawdown-requests.test.ts +17 -20
- package/tests/api-resources/wire-transfers.test.ts +19 -33
- package/tests/index.test.ts +30 -1
- package/tsconfig.json +2 -0
- package/version.ts +1 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import * as Core from '~/core';
|
|
4
4
|
import { APIResource } from '~/resource';
|
|
5
5
|
import { isRequestOptions } from '~/core';
|
|
6
|
-
import { Page, PageParams } from '~/pagination';
|
|
7
6
|
import * as Shared from '~/resources/shared';
|
|
7
|
+
import { Page, PageParams } from '~/pagination';
|
|
8
8
|
|
|
9
9
|
export class PendingTransactions extends APIResource {
|
|
10
10
|
/**
|
|
@@ -32,7 +32,6 @@ export class PendingTransactions extends APIResource {
|
|
|
32
32
|
if (isRequestOptions(query)) {
|
|
33
33
|
return this.list({}, query);
|
|
34
34
|
}
|
|
35
|
-
|
|
36
35
|
return this.getAPIList('/pending_transactions', PendingTransactionsPage, { query, ...options });
|
|
37
36
|
}
|
|
38
37
|
}
|
|
@@ -55,6 +54,12 @@ export interface PendingTransaction {
|
|
|
55
54
|
*/
|
|
56
55
|
amount: number;
|
|
57
56
|
|
|
57
|
+
/**
|
|
58
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
|
|
59
|
+
* Transaction was completed.
|
|
60
|
+
*/
|
|
61
|
+
completed_at: string | null;
|
|
62
|
+
|
|
58
63
|
/**
|
|
59
64
|
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
|
|
60
65
|
* Transaction occured.
|
|
@@ -89,7 +94,7 @@ export interface PendingTransaction {
|
|
|
89
94
|
/**
|
|
90
95
|
* The type of the route this Pending Transaction came through.
|
|
91
96
|
*/
|
|
92
|
-
route_type:
|
|
97
|
+
route_type: 'account_number' | 'card' | null;
|
|
93
98
|
|
|
94
99
|
/**
|
|
95
100
|
* This is an object giving more details on the network-level event that caused the
|
|
@@ -112,6 +117,11 @@ export interface PendingTransaction {
|
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
export namespace PendingTransaction {
|
|
120
|
+
/**
|
|
121
|
+
* This is an object giving more details on the network-level event that caused the
|
|
122
|
+
* Pending Transaction. For example, for a card transaction this lists the
|
|
123
|
+
* merchant's industry and location.
|
|
124
|
+
*/
|
|
115
125
|
export interface Source {
|
|
116
126
|
/**
|
|
117
127
|
* A Account Transfer Instruction object. This field will be present in the JSON
|
|
@@ -131,12 +141,6 @@ export namespace PendingTransaction {
|
|
|
131
141
|
*/
|
|
132
142
|
card_authorization: Source.CardAuthorization | null;
|
|
133
143
|
|
|
134
|
-
/**
|
|
135
|
-
* A Deprecated Card Authorization object. This field will be present in the JSON
|
|
136
|
-
* response if and only if `category` is equal to `card_route_authorization`.
|
|
137
|
-
*/
|
|
138
|
-
card_route_authorization: Source.CardRouteAuthorization | null;
|
|
139
|
-
|
|
140
144
|
/**
|
|
141
145
|
* The type of transaction that took place. We may add additional possible values
|
|
142
146
|
* for this enum over time; your application should be able to handle such
|
|
@@ -149,9 +153,7 @@ export namespace PendingTransaction {
|
|
|
149
153
|
| 'check_deposit_instruction'
|
|
150
154
|
| 'check_transfer_instruction'
|
|
151
155
|
| 'inbound_funds_hold'
|
|
152
|
-
| 'card_route_authorization'
|
|
153
156
|
| 'real_time_payments_transfer_instruction'
|
|
154
|
-
| 'wire_drawdown_payment_instruction'
|
|
155
157
|
| 'wire_transfer_instruction'
|
|
156
158
|
| 'other';
|
|
157
159
|
|
|
@@ -174,11 +176,11 @@ export namespace PendingTransaction {
|
|
|
174
176
|
inbound_funds_hold: Source.InboundFundsHold | null;
|
|
175
177
|
|
|
176
178
|
/**
|
|
177
|
-
* A
|
|
178
|
-
* JSON response if and only if `category` is equal to
|
|
179
|
-
* `
|
|
179
|
+
* A Real Time Payments Transfer Instruction object. This field will be present in
|
|
180
|
+
* the JSON response if and only if `category` is equal to
|
|
181
|
+
* `real_time_payments_transfer_instruction`.
|
|
180
182
|
*/
|
|
181
|
-
|
|
183
|
+
real_time_payments_transfer_instruction: Source.RealTimePaymentsTransferInstruction | null;
|
|
182
184
|
|
|
183
185
|
/**
|
|
184
186
|
* A Wire Transfer Instruction object. This field will be present in the JSON
|
|
@@ -188,6 +190,10 @@ export namespace PendingTransaction {
|
|
|
188
190
|
}
|
|
189
191
|
|
|
190
192
|
export namespace Source {
|
|
193
|
+
/**
|
|
194
|
+
* A Account Transfer Instruction object. This field will be present in the JSON
|
|
195
|
+
* response if and only if `category` is equal to `account_transfer_instruction`.
|
|
196
|
+
*/
|
|
191
197
|
export interface AccountTransferInstruction {
|
|
192
198
|
/**
|
|
193
199
|
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
@@ -207,6 +213,10 @@ export namespace PendingTransaction {
|
|
|
207
213
|
transfer_id: string;
|
|
208
214
|
}
|
|
209
215
|
|
|
216
|
+
/**
|
|
217
|
+
* A ACH Transfer Instruction object. This field will be present in the JSON
|
|
218
|
+
* response if and only if `category` is equal to `ach_transfer_instruction`.
|
|
219
|
+
*/
|
|
210
220
|
export interface ACHTransferInstruction {
|
|
211
221
|
/**
|
|
212
222
|
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
@@ -220,6 +230,10 @@ export namespace PendingTransaction {
|
|
|
220
230
|
transfer_id: string;
|
|
221
231
|
}
|
|
222
232
|
|
|
233
|
+
/**
|
|
234
|
+
* A Card Authorization object. This field will be present in the JSON response if
|
|
235
|
+
* and only if `category` is equal to `card_authorization`.
|
|
236
|
+
*/
|
|
223
237
|
export interface CardAuthorization {
|
|
224
238
|
/**
|
|
225
239
|
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
@@ -239,6 +253,17 @@ export namespace PendingTransaction {
|
|
|
239
253
|
*/
|
|
240
254
|
digital_wallet_token_id: string | null;
|
|
241
255
|
|
|
256
|
+
/**
|
|
257
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) when this authorization
|
|
258
|
+
* will expire and the pending transaction will be released.
|
|
259
|
+
*/
|
|
260
|
+
expires_at: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* The Card Authorization identifier.
|
|
264
|
+
*/
|
|
265
|
+
id: string;
|
|
266
|
+
|
|
242
267
|
/**
|
|
243
268
|
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
244
269
|
* is transacting with.
|
|
@@ -276,14 +301,28 @@ export namespace PendingTransaction {
|
|
|
276
301
|
*/
|
|
277
302
|
network_details: CardAuthorization.NetworkDetails;
|
|
278
303
|
|
|
304
|
+
/**
|
|
305
|
+
* The identifier of the Pending Transaction associated with this Transaction.
|
|
306
|
+
*/
|
|
307
|
+
pending_transaction_id: string | null;
|
|
308
|
+
|
|
279
309
|
/**
|
|
280
310
|
* The identifier of the Real-Time Decision sent to approve or decline this
|
|
281
311
|
* transaction.
|
|
282
312
|
*/
|
|
283
313
|
real_time_decision_id: string | null;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* A constant representing the object's type. For this resource it will always be
|
|
317
|
+
* `card_authorization`.
|
|
318
|
+
*/
|
|
319
|
+
type: 'card_authorization';
|
|
284
320
|
}
|
|
285
321
|
|
|
286
322
|
export namespace CardAuthorization {
|
|
323
|
+
/**
|
|
324
|
+
* Fields specific to the `network`
|
|
325
|
+
*/
|
|
287
326
|
export interface NetworkDetails {
|
|
288
327
|
/**
|
|
289
328
|
* Fields specific to the `visa` network
|
|
@@ -292,6 +331,9 @@ export namespace PendingTransaction {
|
|
|
292
331
|
}
|
|
293
332
|
|
|
294
333
|
export namespace NetworkDetails {
|
|
334
|
+
/**
|
|
335
|
+
* Fields specific to the `visa` network
|
|
336
|
+
*/
|
|
295
337
|
export interface Visa {
|
|
296
338
|
/**
|
|
297
339
|
* For electronic commerce transactions, this identifies the level of security used
|
|
@@ -313,11 +355,15 @@ export namespace PendingTransaction {
|
|
|
313
355
|
* The method used to enter the cardholder's primary account number and card
|
|
314
356
|
* expiration date
|
|
315
357
|
*/
|
|
316
|
-
point_of_service_entry_mode: Shared.PointOfServiceEntryMode;
|
|
358
|
+
point_of_service_entry_mode: Shared.PointOfServiceEntryMode | null;
|
|
317
359
|
}
|
|
318
360
|
}
|
|
319
361
|
}
|
|
320
362
|
|
|
363
|
+
/**
|
|
364
|
+
* A Check Deposit Instruction object. This field will be present in the JSON
|
|
365
|
+
* response if and only if `category` is equal to `check_deposit_instruction`.
|
|
366
|
+
*/
|
|
321
367
|
export interface CheckDepositInstruction {
|
|
322
368
|
/**
|
|
323
369
|
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
@@ -349,6 +395,10 @@ export namespace PendingTransaction {
|
|
|
349
395
|
front_image_file_id: string;
|
|
350
396
|
}
|
|
351
397
|
|
|
398
|
+
/**
|
|
399
|
+
* A Check Transfer Instruction object. This field will be present in the JSON
|
|
400
|
+
* response if and only if `category` is equal to `check_transfer_instruction`.
|
|
401
|
+
*/
|
|
352
402
|
export interface CheckTransferInstruction {
|
|
353
403
|
/**
|
|
354
404
|
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
@@ -368,6 +418,10 @@ export namespace PendingTransaction {
|
|
|
368
418
|
transfer_id: string;
|
|
369
419
|
}
|
|
370
420
|
|
|
421
|
+
/**
|
|
422
|
+
* A Inbound Funds Hold object. This field will be present in the JSON response if
|
|
423
|
+
* and only if `category` is equal to `inbound_funds_hold`.
|
|
424
|
+
*/
|
|
371
425
|
export interface InboundFundsHold {
|
|
372
426
|
/**
|
|
373
427
|
* The held amount in the minor unit of the account's currency. For dollars, for
|
|
@@ -381,6 +435,12 @@ export namespace PendingTransaction {
|
|
|
381
435
|
*/
|
|
382
436
|
automatically_releases_at: string;
|
|
383
437
|
|
|
438
|
+
/**
|
|
439
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the hold
|
|
440
|
+
* was created.
|
|
441
|
+
*/
|
|
442
|
+
created_at: string;
|
|
443
|
+
|
|
384
444
|
/**
|
|
385
445
|
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's
|
|
386
446
|
* currency.
|
|
@@ -392,6 +452,11 @@ export namespace PendingTransaction {
|
|
|
392
452
|
*/
|
|
393
453
|
held_transaction_id: string | null;
|
|
394
454
|
|
|
455
|
+
/**
|
|
456
|
+
* The ID of the Pending Transaction representing the held funds.
|
|
457
|
+
*/
|
|
458
|
+
pending_transaction_id: string | null;
|
|
459
|
+
|
|
395
460
|
/**
|
|
396
461
|
* When the hold was released (if it has been released).
|
|
397
462
|
*/
|
|
@@ -403,7 +468,12 @@ export namespace PendingTransaction {
|
|
|
403
468
|
status: 'held' | 'complete';
|
|
404
469
|
}
|
|
405
470
|
|
|
406
|
-
|
|
471
|
+
/**
|
|
472
|
+
* A Real Time Payments Transfer Instruction object. This field will be present in
|
|
473
|
+
* the JSON response if and only if `category` is equal to
|
|
474
|
+
* `real_time_payments_transfer_instruction`.
|
|
475
|
+
*/
|
|
476
|
+
export interface RealTimePaymentsTransferInstruction {
|
|
407
477
|
/**
|
|
408
478
|
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
409
479
|
* for example, this is cents.
|
|
@@ -411,38 +481,16 @@ export namespace PendingTransaction {
|
|
|
411
481
|
amount: number;
|
|
412
482
|
|
|
413
483
|
/**
|
|
414
|
-
* The
|
|
415
|
-
*
|
|
416
|
-
*/
|
|
417
|
-
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
418
|
-
|
|
419
|
-
merchant_acceptor_id: string;
|
|
420
|
-
|
|
421
|
-
merchant_category_code: string;
|
|
422
|
-
|
|
423
|
-
merchant_city: string | null;
|
|
424
|
-
|
|
425
|
-
merchant_country: string;
|
|
426
|
-
|
|
427
|
-
merchant_descriptor: string;
|
|
428
|
-
|
|
429
|
-
merchant_state: string | null;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
export interface WireDrawdownPaymentInstruction {
|
|
433
|
-
account_number: string;
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
437
|
-
* for example, this is cents.
|
|
484
|
+
* The identifier of the Real Time Payments Transfer that led to this Pending
|
|
485
|
+
* Transaction.
|
|
438
486
|
*/
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
message_to_recipient: string;
|
|
442
|
-
|
|
443
|
-
routing_number: string;
|
|
487
|
+
transfer_id: string;
|
|
444
488
|
}
|
|
445
489
|
|
|
490
|
+
/**
|
|
491
|
+
* A Wire Transfer Instruction object. This field will be present in the JSON
|
|
492
|
+
* response if and only if `category` is equal to `wire_transfer_instruction`.
|
|
493
|
+
*/
|
|
446
494
|
export interface WireTransferInstruction {
|
|
447
495
|
account_number: string;
|
|
448
496
|
|
|
@@ -467,6 +515,8 @@ export interface PendingTransactionListParams extends PageParams {
|
|
|
467
515
|
*/
|
|
468
516
|
account_id?: string;
|
|
469
517
|
|
|
518
|
+
created_at?: PendingTransactionListParams.CreatedAt;
|
|
519
|
+
|
|
470
520
|
/**
|
|
471
521
|
* Filter pending transactions to those belonging to the specified Route.
|
|
472
522
|
*/
|
|
@@ -481,10 +531,38 @@ export interface PendingTransactionListParams extends PageParams {
|
|
|
481
531
|
}
|
|
482
532
|
|
|
483
533
|
export namespace PendingTransactionListParams {
|
|
534
|
+
export interface CreatedAt {
|
|
535
|
+
/**
|
|
536
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
537
|
+
* timestamp.
|
|
538
|
+
*/
|
|
539
|
+
after?: string;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
543
|
+
* timestamp.
|
|
544
|
+
*/
|
|
545
|
+
before?: string;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Return results on or after this
|
|
549
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
550
|
+
*/
|
|
551
|
+
on_or_after?: string;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Return results on or before this
|
|
555
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
556
|
+
*/
|
|
557
|
+
on_or_before?: string;
|
|
558
|
+
}
|
|
559
|
+
|
|
484
560
|
export interface Status {
|
|
485
561
|
/**
|
|
486
|
-
*
|
|
487
|
-
*
|
|
562
|
+
* Filter Pending Transactions for those with the specified status. By default only
|
|
563
|
+
* Pending Transactions in with status `pending` will be returned. For GET
|
|
564
|
+
* requests, this should be encoded as a comma-delimited string, such as
|
|
565
|
+
* `?in=one,two,three`.
|
|
488
566
|
*/
|
|
489
567
|
in?: Array<'pending' | 'complete'>;
|
|
490
568
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from '~/core';
|
|
4
|
+
import { APIResource } from '~/resource';
|
|
5
|
+
import { isRequestOptions } from '~/core';
|
|
6
|
+
import { Page, PageParams } from '~/pagination';
|
|
7
|
+
|
|
8
|
+
export class Programs extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a Program
|
|
11
|
+
*/
|
|
12
|
+
retrieve(programId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<Program>> {
|
|
13
|
+
return this.get(`/programs/${programId}`, options);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* List Programs
|
|
18
|
+
*/
|
|
19
|
+
list(query?: ProgramListParams, options?: Core.RequestOptions): Core.PagePromise<ProgramsPage>;
|
|
20
|
+
list(options?: Core.RequestOptions): Core.PagePromise<ProgramsPage>;
|
|
21
|
+
list(
|
|
22
|
+
query: ProgramListParams | Core.RequestOptions = {},
|
|
23
|
+
options?: Core.RequestOptions,
|
|
24
|
+
): Core.PagePromise<ProgramsPage> {
|
|
25
|
+
if (isRequestOptions(query)) {
|
|
26
|
+
return this.list({}, query);
|
|
27
|
+
}
|
|
28
|
+
return this.getAPIList('/programs', ProgramsPage, { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class ProgramsPage extends Page<Program> {}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Programs determine the compliance and commercial terms of Accounts. By default,
|
|
36
|
+
* you have a Commercial Banking program for managing your own funds. If you are
|
|
37
|
+
* lending or managing funds on behalf of your customers, or otherwise engaged in
|
|
38
|
+
* regulated activity, we will work together to create additional Programs for you.
|
|
39
|
+
*/
|
|
40
|
+
export interface Program {
|
|
41
|
+
/**
|
|
42
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Program
|
|
43
|
+
* was created.
|
|
44
|
+
*/
|
|
45
|
+
created_at: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The Program identifier.
|
|
49
|
+
*/
|
|
50
|
+
id: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The name of the Program.
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* A constant representing the object's type. For this resource it will always be
|
|
59
|
+
* `program`.
|
|
60
|
+
*/
|
|
61
|
+
type: 'program';
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Program
|
|
65
|
+
* was last updated.
|
|
66
|
+
*/
|
|
67
|
+
updated_at: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface ProgramListParams extends PageParams {}
|
|
@@ -87,6 +87,9 @@ export interface RealTimeDecision {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
export namespace RealTimeDecision {
|
|
90
|
+
/**
|
|
91
|
+
* Fields related to a card authorization.
|
|
92
|
+
*/
|
|
90
93
|
export interface CardAuthorization {
|
|
91
94
|
/**
|
|
92
95
|
* The identifier of the Account the authorization will debit.
|
|
@@ -167,6 +170,9 @@ export namespace RealTimeDecision {
|
|
|
167
170
|
}
|
|
168
171
|
|
|
169
172
|
export namespace CardAuthorization {
|
|
173
|
+
/**
|
|
174
|
+
* Fields specific to the `network`
|
|
175
|
+
*/
|
|
170
176
|
export interface NetworkDetails {
|
|
171
177
|
/**
|
|
172
178
|
* Fields specific to the `visa` network
|
|
@@ -175,6 +181,9 @@ export namespace RealTimeDecision {
|
|
|
175
181
|
}
|
|
176
182
|
|
|
177
183
|
export namespace NetworkDetails {
|
|
184
|
+
/**
|
|
185
|
+
* Fields specific to the `visa` network
|
|
186
|
+
*/
|
|
178
187
|
export interface Visa {
|
|
179
188
|
/**
|
|
180
189
|
* For electronic commerce transactions, this identifies the level of security used
|
|
@@ -196,11 +205,14 @@ export namespace RealTimeDecision {
|
|
|
196
205
|
* The method used to enter the cardholder's primary account number and card
|
|
197
206
|
* expiration date
|
|
198
207
|
*/
|
|
199
|
-
point_of_service_entry_mode: Shared.PointOfServiceEntryMode;
|
|
208
|
+
point_of_service_entry_mode: Shared.PointOfServiceEntryMode | null;
|
|
200
209
|
}
|
|
201
210
|
}
|
|
202
211
|
}
|
|
203
212
|
|
|
213
|
+
/**
|
|
214
|
+
* Fields related to a digital wallet token provisioning attempt.
|
|
215
|
+
*/
|
|
204
216
|
export interface DigitalWalletToken {
|
|
205
217
|
/**
|
|
206
218
|
* The identifier of the Card that is being tokenized.
|
|
@@ -226,6 +238,9 @@ export namespace RealTimeDecision {
|
|
|
226
238
|
digital_wallet: 'apple_pay' | 'google_pay';
|
|
227
239
|
}
|
|
228
240
|
|
|
241
|
+
/**
|
|
242
|
+
* Fields related to a digital wallet authentication attempt.
|
|
243
|
+
*/
|
|
229
244
|
export interface DigitalWalletAuthentication {
|
|
230
245
|
/**
|
|
231
246
|
* The identifier of the Card that is being tokenized.
|
|
@@ -286,6 +301,10 @@ export interface RealTimeDecisionActionParams {
|
|
|
286
301
|
}
|
|
287
302
|
|
|
288
303
|
export namespace RealTimeDecisionActionParams {
|
|
304
|
+
/**
|
|
305
|
+
* If the Real-Time Decision relates to a card authorization attempt, this object
|
|
306
|
+
* contains your response to the authorization.
|
|
307
|
+
*/
|
|
289
308
|
export interface CardAuthorization {
|
|
290
309
|
/**
|
|
291
310
|
* Whether the card authorization should be approved or declined.
|
|
@@ -293,6 +312,21 @@ export namespace RealTimeDecisionActionParams {
|
|
|
293
312
|
decision: 'approve' | 'decline';
|
|
294
313
|
}
|
|
295
314
|
|
|
315
|
+
/**
|
|
316
|
+
* If the Real-Time Decision relates to a digital wallet authentication attempt,
|
|
317
|
+
* this object contains your response to the authentication.
|
|
318
|
+
*/
|
|
319
|
+
export interface DigitalWalletAuthentication {
|
|
320
|
+
/**
|
|
321
|
+
* Whether your application was able to deliver the one-time passcode.
|
|
322
|
+
*/
|
|
323
|
+
result: 'success' | 'failure';
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* If the Real-Time Decision relates to a digital wallet token provisioning
|
|
328
|
+
* attempt, this object contains your response to the attempt.
|
|
329
|
+
*/
|
|
296
330
|
export interface DigitalWalletToken {
|
|
297
331
|
/**
|
|
298
332
|
* If your application approves the provisioning attempt, this contains metadata
|
|
@@ -308,6 +342,10 @@ export namespace RealTimeDecisionActionParams {
|
|
|
308
342
|
}
|
|
309
343
|
|
|
310
344
|
export namespace DigitalWalletToken {
|
|
345
|
+
/**
|
|
346
|
+
* If your application approves the provisioning attempt, this contains metadata
|
|
347
|
+
* about the digital wallet token that will be generated.
|
|
348
|
+
*/
|
|
311
349
|
export interface Approval {
|
|
312
350
|
/**
|
|
313
351
|
* The identifier of the Card Profile to assign to the Digital Wallet token.
|
|
@@ -327,6 +365,10 @@ export namespace RealTimeDecisionActionParams {
|
|
|
327
365
|
phone?: string;
|
|
328
366
|
}
|
|
329
367
|
|
|
368
|
+
/**
|
|
369
|
+
* If your application declines the provisioning attempt, this contains details
|
|
370
|
+
* about the decline.
|
|
371
|
+
*/
|
|
330
372
|
export interface Decline {
|
|
331
373
|
/**
|
|
332
374
|
* Why the tokenization attempt was declined. This is for logging purposes only and
|
|
@@ -335,11 +377,4 @@ export namespace RealTimeDecisionActionParams {
|
|
|
335
377
|
reason?: string;
|
|
336
378
|
}
|
|
337
379
|
}
|
|
338
|
-
|
|
339
|
-
export interface DigitalWalletAuthentication {
|
|
340
|
-
/**
|
|
341
|
-
* Whether your application was able to deliver the one-time passcode.
|
|
342
|
-
*/
|
|
343
|
-
result: 'success' | 'failure';
|
|
344
|
-
}
|
|
345
380
|
}
|