increase 0.7.1 → 0.8.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 +71 -0
- package/README.md +8 -4
- package/_shims/ReadableStream.d.ts +38 -0
- package/_shims/ReadableStream.js +5 -0
- package/_shims/ReadableStream.mjs +7 -0
- package/_shims/ReadableStream.node.d.ts +6 -0
- package/_shims/ReadableStream.node.d.ts.map +1 -0
- package/_shims/ReadableStream.node.js +14 -0
- package/_shims/ReadableStream.node.js.map +1 -0
- package/_shims/ReadableStream.node.mjs +3 -0
- package/_shims/ReadableStream.node.mjs.map +1 -0
- package/_shims/fetch.js +1 -1
- package/core.d.ts +11 -10
- package/core.d.ts.map +1 -1
- package/core.js +123 -60
- package/core.js.map +1 -1
- package/core.mjs +113 -20
- package/core.mjs.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.js +12 -3
- package/error.js.map +1 -1
- package/error.mjs +12 -3
- package/error.mjs.map +1 -1
- package/index.d.mts +9 -5
- package/index.d.ts +9 -5
- package/index.d.ts.map +1 -1
- package/index.js +15 -11
- package/index.js.map +1 -1
- package/index.mjs +15 -11
- package/index.mjs.map +1 -1
- package/package.json +4 -4
- package/resources/account-numbers.d.ts.map +1 -1
- package/resources/account-statements.d.ts.map +1 -1
- package/resources/account-transfers.d.ts.map +1 -1
- package/resources/accounts.d.ts.map +1 -1
- package/resources/ach-prenotifications.d.ts.map +1 -1
- package/resources/ach-transfers.d.ts.map +1 -1
- package/resources/balance-lookups.d.ts.map +1 -1
- package/resources/bookkeeping-accounts.d.ts.map +1 -1
- package/resources/bookkeeping-entries.d.ts.map +1 -1
- package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
- package/resources/card-disputes.d.ts.map +1 -1
- package/resources/card-profiles.d.ts +17 -4
- package/resources/card-profiles.d.ts.map +1 -1
- package/resources/card-profiles.js.map +1 -1
- package/resources/card-profiles.mjs.map +1 -1
- package/resources/card-purchase-supplements.d.ts +270 -0
- package/resources/card-purchase-supplements.d.ts.map +1 -0
- package/resources/card-purchase-supplements.js +28 -0
- package/resources/card-purchase-supplements.js.map +1 -0
- package/resources/card-purchase-supplements.mjs +21 -0
- package/resources/card-purchase-supplements.mjs.map +1 -0
- package/resources/cards.d.ts.map +1 -1
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/check-transfers.d.ts +184 -98
- 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 +9 -7
- 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.map +1 -1
- package/resources/documents.d.ts.map +1 -1
- package/resources/entities/beneficial-owners.d.ts +219 -0
- package/resources/entities/beneficial-owners.d.ts.map +1 -0
- package/resources/entities/beneficial-owners.js +18 -0
- package/resources/entities/beneficial-owners.js.map +1 -0
- package/resources/entities/beneficial-owners.mjs +12 -0
- package/resources/entities/beneficial-owners.mjs.map +1 -0
- package/resources/entities/entities.d.ts +4 -0
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js +3 -0
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs +3 -0
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/index.d.ts +1 -0
- package/resources/entities/index.d.ts.map +1 -1
- package/resources/entities/index.js +8 -0
- package/resources/entities/index.js.map +1 -1
- package/resources/entities/index.mjs +1 -0
- package/resources/entities/index.mjs.map +1 -1
- package/resources/entities/supplemental-documents.d.ts.map +1 -1
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/events.d.ts.map +1 -1
- package/resources/exports.d.ts.map +1 -1
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/groups.d.ts.map +1 -1
- package/resources/inbound-ach-transfer-returns.d.ts.map +1 -1
- package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/index.d.ts +6 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +18 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/limits.d.ts +2 -2
- package/resources/limits.d.ts.map +1 -1
- package/resources/oauth-connections.d.ts.map +1 -1
- package/resources/pending-transactions.d.ts +11 -7
- 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.map +1 -1
- package/resources/real-time-decisions.d.ts +49 -7
- 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.map +1 -1
- package/resources/routing-numbers.d.ts.map +1 -1
- package/resources/shared.d.ts +2 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/simulations/account-statements.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +952 -26
- 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.map +1 -1
- package/resources/simulations/card-refunds.d.ts.map +1 -1
- package/resources/simulations/cards.d.ts +20 -14
- 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/digital-wallet-token-requests.d.ts.map +1 -1
- package/resources/simulations/documents.d.ts.map +1 -1
- package/resources/simulations/inbound-funds-holds.d.ts +4 -0
- package/resources/simulations/inbound-funds-holds.d.ts.map +1 -1
- package/resources/simulations/inbound-funds-holds.js.map +1 -1
- package/resources/simulations/inbound-funds-holds.mjs.map +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/simulations/interest-payments.d.ts +951 -19
- 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.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.ts +952 -26
- 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/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +943 -19
- 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 +943 -20
- 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.map +1 -1
- package/resources/wire-transfers.d.ts.map +1 -1
- package/src/_shims/ReadableStream.d.ts +38 -0
- package/src/_shims/ReadableStream.js +5 -0
- package/src/_shims/ReadableStream.mjs +7 -0
- package/src/_shims/ReadableStream.node.ts +6 -0
- package/src/_shims/fetch.deno.ts +23 -0
- package/src/_shims/fetch.js +1 -1
- package/src/_shims/formdata.deno.ts +16 -0
- package/src/core.ts +130 -21
- package/src/error.ts +11 -1
- package/src/index.ts +23 -16
- package/src/resources/account-numbers.ts +1 -1
- package/src/resources/account-statements.ts +1 -1
- package/src/resources/account-transfers.ts +1 -1
- package/src/resources/accounts.ts +1 -1
- package/src/resources/ach-prenotifications.ts +1 -1
- package/src/resources/ach-transfers.ts +1 -1
- package/src/resources/balance-lookups.ts +1 -1
- package/src/resources/bookkeeping-accounts.ts +1 -1
- package/src/resources/bookkeeping-entries.ts +1 -1
- package/src/resources/bookkeeping-entry-sets.ts +1 -1
- package/src/resources/card-disputes.ts +1 -1
- package/src/resources/card-profiles.ts +19 -5
- package/src/resources/card-purchase-supplements.ts +331 -0
- package/src/resources/cards.ts +1 -1
- package/src/resources/check-deposits.ts +1 -1
- package/src/resources/check-transfers.ts +208 -113
- package/src/resources/declined-transactions.ts +11 -9
- package/src/resources/digital-wallet-tokens.ts +1 -1
- package/src/resources/documents.ts +1 -1
- package/src/resources/entities/beneficial-owners.ts +255 -0
- package/src/resources/entities/entities.ts +6 -1
- package/src/resources/entities/index.ts +1 -0
- package/src/resources/entities/supplemental-documents.ts +1 -1
- package/src/resources/event-subscriptions.ts +1 -1
- package/src/resources/events.ts +1 -1
- package/src/resources/exports.ts +1 -1
- package/src/resources/external-accounts.ts +1 -1
- package/src/resources/files.ts +1 -1
- package/src/resources/groups.ts +1 -1
- package/src/resources/inbound-ach-transfer-returns.ts +1 -1
- package/src/resources/inbound-wire-drawdown-requests.ts +1 -1
- package/src/resources/index.ts +6 -0
- package/src/resources/limits.ts +3 -3
- package/src/resources/oauth-connections.ts +1 -1
- package/src/resources/pending-transactions.ts +14 -9
- package/src/resources/programs.ts +1 -1
- package/src/resources/real-time-decisions.ts +57 -9
- package/src/resources/real-time-payments-transfers.ts +1 -1
- package/src/resources/routing-numbers.ts +1 -1
- package/src/resources/shared.ts +2 -0
- package/src/resources/simulations/account-statements.ts +1 -1
- package/src/resources/simulations/ach-transfers.ts +1091 -30
- package/src/resources/simulations/card-disputes.ts +1 -1
- package/src/resources/simulations/card-refunds.ts +1 -1
- package/src/resources/simulations/cards.ts +24 -17
- 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 +6 -1
- package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
- package/src/resources/simulations/interest-payments.ts +1091 -22
- package/src/resources/simulations/programs.ts +1 -1
- package/src/resources/simulations/real-time-payments-transfers.ts +1091 -30
- package/src/resources/simulations/simulations.ts +1 -1
- package/src/resources/simulations/wire-transfers.ts +1081 -22
- package/src/resources/transactions.ts +1081 -23
- package/src/resources/wire-drawdown-requests.ts +1 -1
- package/src/resources/wire-transfers.ts +1 -1
- package/src/uploads.ts +7 -6
- package/src/version.ts +1 -1
- package/uploads.d.ts +5 -4
- package/uploads.d.ts.map +1 -1
- package/uploads.js +2 -2
- package/uploads.js.map +1 -1
- package/uploads.mjs +2 -2
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class CheckTransfers extends APIResource {
|
|
@@ -89,31 +89,6 @@ export interface CheckTransfer {
|
|
|
89
89
|
*/
|
|
90
90
|
account_number: string;
|
|
91
91
|
|
|
92
|
-
/**
|
|
93
|
-
* The city of the check's destination.
|
|
94
|
-
*/
|
|
95
|
-
address_city: string | null;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* The street address of the check's destination.
|
|
99
|
-
*/
|
|
100
|
-
address_line1: string | null;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* The second line of the address of the check's destination.
|
|
104
|
-
*/
|
|
105
|
-
address_line2: string | null;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* The state of the check's destination.
|
|
109
|
-
*/
|
|
110
|
-
address_state: string | null;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* The postal code of the check's destination.
|
|
114
|
-
*/
|
|
115
|
-
address_zip: string | null;
|
|
116
|
-
|
|
117
92
|
/**
|
|
118
93
|
* The transfer amount in USD cents.
|
|
119
94
|
*/
|
|
@@ -161,20 +136,20 @@ export interface CheckTransfer {
|
|
|
161
136
|
deposit: CheckTransfer.Deposit | null;
|
|
162
137
|
|
|
163
138
|
/**
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
* The descriptor that will be printed on the memo field on the check.
|
|
139
|
+
* Whether Increase will print and mail the check or if you will do it yourself.
|
|
140
|
+
*
|
|
141
|
+
* - `physical_check` - Increase will print and mail a physical check.
|
|
142
|
+
* - `third_party` - Increase will not print a check; you are responsible for
|
|
143
|
+
* printing and mailing a check with the provided account number, routing number,
|
|
144
|
+
* check number, and amount.
|
|
171
145
|
*/
|
|
172
|
-
|
|
146
|
+
fulfillment_method: 'physical_check' | 'third_party';
|
|
173
147
|
|
|
174
148
|
/**
|
|
175
|
-
*
|
|
149
|
+
* If the check has been mailed by Increase, this will contain details of the
|
|
150
|
+
* shipment.
|
|
176
151
|
*/
|
|
177
|
-
|
|
152
|
+
mailing: CheckTransfer.Mailing | null;
|
|
178
153
|
|
|
179
154
|
/**
|
|
180
155
|
* The identifier of the Pending Transaction associated with the check's creation.
|
|
@@ -182,14 +157,10 @@ export interface CheckTransfer {
|
|
|
182
157
|
pending_transaction_id: string | null;
|
|
183
158
|
|
|
184
159
|
/**
|
|
185
|
-
*
|
|
160
|
+
* Details relating to the physical check that Increase will print and mail. Will
|
|
161
|
+
* be present if and only if `fulfillment_method` is equal to `physical_check`.
|
|
186
162
|
*/
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* The return address to be printed on the check.
|
|
191
|
-
*/
|
|
192
|
-
return_address: CheckTransfer.ReturnAddress | null;
|
|
163
|
+
physical_check: CheckTransfer.PhysicalCheck | null;
|
|
193
164
|
|
|
194
165
|
/**
|
|
195
166
|
* The routing number printed on the check.
|
|
@@ -323,38 +294,118 @@ export namespace CheckTransfer {
|
|
|
323
294
|
}
|
|
324
295
|
|
|
325
296
|
/**
|
|
326
|
-
*
|
|
297
|
+
* If the check has been mailed by Increase, this will contain details of the
|
|
298
|
+
* shipment.
|
|
299
|
+
*/
|
|
300
|
+
export interface Mailing {
|
|
301
|
+
/**
|
|
302
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
303
|
+
* the check was mailed.
|
|
304
|
+
*/
|
|
305
|
+
mailed_at: string;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Details relating to the physical check that Increase will print and mail. Will
|
|
310
|
+
* be present if and only if `fulfillment_method` is equal to `physical_check`.
|
|
327
311
|
*/
|
|
328
|
-
export interface
|
|
312
|
+
export interface PhysicalCheck {
|
|
313
|
+
/**
|
|
314
|
+
* Details for where Increase will mail the check.
|
|
315
|
+
*/
|
|
316
|
+
mailing_address: PhysicalCheck.MailingAddress;
|
|
317
|
+
|
|
329
318
|
/**
|
|
330
|
-
* The
|
|
319
|
+
* The descriptor that will be printed on the memo field on the check.
|
|
331
320
|
*/
|
|
332
|
-
|
|
321
|
+
memo: string | null;
|
|
333
322
|
|
|
334
323
|
/**
|
|
335
|
-
* The
|
|
324
|
+
* The descriptor that will be printed on the letter included with the check.
|
|
336
325
|
*/
|
|
337
|
-
|
|
326
|
+
note: string | null;
|
|
338
327
|
|
|
339
328
|
/**
|
|
340
|
-
* The
|
|
329
|
+
* The name that will be printed on the check.
|
|
341
330
|
*/
|
|
342
|
-
|
|
331
|
+
recipient_name: string;
|
|
343
332
|
|
|
344
333
|
/**
|
|
345
|
-
* The
|
|
334
|
+
* The return address to be printed on the check.
|
|
346
335
|
*/
|
|
347
|
-
|
|
336
|
+
return_address: PhysicalCheck.ReturnAddress | null;
|
|
337
|
+
}
|
|
348
338
|
|
|
339
|
+
export namespace PhysicalCheck {
|
|
349
340
|
/**
|
|
350
|
-
*
|
|
341
|
+
* Details for where Increase will mail the check.
|
|
351
342
|
*/
|
|
352
|
-
|
|
343
|
+
export interface MailingAddress {
|
|
344
|
+
/**
|
|
345
|
+
* The city of the check's destination.
|
|
346
|
+
*/
|
|
347
|
+
city: string | null;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* The street address of the check's destination.
|
|
351
|
+
*/
|
|
352
|
+
line1: string | null;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* The second line of the address of the check's destination.
|
|
356
|
+
*/
|
|
357
|
+
line2: string | null;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* The name component of the check's mailing address.
|
|
361
|
+
*/
|
|
362
|
+
name: string | null;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* The postal code of the check's destination.
|
|
366
|
+
*/
|
|
367
|
+
postal_code: string | null;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* The state of the check's destination.
|
|
371
|
+
*/
|
|
372
|
+
state: string | null;
|
|
373
|
+
}
|
|
353
374
|
|
|
354
375
|
/**
|
|
355
|
-
* The
|
|
376
|
+
* The return address to be printed on the check.
|
|
356
377
|
*/
|
|
357
|
-
|
|
378
|
+
export interface ReturnAddress {
|
|
379
|
+
/**
|
|
380
|
+
* The city of the check's destination.
|
|
381
|
+
*/
|
|
382
|
+
city: string | null;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* The street address of the check's destination.
|
|
386
|
+
*/
|
|
387
|
+
line1: string | null;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* The second line of the address of the check's destination.
|
|
391
|
+
*/
|
|
392
|
+
line2: string | null;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* The name component of the check's return address.
|
|
396
|
+
*/
|
|
397
|
+
name: string | null;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* The postal code of the check's destination.
|
|
401
|
+
*/
|
|
402
|
+
postal_code: string | null;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* The state of the check's destination.
|
|
406
|
+
*/
|
|
407
|
+
state: string | null;
|
|
408
|
+
}
|
|
358
409
|
}
|
|
359
410
|
|
|
360
411
|
/**
|
|
@@ -366,9 +417,11 @@ export namespace CheckTransfer {
|
|
|
366
417
|
* The reason why this transfer was stopped.
|
|
367
418
|
*
|
|
368
419
|
* - `mail_delivery_failed` - The check could not be delivered.
|
|
420
|
+
* - `rejected_by_increase` - The check was cancelled by an Increase operator who
|
|
421
|
+
* will provide details out-of-band.
|
|
369
422
|
* - `unknown` - The check was stopped for another reason.
|
|
370
423
|
*/
|
|
371
|
-
reason: 'mail_delivery_failed' | 'unknown';
|
|
424
|
+
reason: 'mail_delivery_failed' | 'rejected_by_increase' | 'unknown';
|
|
372
425
|
|
|
373
426
|
/**
|
|
374
427
|
* The time the stop-payment was requested.
|
|
@@ -404,62 +457,33 @@ export interface CheckTransferCreateParams {
|
|
|
404
457
|
*/
|
|
405
458
|
account_id: string;
|
|
406
459
|
|
|
407
|
-
/**
|
|
408
|
-
* The city of the check's destination.
|
|
409
|
-
*/
|
|
410
|
-
address_city: string;
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* The street address of the check's destination.
|
|
414
|
-
*/
|
|
415
|
-
address_line1: string;
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* The state of the check's destination.
|
|
419
|
-
*/
|
|
420
|
-
address_state: string;
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* The postal code of the check's destination.
|
|
424
|
-
*/
|
|
425
|
-
address_zip: string;
|
|
426
|
-
|
|
427
460
|
/**
|
|
428
461
|
* The transfer amount in cents.
|
|
429
462
|
*/
|
|
430
463
|
amount: number;
|
|
431
464
|
|
|
432
465
|
/**
|
|
433
|
-
*
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
*
|
|
439
|
-
*/
|
|
440
|
-
recipient_name: string;
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* The second line of the address of the check's destination.
|
|
466
|
+
* Whether Increase will print and mail the check or if you will do it yourself.
|
|
467
|
+
*
|
|
468
|
+
* - `physical_check` - Increase will print and mail a physical check.
|
|
469
|
+
* - `third_party` - Increase will not print a check; you are responsible for
|
|
470
|
+
* printing and mailing a check with the provided account number, routing number,
|
|
471
|
+
* check number, and amount.
|
|
444
472
|
*/
|
|
445
|
-
|
|
473
|
+
fulfillment_method?: 'physical_check' | 'third_party';
|
|
446
474
|
|
|
447
475
|
/**
|
|
448
|
-
*
|
|
476
|
+
* Details relating to the physical check that Increase will print and mail. This
|
|
477
|
+
* is required if `fulfillment_method` is equal to `physical_check`. It must not be
|
|
478
|
+
* included if any other `fulfillment_method` is provided.
|
|
449
479
|
*/
|
|
450
|
-
|
|
480
|
+
physical_check?: CheckTransferCreateParams.PhysicalCheck;
|
|
451
481
|
|
|
452
482
|
/**
|
|
453
483
|
* Whether the transfer requires explicit approval via the dashboard or API.
|
|
454
484
|
*/
|
|
455
485
|
require_approval?: boolean;
|
|
456
486
|
|
|
457
|
-
/**
|
|
458
|
-
* The return address to be printed on the check. If omitted this will default to
|
|
459
|
-
* the address of the Entity of the Account used to make the Check Transfer.
|
|
460
|
-
*/
|
|
461
|
-
return_address?: CheckTransferCreateParams.ReturnAddress;
|
|
462
|
-
|
|
463
487
|
/**
|
|
464
488
|
* The identifier of the Account Number from which to send the transfer and print
|
|
465
489
|
* on the check.
|
|
@@ -476,39 +500,110 @@ export interface CheckTransferCreateParams {
|
|
|
476
500
|
|
|
477
501
|
export namespace CheckTransferCreateParams {
|
|
478
502
|
/**
|
|
479
|
-
*
|
|
480
|
-
*
|
|
503
|
+
* Details relating to the physical check that Increase will print and mail. This
|
|
504
|
+
* is required if `fulfillment_method` is equal to `physical_check`. It must not be
|
|
505
|
+
* included if any other `fulfillment_method` is provided.
|
|
481
506
|
*/
|
|
482
|
-
export interface
|
|
507
|
+
export interface PhysicalCheck {
|
|
508
|
+
/**
|
|
509
|
+
* Details for where Increase will mail the check.
|
|
510
|
+
*/
|
|
511
|
+
mailing_address: PhysicalCheck.MailingAddress;
|
|
512
|
+
|
|
483
513
|
/**
|
|
484
|
-
* The
|
|
514
|
+
* The descriptor that will be printed on the memo field on the check.
|
|
485
515
|
*/
|
|
486
|
-
|
|
516
|
+
memo: string;
|
|
487
517
|
|
|
488
518
|
/**
|
|
489
|
-
* The
|
|
519
|
+
* The name that will be printed on the check in the 'To:' field.
|
|
490
520
|
*/
|
|
491
|
-
|
|
521
|
+
recipient_name: string;
|
|
492
522
|
|
|
493
523
|
/**
|
|
494
|
-
* The
|
|
524
|
+
* The descriptor that will be printed on the letter included with the check.
|
|
495
525
|
*/
|
|
496
|
-
|
|
526
|
+
note?: string;
|
|
497
527
|
|
|
498
528
|
/**
|
|
499
|
-
* The
|
|
529
|
+
* The return address to be printed on the check. If omitted this will default to
|
|
530
|
+
* the address of the Entity of the Account used to make the Check Transfer.
|
|
500
531
|
*/
|
|
501
|
-
|
|
532
|
+
return_address?: PhysicalCheck.ReturnAddress;
|
|
533
|
+
}
|
|
502
534
|
|
|
535
|
+
export namespace PhysicalCheck {
|
|
503
536
|
/**
|
|
504
|
-
*
|
|
537
|
+
* Details for where Increase will mail the check.
|
|
505
538
|
*/
|
|
506
|
-
|
|
539
|
+
export interface MailingAddress {
|
|
540
|
+
/**
|
|
541
|
+
* The city component of the check's destination address.
|
|
542
|
+
*/
|
|
543
|
+
city: string;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* The first line of the address component of the check's destination address.
|
|
547
|
+
*/
|
|
548
|
+
line1: string;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* The postal code component of the check's destination address.
|
|
552
|
+
*/
|
|
553
|
+
postal_code: string;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* The US state component of the check's destination address.
|
|
557
|
+
*/
|
|
558
|
+
state: string;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* The second line of the address component of the check's destination address.
|
|
562
|
+
*/
|
|
563
|
+
line2?: string;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* The name component of the check's destination address. Defaults to the provided
|
|
567
|
+
* `recipient_name` parameter.
|
|
568
|
+
*/
|
|
569
|
+
name?: string;
|
|
570
|
+
}
|
|
507
571
|
|
|
508
572
|
/**
|
|
509
|
-
* The
|
|
573
|
+
* The return address to be printed on the check. If omitted this will default to
|
|
574
|
+
* the address of the Entity of the Account used to make the Check Transfer.
|
|
510
575
|
*/
|
|
511
|
-
|
|
576
|
+
export interface ReturnAddress {
|
|
577
|
+
/**
|
|
578
|
+
* The city of the return address.
|
|
579
|
+
*/
|
|
580
|
+
city: string;
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* The first line of the return address.
|
|
584
|
+
*/
|
|
585
|
+
line1: string;
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* The name of the return address.
|
|
589
|
+
*/
|
|
590
|
+
name: string;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* The postal code of the return address.
|
|
594
|
+
*/
|
|
595
|
+
postal_code: string;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* The US state of the return address.
|
|
599
|
+
*/
|
|
600
|
+
state: string;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* The second line of the return address.
|
|
604
|
+
*/
|
|
605
|
+
line2?: string;
|
|
606
|
+
}
|
|
512
607
|
}
|
|
513
608
|
}
|
|
514
609
|
|
|
@@ -4,7 +4,7 @@ import * as Core from '../core';
|
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
6
|
import * as Shared from './shared';
|
|
7
|
-
import * as API from '
|
|
7
|
+
import * as API from './index';
|
|
8
8
|
import { Page, PageParams } from '../pagination';
|
|
9
9
|
|
|
10
10
|
export class DeclinedTransactions extends APIResource {
|
|
@@ -228,6 +228,7 @@ export namespace DeclinedTransaction {
|
|
|
228
228
|
* - `group_locked` - Your account is inactive.
|
|
229
229
|
* - `insufficient_funds` - Your account contains insufficient funds.
|
|
230
230
|
* - `misrouted_return` - Other.
|
|
231
|
+
* - `return_of_erroneous_or_reversing_debit` - Other.
|
|
231
232
|
* - `no_ach_route` - The account number that was debited does not exist.
|
|
232
233
|
* - `originator_request` - Other.
|
|
233
234
|
* - `transaction_not_allowed` - The transaction is not allowed per Increase's
|
|
@@ -243,6 +244,7 @@ export namespace DeclinedTransaction {
|
|
|
243
244
|
| 'group_locked'
|
|
244
245
|
| 'insufficient_funds'
|
|
245
246
|
| 'misrouted_return'
|
|
247
|
+
| 'return_of_erroneous_or_reversing_debit'
|
|
246
248
|
| 'no_ach_route'
|
|
247
249
|
| 'originator_request'
|
|
248
250
|
| 'transaction_not_allowed';
|
|
@@ -316,13 +318,6 @@ export namespace DeclinedTransaction {
|
|
|
316
318
|
*/
|
|
317
319
|
merchant_state: string | null;
|
|
318
320
|
|
|
319
|
-
/**
|
|
320
|
-
* The payment network used to process this card authorization
|
|
321
|
-
*
|
|
322
|
-
* - `visa` - Visa
|
|
323
|
-
*/
|
|
324
|
-
network: 'visa';
|
|
325
|
-
|
|
326
321
|
/**
|
|
327
322
|
* Fields specific to the `network`
|
|
328
323
|
*/
|
|
@@ -384,10 +379,17 @@ export namespace DeclinedTransaction {
|
|
|
384
379
|
* Fields specific to the `network`
|
|
385
380
|
*/
|
|
386
381
|
export interface NetworkDetails {
|
|
382
|
+
/**
|
|
383
|
+
* The payment network used to process this card authorization
|
|
384
|
+
*
|
|
385
|
+
* - `visa` - Visa
|
|
386
|
+
*/
|
|
387
|
+
category: 'visa';
|
|
388
|
+
|
|
387
389
|
/**
|
|
388
390
|
* Fields specific to the `visa` network
|
|
389
391
|
*/
|
|
390
|
-
visa: NetworkDetails.Visa;
|
|
392
|
+
visa: NetworkDetails.Visa | null;
|
|
391
393
|
}
|
|
392
394
|
|
|
393
395
|
export namespace NetworkDetails {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class DigitalWalletTokens extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class Documents extends APIResource {
|