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
|
@@ -11,14 +11,14 @@ export class AccountNumbers extends APIResource {
|
|
|
11
11
|
* Create an Account Number
|
|
12
12
|
*/
|
|
13
13
|
create(body: AccountNumberCreateParams, options?: Core.RequestOptions): Core.APIPromise<AccountNumber> {
|
|
14
|
-
return this.post('/account_numbers', { body, ...options });
|
|
14
|
+
return this._client.post('/account_numbers', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieve an Account Number
|
|
19
19
|
*/
|
|
20
20
|
retrieve(accountNumberId: string, options?: Core.RequestOptions): Core.APIPromise<AccountNumber> {
|
|
21
|
-
return this.get(`/account_numbers/${accountNumberId}`, options);
|
|
21
|
+
return this._client.get(`/account_numbers/${accountNumberId}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -29,7 +29,7 @@ export class AccountNumbers extends APIResource {
|
|
|
29
29
|
body: AccountNumberUpdateParams,
|
|
30
30
|
options?: Core.RequestOptions,
|
|
31
31
|
): Core.APIPromise<AccountNumber> {
|
|
32
|
-
return this.patch(`/account_numbers/${accountNumberId}`, { body, ...options });
|
|
32
|
+
return this._client.patch(`/account_numbers/${accountNumberId}`, { body, ...options });
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -47,7 +47,7 @@ export class AccountNumbers extends APIResource {
|
|
|
47
47
|
if (isRequestOptions(query)) {
|
|
48
48
|
return this.list({}, query);
|
|
49
49
|
}
|
|
50
|
-
return this.getAPIList('/account_numbers', AccountNumbersPage, { query, ...options });
|
|
50
|
+
return this._client.getAPIList('/account_numbers', AccountNumbersPage, { query, ...options });
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -11,7 +11,7 @@ export class AccountStatements extends APIResource {
|
|
|
11
11
|
* Retrieve an Account Statement
|
|
12
12
|
*/
|
|
13
13
|
retrieve(accountStatementId: string, options?: Core.RequestOptions): Core.APIPromise<AccountStatement> {
|
|
14
|
-
return this.get(`/account_statements/${accountStatementId}`, options);
|
|
14
|
+
return this._client.get(`/account_statements/${accountStatementId}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -29,7 +29,7 @@ export class AccountStatements extends APIResource {
|
|
|
29
29
|
if (isRequestOptions(query)) {
|
|
30
30
|
return this.list({}, query);
|
|
31
31
|
}
|
|
32
|
-
return this.getAPIList('/account_statements', AccountStatementsPage, { query, ...options });
|
|
32
|
+
return this._client.getAPIList('/account_statements', AccountStatementsPage, { query, ...options });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -11,14 +11,14 @@ export class AccountTransfers extends APIResource {
|
|
|
11
11
|
* Create an Account Transfer
|
|
12
12
|
*/
|
|
13
13
|
create(body: AccountTransferCreateParams, options?: Core.RequestOptions): Core.APIPromise<AccountTransfer> {
|
|
14
|
-
return this.post('/account_transfers', { body, ...options });
|
|
14
|
+
return this._client.post('/account_transfers', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieve an Account Transfer
|
|
19
19
|
*/
|
|
20
20
|
retrieve(accountTransferId: string, options?: Core.RequestOptions): Core.APIPromise<AccountTransfer> {
|
|
21
|
-
return this.get(`/account_transfers/${accountTransferId}`, options);
|
|
21
|
+
return this._client.get(`/account_transfers/${accountTransferId}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -36,21 +36,21 @@ export class AccountTransfers extends APIResource {
|
|
|
36
36
|
if (isRequestOptions(query)) {
|
|
37
37
|
return this.list({}, query);
|
|
38
38
|
}
|
|
39
|
-
return this.getAPIList('/account_transfers', AccountTransfersPage, { query, ...options });
|
|
39
|
+
return this._client.getAPIList('/account_transfers', AccountTransfersPage, { query, ...options });
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Approve an Account Transfer
|
|
44
44
|
*/
|
|
45
45
|
approve(accountTransferId: string, options?: Core.RequestOptions): Core.APIPromise<AccountTransfer> {
|
|
46
|
-
return this.post(`/account_transfers/${accountTransferId}/approve`, options);
|
|
46
|
+
return this._client.post(`/account_transfers/${accountTransferId}/approve`, options);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Cancel an Account Transfer
|
|
51
51
|
*/
|
|
52
52
|
cancel(accountTransferId: string, options?: Core.RequestOptions): Core.APIPromise<AccountTransfer> {
|
|
53
|
-
return this.post(`/account_transfers/${accountTransferId}/cancel`, options);
|
|
53
|
+
return this._client.post(`/account_transfers/${accountTransferId}/cancel`, options);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -11,14 +11,14 @@ export class Accounts extends APIResource {
|
|
|
11
11
|
* Create an Account
|
|
12
12
|
*/
|
|
13
13
|
create(body: AccountCreateParams, options?: Core.RequestOptions): Core.APIPromise<Account> {
|
|
14
|
-
return this.post('/accounts', { body, ...options });
|
|
14
|
+
return this._client.post('/accounts', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieve an Account
|
|
19
19
|
*/
|
|
20
20
|
retrieve(accountId: string, options?: Core.RequestOptions): Core.APIPromise<Account> {
|
|
21
|
-
return this.get(`/accounts/${accountId}`, options);
|
|
21
|
+
return this._client.get(`/accounts/${accountId}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -29,7 +29,7 @@ export class Accounts extends APIResource {
|
|
|
29
29
|
body: AccountUpdateParams,
|
|
30
30
|
options?: Core.RequestOptions,
|
|
31
31
|
): Core.APIPromise<Account> {
|
|
32
|
-
return this.patch(`/accounts/${accountId}`, { body, ...options });
|
|
32
|
+
return this._client.patch(`/accounts/${accountId}`, { body, ...options });
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -44,14 +44,34 @@ export class Accounts extends APIResource {
|
|
|
44
44
|
if (isRequestOptions(query)) {
|
|
45
45
|
return this.list({}, query);
|
|
46
46
|
}
|
|
47
|
-
return this.getAPIList('/accounts', AccountsPage, { query, ...options });
|
|
47
|
+
return this._client.getAPIList('/accounts', AccountsPage, { query, ...options });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Retrieve an Account Balance
|
|
52
|
+
*/
|
|
53
|
+
balance(
|
|
54
|
+
accountId: string,
|
|
55
|
+
query?: AccountBalanceParams,
|
|
56
|
+
options?: Core.RequestOptions,
|
|
57
|
+
): Core.APIPromise<BalanceLookup>;
|
|
58
|
+
balance(accountId: string, options?: Core.RequestOptions): Core.APIPromise<BalanceLookup>;
|
|
59
|
+
balance(
|
|
60
|
+
accountId: string,
|
|
61
|
+
query: AccountBalanceParams | Core.RequestOptions = {},
|
|
62
|
+
options?: Core.RequestOptions,
|
|
63
|
+
): Core.APIPromise<BalanceLookup> {
|
|
64
|
+
if (isRequestOptions(query)) {
|
|
65
|
+
return this.balance(accountId, {}, query);
|
|
66
|
+
}
|
|
67
|
+
return this._client.get(`/accounts/${accountId}/balance`, { query, ...options });
|
|
48
68
|
}
|
|
49
69
|
|
|
50
70
|
/**
|
|
51
71
|
* Close an Account
|
|
52
72
|
*/
|
|
53
73
|
close(accountId: string, options?: Core.RequestOptions): Core.APIPromise<Account> {
|
|
54
|
-
return this.post(`/accounts/${accountId}/close`, options);
|
|
74
|
+
return this._client.post(`/accounts/${accountId}/close`, options);
|
|
55
75
|
}
|
|
56
76
|
}
|
|
57
77
|
|
|
@@ -144,6 +164,35 @@ export interface Account {
|
|
|
144
164
|
type: 'account';
|
|
145
165
|
}
|
|
146
166
|
|
|
167
|
+
/**
|
|
168
|
+
* Represents a request to lookup the balance of an Account at a given point in
|
|
169
|
+
* time.
|
|
170
|
+
*/
|
|
171
|
+
export interface BalanceLookup {
|
|
172
|
+
/**
|
|
173
|
+
* The identifier for the account for which the balance was queried.
|
|
174
|
+
*/
|
|
175
|
+
account_id: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The Account's available balance, representing the current balance less any open
|
|
179
|
+
* Pending Transactions on the Account.
|
|
180
|
+
*/
|
|
181
|
+
available_balance: number;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The Account's current balance, representing the sum of all posted Transactions
|
|
185
|
+
* on the Account.
|
|
186
|
+
*/
|
|
187
|
+
current_balance: number;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* A constant representing the object's type. For this resource it will always be
|
|
191
|
+
* `balance_lookup`.
|
|
192
|
+
*/
|
|
193
|
+
type: 'balance_lookup';
|
|
194
|
+
}
|
|
195
|
+
|
|
147
196
|
export interface AccountCreateParams {
|
|
148
197
|
/**
|
|
149
198
|
* The name you choose for the Account.
|
|
@@ -225,10 +274,19 @@ export namespace AccountListParams {
|
|
|
225
274
|
}
|
|
226
275
|
}
|
|
227
276
|
|
|
277
|
+
export interface AccountBalanceParams {
|
|
278
|
+
/**
|
|
279
|
+
* The moment to query the balance at. If not set, returns the current balances.
|
|
280
|
+
*/
|
|
281
|
+
at_time?: string;
|
|
282
|
+
}
|
|
283
|
+
|
|
228
284
|
export namespace Accounts {
|
|
229
285
|
export import Account = AccountsAPI.Account;
|
|
286
|
+
export import BalanceLookup = AccountsAPI.BalanceLookup;
|
|
230
287
|
export import AccountsPage = AccountsAPI.AccountsPage;
|
|
231
288
|
export import AccountCreateParams = AccountsAPI.AccountCreateParams;
|
|
232
289
|
export import AccountUpdateParams = AccountsAPI.AccountUpdateParams;
|
|
233
290
|
export import AccountListParams = AccountsAPI.AccountListParams;
|
|
291
|
+
export import AccountBalanceParams = AccountsAPI.AccountBalanceParams;
|
|
234
292
|
}
|
|
@@ -14,14 +14,14 @@ export class ACHPrenotifications extends APIResource {
|
|
|
14
14
|
body: ACHPrenotificationCreateParams,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
16
|
): Core.APIPromise<ACHPrenotification> {
|
|
17
|
-
return this.post('/ach_prenotifications', { body, ...options });
|
|
17
|
+
return this._client.post('/ach_prenotifications', { body, ...options });
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Retrieve an ACH Prenotification
|
|
22
22
|
*/
|
|
23
23
|
retrieve(achPrenotificationId: string, options?: Core.RequestOptions): Core.APIPromise<ACHPrenotification> {
|
|
24
|
-
return this.get(`/ach_prenotifications/${achPrenotificationId}`, options);
|
|
24
|
+
return this._client.get(`/ach_prenotifications/${achPrenotificationId}`, options);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -39,7 +39,7 @@ export class ACHPrenotifications extends APIResource {
|
|
|
39
39
|
if (isRequestOptions(query)) {
|
|
40
40
|
return this.list({}, query);
|
|
41
41
|
}
|
|
42
|
-
return this.getAPIList('/ach_prenotifications', ACHPrenotificationsPage, { query, ...options });
|
|
42
|
+
return this._client.getAPIList('/ach_prenotifications', ACHPrenotificationsPage, { query, ...options });
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -11,14 +11,14 @@ export class ACHTransfers extends APIResource {
|
|
|
11
11
|
* Create an ACH Transfer
|
|
12
12
|
*/
|
|
13
13
|
create(body: ACHTransferCreateParams, options?: Core.RequestOptions): Core.APIPromise<ACHTransfer> {
|
|
14
|
-
return this.post('/ach_transfers', { body, ...options });
|
|
14
|
+
return this._client.post('/ach_transfers', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieve an ACH Transfer
|
|
19
19
|
*/
|
|
20
20
|
retrieve(achTransferId: string, options?: Core.RequestOptions): Core.APIPromise<ACHTransfer> {
|
|
21
|
-
return this.get(`/ach_transfers/${achTransferId}`, options);
|
|
21
|
+
return this._client.get(`/ach_transfers/${achTransferId}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -36,21 +36,21 @@ export class ACHTransfers extends APIResource {
|
|
|
36
36
|
if (isRequestOptions(query)) {
|
|
37
37
|
return this.list({}, query);
|
|
38
38
|
}
|
|
39
|
-
return this.getAPIList('/ach_transfers', ACHTransfersPage, { query, ...options });
|
|
39
|
+
return this._client.getAPIList('/ach_transfers', ACHTransfersPage, { query, ...options });
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Approves an ACH Transfer in a pending_approval state.
|
|
44
44
|
*/
|
|
45
45
|
approve(achTransferId: string, options?: Core.RequestOptions): Core.APIPromise<ACHTransfer> {
|
|
46
|
-
return this.post(`/ach_transfers/${achTransferId}/approve`, options);
|
|
46
|
+
return this._client.post(`/ach_transfers/${achTransferId}/approve`, options);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Cancels an ACH Transfer in a pending_approval state.
|
|
51
51
|
*/
|
|
52
52
|
cancel(achTransferId: string, options?: Core.RequestOptions): Core.APIPromise<ACHTransfer> {
|
|
53
|
-
return this.post(`/ach_transfers/${achTransferId}/cancel`, options);
|
|
53
|
+
return this._client.post(`/ach_transfers/${achTransferId}/cancel`, options);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -14,7 +14,7 @@ export class BookkeepingAccounts extends APIResource {
|
|
|
14
14
|
body: BookkeepingAccountCreateParams,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
16
|
): Core.APIPromise<BookkeepingAccount> {
|
|
17
|
-
return this.post('/bookkeeping_accounts', { body, ...options });
|
|
17
|
+
return this._client.post('/bookkeeping_accounts', { body, ...options });
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -25,7 +25,7 @@ export class BookkeepingAccounts extends APIResource {
|
|
|
25
25
|
body: BookkeepingAccountUpdateParams,
|
|
26
26
|
options?: Core.RequestOptions,
|
|
27
27
|
): Core.APIPromise<BookkeepingAccount> {
|
|
28
|
-
return this.patch(`/bookkeeping_accounts/${bookkeepingAccountId}`, { body, ...options });
|
|
28
|
+
return this._client.patch(`/bookkeeping_accounts/${bookkeepingAccountId}`, { body, ...options });
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -43,14 +43,39 @@ export class BookkeepingAccounts extends APIResource {
|
|
|
43
43
|
if (isRequestOptions(query)) {
|
|
44
44
|
return this.list({}, query);
|
|
45
45
|
}
|
|
46
|
-
return this.getAPIList('/bookkeeping_accounts', BookkeepingAccountsPage, { query, ...options });
|
|
46
|
+
return this._client.getAPIList('/bookkeeping_accounts', BookkeepingAccountsPage, { query, ...options });
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Retrieve a Bookkeeping Account Balance
|
|
51
|
+
*/
|
|
52
|
+
balance(
|
|
53
|
+
bookkeepingAccountId: string,
|
|
54
|
+
query?: BookkeepingAccountBalanceParams,
|
|
55
|
+
options?: Core.RequestOptions,
|
|
56
|
+
): Core.APIPromise<BookkeepingBalanceLookup>;
|
|
57
|
+
balance(
|
|
58
|
+
bookkeepingAccountId: string,
|
|
59
|
+
options?: Core.RequestOptions,
|
|
60
|
+
): Core.APIPromise<BookkeepingBalanceLookup>;
|
|
61
|
+
balance(
|
|
62
|
+
bookkeepingAccountId: string,
|
|
63
|
+
query: BookkeepingAccountBalanceParams | Core.RequestOptions = {},
|
|
64
|
+
options?: Core.RequestOptions,
|
|
65
|
+
): Core.APIPromise<BookkeepingBalanceLookup> {
|
|
66
|
+
if (isRequestOptions(query)) {
|
|
67
|
+
return this.balance(bookkeepingAccountId, {}, query);
|
|
68
|
+
}
|
|
69
|
+
return this._client.get(`/bookkeeping_accounts/${bookkeepingAccountId}/balance`, { query, ...options });
|
|
47
70
|
}
|
|
48
71
|
}
|
|
49
72
|
|
|
50
73
|
export class BookkeepingAccountsPage extends Page<BookkeepingAccount> {}
|
|
51
74
|
|
|
52
75
|
/**
|
|
53
|
-
* Accounts are T-accounts. They can store accounting entries.
|
|
76
|
+
* Accounts are T-accounts. They can store accounting entries. Your compliance
|
|
77
|
+
* setup might require annotating money movements using this API. Learn more in our
|
|
78
|
+
* [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
|
|
54
79
|
*/
|
|
55
80
|
export interface BookkeepingAccount {
|
|
56
81
|
/**
|
|
@@ -88,6 +113,29 @@ export interface BookkeepingAccount {
|
|
|
88
113
|
type: 'bookkeeping_account';
|
|
89
114
|
}
|
|
90
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Represents a request to lookup the balance of an Bookkeeping Account at a given
|
|
118
|
+
* point in time.
|
|
119
|
+
*/
|
|
120
|
+
export interface BookkeepingBalanceLookup {
|
|
121
|
+
/**
|
|
122
|
+
* The Bookkeeping Account's current balance, representing the sum of all
|
|
123
|
+
* Bookkeeping Entries on the Bookkeeping Account.
|
|
124
|
+
*/
|
|
125
|
+
balance: number;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The identifier for the account for which the balance was queried.
|
|
129
|
+
*/
|
|
130
|
+
bookkeeping_account_id: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* A constant representing the object's type. For this resource it will always be
|
|
134
|
+
* `bookkeeping_balance_lookup`.
|
|
135
|
+
*/
|
|
136
|
+
type: 'bookkeeping_balance_lookup';
|
|
137
|
+
}
|
|
138
|
+
|
|
91
139
|
export interface BookkeepingAccountCreateParams {
|
|
92
140
|
/**
|
|
93
141
|
* The name you choose for the account.
|
|
@@ -122,10 +170,19 @@ export interface BookkeepingAccountUpdateParams {
|
|
|
122
170
|
|
|
123
171
|
export interface BookkeepingAccountListParams extends PageParams {}
|
|
124
172
|
|
|
173
|
+
export interface BookkeepingAccountBalanceParams {
|
|
174
|
+
/**
|
|
175
|
+
* The moment to query the balance at. If not set, returns the current balances.
|
|
176
|
+
*/
|
|
177
|
+
at_time?: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
125
180
|
export namespace BookkeepingAccounts {
|
|
126
181
|
export import BookkeepingAccount = BookkeepingAccountsAPI.BookkeepingAccount;
|
|
182
|
+
export import BookkeepingBalanceLookup = BookkeepingAccountsAPI.BookkeepingBalanceLookup;
|
|
127
183
|
export import BookkeepingAccountsPage = BookkeepingAccountsAPI.BookkeepingAccountsPage;
|
|
128
184
|
export import BookkeepingAccountCreateParams = BookkeepingAccountsAPI.BookkeepingAccountCreateParams;
|
|
129
185
|
export import BookkeepingAccountUpdateParams = BookkeepingAccountsAPI.BookkeepingAccountUpdateParams;
|
|
130
186
|
export import BookkeepingAccountListParams = BookkeepingAccountsAPI.BookkeepingAccountListParams;
|
|
187
|
+
export import BookkeepingAccountBalanceParams = BookkeepingAccountsAPI.BookkeepingAccountBalanceParams;
|
|
131
188
|
}
|
|
@@ -7,6 +7,13 @@ import * as BookkeepingEntriesAPI from "./bookkeeping-entries";
|
|
|
7
7
|
import { Page, type PageParams } from "../pagination";
|
|
8
8
|
|
|
9
9
|
export class BookkeepingEntries extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a Bookkeeping Entry
|
|
12
|
+
*/
|
|
13
|
+
retrieve(bookkeepingEntryId: string, options?: Core.RequestOptions): Core.APIPromise<BookkeepingEntry> {
|
|
14
|
+
return this._client.get(`/bookkeeping_entries/${bookkeepingEntryId}`, options);
|
|
15
|
+
}
|
|
16
|
+
|
|
10
17
|
/**
|
|
11
18
|
* List Bookkeeping Entries
|
|
12
19
|
*/
|
|
@@ -22,14 +29,16 @@ export class BookkeepingEntries extends APIResource {
|
|
|
22
29
|
if (isRequestOptions(query)) {
|
|
23
30
|
return this.list({}, query);
|
|
24
31
|
}
|
|
25
|
-
return this.getAPIList('/bookkeeping_entries', BookkeepingEntriesPage, { query, ...options });
|
|
32
|
+
return this._client.getAPIList('/bookkeeping_entries', BookkeepingEntriesPage, { query, ...options });
|
|
26
33
|
}
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
export class BookkeepingEntriesPage extends Page<BookkeepingEntry> {}
|
|
30
37
|
|
|
31
38
|
/**
|
|
32
|
-
* Entries are T-account entries recording debits and credits.
|
|
39
|
+
* Entries are T-account entries recording debits and credits. Your compliance
|
|
40
|
+
* setup might require annotating money movements using this API. Learn more in our
|
|
41
|
+
* [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
|
|
33
42
|
*/
|
|
34
43
|
export interface BookkeepingEntry {
|
|
35
44
|
/**
|
|
@@ -48,6 +57,11 @@ export interface BookkeepingEntry {
|
|
|
48
57
|
*/
|
|
49
58
|
amount: number;
|
|
50
59
|
|
|
60
|
+
/**
|
|
61
|
+
* When the entry set was created.
|
|
62
|
+
*/
|
|
63
|
+
created_at: string;
|
|
64
|
+
|
|
51
65
|
/**
|
|
52
66
|
* The identifier for the Account the Entry belongs to.
|
|
53
67
|
*/
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import * as Core from "../core";
|
|
4
4
|
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
5
6
|
import * as BookkeepingEntrySetsAPI from "./bookkeeping-entry-sets";
|
|
7
|
+
import { Page, type PageParams } from "../pagination";
|
|
6
8
|
|
|
7
9
|
export class BookkeepingEntrySets extends APIResource {
|
|
8
10
|
/**
|
|
@@ -12,12 +14,48 @@ export class BookkeepingEntrySets extends APIResource {
|
|
|
12
14
|
body: BookkeepingEntrySetCreateParams,
|
|
13
15
|
options?: Core.RequestOptions,
|
|
14
16
|
): Core.APIPromise<BookkeepingEntrySet> {
|
|
15
|
-
return this.post('/bookkeeping_entry_sets', { body, ...options });
|
|
17
|
+
return this._client.post('/bookkeeping_entry_sets', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve a Bookkeeping Entry Set
|
|
22
|
+
*/
|
|
23
|
+
retrieve(
|
|
24
|
+
bookkeepingEntrySetId: string,
|
|
25
|
+
options?: Core.RequestOptions,
|
|
26
|
+
): Core.APIPromise<BookkeepingEntrySet> {
|
|
27
|
+
return this._client.get(`/bookkeeping_entry_sets/${bookkeepingEntrySetId}`, options);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* List Bookkeeping Entry Sets
|
|
32
|
+
*/
|
|
33
|
+
list(
|
|
34
|
+
query?: BookkeepingEntrySetListParams,
|
|
35
|
+
options?: Core.RequestOptions,
|
|
36
|
+
): Core.PagePromise<BookkeepingEntrySetsPage, BookkeepingEntrySet>;
|
|
37
|
+
list(options?: Core.RequestOptions): Core.PagePromise<BookkeepingEntrySetsPage, BookkeepingEntrySet>;
|
|
38
|
+
list(
|
|
39
|
+
query: BookkeepingEntrySetListParams | Core.RequestOptions = {},
|
|
40
|
+
options?: Core.RequestOptions,
|
|
41
|
+
): Core.PagePromise<BookkeepingEntrySetsPage, BookkeepingEntrySet> {
|
|
42
|
+
if (isRequestOptions(query)) {
|
|
43
|
+
return this.list({}, query);
|
|
44
|
+
}
|
|
45
|
+
return this._client.getAPIList('/bookkeeping_entry_sets', BookkeepingEntrySetsPage, {
|
|
46
|
+
query,
|
|
47
|
+
...options,
|
|
48
|
+
});
|
|
16
49
|
}
|
|
17
50
|
}
|
|
18
51
|
|
|
52
|
+
export class BookkeepingEntrySetsPage extends Page<BookkeepingEntrySet> {}
|
|
53
|
+
|
|
19
54
|
/**
|
|
20
|
-
* Entry Sets are accounting entries that are transactionally applied.
|
|
55
|
+
* Entry Sets are accounting entries that are transactionally applied. Your
|
|
56
|
+
* compliance setup might require annotating money movements using this API. Learn
|
|
57
|
+
* more in our
|
|
58
|
+
* [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
|
|
21
59
|
*/
|
|
22
60
|
export interface BookkeepingEntrySet {
|
|
23
61
|
/**
|
|
@@ -25,6 +63,11 @@ export interface BookkeepingEntrySet {
|
|
|
25
63
|
*/
|
|
26
64
|
id: string;
|
|
27
65
|
|
|
66
|
+
/**
|
|
67
|
+
* When the entry set was created.
|
|
68
|
+
*/
|
|
69
|
+
created_at: string;
|
|
70
|
+
|
|
28
71
|
/**
|
|
29
72
|
* The timestamp of the entry set.
|
|
30
73
|
*/
|
|
@@ -100,7 +143,16 @@ export namespace BookkeepingEntrySetCreateParams {
|
|
|
100
143
|
}
|
|
101
144
|
}
|
|
102
145
|
|
|
146
|
+
export interface BookkeepingEntrySetListParams extends PageParams {
|
|
147
|
+
/**
|
|
148
|
+
* Filter to the Bookkeeping Entry Set that maps to this Transaction.
|
|
149
|
+
*/
|
|
150
|
+
transaction_id?: string;
|
|
151
|
+
}
|
|
152
|
+
|
|
103
153
|
export namespace BookkeepingEntrySets {
|
|
104
154
|
export import BookkeepingEntrySet = BookkeepingEntrySetsAPI.BookkeepingEntrySet;
|
|
155
|
+
export import BookkeepingEntrySetsPage = BookkeepingEntrySetsAPI.BookkeepingEntrySetsPage;
|
|
105
156
|
export import BookkeepingEntrySetCreateParams = BookkeepingEntrySetsAPI.BookkeepingEntrySetCreateParams;
|
|
157
|
+
export import BookkeepingEntrySetListParams = BookkeepingEntrySetsAPI.BookkeepingEntrySetListParams;
|
|
106
158
|
}
|
|
@@ -11,14 +11,14 @@ export class CardDisputes extends APIResource {
|
|
|
11
11
|
* Create a Card Dispute
|
|
12
12
|
*/
|
|
13
13
|
create(body: CardDisputeCreateParams, options?: Core.RequestOptions): Core.APIPromise<CardDispute> {
|
|
14
|
-
return this.post('/card_disputes', { body, ...options });
|
|
14
|
+
return this._client.post('/card_disputes', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieve a Card Dispute
|
|
19
19
|
*/
|
|
20
20
|
retrieve(cardDisputeId: string, options?: Core.RequestOptions): Core.APIPromise<CardDispute> {
|
|
21
|
-
return this.get(`/card_disputes/${cardDisputeId}`, options);
|
|
21
|
+
return this._client.get(`/card_disputes/${cardDisputeId}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -36,7 +36,7 @@ export class CardDisputes extends APIResource {
|
|
|
36
36
|
if (isRequestOptions(query)) {
|
|
37
37
|
return this.list({}, query);
|
|
38
38
|
}
|
|
39
|
-
return this.getAPIList('/card_disputes', CardDisputesPage, { query, ...options });
|
|
39
|
+
return this._client.getAPIList('/card_disputes', CardDisputesPage, { query, ...options });
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -11,7 +11,7 @@ export class CardPayments extends APIResource {
|
|
|
11
11
|
* Retrieve a Card Payment
|
|
12
12
|
*/
|
|
13
13
|
retrieve(cardPaymentId: string, options?: Core.RequestOptions): Core.APIPromise<CardPayment> {
|
|
14
|
-
return this.get(`/card_payments/${cardPaymentId}`, options);
|
|
14
|
+
return this._client.get(`/card_payments/${cardPaymentId}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -29,7 +29,7 @@ export class CardPayments extends APIResource {
|
|
|
29
29
|
if (isRequestOptions(query)) {
|
|
30
30
|
return this.list({}, query);
|
|
31
31
|
}
|
|
32
|
-
return this.getAPIList('/card_payments', CardPaymentsPage, { query, ...options });
|
|
32
|
+
return this._client.getAPIList('/card_payments', CardPaymentsPage, { query, ...options });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -282,6 +282,31 @@ export namespace CardPayment {
|
|
|
282
282
|
*/
|
|
283
283
|
physical_card_id: string | null;
|
|
284
284
|
|
|
285
|
+
/**
|
|
286
|
+
* The processing category describes the intent behind the authorization, such as
|
|
287
|
+
* whether it was used for bill payments or an automatic fuel dispenser.
|
|
288
|
+
*
|
|
289
|
+
* - `account_funding` - Account funding transactions are transactions used to
|
|
290
|
+
* e.g., fund an account or transfer funds between accounts.
|
|
291
|
+
* - `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
|
|
292
|
+
* when a card is used at a gas pump, prior to the actual transaction amount
|
|
293
|
+
* being known. They are followed by an advice message that updates the amount of
|
|
294
|
+
* the pending transaction.
|
|
295
|
+
* - `bill_payment` - A transaction used to pay a bill.
|
|
296
|
+
* - `purchase` - A regular purchase.
|
|
297
|
+
* - `quasi_cash` - Quasi-cash transactions represent purchases of items which may
|
|
298
|
+
* be convertible to cash.
|
|
299
|
+
* - `refund` - A refund card authorization, sometimes referred to as a credit
|
|
300
|
+
* voucher authorization, where funds are credited to the cardholder.
|
|
301
|
+
*/
|
|
302
|
+
processing_category:
|
|
303
|
+
| 'account_funding'
|
|
304
|
+
| 'automatic_fuel_dispenser'
|
|
305
|
+
| 'bill_payment'
|
|
306
|
+
| 'purchase'
|
|
307
|
+
| 'quasi_cash'
|
|
308
|
+
| 'refund';
|
|
309
|
+
|
|
285
310
|
/**
|
|
286
311
|
* The identifier of the Real-Time Decision sent to approve or decline this
|
|
287
312
|
* transaction.
|
|
@@ -646,6 +671,31 @@ export namespace CardPayment {
|
|
|
646
671
|
*/
|
|
647
672
|
physical_card_id: string | null;
|
|
648
673
|
|
|
674
|
+
/**
|
|
675
|
+
* The processing category describes the intent behind the authorization, such as
|
|
676
|
+
* whether it was used for bill payments or an automatic fuel dispenser.
|
|
677
|
+
*
|
|
678
|
+
* - `account_funding` - Account funding transactions are transactions used to
|
|
679
|
+
* e.g., fund an account or transfer funds between accounts.
|
|
680
|
+
* - `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
|
|
681
|
+
* when a card is used at a gas pump, prior to the actual transaction amount
|
|
682
|
+
* being known. They are followed by an advice message that updates the amount of
|
|
683
|
+
* the pending transaction.
|
|
684
|
+
* - `bill_payment` - A transaction used to pay a bill.
|
|
685
|
+
* - `purchase` - A regular purchase.
|
|
686
|
+
* - `quasi_cash` - Quasi-cash transactions represent purchases of items which may
|
|
687
|
+
* be convertible to cash.
|
|
688
|
+
* - `refund` - A refund card authorization, sometimes referred to as a credit
|
|
689
|
+
* voucher authorization, where funds are credited to the cardholder.
|
|
690
|
+
*/
|
|
691
|
+
processing_category:
|
|
692
|
+
| 'account_funding'
|
|
693
|
+
| 'automatic_fuel_dispenser'
|
|
694
|
+
| 'bill_payment'
|
|
695
|
+
| 'purchase'
|
|
696
|
+
| 'quasi_cash'
|
|
697
|
+
| 'refund';
|
|
698
|
+
|
|
649
699
|
/**
|
|
650
700
|
* The identifier of the Real-Time Decision sent to approve or decline this
|
|
651
701
|
* transaction.
|
|
@@ -11,14 +11,14 @@ export class CardProfiles extends APIResource {
|
|
|
11
11
|
* Create a Card Profile
|
|
12
12
|
*/
|
|
13
13
|
create(body: CardProfileCreateParams, options?: Core.RequestOptions): Core.APIPromise<CardProfile> {
|
|
14
|
-
return this.post('/card_profiles', { body, ...options });
|
|
14
|
+
return this._client.post('/card_profiles', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieve a Card Profile
|
|
19
19
|
*/
|
|
20
20
|
retrieve(cardProfileId: string, options?: Core.RequestOptions): Core.APIPromise<CardProfile> {
|
|
21
|
-
return this.get(`/card_profiles/${cardProfileId}`, options);
|
|
21
|
+
return this._client.get(`/card_profiles/${cardProfileId}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -36,14 +36,14 @@ export class CardProfiles extends APIResource {
|
|
|
36
36
|
if (isRequestOptions(query)) {
|
|
37
37
|
return this.list({}, query);
|
|
38
38
|
}
|
|
39
|
-
return this.getAPIList('/card_profiles', CardProfilesPage, { query, ...options });
|
|
39
|
+
return this._client.getAPIList('/card_profiles', CardProfilesPage, { query, ...options });
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Archive an Card Profile
|
|
44
44
|
*/
|
|
45
45
|
archive(cardProfileId: string, options?: Core.RequestOptions): Core.APIPromise<CardProfile> {
|
|
46
|
-
return this.post(`/card_profiles/${cardProfileId}/archive`, options);
|
|
46
|
+
return this._client.post(`/card_profiles/${cardProfileId}/archive`, options);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|