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.
Files changed (231) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +8 -4
  3. package/_shims/ReadableStream.d.ts +38 -0
  4. package/_shims/ReadableStream.js +5 -0
  5. package/_shims/ReadableStream.mjs +7 -0
  6. package/_shims/ReadableStream.node.d.ts +6 -0
  7. package/_shims/ReadableStream.node.d.ts.map +1 -0
  8. package/_shims/ReadableStream.node.js +14 -0
  9. package/_shims/ReadableStream.node.js.map +1 -0
  10. package/_shims/ReadableStream.node.mjs +3 -0
  11. package/_shims/ReadableStream.node.mjs.map +1 -0
  12. package/_shims/fetch.js +1 -1
  13. package/core.d.ts +11 -10
  14. package/core.d.ts.map +1 -1
  15. package/core.js +123 -60
  16. package/core.js.map +1 -1
  17. package/core.mjs +113 -20
  18. package/core.mjs.map +1 -1
  19. package/error.d.ts +1 -0
  20. package/error.d.ts.map +1 -1
  21. package/error.js +12 -3
  22. package/error.js.map +1 -1
  23. package/error.mjs +12 -3
  24. package/error.mjs.map +1 -1
  25. package/index.d.mts +9 -5
  26. package/index.d.ts +9 -5
  27. package/index.d.ts.map +1 -1
  28. package/index.js +15 -11
  29. package/index.js.map +1 -1
  30. package/index.mjs +15 -11
  31. package/index.mjs.map +1 -1
  32. package/package.json +4 -4
  33. package/resources/account-numbers.d.ts.map +1 -1
  34. package/resources/account-statements.d.ts.map +1 -1
  35. package/resources/account-transfers.d.ts.map +1 -1
  36. package/resources/accounts.d.ts.map +1 -1
  37. package/resources/ach-prenotifications.d.ts.map +1 -1
  38. package/resources/ach-transfers.d.ts.map +1 -1
  39. package/resources/balance-lookups.d.ts.map +1 -1
  40. package/resources/bookkeeping-accounts.d.ts.map +1 -1
  41. package/resources/bookkeeping-entries.d.ts.map +1 -1
  42. package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  43. package/resources/card-disputes.d.ts.map +1 -1
  44. package/resources/card-profiles.d.ts +17 -4
  45. package/resources/card-profiles.d.ts.map +1 -1
  46. package/resources/card-profiles.js.map +1 -1
  47. package/resources/card-profiles.mjs.map +1 -1
  48. package/resources/card-purchase-supplements.d.ts +270 -0
  49. package/resources/card-purchase-supplements.d.ts.map +1 -0
  50. package/resources/card-purchase-supplements.js +28 -0
  51. package/resources/card-purchase-supplements.js.map +1 -0
  52. package/resources/card-purchase-supplements.mjs +21 -0
  53. package/resources/card-purchase-supplements.mjs.map +1 -0
  54. package/resources/cards.d.ts.map +1 -1
  55. package/resources/check-deposits.d.ts.map +1 -1
  56. package/resources/check-transfers.d.ts +184 -98
  57. package/resources/check-transfers.d.ts.map +1 -1
  58. package/resources/check-transfers.js.map +1 -1
  59. package/resources/check-transfers.mjs.map +1 -1
  60. package/resources/declined-transactions.d.ts +9 -7
  61. package/resources/declined-transactions.d.ts.map +1 -1
  62. package/resources/declined-transactions.js.map +1 -1
  63. package/resources/declined-transactions.mjs.map +1 -1
  64. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  65. package/resources/documents.d.ts.map +1 -1
  66. package/resources/entities/beneficial-owners.d.ts +219 -0
  67. package/resources/entities/beneficial-owners.d.ts.map +1 -0
  68. package/resources/entities/beneficial-owners.js +18 -0
  69. package/resources/entities/beneficial-owners.js.map +1 -0
  70. package/resources/entities/beneficial-owners.mjs +12 -0
  71. package/resources/entities/beneficial-owners.mjs.map +1 -0
  72. package/resources/entities/entities.d.ts +4 -0
  73. package/resources/entities/entities.d.ts.map +1 -1
  74. package/resources/entities/entities.js +3 -0
  75. package/resources/entities/entities.js.map +1 -1
  76. package/resources/entities/entities.mjs +3 -0
  77. package/resources/entities/entities.mjs.map +1 -1
  78. package/resources/entities/index.d.ts +1 -0
  79. package/resources/entities/index.d.ts.map +1 -1
  80. package/resources/entities/index.js +8 -0
  81. package/resources/entities/index.js.map +1 -1
  82. package/resources/entities/index.mjs +1 -0
  83. package/resources/entities/index.mjs.map +1 -1
  84. package/resources/entities/supplemental-documents.d.ts.map +1 -1
  85. package/resources/event-subscriptions.d.ts.map +1 -1
  86. package/resources/events.d.ts.map +1 -1
  87. package/resources/exports.d.ts.map +1 -1
  88. package/resources/external-accounts.d.ts.map +1 -1
  89. package/resources/files.d.ts.map +1 -1
  90. package/resources/groups.d.ts.map +1 -1
  91. package/resources/inbound-ach-transfer-returns.d.ts.map +1 -1
  92. package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
  93. package/resources/index.d.ts +6 -0
  94. package/resources/index.d.ts.map +1 -1
  95. package/resources/index.js +18 -3
  96. package/resources/index.js.map +1 -1
  97. package/resources/index.mjs +1 -0
  98. package/resources/index.mjs.map +1 -1
  99. package/resources/limits.d.ts +2 -2
  100. package/resources/limits.d.ts.map +1 -1
  101. package/resources/oauth-connections.d.ts.map +1 -1
  102. package/resources/pending-transactions.d.ts +11 -7
  103. package/resources/pending-transactions.d.ts.map +1 -1
  104. package/resources/pending-transactions.js.map +1 -1
  105. package/resources/pending-transactions.mjs.map +1 -1
  106. package/resources/programs.d.ts.map +1 -1
  107. package/resources/real-time-decisions.d.ts +49 -7
  108. package/resources/real-time-decisions.d.ts.map +1 -1
  109. package/resources/real-time-decisions.js.map +1 -1
  110. package/resources/real-time-decisions.mjs.map +1 -1
  111. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  112. package/resources/routing-numbers.d.ts.map +1 -1
  113. package/resources/shared.d.ts +2 -0
  114. package/resources/shared.d.ts.map +1 -1
  115. package/resources/simulations/account-statements.d.ts.map +1 -1
  116. package/resources/simulations/ach-transfers.d.ts +952 -26
  117. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  118. package/resources/simulations/ach-transfers.js.map +1 -1
  119. package/resources/simulations/ach-transfers.mjs.map +1 -1
  120. package/resources/simulations/card-disputes.d.ts.map +1 -1
  121. package/resources/simulations/card-refunds.d.ts.map +1 -1
  122. package/resources/simulations/cards.d.ts +20 -14
  123. package/resources/simulations/cards.d.ts.map +1 -1
  124. package/resources/simulations/cards.js.map +1 -1
  125. package/resources/simulations/cards.mjs.map +1 -1
  126. package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
  127. package/resources/simulations/documents.d.ts.map +1 -1
  128. package/resources/simulations/inbound-funds-holds.d.ts +4 -0
  129. package/resources/simulations/inbound-funds-holds.d.ts.map +1 -1
  130. package/resources/simulations/inbound-funds-holds.js.map +1 -1
  131. package/resources/simulations/inbound-funds-holds.mjs.map +1 -1
  132. package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
  133. package/resources/simulations/interest-payments.d.ts +951 -19
  134. package/resources/simulations/interest-payments.d.ts.map +1 -1
  135. package/resources/simulations/interest-payments.js.map +1 -1
  136. package/resources/simulations/interest-payments.mjs.map +1 -1
  137. package/resources/simulations/programs.d.ts.map +1 -1
  138. package/resources/simulations/real-time-payments-transfers.d.ts +952 -26
  139. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  140. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  141. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  142. package/resources/simulations/simulations.d.ts.map +1 -1
  143. package/resources/simulations/simulations.js.map +1 -1
  144. package/resources/simulations/wire-transfers.d.ts +943 -19
  145. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  146. package/resources/simulations/wire-transfers.js.map +1 -1
  147. package/resources/simulations/wire-transfers.mjs.map +1 -1
  148. package/resources/transactions.d.ts +943 -20
  149. package/resources/transactions.d.ts.map +1 -1
  150. package/resources/transactions.js.map +1 -1
  151. package/resources/transactions.mjs.map +1 -1
  152. package/resources/wire-drawdown-requests.d.ts.map +1 -1
  153. package/resources/wire-transfers.d.ts.map +1 -1
  154. package/src/_shims/ReadableStream.d.ts +38 -0
  155. package/src/_shims/ReadableStream.js +5 -0
  156. package/src/_shims/ReadableStream.mjs +7 -0
  157. package/src/_shims/ReadableStream.node.ts +6 -0
  158. package/src/_shims/fetch.deno.ts +23 -0
  159. package/src/_shims/fetch.js +1 -1
  160. package/src/_shims/formdata.deno.ts +16 -0
  161. package/src/core.ts +130 -21
  162. package/src/error.ts +11 -1
  163. package/src/index.ts +23 -16
  164. package/src/resources/account-numbers.ts +1 -1
  165. package/src/resources/account-statements.ts +1 -1
  166. package/src/resources/account-transfers.ts +1 -1
  167. package/src/resources/accounts.ts +1 -1
  168. package/src/resources/ach-prenotifications.ts +1 -1
  169. package/src/resources/ach-transfers.ts +1 -1
  170. package/src/resources/balance-lookups.ts +1 -1
  171. package/src/resources/bookkeeping-accounts.ts +1 -1
  172. package/src/resources/bookkeeping-entries.ts +1 -1
  173. package/src/resources/bookkeeping-entry-sets.ts +1 -1
  174. package/src/resources/card-disputes.ts +1 -1
  175. package/src/resources/card-profiles.ts +19 -5
  176. package/src/resources/card-purchase-supplements.ts +331 -0
  177. package/src/resources/cards.ts +1 -1
  178. package/src/resources/check-deposits.ts +1 -1
  179. package/src/resources/check-transfers.ts +208 -113
  180. package/src/resources/declined-transactions.ts +11 -9
  181. package/src/resources/digital-wallet-tokens.ts +1 -1
  182. package/src/resources/documents.ts +1 -1
  183. package/src/resources/entities/beneficial-owners.ts +255 -0
  184. package/src/resources/entities/entities.ts +6 -1
  185. package/src/resources/entities/index.ts +1 -0
  186. package/src/resources/entities/supplemental-documents.ts +1 -1
  187. package/src/resources/event-subscriptions.ts +1 -1
  188. package/src/resources/events.ts +1 -1
  189. package/src/resources/exports.ts +1 -1
  190. package/src/resources/external-accounts.ts +1 -1
  191. package/src/resources/files.ts +1 -1
  192. package/src/resources/groups.ts +1 -1
  193. package/src/resources/inbound-ach-transfer-returns.ts +1 -1
  194. package/src/resources/inbound-wire-drawdown-requests.ts +1 -1
  195. package/src/resources/index.ts +6 -0
  196. package/src/resources/limits.ts +3 -3
  197. package/src/resources/oauth-connections.ts +1 -1
  198. package/src/resources/pending-transactions.ts +14 -9
  199. package/src/resources/programs.ts +1 -1
  200. package/src/resources/real-time-decisions.ts +57 -9
  201. package/src/resources/real-time-payments-transfers.ts +1 -1
  202. package/src/resources/routing-numbers.ts +1 -1
  203. package/src/resources/shared.ts +2 -0
  204. package/src/resources/simulations/account-statements.ts +1 -1
  205. package/src/resources/simulations/ach-transfers.ts +1091 -30
  206. package/src/resources/simulations/card-disputes.ts +1 -1
  207. package/src/resources/simulations/card-refunds.ts +1 -1
  208. package/src/resources/simulations/cards.ts +24 -17
  209. package/src/resources/simulations/digital-wallet-token-requests.ts +1 -1
  210. package/src/resources/simulations/documents.ts +1 -1
  211. package/src/resources/simulations/inbound-funds-holds.ts +6 -1
  212. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
  213. package/src/resources/simulations/interest-payments.ts +1091 -22
  214. package/src/resources/simulations/programs.ts +1 -1
  215. package/src/resources/simulations/real-time-payments-transfers.ts +1091 -30
  216. package/src/resources/simulations/simulations.ts +1 -1
  217. package/src/resources/simulations/wire-transfers.ts +1081 -22
  218. package/src/resources/transactions.ts +1081 -23
  219. package/src/resources/wire-drawdown-requests.ts +1 -1
  220. package/src/resources/wire-transfers.ts +1 -1
  221. package/src/uploads.ts +7 -6
  222. package/src/version.ts +1 -1
  223. package/uploads.d.ts +5 -4
  224. package/uploads.d.ts.map +1 -1
  225. package/uploads.js +2 -2
  226. package/uploads.js.map +1 -1
  227. package/uploads.mjs +2 -2
  228. package/uploads.mjs.map +1 -1
  229. package/version.d.ts +1 -1
  230. package/version.js +1 -1
  231. 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
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
165
- * the check was mailed.
166
- */
167
- mailed_at: string | null;
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
- message: string | null;
146
+ fulfillment_method: 'physical_check' | 'third_party';
173
147
 
