increase 0.17.0 → 0.19.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 +30 -0
- package/README.md +2 -2
- package/core.d.ts +0 -10
- package/core.d.ts.map +1 -1
- package/core.js +1 -13
- package/core.js.map +1 -1
- package/core.mjs +0 -11
- package/core.mjs.map +1 -1
- package/index.d.mts +17 -4
- package/index.d.ts +17 -4
- package/index.d.ts.map +1 -1
- package/index.js +13 -3
- package/index.js.map +1 -1
- package/index.mjs +13 -3
- 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.js +6 -6
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +6 -6
- 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.js +4 -4
- package/resources/bookkeeping-accounts.js.map +1 -1
- package/resources/bookkeeping-accounts.mjs +4 -4
- package/resources/bookkeeping-accounts.mjs.map +1 -1
- package/resources/bookkeeping-entries.js +2 -2
- package/resources/bookkeeping-entries.js.map +1 -1
- package/resources/bookkeeping-entries.mjs +2 -2
- package/resources/bookkeeping-entries.mjs.map +1 -1
- package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
- package/resources/bookkeeping-entry-sets.js +6 -3
- package/resources/bookkeeping-entry-sets.js.map +1 -1
- package/resources/bookkeeping-entry-sets.mjs +6 -3
- 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.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.d.ts +18 -1
- package/resources/check-deposits.d.ts.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.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.d.ts +18 -2
- package/resources/event-subscriptions.d.ts.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.d.ts +10 -2
- package/resources/events.d.ts.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.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 +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- 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.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/proof-of-authorization-request-submissions.d.ts +129 -0
- package/resources/proof-of-authorization-request-submissions.d.ts.map +1 -0
- package/resources/proof-of-authorization-request-submissions.js +59 -0
- package/resources/proof-of-authorization-request-submissions.js.map +1 -0
- package/resources/proof-of-authorization-request-submissions.mjs +31 -0
- package/resources/proof-of-authorization-request-submissions.mjs.map +1 -0
- package/resources/proof-of-authorization-requests.d.ts +84 -0
- package/resources/proof-of-authorization-requests.d.ts.map +1 -0
- package/resources/proof-of-authorization-requests.js +56 -0
- package/resources/proof-of-authorization-requests.js.map +1 -0
- package/resources/proof-of-authorization-requests.mjs +28 -0
- package/resources/proof-of-authorization-requests.mjs.map +1 -0
- 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 +19 -2
- 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.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.d.ts +19 -2
- package/resources/simulations/interest-payments.d.ts.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 +19 -2
- 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.d.ts +19 -2
- package/resources/simulations/wire-transfers.d.ts.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.d.ts +19 -2
- package/resources/transactions.d.ts.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 +0 -21
- package/src/index.ts +31 -4
- 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 +6 -6
- package/src/resources/ach-prenotifications.ts +3 -3
- package/src/resources/ach-transfers.ts +5 -5
- package/src/resources/bookkeeping-accounts.ts +4 -4
- package/src/resources/bookkeeping-entries.ts +2 -2
- package/src/resources/bookkeeping-entry-sets.ts +6 -3
- package/src/resources/card-disputes.ts +3 -3
- package/src/resources/card-payments.ts +2 -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 +35 -4
- package/src/resources/check-transfers.ts +6 -6
- package/src/resources/declined-transactions.ts +2 -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 +28 -4
- package/src/resources/events.ts +18 -2
- package/src/resources/exports.ts +3 -3
- 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 +13 -0
- package/src/resources/oauth-connections.ts +2 -2
- package/src/resources/pending-transactions.ts +2 -2
- package/src/resources/physical-cards.ts +4 -4
- package/src/resources/programs.ts +2 -2
- package/src/resources/proof-of-authorization-request-submissions.ts +186 -0
- package/src/resources/proof-of-authorization-requests.ts +122 -0
- package/src/resources/real-time-decisions.ts +2 -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 +35 -4
- 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 +2 -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 +33 -2
- 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 +37 -6
- package/src/resources/simulations/simulations.ts +18 -18
- package/src/resources/simulations/wire-transfers.ts +33 -2
- package/src/resources/transactions.ts +34 -3
- 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
|
@@ -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,7 +44,7 @@ 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
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
@@ -64,14 +64,14 @@ export class Accounts extends APIResource {
|
|
|
64
64
|
if (isRequestOptions(query)) {
|
|
65
65
|
return this.balance(accountId, {}, query);
|
|
66
66
|
}
|
|
67
|
-
return this.get(`/accounts/${accountId}/balance`, { query, ...options });
|
|
67
|
+
return this._client.get(`/accounts/${accountId}/balance`, { query, ...options });
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Close an Account
|
|
72
72
|
*/
|
|
73
73
|
close(accountId: string, options?: Core.RequestOptions): Core.APIPromise<Account> {
|
|
74
|
-
return this.post(`/accounts/${accountId}/close`, options);
|
|
74
|
+
return this._client.post(`/accounts/${accountId}/close`, options);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -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,7 +43,7 @@ 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
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -66,7 +66,7 @@ export class BookkeepingAccounts extends APIResource {
|
|
|
66
66
|
if (isRequestOptions(query)) {
|
|
67
67
|
return this.balance(bookkeepingAccountId, {}, query);
|
|
68
68
|
}
|
|
69
|
-
return this.get(`/bookkeeping_accounts/${bookkeepingAccountId}/balance`, { query, ...options });
|
|
69
|
+
return this._client.get(`/bookkeeping_accounts/${bookkeepingAccountId}/balance`, { query, ...options });
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -11,7 +11,7 @@ export class BookkeepingEntries extends APIResource {
|
|
|
11
11
|
* Retrieve a Bookkeeping Entry
|
|
12
12
|
*/
|
|
13
13
|
retrieve(bookkeepingEntryId: string, options?: Core.RequestOptions): Core.APIPromise<BookkeepingEntry> {
|
|
14
|
-
return this.get(`/bookkeeping_entries/${bookkeepingEntryId}`, options);
|
|
14
|
+
return this._client.get(`/bookkeeping_entries/${bookkeepingEntryId}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -29,7 +29,7 @@ export class BookkeepingEntries extends APIResource {
|
|
|
29
29
|
if (isRequestOptions(query)) {
|
|
30
30
|
return this.list({}, query);
|
|
31
31
|
}
|
|
32
|
-
return this.getAPIList('/bookkeeping_entries', BookkeepingEntriesPage, { query, ...options });
|
|
32
|
+
return this._client.getAPIList('/bookkeeping_entries', BookkeepingEntriesPage, { query, ...options });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -14,7 +14,7 @@ export class BookkeepingEntrySets extends APIResource {
|
|
|
14
14
|
body: BookkeepingEntrySetCreateParams,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
16
|
): Core.APIPromise<BookkeepingEntrySet> {
|
|
17
|
-
return this.post('/bookkeeping_entry_sets', { body, ...options });
|
|
17
|
+
return this._client.post('/bookkeeping_entry_sets', { body, ...options });
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -24,7 +24,7 @@ export class BookkeepingEntrySets extends APIResource {
|
|
|
24
24
|
bookkeepingEntrySetId: string,
|
|
25
25
|
options?: Core.RequestOptions,
|
|
26
26
|
): Core.APIPromise<BookkeepingEntrySet> {
|
|
27
|
-
return this.get(`/bookkeeping_entry_sets/${bookkeepingEntrySetId}`, options);
|
|
27
|
+
return this._client.get(`/bookkeeping_entry_sets/${bookkeepingEntrySetId}`, options);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -42,7 +42,10 @@ export class BookkeepingEntrySets extends APIResource {
|
|
|
42
42
|
if (isRequestOptions(query)) {
|
|
43
43
|
return this.list({}, query);
|
|
44
44
|
}
|
|
45
|
-
return this.getAPIList('/bookkeeping_entry_sets', BookkeepingEntrySetsPage, {
|
|
45
|
+
return this._client.getAPIList('/bookkeeping_entry_sets', BookkeepingEntrySetsPage, {
|
|
46
|
+
query,
|
|
47
|
+
...options,
|
|
48
|
+
});
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -14,7 +14,7 @@ export class CardPurchaseSupplements extends APIResource {
|
|
|
14
14
|
cardPurchaseSupplementId: string,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
16
|
): Core.APIPromise<CardPurchaseSupplement> {
|
|
17
|
-
return this.get(`/card_purchase_supplements/${cardPurchaseSupplementId}`, options);
|
|
17
|
+
return this._client.get(`/card_purchase_supplements/${cardPurchaseSupplementId}`, options);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -32,7 +32,10 @@ export class CardPurchaseSupplements extends APIResource {
|
|
|
32
32
|
if (isRequestOptions(query)) {
|
|
33
33
|
return this.list({}, query);
|
|
34
34
|
}
|
|
35
|
-
return this.getAPIList('/card_purchase_supplements', CardPurchaseSupplementsPage, {
|
|
35
|
+
return this._client.getAPIList('/card_purchase_supplements', CardPurchaseSupplementsPage, {
|
|
36
|
+
query,
|
|
37
|
+
...options,
|
|
38
|
+
});
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
|
package/src/resources/cards.ts
CHANGED
|
@@ -11,21 +11,21 @@ export class Cards extends APIResource {
|
|
|
11
11
|
* Create a Card
|
|
12
12
|
*/
|
|
13
13
|
create(body: CardCreateParams, options?: Core.RequestOptions): Core.APIPromise<Card> {
|
|
14
|
-
return this.post('/cards', { body, ...options });
|
|
14
|
+
return this._client.post('/cards', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieve a Card
|
|
19
19
|
*/
|
|
20
20
|
retrieve(cardId: string, options?: Core.RequestOptions): Core.APIPromise<Card> {
|
|
21
|
-
return this.get(`/cards/${cardId}`, options);
|
|
21
|
+
return this._client.get(`/cards/${cardId}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Update a Card
|
|
26
26
|
*/
|
|
27
27
|
update(cardId: string, body: CardUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Card> {
|
|
28
|
-
return this.patch(`/cards/${cardId}`, { body, ...options });
|
|
28
|
+
return this._client.patch(`/cards/${cardId}`, { body, ...options });
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -40,14 +40,14 @@ export class Cards extends APIResource {
|
|
|
40
40
|
if (isRequestOptions(query)) {
|
|
41
41
|
return this.list({}, query);
|
|
42
42
|
}
|
|
43
|
-
return this.getAPIList('/cards', CardsPage, { query, ...options });
|
|
43
|
+
return this._client.getAPIList('/cards', CardsPage, { query, ...options });
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* Retrieve sensitive details for a Card
|
|
48
48
|
*/
|
|
49
49
|
retrieveSensitiveDetails(cardId: string, options?: Core.RequestOptions): Core.APIPromise<CardDetails> {
|
|
50
|
-
return this.get(`/cards/${cardId}/details`, options);
|
|
50
|
+
return this._client.get(`/cards/${cardId}/details`, options);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -11,14 +11,14 @@ export class CheckDeposits extends APIResource {
|
|
|
11
11
|
* Create a Check Deposit
|
|
12
12
|
*/
|
|
13
13
|
create(body: CheckDepositCreateParams, options?: Core.RequestOptions): Core.APIPromise<CheckDeposit> {
|
|
14
|
-
return this.post('/check_deposits', { body, ...options });
|
|
14
|
+
return this._client.post('/check_deposits', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieve a Check Deposit
|
|
19
19
|
*/
|
|
20
20
|
retrieve(checkDepositId: string, options?: Core.RequestOptions): Core.APIPromise<CheckDeposit> {
|
|
21
|
-
return this.get(`/check_deposits/${checkDepositId}`, options);
|
|
21
|
+
return this._client.get(`/check_deposits/${checkDepositId}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -36,7 +36,7 @@ export class CheckDeposits extends APIResource {
|
|
|
36
36
|
if (isRequestOptions(query)) {
|
|
37
37
|
return this.list({}, query);
|
|
38
38
|
}
|
|
39
|
-
return this.getAPIList('/check_deposits', CheckDepositsPage, { query, ...options });
|
|
39
|
+
return this._client.getAPIList('/check_deposits', CheckDepositsPage, { query, ...options });
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -284,6 +284,23 @@ export namespace CheckDeposit {
|
|
|
284
284
|
* - `unmatched_details` - The image doesn't match the details submitted.
|
|
285
285
|
* - `unreadable_image` - The image could not be read.
|
|
286
286
|
* - `endorsement_irregular` - The check endorsement was irregular.
|
|
287
|
+
* - `altered_or_fictitious_item` - The check present was either altered or fake.
|
|
288
|
+
* - `frozen_or_blocked_account` - The account this check is drawn on is frozen.
|
|
289
|
+
* - `post_dated` - The check is post dated.
|
|
290
|
+
* - `endorsement_missing` - The endorsement was missing.
|
|
291
|
+
* - `signature_missing` - The check signature was missing.
|
|
292
|
+
* - `stop_payment_suspect` - The bank suspects a stop payment will be placed.
|
|
293
|
+
* - `unusable_image` - The bank cannot read the image.
|
|
294
|
+
* - `image_fails_security_check` - The check image fails the bank's security
|
|
295
|
+
* check.
|
|
296
|
+
* - `cannot_determine_amount` - The bank cannot determine the amount.
|
|
297
|
+
* - `signature_irregular` - The signature is inconsistent with prior signatures.
|
|
298
|
+
* - `non_cash_item` - The check is a non-cash item and cannot be drawn against the
|
|
299
|
+
* account.
|
|
300
|
+
* - `unable_to_process` - The bank is unable to process this check.
|
|
301
|
+
* - `item_exceeds_dollar_limit` - The check exceeds the bank or customer's limit.
|
|
302
|
+
* - `branch_or_account_sold` - The bank sold this account and no longer services
|
|
303
|
+
* this customer.
|
|
287
304
|
*/
|
|
288
305
|
return_reason:
|
|
289
306
|
| 'ach_conversion_not_supported'
|
|
@@ -297,7 +314,21 @@ export namespace CheckDeposit {
|
|
|
297
314
|
| 'unknown_reason'
|
|
298
315
|
| 'unmatched_details'
|
|
299
316
|
| 'unreadable_image'
|
|
300
|
-
| 'endorsement_irregular'
|
|
317
|
+
| 'endorsement_irregular'
|
|
318
|
+
| 'altered_or_fictitious_item'
|
|
319
|
+
| 'frozen_or_blocked_account'
|
|
320
|
+
| 'post_dated'
|
|
321
|
+
| 'endorsement_missing'
|
|
322
|
+
| 'signature_missing'
|
|
323
|
+
| 'stop_payment_suspect'
|
|
324
|
+
| 'unusable_image'
|
|
325
|
+
| 'image_fails_security_check'
|
|
326
|
+
| 'cannot_determine_amount'
|
|
327
|
+
| 'signature_irregular'
|
|
328
|
+
| 'non_cash_item'
|
|
329
|
+
| 'unable_to_process'
|
|
330
|
+
| 'item_exceeds_dollar_limit'
|
|
331
|
+
| 'branch_or_account_sold';
|
|
301
332
|
|
|
302
333
|
/**
|
|
303
334
|
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
@@ -11,14 +11,14 @@ export class CheckTransfers extends APIResource {
|
|
|
11
11
|
* Create a Check Transfer
|
|
12
12
|
*/
|
|
13
13
|
create(body: CheckTransferCreateParams, options?: Core.RequestOptions): Core.APIPromise<CheckTransfer> {
|
|
14
|
-
return this.post('/check_transfers', { body, ...options });
|
|
14
|
+
return this._client.post('/check_transfers', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieve a Check Transfer
|
|
19
19
|
*/
|
|
20
20
|
retrieve(checkTransferId: string, options?: Core.RequestOptions): Core.APIPromise<CheckTransfer> {
|
|
21
|
-
return this.get(`/check_transfers/${checkTransferId}`, options);
|
|
21
|
+
return this._client.get(`/check_transfers/${checkTransferId}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -36,21 +36,21 @@ export class CheckTransfers extends APIResource {
|
|
|
36
36
|
if (isRequestOptions(query)) {
|
|
37
37
|
return this.list({}, query);
|
|
38
38
|
}
|
|
39
|
-
return this.getAPIList('/check_transfers', CheckTransfersPage, { query, ...options });
|
|
39
|
+
return this._client.getAPIList('/check_transfers', CheckTransfersPage, { query, ...options });
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Approve a Check Transfer
|
|
44
44
|
*/
|
|
45
45
|
approve(checkTransferId: string, options?: Core.RequestOptions): Core.APIPromise<CheckTransfer> {
|
|
46
|
-
return this.post(`/check_transfers/${checkTransferId}/approve`, options);
|
|
46
|
+
return this._client.post(`/check_transfers/${checkTransferId}/approve`, options);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Cancel a pending Check Transfer
|
|
51
51
|
*/
|
|
52
52
|
cancel(checkTransferId: string, options?: Core.RequestOptions): Core.APIPromise<CheckTransfer> {
|
|
53
|
-
return this.post(`/check_transfers/${checkTransferId}/cancel`, options);
|
|
53
|
+
return this._client.post(`/check_transfers/${checkTransferId}/cancel`, options);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -61,7 +61,7 @@ export class CheckTransfers extends APIResource {
|
|
|
61
61
|
body: CheckTransferStopPaymentParams,
|
|
62
62
|
options?: Core.RequestOptions,
|
|
63
63
|
): Core.APIPromise<CheckTransfer> {
|
|
64
|
-
return this.post(`/check_transfers/${checkTransferId}/stop_payment`, { body, ...options });
|
|
64
|
+
return this._client.post(`/check_transfers/${checkTransferId}/stop_payment`, { body, ...options });
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -14,7 +14,7 @@ export class DeclinedTransactions extends APIResource {
|
|
|
14
14
|
declinedTransactionId: string,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
16
|
): Core.APIPromise<DeclinedTransaction> {
|
|
17
|
-
return this.get(`/declined_transactions/${declinedTransactionId}`, options);
|
|
17
|
+
return this._client.get(`/declined_transactions/${declinedTransactionId}`, options);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -32,7 +32,7 @@ export class DeclinedTransactions extends APIResource {
|
|
|
32
32
|
if (isRequestOptions(query)) {
|
|
33
33
|
return this.list({}, query);
|
|
34
34
|
}
|
|
35
|
-
return this.getAPIList('/declined_transactions', DeclinedTransactionsPage, { query, ...options });
|
|
35
|
+
return this._client.getAPIList('/declined_transactions', DeclinedTransactionsPage, { query, ...options });
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -11,7 +11,7 @@ export class DigitalWalletTokens extends APIResource {
|
|
|
11
11
|
* Retrieve a Digital Wallet Token
|
|
12
12
|
*/
|
|
13
13
|
retrieve(digitalWalletTokenId: string, options?: Core.RequestOptions): Core.APIPromise<DigitalWalletToken> {
|
|
14
|
-
return this.get(`/digital_wallet_tokens/${digitalWalletTokenId}`, options);
|
|
14
|
+
return this._client.get(`/digital_wallet_tokens/${digitalWalletTokenId}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -29,7 +29,7 @@ export class DigitalWalletTokens extends APIResource {
|
|
|
29
29
|
if (isRequestOptions(query)) {
|
|
30
30
|
return this.list({}, query);
|
|
31
31
|
}
|
|
32
|
-
return this.getAPIList('/digital_wallet_tokens', DigitalWalletTokensPage, { query, ...options });
|
|
32
|
+
return this._client.getAPIList('/digital_wallet_tokens', DigitalWalletTokensPage, { query, ...options });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -11,7 +11,7 @@ export class Documents extends APIResource {
|
|
|
11
11
|
* Retrieve a Document
|
|
12
12
|
*/
|
|
13
13
|
retrieve(documentId: string, options?: Core.RequestOptions): Core.APIPromise<Document> {
|
|
14
|
-
return this.get(`/documents/${documentId}`, options);
|
|
14
|
+
return this._client.get(`/documents/${documentId}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -26,7 +26,7 @@ export class Documents extends APIResource {
|
|
|
26
26
|
if (isRequestOptions(query)) {
|
|
27
27
|
return this.list({}, query);
|
|
28
28
|
}
|
|
29
|
-
return this.getAPIList('/documents', DocumentsPage, { query, ...options });
|
|
29
|
+
return this._client.getAPIList('/documents', DocumentsPage, { query, ...options });
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -13,7 +13,7 @@ export class BeneficialOwners extends APIResource {
|
|
|
13
13
|
body: BeneficialOwnerCreateParams,
|
|
14
14
|
options?: Core.RequestOptions,
|
|
15
15
|
): Core.APIPromise<EntitiesAPI.Entity> {
|
|
16
|
-
return this.post('/entity_beneficial_owners', { body, ...options });
|
|
16
|
+
return this._client.post('/entity_beneficial_owners', { body, ...options });
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -23,7 +23,7 @@ export class BeneficialOwners extends APIResource {
|
|
|
23
23
|
body: BeneficialOwnerArchiveParams,
|
|
24
24
|
options?: Core.RequestOptions,
|
|
25
25
|
): Core.APIPromise<EntitiesAPI.Entity> {
|
|
26
|
-
return this.post('/entity_beneficial_owners/archive', { body, ...options });
|
|
26
|
+
return this._client.post('/entity_beneficial_owners/archive', { body, ...options });
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -33,7 +33,7 @@ export class BeneficialOwners extends APIResource {
|
|
|
33
33
|
body: BeneficialOwnerUpdateAddressParams,
|
|
34
34
|
options?: Core.RequestOptions,
|
|
35
35
|
): Core.APIPromise<EntitiesAPI.Entity> {
|
|
36
|
-
return this.post('/entity_beneficial_owners/address', { body, ...options });
|
|
36
|
+
return this._client.post('/entity_beneficial_owners/address', { body, ...options });
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -10,23 +10,23 @@ import { Page, type PageParams } from "../../pagination";
|
|
|
10
10
|
|
|
11
11
|
export class Entities extends APIResource {
|
|
12
12
|
beneficialOwners: BeneficialOwnersAPI.BeneficialOwners = new BeneficialOwnersAPI.BeneficialOwners(
|
|
13
|
-
this.
|
|
13
|
+
this._client,
|
|
14
14
|
);
|
|
15
15
|
supplementalDocuments: SupplementalDocumentsAPI.SupplementalDocuments =
|
|
16
|
-
new SupplementalDocumentsAPI.SupplementalDocuments(this.
|
|
16
|
+
new SupplementalDocumentsAPI.SupplementalDocuments(this._client);
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create an Entity
|
|
20
20
|
*/
|
|
21
21
|
create(body: EntityCreateParams, options?: Core.RequestOptions): Core.APIPromise<Entity> {
|
|
22
|
-
return this.post('/entities', { body, ...options });
|
|
22
|
+
return this._client.post('/entities', { body, ...options });
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Retrieve an Entity
|
|
27
27
|
*/
|
|
28
28
|
retrieve(entityId: string, options?: Core.RequestOptions): Core.APIPromise<Entity> {
|
|
29
|
-
return this.get(`/entities/${entityId}`, options);
|
|
29
|
+
return this._client.get(`/entities/${entityId}`, options);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
@@ -41,14 +41,14 @@ export class Entities extends APIResource {
|
|
|
41
41
|
if (isRequestOptions(query)) {
|
|
42
42
|
return this.list({}, query);
|
|
43
43
|
}
|
|
44
|
-
return this.getAPIList('/entities', EntitiesPage, { query, ...options });
|
|
44
|
+
return this._client.getAPIList('/entities', EntitiesPage, { query, ...options });
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Archive an Entity
|
|
49
49
|
*/
|
|
50
50
|
archive(entityId: string, options?: Core.RequestOptions): Core.APIPromise<Entity> {
|
|
51
|
-
return this.post(`/entities/${entityId}/archive`, options);
|
|
51
|
+
return this._client.post(`/entities/${entityId}/archive`, options);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
@@ -59,7 +59,7 @@ export class Entities extends APIResource {
|
|
|
59
59
|
body: EntityUpdateAddressParams,
|
|
60
60
|
options?: Core.RequestOptions,
|
|
61
61
|
): Core.APIPromise<Entity> {
|
|
62
|
-
return this.post(`/entities/${entityId}/address`, { body, ...options });
|
|
62
|
+
return this._client.post(`/entities/${entityId}/address`, { body, ...options });
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|