increase 0.4.0 → 0.6.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/_shims/agent.d.ts +9 -0
- package/_shims/agent.d.ts.map +1 -0
- package/_shims/agent.js +14 -0
- package/_shims/agent.js.map +1 -0
- package/_shims/agent.mjs +10 -0
- package/_shims/agent.mjs.map +1 -0
- package/_shims/agent.node.d.ts +7 -0
- package/_shims/agent.node.d.ts.map +1 -0
- package/_shims/agent.node.js +28 -0
- package/_shims/agent.node.js.map +1 -0
- package/_shims/agent.node.mjs +16 -0
- package/_shims/agent.node.mjs.map +1 -0
- package/_shims/fetch.d.ts +52 -0
- package/_shims/fetch.js +13 -0
- package/_shims/fetch.mjs +15 -0
- package/_shims/fetch.node.d.ts +53 -0
- package/_shims/fetch.node.js +12 -0
- package/_shims/fetch.node.mjs +14 -0
- package/_shims/fileFromPath.d.ts +22 -0
- package/_shims/fileFromPath.d.ts.map +1 -0
- package/_shims/fileFromPath.js +16 -0
- package/_shims/fileFromPath.js.map +1 -0
- package/_shims/fileFromPath.mjs +12 -0
- package/_shims/fileFromPath.mjs.map +1 -0
- package/_shims/fileFromPath.node.d.ts +17 -0
- package/_shims/fileFromPath.node.d.ts.map +1 -0
- package/_shims/fileFromPath.node.js +17 -0
- package/_shims/fileFromPath.node.js.map +1 -0
- package/_shims/fileFromPath.node.mjs +13 -0
- package/_shims/fileFromPath.node.mjs.map +1 -0
- package/_shims/formdata.d.ts +43 -0
- package/_shims/formdata.js +9 -0
- package/_shims/formdata.mjs +11 -0
- package/_shims/formdata.node.d.ts +44 -0
- package/_shims/formdata.node.js +11 -0
- package/_shims/formdata.node.mjs +9 -0
- package/_shims/getMultipartRequestOptions.d.ts +10 -0
- package/_shims/getMultipartRequestOptions.d.ts.map +1 -0
- package/_shims/getMultipartRequestOptions.js +12 -0
- package/_shims/getMultipartRequestOptions.js.map +1 -0
- package/_shims/getMultipartRequestOptions.mjs +8 -0
- package/_shims/getMultipartRequestOptions.mjs.map +1 -0
- package/_shims/getMultipartRequestOptions.node.d.ts +10 -0
- package/_shims/getMultipartRequestOptions.node.d.ts.map +1 -0
- package/_shims/getMultipartRequestOptions.node.js +22 -0
- package/_shims/getMultipartRequestOptions.node.js.map +1 -0
- package/_shims/getMultipartRequestOptions.node.mjs +18 -0
- package/_shims/getMultipartRequestOptions.node.mjs.map +1 -0
- package/_shims/node-readable.d.ts +23 -0
- package/_shims/node-readable.d.ts.map +1 -0
- package/_shims/node-readable.js +11 -0
- package/_shims/node-readable.js.map +1 -0
- package/_shims/node-readable.mjs +7 -0
- package/_shims/node-readable.mjs.map +1 -0
- package/_shims/node-readable.node.d.ts +8 -0
- package/_shims/node-readable.node.d.ts.map +1 -0
- package/_shims/node-readable.node.js +9 -0
- package/_shims/node-readable.node.js.map +1 -0
- package/_shims/node-readable.node.mjs +5 -0
- package/_shims/node-readable.node.mjs.map +1 -0
- package/core.d.ts +226 -0
- package/core.d.ts.map +1 -0
- package/core.js +683 -0
- package/core.js.map +1 -0
- package/core.mjs +587 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +208 -0
- package/error.d.ts.map +1 -0
- package/error.js +326 -0
- package/error.js.map +1 -0
- package/error.mjs +277 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +344 -0
- package/index.d.ts +344 -0
- package/index.d.ts.map +1 -0
- package/index.js +285 -0
- package/index.js.map +1 -0
- package/index.mjs +216 -0
- package/index.mjs.map +1 -0
- package/package.json +57 -20
- package/pagination.d.ts +34 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +30 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +26 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.ts +12 -0
- package/resource.d.ts.map +1 -0
- package/resource.js.map +1 -0
- package/resource.mjs +13 -0
- package/resource.mjs.map +1 -0
- package/resources/account-numbers.d.ts +151 -0
- package/resources/account-numbers.d.ts.map +1 -0
- package/resources/account-numbers.js +38 -0
- package/resources/account-numbers.js.map +1 -0
- package/resources/account-numbers.mjs +33 -0
- package/resources/account-numbers.mjs.map +1 -0
- package/resources/account-statements.d.ts +108 -0
- package/resources/account-statements.d.ts.map +1 -0
- package/resources/account-statements.js +28 -0
- package/resources/account-statements.js.map +1 -0
- package/resources/account-statements.mjs +21 -0
- package/resources/account-statements.mjs.map +1 -0
- package/resources/account-transfers.d.ts +218 -0
- package/resources/account-transfers.d.ts.map +1 -0
- package/resources/account-transfers.js +46 -0
- package/resources/account-transfers.js.map +1 -0
- package/resources/account-transfers.mjs +39 -0
- package/resources/account-transfers.mjs.map +1 -0
- package/resources/accounts.d.ts +178 -0
- package/resources/accounts.d.ts.map +1 -0
- package/resources/accounts.js +44 -0
- package/resources/accounts.js.map +1 -0
- package/resources/accounts.mjs +39 -0
- package/resources/accounts.mjs.map +1 -0
- package/resources/ach-prenotifications.d.ts +216 -0
- package/resources/ach-prenotifications.d.ts.map +1 -0
- package/resources/ach-prenotifications.js +34 -0
- package/resources/ach-prenotifications.js.map +1 -0
- package/resources/ach-prenotifications.mjs +27 -0
- package/resources/ach-prenotifications.mjs.map +1 -0
- package/resources/ach-transfers.d.ts +640 -0
- package/resources/ach-transfers.d.ts.map +1 -0
- package/resources/ach-transfers.js +44 -0
- package/resources/ach-transfers.js.map +1 -0
- package/resources/ach-transfers.mjs +39 -0
- package/resources/ach-transfers.mjs.map +1 -0
- package/resources/balance-lookups.d.ts +52 -0
- package/resources/balance-lookups.d.ts.map +1 -0
- package/resources/balance-lookups.js +16 -0
- package/resources/balance-lookups.js.map +1 -0
- package/resources/balance-lookups.mjs +12 -0
- package/resources/balance-lookups.mjs.map +1 -0
- package/resources/bookkeeping-accounts.d.ts +86 -0
- package/resources/bookkeeping-accounts.d.ts.map +1 -0
- package/resources/bookkeeping-accounts.js +28 -0
- package/resources/bookkeeping-accounts.js.map +1 -0
- package/resources/bookkeeping-accounts.mjs +21 -0
- package/resources/bookkeeping-accounts.mjs.map +1 -0
- package/resources/bookkeeping-entries.d.ts +51 -0
- package/resources/bookkeeping-entries.d.ts.map +1 -0
- package/resources/bookkeeping-entries.js +22 -0
- package/resources/bookkeeping-entries.js.map +1 -0
- package/resources/bookkeeping-entries.mjs +15 -0
- package/resources/bookkeeping-entries.mjs.map +1 -0
- package/resources/bookkeeping-entry-sets.d.ts +88 -0
- package/resources/bookkeeping-entry-sets.d.ts.map +1 -0
- package/resources/bookkeeping-entry-sets.js +18 -0
- package/resources/bookkeeping-entry-sets.js.map +1 -0
- package/resources/bookkeeping-entry-sets.mjs +12 -0
- package/resources/bookkeeping-entry-sets.mjs.map +1 -0
- package/resources/card-disputes.d.ts +167 -0
- package/resources/card-disputes.d.ts.map +1 -0
- package/resources/card-disputes.js +32 -0
- package/resources/card-disputes.js.map +1 -0
- package/resources/card-disputes.mjs +27 -0
- package/resources/card-disputes.mjs.map +1 -0
- package/resources/card-profiles.d.ts +214 -0
- package/resources/card-profiles.d.ts.map +1 -0
- package/resources/card-profiles.js +32 -0
- package/resources/card-profiles.js.map +1 -0
- package/resources/card-profiles.mjs +27 -0
- package/resources/card-profiles.mjs.map +1 -0
- package/resources/cards.d.ts +364 -0
- package/resources/cards.d.ts.map +1 -0
- package/resources/cards.js +44 -0
- package/resources/cards.js.map +1 -0
- package/resources/cards.mjs +39 -0
- package/resources/cards.mjs.map +1 -0
- package/resources/check-deposits.d.ts +324 -0
- package/resources/check-deposits.d.ts.map +1 -0
- package/resources/check-deposits.js +32 -0
- package/resources/check-deposits.js.map +1 -0
- package/resources/check-deposits.mjs +27 -0
- package/resources/check-deposits.mjs.map +1 -0
- package/resources/check-transfers.d.ts +454 -0
- package/resources/check-transfers.d.ts.map +1 -0
- package/resources/check-transfers.js +50 -0
- package/resources/check-transfers.js.map +1 -0
- package/resources/check-transfers.mjs +45 -0
- package/resources/check-transfers.mjs.map +1 -0
- package/resources/declined-transactions.d.ts +633 -0
- package/resources/declined-transactions.d.ts.map +1 -0
- package/resources/declined-transactions.js +28 -0
- package/resources/declined-transactions.js.map +1 -0
- package/resources/declined-transactions.mjs +21 -0
- package/resources/declined-transactions.mjs.map +1 -0
- package/resources/digital-wallet-tokens.d.ts +103 -0
- package/resources/digital-wallet-tokens.d.ts.map +1 -0
- package/resources/digital-wallet-tokens.js +28 -0
- package/resources/digital-wallet-tokens.js.map +1 -0
- package/resources/digital-wallet-tokens.mjs +21 -0
- package/resources/digital-wallet-tokens.mjs.map +1 -0
- package/resources/documents.d.ts +103 -0
- package/resources/documents.d.ts.map +1 -0
- package/resources/documents.js +26 -0
- package/resources/documents.js.map +1 -0
- package/resources/documents.mjs +21 -0
- package/resources/documents.mjs.map +1 -0
- package/resources/entities/entities.d.ts +1734 -0
- package/resources/entities/entities.d.ts.map +1 -0
- package/resources/entities/entities.js +81 -0
- package/resources/entities/entities.js.map +1 -0
- package/resources/entities/entities.mjs +36 -0
- package/resources/entities/entities.mjs.map +1 -0
- package/resources/entities/index.d.ts +9 -0
- package/resources/entities/index.d.ts.map +1 -0
- package/resources/entities/index.js +35 -0
- package/resources/entities/index.js.map +1 -0
- package/resources/entities/index.mjs +4 -0
- package/resources/entities/index.mjs.map +1 -0
- package/resources/entities/supplemental-documents.d.ts +64 -0
- package/resources/entities/supplemental-documents.d.ts.map +1 -0
- package/resources/entities/supplemental-documents.js +30 -0
- package/resources/entities/supplemental-documents.js.map +1 -0
- package/resources/entities/supplemental-documents.mjs +23 -0
- package/resources/entities/supplemental-documents.mjs.map +1 -0
- package/resources/event-subscriptions.d.ts +373 -0
- package/resources/event-subscriptions.d.ts.map +1 -0
- package/resources/event-subscriptions.js +40 -0
- package/resources/event-subscriptions.js.map +1 -0
- package/resources/event-subscriptions.mjs +33 -0
- package/resources/event-subscriptions.mjs.map +1 -0
- package/resources/events.d.ts +271 -0
- package/resources/events.d.ts.map +1 -0
- package/resources/events.js +26 -0
- package/resources/events.js.map +1 -0
- package/resources/events.mjs +21 -0
- package/resources/events.mjs.map +1 -0
- package/resources/exports.d.ts +182 -0
- package/resources/exports.d.ts.map +1 -0
- package/resources/exports.js +32 -0
- package/resources/exports.js.map +1 -0
- package/resources/exports.mjs +27 -0
- package/resources/exports.mjs.map +1 -0
- package/resources/external-accounts.d.ts +153 -0
- package/resources/external-accounts.d.ts.map +1 -0
- package/resources/external-accounts.js +40 -0
- package/resources/external-accounts.js.map +1 -0
- package/resources/external-accounts.mjs +33 -0
- package/resources/external-accounts.mjs.map +1 -0
- package/resources/files.d.ts +217 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +35 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +30 -0
- package/resources/files.mjs.map +1 -0
- package/resources/groups.d.ts +48 -0
- package/resources/groups.d.ts.map +1 -0
- package/resources/groups.js +16 -0
- package/resources/groups.js.map +1 -0
- package/resources/groups.mjs +12 -0
- package/resources/groups.mjs.map +1 -0
- package/resources/inbound-ach-transfer-returns.d.ts +159 -0
- package/resources/inbound-ach-transfer-returns.d.ts.map +1 -0
- package/resources/inbound-ach-transfer-returns.js +37 -0
- package/resources/inbound-ach-transfer-returns.js.map +1 -0
- package/resources/inbound-ach-transfer-returns.mjs +30 -0
- package/resources/inbound-ach-transfer-returns.mjs.map +1 -0
- package/resources/inbound-wire-drawdown-requests.d.ts +133 -0
- package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -0
- package/resources/inbound-wire-drawdown-requests.js +32 -0
- package/resources/inbound-wire-drawdown-requests.js.map +1 -0
- package/resources/inbound-wire-drawdown-requests.mjs +26 -0
- package/resources/inbound-wire-drawdown-requests.mjs.map +1 -0
- package/resources/index.d.ts +200 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +569 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +44 -0
- package/resources/index.mjs.map +1 -0
- package/resources/limits.d.ts +152 -0
- package/resources/limits.d.ts.map +1 -0
- package/resources/limits.js +38 -0
- package/resources/limits.js.map +1 -0
- package/resources/limits.mjs +33 -0
- package/resources/limits.mjs.map +1 -0
- package/resources/oauth-connections.d.ts +62 -0
- package/resources/oauth-connections.d.ts.map +1 -0
- package/resources/oauth-connections.js +28 -0
- package/resources/oauth-connections.js.map +1 -0
- package/resources/oauth-connections.mjs +21 -0
- package/resources/oauth-connections.mjs.map +1 -0
- package/resources/pending-transactions.d.ts +594 -0
- package/resources/pending-transactions.d.ts.map +1 -0
- package/resources/pending-transactions.js +28 -0
- package/resources/pending-transactions.js.map +1 -0
- package/resources/pending-transactions.mjs +21 -0
- package/resources/pending-transactions.mjs.map +1 -0
- package/resources/programs.d.ts +56 -0
- package/resources/programs.d.ts.map +1 -0
- package/resources/programs.js +26 -0
- package/resources/programs.js.map +1 -0
- package/resources/programs.mjs +21 -0
- package/resources/programs.mjs.map +1 -0
- package/resources/real-time-decisions.d.ts +400 -0
- package/resources/real-time-decisions.d.ts.map +1 -0
- package/resources/real-time-decisions.js +24 -0
- package/resources/real-time-decisions.js.map +1 -0
- package/resources/real-time-decisions.mjs +18 -0
- package/resources/real-time-decisions.mjs.map +1 -0
- package/resources/real-time-payments-transfers.d.ts +363 -0
- package/resources/real-time-payments-transfers.d.ts.map +1 -0
- package/resources/real-time-payments-transfers.js +37 -0
- package/resources/real-time-payments-transfers.js.map +1 -0
- package/resources/real-time-payments-transfers.mjs +30 -0
- package/resources/real-time-payments-transfers.mjs.map +1 -0
- package/resources/routing-numbers.d.ts +67 -0
- package/resources/routing-numbers.d.ts.map +1 -0
- package/resources/routing-numbers.js +22 -0
- package/resources/routing-numbers.js.map +1 -0
- package/resources/routing-numbers.mjs +17 -0
- package/resources/routing-numbers.mjs.map +1 -0
- package/resources/shared.d.ts +29 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/simulations/account-statements.d.ts +24 -0
- package/resources/simulations/account-statements.d.ts.map +1 -0
- package/resources/simulations/account-statements.js +19 -0
- package/resources/simulations/account-statements.js.map +1 -0
- package/resources/simulations/account-statements.mjs +13 -0
- package/resources/simulations/account-statements.mjs.map +1 -0
- package/resources/simulations/account-transfers.d.ts +16 -0
- package/resources/simulations/account-transfers.d.ts.map +1 -0
- package/resources/simulations/account-transfers.js +18 -0
- package/resources/simulations/account-transfers.js.map +1 -0
- package/resources/simulations/account-transfers.mjs +14 -0
- package/resources/simulations/account-transfers.mjs.map +1 -0
- package/resources/simulations/ach-transfers.d.ts +2439 -0
- package/resources/simulations/ach-transfers.d.ts.map +1 -0
- package/resources/simulations/ach-transfers.js +40 -0
- package/resources/simulations/ach-transfers.js.map +1 -0
- package/resources/simulations/ach-transfers.mjs +36 -0
- package/resources/simulations/ach-transfers.mjs.map +1 -0
- package/resources/simulations/card-disputes.d.ts +35 -0
- package/resources/simulations/card-disputes.d.ts.map +1 -0
- package/resources/simulations/card-disputes.js +19 -0
- package/resources/simulations/card-disputes.js.map +1 -0
- package/resources/simulations/card-disputes.mjs +15 -0
- package/resources/simulations/card-disputes.mjs.map +1 -0
- package/resources/simulations/card-profiles.d.ts +17 -0
- package/resources/simulations/card-profiles.d.ts.map +1 -0
- package/resources/simulations/card-profiles.js +19 -0
- package/resources/simulations/card-profiles.js.map +1 -0
- package/resources/simulations/card-profiles.mjs +15 -0
- package/resources/simulations/card-profiles.mjs.map +1 -0
- package/resources/simulations/card-refunds.d.ts +25 -0
- package/resources/simulations/card-refunds.d.ts.map +1 -0
- package/resources/simulations/card-refunds.js +17 -0
- package/resources/simulations/card-refunds.js.map +1 -0
- package/resources/simulations/card-refunds.mjs +13 -0
- package/resources/simulations/card-refunds.mjs.map +1 -0
- package/resources/simulations/cards.d.ts +1180 -0
- package/resources/simulations/cards.d.ts.map +1 -0
- package/resources/simulations/cards.js +32 -0
- package/resources/simulations/cards.js.map +1 -0
- package/resources/simulations/cards.mjs +28 -0
- package/resources/simulations/cards.mjs.map +1 -0
- package/resources/simulations/check-deposits.d.ts +31 -0
- package/resources/simulations/check-deposits.d.ts.map +1 -0
- package/resources/simulations/check-deposits.js +31 -0
- package/resources/simulations/check-deposits.js.map +1 -0
- package/resources/simulations/check-deposits.mjs +27 -0
- package/resources/simulations/check-deposits.mjs.map +1 -0
- package/resources/simulations/check-transfers.d.ts +23 -0
- package/resources/simulations/check-transfers.d.ts.map +1 -0
- package/resources/simulations/check-transfers.js +24 -0
- package/resources/simulations/check-transfers.js.map +1 -0
- package/resources/simulations/check-transfers.mjs +20 -0
- package/resources/simulations/check-transfers.mjs.map +1 -0
- package/resources/simulations/digital-wallet-token-requests.d.ts +56 -0
- package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -0
- package/resources/simulations/digital-wallet-token-requests.js +20 -0
- package/resources/simulations/digital-wallet-token-requests.js.map +1 -0
- package/resources/simulations/digital-wallet-token-requests.mjs +13 -0
- package/resources/simulations/digital-wallet-token-requests.mjs.map +1 -0
- package/resources/simulations/documents.d.ts +23 -0
- package/resources/simulations/documents.d.ts.map +1 -0
- package/resources/simulations/documents.js +16 -0
- package/resources/simulations/documents.js.map +1 -0
- package/resources/simulations/documents.mjs +12 -0
- package/resources/simulations/documents.mjs.map +1 -0
- package/resources/simulations/inbound-wire-drawdown-requests.d.ts +106 -0
- package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -0
- package/resources/simulations/inbound-wire-drawdown-requests.js +20 -0
- package/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -0
- package/resources/simulations/inbound-wire-drawdown-requests.mjs +15 -0
- package/resources/simulations/inbound-wire-drawdown-requests.mjs.map +1 -0
- package/resources/simulations/index.d.ts +39 -0
- package/resources/simulations/index.d.ts.map +1 -0
- package/resources/simulations/index.js +141 -0
- package/resources/simulations/index.js.map +1 -0
- package/resources/simulations/index.mjs +19 -0
- package/resources/simulations/index.mjs.map +1 -0
- package/resources/simulations/interest-payments.d.ts +1591 -0
- package/resources/simulations/interest-payments.d.ts.map +1 -0
- package/resources/simulations/interest-payments.js +19 -0
- package/resources/simulations/interest-payments.js.map +1 -0
- package/resources/simulations/interest-payments.mjs +13 -0
- package/resources/simulations/interest-payments.mjs.map +1 -0
- package/resources/simulations/programs.d.ts +25 -0
- package/resources/simulations/programs.d.ts.map +1 -0
- package/resources/simulations/programs.js +18 -0
- package/resources/simulations/programs.js.map +1 -0
- package/resources/simulations/programs.mjs +14 -0
- package/resources/simulations/programs.mjs.map +1 -0
- package/resources/simulations/real-time-payments-transfers.d.ts +2289 -0
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -0
- package/resources/simulations/real-time-payments-transfers.js +30 -0
- package/resources/simulations/real-time-payments-transfers.js.map +1 -0
- package/resources/simulations/real-time-payments-transfers.mjs +24 -0
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -0
- package/resources/simulations/simulations.d.ts +76 -0
- package/resources/simulations/simulations.d.ts.map +1 -0
- package/resources/simulations/simulations.js +109 -0
- package/resources/simulations/simulations.js.map +1 -0
- package/resources/simulations/simulations.mjs +59 -0
- package/resources/simulations/simulations.mjs.map +1 -0
- package/resources/simulations/wire-transfers.d.ts +1657 -0
- package/resources/simulations/wire-transfers.d.ts.map +1 -0
- package/resources/simulations/wire-transfers.js +16 -0
- package/resources/simulations/wire-transfers.js.map +1 -0
- package/resources/simulations/wire-transfers.mjs +12 -0
- package/resources/simulations/wire-transfers.mjs.map +1 -0
- package/resources/transactions.d.ts +1646 -0
- package/resources/transactions.d.ts.map +1 -0
- package/resources/transactions.js +26 -0
- package/resources/transactions.js.map +1 -0
- package/resources/transactions.mjs +21 -0
- package/resources/transactions.mjs.map +1 -0
- package/resources/wire-drawdown-requests.d.ts +169 -0
- package/resources/wire-drawdown-requests.d.ts.map +1 -0
- package/resources/wire-drawdown-requests.js +34 -0
- package/resources/wire-drawdown-requests.js.map +1 -0
- package/resources/wire-drawdown-requests.mjs +27 -0
- package/resources/wire-drawdown-requests.mjs.map +1 -0
- package/resources/wire-transfers.d.ts +370 -0
- package/resources/wire-transfers.d.ts.map +1 -0
- package/resources/wire-transfers.js +61 -0
- package/resources/wire-transfers.js.map +1 -0
- package/resources/wire-transfers.mjs +56 -0
- package/resources/wire-transfers.mjs.map +1 -0
- package/src/_shims/agent.node.ts +22 -0
- package/src/_shims/agent.ts +12 -0
- package/src/_shims/fetch.d.ts +52 -0
- package/src/_shims/fetch.js +13 -0
- package/src/_shims/fetch.mjs +15 -0
- package/src/_shims/fetch.node.d.ts +53 -0
- package/src/_shims/fetch.node.js +12 -0
- package/src/_shims/fetch.node.mjs +14 -0
- package/src/_shims/fileFromPath.node.ts +29 -0
- package/src/_shims/fileFromPath.ts +29 -0
- package/src/_shims/formdata.d.ts +43 -0
- package/src/_shims/formdata.js +9 -0
- package/src/_shims/formdata.mjs +11 -0
- package/src/_shims/formdata.node.d.ts +44 -0
- package/src/_shims/formdata.node.js +11 -0
- package/src/_shims/formdata.node.mjs +9 -0
- package/src/_shims/getMultipartRequestOptions.node.ts +25 -0
- package/src/_shims/getMultipartRequestOptions.ts +14 -0
- package/src/_shims/node-readable.node.ts +10 -0
- package/src/_shims/node-readable.ts +30 -0
- package/src/core.ts +783 -0
- package/src/error.ts +505 -0
- package/src/index.ts +443 -0
- package/src/pagination.ts +64 -0
- package/src/resources/account-numbers.ts +193 -0
- package/src/resources/account-statements.ts +140 -0
- package/src/resources/account-transfers.ts +273 -0
- package/src/resources/accounts.ts +228 -0
- package/src/resources/ach-prenotifications.ts +269 -0
- package/src/resources/ach-transfers.ts +732 -0
- package/src/resources/balance-lookups.ts +63 -0
- package/src/resources/bookkeeping-accounts.ts +114 -0
- package/src/resources/bookkeeping-entries.ts +71 -0
- package/src/resources/bookkeeping-entry-sets.ts +106 -0
- package/src/resources/card-disputes.ts +210 -0
- package/src/resources/card-profiles.ts +266 -0
- package/src/resources/cards.ts +445 -0
- package/src/resources/check-deposits.ts +385 -0
- package/src/resources/check-transfers.ts +556 -0
- package/src/resources/declined-transactions.ts +764 -0
- package/src/resources/digital-wallet-tokens.ts +132 -0
- package/src/resources/documents.ts +134 -0
- package/src/resources/entities/entities.ts +2025 -0
- package/src/resources/entities/index.ts +10 -0
- package/src/resources/entities/supplemental-documents.ts +81 -0
- package/src/resources/event-subscriptions.ts +408 -0
- package/src/resources/events.ts +302 -0
- package/src/resources/exports.ts +225 -0
- package/src/resources/external-accounts.ts +193 -0
- package/src/resources/files.ts +255 -0
- package/src/resources/groups.ts +58 -0
- package/src/resources/inbound-ach-transfer-returns.ts +194 -0
- package/src/resources/inbound-wire-drawdown-requests.ts +176 -0
- package/src/resources/index.ts +194 -0
- package/src/resources/limits.ts +190 -0
- package/src/resources/oauth-connections.ts +85 -0
- package/src/resources/pending-transactions.ts +688 -0
- package/src/resources/programs.ts +79 -0
- package/src/resources/real-time-decisions.ts +456 -0
- package/src/resources/real-time-payments-transfers.ts +428 -0
- package/src/resources/routing-numbers.ts +80 -0
- package/src/resources/shared.ts +30 -0
- package/src/resources/simulations/account-statements.ts +30 -0
- package/src/resources/simulations/account-transfers.ts +20 -0
- package/src/resources/simulations/ach-transfers.ts +2826 -0
- package/src/resources/simulations/card-disputes.ts +42 -0
- package/src/resources/simulations/card-profiles.ts +21 -0
- package/src/resources/simulations/card-refunds.ts +31 -0
- package/src/resources/simulations/cards.ts +1372 -0
- package/src/resources/simulations/check-deposits.ts +41 -0
- package/src/resources/simulations/check-transfers.ts +30 -0
- package/src/resources/simulations/digital-wallet-token-requests.ts +65 -0
- package/src/resources/simulations/documents.ts +29 -0
- package/src/resources/simulations/inbound-wire-drawdown-requests.ts +131 -0
- package/src/resources/simulations/index.ts +40 -0
- package/src/resources/simulations/interest-payments.ts +1858 -0
- package/src/resources/simulations/programs.ts +31 -0
- package/src/resources/simulations/real-time-payments-transfers.ts +2677 -0
- package/src/resources/simulations/simulations.ts +94 -0
- package/src/resources/simulations/wire-transfers.ts +1937 -0
- package/src/resources/transactions.ts +1930 -0
- package/src/resources/wire-drawdown-requests.ts +215 -0
- package/src/resources/wire-transfers.ts +462 -0
- package/src/streaming.ts +204 -0
- package/src/uploads.ts +248 -0
- package/src/version.ts +1 -0
- package/streaming.d.ts +14 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +155 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +151 -0
- package/streaming.mjs.map +1 -0
- package/uploads.d.ts +90 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +207 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +174 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
- package/.eslintrc.js +0 -10
- package/.prettierignore +0 -1
- package/.prettierrc +0 -6
- package/.release-please-manifest.json +0 -3
- package/.stats.yml +0 -1
- package/CHANGELOG.md +0 -130
- package/LICENSE +0 -201
- package/README.md +0 -225
- package/api.md +0 -576
- package/bin/check-release-environment +0 -25
- package/bin/check-test-server +0 -50
- package/bin/publish-npm +0 -6
- package/build +0 -12
- package/check-version.ts +0 -18
- package/core.ts +0 -814
- package/dist/cjs/check-version.d.ts +0 -2
- package/dist/cjs/check-version.d.ts.map +0 -1
- package/dist/cjs/check-version.js +0 -23
- package/dist/cjs/check-version.js.map +0 -1
- package/dist/cjs/core.d.ts +0 -232
- package/dist/cjs/core.d.ts.map +0 -1
- package/dist/cjs/core.js +0 -854
- package/dist/cjs/core.js.map +0 -1
- package/dist/cjs/error.d.ts +0 -208
- package/dist/cjs/error.d.ts.map +0 -1
- package/dist/cjs/error.js +0 -326
- package/dist/cjs/error.js.map +0 -1
- 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/index.d.ts +0 -261
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -237
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/pagination.d.ts +0 -32
- package/dist/cjs/pagination.d.ts.map +0 -1
- package/dist/cjs/pagination.js +0 -30
- package/dist/cjs/pagination.js.map +0 -1
- package/dist/cjs/resource.d.ts +0 -12
- package/dist/cjs/resource.d.ts.map +0 -1
- package/dist/cjs/resource.js.map +0 -1
- package/dist/cjs/resources/account-numbers.d.ts +0 -129
- package/dist/cjs/resources/account-numbers.d.ts.map +0 -1
- package/dist/cjs/resources/account-numbers.js +0 -37
- package/dist/cjs/resources/account-numbers.js.map +0 -1
- package/dist/cjs/resources/account-statements.d.ts +0 -100
- package/dist/cjs/resources/account-statements.d.ts.map +0 -1
- package/dist/cjs/resources/account-statements.js +0 -25
- package/dist/cjs/resources/account-statements.js.map +0 -1
- package/dist/cjs/resources/account-transfers.d.ts +0 -198
- package/dist/cjs/resources/account-transfers.d.ts.map +0 -1
- package/dist/cjs/resources/account-transfers.js +0 -43
- package/dist/cjs/resources/account-transfers.js.map +0 -1
- package/dist/cjs/resources/accounts.d.ts +0 -155
- package/dist/cjs/resources/accounts.d.ts.map +0 -1
- package/dist/cjs/resources/accounts.js +0 -43
- package/dist/cjs/resources/accounts.js.map +0 -1
- package/dist/cjs/resources/ach-prenotifications.d.ts +0 -192
- package/dist/cjs/resources/ach-prenotifications.d.ts.map +0 -1
- package/dist/cjs/resources/ach-prenotifications.js +0 -35
- package/dist/cjs/resources/ach-prenotifications.js.map +0 -1
- package/dist/cjs/resources/ach-transfers.d.ts +0 -455
- package/dist/cjs/resources/ach-transfers.d.ts.map +0 -1
- package/dist/cjs/resources/ach-transfers.js +0 -43
- package/dist/cjs/resources/ach-transfers.js.map +0 -1
- package/dist/cjs/resources/balance-lookups.d.ts +0 -47
- package/dist/cjs/resources/balance-lookups.d.ts.map +0 -1
- package/dist/cjs/resources/balance-lookups.js +0 -15
- package/dist/cjs/resources/balance-lookups.js.map +0 -1
- package/dist/cjs/resources/bookkeeping-accounts.d.ts +0 -71
- package/dist/cjs/resources/bookkeeping-accounts.d.ts.map +0 -1
- package/dist/cjs/resources/bookkeeping-accounts.js +0 -29
- package/dist/cjs/resources/bookkeeping-accounts.js.map +0 -1
- package/dist/cjs/resources/bookkeeping-entries.d.ts +0 -43
- package/dist/cjs/resources/bookkeeping-entries.d.ts.map +0 -1
- package/dist/cjs/resources/bookkeeping-entries.js +0 -19
- package/dist/cjs/resources/bookkeeping-entries.js.map +0 -1
- package/dist/cjs/resources/bookkeeping-entry-sets.d.ts +0 -83
- package/dist/cjs/resources/bookkeeping-entry-sets.d.ts.map +0 -1
- package/dist/cjs/resources/bookkeeping-entry-sets.js +0 -15
- package/dist/cjs/resources/bookkeeping-entry-sets.js.map +0 -1
- package/dist/cjs/resources/card-disputes.d.ts +0 -153
- package/dist/cjs/resources/card-disputes.d.ts.map +0 -1
- package/dist/cjs/resources/card-disputes.js +0 -31
- package/dist/cjs/resources/card-disputes.js.map +0 -1
- package/dist/cjs/resources/card-profiles.d.ts +0 -199
- package/dist/cjs/resources/card-profiles.d.ts.map +0 -1
- package/dist/cjs/resources/card-profiles.js +0 -31
- package/dist/cjs/resources/card-profiles.js.map +0 -1
- package/dist/cjs/resources/cards.d.ts +0 -345
- package/dist/cjs/resources/cards.d.ts.map +0 -1
- package/dist/cjs/resources/cards.js +0 -43
- package/dist/cjs/resources/cards.js.map +0 -1
- package/dist/cjs/resources/check-deposits.d.ts +0 -256
- package/dist/cjs/resources/check-deposits.d.ts.map +0 -1
- package/dist/cjs/resources/check-deposits.js +0 -31
- package/dist/cjs/resources/check-deposits.js.map +0 -1
- package/dist/cjs/resources/check-transfers.d.ts +0 -430
- package/dist/cjs/resources/check-transfers.d.ts.map +0 -1
- package/dist/cjs/resources/check-transfers.js +0 -49
- package/dist/cjs/resources/check-transfers.js.map +0 -1
- package/dist/cjs/resources/declined-transactions.d.ts +0 -486
- package/dist/cjs/resources/declined-transactions.d.ts.map +0 -1
- package/dist/cjs/resources/declined-transactions.js +0 -29
- package/dist/cjs/resources/declined-transactions.js.map +0 -1
- package/dist/cjs/resources/digital-wallet-tokens.d.ts +0 -86
- package/dist/cjs/resources/digital-wallet-tokens.d.ts.map +0 -1
- package/dist/cjs/resources/digital-wallet-tokens.js +0 -29
- package/dist/cjs/resources/digital-wallet-tokens.js.map +0 -1
- package/dist/cjs/resources/documents.d.ts +0 -188
- package/dist/cjs/resources/documents.d.ts.map +0 -1
- package/dist/cjs/resources/documents.js +0 -25
- package/dist/cjs/resources/documents.js.map +0 -1
- package/dist/cjs/resources/entities/entities.d.ts +0 -1610
- package/dist/cjs/resources/entities/entities.d.ts.map +0 -1
- package/dist/cjs/resources/entities/entities.js +0 -36
- package/dist/cjs/resources/entities/entities.js.map +0 -1
- package/dist/cjs/resources/entities/index.d.ts +0 -8
- package/dist/cjs/resources/entities/index.d.ts.map +0 -1
- package/dist/cjs/resources/entities/index.js +0 -19
- package/dist/cjs/resources/entities/index.js.map +0 -1
- package/dist/cjs/resources/entities/supplemental-documents.d.ts +0 -55
- package/dist/cjs/resources/entities/supplemental-documents.d.ts.map +0 -1
- package/dist/cjs/resources/entities/supplemental-documents.js +0 -28
- package/dist/cjs/resources/entities/supplemental-documents.js.map +0 -1
- package/dist/cjs/resources/event-subscriptions.d.ts +0 -201
- package/dist/cjs/resources/event-subscriptions.d.ts.map +0 -1
- package/dist/cjs/resources/event-subscriptions.js +0 -37
- package/dist/cjs/resources/event-subscriptions.js.map +0 -1
- package/dist/cjs/resources/events.d.ts +0 -189
- package/dist/cjs/resources/events.d.ts.map +0 -1
- package/dist/cjs/resources/events.js +0 -25
- package/dist/cjs/resources/events.js.map +0 -1
- package/dist/cjs/resources/exports.d.ts +0 -162
- package/dist/cjs/resources/exports.d.ts.map +0 -1
- package/dist/cjs/resources/exports.js +0 -31
- package/dist/cjs/resources/exports.js.map +0 -1
- package/dist/cjs/resources/external-accounts.d.ts +0 -123
- package/dist/cjs/resources/external-accounts.d.ts.map +0 -1
- package/dist/cjs/resources/external-accounts.js +0 -37
- package/dist/cjs/resources/external-accounts.js.map +0 -1
- package/dist/cjs/resources/files.d.ts +0 -154
- package/dist/cjs/resources/files.d.ts.map +0 -1
- package/dist/cjs/resources/files.js +0 -34
- package/dist/cjs/resources/files.js.map +0 -1
- package/dist/cjs/resources/groups.d.ts +0 -38
- package/dist/cjs/resources/groups.d.ts.map +0 -1
- package/dist/cjs/resources/groups.js +0 -15
- package/dist/cjs/resources/groups.js.map +0 -1
- package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts +0 -110
- package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts.map +0 -1
- package/dist/cjs/resources/inbound-ach-transfer-returns.js +0 -35
- package/dist/cjs/resources/inbound-ach-transfer-returns.js.map +0 -1
- package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts +0 -125
- package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts.map +0 -1
- package/dist/cjs/resources/inbound-wire-drawdown-requests.js +0 -29
- package/dist/cjs/resources/inbound-wire-drawdown-requests.js.map +0 -1
- package/dist/cjs/resources/index.d.ts +0 -192
- package/dist/cjs/resources/index.d.ts.map +0 -1
- package/dist/cjs/resources/index.js +0 -569
- package/dist/cjs/resources/index.js.map +0 -1
- package/dist/cjs/resources/limits.d.ts +0 -106
- package/dist/cjs/resources/limits.d.ts.map +0 -1
- package/dist/cjs/resources/limits.js +0 -37
- package/dist/cjs/resources/limits.js.map +0 -1
- package/dist/cjs/resources/oauth-connections.d.ts +0 -51
- package/dist/cjs/resources/oauth-connections.d.ts.map +0 -1
- package/dist/cjs/resources/oauth-connections.js +0 -25
- package/dist/cjs/resources/oauth-connections.js.map +0 -1
- package/dist/cjs/resources/pending-transactions.d.ts +0 -476
- package/dist/cjs/resources/pending-transactions.d.ts.map +0 -1
- package/dist/cjs/resources/pending-transactions.js +0 -29
- package/dist/cjs/resources/pending-transactions.js.map +0 -1
- package/dist/cjs/resources/programs.d.ts +0 -48
- package/dist/cjs/resources/programs.d.ts.map +0 -1
- package/dist/cjs/resources/programs.js +0 -25
- package/dist/cjs/resources/programs.js.map +0 -1
- package/dist/cjs/resources/real-time-decisions.d.ts +0 -325
- package/dist/cjs/resources/real-time-decisions.d.ts.map +0 -1
- package/dist/cjs/resources/real-time-decisions.js +0 -21
- package/dist/cjs/resources/real-time-decisions.js.map +0 -1
- package/dist/cjs/resources/real-time-payments-transfers.d.ts +0 -287
- package/dist/cjs/resources/real-time-payments-transfers.d.ts.map +0 -1
- package/dist/cjs/resources/real-time-payments-transfers.js +0 -35
- package/dist/cjs/resources/real-time-payments-transfers.js.map +0 -1
- package/dist/cjs/resources/routing-numbers.d.ts +0 -50
- package/dist/cjs/resources/routing-numbers.d.ts.map +0 -1
- package/dist/cjs/resources/routing-numbers.js +0 -21
- package/dist/cjs/resources/routing-numbers.js.map +0 -1
- package/dist/cjs/resources/shared.d.ts +0 -16
- package/dist/cjs/resources/shared.d.ts.map +0 -1
- package/dist/cjs/resources/shared.js.map +0 -1
- package/dist/cjs/resources/simulations/account-statements.d.ts +0 -20
- package/dist/cjs/resources/simulations/account-statements.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/account-statements.js +0 -16
- package/dist/cjs/resources/simulations/account-statements.js.map +0 -1
- package/dist/cjs/resources/simulations/account-transfers.d.ts +0 -16
- package/dist/cjs/resources/simulations/account-transfers.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/account-transfers.js +0 -18
- package/dist/cjs/resources/simulations/account-transfers.js.map +0 -1
- package/dist/cjs/resources/simulations/ach-transfers.d.ts +0 -1801
- package/dist/cjs/resources/simulations/ach-transfers.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/ach-transfers.js +0 -39
- package/dist/cjs/resources/simulations/ach-transfers.js.map +0 -1
- package/dist/cjs/resources/simulations/card-disputes.d.ts +0 -27
- package/dist/cjs/resources/simulations/card-disputes.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/card-disputes.js +0 -18
- package/dist/cjs/resources/simulations/card-disputes.js.map +0 -1
- package/dist/cjs/resources/simulations/card-refunds.d.ts +0 -21
- package/dist/cjs/resources/simulations/card-refunds.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/card-refunds.js +0 -16
- package/dist/cjs/resources/simulations/card-refunds.js.map +0 -1
- package/dist/cjs/resources/simulations/cards.d.ts +0 -925
- package/dist/cjs/resources/simulations/cards.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/cards.js +0 -31
- package/dist/cjs/resources/simulations/cards.js.map +0 -1
- package/dist/cjs/resources/simulations/check-deposits.d.ts +0 -31
- package/dist/cjs/resources/simulations/check-deposits.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/check-deposits.js +0 -31
- package/dist/cjs/resources/simulations/check-deposits.js.map +0 -1
- package/dist/cjs/resources/simulations/check-transfers.d.ts +0 -38
- package/dist/cjs/resources/simulations/check-transfers.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/check-transfers.js +0 -34
- package/dist/cjs/resources/simulations/check-transfers.js.map +0 -1
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts +0 -44
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.js +0 -16
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.js.map +0 -1
- package/dist/cjs/resources/simulations/documents.d.ts +0 -19
- package/dist/cjs/resources/simulations/documents.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/documents.js +0 -15
- package/dist/cjs/resources/simulations/documents.js.map +0 -1
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts +0 -102
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.js +0 -16
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.js.map +0 -1
- package/dist/cjs/resources/simulations/index.d.ts +0 -25
- package/dist/cjs/resources/simulations/index.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/index.js +0 -4
- package/dist/cjs/resources/simulations/index.js.map +0 -1
- package/dist/cjs/resources/simulations/interest-payments.d.ts +0 -1237
- package/dist/cjs/resources/simulations/interest-payments.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/interest-payments.js +0 -16
- package/dist/cjs/resources/simulations/interest-payments.js.map +0 -1
- package/dist/cjs/resources/simulations/programs.d.ts +0 -21
- package/dist/cjs/resources/simulations/programs.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/programs.js +0 -17
- package/dist/cjs/resources/simulations/programs.js.map +0 -1
- package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +0 -1746
- package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js +0 -27
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js.map +0 -1
- package/dist/cjs/resources/simulations/simulations.d.ts +0 -34
- package/dist/cjs/resources/simulations/simulations.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/simulations.js +0 -48
- package/dist/cjs/resources/simulations/simulations.js.map +0 -1
- package/dist/cjs/resources/simulations/wire-transfers.d.ts +0 -1303
- package/dist/cjs/resources/simulations/wire-transfers.d.ts.map +0 -1
- package/dist/cjs/resources/simulations/wire-transfers.js +0 -15
- package/dist/cjs/resources/simulations/wire-transfers.js.map +0 -1
- package/dist/cjs/resources/transactions.d.ts +0 -1289
- package/dist/cjs/resources/transactions.d.ts.map +0 -1
- package/dist/cjs/resources/transactions.js +0 -25
- package/dist/cjs/resources/transactions.js.map +0 -1
- package/dist/cjs/resources/wire-drawdown-requests.d.ts +0 -153
- package/dist/cjs/resources/wire-drawdown-requests.d.ts.map +0 -1
- package/dist/cjs/resources/wire-drawdown-requests.js +0 -35
- package/dist/cjs/resources/wire-drawdown-requests.js.map +0 -1
- package/dist/cjs/resources/wire-transfers.d.ts +0 -345
- package/dist/cjs/resources/wire-transfers.d.ts.map +0 -1
- package/dist/cjs/resources/wire-transfers.js +0 -60
- package/dist/cjs/resources/wire-transfers.js.map +0 -1
- package/dist/cjs/streaming.d.ts +0 -13
- package/dist/cjs/streaming.d.ts.map +0 -1
- package/dist/cjs/streaming.js +0 -282
- package/dist/cjs/streaming.js.map +0 -1
- package/dist/cjs/tests/api-resources/account-numbers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/account-numbers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/account-numbers.test.js +0 -101
- package/dist/cjs/tests/api-resources/account-numbers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/account-statements.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/account-statements.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/account-statements.test.js +0 -88
- package/dist/cjs/tests/api-resources/account-statements.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/account-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/account-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/account-transfers.test.js +0 -133
- package/dist/cjs/tests/api-resources/account-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/accounts.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/accounts.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/accounts.test.js +0 -118
- package/dist/cjs/tests/api-resources/accounts.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js +0 -113
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/ach-transfers.test.js +0 -145
- package/dist/cjs/tests/api-resources/ach-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/balance-lookups.test.js +0 -55
- package/dist/cjs/tests/api-resources/balance-lookups.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js +0 -78
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js +0 -65
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js +0 -66
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/card-disputes.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/card-disputes.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/card-disputes.test.js +0 -102
- package/dist/cjs/tests/api-resources/card-disputes.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/card-profiles.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/card-profiles.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/card-profiles.test.js +0 -106
- package/dist/cjs/tests/api-resources/card-profiles.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/cards.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/cards.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/cards.test.js +0 -116
- package/dist/cjs/tests/api-resources/cards.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/check-deposits.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/check-deposits.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/check-deposits.test.js +0 -110
- package/dist/cjs/tests/api-resources/check-deposits.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/check-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/check-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/check-transfers.test.js +0 -159
- package/dist/cjs/tests/api-resources/check-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/declined-transactions.test.js +0 -91
- package/dist/cjs/tests/api-resources/declined-transactions.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js +0 -90
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/documents.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/documents.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/documents.test.js +0 -93
- package/dist/cjs/tests/api-resources/documents.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/entities/entities.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/entities/entities.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/entities/entities.test.js +0 -289
- package/dist/cjs/tests/api-resources/entities/entities.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js +0 -68
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js +0 -99
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/events.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/events.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/events.test.js +0 -87
- package/dist/cjs/tests/api-resources/events.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/exports.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/exports.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/exports.test.js +0 -101
- package/dist/cjs/tests/api-resources/exports.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/external-accounts.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/external-accounts.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/external-accounts.test.js +0 -99
- package/dist/cjs/tests/api-resources/external-accounts.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/files.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/files.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/files.test.js +0 -104
- package/dist/cjs/tests/api-resources/files.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/groups.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/groups.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/groups.test.js +0 -55
- package/dist/cjs/tests/api-resources/groups.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js +0 -94
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js +0 -80
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/limits.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/limits.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/limits.test.js +0 -97
- package/dist/cjs/tests/api-resources/limits.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/oauth-connections.test.js +0 -75
- package/dist/cjs/tests/api-resources/oauth-connections.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/pending-transactions.test.js +0 -93
- package/dist/cjs/tests/api-resources/pending-transactions.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/programs.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/programs.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/programs.test.js +0 -73
- package/dist/cjs/tests/api-resources/programs.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js +0 -61
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js +0 -113
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/routing-numbers.test.js +0 -56
- package/dist/cjs/tests/api-resources/routing-numbers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js +0 -52
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js +0 -61
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js +0 -86
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js +0 -57
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js +0 -52
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/cards.test.js +0 -72
- package/dist/cjs/tests/api-resources/simulations/cards.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js +0 -87
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js +0 -92
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js +0 -52
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/documents.test.js +0 -52
- package/dist/cjs/tests/api-resources/simulations/documents.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js +0 -82
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js +0 -58
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/programs.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/programs.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/programs.test.js +0 -52
- package/dist/cjs/tests/api-resources/simulations/programs.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js +0 -70
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js +0 -71
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/transactions.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/transactions.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/transactions.test.js +0 -92
- package/dist/cjs/tests/api-resources/transactions.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js +0 -107
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js.map +0 -1
- package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts +0 -2
- package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts.map +0 -1
- package/dist/cjs/tests/api-resources/wire-transfers.test.js +0 -170
- package/dist/cjs/tests/api-resources/wire-transfers.test.js.map +0 -1
- package/dist/cjs/tests/form.test.d.ts +0 -2
- package/dist/cjs/tests/form.test.d.ts.map +0 -1
- package/dist/cjs/tests/form.test.js +0 -61
- package/dist/cjs/tests/form.test.js.map +0 -1
- package/dist/cjs/tests/index.test.d.ts +0 -2
- package/dist/cjs/tests/index.test.d.ts.map +0 -1
- package/dist/cjs/tests/index.test.js +0 -113
- package/dist/cjs/tests/index.test.js.map +0 -1
- package/dist/cjs/tests/responses.test.d.ts +0 -2
- package/dist/cjs/tests/responses.test.d.ts.map +0 -1
- package/dist/cjs/tests/responses.test.js +0 -60
- package/dist/cjs/tests/responses.test.js.map +0 -1
- package/dist/cjs/version.d.ts +0 -2
- package/dist/cjs/version.d.ts.map +0 -1
- package/dist/cjs/version.js +0 -5
- package/dist/cjs/version.js.map +0 -1
- package/error.ts +0 -505
- package/examples/api-error.ts +0 -21
- package/fetch-polyfill.ts +0 -69
- package/index.ts +0 -349
- package/jest.config.js +0 -8
- package/pagination.ts +0 -61
- package/release-please-config.json +0 -61
- package/resources/account-numbers.ts +0 -170
- package/resources/account-statements.ts +0 -131
- package/resources/account-transfers.ts +0 -252
- package/resources/accounts.ts +0 -204
- package/resources/ach-prenotifications.ts +0 -244
- package/resources/ach-transfers.ts +0 -546
- package/resources/balance-lookups.ts +0 -57
- package/resources/bookkeeping-accounts.ts +0 -98
- package/resources/bookkeeping-entries.ts +0 -62
- package/resources/bookkeeping-entry-sets.ts +0 -100
- package/resources/card-disputes.ts +0 -195
- package/resources/card-profiles.ts +0 -250
- package/resources/cards.ts +0 -425
- package/resources/check-deposits.ts +0 -316
- package/resources/check-transfers.ts +0 -532
- package/resources/declined-transactions.ts +0 -616
- package/resources/digital-wallet-tokens.ts +0 -114
- package/resources/documents.ts +0 -218
- package/resources/entities/entities.ts +0 -1899
- package/resources/entities/index.ts +0 -9
- package/resources/entities/supplemental-documents.ts +0 -71
- package/resources/event-subscriptions.ts +0 -235
- package/resources/events.ts +0 -219
- package/resources/exports.ts +0 -204
- package/resources/external-accounts.ts +0 -162
- package/resources/files.ts +0 -192
- package/resources/groups.ts +0 -47
- package/resources/inbound-ach-transfer-returns.ts +0 -144
- package/resources/inbound-wire-drawdown-requests.ts +0 -167
- package/resources/index.ts +0 -193
- package/resources/limits.ts +0 -143
- package/resources/oauth-connections.ts +0 -73
- package/resources/pending-transactions.ts +0 -569
- package/resources/programs.ts +0 -70
- package/resources/real-time-decisions.ts +0 -380
- package/resources/real-time-payments-transfers.ts +0 -351
- package/resources/routing-numbers.ts +0 -62
- package/resources/shared.ts +0 -17
- package/resources/simulations/account-statements.ts +0 -25
- package/resources/simulations/account-transfers.ts +0 -20
- package/resources/simulations/ach-transfers.ts +0 -2185
- package/resources/simulations/card-disputes.ts +0 -33
- package/resources/simulations/card-refunds.ts +0 -26
- package/resources/simulations/cards.ts +0 -1116
- package/resources/simulations/check-deposits.ts +0 -41
- package/resources/simulations/check-transfers.ts +0 -49
- package/resources/simulations/digital-wallet-token-requests.ts +0 -52
- package/resources/simulations/documents.ts +0 -24
- package/resources/simulations/inbound-wire-drawdown-requests.ts +0 -126
- package/resources/simulations/index.ts +0 -26
- package/resources/simulations/interest-payments.ts +0 -1501
- package/resources/simulations/programs.ts +0 -26
- package/resources/simulations/real-time-payments-transfers.ts +0 -2131
- package/resources/simulations/simulations.ts +0 -36
- package/resources/simulations/wire-transfers.ts +0 -1580
- package/resources/transactions.ts +0 -1570
- package/resources/wire-drawdown-requests.ts +0 -198
- package/resources/wire-transfers.ts +0 -436
- package/streaming.ts +0 -199
- package/tests/api-resources/account-numbers.test.ts +0 -64
- package/tests/api-resources/account-statements.test.ts +0 -51
- package/tests/api-resources/account-transfers.test.ts +0 -96
- package/tests/api-resources/accounts.test.ts +0 -81
- package/tests/api-resources/ach-prenotifications.test.ts +0 -74
- package/tests/api-resources/ach-transfers.test.ts +0 -106
- package/tests/api-resources/balance-lookups.test.ts +0 -18
- package/tests/api-resources/bookkeeping-accounts.test.ts +0 -38
- package/tests/api-resources/bookkeeping-entries.test.ts +0 -25
- package/tests/api-resources/bookkeeping-entry-sets.test.ts +0 -29
- package/tests/api-resources/card-disputes.test.ts +0 -65
- package/tests/api-resources/card-profiles.test.ts +0 -69
- package/tests/api-resources/cards.test.ts +0 -79
- package/tests/api-resources/check-deposits.test.ts +0 -71
- package/tests/api-resources/check-transfers.test.ts +0 -122
- package/tests/api-resources/declined-transactions.test.ts +0 -54
- package/tests/api-resources/digital-wallet-tokens.test.ts +0 -51
- package/tests/api-resources/documents.test.ts +0 -52
- package/tests/api-resources/entities/entities.test.ts +0 -249
- package/tests/api-resources/entities/supplemental-documents.test.ts +0 -31
- package/tests/api-resources/event-subscriptions.test.ts +0 -59
- package/tests/api-resources/events.test.ts +0 -50
- package/tests/api-resources/exports.test.ts +0 -64
- package/tests/api-resources/external-accounts.test.ts +0 -62
- package/tests/api-resources/files.test.ts +0 -67
- package/tests/api-resources/groups.test.ts +0 -18
- package/tests/api-resources/inbound-ach-transfer-returns.test.ts +0 -57
- package/tests/api-resources/inbound-wire-drawdown-requests.test.ts +0 -43
- package/tests/api-resources/limits.test.ts +0 -60
- package/tests/api-resources/oauth-connections.test.ts +0 -38
- package/tests/api-resources/pending-transactions.test.ts +0 -54
- package/tests/api-resources/programs.test.ts +0 -36
- package/tests/api-resources/real-time-decisions.test.ts +0 -24
- package/tests/api-resources/real-time-payments-transfers.test.ts +0 -76
- package/tests/api-resources/routing-numbers.test.ts +0 -19
- package/tests/api-resources/simulations/account-statements.test.ts +0 -15
- package/tests/api-resources/simulations/account-transfers.test.ts +0 -24
- package/tests/api-resources/simulations/ach-transfers.test.ts +0 -46
- package/tests/api-resources/simulations/card-disputes.test.ts +0 -20
- package/tests/api-resources/simulations/card-refunds.test.ts +0 -15
- package/tests/api-resources/simulations/cards.test.ts +0 -35
- package/tests/api-resources/simulations/check-deposits.test.ts +0 -50
- package/tests/api-resources/simulations/check-transfers.test.ts +0 -47
- package/tests/api-resources/simulations/digital-wallet-token-requests.test.ts +0 -15
- package/tests/api-resources/simulations/documents.test.ts +0 -15
- package/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.ts +0 -45
- package/tests/api-resources/simulations/interest-payments.test.ts +0 -15
- package/tests/api-resources/simulations/programs.test.ts +0 -15
- package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +0 -33
- package/tests/api-resources/simulations/wire-transfers.test.ts +0 -34
- package/tests/api-resources/transactions.test.ts +0 -53
- package/tests/api-resources/wire-drawdown-requests.test.ts +0 -70
- package/tests/api-resources/wire-transfers.test.ts +0 -133
- package/tests/form.test.ts +0 -27
- package/tests/index.test.ts +0 -83
- package/tests/responses.test.ts +0 -25
- package/tsconfig.cjs.json +0 -8
- package/tsconfig.json +0 -39
- package/typings/digest-fetch/index.d.ts +0 -33
- package/version.ts +0 -1
- /package/{dist/cjs/resource.js → resource.js} +0 -0
- /package/{dist/cjs/resources → resources}/shared.js +0 -0
- /package/{resource.ts → src/resource.ts} +0 -0
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import * as Core from 'increase/core';
|
|
2
|
+
import { APIResource } from 'increase/resource';
|
|
3
|
+
import * as API from './index.js';
|
|
4
|
+
import { Page, PageParams } from 'increase/pagination';
|
|
5
|
+
export declare class WireTransfers extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a Wire Transfer
|
|
8
|
+
*/
|
|
9
|
+
create(
|
|
10
|
+
body: WireTransferCreateParams,
|
|
11
|
+
options?: Core.RequestOptions,
|
|
12
|
+
): Promise<Core.APIResponse<WireTransfer>>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve a Wire Transfer
|
|
15
|
+
*/
|
|
16
|
+
retrieve(wireTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<WireTransfer>>;
|
|
17
|
+
/**
|
|
18
|
+
* List Wire Transfers
|
|
19
|
+
*/
|
|
20
|
+
list(query?: WireTransferListParams, options?: Core.RequestOptions): Core.PagePromise<WireTransfersPage>;
|
|
21
|
+
list(options?: Core.RequestOptions): Core.PagePromise<WireTransfersPage>;
|
|
22
|
+
/**
|
|
23
|
+
* Approve a Wire Transfer
|
|
24
|
+
*/
|
|
25
|
+
approve(wireTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<WireTransfer>>;
|
|
26
|
+
/**
|
|
27
|
+
* Cancel a pending Wire Transfer
|
|
28
|
+
*/
|
|
29
|
+
cancel(wireTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<WireTransfer>>;
|
|
30
|
+
/**
|
|
31
|
+
* Simulates the reversal of a [Wire Transfer](#wire-transfers) by the Federal
|
|
32
|
+
* Reserve due to error conditions. This will also create a
|
|
33
|
+
* [Transaction](#transaction) to account for the returned funds. This Wire
|
|
34
|
+
* Transfer must first have a `status` of `complete`.'
|
|
35
|
+
*/
|
|
36
|
+
reverse(wireTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<WireTransfer>>;
|
|
37
|
+
/**
|
|
38
|
+
* Simulates the submission of a [Wire Transfer](#wire-transfers) to the Federal
|
|
39
|
+
* Reserve. This transfer must first have a `status` of `pending_approval` or
|
|
40
|
+
* `pending_creating`.
|
|
41
|
+
*/
|
|
42
|
+
submit(wireTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<WireTransfer>>;
|
|
43
|
+
}
|
|
44
|
+
export declare class WireTransfersPage extends Page<WireTransfer> {}
|
|
45
|
+
type _WireTransfersPage = WireTransfersPage;
|
|
46
|
+
/**
|
|
47
|
+
* Wire transfers move funds between your Increase account and any other account
|
|
48
|
+
* accessible by Fedwire.
|
|
49
|
+
*/
|
|
50
|
+
export interface WireTransfer {
|
|
51
|
+
/**
|
|
52
|
+
* The wire transfer's identifier.
|
|
53
|
+
*/
|
|
54
|
+
id: string;
|
|
55
|
+
/**
|
|
56
|
+
* The Account to which the transfer belongs.
|
|
57
|
+
*/
|
|
58
|
+
account_id: string;
|
|
59
|
+
/**
|
|
60
|
+
* The destination account number.
|
|
61
|
+
*/
|
|
62
|
+
account_number: string;
|
|
63
|
+
/**
|
|
64
|
+
* The transfer amount in USD cents.
|
|
65
|
+
*/
|
|
66
|
+
amount: number;
|
|
67
|
+
/**
|
|
68
|
+
* If your account requires approvals for transfers and the transfer was approved,
|
|
69
|
+
* this will contain details of the approval.
|
|
70
|
+
*/
|
|
71
|
+
approval: WireTransfer.Approval | null;
|
|
72
|
+
/**
|
|
73
|
+
* The beneficiary's address line 1.
|
|
74
|
+
*/
|
|
75
|
+
beneficiary_address_line1: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* The beneficiary's address line 2.
|
|
78
|
+
*/
|
|
79
|
+
beneficiary_address_line2: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* The beneficiary's address line 3.
|
|
82
|
+
*/
|
|
83
|
+
beneficiary_address_line3: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* The beneficiary's name.
|
|
86
|
+
*/
|
|
87
|
+
beneficiary_name: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* If your account requires approvals for transfers and the transfer was not
|
|
90
|
+
* approved, this will contain details of the cancellation.
|
|
91
|
+
*/
|
|
92
|
+
cancellation: WireTransfer.Cancellation | null;
|
|
93
|
+
/**
|
|
94
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
95
|
+
* the transfer was created.
|
|
96
|
+
*/
|
|
97
|
+
created_at: string;
|
|
98
|
+
/**
|
|
99
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
|
|
100
|
+
* currency. For wire transfers this is always equal to `usd`.
|
|
101
|
+
*
|
|
102
|
+
* - `CAD` - Canadian Dollar (CAD)
|
|
103
|
+
* - `CHF` - Swiss Franc (CHF)
|
|
104
|
+
* - `EUR` - Euro (EUR)
|
|
105
|
+
* - `GBP` - British Pound (GBP)
|
|
106
|
+
* - `JPY` - Japanese Yen (JPY)
|
|
107
|
+
* - `USD` - US Dollar (USD)
|
|
108
|
+
*/
|
|
109
|
+
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
110
|
+
/**
|
|
111
|
+
* The identifier of the External Account the transfer was made to, if any.
|
|
112
|
+
*/
|
|
113
|
+
external_account_id: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* The message that will show on the recipient's bank statement.
|
|
116
|
+
*/
|
|
117
|
+
message_to_recipient: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* The transfer's network.
|
|
120
|
+
*/
|
|
121
|
+
network: 'wire';
|
|
122
|
+
/**
|
|
123
|
+
* If your transfer is reversed, this will contain details of the reversal.
|
|
124
|
+
*/
|
|
125
|
+
reversal: WireTransfer.Reversal | null;
|
|
126
|
+
/**
|
|
127
|
+
* The American Bankers' Association (ABA) Routing Transit Number (RTN).
|
|
128
|
+
*/
|
|
129
|
+
routing_number: string;
|
|
130
|
+
/**
|
|
131
|
+
* The lifecycle status of the transfer.
|
|
132
|
+
*
|
|
133
|
+
* - `canceled` - The transfer has been canceled.
|
|
134
|
+
* - `requires_attention` - The transfer requires attention from an Increase
|
|
135
|
+
* operator.
|
|
136
|
+
* - `pending_approval` - The transfer is pending approval.
|
|
137
|
+
* - `rejected` - The transfer has been rejected.
|
|
138
|
+
* - `reversed` - The transfer has been reversed.
|
|
139
|
+
* - `complete` - The transfer is complete.
|
|
140
|
+
* - `pending_creating` - The transfer is pending creation.
|
|
141
|
+
*/
|
|
142
|
+
status:
|
|
143
|
+
| 'canceled'
|
|
144
|
+
| 'requires_attention'
|
|
145
|
+
| 'pending_approval'
|
|
146
|
+
| 'rejected'
|
|
147
|
+
| 'reversed'
|
|
148
|
+
| 'complete'
|
|
149
|
+
| 'pending_creating';
|
|
150
|
+
/**
|
|
151
|
+
* After the transfer is submitted to Fedwire, this will contain supplemental
|
|
152
|
+
* details.
|
|
153
|
+
*/
|
|
154
|
+
submission: WireTransfer.Submission | null;
|
|
155
|
+
/**
|
|
156
|
+
* The ID for the transaction funding the transfer.
|
|
157
|
+
*/
|
|
158
|
+
transaction_id: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* A constant representing the object's type. For this resource it will always be
|
|
161
|
+
* `wire_transfer`.
|
|
162
|
+
*/
|
|
163
|
+
type: 'wire_transfer';
|
|
164
|
+
}
|
|
165
|
+
export declare namespace WireTransfer {
|
|
166
|
+
/**
|
|
167
|
+
* If your account requires approvals for transfers and the transfer was approved,
|
|
168
|
+
* this will contain details of the approval.
|
|
169
|
+
*/
|
|
170
|
+
interface Approval {
|
|
171
|
+
/**
|
|
172
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
173
|
+
* the transfer was approved.
|
|
174
|
+
*/
|
|
175
|
+
approved_at: string;
|
|
176
|
+
/**
|
|
177
|
+
* If the Transfer was approved by a user in the dashboard, the email address of
|
|
178
|
+
* that user.
|
|
179
|
+
*/
|
|
180
|
+
approved_by: string | null;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* If your account requires approvals for transfers and the transfer was not
|
|
184
|
+
* approved, this will contain details of the cancellation.
|
|
185
|
+
*/
|
|
186
|
+
interface Cancellation {
|
|
187
|
+
/**
|
|
188
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
189
|
+
* the Transfer was canceled.
|
|
190
|
+
*/
|
|
191
|
+
canceled_at: string;
|
|
192
|
+
/**
|
|
193
|
+
* If the Transfer was canceled by a user in the dashboard, the email address of
|
|
194
|
+
* that user.
|
|
195
|
+
*/
|
|
196
|
+
canceled_by: string | null;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* If your transfer is reversed, this will contain details of the reversal.
|
|
200
|
+
*/
|
|
201
|
+
interface Reversal {
|
|
202
|
+
/**
|
|
203
|
+
* The amount that was reversed.
|
|
204
|
+
*/
|
|
205
|
+
amount: number;
|
|
206
|
+
/**
|
|
207
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
208
|
+
* the reversal was created.
|
|
209
|
+
*/
|
|
210
|
+
created_at: string;
|
|
211
|
+
/**
|
|
212
|
+
* The description on the reversal message from Fedwire.
|
|
213
|
+
*/
|
|
214
|
+
description: string;
|
|
215
|
+
/**
|
|
216
|
+
* Additional financial institution information included in the wire reversal.
|
|
217
|
+
*/
|
|
218
|
+
financial_institution_to_financial_institution_information: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* The Fedwire cycle date for the wire reversal.
|
|
221
|
+
*/
|
|
222
|
+
input_cycle_date: string;
|
|
223
|
+
/**
|
|
224
|
+
* The Fedwire transaction identifier.
|
|
225
|
+
*/
|
|
226
|
+
input_message_accountability_data: string;
|
|
227
|
+
/**
|
|
228
|
+
* The Fedwire sequence number.
|
|
229
|
+
*/
|
|
230
|
+
input_sequence_number: string;
|
|
231
|
+
/**
|
|
232
|
+
* The Fedwire input source identifier.
|
|
233
|
+
*/
|
|
234
|
+
input_source: string;
|
|
235
|
+
/**
|
|
236
|
+
* The Fedwire cycle date for the wire transfer that was reversed.
|
|
237
|
+
*/
|
|
238
|
+
previous_message_input_cycle_date: string;
|
|
239
|
+
/**
|
|
240
|
+
* The Fedwire transaction identifier for the wire transfer that was reversed.
|
|
241
|
+
*/
|
|
242
|
+
previous_message_input_message_accountability_data: string;
|
|
243
|
+
/**
|
|
244
|
+
* The Fedwire sequence number for the wire transfer that was reversed.
|
|
245
|
+
*/
|
|
246
|
+
previous_message_input_sequence_number: string;
|
|
247
|
+
/**
|
|
248
|
+
* The Fedwire input source identifier for the wire transfer that was reversed.
|
|
249
|
+
*/
|
|
250
|
+
previous_message_input_source: string;
|
|
251
|
+
/**
|
|
252
|
+
* Information included in the wire reversal for the receiving financial
|
|
253
|
+
* institution.
|
|
254
|
+
*/
|
|
255
|
+
receiver_financial_institution_information: string | null;
|
|
256
|
+
/**
|
|
257
|
+
* The ID for the Transaction associated with the transfer reversal.
|
|
258
|
+
*/
|
|
259
|
+
transaction_id: string | null;
|
|
260
|
+
/**
|
|
261
|
+
* The ID for the Wire Transfer that is being reversed.
|
|
262
|
+
*/
|
|
263
|
+
wire_transfer_id: string;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* After the transfer is submitted to Fedwire, this will contain supplemental
|
|
267
|
+
* details.
|
|
268
|
+
*/
|
|
269
|
+
interface Submission {
|
|
270
|
+
/**
|
|
271
|
+
* The accountability data for the submission.
|
|
272
|
+
*/
|
|
273
|
+
input_message_accountability_data: string;
|
|
274
|
+
/**
|
|
275
|
+
* When this wire transfer was submitted to Fedwire.
|
|
276
|
+
*/
|
|
277
|
+
submitted_at: string;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
export interface WireTransferCreateParams {
|
|
281
|
+
/**
|
|
282
|
+
* The identifier for the account that will send the transfer.
|
|
283
|
+
*/
|
|
284
|
+
account_id: string;
|
|
285
|
+
/**
|
|
286
|
+
* The transfer amount in cents.
|
|
287
|
+
*/
|
|
288
|
+
amount: number;
|
|
289
|
+
/**
|
|
290
|
+
* The beneficiary's name.
|
|
291
|
+
*/
|
|
292
|
+
beneficiary_name: string;
|
|
293
|
+
/**
|
|
294
|
+
* The message that will show on the recipient's bank statement.
|
|
295
|
+
*/
|
|
296
|
+
message_to_recipient: string;
|
|
297
|
+
/**
|
|
298
|
+
* The account number for the destination account.
|
|
299
|
+
*/
|
|
300
|
+
account_number?: string;
|
|
301
|
+
/**
|
|
302
|
+
* The beneficiary's address line 1.
|
|
303
|
+
*/
|
|
304
|
+
beneficiary_address_line1?: string;
|
|
305
|
+
/**
|
|
306
|
+
* The beneficiary's address line 2.
|
|
307
|
+
*/
|
|
308
|
+
beneficiary_address_line2?: string;
|
|
309
|
+
/**
|
|
310
|
+
* The beneficiary's address line 3.
|
|
311
|
+
*/
|
|
312
|
+
beneficiary_address_line3?: string;
|
|
313
|
+
/**
|
|
314
|
+
* The ID of an External Account to initiate a transfer to. If this parameter is
|
|
315
|
+
* provided, `account_number` and `routing_number` must be absent.
|
|
316
|
+
*/
|
|
317
|
+
external_account_id?: string;
|
|
318
|
+
/**
|
|
319
|
+
* Whether the transfer requires explicit approval via the dashboard or API.
|
|
320
|
+
*/
|
|
321
|
+
require_approval?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
|
|
324
|
+
* destination account.
|
|
325
|
+
*/
|
|
326
|
+
routing_number?: string;
|
|
327
|
+
}
|
|
328
|
+
export interface WireTransferListParams extends PageParams {
|
|
329
|
+
/**
|
|
330
|
+
* Filter Wire Transfers to those belonging to the specified Account.
|
|
331
|
+
*/
|
|
332
|
+
account_id?: string;
|
|
333
|
+
created_at?: WireTransferListParams.CreatedAt;
|
|
334
|
+
/**
|
|
335
|
+
* Filter Wire Transfers to those made to the specified External Account.
|
|
336
|
+
*/
|
|
337
|
+
external_account_id?: string;
|
|
338
|
+
}
|
|
339
|
+
export declare namespace WireTransferListParams {
|
|
340
|
+
interface CreatedAt {
|
|
341
|
+
/**
|
|
342
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
343
|
+
* timestamp.
|
|
344
|
+
*/
|
|
345
|
+
after?: string;
|
|
346
|
+
/**
|
|
347
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
348
|
+
* timestamp.
|
|
349
|
+
*/
|
|
350
|
+
before?: string;
|
|
351
|
+
/**
|
|
352
|
+
* Return results on or after this
|
|
353
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
354
|
+
*/
|
|
355
|
+
on_or_after?: string;
|
|
356
|
+
/**
|
|
357
|
+
* Return results on or before this
|
|
358
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
359
|
+
*/
|
|
360
|
+
on_or_before?: string;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
export declare namespace WireTransfers {
|
|
364
|
+
export import WireTransfer = API.WireTransfer;
|
|
365
|
+
type WireTransfersPage = _WireTransfersPage;
|
|
366
|
+
export import WireTransferCreateParams = API.WireTransferCreateParams;
|
|
367
|
+
export import WireTransferListParams = API.WireTransferListParams;
|
|
368
|
+
}
|
|
369
|
+
export {};
|
|
370
|
+
//# sourceMappingURL=wire-transfers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire-transfers.d.ts","sourceRoot":"","sources":["../src/resources/wire-transfers.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.WireTransfersPage = exports.WireTransfers = void 0;
|
|
5
|
+
const resource_1 = require('increase/resource');
|
|
6
|
+
const core_1 = require('increase/core');
|
|
7
|
+
const pagination_1 = require('increase/pagination');
|
|
8
|
+
class WireTransfers extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a Wire Transfer
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return this.post('/wire_transfers', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve a Wire Transfer
|
|
17
|
+
*/
|
|
18
|
+
retrieve(wireTransferId, options) {
|
|
19
|
+
return this.get(`/wire_transfers/${wireTransferId}`, options);
|
|
20
|
+
}
|
|
21
|
+
list(query = {}, options) {
|
|
22
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
23
|
+
return this.list({}, query);
|
|
24
|
+
}
|
|
25
|
+
return this.getAPIList('/wire_transfers', WireTransfersPage, { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Approve a Wire Transfer
|
|
29
|
+
*/
|
|
30
|
+
approve(wireTransferId, options) {
|
|
31
|
+
return this.post(`/wire_transfers/${wireTransferId}/approve`, options);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Cancel a pending Wire Transfer
|
|
35
|
+
*/
|
|
36
|
+
cancel(wireTransferId, options) {
|
|
37
|
+
return this.post(`/wire_transfers/${wireTransferId}/cancel`, options);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Simulates the reversal of a [Wire Transfer](#wire-transfers) by the Federal
|
|
41
|
+
* Reserve due to error conditions. This will also create a
|
|
42
|
+
* [Transaction](#transaction) to account for the returned funds. This Wire
|
|
43
|
+
* Transfer must first have a `status` of `complete`.'
|
|
44
|
+
*/
|
|
45
|
+
reverse(wireTransferId, options) {
|
|
46
|
+
return this.post(`/simulations/wire_transfers/${wireTransferId}/reverse`, options);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Simulates the submission of a [Wire Transfer](#wire-transfers) to the Federal
|
|
50
|
+
* Reserve. This transfer must first have a `status` of `pending_approval` or
|
|
51
|
+
* `pending_creating`.
|
|
52
|
+
*/
|
|
53
|
+
submit(wireTransferId, options) {
|
|
54
|
+
return this.post(`/simulations/wire_transfers/${wireTransferId}/submit`, options);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.WireTransfers = WireTransfers;
|
|
58
|
+
class WireTransfersPage extends pagination_1.Page {}
|
|
59
|
+
exports.WireTransfersPage = WireTransfersPage;
|
|
60
|
+
(function (WireTransfers) {})((WireTransfers = exports.WireTransfers || (exports.WireTransfers = {})));
|
|
61
|
+
//# sourceMappingURL=wire-transfers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire-transfers.js","sourceRoot":"","sources":["../src/resources/wire-transfers.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,gDAAgD;AAChD,wCAAiD;AAEjD,oDAAuD;AAEvD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,cAAsB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,GAAG,CAAC,mBAAmB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAOD,IAAI,CACF,QAAsD,EAAE,EACxD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,cAAsB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,IAAI,CAAC,mBAAmB,cAAc,UAAU,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,cAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,mBAAmB,cAAc,SAAS,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,cAAsB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,IAAI,CAAC,+BAA+B,cAAc,UAAU,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,cAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,+BAA+B,cAAc,SAAS,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AAjED,sCAiEC;AAED,MAAa,iBAAkB,SAAQ,iBAAkB;CAAG;AAA5D,8CAA4D;AA6X5D,WAAiB,aAAa;AAK9B,CAAC,EALgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAK7B"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
import { APIResource } from 'increase/resource';
|
|
3
|
+
import { isRequestOptions } from 'increase/core';
|
|
4
|
+
import { Page } from 'increase/pagination';
|
|
5
|
+
export class WireTransfers extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a Wire Transfer
|
|
8
|
+
*/
|
|
9
|
+
create(body, options) {
|
|
10
|
+
return this.post('/wire_transfers', { body, ...options });
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve a Wire Transfer
|
|
14
|
+
*/
|
|
15
|
+
retrieve(wireTransferId, options) {
|
|
16
|
+
return this.get(`/wire_transfers/${wireTransferId}`, options);
|
|
17
|
+
}
|
|
18
|
+
list(query = {}, options) {
|
|
19
|
+
if (isRequestOptions(query)) {
|
|
20
|
+
return this.list({}, query);
|
|
21
|
+
}
|
|
22
|
+
return this.getAPIList('/wire_transfers', WireTransfersPage, { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Approve a Wire Transfer
|
|
26
|
+
*/
|
|
27
|
+
approve(wireTransferId, options) {
|
|
28
|
+
return this.post(`/wire_transfers/${wireTransferId}/approve`, options);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Cancel a pending Wire Transfer
|
|
32
|
+
*/
|
|
33
|
+
cancel(wireTransferId, options) {
|
|
34
|
+
return this.post(`/wire_transfers/${wireTransferId}/cancel`, options);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Simulates the reversal of a [Wire Transfer](#wire-transfers) by the Federal
|
|
38
|
+
* Reserve due to error conditions. This will also create a
|
|
39
|
+
* [Transaction](#transaction) to account for the returned funds. This Wire
|
|
40
|
+
* Transfer must first have a `status` of `complete`.'
|
|
41
|
+
*/
|
|
42
|
+
reverse(wireTransferId, options) {
|
|
43
|
+
return this.post(`/simulations/wire_transfers/${wireTransferId}/reverse`, options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Simulates the submission of a [Wire Transfer](#wire-transfers) to the Federal
|
|
47
|
+
* Reserve. This transfer must first have a `status` of `pending_approval` or
|
|
48
|
+
* `pending_creating`.
|
|
49
|
+
*/
|
|
50
|
+
submit(wireTransferId, options) {
|
|
51
|
+
return this.post(`/simulations/wire_transfers/${wireTransferId}/submit`, options);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export class WireTransfersPage extends Page {}
|
|
55
|
+
(function (WireTransfers) {})(WireTransfers || (WireTransfers = {}));
|
|
56
|
+
//# sourceMappingURL=wire-transfers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire-transfers.mjs","sourceRoot":"","sources":["../src/resources/wire-transfers.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;OACxC,EAAE,gBAAgB,EAAE,MAAM,eAAe;OAEzC,EAAE,IAAI,EAAc,MAAM,qBAAqB;AAEtD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,cAAsB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,GAAG,CAAC,mBAAmB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAOD,IAAI,CACF,QAAsD,EAAE,EACxD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,cAAsB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,IAAI,CAAC,mBAAmB,cAAc,UAAU,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,cAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,mBAAmB,cAAc,SAAS,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,cAAsB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,IAAI,CAAC,+BAA+B,cAAc,UAAU,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,cAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,+BAA+B,cAAc,SAAS,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,IAAkB;CAAG;AA6X5D,WAAiB,aAAa;AAK9B,CAAC,EALgB,aAAa,KAAb,aAAa,QAK7B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import KeepAliveAgent from 'agentkeepalive';
|
|
6
|
+
import type { Agent } from 'node:http';
|
|
7
|
+
import { AbortController as AbortControllerPolyfill } from 'abort-controller';
|
|
8
|
+
|
|
9
|
+
export type { Agent };
|
|
10
|
+
|
|
11
|
+
const defaultHttpAgent: Agent = new KeepAliveAgent({ keepAlive: true, timeout: 5 * 60 * 1000 });
|
|
12
|
+
const defaultHttpsAgent: Agent = new KeepAliveAgent.HttpsAgent({ keepAlive: true, timeout: 5 * 60 * 1000 });
|
|
13
|
+
|
|
14
|
+
// Polyfill global object if needed.
|
|
15
|
+
if (typeof AbortController === 'undefined') {
|
|
16
|
+
AbortController = AbortControllerPolyfill as any as typeof AbortController;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const getDefaultAgent = (url: string): Agent | undefined => {
|
|
20
|
+
if (defaultHttpsAgent && url.startsWith('https')) return defaultHttpsAgent;
|
|
21
|
+
return defaultHttpAgent;
|
|
22
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
+
*
|
|
4
|
+
* This is a stub for non-node environments.
|
|
5
|
+
* In node environments, it gets replaced agent.node.ts by the package export map
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type Agent = any;
|
|
9
|
+
|
|
10
|
+
export const getDefaultAgent = (url: string): any => {
|
|
11
|
+
return undefined;
|
|
12
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// Use builtin web types if present; else never (user should
|
|
6
|
+
// add appropriate lib or types to tsconfig)
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* >>> Confused? <<<
|
|
10
|
+
*
|
|
11
|
+
* If you're getting errors from these types, try adding "lib": ["DOM"]
|
|
12
|
+
* to your tsconfig.json, or otherwise configure the appropriate builtin
|
|
13
|
+
* `fetch` types for your environment.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
type _fetch = unknown extends typeof fetch ? never : typeof fetch;
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
type _Request = unknown extends Request ? never : Request;
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
type _RequestInfo = unknown extends RequestInfo ? never : RequestInfo;
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
type _RequestInit = unknown extends RequestInit ? never : RequestInit;
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
type _Response = unknown extends Response ? never : Response;
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
type _ResponseInit = unknown extends ResponseInit ? never : ResponseInit;
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
type _BodyInit = unknown extends BodyInit ? never : BodyInit;
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
type _Headers = unknown extends Headers ? never : Headers;
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
type _HeadersInit = unknown extends HeadersInit ? never : HeadersInit;
|
|
34
|
+
|
|
35
|
+
declare const _fetch: _fetch;
|
|
36
|
+
declare const _Request: {
|
|
37
|
+
prototype: _Request;
|
|
38
|
+
new (input: _RequestInfo | URL, init?: _RequestInit): _Request;
|
|
39
|
+
};
|
|
40
|
+
declare const _Response: {
|
|
41
|
+
prototype: _Response;
|
|
42
|
+
new (body?: _BodyInit | null, init?: _ResponseInit): _Response;
|
|
43
|
+
};
|
|
44
|
+
declare const _Headers: {
|
|
45
|
+
prototype: _Headers;
|
|
46
|
+
new (init?: _HeadersInit): _Headers;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const isPolyfilled = false;
|
|
50
|
+
|
|
51
|
+
export { _fetch as fetch, _Request as Request, _Response as Response, _Headers as Headers };
|
|
52
|
+
export type { _RequestInit as RequestInit, _RequestInfo as RequestInfo, _BodyInit as BodyInit };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// If we accidentally call fetch with the wrong this binding,
|
|
6
|
+
// in the browser it would throw:
|
|
7
|
+
// TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
|
|
8
|
+
exports.fetch = fetch.bind(undefined);
|
|
9
|
+
exports.Request = Request;
|
|
10
|
+
exports.Response = Response;
|
|
11
|
+
exports.Headers = Headers;
|
|
12
|
+
|
|
13
|
+
exports.isPolyfilled = true;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// If we accidentally call fetch with the wrong this binding,
|
|
6
|
+
// in the browser it would throw:
|
|
7
|
+
// TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
|
|
8
|
+
const _fetch = fetch.bind(undefined);
|
|
9
|
+
const _Request = Request;
|
|
10
|
+
const _Response = Response;
|
|
11
|
+
const _Headers = Headers;
|
|
12
|
+
|
|
13
|
+
export const isPolyfilled = false;
|
|
14
|
+
|
|
15
|
+
export { _fetch as fetch, _Request as Request, _Response as Response, _Headers as Headers };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as nf from 'node-fetch';
|
|
6
|
+
|
|
7
|
+
// Use builtin web types if present; else node-fetch types
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* >>> Confused? <<<
|
|
11
|
+
*
|
|
12
|
+
* If you're getting errors from these types, try adding "lib": ["DOM"]
|
|
13
|
+
* to your tsconfig.json, or otherwise configure the appropriate builtin
|
|
14
|
+
* `fetch` types for your environment.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
type _fetch = unknown extends typeof fetch ? typeof nf.default : typeof fetch;
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
type _Request = unknown extends Request ? nf.Request : Request;
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
type _RequestInfo = unknown extends RequestInfo ? nf.RequestInfo : RequestInfo;
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
type _RequestInit = unknown extends RequestInit ? nf.RequestInit : RequestInit;
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
type _Response = unknown extends Response ? nf.Response : Response;
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
type _ResponseInit = unknown extends ResponseInit ? nf.ResponseInit : ResponseInit;
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
type _BodyInit = unknown extends BodyInit ? nf.BodyInit : BodyInit;
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
type _Headers = unknown extends Headers ? nf.Headers : Headers;
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
type _HeadersInit = unknown extends HeadersInit ? nf.HeadersInit : HeadersInit;
|
|
35
|
+
|
|
36
|
+
declare const _fetch: _fetch;
|
|
37
|
+
declare const _Request: {
|
|
38
|
+
prototype: _Request;
|
|
39
|
+
new (input: _RequestInfo | URL, init?: _RequestInit): _Request;
|
|
40
|
+
};
|
|
41
|
+
declare const _Response: {
|
|
42
|
+
prototype: _Response;
|
|
43
|
+
new (body?: _BodyInit | null, init?: _ResponseInit): _Response;
|
|
44
|
+
};
|
|
45
|
+
declare const _Headers: {
|
|
46
|
+
prototype: _Headers;
|
|
47
|
+
new (init?: _HeadersInit): _Headers;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export const isPolyfilled = false;
|
|
51
|
+
|
|
52
|
+
export { _fetch as fetch, _Request as Request, _Response as Response, _Headers as Headers };
|
|
53
|
+
export type { _RequestInit as RequestInit, _RequestInfo as RequestInfo, _BodyInit as BodyInit };
|