174
148
  /**
175
- * The descriptor that will be printed on the letter included with the check.
149
+ * If the check has been mailed by Increase, this will contain details of the
150
+ * shipment.
176
151
  */
177
- note: string | null;
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
- * The name that will be printed on the check.
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
- recipient_name: string | null;
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
- * The return address to be printed on the check.
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 ReturnAddress {
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 city of the address.
319
+ * The descriptor that will be printed on the memo field on the check.
331
320
  */
332
- city: string | null;
321
+ memo: string | null;
333
322
 
334
323
  /**
335
- * The first line of the address.
324
+ * The descriptor that will be printed on the letter included with the check.
336
325
  */
337
- line1: string | null;
326
+ note: string | null;
338
327
 
339
328
  /**
340
- * The second line of the address.
329
+ * The name that will be printed on the check.
341
330
  */
342
- line2: string | null;
331
+ recipient_name: string;
343
332
 
344
333
  /**
345
- * The name of the address.
334
+ * The return address to be printed on the check.
346
335
  */
347
- name: string | null;
336
+ return_address: PhysicalCheck.ReturnAddress | null;
337
+ }
348
338
 
339
+ export namespace PhysicalCheck {
349
340
  /**
350
- * The US state of the address.
341
+ * Details for where Increase will mail the check.
351
342
  */
352
- state: string | null;
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 postal code of the address.
376
+ * The return address to be printed on the check.
356
377
  */
357
- zip: string | null;
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
- * The descriptor that will be printed on the memo field on the check.
434
- */
435
- message: string;
436
-
437
- /**
438
- * The name that will be printed on the check.
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
- address_line2?: string;
473
+ fulfillment_method?: 'physical_check' | 'third_party';
446
474
 
447
475
  /**
448
- * The descriptor that will be printed on the letter included with the check.
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
- note?: string;
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
- * The return address to be printed on the check. If omitted this will default to
480
- * the address of the Entity of the Account used to make the Check Transfer.
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 ReturnAddress {
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 city of the return address.
514
+ * The descriptor that will be printed on the memo field on the check.
485
515
  */
486
- city: string;
516
+ memo: string;
487
517
 
488
518
  /**
489
- * The first line of the return address.
519
+ * The name that will be printed on the check in the 'To:' field.
490
520
  */
491
- line1: string;
521
+ recipient_name: string;
492
522
 
493
523
  /**
494
- * The name of the return address.
524
+ * The descriptor that will be printed on the letter included with the check.
495
525
  */
496
- name: string;
526
+ note?: string;
497
527
 
498
528
  /**
499
- * The US state of the return address.
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
- state: string;
532
+ return_address?: PhysicalCheck.ReturnAddress;
533
+ }
502
534
 
535
+ export namespace PhysicalCheck {
503
536
  /**
504
- * The postal code of the return address.
537
+ * Details for where Increase will mail the check.
505
538
  */
506
- zip: string;
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 second line of the return address.
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
- line2?: string;
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 {