increase 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/README.md +41 -2
- package/core.d.ts +1 -10
- package/core.d.ts.map +1 -1
- package/core.js +6 -14
- package/core.js.map +1 -1
- package/core.mjs +5 -12
- package/core.mjs.map +1 -1
- package/index.d.mts +12 -8
- package/index.d.ts +12 -8
- package/index.d.ts.map +1 -1
- package/index.js +8 -5
- package/index.js.map +1 -1
- package/index.mjs +8 -5
- package/index.mjs.map +1 -1
- package/package.json +27 -23
- package/resource.d.ts +1 -7
- package/resource.d.ts.map +1 -1
- package/resource.js +1 -7
- package/resource.js.map +1 -1
- package/resource.mjs +1 -7
- package/resource.mjs.map +1 -1
- package/resources/account-numbers.js +4 -4
- package/resources/account-numbers.js.map +1 -1
- package/resources/account-numbers.mjs +4 -4
- package/resources/account-numbers.mjs.map +1 -1
- package/resources/account-statements.js +2 -2
- package/resources/account-statements.js.map +1 -1
- package/resources/account-statements.mjs +2 -2
- package/resources/account-statements.mjs.map +1 -1
- package/resources/account-transfers.js +5 -5
- package/resources/account-transfers.js.map +1 -1
- package/resources/account-transfers.mjs +5 -5
- package/resources/account-transfers.mjs.map +1 -1
- package/resources/accounts.d.ts +38 -0
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +11 -5
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +11 -5
- package/resources/accounts.mjs.map +1 -1
- package/resources/ach-prenotifications.js +3 -3
- package/resources/ach-prenotifications.js.map +1 -1
- package/resources/ach-prenotifications.mjs +3 -3
- package/resources/ach-prenotifications.mjs.map +1 -1
- package/resources/ach-transfers.js +5 -5
- package/resources/ach-transfers.js.map +1 -1
- package/resources/ach-transfers.mjs +5 -5
- package/resources/ach-transfers.mjs.map +1 -1
- package/resources/bookkeeping-accounts.d.ts +36 -1
- package/resources/bookkeeping-accounts.d.ts.map +1 -1
- package/resources/bookkeeping-accounts.js +9 -3
- package/resources/bookkeeping-accounts.js.map +1 -1
- package/resources/bookkeeping-accounts.mjs +9 -3
- package/resources/bookkeeping-accounts.mjs.map +1 -1
- package/resources/bookkeeping-entries.d.ts +11 -1
- package/resources/bookkeeping-entries.d.ts.map +1 -1
- package/resources/bookkeeping-entries.js +7 -1
- package/resources/bookkeeping-entries.js.map +1 -1
- package/resources/bookkeeping-entries.mjs +7 -1
- package/resources/bookkeeping-entries.mjs.map +1 -1
- package/resources/bookkeeping-entry-sets.d.ts +28 -1
- package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
- package/resources/bookkeeping-entry-sets.js +47 -2
- package/resources/bookkeeping-entry-sets.js.map +1 -1
- package/resources/bookkeeping-entry-sets.mjs +22 -1
- package/resources/bookkeeping-entry-sets.mjs.map +1 -1
- package/resources/card-disputes.js +3 -3
- package/resources/card-disputes.js.map +1 -1
- package/resources/card-disputes.mjs +3 -3
- package/resources/card-disputes.mjs.map +1 -1
- package/resources/card-payments.d.ts +36 -0
- package/resources/card-payments.d.ts.map +1 -1
- package/resources/card-payments.js +2 -2
- package/resources/card-payments.js.map +1 -1
- package/resources/card-payments.mjs +2 -2
- package/resources/card-payments.mjs.map +1 -1
- package/resources/card-profiles.js +4 -4
- package/resources/card-profiles.js.map +1 -1
- package/resources/card-profiles.mjs +4 -4
- package/resources/card-profiles.mjs.map +1 -1
- package/resources/card-purchase-supplements.d.ts.map +1 -1
- package/resources/card-purchase-supplements.js +5 -2
- package/resources/card-purchase-supplements.js.map +1 -1
- package/resources/card-purchase-supplements.mjs +5 -2
- package/resources/card-purchase-supplements.mjs.map +1 -1
- package/resources/cards.js +5 -5
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs +5 -5
- package/resources/cards.mjs.map +1 -1
- package/resources/check-deposits.js +3 -3
- package/resources/check-deposits.js.map +1 -1
- package/resources/check-deposits.mjs +3 -3
- package/resources/check-deposits.mjs.map +1 -1
- package/resources/check-transfers.js +6 -6
- package/resources/check-transfers.js.map +1 -1
- package/resources/check-transfers.mjs +6 -6
- package/resources/check-transfers.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +28 -0
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js +2 -2
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs +2 -2
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/digital-wallet-tokens.js +2 -2
- package/resources/digital-wallet-tokens.js.map +1 -1
- package/resources/digital-wallet-tokens.mjs +2 -2
- package/resources/digital-wallet-tokens.mjs.map +1 -1
- package/resources/documents.js +2 -2
- package/resources/documents.js.map +1 -1
- package/resources/documents.mjs +2 -2
- package/resources/documents.mjs.map +1 -1
- package/resources/entities/beneficial-owners.js +3 -3
- package/resources/entities/beneficial-owners.js.map +1 -1
- package/resources/entities/beneficial-owners.mjs +3 -3
- package/resources/entities/beneficial-owners.mjs.map +1 -1
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js +7 -7
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs +7 -7
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/supplemental-documents.js +2 -2
- package/resources/entities/supplemental-documents.js.map +1 -1
- package/resources/entities/supplemental-documents.mjs +2 -2
- package/resources/entities/supplemental-documents.mjs.map +1 -1
- package/resources/event-subscriptions.js +4 -4
- package/resources/event-subscriptions.js.map +1 -1
- package/resources/event-subscriptions.mjs +4 -4
- package/resources/event-subscriptions.mjs.map +1 -1
- package/resources/events.js +2 -2
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +2 -2
- package/resources/events.mjs.map +1 -1
- package/resources/exports.d.ts +29 -2
- package/resources/exports.d.ts.map +1 -1
- package/resources/exports.js +3 -3
- package/resources/exports.js.map +1 -1
- package/resources/exports.mjs +3 -3
- package/resources/exports.mjs.map +1 -1
- package/resources/external-accounts.js +4 -4
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs +4 -4
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/files.js +3 -3
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +3 -3
- package/resources/files.mjs.map +1 -1
- package/resources/groups.js +1 -1
- package/resources/groups.js.map +1 -1
- package/resources/groups.mjs +1 -1
- package/resources/groups.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js +8 -5
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs +8 -5
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/inbound-wire-drawdown-requests.js +2 -2
- package/resources/inbound-wire-drawdown-requests.js.map +1 -1
- package/resources/inbound-wire-drawdown-requests.mjs +2 -2
- package/resources/inbound-wire-drawdown-requests.mjs.map +1 -1
- package/resources/index.d.ts +3 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +2 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -2
- package/resources/index.mjs.map +1 -1
- package/resources/oauth-connections.js +2 -2
- package/resources/oauth-connections.js.map +1 -1
- package/resources/oauth-connections.mjs +2 -2
- package/resources/oauth-connections.mjs.map +1 -1
- package/resources/pending-transactions.d.ts +18 -0
- package/resources/pending-transactions.d.ts.map +1 -1
- package/resources/pending-transactions.js +2 -2
- package/resources/pending-transactions.js.map +1 -1
- package/resources/pending-transactions.mjs +2 -2
- package/resources/pending-transactions.mjs.map +1 -1
- package/resources/physical-cards.js +4 -4
- package/resources/physical-cards.js.map +1 -1
- package/resources/physical-cards.mjs +4 -4
- package/resources/physical-cards.mjs.map +1 -1
- package/resources/programs.js +2 -2
- package/resources/programs.js.map +1 -1
- package/resources/programs.mjs +2 -2
- package/resources/programs.mjs.map +1 -1
- package/resources/real-time-decisions.d.ts +18 -0
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/real-time-decisions.js +2 -2
- package/resources/real-time-decisions.js.map +1 -1
- package/resources/real-time-decisions.mjs +2 -2
- package/resources/real-time-decisions.mjs.map +1 -1
- package/resources/real-time-payments-transfers.js +3 -3
- package/resources/real-time-payments-transfers.js.map +1 -1
- package/resources/real-time-payments-transfers.mjs +3 -3
- package/resources/real-time-payments-transfers.mjs.map +1 -1
- package/resources/routing-numbers.js +1 -1
- package/resources/routing-numbers.js.map +1 -1
- package/resources/routing-numbers.mjs +1 -1
- package/resources/routing-numbers.mjs.map +1 -1
- package/resources/simulations/account-statements.js +1 -1
- package/resources/simulations/account-statements.js.map +1 -1
- package/resources/simulations/account-statements.mjs +1 -1
- package/resources/simulations/account-statements.mjs.map +1 -1
- package/resources/simulations/account-transfers.js +1 -1
- package/resources/simulations/account-transfers.js.map +1 -1
- package/resources/simulations/account-transfers.mjs +1 -1
- package/resources/simulations/account-transfers.mjs.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +28 -0
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js +3 -3
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs +3 -3
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/card-disputes.js +1 -1
- package/resources/simulations/card-disputes.js.map +1 -1
- package/resources/simulations/card-disputes.mjs +1 -1
- package/resources/simulations/card-disputes.mjs.map +1 -1
- package/resources/simulations/card-profiles.js +1 -1
- package/resources/simulations/card-profiles.js.map +1 -1
- package/resources/simulations/card-profiles.mjs +1 -1
- package/resources/simulations/card-profiles.mjs.map +1 -1
- package/resources/simulations/card-refunds.js +1 -1
- package/resources/simulations/card-refunds.js.map +1 -1
- package/resources/simulations/card-refunds.mjs +1 -1
- package/resources/simulations/card-refunds.mjs.map +1 -1
- package/resources/simulations/cards.d.ts +46 -0
- package/resources/simulations/cards.d.ts.map +1 -1
- package/resources/simulations/cards.js +2 -2
- package/resources/simulations/cards.js.map +1 -1
- package/resources/simulations/cards.mjs +2 -2
- package/resources/simulations/cards.mjs.map +1 -1
- package/resources/simulations/check-deposits.js +3 -3
- package/resources/simulations/check-deposits.js.map +1 -1
- package/resources/simulations/check-deposits.mjs +3 -3
- package/resources/simulations/check-deposits.mjs.map +1 -1
- package/resources/simulations/check-transfers.js +2 -2
- package/resources/simulations/check-transfers.js.map +1 -1
- package/resources/simulations/check-transfers.mjs +2 -2
- package/resources/simulations/check-transfers.mjs.map +1 -1
- package/resources/simulations/digital-wallet-token-requests.js +1 -1
- package/resources/simulations/digital-wallet-token-requests.js.map +1 -1
- package/resources/simulations/digital-wallet-token-requests.mjs +1 -1
- package/resources/simulations/digital-wallet-token-requests.mjs.map +1 -1
- package/resources/simulations/documents.js +1 -1
- package/resources/simulations/documents.js.map +1 -1
- package/resources/simulations/documents.mjs +1 -1
- package/resources/simulations/documents.mjs.map +1 -1
- package/resources/simulations/inbound-funds-holds.js +1 -1
- package/resources/simulations/inbound-funds-holds.js.map +1 -1
- package/resources/simulations/inbound-funds-holds.mjs +1 -1
- package/resources/simulations/inbound-funds-holds.mjs.map +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.js +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.mjs +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.mjs.map +1 -1
- package/resources/simulations/interest-payments.js +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/physical-cards.d.ts.map +1 -1
- package/resources/simulations/physical-cards.js +4 -1
- package/resources/simulations/physical-cards.js.map +1 -1
- package/resources/simulations/physical-cards.mjs +4 -1
- package/resources/simulations/physical-cards.mjs.map +1 -1
- package/resources/simulations/programs.js +1 -1
- package/resources/simulations/programs.js.map +1 -1
- package/resources/simulations/programs.mjs +1 -1
- package/resources/simulations/programs.mjs.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.ts +28 -0
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js +2 -5
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs +2 -5
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +18 -18
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +18 -18
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/simulations/wire-transfers.js +1 -1
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs +1 -1
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/transactions.js +2 -2
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +2 -2
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-drawdown-requests.d.ts.map +1 -1
- package/resources/wire-drawdown-requests.js +6 -3
- package/resources/wire-drawdown-requests.js.map +1 -1
- package/resources/wire-drawdown-requests.mjs +6 -3
- package/resources/wire-drawdown-requests.mjs.map +1 -1
- package/resources/wire-transfers.js +7 -7
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs +7 -7
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/core.ts +11 -23
- package/src/index.ts +23 -9
- package/src/resource.ts +3 -16
- package/src/resources/account-numbers.ts +4 -4
- package/src/resources/account-statements.ts +2 -2
- package/src/resources/account-transfers.ts +5 -5
- package/src/resources/accounts.ts +63 -5
- package/src/resources/ach-prenotifications.ts +3 -3
- package/src/resources/ach-transfers.ts +5 -5
- package/src/resources/bookkeeping-accounts.ts +61 -4
- package/src/resources/bookkeeping-entries.ts +16 -2
- package/src/resources/bookkeeping-entry-sets.ts +54 -2
- package/src/resources/card-disputes.ts +3 -3
- package/src/resources/card-payments.ts +52 -2
- package/src/resources/card-profiles.ts +4 -4
- package/src/resources/card-purchase-supplements.ts +5 -2
- package/src/resources/cards.ts +5 -5
- package/src/resources/check-deposits.ts +3 -3
- package/src/resources/check-transfers.ts +6 -6
- package/src/resources/declined-transactions.ts +39 -2
- package/src/resources/digital-wallet-tokens.ts +2 -2
- package/src/resources/documents.ts +2 -2
- package/src/resources/entities/beneficial-owners.ts +3 -3
- package/src/resources/entities/entities.ts +7 -7
- package/src/resources/entities/supplemental-documents.ts +2 -2
- package/src/resources/event-subscriptions.ts +4 -4
- package/src/resources/events.ts +2 -2
- package/src/resources/exports.ts +45 -5
- package/src/resources/external-accounts.ts +4 -4
- package/src/resources/files.ts +3 -3
- package/src/resources/groups.ts +1 -1
- package/src/resources/inbound-ach-transfers.ts +8 -5
- package/src/resources/inbound-wire-drawdown-requests.ts +2 -2
- package/src/resources/index.ts +6 -1
- package/src/resources/oauth-connections.ts +2 -2
- package/src/resources/pending-transactions.ts +27 -2
- package/src/resources/physical-cards.ts +4 -4
- package/src/resources/programs.ts +2 -2
- package/src/resources/real-time-decisions.ts +27 -2
- package/src/resources/real-time-payments-transfers.ts +3 -3
- package/src/resources/routing-numbers.ts +1 -1
- package/src/resources/simulations/account-statements.ts +1 -1
- package/src/resources/simulations/account-transfers.ts +1 -1
- package/src/resources/simulations/ach-transfers.ts +40 -3
- package/src/resources/simulations/card-disputes.ts +1 -1
- package/src/resources/simulations/card-profiles.ts +1 -1
- package/src/resources/simulations/card-refunds.ts +1 -1
- package/src/resources/simulations/cards.ts +64 -2
- package/src/resources/simulations/check-deposits.ts +3 -3
- package/src/resources/simulations/check-transfers.ts +2 -2
- package/src/resources/simulations/digital-wallet-token-requests.ts +1 -1
- package/src/resources/simulations/documents.ts +1 -1
- package/src/resources/simulations/inbound-funds-holds.ts +1 -1
- package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
- package/src/resources/simulations/interest-payments.ts +1 -1
- package/src/resources/simulations/physical-cards.ts +4 -1
- package/src/resources/simulations/programs.ts +1 -1
- package/src/resources/simulations/real-time-payments-transfers.ts +42 -5
- package/src/resources/simulations/simulations.ts +18 -18
- package/src/resources/simulations/wire-transfers.ts +1 -1
- package/src/resources/transactions.ts +2 -2
- package/src/resources/wire-drawdown-requests.ts +6 -3
- package/src/resources/wire-transfers.ts +7 -7
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/balance-lookups.d.ts +0 -49
- package/resources/balance-lookups.d.ts.map +0 -1
- package/resources/balance-lookups.js +0 -17
- package/resources/balance-lookups.js.map +0 -1
- package/resources/balance-lookups.mjs +0 -13
- package/resources/balance-lookups.mjs.map +0 -1
- package/src/resources/balance-lookups.ts +0 -63
|
@@ -47,24 +47,24 @@ const WireTransfersAPI = __importStar(require("increase/resources/simulations/wi
|
|
|
47
47
|
class Simulations extends resource_1.APIResource {
|
|
48
48
|
constructor() {
|
|
49
49
|
super(...arguments);
|
|
50
|
-
this.accountTransfers = new AccountTransfersAPI.AccountTransfers(this.
|
|
51
|
-
this.accountStatements = new AccountStatementsAPI.AccountStatements(this.
|
|
52
|
-
this.achTransfers = new ACHTransfersAPI.ACHTransfers(this.
|
|
53
|
-
this.cardDisputes = new CardDisputesAPI.CardDisputes(this.
|
|
54
|
-
this.cardProfiles = new CardProfilesAPI.CardProfiles(this.
|
|
55
|
-
this.cardRefunds = new CardRefundsAPI.CardRefunds(this.
|
|
56
|
-
this.checkTransfers = new CheckTransfersAPI.CheckTransfers(this.
|
|
57
|
-
this.documents = new DocumentsAPI.Documents(this.
|
|
58
|
-
this.digitalWalletTokenRequests = new DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequests(this.
|
|
59
|
-
this.checkDeposits = new CheckDepositsAPI.CheckDeposits(this.
|
|
60
|
-
this.programs = new ProgramsAPI.Programs(this.
|
|
61
|
-
this.inboundWireDrawdownRequests = new InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequests(this.
|
|
62
|
-
this.inboundFundsHolds = new InboundFundsHoldsAPI.InboundFundsHolds(this.
|
|
63
|
-
this.interestPayments = new InterestPaymentsAPI.InterestPayments(this.
|
|
64
|
-
this.wireTransfers = new WireTransfersAPI.WireTransfers(this.
|
|
65
|
-
this.cards = new CardsAPI.Cards(this.
|
|
66
|
-
this.realTimePaymentsTransfers = new RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers(this.
|
|
67
|
-
this.physicalCards = new PhysicalCardsAPI.PhysicalCards(this.
|
|
50
|
+
this.accountTransfers = new AccountTransfersAPI.AccountTransfers(this._client);
|
|
51
|
+
this.accountStatements = new AccountStatementsAPI.AccountStatements(this._client);
|
|
52
|
+
this.achTransfers = new ACHTransfersAPI.ACHTransfers(this._client);
|
|
53
|
+
this.cardDisputes = new CardDisputesAPI.CardDisputes(this._client);
|
|
54
|
+
this.cardProfiles = new CardProfilesAPI.CardProfiles(this._client);
|
|
55
|
+
this.cardRefunds = new CardRefundsAPI.CardRefunds(this._client);
|
|
56
|
+
this.checkTransfers = new CheckTransfersAPI.CheckTransfers(this._client);
|
|
57
|
+
this.documents = new DocumentsAPI.Documents(this._client);
|
|
58
|
+
this.digitalWalletTokenRequests = new DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequests(this._client);
|
|
59
|
+
this.checkDeposits = new CheckDepositsAPI.CheckDeposits(this._client);
|
|
60
|
+
this.programs = new ProgramsAPI.Programs(this._client);
|
|
61
|
+
this.inboundWireDrawdownRequests = new InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequests(this._client);
|
|
62
|
+
this.inboundFundsHolds = new InboundFundsHoldsAPI.InboundFundsHolds(this._client);
|
|
63
|
+
this.interestPayments = new InterestPaymentsAPI.InterestPayments(this._client);
|
|
64
|
+
this.wireTransfers = new WireTransfersAPI.WireTransfers(this._client);
|
|
65
|
+
this.cards = new CardsAPI.Cards(this._client);
|
|
66
|
+
this.realTimePaymentsTransfers = new RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers(this._client);
|
|
67
|
+
this.physicalCards = new PhysicalCardsAPI.PhysicalCards(this._client);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
exports.Simulations = Simulations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulations.js","sourceRoot":"","sources":["../../src/resources/simulations/simulations.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAErD,gDAAgD;AAChD,wGAA0F;AAC1F,sGAAwF;AACxF,8FAAgF;AAChF,8FAAgF;AAChF,8FAAgF;AAChF,4FAA8E;AAC9E,+EAAiE;AACjE,gGAAkF;AAClF,kGAAoF;AACpF,4HAA8G;AAC9G,uFAAyE;AACzE,yGAA2F;AAC3F,8HAAgH;AAChH,sGAAwF;AACxF,gGAAkF;AAClF,qFAAuE;AACvE,0HAA4G;AAC5G,gGAAkF;AAElF,MAAa,WAAY,SAAQ,sBAAW;IAA5C;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"simulations.js","sourceRoot":"","sources":["../../src/resources/simulations/simulations.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAErD,gDAAgD;AAChD,wGAA0F;AAC1F,sGAAwF;AACxF,8FAAgF;AAChF,8FAAgF;AAChF,8FAAgF;AAChF,4FAA8E;AAC9E,+EAAiE;AACjE,gGAAkF;AAClF,kGAAoF;AACpF,4HAA8G;AAC9G,uFAAyE;AACzE,yGAA2F;AAC3F,8HAAgH;AAChH,sGAAwF;AACxF,gGAAkF;AAClF,qFAAuE;AACvE,0HAA4G;AAC5G,gGAAkF;AAElF,MAAa,WAAY,SAAQ,sBAAW;IAA5C;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,sBAAiB,GAA2C,IAAI,oBAAoB,CAAC,iBAAiB,CACpG,IAAI,CAAC,OAAO,CACb,CAAC;QACF,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAA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I,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AA9BD,kCA8BC;AAED,WAAiB,WAAW;IACZ,4BAAgB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC;IACxD,6BAAiB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC;IAE3D,wBAAY,GAAG,eAAe,CAAC,YAAY,CAAC;IAI5C,wBAAY,GAAG,eAAe,CAAC,YAAY,CAAC;IAE5C,wBAAY,GAAG,eAAe,CAAC,YAAY,CAAC;IAC5C,uBAAW,GAAG,cAAc,CAAC,WAAW,CAAC;IAEzC,0BAAc,GAAG,iBAAiB,CAAC,cAAc,CAAC;IAClD,qBAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAEnC,sCAA0B,GAAG,6BAA6B,CAAC,0BAA0B,CAAC;IAGtF,yBAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;IAC/C,oBAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAEhC,uCAA2B,GAAG,8BAA8B,CAAC,2BAA2B,CAAC;IAEzF,6BAAiB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC;IAE3D,4BAAgB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC;IAGxD,yBAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;IAG/C,iBAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAIvB,qCAAyB,GAAG,4BAA4B,CAAC,yBAAyB,CAAC;IAInF,yBAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;AAE/D,CAAC,EA1CgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QA0C3B"}
|
|
@@ -21,24 +21,24 @@ import * as WireTransfersAPI from 'increase/resources/simulations/wire-transfers
|
|
|
21
21
|
export class Simulations extends APIResource {
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments);
|
|
24
|
-
this.accountTransfers = new AccountTransfersAPI.AccountTransfers(this.
|
|
25
|
-
this.accountStatements = new AccountStatementsAPI.AccountStatements(this.
|
|
26
|
-
this.achTransfers = new ACHTransfersAPI.ACHTransfers(this.
|
|
27
|
-
this.cardDisputes = new CardDisputesAPI.CardDisputes(this.
|
|
28
|
-
this.cardProfiles = new CardProfilesAPI.CardProfiles(this.
|
|
29
|
-
this.cardRefunds = new CardRefundsAPI.CardRefunds(this.
|
|
30
|
-
this.checkTransfers = new CheckTransfersAPI.CheckTransfers(this.
|
|
31
|
-
this.documents = new DocumentsAPI.Documents(this.
|
|
32
|
-
this.digitalWalletTokenRequests = new DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequests(this.
|
|
33
|
-
this.checkDeposits = new CheckDepositsAPI.CheckDeposits(this.
|
|
34
|
-
this.programs = new ProgramsAPI.Programs(this.
|
|
35
|
-
this.inboundWireDrawdownRequests = new InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequests(this.
|
|
36
|
-
this.inboundFundsHolds = new InboundFundsHoldsAPI.InboundFundsHolds(this.
|
|
37
|
-
this.interestPayments = new InterestPaymentsAPI.InterestPayments(this.
|
|
38
|
-
this.wireTransfers = new WireTransfersAPI.WireTransfers(this.
|
|
39
|
-
this.cards = new CardsAPI.Cards(this.
|
|
40
|
-
this.realTimePaymentsTransfers = new RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers(this.
|
|
41
|
-
this.physicalCards = new PhysicalCardsAPI.PhysicalCards(this.
|
|
24
|
+
this.accountTransfers = new AccountTransfersAPI.AccountTransfers(this._client);
|
|
25
|
+
this.accountStatements = new AccountStatementsAPI.AccountStatements(this._client);
|
|
26
|
+
this.achTransfers = new ACHTransfersAPI.ACHTransfers(this._client);
|
|
27
|
+
this.cardDisputes = new CardDisputesAPI.CardDisputes(this._client);
|
|
28
|
+
this.cardProfiles = new CardProfilesAPI.CardProfiles(this._client);
|
|
29
|
+
this.cardRefunds = new CardRefundsAPI.CardRefunds(this._client);
|
|
30
|
+
this.checkTransfers = new CheckTransfersAPI.CheckTransfers(this._client);
|
|
31
|
+
this.documents = new DocumentsAPI.Documents(this._client);
|
|
32
|
+
this.digitalWalletTokenRequests = new DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequests(this._client);
|
|
33
|
+
this.checkDeposits = new CheckDepositsAPI.CheckDeposits(this._client);
|
|
34
|
+
this.programs = new ProgramsAPI.Programs(this._client);
|
|
35
|
+
this.inboundWireDrawdownRequests = new InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequests(this._client);
|
|
36
|
+
this.inboundFundsHolds = new InboundFundsHoldsAPI.InboundFundsHolds(this._client);
|
|
37
|
+
this.interestPayments = new InterestPaymentsAPI.InterestPayments(this._client);
|
|
38
|
+
this.wireTransfers = new WireTransfersAPI.WireTransfers(this._client);
|
|
39
|
+
this.cards = new CardsAPI.Cards(this._client);
|
|
40
|
+
this.realTimePaymentsTransfers = new RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers(this._client);
|
|
41
|
+
this.physicalCards = new PhysicalCardsAPI.PhysicalCards(this._client);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
(function (Simulations) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulations.mjs","sourceRoot":"","sources":["../../src/resources/simulations/simulations.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;OACxC,KAAK,oBAAoB,MAAM,mDAAmD;OAClF,KAAK,mBAAmB,MAAM,kDAAkD;OAChF,KAAK,eAAe,MAAM,8CAA8C;OACxE,KAAK,eAAe,MAAM,8CAA8C;OACxE,KAAK,eAAe,MAAM,8CAA8C;OACxE,KAAK,cAAc,MAAM,6CAA6C;OACtE,KAAK,QAAQ,MAAM,sCAAsC;OACzD,KAAK,gBAAgB,MAAM,+CAA+C;OAC1E,KAAK,iBAAiB,MAAM,gDAAgD;OAC5E,KAAK,6BAA6B,MAAM,8DAA8D;OACtG,KAAK,YAAY,MAAM,0CAA0C;OACjE,KAAK,oBAAoB,MAAM,oDAAoD;OACnF,KAAK,8BAA8B,MAAM,+DAA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AAC,yBAAyB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3E,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAED,WAAiB,WAAW;IACZ,4BAAgB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC;IACxD,6BAAiB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC;IAE3D,wBAAY,GAAG,eAAe,CAAC,YAAY,CAAC;IAI5C,wBAAY,GAAG,eAAe,CAAC,YAAY,CAAC;IAE5C,wBAAY,GAAG,eAAe,CAAC,YAAY,CAAC;IAC5C,uBAAW,GAAG,cAAc,CAAC,WAAW,CAAC;IAEzC,0BAAc,GAAG,iBAAiB,CAAC,cAAc,CAAC;IAClD,qBAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAEnC,sCAA0B,GAAG,6BAA6B,CAAC,0BAA0B,CAAC;IAGtF,yBAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;IAC/C,oBAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAEhC,uCAA2B,GAAG,8BAA8B,CAAC,2BAA2B,CAAC;IAEzF,6BAAiB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC;IAE3D,4BAAgB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC;IAGxD,yBAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;IAG/C,iBAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAIvB,qCAAyB,GAAG,4BAA4B,CAAC,yBAAyB,CAAC;IAInF,yBAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;AAE/D,CAAC,EA1CgB,WAAW,KAAX,WAAW,QA0C3B"}
|
|
@@ -8,7 +8,7 @@ class WireTransfers extends resource_1.APIResource {
|
|
|
8
8
|
* Simulates an inbound Wire Transfer to your account.
|
|
9
9
|
*/
|
|
10
10
|
createInbound(body, options) {
|
|
11
|
-
return this.post('/simulations/inbound_wire_transfers', { body, ...options });
|
|
11
|
+
return this._client.post('/simulations/inbound_wire_transfers', { body, ...options });
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.WireTransfers = WireTransfers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-transfers.js","sourceRoot":"","sources":["../../src/resources/simulations/wire-transfers.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,gDAAgD;AAGhD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,aAAa,CACX,IAAqC,EACrC,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"wire-transfers.js","sourceRoot":"","sources":["../../src/resources/simulations/wire-transfers.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,gDAAgD;AAGhD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,aAAa,CACX,IAAqC,EACrC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF;AAVD,sCAUC;AA04GD,WAAiB,aAAa;AAG9B,CAAC,EAHgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAG7B"}
|
|
@@ -5,7 +5,7 @@ export class WireTransfers extends APIResource {
|
|
|
5
5
|
* Simulates an inbound Wire Transfer to your account.
|
|
6
6
|
*/
|
|
7
7
|
createInbound(body, options) {
|
|
8
|
-
return this.post('/simulations/inbound_wire_transfers', { body, ...options });
|
|
8
|
+
return this._client.post('/simulations/inbound_wire_transfers', { body, ...options });
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
(function (WireTransfers) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-transfers.mjs","sourceRoot":"","sources":["../../src/resources/simulations/wire-transfers.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;AAG/C,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,aAAa,CACX,IAAqC,EACrC,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"wire-transfers.mjs","sourceRoot":"","sources":["../../src/resources/simulations/wire-transfers.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;AAG/C,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,aAAa,CACX,IAAqC,EACrC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF;AA04GD,WAAiB,aAAa;AAG9B,CAAC,EAHgB,aAAa,KAAb,aAAa,QAG7B"}
|
|
@@ -34,13 +34,13 @@ class Transactions extends resource_1.APIResource {
|
|
|
34
34
|
* Retrieve a Transaction
|
|
35
35
|
*/
|
|
36
36
|
retrieve(transactionId, options) {
|
|
37
|
-
return this.get(`/transactions/${transactionId}`, options);
|
|
37
|
+
return this._client.get(`/transactions/${transactionId}`, options);
|
|
38
38
|
}
|
|
39
39
|
list(query = {}, options) {
|
|
40
40
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
41
41
|
return this.list({}, query);
|
|
42
42
|
}
|
|
43
|
-
return this.getAPIList('/transactions', TransactionsPage, { query, ...options });
|
|
43
|
+
return this._client.getAPIList('/transactions', TransactionsPage, { query, ...options });
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.Transactions = Transactions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../src/resources/transactions.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,gDAAgD;AAChD,wCAAiD;AACjD,iFAAmE;AACnE,oDAA4D;AAE5D,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,GAAG,CAAC,iBAAiB,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../src/resources/transactions.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,gDAAgD;AAChD,wCAAiD;AACjD,iFAAmE;AACnE,oDAA4D;AAE5D,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAUD,IAAI,CACF,QAAqD,EAAE,EACvD,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,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAzBD,oCAyBC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAAG;AAA1D,4CAA0D;AAy2G1D,WAAiB,YAAY;IAEb,6BAAgB,GAAG,eAAe,CAAC,gBAAgB,CAAC;AAEpE,CAAC,EAJgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAI5B"}
|
|
@@ -8,13 +8,13 @@ export class Transactions extends APIResource {
|
|
|
8
8
|
* Retrieve a Transaction
|
|
9
9
|
*/
|
|
10
10
|
retrieve(transactionId, options) {
|
|
11
|
-
return this.get(`/transactions/${transactionId}`, options);
|
|
11
|
+
return this._client.get(`/transactions/${transactionId}`, options);
|
|
12
12
|
}
|
|
13
13
|
list(query = {}, options) {
|
|
14
14
|
if (isRequestOptions(query)) {
|
|
15
15
|
return this.list({}, query);
|
|
16
16
|
}
|
|
17
|
-
return this.getAPIList('/transactions', TransactionsPage, { query, ...options });
|
|
17
|
+
return this._client.getAPIList('/transactions', TransactionsPage, { query, ...options });
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
export class TransactionsPage extends Page {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.mjs","sourceRoot":"","sources":["../src/resources/transactions.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;OACxC,EAAE,gBAAgB,EAAE,MAAM,eAAe;OACzC,KAAK,eAAe,MAAM,iCAAiC;OAC3D,EAAE,IAAI,EAAmB,MAAM,qBAAqB;AAE3D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,GAAG,CAAC,iBAAiB,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"transactions.mjs","sourceRoot":"","sources":["../src/resources/transactions.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;OACxC,EAAE,gBAAgB,EAAE,MAAM,eAAe;OACzC,KAAK,eAAe,MAAM,iCAAiC;OAC3D,EAAE,IAAI,EAAmB,MAAM,qBAAqB;AAE3D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAA6B;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AAwB,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,6BAA8B,SAAQ,UAAU;CAAG;AAEpE,yBAAiB,oBAAoB,CAAC;IACpC,MAAM,QAAQ,mBAAmB,GAAG,uBAAuB,CAAC,mBAAmB,CAAC;IAChF,MAAM,QAAQ,wBAAwB,GAAG,uBAAuB,CAAC,wBAAwB,CAAC;IAC1F,MAAM,QAAQ,+BAA+B,GAAG,uBAAuB,CAAC,+BAA+B,CAAC;IACxG,MAAM,QAAQ,6BAA6B,GAAG,uBAAuB,CAAC,6BAA6B,CAAC;CACrG"}
|
|
@@ -34,19 +34,22 @@ class WireDrawdownRequests extends resource_1.APIResource {
|
|
|
34
34
|
* Create a Wire Drawdown Request
|
|
35
35
|
*/
|
|
36
36
|
create(body, options) {
|
|
37
|
-
return this.post('/wire_drawdown_requests', { body, ...options });
|
|
37
|
+
return this._client.post('/wire_drawdown_requests', { body, ...options });
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Retrieve a Wire Drawdown Request
|
|
41
41
|
*/
|
|
42
42
|
retrieve(wireDrawdownRequestId, options) {
|
|
43
|
-
return this.get(`/wire_drawdown_requests/${wireDrawdownRequestId}`, options);
|
|
43
|
+
return this._client.get(`/wire_drawdown_requests/${wireDrawdownRequestId}`, options);
|
|
44
44
|
}
|
|
45
45
|
list(query = {}, options) {
|
|
46
46
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
47
47
|
return this.list({}, query);
|
|
48
48
|
}
|
|
49
|
-
return this.getAPIList('/wire_drawdown_requests', WireDrawdownRequestsPage, {
|
|
49
|
+
return this._client.getAPIList('/wire_drawdown_requests', WireDrawdownRequestsPage, {
|
|
50
|
+
query,
|
|
51
|
+
...options,
|
|
52
|
+
});
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
exports.WireDrawdownRequests = WireDrawdownRequests;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-drawdown-requests.js","sourceRoot":"","sources":["../src/resources/wire-drawdown-requests.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,gDAAgD;AAChD,wCAAiD;AACjD,mGAAqF;AACrF,oDAA4D;AAE5D,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;OAEG;IACH,MAAM,CACJ,IAAqC,EACrC,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"wire-drawdown-requests.js","sourceRoot":"","sources":["../src/resources/wire-drawdown-requests.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,gDAAgD;AAChD,wCAAiD;AACjD,mGAAqF;AACrF,oDAA4D;AAE5D,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;OAEG;IACH,MAAM,CACJ,IAAqC,EACrC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,qBAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,qBAAqB,EAAE,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAUD,IAAI,CACF,QAA6D,EAAE,EAC/D,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,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,wBAAwB,EAAE;YAClF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAzCD,oDAyCC;AAED,MAAa,wBAAyB,SAAQ,iBAAyB;CAAG;AAA1E,4DAA0E;AA+J1E,WAAiB,oBAAoB;IAErB,6CAAwB,GAAG,uBAAuB,CAAC,wBAAwB,CAAC;AAG5F,CAAC,EALgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAKpC"}
|
|
@@ -8,19 +8,22 @@ export class WireDrawdownRequests extends APIResource {
|
|
|
8
8
|
* Create a Wire Drawdown Request
|
|
9
9
|
*/
|
|
10
10
|
create(body, options) {
|
|
11
|
-
return this.post('/wire_drawdown_requests', { body, ...options });
|
|
11
|
+
return this._client.post('/wire_drawdown_requests', { body, ...options });
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Retrieve a Wire Drawdown Request
|
|
15
15
|
*/
|
|
16
16
|
retrieve(wireDrawdownRequestId, options) {
|
|
17
|
-
return this.get(`/wire_drawdown_requests/${wireDrawdownRequestId}`, options);
|
|
17
|
+
return this._client.get(`/wire_drawdown_requests/${wireDrawdownRequestId}`, options);
|
|
18
18
|
}
|
|
19
19
|
list(query = {}, options) {
|
|
20
20
|
if (isRequestOptions(query)) {
|
|
21
21
|
return this.list({}, query);
|
|
22
22
|
}
|
|
23
|
-
return this.getAPIList('/wire_drawdown_requests', WireDrawdownRequestsPage, {
|
|
23
|
+
return this._client.getAPIList('/wire_drawdown_requests', WireDrawdownRequestsPage, {
|
|
24
|
+
query,
|
|
25
|
+
...options,
|
|
26
|
+
});
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
29
|
export class WireDrawdownRequestsPage extends Page {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-drawdown-requests.mjs","sourceRoot":"","sources":["../src/resources/wire-drawdown-requests.ts"],"names":[],"mappings":"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AwB,EAAE;YAClF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,wBAAyB,SAAQ,IAAyB;CAAG;AA+J1E,WAAiB,oBAAoB;IAErB,6CAAwB,GAAG,uBAAuB,CAAC,wBAAwB,CAAC;AAG5F,CAAC,EALgB,oBAAoB,KAApB,oBAAoB,QAKpC"}
|
|
@@ -34,31 +34,31 @@ class WireTransfers extends resource_1.APIResource {
|
|
|
34
34
|
* Create a Wire Transfer
|
|
35
35
|
*/
|
|
36
36
|
create(body, options) {
|
|
37
|
-
return this.post('/wire_transfers', { body, ...options });
|
|
37
|
+
return this._client.post('/wire_transfers', { body, ...options });
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Retrieve a Wire Transfer
|
|
41
41
|
*/
|
|
42
42
|
retrieve(wireTransferId, options) {
|
|
43
|
-
return this.get(`/wire_transfers/${wireTransferId}`, options);
|
|
43
|
+
return this._client.get(`/wire_transfers/${wireTransferId}`, options);
|
|
44
44
|
}
|
|
45
45
|
list(query = {}, options) {
|
|
46
46
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
47
47
|
return this.list({}, query);
|
|
48
48
|
}
|
|
49
|
-
return this.getAPIList('/wire_transfers', WireTransfersPage, { query, ...options });
|
|
49
|
+
return this._client.getAPIList('/wire_transfers', WireTransfersPage, { query, ...options });
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Approve a Wire Transfer
|
|
53
53
|
*/
|
|
54
54
|
approve(wireTransferId, options) {
|
|
55
|
-
return this.post(`/wire_transfers/${wireTransferId}/approve`, options);
|
|
55
|
+
return this._client.post(`/wire_transfers/${wireTransferId}/approve`, options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* Cancel a pending Wire Transfer
|
|
59
59
|
*/
|
|
60
60
|
cancel(wireTransferId, options) {
|
|
61
|
-
return this.post(`/wire_transfers/${wireTransferId}/cancel`, options);
|
|
61
|
+
return this._client.post(`/wire_transfers/${wireTransferId}/cancel`, options);
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* Simulates the reversal of a [Wire Transfer](#wire-transfers) by the Federal
|
|
@@ -67,7 +67,7 @@ class WireTransfers extends resource_1.APIResource {
|
|
|
67
67
|
* Transfer must first have a `status` of `complete`.
|
|
68
68
|
*/
|
|
69
69
|
reverse(wireTransferId, options) {
|
|
70
|
-
return this.post(`/simulations/wire_transfers/${wireTransferId}/reverse`, options);
|
|
70
|
+
return this._client.post(`/simulations/wire_transfers/${wireTransferId}/reverse`, options);
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* Simulates the submission of a [Wire Transfer](#wire-transfers) to the Federal
|
|
@@ -75,7 +75,7 @@ class WireTransfers extends resource_1.APIResource {
|
|
|
75
75
|
* `pending_creating`.
|
|
76
76
|
*/
|
|
77
77
|
submit(wireTransferId, options) {
|
|
78
|
-
return this.post(`/simulations/wire_transfers/${wireTransferId}/submit`, options);
|
|
78
|
+
return this._client.post(`/simulations/wire_transfers/${wireTransferId}/submit`, options);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
exports.WireTransfers = WireTransfers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-transfers.js","sourceRoot":"","sources":["../src/resources/wire-transfers.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,gDAAgD;AAChD,wCAAiD;AACjD,oFAAsE;AACtE,oDAA4D;AAE5D,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,IAA8B,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"wire-transfers.js","sourceRoot":"","sources":["../src/resources/wire-transfers.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;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;OAIG;IACH,MAAM,CAAC,cAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,cAAc,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;CACF;AAjED,sCAiEC;AAED,MAAa,iBAAkB,SAAQ,iBAAkB;CAAG;AAA5D,8CAA4D;AA4Z5D,WAAiB,aAAa;IAEd,+BAAiB,GAAG,gBAAgB,CAAC,iBAAiB,CAAC;AAGvE,CAAC,EALgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAK7B"}
|
|
@@ -8,31 +8,31 @@ export class WireTransfers extends APIResource {
|
|
|
8
8
|
* Create a Wire Transfer
|
|
9
9
|
*/
|
|
10
10
|
create(body, options) {
|
|
11
|
-
return this.post('/wire_transfers', { body, ...options });
|
|
11
|
+
return this._client.post('/wire_transfers', { body, ...options });
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Retrieve a Wire Transfer
|
|
15
15
|
*/
|
|
16
16
|
retrieve(wireTransferId, options) {
|
|
17
|
-
return this.get(`/wire_transfers/${wireTransferId}`, options);
|
|
17
|
+
return this._client.get(`/wire_transfers/${wireTransferId}`, options);
|
|
18
18
|
}
|
|
19
19
|
list(query = {}, options) {
|
|
20
20
|
if (isRequestOptions(query)) {
|
|
21
21
|
return this.list({}, query);
|
|
22
22
|
}
|
|
23
|
-
return this.getAPIList('/wire_transfers', WireTransfersPage, { query, ...options });
|
|
23
|
+
return this._client.getAPIList('/wire_transfers', WireTransfersPage, { query, ...options });
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Approve a Wire Transfer
|
|
27
27
|
*/
|
|
28
28
|
approve(wireTransferId, options) {
|
|
29
|
-
return this.post(`/wire_transfers/${wireTransferId}/approve`, options);
|
|
29
|
+
return this._client.post(`/wire_transfers/${wireTransferId}/approve`, options);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Cancel a pending Wire Transfer
|
|
33
33
|
*/
|
|
34
34
|
cancel(wireTransferId, options) {
|
|
35
|
-
return this.post(`/wire_transfers/${wireTransferId}/cancel`, options);
|
|
35
|
+
return this._client.post(`/wire_transfers/${wireTransferId}/cancel`, options);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Simulates the reversal of a [Wire Transfer](#wire-transfers) by the Federal
|
|
@@ -41,7 +41,7 @@ export class WireTransfers extends APIResource {
|
|
|
41
41
|
* Transfer must first have a `status` of `complete`.
|
|
42
42
|
*/
|
|
43
43
|
reverse(wireTransferId, options) {
|
|
44
|
-
return this.post(`/simulations/wire_transfers/${wireTransferId}/reverse`, options);
|
|
44
|
+
return this._client.post(`/simulations/wire_transfers/${wireTransferId}/reverse`, options);
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Simulates the submission of a [Wire Transfer](#wire-transfers) to the Federal
|
|
@@ -49,7 +49,7 @@ export class WireTransfers extends APIResource {
|
|
|
49
49
|
* `pending_creating`.
|
|
50
50
|
*/
|
|
51
51
|
submit(wireTransferId, options) {
|
|
52
|
-
return this.post(`/simulations/wire_transfers/${wireTransferId}/submit`, options);
|
|
52
|
+
return this._client.post(`/simulations/wire_transfers/${wireTransferId}/submit`, options);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
export class WireTransfersPage extends Page {
|
|
@@ -1 +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;OACzC,KAAK,gBAAgB,MAAM,mCAAmC;OAC9D,EAAE,IAAI,EAAmB,MAAM,qBAAqB;AAE3D,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,IAA8B,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,IAAI,CAAC,iBAA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CAAC,mBAAmB,cAAc,SAAS,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,cAAsB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,cAAc,UAAU,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,cAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,cAAc,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,IAAkB;CAAG;AA4Z5D,WAAiB,aAAa;IAEd,+BAAiB,GAAG,gBAAgB,CAAC,iBAAiB,CAAC;AAGvE,CAAC,EALgB,aAAa,KAAb,aAAa,QAK7B"}
|
package/src/core.ts
CHANGED
|
@@ -43,6 +43,10 @@ async function defaultParseResponse<T>(props: APIResponseProps): Promise<T> {
|
|
|
43
43
|
return null as T;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
if (props.options.__binaryResponse) {
|
|
47
|
+
return response as unknown as T;
|
|
48
|
+
}
|
|
49
|
+
|
|
46
50
|
const contentType = response.headers.get('content-type');
|
|
47
51
|
if (contentType?.includes('application/json')) {
|
|
48
52
|
const json = await response.json();
|
|
@@ -52,10 +56,11 @@ async function defaultParseResponse<T>(props: APIResponseProps): Promise<T> {
|
|
|
52
56
|
return json as T;
|
|
53
57
|
}
|
|
54
58
|
|
|
55
|
-
// TODO handle blob, arraybuffer, other content types, etc.
|
|
56
59
|
const text = await response.text();
|
|
57
60
|
debug('response', response.status, response.url, response.headers, text);
|
|
58
|
-
|
|
61
|
+
|
|
62
|
+
// TODO handle blob, arraybuffer, other content types, etc.
|
|
63
|
+
return text as unknown as T;
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
/**
|
|
@@ -550,27 +555,6 @@ export abstract class APIClient {
|
|
|
550
555
|
}
|
|
551
556
|
}
|
|
552
557
|
|
|
553
|
-
export class APIResource {
|
|
554
|
-
protected client: APIClient;
|
|
555
|
-
constructor(client: APIClient) {
|
|
556
|
-
this.client = client;
|
|
557
|
-
|
|
558
|
-
this.get = client.get.bind(client);
|
|
559
|
-
this.post = client.post.bind(client);
|
|
560
|
-
this.patch = client.patch.bind(client);
|
|
561
|
-
this.put = client.put.bind(client);
|
|
562
|
-
this.delete = client.delete.bind(client);
|
|
563
|
-
this.getAPIList = client.getAPIList.bind(client);
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
protected get: APIClient['get'];
|
|
567
|
-
protected post: APIClient['post'];
|
|
568
|
-
protected patch: APIClient['patch'];
|
|
569
|
-
protected put: APIClient['put'];
|
|
570
|
-
protected delete: APIClient['delete'];
|
|
571
|
-
protected getAPIList: APIClient['getAPIList'];
|
|
572
|
-
}
|
|
573
|
-
|
|
574
558
|
export type PageInfo = { url: URL } | { params: Record<string, unknown> | null };
|
|
575
559
|
|
|
576
560
|
export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
|
|
@@ -720,6 +704,8 @@ export type RequestOptions<Req extends {} = Record<string, unknown> | Readable>
|
|
|
720
704
|
httpAgent?: Agent;
|
|
721
705
|
signal?: AbortSignal | undefined | null;
|
|
722
706
|
idempotencyKey?: string;
|
|
707
|
+
|
|
708
|
+
__binaryResponse?: boolean | undefined;
|
|
723
709
|
};
|
|
724
710
|
|
|
725
711
|
// This is required so that we can determine if a given object matches the RequestOptions
|
|
@@ -738,6 +724,8 @@ const requestOptionsKeys: KeysEnum<RequestOptions> = {
|
|
|
738
724
|
httpAgent: true,
|
|
739
725
|
signal: true,
|
|
740
726
|
idempotencyKey: true,
|
|
727
|
+
|
|
728
|
+
__binaryResponse: true,
|
|
741
729
|
};
|
|
742
730
|
|
|
743
731
|
export const isRequestOptions = (obj: unknown): obj is RequestOptions<Record<string, unknown> | Readable> => {
|
package/src/index.ts
CHANGED
|
@@ -31,8 +31,10 @@ export interface ClientOptions {
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
34
|
+
*
|
|
35
|
+
* Defaults to process.env['INCREASE_BASE_URL'].
|
|
34
36
|
*/
|
|
35
|
-
baseURL?: string;
|
|
37
|
+
baseURL?: string | null | undefined;
|
|
36
38
|
|
|
37
39
|
/**
|
|
38
40
|
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
@@ -93,9 +95,9 @@ export class Increase extends Core.APIClient {
|
|
|
93
95
|
/**
|
|
94
96
|
* API Client for interfacing with the Increase API.
|
|
95
97
|
*
|
|
96
|
-
* @param {string} [opts.apiKey
|
|
98
|
+
* @param {string} [opts.apiKey=process.env['INCREASE_API_KEY'] ?? undefined]
|
|
97
99
|
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
98
|
-
* @param {string} [opts.baseURL] - Override the default base URL for the API.
|
|
100
|
+
* @param {string} [opts.baseURL=process.env['INCREASE_BASE_URL'] ?? https://api.increase.com] - Override the default base URL for the API.
|
|
99
101
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
100
102
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
101
103
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -103,7 +105,11 @@ export class Increase extends Core.APIClient {
|
|
|
103
105
|
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
104
106
|
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
105
107
|
*/
|
|
106
|
-
constructor({
|
|
108
|
+
constructor({
|
|
109
|
+
baseURL = Core.readEnv('INCREASE_BASE_URL'),
|
|
110
|
+
apiKey = Core.readEnv('INCREASE_API_KEY'),
|
|
111
|
+
...opts
|
|
112
|
+
}: ClientOptions = {}) {
|
|
107
113
|
if (apiKey === undefined) {
|
|
108
114
|
throw new Errors.IncreaseError(
|
|
109
115
|
"The INCREASE_API_KEY environment variable is missing or empty; either provide it, or instantiate the Increase client with an apiKey option, like new Increase({ apiKey: 'My API Key' }).",
|
|
@@ -113,9 +119,16 @@ export class Increase extends Core.APIClient {
|
|
|
113
119
|
const options: ClientOptions = {
|
|
114
120
|
apiKey,
|
|
115
121
|
...opts,
|
|
122
|
+
baseURL,
|
|
116
123
|
environment: opts.environment ?? 'production',
|
|
117
124
|
};
|
|
118
125
|
|
|
126
|
+
if (baseURL && opts.environment) {
|
|
127
|
+
throw new Errors.IncreaseError(
|
|
128
|
+
'Ambiguous URL; The `baseURL` option (or INCREASE_BASE_URL env var) and the `environment` option are given. If you want to use the environment you must pass baseURL: null',
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
119
132
|
super({
|
|
120
133
|
baseURL: options.baseURL || environments[options.environment || 'production'],
|
|
121
134
|
timeout: options.timeout ?? 60000 /* 1 minute */,
|
|
@@ -136,7 +149,6 @@ export class Increase extends Core.APIClient {
|
|
|
136
149
|
bookkeepingEntries: API.BookkeepingEntries = new API.BookkeepingEntries(this);
|
|
137
150
|
realTimeDecisions: API.RealTimeDecisions = new API.RealTimeDecisions(this);
|
|
138
151
|
realTimePaymentsTransfers: API.RealTimePaymentsTransfers = new API.RealTimePaymentsTransfers(this);
|
|
139
|
-
balanceLookups: API.BalanceLookups = new API.BalanceLookups(this);
|
|
140
152
|
cards: API.Cards = new API.Cards(this);
|
|
141
153
|
cardDisputes: API.CardDisputes = new API.CardDisputes(this);
|
|
142
154
|
cardProfiles: API.CardProfiles = new API.CardProfiles(this);
|
|
@@ -264,10 +276,12 @@ export namespace Increase {
|
|
|
264
276
|
|
|
265
277
|
export import Accounts = API.Accounts;
|
|
266
278
|
export import Account = API.Account;
|
|
279
|
+
export import BalanceLookup = API.BalanceLookup;
|
|
267
280
|
export import AccountsPage = API.AccountsPage;
|
|
268
281
|
export import AccountCreateParams = API.AccountCreateParams;
|
|
269
282
|
export import AccountUpdateParams = API.AccountUpdateParams;
|
|
270
283
|
export import AccountListParams = API.AccountListParams;
|
|
284
|
+
export import AccountBalanceParams = API.AccountBalanceParams;
|
|
271
285
|
|
|
272
286
|
export import AccountNumbers = API.AccountNumbers;
|
|
273
287
|
export import AccountNumber = API.AccountNumber;
|
|
@@ -278,14 +292,18 @@ export namespace Increase {
|
|
|
278
292
|
|
|
279
293
|
export import BookkeepingAccounts = API.BookkeepingAccounts;
|
|
280
294
|
export import BookkeepingAccount = API.BookkeepingAccount;
|
|
295
|
+
export import BookkeepingBalanceLookup = API.BookkeepingBalanceLookup;
|
|
281
296
|
export import BookkeepingAccountsPage = API.BookkeepingAccountsPage;
|
|
282
297
|
export import BookkeepingAccountCreateParams = API.BookkeepingAccountCreateParams;
|
|
283
298
|
export import BookkeepingAccountUpdateParams = API.BookkeepingAccountUpdateParams;
|
|
284
299
|
export import BookkeepingAccountListParams = API.BookkeepingAccountListParams;
|
|
300
|
+
export import BookkeepingAccountBalanceParams = API.BookkeepingAccountBalanceParams;
|
|
285
301
|
|
|
286
302
|
export import BookkeepingEntrySets = API.BookkeepingEntrySets;
|
|
287
303
|
export import BookkeepingEntrySet = API.BookkeepingEntrySet;
|
|
304
|
+
export import BookkeepingEntrySetsPage = API.BookkeepingEntrySetsPage;
|
|
288
305
|
export import BookkeepingEntrySetCreateParams = API.BookkeepingEntrySetCreateParams;
|
|
306
|
+
export import BookkeepingEntrySetListParams = API.BookkeepingEntrySetListParams;
|
|
289
307
|
|
|
290
308
|
export import BookkeepingEntries = API.BookkeepingEntries;
|
|
291
309
|
export import BookkeepingEntry = API.BookkeepingEntry;
|
|
@@ -302,10 +320,6 @@ export namespace Increase {
|
|
|
302
320
|
export import RealTimePaymentsTransferCreateParams = API.RealTimePaymentsTransferCreateParams;
|
|
303
321
|
export import RealTimePaymentsTransferListParams = API.RealTimePaymentsTransferListParams;
|
|
304
322
|
|
|
305
|
-
export import BalanceLookups = API.BalanceLookups;
|
|
306
|
-
export import BalanceLookupLookupResponse = API.BalanceLookupLookupResponse;
|
|
307
|
-
export import BalanceLookupLookupParams = API.BalanceLookupLookupParams;
|
|
308
|
-
|
|
309
323
|
export import Cards = API.Cards;
|
|
310
324
|
export import Card = API.Card;
|
|
311
325
|
export import CardDetails = API.CardDetails;
|
package/src/resource.ts
CHANGED
|
@@ -3,22 +3,9 @@
|
|
|
3
3
|
import type { Increase } from './index';
|
|
4
4
|
|
|
5
5
|
export class APIResource {
|
|
6
|
-
protected
|
|
7
|
-
constructor(client: Increase) {
|
|
8
|
-
this.client = client;
|
|
6
|
+
protected _client: Increase;
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
this.
|
|
12
|
-
this.patch = client.patch.bind(client);
|
|
13
|
-
this.put = client.put.bind(client);
|
|
14
|
-
this.delete = client.delete.bind(client);
|
|
15
|
-
this.getAPIList = client.getAPIList.bind(client);
|
|
8
|
+
constructor(client: Increase) {
|
|
9
|
+
this._client = client;
|
|
16
10
|
}
|
|
17
|
-
|
|
18
|
-
protected get: Increase['get'];
|
|
19
|
-
protected post: Increase['post'];
|
|
20
|
-
protected patch: Increase['patch'];
|
|
21
|
-
protected put: Increase['put'];
|
|
22
|
-
protected delete: Increase['delete'];
|
|
23
|
-
protected getAPIList: Increase['getAPIList'];
|
|
24
11
|
}
|