increase 0.8.1 → 0.9.1
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 +42 -0
- package/README.md +31 -11
- package/_shims/fetch.d.ts +8 -1
- package/_shims/fetch.node.d.ts +11 -1
- package/core.d.ts +76 -28
- package/core.d.ts.map +1 -1
- package/core.js +123 -55
- package/core.js.map +1 -1
- package/core.mjs +119 -55
- package/core.mjs.map +1 -1
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/index.mjs +3 -2
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.ts +2 -2
- package/pagination.d.ts.map +1 -1
- package/pagination.js +4 -4
- package/pagination.js.map +1 -1
- package/pagination.mjs +4 -4
- package/pagination.mjs.map +1 -1
- package/resources/account-numbers.d.ts +8 -8
- package/resources/account-numbers.d.ts.map +1 -1
- package/resources/account-numbers.js.map +1 -1
- package/resources/account-numbers.mjs.map +1 -1
- package/resources/account-statements.d.ts +3 -6
- package/resources/account-statements.d.ts.map +1 -1
- package/resources/account-statements.js.map +1 -1
- package/resources/account-statements.mjs.map +1 -1
- package/resources/account-transfers.d.ts +6 -18
- package/resources/account-transfers.d.ts.map +1 -1
- package/resources/account-transfers.js.map +1 -1
- package/resources/account-transfers.mjs.map +1 -1
- package/resources/accounts.d.ts +6 -6
- package/resources/accounts.d.ts.map +1 -1
- package/resources/ach-prenotifications.d.ts +51 -7
- package/resources/ach-prenotifications.d.ts.map +1 -1
- package/resources/ach-prenotifications.js.map +1 -1
- package/resources/ach-prenotifications.mjs.map +1 -1
- package/resources/ach-transfers.d.ts +16 -9
- package/resources/ach-transfers.d.ts.map +1 -1
- package/resources/ach-transfers.js.map +1 -1
- package/resources/ach-transfers.mjs.map +1 -1
- package/resources/balance-lookups.d.ts +1 -1
- package/resources/balance-lookups.d.ts.map +1 -1
- package/resources/bookkeeping-accounts.d.ts +3 -3
- package/resources/bookkeeping-accounts.d.ts.map +1 -1
- package/resources/bookkeeping-entries.d.ts +2 -2
- package/resources/bookkeeping-entries.d.ts.map +1 -1
- package/resources/bookkeeping-entry-sets.d.ts +1 -1
- package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
- package/resources/card-disputes.d.ts +7 -7
- package/resources/card-disputes.d.ts.map +1 -1
- package/resources/card-disputes.js.map +1 -1
- package/resources/card-disputes.mjs.map +1 -1
- package/resources/card-profiles.d.ts +15 -7
- package/resources/card-profiles.d.ts.map +1 -1
- package/resources/card-profiles.js +6 -0
- package/resources/card-profiles.js.map +1 -1
- package/resources/card-profiles.mjs +6 -0
- package/resources/card-profiles.mjs.map +1 -1
- package/resources/card-purchase-supplements.d.ts +3 -3
- package/resources/card-purchase-supplements.d.ts.map +1 -1
- package/resources/cards.d.ts +6 -13
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs.map +1 -1
- package/resources/check-deposits.d.ts +7 -7
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/check-deposits.js.map +1 -1
- package/resources/check-deposits.mjs.map +1 -1
- package/resources/check-transfers.d.ts +15 -10
- package/resources/check-transfers.d.ts.map +1 -1
- package/resources/check-transfers.js.map +1 -1
- package/resources/check-transfers.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +25 -28
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/digital-wallet-tokens.d.ts +3 -6
- package/resources/digital-wallet-tokens.d.ts.map +1 -1
- package/resources/digital-wallet-tokens.js.map +1 -1
- package/resources/digital-wallet-tokens.mjs.map +1 -1
- package/resources/documents.d.ts +3 -3
- package/resources/documents.d.ts.map +1 -1
- package/resources/entities/beneficial-owners.d.ts +4 -8
- package/resources/entities/beneficial-owners.d.ts.map +1 -1
- package/resources/entities/beneficial-owners.js.map +1 -1
- package/resources/entities/beneficial-owners.mjs.map +1 -1
- package/resources/entities/entities.d.ts +11 -11
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js +6 -0
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs +6 -0
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/supplemental-documents.d.ts +2 -2
- package/resources/entities/supplemental-documents.d.ts.map +1 -1
- package/resources/event-subscriptions.d.ts +5 -8
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/event-subscriptions.js.map +1 -1
- package/resources/event-subscriptions.mjs.map +1 -1
- package/resources/events.d.ts +7 -5
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/exports.d.ts +4 -4
- package/resources/exports.d.ts.map +1 -1
- package/resources/external-accounts.d.ts +5 -11
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/files.d.ts +9 -4
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -2
- package/resources/files.mjs.map +1 -1
- package/resources/groups.d.ts +1 -1
- package/resources/groups.d.ts.map +1 -1
- package/resources/inbound-ach-transfer-returns.d.ts +6 -4
- package/resources/inbound-ach-transfer-returns.d.ts.map +1 -1
- package/resources/inbound-ach-transfer-returns.js.map +1 -1
- package/resources/inbound-ach-transfer-returns.mjs.map +1 -1
- package/resources/inbound-wire-drawdown-requests.d.ts +5 -3
- package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/inbound-wire-drawdown-requests.js.map +1 -1
- package/resources/inbound-wire-drawdown-requests.mjs.map +1 -1
- package/resources/limits.d.ts +5 -9
- package/resources/limits.d.ts.map +1 -1
- package/resources/limits.js.map +1 -1
- package/resources/limits.mjs.map +1 -1
- package/resources/oauth-connections.d.ts +3 -6
- package/resources/oauth-connections.d.ts.map +1 -1
- package/resources/oauth-connections.js.map +1 -1
- package/resources/oauth-connections.mjs.map +1 -1
- package/resources/pending-transactions.d.ts +28 -37
- package/resources/pending-transactions.d.ts.map +1 -1
- package/resources/pending-transactions.js.map +1 -1
- package/resources/pending-transactions.mjs.map +1 -1
- package/resources/programs.d.ts +3 -3
- package/resources/programs.d.ts.map +1 -1
- package/resources/real-time-decisions.d.ts +2 -5
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/real-time-decisions.js.map +1 -1
- package/resources/real-time-decisions.mjs.map +1 -1
- package/resources/real-time-payments-transfers.d.ts +6 -4
- package/resources/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/real-time-payments-transfers.js.map +1 -1
- package/resources/real-time-payments-transfers.mjs.map +1 -1
- package/resources/routing-numbers.d.ts +4 -1
- package/resources/routing-numbers.d.ts.map +1 -1
- package/resources/routing-numbers.js.map +1 -1
- package/resources/routing-numbers.mjs.map +1 -1
- package/resources/simulations/account-statements.d.ts +1 -1
- package/resources/simulations/account-statements.d.ts.map +1 -1
- package/resources/simulations/account-transfers.d.ts +1 -1
- package/resources/simulations/account-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +124 -138
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/card-disputes.d.ts +1 -1
- package/resources/simulations/card-disputes.d.ts.map +1 -1
- package/resources/simulations/card-profiles.d.ts +1 -4
- package/resources/simulations/card-profiles.d.ts.map +1 -1
- package/resources/simulations/card-profiles.js.map +1 -1
- package/resources/simulations/card-profiles.mjs.map +1 -1
- package/resources/simulations/card-refunds.d.ts +1 -1
- package/resources/simulations/card-refunds.d.ts.map +1 -1
- package/resources/simulations/cards.d.ts +49 -58
- package/resources/simulations/cards.d.ts.map +1 -1
- package/resources/simulations/cards.js.map +1 -1
- package/resources/simulations/cards.mjs.map +1 -1
- package/resources/simulations/check-deposits.d.ts +3 -12
- package/resources/simulations/check-deposits.d.ts.map +1 -1
- package/resources/simulations/check-transfers.d.ts +2 -2
- package/resources/simulations/check-transfers.d.ts.map +1 -1
- package/resources/simulations/digital-wallet-token-requests.d.ts +1 -1
- package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
- package/resources/simulations/documents.d.ts +1 -4
- package/resources/simulations/documents.d.ts.map +1 -1
- package/resources/simulations/documents.js.map +1 -1
- package/resources/simulations/documents.mjs.map +1 -1
- package/resources/simulations/inbound-funds-holds.d.ts +1 -1
- package/resources/simulations/inbound-funds-holds.d.ts.map +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.d.ts +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/simulations/interest-payments.d.ts +100 -108
- package/resources/simulations/interest-payments.d.ts.map +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/programs.d.ts +1 -4
- package/resources/simulations/programs.d.ts.map +1 -1
- package/resources/simulations/programs.js.map +1 -1
- package/resources/simulations/programs.mjs.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.ts +123 -134
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +100 -108
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/transactions.d.ts +105 -110
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-drawdown-requests.d.ts +4 -4
- package/resources/wire-drawdown-requests.d.ts.map +1 -1
- package/resources/wire-transfers.d.ts +11 -11
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/_shims/fetch.d.ts +8 -1
- package/src/_shims/fetch.node.d.ts +11 -1
- package/src/core.ts +176 -76
- package/src/index.ts +2 -2
- package/src/pagination.ts +5 -5
- package/src/resources/account-numbers.ts +9 -9
- package/src/resources/account-statements.ts +4 -7
- package/src/resources/account-transfers.ts +7 -19
- package/src/resources/accounts.ts +7 -7
- package/src/resources/ach-prenotifications.ts +56 -8
- package/src/resources/ach-transfers.ts +18 -10
- package/src/resources/balance-lookups.ts +1 -1
- package/src/resources/bookkeeping-accounts.ts +4 -4
- package/src/resources/bookkeeping-entries.ts +3 -3
- package/src/resources/bookkeeping-entry-sets.ts +1 -1
- package/src/resources/card-disputes.ts +8 -8
- package/src/resources/card-profiles.ts +20 -8
- package/src/resources/card-purchase-supplements.ts +4 -4
- package/src/resources/cards.ts +7 -14
- package/src/resources/check-deposits.ts +8 -8
- package/src/resources/check-transfers.ts +17 -11
- package/src/resources/declined-transactions.ts +26 -29
- package/src/resources/digital-wallet-tokens.ts +4 -7
- package/src/resources/documents.ts +4 -4
- package/src/resources/entities/beneficial-owners.ts +4 -8
- package/src/resources/entities/entities.ts +15 -12
- package/src/resources/entities/supplemental-documents.ts +2 -2
- package/src/resources/event-subscriptions.ts +6 -9
- package/src/resources/events.ts +8 -6
- package/src/resources/exports.ts +5 -5
- package/src/resources/external-accounts.ts +6 -12
- package/src/resources/files.ts +11 -6
- package/src/resources/groups.ts +1 -1
- package/src/resources/inbound-ach-transfer-returns.ts +7 -5
- package/src/resources/inbound-wire-drawdown-requests.ts +6 -4
- package/src/resources/limits.ts +6 -10
- package/src/resources/oauth-connections.ts +4 -7
- package/src/resources/pending-transactions.ts +29 -38
- package/src/resources/programs.ts +4 -4
- package/src/resources/real-time-decisions.ts +2 -5
- package/src/resources/real-time-payments-transfers.ts +7 -5
- package/src/resources/routing-numbers.ts +4 -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 +124 -138
- package/src/resources/simulations/card-disputes.ts +1 -1
- package/src/resources/simulations/card-profiles.ts +1 -4
- package/src/resources/simulations/card-refunds.ts +1 -1
- package/src/resources/simulations/cards.ts +49 -58
- 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 -4
- 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 +100 -108
- package/src/resources/simulations/programs.ts +1 -4
- package/src/resources/simulations/real-time-payments-transfers.ts +123 -134
- package/src/resources/simulations/wire-transfers.ts +100 -108
- package/src/resources/transactions.ts +106 -111
- package/src/resources/wire-drawdown-requests.ts +5 -5
- package/src/resources/wire-transfers.ts +12 -12
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -10,10 +10,7 @@ export class OauthConnections extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Retrieve an OAuth Connection
|
|
12
12
|
*/
|
|
13
|
-
retrieve(
|
|
14
|
-
oauthConnectionId: string,
|
|
15
|
-
options?: Core.RequestOptions,
|
|
16
|
-
): Promise<Core.APIResponse<OauthConnection>> {
|
|
13
|
+
retrieve(oauthConnectionId: string, options?: Core.RequestOptions): Core.APIPromise<OauthConnection> {
|
|
17
14
|
return this.get(`/oauth_connections/${oauthConnectionId}`, options);
|
|
18
15
|
}
|
|
19
16
|
|
|
@@ -23,12 +20,12 @@ export class OauthConnections extends APIResource {
|
|
|
23
20
|
list(
|
|
24
21
|
query?: OauthConnectionListParams,
|
|
25
22
|
options?: Core.RequestOptions,
|
|
26
|
-
): Core.PagePromise<OauthConnectionsPage>;
|
|
27
|
-
list(options?: Core.RequestOptions): Core.PagePromise<OauthConnectionsPage>;
|
|
23
|
+
): Core.PagePromise<OauthConnectionsPage, OauthConnection>;
|
|
24
|
+
list(options?: Core.RequestOptions): Core.PagePromise<OauthConnectionsPage, OauthConnection>;
|
|
28
25
|
list(
|
|
29
26
|
query: OauthConnectionListParams | Core.RequestOptions = {},
|
|
30
27
|
options?: Core.RequestOptions,
|
|
31
|
-
): Core.PagePromise<OauthConnectionsPage> {
|
|
28
|
+
): Core.PagePromise<OauthConnectionsPage, OauthConnection> {
|
|
32
29
|
if (isRequestOptions(query)) {
|
|
33
30
|
return this.list({}, query);
|
|
34
31
|
}
|
|
@@ -11,10 +11,7 @@ export class PendingTransactions extends APIResource {
|
|
|
11
11
|
/**
|
|
12
12
|
* Retrieve a Pending Transaction
|
|
13
13
|
*/
|
|
14
|
-
retrieve(
|
|
15
|
-
pendingTransactionId: string,
|
|
16
|
-
options?: Core.RequestOptions,
|
|
17
|
-
): Promise<Core.APIResponse<PendingTransaction>> {
|
|
14
|
+
retrieve(pendingTransactionId: string, options?: Core.RequestOptions): Core.APIPromise<PendingTransaction> {
|
|
18
15
|
return this.get(`/pending_transactions/${pendingTransactionId}`, options);
|
|
19
16
|
}
|
|
20
17
|
|
|
@@ -24,12 +21,12 @@ export class PendingTransactions extends APIResource {
|
|
|
24
21
|
list(
|
|
25
22
|
query?: PendingTransactionListParams,
|
|
26
23
|
options?: Core.RequestOptions,
|
|
27
|
-
): Core.PagePromise<PendingTransactionsPage>;
|
|
28
|
-
list(options?: Core.RequestOptions): Core.PagePromise<PendingTransactionsPage>;
|
|
24
|
+
): Core.PagePromise<PendingTransactionsPage, PendingTransaction>;
|
|
25
|
+
list(options?: Core.RequestOptions): Core.PagePromise<PendingTransactionsPage, PendingTransaction>;
|
|
29
26
|
list(
|
|
30
27
|
query: PendingTransactionListParams | Core.RequestOptions = {},
|
|
31
28
|
options?: Core.RequestOptions,
|
|
32
|
-
): Core.PagePromise<PendingTransactionsPage> {
|
|
29
|
+
): Core.PagePromise<PendingTransactionsPage, PendingTransaction> {
|
|
33
30
|
if (isRequestOptions(query)) {
|
|
34
31
|
return this.list({}, query);
|
|
35
32
|
}
|
|
@@ -142,13 +139,13 @@ export namespace PendingTransaction {
|
|
|
142
139
|
*/
|
|
143
140
|
export interface Source {
|
|
144
141
|
/**
|
|
145
|
-
*
|
|
142
|
+
* An Account Transfer Instruction object. This field will be present in the JSON
|
|
146
143
|
* response if and only if `category` is equal to `account_transfer_instruction`.
|
|
147
144
|
*/
|
|
148
145
|
account_transfer_instruction: Source.AccountTransferInstruction | null;
|
|
149
146
|
|
|
150
147
|
/**
|
|
151
|
-
*
|
|
148
|
+
* An ACH Transfer Instruction object. This field will be present in the JSON
|
|
152
149
|
* response if and only if `category` is equal to `ach_transfer_instruction`.
|
|
153
150
|
*/
|
|
154
151
|
ach_transfer_instruction: Source.ACHTransferInstruction | null;
|
|
@@ -160,32 +157,26 @@ export namespace PendingTransaction {
|
|
|
160
157
|
card_authorization: Source.CardAuthorization | null;
|
|
161
158
|
|
|
162
159
|
/**
|
|
163
|
-
* The type of
|
|
164
|
-
*
|
|
165
|
-
* additions gracefully.
|
|
160
|
+
* The type of the resource. We may add additional possible values for this enum
|
|
161
|
+
* over time; your application should be able to handle such additions gracefully.
|
|
166
162
|
*
|
|
167
|
-
* - `account_transfer_instruction` -
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* `
|
|
173
|
-
* - `
|
|
174
|
-
*
|
|
175
|
-
* - `
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
* created by a Real Time Payments Transfer Instruction object. Details will be
|
|
185
|
-
* under the `real_time_payments_transfer_instruction` object.
|
|
186
|
-
* - `wire_transfer_instruction` - The Pending Transaction was created by a Wire
|
|
187
|
-
* Transfer Instruction object. Details will be under the
|
|
188
|
-
* `wire_transfer_instruction` object.
|
|
163
|
+
* - `account_transfer_instruction` - Account Transfer Instruction: details will be
|
|
164
|
+
* under the `account_transfer_instruction` object.
|
|
165
|
+
* - `ach_transfer_instruction` - ACH Transfer Instruction: details will be under
|
|
166
|
+
* the `ach_transfer_instruction` object.
|
|
167
|
+
* - `card_authorization` - Card Authorization: details will be under the
|
|
168
|
+
* `card_authorization` object.
|
|
169
|
+
* - `check_deposit_instruction` - Check Deposit Instruction: details will be under
|
|
170
|
+
* the `check_deposit_instruction` object.
|
|
171
|
+
* - `check_transfer_instruction` - Check Transfer Instruction: details will be
|
|
172
|
+
* under the `check_transfer_instruction` object.
|
|
173
|
+
* - `inbound_funds_hold` - Inbound Funds Hold: details will be under the
|
|
174
|
+
* `inbound_funds_hold` object.
|
|
175
|
+
* - `real_time_payments_transfer_instruction` - Real Time Payments Transfer
|
|
176
|
+
* Instruction: details will be under the
|
|
177
|
+
* `real_time_payments_transfer_instruction` object.
|
|
178
|
+
* - `wire_transfer_instruction` - Wire Transfer Instruction: details will be under
|
|
179
|
+
* the `wire_transfer_instruction` object.
|
|
189
180
|
* - `other` - The Pending Transaction was made for an undocumented or deprecated
|
|
190
181
|
* reason.
|
|
191
182
|
*/
|
|
@@ -213,7 +204,7 @@ export namespace PendingTransaction {
|
|
|
213
204
|
check_transfer_instruction: Source.CheckTransferInstruction | null;
|
|
214
205
|
|
|
215
206
|
/**
|
|
216
|
-
*
|
|
207
|
+
* An Inbound Funds Hold object. This field will be present in the JSON response if
|
|
217
208
|
* and only if `category` is equal to `inbound_funds_hold`.
|
|
218
209
|
*/
|
|
219
210
|
inbound_funds_hold: Source.InboundFundsHold | null;
|
|
@@ -234,7 +225,7 @@ export namespace PendingTransaction {
|
|
|
234
225
|
|
|
235
226
|
export namespace Source {
|
|
236
227
|
/**
|
|
237
|
-
*
|
|
228
|
+
* An Account Transfer Instruction object. This field will be present in the JSON
|
|
238
229
|
* response if and only if `category` is equal to `account_transfer_instruction`.
|
|
239
230
|
*/
|
|
240
231
|
export interface AccountTransferInstruction {
|
|
@@ -264,7 +255,7 @@ export namespace PendingTransaction {
|
|
|
264
255
|
}
|
|
265
256
|
|
|
266
257
|
/**
|
|
267
|
-
*
|
|
258
|
+
* An ACH Transfer Instruction object. This field will be present in the JSON
|
|
268
259
|
* response if and only if `category` is equal to `ach_transfer_instruction`.
|
|
269
260
|
*/
|
|
270
261
|
export interface ACHTransferInstruction {
|
|
@@ -528,7 +519,7 @@ export namespace PendingTransaction {
|
|
|
528
519
|
}
|
|
529
520
|
|
|
530
521
|
/**
|
|
531
|
-
*
|
|
522
|
+
* An Inbound Funds Hold object. This field will be present in the JSON response if
|
|
532
523
|
* and only if `category` is equal to `inbound_funds_hold`.
|
|
533
524
|
*/
|
|
534
525
|
export interface InboundFundsHold {
|
|
@@ -10,19 +10,19 @@ export class Programs extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Retrieve a Program
|
|
12
12
|
*/
|
|
13
|
-
retrieve(programId: string, options?: Core.RequestOptions):
|
|
13
|
+
retrieve(programId: string, options?: Core.RequestOptions): Core.APIPromise<Program> {
|
|
14
14
|
return this.get(`/programs/${programId}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* List Programs
|
|
19
19
|
*/
|
|
20
|
-
list(query?: ProgramListParams, options?: Core.RequestOptions): Core.PagePromise<ProgramsPage>;
|
|
21
|
-
list(options?: Core.RequestOptions): Core.PagePromise<ProgramsPage>;
|
|
20
|
+
list(query?: ProgramListParams, options?: Core.RequestOptions): Core.PagePromise<ProgramsPage, Program>;
|
|
21
|
+
list(options?: Core.RequestOptions): Core.PagePromise<ProgramsPage, Program>;
|
|
22
22
|
list(
|
|
23
23
|
query: ProgramListParams | Core.RequestOptions = {},
|
|
24
24
|
options?: Core.RequestOptions,
|
|
25
|
-
): Core.PagePromise<ProgramsPage> {
|
|
25
|
+
): Core.PagePromise<ProgramsPage, Program> {
|
|
26
26
|
if (isRequestOptions(query)) {
|
|
27
27
|
return this.list({}, query);
|
|
28
28
|
}
|
|
@@ -9,10 +9,7 @@ export class RealTimeDecisions extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Retrieve a Real-Time Decision
|
|
11
11
|
*/
|
|
12
|
-
retrieve(
|
|
13
|
-
realTimeDecisionId: string,
|
|
14
|
-
options?: Core.RequestOptions,
|
|
15
|
-
): Promise<Core.APIResponse<RealTimeDecision>> {
|
|
12
|
+
retrieve(realTimeDecisionId: string, options?: Core.RequestOptions): Core.APIPromise<RealTimeDecision> {
|
|
16
13
|
return this.get(`/real_time_decisions/${realTimeDecisionId}`, options);
|
|
17
14
|
}
|
|
18
15
|
|
|
@@ -23,7 +20,7 @@ export class RealTimeDecisions extends APIResource {
|
|
|
23
20
|
realTimeDecisionId: string,
|
|
24
21
|
body: RealTimeDecisionActionParams,
|
|
25
22
|
options?: Core.RequestOptions,
|
|
26
|
-
):
|
|
23
|
+
): Core.APIPromise<RealTimeDecision> {
|
|
27
24
|
return this.post(`/real_time_decisions/${realTimeDecisionId}/action`, { body, ...options });
|
|
28
25
|
}
|
|
29
26
|
}
|
|
@@ -13,7 +13,7 @@ export class RealTimePaymentsTransfers extends APIResource {
|
|
|
13
13
|
create(
|
|
14
14
|
body: RealTimePaymentsTransferCreateParams,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
|
-
):
|
|
16
|
+
): Core.APIPromise<RealTimePaymentsTransfer> {
|
|
17
17
|
return this.post('/real_time_payments_transfers', { body, ...options });
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ export class RealTimePaymentsTransfers extends APIResource {
|
|
|
23
23
|
retrieve(
|
|
24
24
|
realTimePaymentsTransferId: string,
|
|
25
25
|
options?: Core.RequestOptions,
|
|
26
|
-
):
|
|
26
|
+
): Core.APIPromise<RealTimePaymentsTransfer> {
|
|
27
27
|
return this.get(`/real_time_payments_transfers/${realTimePaymentsTransferId}`, options);
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -33,12 +33,14 @@ export class RealTimePaymentsTransfers extends APIResource {
|
|
|
33
33
|
list(
|
|
34
34
|
query?: RealTimePaymentsTransferListParams,
|
|
35
35
|
options?: Core.RequestOptions,
|
|
36
|
-
): Core.PagePromise<RealTimePaymentsTransfersPage>;
|
|
37
|
-
list(
|
|
36
|
+
): Core.PagePromise<RealTimePaymentsTransfersPage, RealTimePaymentsTransfer>;
|
|
37
|
+
list(
|
|
38
|
+
options?: Core.RequestOptions,
|
|
39
|
+
): Core.PagePromise<RealTimePaymentsTransfersPage, RealTimePaymentsTransfer>;
|
|
38
40
|
list(
|
|
39
41
|
query: RealTimePaymentsTransferListParams | Core.RequestOptions = {},
|
|
40
42
|
options?: Core.RequestOptions,
|
|
41
|
-
): Core.PagePromise<RealTimePaymentsTransfersPage> {
|
|
43
|
+
): Core.PagePromise<RealTimePaymentsTransfersPage, RealTimePaymentsTransfer> {
|
|
42
44
|
if (isRequestOptions(query)) {
|
|
43
45
|
return this.list({}, query);
|
|
44
46
|
}
|
|
@@ -12,7 +12,10 @@ export class RoutingNumbers extends APIResource {
|
|
|
12
12
|
* identify a bank, this will always return 0 or 1 entry. In Sandbox, the only
|
|
13
13
|
* valid routing number for this method is 110000000.
|
|
14
14
|
*/
|
|
15
|
-
list(
|
|
15
|
+
list(
|
|
16
|
+
query: RoutingNumberListParams,
|
|
17
|
+
options?: Core.RequestOptions,
|
|
18
|
+
): Core.PagePromise<RoutingNumbersPage, RoutingNumber> {
|
|
16
19
|
return this.getAPIList('/routing_numbers', RoutingNumbersPage, { query, ...options });
|
|
17
20
|
}
|
|
18
21
|
}
|
|
@@ -13,7 +13,7 @@ export class AccountStatements extends APIResource {
|
|
|
13
13
|
create(
|
|
14
14
|
body: AccountStatementCreateParams,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
|
-
):
|
|
16
|
+
): Core.APIPromise<AccountStatements_.AccountStatement> {
|
|
17
17
|
return this.post('/simulations/account_statements', { body, ...options });
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -14,7 +14,7 @@ export class AccountTransfers extends APIResource {
|
|
|
14
14
|
complete(
|
|
15
15
|
accountTransferId: string,
|
|
16
16
|
options?: Core.RequestOptions,
|
|
17
|
-
):
|
|
17
|
+
): Core.APIPromise<AccountTransfers_.AccountTransfer> {
|
|
18
18
|
return this.post(`/simulations/account_transfers/${accountTransferId}/complete`, options);
|
|
19
19
|
}
|
|
20
20
|
}
|