increase 0.10.1 → 0.10.3
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 +32 -0
- package/core.d.ts +7 -4
- package/core.d.ts.map +1 -1
- package/core.js +13 -6
- package/core.js.map +1 -1
- package/core.mjs +13 -6
- package/core.mjs.map +1 -1
- package/index.d.mts +8 -9
- package/index.d.ts +8 -9
- package/index.d.ts.map +1 -1
- package/index.js +6 -6
- package/index.js.map +1 -1
- package/index.mjs +6 -6
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-transfers.d.ts +8 -1
- 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/ach-prenotifications.d.ts +2 -2
- package/resources/ach-transfers.d.ts +11 -4
- 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/card-purchase-supplements.d.ts +1 -1
- package/resources/check-transfers.d.ts +6 -3
- 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 +92 -18
- 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 +1 -1
- package/resources/entities/beneficial-owners.d.ts +24 -5
- package/resources/entities/beneficial-owners.d.ts.map +1 -1
- package/resources/entities/beneficial-owners.js +8 -2
- package/resources/entities/beneficial-owners.js.map +1 -1
- package/resources/entities/beneficial-owners.mjs +8 -2
- package/resources/entities/beneficial-owners.mjs.map +1 -1
- package/resources/entities/entities.d.ts +19 -14
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/index.d.ts +5 -1
- package/resources/entities/index.d.ts.map +1 -1
- package/resources/entities/index.js.map +1 -1
- package/resources/entities/index.mjs.map +1 -1
- package/resources/entities/supplemental-documents.d.ts +1 -1
- package/resources/entities/supplemental-documents.js +1 -1
- package/resources/entities/supplemental-documents.mjs +1 -1
- package/resources/event-subscriptions.d.ts +22 -10
- 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 +13 -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/external-accounts.d.ts +2 -2
- package/resources/inbound-ach-transfers.d.ts +303 -0
- package/resources/inbound-ach-transfers.d.ts.map +1 -0
- package/resources/inbound-ach-transfers.js +40 -0
- package/resources/inbound-ach-transfers.js.map +1 -0
- package/resources/inbound-ach-transfers.mjs +33 -0
- package/resources/inbound-ach-transfers.mjs.map +1 -0
- package/resources/index.d.ts +6 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -35
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -2
- package/resources/index.mjs.map +1 -1
- package/resources/pending-transactions.d.ts +50 -8
- 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/real-time-decisions.d.ts +33 -4
- 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 +49 -42
- package/resources/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/real-time-payments-transfers.js +2 -2
- package/resources/real-time-payments-transfers.js.map +1 -1
- package/resources/real-time-payments-transfers.mjs +2 -2
- package/resources/real-time-payments-transfers.mjs.map +1 -1
- package/resources/routing-numbers.d.ts +1 -1
- package/resources/simulations/ach-transfers.d.ts +93 -35
- 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/cards.d.ts +108 -25
- 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/inbound-wire-drawdown-requests.d.ts +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.js +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.mjs +1 -1
- package/resources/simulations/interest-payments.d.ts +16 -16
- package/resources/simulations/interest-payments.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.ts +124 -66
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js +2 -2
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs +2 -2
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +16 -16
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/transactions.d.ts +16 -16
- package/resources/transactions.d.ts.map +1 -1
- package/resources/wire-transfers.d.ts +9 -2
- 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/core.ts +19 -7
- package/src/index.ts +10 -12
- package/src/resources/account-transfers.ts +9 -1
- package/src/resources/ach-prenotifications.ts +2 -2
- package/src/resources/ach-transfers.ts +12 -4
- package/src/resources/card-purchase-supplements.ts +1 -1
- package/src/resources/check-transfers.ts +6 -3
- package/src/resources/declined-transactions.ts +96 -18
- package/src/resources/digital-wallet-tokens.ts +1 -1
- package/src/resources/entities/beneficial-owners.ts +31 -6
- package/src/resources/entities/entities.ts +20 -14
- package/src/resources/entities/index.ts +5 -1
- package/src/resources/entities/supplemental-documents.ts +1 -1
- package/src/resources/event-subscriptions.ts +22 -10
- package/src/resources/events.ts +13 -5
- package/src/resources/external-accounts.ts +2 -2
- package/src/resources/inbound-ach-transfers.ts +359 -0
- package/src/resources/index.ts +6 -7
- package/src/resources/pending-transactions.ts +52 -8
- package/src/resources/real-time-decisions.ts +34 -4
- package/src/resources/real-time-payments-transfers.ts +50 -42
- package/src/resources/routing-numbers.ts +1 -1
- package/src/resources/simulations/ach-transfers.ts +95 -35
- package/src/resources/simulations/cards.ts +110 -25
- package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
- package/src/resources/simulations/interest-payments.ts +16 -16
- package/src/resources/simulations/real-time-payments-transfers.ts +126 -66
- package/src/resources/simulations/wire-transfers.ts +16 -16
- package/src/resources/transactions.ts +16 -16
- package/src/resources/wire-transfers.ts +10 -2
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/inbound-ach-transfer-returns.d.ts +0 -161
- package/resources/inbound-ach-transfer-returns.d.ts.map +0 -1
- package/resources/inbound-ach-transfer-returns.js +0 -37
- package/resources/inbound-ach-transfer-returns.js.map +0 -1
- package/resources/inbound-ach-transfer-returns.mjs +0 -30
- package/resources/inbound-ach-transfer-returns.mjs.map +0 -1
- package/resources/shared.d.ts +0 -31
- package/resources/shared.d.ts.map +0 -1
- package/resources/shared.js +0 -4
- package/resources/shared.js.map +0 -1
- package/resources/shared.mjs +0 -3
- package/resources/shared.mjs.map +0 -1
- package/src/resources/inbound-ach-transfer-returns.ts +0 -196
- package/src/resources/shared.ts +0 -32
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from '../core';
|
|
4
|
+
import { APIResource } from '../resource';
|
|
5
|
+
import { isRequestOptions } from '../core';
|
|
6
|
+
import * as API from './index';
|
|
7
|
+
import { Page, PageParams } from '../pagination';
|
|
8
|
+
|
|
9
|
+
export class InboundACHTransfers extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve an Inbound ACH Transfer
|
|
12
|
+
*/
|
|
13
|
+
retrieve(inboundACHTransferId: string, options?: Core.RequestOptions): Core.APIPromise<InboundACHTransfer> {
|
|
14
|
+
return this.get(`/inbound_ach_transfers/${inboundACHTransferId}`, options);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* List Inbound ACH Transfers
|
|
19
|
+
*/
|
|
20
|
+
list(
|
|
21
|
+
query?: InboundACHTransferListParams,
|
|
22
|
+
options?: Core.RequestOptions,
|
|
23
|
+
): Core.PagePromise<InboundACHTransfersPage, InboundACHTransfer>;
|
|
24
|
+
list(options?: Core.RequestOptions): Core.PagePromise<InboundACHTransfersPage, InboundACHTransfer>;
|
|
25
|
+
list(
|
|
26
|
+
query: InboundACHTransferListParams | Core.RequestOptions = {},
|
|
27
|
+
options?: Core.RequestOptions,
|
|
28
|
+
): Core.PagePromise<InboundACHTransfersPage, InboundACHTransfer> {
|
|
29
|
+
if (isRequestOptions(query)) {
|
|
30
|
+
return this.list({}, query);
|
|
31
|
+
}
|
|
32
|
+
return this.getAPIList('/inbound_ach_transfers', InboundACHTransfersPage, { query, ...options });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Decline an Inbound ACH Transfer
|
|
37
|
+
*/
|
|
38
|
+
decline(inboundACHTransferId: string, options?: Core.RequestOptions): Core.APIPromise<InboundACHTransfer> {
|
|
39
|
+
return this.post(`/inbound_ach_transfers/${inboundACHTransferId}/decline`, options);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Return an Inbound ACH Transfer
|
|
44
|
+
*/
|
|
45
|
+
transferReturn(
|
|
46
|
+
inboundACHTransferId: string,
|
|
47
|
+
body: InboundACHTransferTransferReturnParams,
|
|
48
|
+
options?: Core.RequestOptions,
|
|
49
|
+
): Core.APIPromise<InboundACHTransfer> {
|
|
50
|
+
return this.post(`/inbound_ach_transfers/${inboundACHTransferId}/transfer_return`, { body, ...options });
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export class InboundACHTransfersPage extends Page<InboundACHTransfer> {}
|
|
55
|
+
// alias so we can export it in the namespace
|
|
56
|
+
type _InboundACHTransfersPage = InboundACHTransfersPage;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* An Inbound ACH Transfer is an ACH transfer initiated outside of Increase to your
|
|
60
|
+
* account.
|
|
61
|
+
*/
|
|
62
|
+
export interface InboundACHTransfer {
|
|
63
|
+
/**
|
|
64
|
+
* The inbound ach transfer's identifier.
|
|
65
|
+
*/
|
|
66
|
+
id: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* If your transfer is accepted, this will contain details of the acceptance.
|
|
70
|
+
*/
|
|
71
|
+
acceptance: InboundACHTransfer.Acceptance | null;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The transfer amount in USD cents.
|
|
75
|
+
*/
|
|
76
|
+
amount: number;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The time at which the transfer will be automatically resolved.
|
|
80
|
+
*/
|
|
81
|
+
automatically_resolves_at: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* If your transfer is declined, this will contain details of the decline.
|
|
85
|
+
*/
|
|
86
|
+
decline: InboundACHTransfer.Decline | null;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The direction of the transfer.
|
|
90
|
+
*
|
|
91
|
+
* - `credit` - Credit
|
|
92
|
+
* - `debit` - Debit
|
|
93
|
+
*/
|
|
94
|
+
direction: 'credit' | 'debit';
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The descriptive date of the transfer.
|
|
98
|
+
*/
|
|
99
|
+
originator_company_descriptive_date: string | null;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* The additional information included with the transfer.
|
|
103
|
+
*/
|
|
104
|
+
originator_company_discretionary_data: string | null;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The description of the transfer.
|
|
108
|
+
*/
|
|
109
|
+
originator_company_entry_description: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The id of the company that initiated the transfer.
|
|
113
|
+
*/
|
|
114
|
+
originator_company_id: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The name of the company that initiated the transfer.
|
|
118
|
+
*/
|
|
119
|
+
originator_company_name: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* The id of the receiver of the transfer.
|
|
123
|
+
*/
|
|
124
|
+
receiver_id_number: string | null;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* The name of the receiver of the transfer.
|
|
128
|
+
*/
|
|
129
|
+
receiver_name: string | null;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The status of the transfer.
|
|
133
|
+
*
|
|
134
|
+
* - `pending` - The Inbound ACH Transfer is awaiting action, will transition
|
|
135
|
+
* automatically if no action is taken.
|
|
136
|
+
* - `declined` - The Inbound ACH Transfer has been declined.
|
|
137
|
+
* - `accepted` - The Inbound ACH Transfer is accepted.
|
|
138
|
+
* - `returned` - The Inbound ACH Transfer has been returned.
|
|
139
|
+
*/
|
|
140
|
+
status: 'pending' | 'declined' | 'accepted' | 'returned';
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* The trace number of the transfer.
|
|
144
|
+
*/
|
|
145
|
+
trace_number: string;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* If your transfer is returned, this will contain details of the return.
|
|
149
|
+
*/
|
|
150
|
+
transfer_return: InboundACHTransfer.TransferReturn | null;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* A constant representing the object's type. For this resource it will always be
|
|
154
|
+
* `inbound_ach_transfer`.
|
|
155
|
+
*/
|
|
156
|
+
type: 'inbound_ach_transfer';
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export namespace InboundACHTransfer {
|
|
160
|
+
/**
|
|
161
|
+
* If your transfer is accepted, this will contain details of the acceptance.
|
|
162
|
+
*/
|
|
163
|
+
export interface Acceptance {
|
|
164
|
+
/**
|
|
165
|
+
* The time at which the transfer was accepted.
|
|
166
|
+
*/
|
|
167
|
+
accepted_at: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* The id of the transaction for the accepted transfer.
|
|
171
|
+
*/
|
|
172
|
+
transaction_id: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* If your transfer is declined, this will contain details of the decline.
|
|
177
|
+
*/
|
|
178
|
+
export interface Decline {
|
|
179
|
+
/**
|
|
180
|
+
* The time at which the transfer was declined.
|
|
181
|
+
*/
|
|
182
|
+
declined_at: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The id of the transaction for the declined transfer.
|
|
186
|
+
*/
|
|
187
|
+
declined_transaction_id: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* The reason for the transfer decline
|
|
191
|
+
*
|
|
192
|
+
* - `ach_route_canceled` - The account number is canceled.
|
|
193
|
+
* - `ach_route_disabled` - The account number is disabled.
|
|
194
|
+
* - `breaches_limit` - The transaction would cause a limit to be exceeded.
|
|
195
|
+
* - `credit_entry_refused_by_receiver` - A credit was refused.
|
|
196
|
+
* - `duplicate_return` - Other.
|
|
197
|
+
* - `entity_not_active` - The account's entity is not active.
|
|
198
|
+
* - `group_locked` - Your account is inactive.
|
|
199
|
+
* - `insufficient_funds` - Your account contains insufficient funds.
|
|
200
|
+
* - `misrouted_return` - Other.
|
|
201
|
+
* - `return_of_erroneous_or_reversing_debit` - Other.
|
|
202
|
+
* - `no_ach_route` - The account number that was debited does not exist.
|
|
203
|
+
* - `originator_request` - Other.
|
|
204
|
+
* - `transaction_not_allowed` - The transaction is not allowed per Increase's
|
|
205
|
+
* terms.
|
|
206
|
+
* - `user_initiated` - The user initiated the decline.
|
|
207
|
+
*/
|
|
208
|
+
reason:
|
|
209
|
+
| 'ach_route_canceled'
|
|
210
|
+
| 'ach_route_disabled'
|
|
211
|
+
| 'breaches_limit'
|
|
212
|
+
| 'credit_entry_refused_by_receiver'
|
|
213
|
+
| 'duplicate_return'
|
|
214
|
+
| 'entity_not_active'
|
|
215
|
+
| 'group_locked'
|
|
216
|
+
| 'insufficient_funds'
|
|
217
|
+
| 'misrouted_return'
|
|
218
|
+
| 'return_of_erroneous_or_reversing_debit'
|
|
219
|
+
| 'no_ach_route'
|
|
220
|
+
| 'originator_request'
|
|
221
|
+
| 'transaction_not_allowed'
|
|
222
|
+
| 'user_initiated';
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* If your transfer is returned, this will contain details of the return.
|
|
227
|
+
*/
|
|
228
|
+
export interface TransferReturn {
|
|
229
|
+
/**
|
|
230
|
+
* The reason for the transfer return
|
|
231
|
+
*
|
|
232
|
+
* - `authorization_revoked_by_customer` - The customer no longer authorizes this
|
|
233
|
+
* transaction. The Nacha return code is R07.
|
|
234
|
+
* - `payment_stopped` - The customer asked for the payment to be stopped. This
|
|
235
|
+
* reason is only allowed for debits. The Nacha return code is R08.
|
|
236
|
+
* - `customer_advised_unauthorized_improper_ineligible_or_incomplete` - The
|
|
237
|
+
* customer advises that the debit was unauthorized. The Nacha return code is
|
|
238
|
+
* R10.
|
|
239
|
+
* - `representative_payee_deceased_or_unable_to_continue_in_that_capacity` - The
|
|
240
|
+
* payee is deceased. The Nacha return code is R14.
|
|
241
|
+
* - `beneficiary_or_account_holder_deceased` - The account holder is deceased. The
|
|
242
|
+
* Nacha return code is R15.
|
|
243
|
+
* - `credit_entry_refused_by_receiver` - The customer refused a credit entry. This
|
|
244
|
+
* reason is only allowed for credits. The Nacha return code is R23.
|
|
245
|
+
* - `duplicate_entry` - The account holder identified this transaction as a
|
|
246
|
+
* duplicate. The Nacha return code is R24.
|
|
247
|
+
* - `corporate_customer_advised_not_authorized` - The corporate customer no longer
|
|
248
|
+
* authorizes this transaction. The Nacha return code is R29.
|
|
249
|
+
*/
|
|
250
|
+
reason:
|
|
251
|
+
| 'authorization_revoked_by_customer'
|
|
252
|
+
| 'payment_stopped'
|
|
253
|
+
| 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
|
|
254
|
+
| 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
|
|
255
|
+
| 'beneficiary_or_account_holder_deceased'
|
|
256
|
+
| 'credit_entry_refused_by_receiver'
|
|
257
|
+
| 'duplicate_entry'
|
|
258
|
+
| 'corporate_customer_advised_not_authorized';
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* The time at which the transfer was returned.
|
|
262
|
+
*/
|
|
263
|
+
returned_at: string;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The id of the transaction for the returned transfer.
|
|
267
|
+
*/
|
|
268
|
+
transaction_id: string;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface InboundACHTransferListParams extends PageParams {
|
|
273
|
+
/**
|
|
274
|
+
* Filter Inbound ACH Tranfers to ones belonging to the specified Account.
|
|
275
|
+
*/
|
|
276
|
+
account_id?: string;
|
|
277
|
+
|
|
278
|
+
created_at?: InboundACHTransferListParams.CreatedAt;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Filter Inbound ACH Transfers to those with the specified status.
|
|
282
|
+
*
|
|
283
|
+
* - `pending` - The Inbound ACH Transfer is awaiting action, will transition
|
|
284
|
+
* automatically if no action is taken.
|
|
285
|
+
* - `declined` - The Inbound ACH Transfer has been declined.
|
|
286
|
+
* - `accepted` - The Inbound ACH Transfer is accepted.
|
|
287
|
+
* - `returned` - The Inbound ACH Transfer has been returned.
|
|
288
|
+
*/
|
|
289
|
+
status?: 'pending' | 'declined' | 'accepted' | 'returned';
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export namespace InboundACHTransferListParams {
|
|
293
|
+
export interface CreatedAt {
|
|
294
|
+
/**
|
|
295
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
296
|
+
* timestamp.
|
|
297
|
+
*/
|
|
298
|
+
after?: string;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
302
|
+
* timestamp.
|
|
303
|
+
*/
|
|
304
|
+
before?: string;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Return results on or after this
|
|
308
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
309
|
+
*/
|
|
310
|
+
on_or_after?: string;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Return results on or before this
|
|
314
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
315
|
+
*/
|
|
316
|
+
on_or_before?: string;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export interface InboundACHTransferTransferReturnParams {
|
|
321
|
+
/**
|
|
322
|
+
* The reason why this transfer will be returned. The most usual return codes are
|
|
323
|
+
* `payment_stopped` for debits and `credit_entry_refused_by_receiver` for credits.
|
|
324
|
+
*
|
|
325
|
+
* - `authorization_revoked_by_customer` - The customer no longer authorizes this
|
|
326
|
+
* transaction. The Nacha return code is R07.
|
|
327
|
+
* - `payment_stopped` - The customer asked for the payment to be stopped. This
|
|
328
|
+
* reason is only allowed for debits. The Nacha return code is R08.
|
|
329
|
+
* - `customer_advised_unauthorized_improper_ineligible_or_incomplete` - The
|
|
330
|
+
* customer advises that the debit was unauthorized. The Nacha return code is
|
|
331
|
+
* R10.
|
|
332
|
+
* - `representative_payee_deceased_or_unable_to_continue_in_that_capacity` - The
|
|
333
|
+
* payee is deceased. The Nacha return code is R14.
|
|
334
|
+
* - `beneficiary_or_account_holder_deceased` - The account holder is deceased. The
|
|
335
|
+
* Nacha return code is R15.
|
|
336
|
+
* - `credit_entry_refused_by_receiver` - The customer refused a credit entry. This
|
|
337
|
+
* reason is only allowed for credits. The Nacha return code is R23.
|
|
338
|
+
* - `duplicate_entry` - The account holder identified this transaction as a
|
|
339
|
+
* duplicate. The Nacha return code is R24.
|
|
340
|
+
* - `corporate_customer_advised_not_authorized` - The corporate customer no longer
|
|
341
|
+
* authorizes this transaction. The Nacha return code is R29.
|
|
342
|
+
*/
|
|
343
|
+
reason:
|
|
344
|
+
| 'authorization_revoked_by_customer'
|
|
345
|
+
| 'payment_stopped'
|
|
346
|
+
| 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
|
|
347
|
+
| 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
|
|
348
|
+
| 'beneficiary_or_account_holder_deceased'
|
|
349
|
+
| 'credit_entry_refused_by_receiver'
|
|
350
|
+
| 'duplicate_entry'
|
|
351
|
+
| 'corporate_customer_advised_not_authorized';
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export namespace InboundACHTransfers {
|
|
355
|
+
export import InboundACHTransfer = API.InboundACHTransfer;
|
|
356
|
+
export type InboundACHTransfersPage = _InboundACHTransfersPage;
|
|
357
|
+
export import InboundACHTransferListParams = API.InboundACHTransferListParams;
|
|
358
|
+
export import InboundACHTransferTransferReturnParams = API.InboundACHTransferTransferReturnParams;
|
|
359
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
export * from './shared';
|
|
4
3
|
export {
|
|
5
4
|
ACHPrenotification,
|
|
6
5
|
ACHPrenotificationCreateParams,
|
|
@@ -142,12 +141,12 @@ export {
|
|
|
142
141
|
export { File, FileCreateParams, FileListParams, FilesPage, Files } from './files';
|
|
143
142
|
export { Group, Groups } from './groups';
|
|
144
143
|
export {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
} from './inbound-ach-
|
|
144
|
+
InboundACHTransfer,
|
|
145
|
+
InboundACHTransferListParams,
|
|
146
|
+
InboundACHTransferTransferReturnParams,
|
|
147
|
+
InboundACHTransfersPage,
|
|
148
|
+
InboundACHTransfers,
|
|
149
|
+
} from './inbound-ach-transfers';
|
|
151
150
|
export {
|
|
152
151
|
InboundWireDrawdownRequest,
|
|
153
152
|
InboundWireDrawdownRequestListParams,
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as Shared from './shared';
|
|
7
6
|
import * as API from './index';
|
|
8
7
|
import { Page, PageParams } from '../pagination';
|
|
9
8
|
|
|
@@ -67,14 +66,14 @@ export interface PendingTransaction {
|
|
|
67
66
|
|
|
68
67
|
/**
|
|
69
68
|
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
|
|
70
|
-
* Transaction
|
|
69
|
+
* Transaction occurred.
|
|
71
70
|
*/
|
|
72
71
|
created_at: string;
|
|
73
72
|
|
|
74
73
|
/**
|
|
75
74
|
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Pending
|
|
76
75
|
* Transaction's currency. This will match the currency on the Pending
|
|
77
|
-
*
|
|
76
|
+
* Transaction's Account.
|
|
78
77
|
*
|
|
79
78
|
* - `CAD` - Canadian Dollar (CAD)
|
|
80
79
|
* - `CHF` - Swiss Franc (CHF)
|
|
@@ -172,7 +171,7 @@ export namespace PendingTransaction {
|
|
|
172
171
|
* under the `check_transfer_instruction` object.
|
|
173
172
|
* - `inbound_funds_hold` - Inbound Funds Hold: details will be under the
|
|
174
173
|
* `inbound_funds_hold` object.
|
|
175
|
-
* - `real_time_payments_transfer_instruction` - Real
|
|
174
|
+
* - `real_time_payments_transfer_instruction` - Real-Time Payments Transfer
|
|
176
175
|
* Instruction: details will be under the
|
|
177
176
|
* `real_time_payments_transfer_instruction` object.
|
|
178
177
|
* - `wire_transfer_instruction` - Wire Transfer Instruction: details will be under
|
|
@@ -210,7 +209,7 @@ export namespace PendingTransaction {
|
|
|
210
209
|
inbound_funds_hold: Source.InboundFundsHold | null;
|
|
211
210
|
|
|
212
211
|
/**
|
|
213
|
-
* A Real
|
|
212
|
+
* A Real-Time Payments Transfer Instruction object. This field will be present in
|
|
214
213
|
* the JSON response if and only if `category` is equal to
|
|
215
214
|
* `real_time_payments_transfer_instruction`.
|
|
216
215
|
*/
|
|
@@ -440,8 +439,33 @@ export namespace PendingTransaction {
|
|
|
440
439
|
/**
|
|
441
440
|
* The method used to enter the cardholder's primary account number and card
|
|
442
441
|
* expiration date
|
|
442
|
+
*
|
|
443
|
+
* - `unknown` - Unknown
|
|
444
|
+
* - `manual` - Manual key entry
|
|
445
|
+
* - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
|
|
446
|
+
* value
|
|
447
|
+
* - `optical_code` - Optical code
|
|
448
|
+
* - `integrated_circuit_card` - Contact chip card
|
|
449
|
+
* - `contactless` - Contactless read of chip card
|
|
450
|
+
* - `credential_on_file` - Transaction initiated using a credential that has
|
|
451
|
+
* previously been stored on file
|
|
452
|
+
* - `magnetic_stripe` - Magnetic stripe read
|
|
453
|
+
* - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
|
|
454
|
+
* - `integrated_circuit_card_no_cvv` - Contact chip card, without card
|
|
455
|
+
* verification value
|
|
443
456
|
*/
|
|
444
|
-
point_of_service_entry_mode:
|
|
457
|
+
point_of_service_entry_mode:
|
|
458
|
+
| 'unknown'
|
|
459
|
+
| 'manual'
|
|
460
|
+
| 'magnetic_stripe_no_cvv'
|
|
461
|
+
| 'optical_code'
|
|
462
|
+
| 'integrated_circuit_card'
|
|
463
|
+
| 'contactless'
|
|
464
|
+
| 'credential_on_file'
|
|
465
|
+
| 'magnetic_stripe'
|
|
466
|
+
| 'contactless_magnetic_stripe'
|
|
467
|
+
| 'integrated_circuit_card_no_cvv'
|
|
468
|
+
| null;
|
|
445
469
|
}
|
|
446
470
|
}
|
|
447
471
|
}
|
|
@@ -590,7 +614,7 @@ export namespace PendingTransaction {
|
|
|
590
614
|
}
|
|
591
615
|
|
|
592
616
|
/**
|
|
593
|
-
* A Real
|
|
617
|
+
* A Real-Time Payments Transfer Instruction object. This field will be present in
|
|
594
618
|
* the JSON response if and only if `category` is equal to
|
|
595
619
|
* `real_time_payments_transfer_instruction`.
|
|
596
620
|
*/
|
|
@@ -602,7 +626,7 @@ export namespace PendingTransaction {
|
|
|
602
626
|
amount: number;
|
|
603
627
|
|
|
604
628
|
/**
|
|
605
|
-
* The identifier of the Real
|
|
629
|
+
* The identifier of the Real-Time Payments Transfer that led to this Pending
|
|
606
630
|
* Transaction.
|
|
607
631
|
*/
|
|
608
632
|
transfer_id: string;
|
|
@@ -636,6 +660,8 @@ export interface PendingTransactionListParams extends PageParams {
|
|
|
636
660
|
*/
|
|
637
661
|
account_id?: string;
|
|
638
662
|
|
|
663
|
+
category?: PendingTransactionListParams.Category;
|
|
664
|
+
|
|
639
665
|
created_at?: PendingTransactionListParams.CreatedAt;
|
|
640
666
|
|
|
641
667
|
/**
|
|
@@ -652,6 +678,24 @@ export interface PendingTransactionListParams extends PageParams {
|
|
|
652
678
|
}
|
|
653
679
|
|
|
654
680
|
export namespace PendingTransactionListParams {
|
|
681
|
+
export interface Category {
|
|
682
|
+
/**
|
|
683
|
+
* Return results whose value is in the provided list. For GET requests, this
|
|
684
|
+
* should be encoded as a comma-delimited string, such as `?in=one,two,three`.
|
|
685
|
+
*/
|
|
686
|
+
in?: Array<
|
|
687
|
+
| 'account_transfer_instruction'
|
|
688
|
+
| 'ach_transfer_instruction'
|
|
689
|
+
| 'card_authorization'
|
|
690
|
+
| 'check_deposit_instruction'
|
|
691
|
+
| 'check_transfer_instruction'
|
|
692
|
+
| 'inbound_funds_hold'
|
|
693
|
+
| 'real_time_payments_transfer_instruction'
|
|
694
|
+
| 'wire_transfer_instruction'
|
|
695
|
+
| 'other'
|
|
696
|
+
>;
|
|
697
|
+
}
|
|
698
|
+
|
|
655
699
|
export interface CreatedAt {
|
|
656
700
|
/**
|
|
657
701
|
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
|
-
import * as Shared from './shared';
|
|
6
5
|
import * as API from './index';
|
|
7
6
|
|
|
8
7
|
export class RealTimeDecisions extends APIResource {
|
|
@@ -117,6 +116,12 @@ export namespace RealTimeDecision {
|
|
|
117
116
|
*/
|
|
118
117
|
decision: 'approve' | 'decline' | null;
|
|
119
118
|
|
|
119
|
+
/**
|
|
120
|
+
* If the authorization was made via a Digital Wallet Token (such as an Apple Pay
|
|
121
|
+
* purchase), the identifier of the token that was used.
|
|
122
|
+
*/
|
|
123
|
+
digital_wallet_token_id: string | null;
|
|
124
|
+
|
|
120
125
|
/**
|
|
121
126
|
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
122
127
|
* is transacting with.
|
|
@@ -258,8 +263,33 @@ export namespace RealTimeDecision {
|
|
|
258
263
|
/**
|
|
259
264
|
* The method used to enter the cardholder's primary account number and card
|
|
260
265
|
* expiration date
|
|
266
|
+
*
|
|
267
|
+
* - `unknown` - Unknown
|
|
268
|
+
* - `manual` - Manual key entry
|
|
269
|
+
* - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
|
|
270
|
+
* value
|
|
271
|
+
* - `optical_code` - Optical code
|
|
272
|
+
* - `integrated_circuit_card` - Contact chip card
|
|
273
|
+
* - `contactless` - Contactless read of chip card
|
|
274
|
+
* - `credential_on_file` - Transaction initiated using a credential that has
|
|
275
|
+
* previously been stored on file
|
|
276
|
+
* - `magnetic_stripe` - Magnetic stripe read
|
|
277
|
+
* - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
|
|
278
|
+
* - `integrated_circuit_card_no_cvv` - Contact chip card, without card
|
|
279
|
+
* verification value
|
|
261
280
|
*/
|
|
262
|
-
point_of_service_entry_mode:
|
|
281
|
+
point_of_service_entry_mode:
|
|
282
|
+
| 'unknown'
|
|
283
|
+
| 'manual'
|
|
284
|
+
| 'magnetic_stripe_no_cvv'
|
|
285
|
+
| 'optical_code'
|
|
286
|
+
| 'integrated_circuit_card'
|
|
287
|
+
| 'contactless'
|
|
288
|
+
| 'credential_on_file'
|
|
289
|
+
| 'magnetic_stripe'
|
|
290
|
+
| 'contactless_magnetic_stripe'
|
|
291
|
+
| 'integrated_circuit_card_no_cvv'
|
|
292
|
+
| null;
|
|
263
293
|
}
|
|
264
294
|
}
|
|
265
295
|
|
|
@@ -278,7 +308,7 @@ export namespace RealTimeDecision {
|
|
|
278
308
|
category: 'initial_authorization' | 'incremental_authorization';
|
|
279
309
|
|
|
280
310
|
/**
|
|
281
|
-
* Fields specific to the
|
|
311
|
+
* Fields specific to the category `incremental_authorization`.
|
|
282
312
|
*/
|
|
283
313
|
incremental_authorization: RequestDetails.IncrementalAuthorization | null;
|
|
284
314
|
|
|
@@ -290,7 +320,7 @@ export namespace RealTimeDecision {
|
|
|
290
320
|
|
|
291
321
|
export namespace RequestDetails {
|
|
292
322
|
/**
|
|
293
|
-
* Fields specific to the
|
|
323
|
+
* Fields specific to the category `incremental_authorization`.
|
|
294
324
|
*/
|
|
295
325
|
export interface IncrementalAuthorization {
|
|
296
326
|
/**
|