increase 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +4 -0
  3. package/_shims/{ReadableStream.node.d.ts → ReadableStream-node.d.ts} +1 -1
  4. package/_shims/ReadableStream-node.d.ts.map +1 -0
  5. package/_shims/{ReadableStream.node.js → ReadableStream-node.js} +1 -1
  6. package/_shims/ReadableStream-node.js.map +1 -0
  7. package/_shims/{ReadableStream.node.mjs → ReadableStream-node.mjs} +1 -1
  8. package/_shims/ReadableStream-node.mjs.map +1 -0
  9. package/_shims/{agent.node.d.ts → agent-node.d.ts} +1 -1
  10. package/_shims/agent-node.d.ts.map +1 -0
  11. package/_shims/{agent.node.js → agent-node.js} +1 -1
  12. package/_shims/{agent.node.js.map → agent-node.js.map} +1 -1
  13. package/_shims/{agent.node.mjs → agent-node.mjs} +1 -1
  14. package/_shims/{agent.node.mjs.map → agent-node.mjs.map} +1 -1
  15. package/_shims/agent.d.ts +1 -1
  16. package/_shims/agent.js +1 -1
  17. package/_shims/agent.mjs +1 -1
  18. package/_shims/{fileFromPath.node.d.ts → fileFromPath-node.d.ts} +2 -2
  19. package/_shims/{fileFromPath.node.d.ts.map → fileFromPath-node.d.ts.map} +1 -1
  20. package/_shims/{fileFromPath.node.js → fileFromPath-node.js} +1 -1
  21. package/_shims/{fileFromPath.node.js.map → fileFromPath-node.js.map} +1 -1
  22. package/_shims/{fileFromPath.node.mjs → fileFromPath-node.mjs} +1 -1
  23. package/_shims/{fileFromPath.node.mjs.map → fileFromPath-node.mjs.map} +1 -1
  24. package/_shims/fileFromPath.d.ts +2 -2
  25. package/_shims/fileFromPath.d.ts.map +1 -1
  26. package/_shims/fileFromPath.js +1 -1
  27. package/_shims/fileFromPath.mjs +1 -1
  28. package/_shims/{getMultipartRequestOptions.node.d.ts → getMultipartRequestOptions-node.d.ts} +2 -2
  29. package/_shims/getMultipartRequestOptions-node.d.ts.map +1 -0
  30. package/_shims/{getMultipartRequestOptions.node.js → getMultipartRequestOptions-node.js} +1 -1
  31. package/_shims/{getMultipartRequestOptions.node.js.map → getMultipartRequestOptions-node.js.map} +1 -1
  32. package/_shims/{getMultipartRequestOptions.node.mjs → getMultipartRequestOptions-node.mjs} +1 -1
  33. package/_shims/{getMultipartRequestOptions.node.mjs.map → getMultipartRequestOptions-node.mjs.map} +1 -1
  34. package/_shims/getMultipartRequestOptions.d.ts +1 -1
  35. package/_shims/getMultipartRequestOptions.d.ts.map +1 -1
  36. package/_shims/{node-readable.node.d.ts → node-readable-node.d.ts} +1 -1
  37. package/_shims/{node-readable.node.d.ts.map → node-readable-node.d.ts.map} +1 -1
  38. package/_shims/{node-readable.node.js → node-readable-node.js} +1 -1
  39. package/_shims/node-readable-node.js.map +1 -0
  40. package/_shims/{node-readable.node.mjs → node-readable-node.mjs} +1 -1
  41. package/_shims/node-readable-node.mjs.map +1 -0
  42. package/core.d.ts +2 -1
  43. package/core.d.ts.map +1 -1
  44. package/core.js +3 -1
  45. package/core.js.map +1 -1
  46. package/core.mjs +1 -1
  47. package/core.mjs.map +1 -1
  48. package/error.d.ts +1 -1
  49. package/error.d.ts.map +1 -1
  50. package/error.js +2 -2
  51. package/error.js.map +1 -1
  52. package/error.mjs +2 -2
  53. package/error.mjs.map +1 -1
  54. package/index.d.mts +2 -7
  55. package/index.d.ts +2 -7
  56. package/index.d.ts.map +1 -1
  57. package/index.js +3 -6
  58. package/index.js.map +1 -1
  59. package/index.mjs +3 -6
  60. package/index.mjs.map +1 -1
  61. package/package.json +9 -4
  62. package/pagination.d.ts +1 -1
  63. package/resources/account-numbers.d.ts +57 -0
  64. package/resources/account-numbers.d.ts.map +1 -1
  65. package/resources/account-numbers.js.map +1 -1
  66. package/resources/account-numbers.mjs.map +1 -1
  67. package/resources/ach-prenotifications.d.ts +219 -3
  68. package/resources/ach-prenotifications.d.ts.map +1 -1
  69. package/resources/ach-prenotifications.js.map +1 -1
  70. package/resources/ach-prenotifications.mjs.map +1 -1
  71. package/resources/ach-transfers.d.ts +14 -9
  72. package/resources/ach-transfers.d.ts.map +1 -1
  73. package/resources/ach-transfers.js.map +1 -1
  74. package/resources/ach-transfers.mjs.map +1 -1
  75. package/resources/bookkeeping-entry-sets.d.ts +1 -1
  76. package/resources/card-profiles.d.ts +12 -3
  77. package/resources/card-profiles.d.ts.map +1 -1
  78. package/resources/card-profiles.js.map +1 -1
  79. package/resources/card-profiles.mjs.map +1 -1
  80. package/resources/card-purchase-supplements.d.ts +2 -2
  81. package/resources/check-deposits.d.ts +3 -0
  82. package/resources/check-deposits.d.ts.map +1 -1
  83. package/resources/check-deposits.js.map +1 -1
  84. package/resources/check-deposits.mjs.map +1 -1
  85. package/resources/check-transfers.d.ts +6 -0
  86. package/resources/check-transfers.d.ts.map +1 -1
  87. package/resources/check-transfers.js.map +1 -1
  88. package/resources/check-transfers.mjs.map +1 -1
  89. package/resources/declined-transactions.d.ts +289 -32
  90. package/resources/declined-transactions.d.ts.map +1 -1
  91. package/resources/declined-transactions.js.map +1 -1
  92. package/resources/declined-transactions.mjs.map +1 -1
  93. package/resources/digital-wallet-tokens.d.ts +2 -1
  94. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  95. package/resources/digital-wallet-tokens.js.map +1 -1
  96. package/resources/digital-wallet-tokens.mjs.map +1 -1
  97. package/resources/entities/beneficial-owners.d.ts +51 -0
  98. package/resources/entities/beneficial-owners.d.ts.map +1 -1
  99. package/resources/entities/beneficial-owners.js +6 -0
  100. package/resources/entities/beneficial-owners.js.map +1 -1
  101. package/resources/entities/beneficial-owners.mjs +6 -0
  102. package/resources/entities/beneficial-owners.mjs.map +1 -1
  103. package/resources/entities/entities.d.ts +45 -1
  104. package/resources/entities/entities.d.ts.map +1 -1
  105. package/resources/entities/entities.js +6 -0
  106. package/resources/entities/entities.js.map +1 -1
  107. package/resources/entities/entities.mjs +6 -0
  108. package/resources/entities/entities.mjs.map +1 -1
  109. package/resources/entities/index.d.ts +9 -1
  110. package/resources/entities/index.d.ts.map +1 -1
  111. package/resources/entities/index.js.map +1 -1
  112. package/resources/entities/index.mjs.map +1 -1
  113. package/resources/external-accounts.d.ts +4 -0
  114. package/resources/external-accounts.d.ts.map +1 -1
  115. package/resources/external-accounts.js.map +1 -1
  116. package/resources/external-accounts.mjs.map +1 -1
  117. package/resources/inbound-ach-transfers.d.ts +56 -8
  118. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  119. package/resources/inbound-ach-transfers.js +9 -0
  120. package/resources/inbound-ach-transfers.js.map +1 -1
  121. package/resources/inbound-ach-transfers.mjs +9 -0
  122. package/resources/inbound-ach-transfers.mjs.map +1 -1
  123. package/resources/index.d.ts +9 -9
  124. package/resources/index.d.ts.map +1 -1
  125. package/resources/index.js +0 -15
  126. package/resources/index.js.map +1 -1
  127. package/resources/index.mjs +0 -1
  128. package/resources/index.mjs.map +1 -1
  129. package/resources/pending-transactions.d.ts +19 -6
  130. package/resources/pending-transactions.d.ts.map +1 -1
  131. package/resources/pending-transactions.js.map +1 -1
  132. package/resources/pending-transactions.mjs.map +1 -1
  133. package/resources/real-time-decisions.d.ts +11 -9
  134. package/resources/real-time-decisions.d.ts.map +1 -1
  135. package/resources/real-time-decisions.js.map +1 -1
  136. package/resources/real-time-decisions.mjs.map +1 -1
  137. package/resources/simulations/ach-transfers.d.ts +693 -48
  138. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  139. package/resources/simulations/ach-transfers.js.map +1 -1
  140. package/resources/simulations/ach-transfers.mjs.map +1 -1
  141. package/resources/simulations/cards.d.ts +308 -38
  142. package/resources/simulations/cards.d.ts.map +1 -1
  143. package/resources/simulations/cards.js.map +1 -1
  144. package/resources/simulations/cards.mjs.map +1 -1
  145. package/resources/simulations/interest-payments.d.ts +402 -14
  146. package/resources/simulations/interest-payments.d.ts.map +1 -1
  147. package/resources/simulations/interest-payments.js.map +1 -1
  148. package/resources/simulations/interest-payments.mjs.map +1 -1
  149. package/resources/simulations/real-time-payments-transfers.d.ts +691 -46
  150. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  151. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  152. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  153. package/resources/simulations/wire-transfers.d.ts +402 -14
  154. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  155. package/resources/simulations/wire-transfers.js.map +1 -1
  156. package/resources/simulations/wire-transfers.mjs.map +1 -1
  157. package/resources/transactions.d.ts +402 -14
  158. package/resources/transactions.d.ts.map +1 -1
  159. package/resources/transactions.js.map +1 -1
  160. package/resources/transactions.mjs.map +1 -1
  161. package/resources/wire-transfers.d.ts +7 -5
  162. package/resources/wire-transfers.d.ts.map +1 -1
  163. package/resources/wire-transfers.js +1 -1
  164. package/resources/wire-transfers.js.map +1 -1
  165. package/resources/wire-transfers.mjs +1 -1
  166. package/resources/wire-transfers.mjs.map +1 -1
  167. package/src/_shims/ReadableStream.d.ts +5 -5
  168. package/src/_shims/agent.ts +1 -1
  169. package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +8 -8
  170. package/src/_shims/fetch.d.ts +10 -10
  171. package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
  172. package/src/_shims/fileFromPath.ts +2 -2
  173. package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
  174. package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
  175. package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
  176. package/src/_shims/getMultipartRequestOptions.ts +3 -3
  177. package/src/core.ts +11 -10
  178. package/src/error.ts +3 -3
  179. package/src/index.ts +9 -15
  180. package/src/pagination.ts +2 -2
  181. package/src/resource.ts +1 -1
  182. package/src/resources/account-numbers.ts +68 -5
  183. package/src/resources/account-statements.ts +5 -5
  184. package/src/resources/account-transfers.ts +5 -5
  185. package/src/resources/accounts.ts +5 -5
  186. package/src/resources/ach-prenotifications.ts +224 -8
  187. package/src/resources/ach-transfers.ts +19 -14
  188. package/src/resources/balance-lookups.ts +3 -3
  189. package/src/resources/bookkeeping-accounts.ts +5 -5
  190. package/src/resources/bookkeeping-entries.ts +5 -5
  191. package/src/resources/bookkeeping-entry-sets.ts +4 -4
  192. package/src/resources/card-disputes.ts +5 -5
  193. package/src/resources/card-profiles.ts +17 -8
  194. package/src/resources/card-purchase-supplements.ts +7 -7
  195. package/src/resources/cards.ts +5 -5
  196. package/src/resources/check-deposits.ts +8 -5
  197. package/src/resources/check-transfers.ts +12 -5
  198. package/src/resources/declined-transactions.ts +294 -37
  199. package/src/resources/digital-wallet-tokens.ts +7 -6
  200. package/src/resources/documents.ts +5 -5
  201. package/src/resources/entities/beneficial-owners.ts +66 -4
  202. package/src/resources/entities/entities.ts +61 -8
  203. package/src/resources/entities/index.ts +11 -3
  204. package/src/resources/entities/supplemental-documents.ts +5 -5
  205. package/src/resources/event-subscriptions.ts +5 -5
  206. package/src/resources/events.ts +5 -5
  207. package/src/resources/exports.ts +5 -5
  208. package/src/resources/external-accounts.ts +10 -5
  209. package/src/resources/files.ts +6 -6
  210. package/src/resources/groups.ts +3 -3
  211. package/src/resources/inbound-ach-transfers.ts +73 -13
  212. package/src/resources/inbound-wire-drawdown-requests.ts +5 -5
  213. package/src/resources/index.ts +46 -39
  214. package/src/resources/oauth-connections.ts +5 -5
  215. package/src/resources/pending-transactions.ts +24 -11
  216. package/src/resources/programs.ts +5 -5
  217. package/src/resources/real-time-decisions.ts +14 -12
  218. package/src/resources/real-time-payments-transfers.ts +5 -5
  219. package/src/resources/routing-numbers.ts +4 -4
  220. package/src/resources/simulations/account-statements.ts +4 -4
  221. package/src/resources/simulations/account-transfers.ts +3 -3
  222. package/src/resources/simulations/ach-transfers.ts +706 -54
  223. package/src/resources/simulations/card-disputes.ts +4 -4
  224. package/src/resources/simulations/card-profiles.ts +3 -3
  225. package/src/resources/simulations/card-refunds.ts +4 -4
  226. package/src/resources/simulations/cards.ts +313 -43
  227. package/src/resources/simulations/check-deposits.ts +3 -3
  228. package/src/resources/simulations/check-transfers.ts +3 -3
  229. package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
  230. package/src/resources/simulations/documents.ts +4 -4
  231. package/src/resources/simulations/inbound-funds-holds.ts +3 -3
  232. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
  233. package/src/resources/simulations/index.ts +18 -18
  234. package/src/resources/simulations/interest-payments.ts +413 -18
  235. package/src/resources/simulations/programs.ts +4 -4
  236. package/src/resources/simulations/real-time-payments-transfers.ts +704 -52
  237. package/src/resources/simulations/simulations.ts +19 -19
  238. package/src/resources/simulations/wire-transfers.ts +413 -18
  239. package/src/resources/transactions.ts +415 -20
  240. package/src/resources/wire-drawdown-requests.ts +5 -5
  241. package/src/resources/wire-transfers.ts +12 -10
  242. package/src/tsconfig.json +11 -0
  243. package/src/uploads.ts +6 -6
  244. package/src/version.ts +1 -1
  245. package/uploads.d.ts +1 -1
  246. package/uploads.d.ts.map +1 -1
  247. package/uploads.js +4 -4
  248. package/uploads.js.map +1 -1
  249. package/uploads.mjs +1 -1
  250. package/uploads.mjs.map +1 -1
  251. package/version.d.ts +1 -1
  252. package/version.js +1 -1
  253. package/version.mjs +1 -1
  254. package/_shims/ReadableStream.node.d.ts.map +0 -1
  255. package/_shims/ReadableStream.node.js.map +0 -1
  256. package/_shims/ReadableStream.node.mjs.map +0 -1
  257. package/_shims/agent.node.d.ts.map +0 -1
  258. package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
  259. package/_shims/node-readable.node.js.map +0 -1
  260. package/_shims/node-readable.node.mjs.map +0 -1
  261. package/resources/limits.d.ts +0 -148
  262. package/resources/limits.d.ts.map +0 -1
  263. package/resources/limits.js +0 -38
  264. package/resources/limits.js.map +0 -1
  265. package/resources/limits.mjs +0 -33
  266. package/resources/limits.mjs.map +0 -1
  267. package/src/_shims/fetch.deno.ts +0 -23
  268. package/src/_shims/formdata.deno.ts +0 -16
  269. package/src/resources/limits.ts +0 -186
  270. /package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +0 -0
  271. /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
  272. /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  273. /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
  274. /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
  275. /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  276. /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
  277. /package/_shims/{formdata.js → form-data.js} +0 -0
  278. /package/_shims/{formdata.mjs → form-data.mjs} +0 -0
  279. /package/src/_shims/{ReadableStream.node.ts → ReadableStream-node.ts} +0 -0
  280. /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
  281. /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
  282. /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  283. /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
  284. /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  285. /package/src/_shims/{formdata.js → form-data.js} +0 -0
  286. /package/src/_shims/{formdata.mjs → form-data.mjs} +0 -0
  287. /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
@@ -1,9 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import * as ACHTransfers_ from '../ach-transfers';
6
- import * as API from './index';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import * as ACHTransfers_ from '../ach-transfers.js';
6
+ import * as API from './index.js';
7
7
 
8
8
  export class ACHTransfers extends APIResource {
9
9
  /**
@@ -267,16 +267,22 @@ export namespace ACHTransferSimulation {
267
267
  *
268
268
  * - `ach_route_canceled` - The account number is canceled.
269
269
  * - `ach_route_disabled` - The account number is disabled.
270
- * - `breaches_limit` - The transaction would cause a limit to be exceeded.
271
- * - `credit_entry_refused_by_receiver` - A credit was refused.
272
- * - `duplicate_return` - Other.
270
+ * - `breaches_limit` - The transaction would cause an Increase limit to be
271
+ * exceeded.
272
+ * - `credit_entry_refused_by_receiver` - A credit was refused. This is a
273
+ * reasonable default reason for decline of credits.
274
+ * - `duplicate_return` - A rare return reason. The return this message refers to
275
+ * was a duplicate.
273
276
  * - `entity_not_active` - The account's entity is not active.
274
277
  * - `group_locked` - Your account is inactive.
275
278
  * - `insufficient_funds` - Your account contains insufficient funds.
276
- * - `misrouted_return` - Other.
277
- * - `return_of_erroneous_or_reversing_debit` - Other.
279
+ * - `misrouted_return` - A rare return reason. The return this message refers to
280
+ * was misrouted.
281
+ * - `return_of_erroneous_or_reversing_debit` - The originating financial
282
+ * institution made a mistake and this return corrects it.
278
283
  * - `no_ach_route` - The account number that was debited does not exist.
279
- * - `originator_request` - Other.
284
+ * - `originator_request` - The originating financial institution asked for this
285
+ * transfer to be returned.
280
286
  * - `transaction_not_allowed` - The transaction is not allowed per Increase's
281
287
  * terms.
282
288
  * - `user_initiated` - The user initiated the decline.
@@ -382,7 +388,7 @@ export namespace ACHTransferSimulation {
382
388
  merchant_state: string | null;
383
389
 
384
390
  /**
385
- * Fields specific to the `network`
391
+ * Fields specific to the `network`.
386
392
  */
387
393
  network_details: CardDecline.NetworkDetails;
388
394
 
@@ -441,25 +447,25 @@ export namespace ACHTransferSimulation {
441
447
 
442
448
  export namespace CardDecline {
443
449
  /**
444
- * Fields specific to the `network`
450
+ * Fields specific to the `network`.
445
451
  */
446
452
  export interface NetworkDetails {
447
453
  /**
448
- * The payment network used to process this card authorization
454
+ * The payment network used to process this card authorization.
449
455
  *
450
456
  * - `visa` - Visa
451
457
  */
452
458
  category: 'visa';
453
459
 
454
460
  /**
455
- * Fields specific to the `visa` network
461
+ * Fields specific to the `visa` network.
456
462
  */
457
463
  visa: NetworkDetails.Visa | null;
458
464
  }
459
465
 
460
466
  export namespace NetworkDetails {
461
467
  /**
462
- * Fields specific to the `visa` network
468
+ * Fields specific to the `visa` network.
463
469
  */
464
470
  export interface Visa {
465
471
  /**
@@ -510,7 +516,7 @@ export namespace ACHTransferSimulation {
510
516
 
511
517
  /**
512
518
  * The method used to enter the cardholder's primary account number and card
513
- * expiration date
519
+ * expiration date.
514
520
  *
515
521
  * - `unknown` - Unknown
516
522
  * - `manual` - Manual key entry
@@ -553,43 +559,42 @@ export namespace ACHTransferSimulation {
553
559
  */
554
560
  amount: number;
555
561
 
562
+ /**
563
+ * A computer-readable number printed on the MICR line of business checks, usually
564
+ * the check number. This is useful for positive pay checks, but can be unreliably
565
+ * transmitted by the bank of first deposit.
566
+ */
556
567
  auxiliary_on_us: string | null;
557
568
 
558
569
  /**
559
570
  * Why the check was declined.
560
571
  *
561
- * - `ach_route_canceled` - The account number is canceled.
562
572
  * - `ach_route_disabled` - The account number is disabled.
573
+ * - `ach_route_canceled` - The account number is canceled.
563
574
  * - `breaches_limit` - The transaction would cause a limit to be exceeded.
564
575
  * - `entity_not_active` - The account's entity is not active.
565
576
  * - `group_locked` - Your account is inactive.
566
577
  * - `insufficient_funds` - Your account contains insufficient funds.
567
- * - `unable_to_locate_account` - Unable to locate account.
568
- * - `not_our_item` - Routing number on the check is not ours.
569
- * - `unable_to_process` - Unable to process.
570
- * - `refer_to_image` - Refer to image.
571
578
  * - `stop_payment_requested` - Stop payment requested for this check.
572
- * - `returned` - Check was returned to sender.
573
579
  * - `duplicate_presentment` - The check was a duplicate deposit.
574
- * - `not_authorized` - The transaction is not allowed.
575
- * - `altered_or_fictitious` - The check was altered or fictitious.
580
+ * - `not_authorized` - The check was not authorized.
581
+ * - `amount_mismatch` - The amount the receiving bank is attempting to deposit
582
+ * does not match the amount on the check.
583
+ * - `not_our_item` - The check attempting to be deposited does not belong to
584
+ * Increase.
576
585
  */
577
586
  reason:
578
- | 'ach_route_canceled'
579
587
  | 'ach_route_disabled'
588
+ | 'ach_route_canceled'
580
589
  | 'breaches_limit'
581
590
  | 'entity_not_active'
582
591
  | 'group_locked'
583
592
  | 'insufficient_funds'
584
- | 'unable_to_locate_account'
585
- | 'not_our_item'
586
- | 'unable_to_process'
587
- | 'refer_to_image'
588
593
  | 'stop_payment_requested'
589
- | 'returned'
590
594
  | 'duplicate_presentment'
591
595
  | 'not_authorized'
592
- | 'altered_or_fictitious';
596
+ | 'amount_mismatch'
597
+ | 'not_our_item';
593
598
  }
594
599
 
595
600
  /**
@@ -679,74 +684,279 @@ export namespace ACHTransferSimulation {
679
684
  */
680
685
  amount: number;
681
686
 
687
+ /**
688
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
689
+ * country code of the destination country.
690
+ */
682
691
  destination_country_code: string;
683
692
 
693
+ /**
694
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
695
+ * destination bank account.
696
+ */
684
697
  destination_currency_code: string;
685
698
 
686
- foreign_exchange_indicator: string;
699
+ /**
700
+ * A description of how the foreign exchange rate was calculated.
701
+ *
702
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
703
+ * The settled amount in USD was converted using the exchange rate.
704
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
705
+ * originator's amount was variable; known only after the foreign exchange
706
+ * conversion.
707
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
708
+ * USD. There is no foreign exchange conversion.
709
+ */
710
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
687
711
 
712
+ /**
713
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
714
+ * reference to a well-known rate.
715
+ */
688
716
  foreign_exchange_reference: string | null;
689
717
 
690
- foreign_exchange_reference_indicator: string;
718
+ /**
719
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
720
+ * this Transaction.
721
+ *
722
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
723
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
724
+ * well-known foreign exchange rate.
725
+ * - `blank` - There is no foreign exchange for this transfer, so the
726
+ * `foreign_exchange_reference` field is blank.
727
+ */
728
+ foreign_exchange_reference_indicator:
729
+ | 'foreign_exchange_rate'
730
+ | 'foreign_exchange_reference_number'
731
+ | 'blank';
691
732
 
733
+ /**
734
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
735
+ * example, this is cents.
736
+ */
692
737
  foreign_payment_amount: number;
693
738
 
739
+ /**
740
+ * A reference number in the foreign banking infrastructure.
741
+ */
694
742
  foreign_trace_number: string | null;
695
743
 
696
- international_transaction_type_code: string;
697
-
744
+ /**
745
+ * The type of transfer. Set by the originator.
746
+ *
747
+ * - `annuity` - Sent as `ANN` in the Nacha file.
748
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
749
+ * - `deposit` - Sent as `DEP` in the Nacha file.
750
+ * - `loan` - Sent as `LOA` in the Nacha file.
751
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
752
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
753
+ * - `pension` - Sent as `PEN` in the Nacha file.
754
+ * - `remittance` - Sent as `REM` in the Nacha file.
755
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
756
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
757
+ * - `tax` - Sent as `TAX` in the Nacha file.
758
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
759
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
760
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
761
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
762
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
763
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
764
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
765
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
766
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
767
+ */
768
+ international_transaction_type_code:
769
+ | 'annuity'
770
+ | 'business_or_commercial'
771
+ | 'deposit'
772
+ | 'loan'
773
+ | 'miscellaneous'
774
+ | 'mortgage'
775
+ | 'pension'
776
+ | 'remittance'
777
+ | 'rent_or_lease'
778
+ | 'salary_or_payroll'
779
+ | 'tax'
780
+ | 'accounts_receivable'
781
+ | 'back_office_conversion'
782
+ | 'machine_transfer'
783
+ | 'point_of_purchase'
784
+ | 'point_of_sale'
785
+ | 'represented_check'
786
+ | 'shared_network_transaction'
787
+ | 'telphone_initiated'
788
+ | 'internet_initiated';
789
+
790
+ /**
791
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
792
+ * originating bank account.
793
+ */
698
794
  originating_currency_code: string;
699
795
 
796
+ /**
797
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
798
+ * country code of the originating branch country.
799
+ */
700
800
  originating_depository_financial_institution_branch_country: string;
701
801
 
802
+ /**
803
+ * An identifier for the originating bank. One of an International Bank Account
804
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
805
+ * domestic identifier like a US Routing Number.
806
+ */
702
807
  originating_depository_financial_institution_id: string;
703
808
 
704
- originating_depository_financial_institution_id_qualifier: string;
809
+ /**
810
+ * An instruction of how to interpret the
811
+ * `originating_depository_financial_institution_id` field for this Transaction.
812
+ *
813
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
814
+ * US, for example, this is the American Banking Association (ABA) routing
815
+ * number.
816
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
817
+ * - `iban` - An International Bank Account Number.
818
+ */
819
+ originating_depository_financial_institution_id_qualifier:
820
+ | 'national_clearing_system_number'
821
+ | 'bic_code'
822
+ | 'iban';
705
823
 
824
+ /**
825
+ * The name of the originating bank. Sometimes this will refer to an American bank
826
+ * and obscure the correspondent foreign bank.
827
+ */
706
828
  originating_depository_financial_institution_name: string;
707
829
 
830
+ /**
831
+ * A portion of the originator address. This may be incomplete.
832
+ */
708
833
  originator_city: string;
709
834
 
835
+ /**
836
+ * A description field set by the originator.
837
+ */
710
838
  originator_company_entry_description: string;
711
839
 
840
+ /**
841
+ * A portion of the originator address. The
842
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
843
+ * code of the originator country.
844
+ */
712
845
  originator_country: string;
713
846
 
847
+ /**
848
+ * An identifier for the originating company. This is generally stable across
849
+ * multiple ACH transfers.
850
+ */
714
851
  originator_identification: string;
715
852
 
853
+ /**
854
+ * Either the name of the originator or an intermediary money transmitter.
855
+ */
716
856
  originator_name: string;
717
857
 
858
+ /**
859
+ * A portion of the originator address. This may be incomplete.
860
+ */
718
861
  originator_postal_code: string | null;
719
862
 
863
+ /**
864
+ * A portion of the originator address. This may be incomplete.
865
+ */
720
866
  originator_state_or_province: string | null;
721
867
 
868
+ /**
869
+ * A portion of the originator address. This may be incomplete.
870
+ */
722
871
  originator_street_address: string;
723
872
 
873
+ /**
874
+ * A description field set by the originator.
875
+ */
724
876
  payment_related_information: string | null;
725
877
 
878
+ /**
879
+ * A description field set by the originator.
880
+ */
726
881
  payment_related_information2: string | null;
727
882
 
883
+ /**
884
+ * A portion of the receiver address. This may be incomplete.
885
+ */
728
886
  receiver_city: string;
729
887
 
888
+ /**
889
+ * A portion of the receiver address. The
890
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
891
+ * code of the receiver country.
892
+ */
730
893
  receiver_country: string;
731
894
 
895
+ /**
896
+ * An identification number the originator uses for the receiver.
897
+ */
732
898
  receiver_identification_number: string | null;
733
899
 
900
+ /**
901
+ * A portion of the receiver address. This may be incomplete.
902
+ */
734
903
  receiver_postal_code: string | null;
735
904
 
905
+ /**
906
+ * A portion of the receiver address. This may be incomplete.
907
+ */
736
908
  receiver_state_or_province: string | null;
737
909
 
910
+ /**
911
+ * A portion of the receiver address. This may be incomplete.
912
+ */
738
913
  receiver_street_address: string;
739
914
 
915
+ /**
916
+ * The name of the receiver of the transfer. This is not verified by Increase.
917
+ */
740
918
  receiving_company_or_individual_name: string;
741
919
 
920
+ /**
921
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
922
+ * country code of the receiving bank country.
923
+ */
742
924
  receiving_depository_financial_institution_country: string;
743
925
 
926
+ /**
927
+ * An identifier for the receiving bank. One of an International Bank Account
928
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
929
+ * domestic identifier like a US Routing Number.
930
+ */
744
931
  receiving_depository_financial_institution_id: string;
745
932
 
746
- receiving_depository_financial_institution_id_qualifier: string;
933
+ /**
934
+ * An instruction of how to interpret the
935
+ * `receiving_depository_financial_institution_id` field for this Transaction.
936
+ *
937
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
938
+ * US, for example, this is the American Banking Association (ABA) routing
939
+ * number.
940
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
941
+ * - `iban` - An International Bank Account Number.
942
+ */
943
+ receiving_depository_financial_institution_id_qualifier:
944
+ | 'national_clearing_system_number'
945
+ | 'bic_code'
946
+ | 'iban';
747
947
 
948
+ /**
949
+ * The name of the receiving bank, as set by the sending financial institution.
950
+ */
748
951
  receiving_depository_financial_institution_name: string;
749
952
 
953
+ /**
954
+ * A 15 digit number recorded in the Nacha file and available to both the
955
+ * originating and receiving bank. Along with the amount, date, and originating
956
+ * routing number, this can be used to identify the ACH transfer at either bank.
957
+ * ACH trace numbers are not unique, but are
958
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
959
+ */
750
960
  trace_number: string;
751
961
  }
752
962
 
@@ -761,34 +971,81 @@ export namespace ACHTransferSimulation {
761
971
  */
762
972
  amount: number;
763
973
 
974
+ /**
975
+ * A free-form address field set by the sender.
976
+ */
764
977
  beneficiary_address_line1: string | null;
765
978
 
979
+ /**
980
+ * A free-form address field set by the sender.
981
+ */
766
982
  beneficiary_address_line2: string | null;
767
983
 
984
+ /**
985
+ * A free-form address field set by the sender.
986
+ */
768
987
  beneficiary_address_line3: string | null;
769
988
 
989
+ /**
990
+ * A name set by the sender.
991
+ */
770
992
  beneficiary_name: string | null;
771
993
 
994
+ /**
995
+ * A free-form reference string set by the sender, to help identify the transfer.
996
+ */
772
997
  beneficiary_reference: string | null;
773
998
 
999
+ /**
1000
+ * An Increase-constructed description of the declined transaction.
1001
+ */
774
1002
  description: string;
775
1003
 
1004
+ /**
1005
+ * A unique identifier available to the originating and receiving banks, commonly
1006
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
1007
+ * service and is helpful when debugging wires with the originating bank.
1008
+ */
776
1009
  input_message_accountability_data: string | null;
777
1010
 
1011
+ /**
1012
+ * The address of the wire originator, set by the sending bank.
1013
+ */
778
1014
  originator_address_line1: string | null;
779
1015
 
1016
+ /**
1017
+ * The address of the wire originator, set by the sending bank.
1018
+ */
780
1019
  originator_address_line2: string | null;
781
1020
 
1021
+ /**
1022
+ * The address of the wire originator, set by the sending bank.
1023
+ */
782
1024
  originator_address_line3: string | null;
783
1025
 
1026
+ /**
1027
+ * The originator of the wire, set by the sending bank.
1028
+ */
784
1029
  originator_name: string | null;
785
1030
 
1031
+ /**
1032
+ * A free-form message set by the wire originator.
1033
+ */
786
1034
  originator_to_beneficiary_information_line1: string | null;
787
1035
 
1036
+ /**
1037
+ * A free-form message set by the wire originator.
1038
+ */
788
1039
  originator_to_beneficiary_information_line2: string | null;
789
1040
 
1041
+ /**
1042
+ * A free-form message set by the wire originator.
1043
+ */
790
1044
  originator_to_beneficiary_information_line3: string | null;
791
1045
 
1046
+ /**
1047
+ * A free-form message set by the wire originator.
1048
+ */
792
1049
  originator_to_beneficiary_information_line4: string | null;
793
1050
 
794
1051
  /**
@@ -1222,6 +1479,9 @@ export namespace ACHTransferSimulation {
1222
1479
  * response if and only if `category` is equal to `ach_transfer_intention`.
1223
1480
  */
1224
1481
  export interface ACHTransferIntention {
1482
+ /**
1483
+ * The account number for the destination account.
1484
+ */
1225
1485
  account_number: string;
1226
1486
 
1227
1487
  /**
@@ -1230,8 +1490,15 @@ export namespace ACHTransferSimulation {
1230
1490
  */
1231
1491
  amount: number;
1232
1492
 
1493
+ /**
1494
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
1495
+ * destination account.
1496
+ */
1233
1497
  routing_number: string;
1234
1498
 
1499
+ /**
1500
+ * A description set when the ACH Transfer was created.
1501
+ */
1235
1502
  statement_descriptor: string;
1236
1503
 
1237
1504
  /**
@@ -1303,7 +1570,7 @@ export namespace ACHTransferSimulation {
1303
1570
  * - `enr_invalid_individual_name` - Code R45. The individual name field was
1304
1571
  * invalid.
1305
1572
  * - `returned_per_odfi_request` - Code R06. The originating financial institution
1306
- * reversed the transfer.
1573
+ * asked for this transfer to be returned.
1307
1574
  * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
1308
1575
  * supervisor has limited their participation.
1309
1576
  * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
@@ -1390,7 +1657,7 @@ export namespace ACHTransferSimulation {
1390
1657
  * bank disputes that an earlier `duplicate_entry` return was actually a
1391
1658
  * duplicate.
1392
1659
  * - `return_of_erroneous_or_reversing_debit` - Code R62. A rare return reason. The
1393
- * originating bank made a mistake earlier and this return corrects it.
1660
+ * originating financial institution made a mistake and this return corrects it.
1394
1661
  * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
1395
1662
  * a malformed credit entry.
1396
1663
  * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a
@@ -2879,6 +3146,9 @@ export namespace ACHTransferSimulation {
2879
3146
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2880
3147
 
2881
3148
  /**
3149
+ * Why this check was returned by the bank holding the account it was drawn
3150
+ * against.
3151
+ *
2882
3152
  * - `ach_conversion_not_supported` - The check doesn't allow ACH conversion.
2883
3153
  * - `closed_account` - The account is closed.
2884
3154
  * - `duplicate_submission` - The check has already been deposited.
@@ -2930,6 +3200,13 @@ export namespace ACHTransferSimulation {
2930
3200
  */
2931
3201
  back_image_file_id: string | null;
2932
3202
 
3203
+ /**
3204
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
3205
+ * bank depositing this check. In some rare cases, this is not transmitted via
3206
+ * Check21 and the value will be null.
3207
+ */
3208
+ bank_of_first_deposit_routing_number: string | null;
3209
+
2933
3210
  /**
2934
3211
  * When the check was deposited.
2935
3212
  */
@@ -3086,21 +3363,56 @@ export namespace ACHTransferSimulation {
3086
3363
  */
3087
3364
  amount: number;
3088
3365
 
3366
+ /**
3367
+ * The description of the date of the transfer, usually in the format `YYMMDD`.
3368
+ */
3089
3369
  originator_company_descriptive_date: string | null;
3090
3370
 
3371
+ /**
3372
+ * Data set by the originator.
3373
+ */
3091
3374
  originator_company_discretionary_data: string | null;
3092
3375
 
3376
+ /**
3377
+ * An informational description of the transfer.
3378
+ */
3093
3379
  originator_company_entry_description: string;
3094
3380
 
3381
+ /**
3382
+ * An identifier for the originating company. This is generally, but not always, a
3383
+ * stable identifier across multiple transfers.
3384
+ */
3095
3385
  originator_company_id: string;
3096
3386
 
3387
+ /**
3388
+ * A name set by the originator to identify themselves.
3389
+ */
3097
3390
  originator_company_name: string;
3098
3391
 
3392
+ /**
3393
+ * The originator's identifier for the transfer receipient.
3394
+ */
3099
3395
  receiver_id_number: string | null;
3100
3396
 
3397
+ /**
3398
+ * The name of the transfer recipient. This value is informational and not verified
3399
+ * by Increase.
3400
+ */
3101
3401
  receiver_name: string | null;
3102
3402
 
3403
+ /**
3404
+ * A 15 digit number recorded in the Nacha file and available to both the
3405
+ * originating and receiving bank. Along with the amount, date, and originating
3406
+ * routing number, this can be used to identify the ACH transfer at either bank.
3407
+ * ACH trace numbers are not unique, but are
3408
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
3409
+ */
3103
3410
  trace_number: string;
3411
+
3412
+ /**
3413
+ * The inbound ach transfer's identifier.
3414
+ */
3415
+ transfer_id: string;
3104
3416
  }
3105
3417
 
3106
3418
  /**
@@ -3114,10 +3426,27 @@ export namespace ACHTransferSimulation {
3114
3426
  */
3115
3427
  amount: number;
3116
3428
 
3429
+ /**
3430
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
3431
+ * bank depositing this check. In some rare cases, this is not transmitted via
3432
+ * Check21 and the value will be null.
3433
+ */
3434
+ bank_of_first_deposit_routing_number: string | null;
3435
+
3436
+ /**
3437
+ * The front image of the check. This is a black and white TIFF image file.
3438
+ */
3117
3439
  check_front_image_file_id: string | null;
3118
3440
 
3441
+ /**
3442
+ * The number of the check. This field is set by the depositing bank and can be
3443
+ * unreliable.
3444
+ */
3119
3445
  check_number: string | null;
3120
3446
 
3447
+ /**
3448
+ * The rear image of the check. This is a black and white TIFF image file.
3449
+ */
3121
3450
  check_rear_image_file_id: string | null;
3122
3451
 
3123
3452
  /**
@@ -3146,74 +3475,279 @@ export namespace ACHTransferSimulation {
3146
3475
  */
3147
3476
  amount: number;
3148
3477
 
3478
+ /**
3479
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3480
+ * country code of the destination country.
3481
+ */
3149
3482
  destination_country_code: string;
3150
3483
 
3484
+ /**
3485
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
3486
+ * destination bank account.
3487
+ */
3151
3488
  destination_currency_code: string;
3152
3489
 
3153
- foreign_exchange_indicator: string;
3490
+ /**
3491
+ * A description of how the foreign exchange rate was calculated.
3492
+ *
3493
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
3494
+ * The settled amount in USD was converted using the exchange rate.
3495
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
3496
+ * originator's amount was variable; known only after the foreign exchange
3497
+ * conversion.
3498
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
3499
+ * USD. There is no foreign exchange conversion.
3500
+ */
3501
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
3154
3502
 
3503
+ /**
3504
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
3505
+ * reference to a well-known rate.
3506
+ */
3155
3507
  foreign_exchange_reference: string | null;
3156
3508
 
3157
- foreign_exchange_reference_indicator: string;
3509
+ /**
3510
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
3511
+ * this Transaction.
3512
+ *
3513
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
3514
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
3515
+ * well-known foreign exchange rate.
3516
+ * - `blank` - There is no foreign exchange for this transfer, so the
3517
+ * `foreign_exchange_reference` field is blank.
3518
+ */
3519
+ foreign_exchange_reference_indicator:
3520
+ | 'foreign_exchange_rate'
3521
+ | 'foreign_exchange_reference_number'
3522
+ | 'blank';
3158
3523
 
3524
+ /**
3525
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
3526
+ * example, this is cents.
3527
+ */
3159
3528
  foreign_payment_amount: number;
3160
3529
 
3530
+ /**
3531
+ * A reference number in the foreign banking infrastructure.
3532
+ */
3161
3533
  foreign_trace_number: string | null;
3162
3534
 
3163
- international_transaction_type_code: string;
3164
-
3535
+ /**
3536
+ * The type of transfer. Set by the originator.
3537
+ *
3538
+ * - `annuity` - Sent as `ANN` in the Nacha file.
3539
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
3540
+ * - `deposit` - Sent as `DEP` in the Nacha file.
3541
+ * - `loan` - Sent as `LOA` in the Nacha file.
3542
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
3543
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
3544
+ * - `pension` - Sent as `PEN` in the Nacha file.
3545
+ * - `remittance` - Sent as `REM` in the Nacha file.
3546
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
3547
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
3548
+ * - `tax` - Sent as `TAX` in the Nacha file.
3549
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
3550
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
3551
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
3552
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
3553
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
3554
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
3555
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
3556
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
3557
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
3558
+ */
3559
+ international_transaction_type_code:
3560
+ | 'annuity'
3561
+ | 'business_or_commercial'
3562
+ | 'deposit'
3563
+ | 'loan'
3564
+ | 'miscellaneous'
3565
+ | 'mortgage'
3566
+ | 'pension'
3567
+ | 'remittance'
3568
+ | 'rent_or_lease'
3569
+ | 'salary_or_payroll'
3570
+ | 'tax'
3571
+ | 'accounts_receivable'
3572
+ | 'back_office_conversion'
3573
+ | 'machine_transfer'
3574
+ | 'point_of_purchase'
3575
+ | 'point_of_sale'
3576
+ | 'represented_check'
3577
+ | 'shared_network_transaction'
3578
+ | 'telphone_initiated'
3579
+ | 'internet_initiated';
3580
+
3581
+ /**
3582
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
3583
+ * originating bank account.
3584
+ */
3165
3585
  originating_currency_code: string;
3166
3586
 
3587
+ /**
3588
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3589
+ * country code of the originating branch country.
3590
+ */
3167
3591
  originating_depository_financial_institution_branch_country: string;
3168
3592
 
3593
+ /**
3594
+ * An identifier for the originating bank. One of an International Bank Account
3595
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
3596
+ * domestic identifier like a US Routing Number.
3597
+ */
3169
3598
  originating_depository_financial_institution_id: string;
3170
3599
 
3171
- originating_depository_financial_institution_id_qualifier: string;
3600
+ /**
3601
+ * An instruction of how to interpret the
3602
+ * `originating_depository_financial_institution_id` field for this Transaction.
3603
+ *
3604
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
3605
+ * US, for example, this is the American Banking Association (ABA) routing
3606
+ * number.
3607
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
3608
+ * - `iban` - An International Bank Account Number.
3609
+ */
3610
+ originating_depository_financial_institution_id_qualifier:
3611
+ | 'national_clearing_system_number'
3612
+ | 'bic_code'
3613
+ | 'iban';
3172
3614
 
3615
+ /**
3616
+ * The name of the originating bank. Sometimes this will refer to an American bank
3617
+ * and obscure the correspondent foreign bank.
3618
+ */
3173
3619
  originating_depository_financial_institution_name: string;
3174
3620
 
3621
+ /**
3622
+ * A portion of the originator address. This may be incomplete.
3623
+ */
3175
3624
  originator_city: string;
3176
3625
 
3626
+ /**
3627
+ * A description field set by the originator.
3628
+ */
3177
3629
  originator_company_entry_description: string;
3178
3630
 
3631
+ /**
3632
+ * A portion of the originator address. The
3633
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
3634
+ * code of the originator country.
3635
+ */
3179
3636
  originator_country: string;
3180
3637
 
3638
+ /**
3639
+ * An identifier for the originating company. This is generally stable across
3640
+ * multiple ACH transfers.
3641
+ */
3181
3642
  originator_identification: string;
3182
3643
 
3644
+ /**
3645
+ * Either the name of the originator or an intermediary money transmitter.
3646
+ */
3183
3647
  originator_name: string;
3184
3648
 
3649
+ /**
3650
+ * A portion of the originator address. This may be incomplete.
3651
+ */
3185
3652
  originator_postal_code: string | null;
3186
3653
 
3654
+ /**
3655
+ * A portion of the originator address. This may be incomplete.
3656
+ */
3187
3657
  originator_state_or_province: string | null;
3188
3658
 
3659
+ /**
3660
+ * A portion of the originator address. This may be incomplete.
3661
+ */
3189
3662
  originator_street_address: string;
3190
3663
 
3664
+ /**
3665
+ * A description field set by the originator.
3666
+ */
3191
3667
  payment_related_information: string | null;
3192
3668
 
3669
+ /**
3670
+ * A description field set by the originator.
3671
+ */
3193
3672
  payment_related_information2: string | null;
3194
3673
 
3674
+ /**
3675
+ * A portion of the receiver address. This may be incomplete.
3676
+ */
3195
3677
  receiver_city: string;
3196
3678
 
3679
+ /**
3680
+ * A portion of the receiver address. The
3681
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
3682
+ * code of the receiver country.
3683
+ */
3197
3684
  receiver_country: string;
3198
3685
 
3686
+ /**
3687
+ * An identification number the originator uses for the receiver.
3688
+ */
3199
3689
  receiver_identification_number: string | null;
3200
3690
 
3691
+ /**
3692
+ * A portion of the receiver address. This may be incomplete.
3693
+ */
3201
3694
  receiver_postal_code: string | null;
3202
3695
 
3696
+ /**
3697
+ * A portion of the receiver address. This may be incomplete.
3698
+ */
3203
3699
  receiver_state_or_province: string | null;
3204
3700
 
3701
+ /**
3702
+ * A portion of the receiver address. This may be incomplete.
3703
+ */
3205
3704
  receiver_street_address: string;
3206
3705
 
3706
+ /**
3707
+ * The name of the receiver of the transfer. This is not verified by Increase.
3708
+ */
3207
3709
  receiving_company_or_individual_name: string;
3208
3710
 
3711
+ /**
3712
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3713
+ * country code of the receiving bank country.
3714
+ */
3209
3715
  receiving_depository_financial_institution_country: string;
3210
3716
 
3717
+ /**
3718
+ * An identifier for the receiving bank. One of an International Bank Account
3719
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
3720
+ * domestic identifier like a US Routing Number.
3721
+ */
3211
3722
  receiving_depository_financial_institution_id: string;
3212
3723
 
3213
- receiving_depository_financial_institution_id_qualifier: string;
3724
+ /**
3725
+ * An instruction of how to interpret the
3726
+ * `receiving_depository_financial_institution_id` field for this Transaction.
3727
+ *
3728
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
3729
+ * US, for example, this is the American Banking Association (ABA) routing
3730
+ * number.
3731
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
3732
+ * - `iban` - An International Bank Account Number.
3733
+ */
3734
+ receiving_depository_financial_institution_id_qualifier:
3735
+ | 'national_clearing_system_number'
3736
+ | 'bic_code'
3737
+ | 'iban';
3214
3738
 
3739
+ /**
3740
+ * The name of the receiving bank, as set by the sending financial institution.
3741
+ */
3215
3742
  receiving_depository_financial_institution_name: string;
3216
3743
 
3744
+ /**
3745
+ * A 15 digit number recorded in the Nacha file and available to both the
3746
+ * originating and receiving bank. Along with the amount, date, and originating
3747
+ * routing number, this can be used to identify the ACH transfer at either bank.
3748
+ * ACH trace numbers are not unique, but are
3749
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
3750
+ */
3217
3751
  trace_number: string;
3218
3752
  }
3219
3753
 
@@ -3268,7 +3802,7 @@ export namespace ACHTransferSimulation {
3268
3802
  remittance_information: string | null;
3269
3803
 
3270
3804
  /**
3271
- * The Real-Time Payments network identification of the transfer
3805
+ * The Real-Time Payments network identification of the transfer.
3272
3806
  */
3273
3807
  transaction_identification: string;
3274
3808
  }
@@ -3284,29 +3818,87 @@ export namespace ACHTransferSimulation {
3284
3818
  */
3285
3819
  amount: number;
3286
3820
 
3821
+ /**
3822
+ * A free-form address field set by the sender.
3823
+ */
3287
3824
  beneficiary_address_line1: string | null;
3288
3825
 
3826
+ /**
3827
+ * A free-form address field set by the sender.
3828
+ */
3289
3829
  beneficiary_address_line2: string | null;
3290
3830
 
3831
+ /**
3832
+ * A free-form address field set by the sender.
3833
+ */
3291
3834
  beneficiary_address_line3: string | null;
3292
3835
 
3836
+ /**
3837
+ * A name set by the sender.
3838
+ */
3293
3839
  beneficiary_name: string | null;
3294
3840
 
3841
+ /**
3842
+ * A free-form reference string set by the sender, to help identify the transfer.
3843
+ */
3295
3844
  beneficiary_reference: string | null;
3296
3845
 
3846
+ /**
3847
+ * An Increase-constructed description of the transfer.
3848
+ */
3297
3849
  description: string;
3298
3850
 
3851
+ /**
3852
+ * A unique identifier available to the originating and receiving banks, commonly
3853
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
3854
+ * service and is helpful when debugging wires with the receiving bank.
3855
+ */
3299
3856
  input_message_accountability_data: string | null;
3300
3857
 
3858
+ /**
3859
+ * The address of the wire originator, set by the sending bank.
3860
+ */
3301
3861
  originator_address_line1: string | null;
3302
3862
 
3863
+ /**
3864
+ * The address of the wire originator, set by the sending bank.
3865
+ */
3303
3866
  originator_address_line2: string | null;
3304
3867
 
3868
+ /**
3869
+ * The address of the wire originator, set by the sending bank.
3870
+ */
3305
3871
  originator_address_line3: string | null;
3306
3872
 
3873
+ /**
3874
+ * The originator of the wire, set by the sending bank.
3875
+ */
3307
3876
  originator_name: string | null;
3308
3877
 
3878
+ /**
3879
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
3880
+ */
3309
3881
  originator_to_beneficiary_information: string | null;
3882
+
3883
+ /**
3884
+ * A free-form message set by the wire originator.
3885
+ */
3886
+ originator_to_beneficiary_information_line1: string | null;
3887
+
3888
+ /**
3889
+ * A free-form message set by the wire originator.
3890
+ */
3891
+ originator_to_beneficiary_information_line2: string | null;
3892
+
3893
+ /**
3894
+ * A free-form message set by the wire originator.
3895
+ */
3896
+ originator_to_beneficiary_information_line3: string | null;
3897
+
3898
+ /**
3899
+ * A free-form message set by the wire originator.
3900
+ */
3901
+ originator_to_beneficiary_information_line4: string | null;
3310
3902
  }
3311
3903
 
3312
3904
  /**
@@ -3372,7 +3964,7 @@ export namespace ACHTransferSimulation {
3372
3964
  */
3373
3965
  export interface InboundWireReversal {
3374
3966
  /**
3375
- * The amount that was reversed.
3967
+ * The amount that was reversed in USD cents.
3376
3968
  */
3377
3969
  amount: number;
3378
3970
 
@@ -3383,7 +3975,7 @@ export namespace ACHTransferSimulation {
3383
3975
  created_at: string;
3384
3976
 
3385
3977
  /**
3386
- * The description on the reversal message from Fedwire.
3978
+ * The description on the reversal message from Fedwire, set by the reversing bank.
3387
3979
  */
3388
3980
  description: string;
3389
3981
 
@@ -3393,7 +3985,8 @@ export namespace ACHTransferSimulation {
3393
3985
  financial_institution_to_financial_institution_information: string | null;
3394
3986
 
3395
3987
  /**
3396
- * The Fedwire cycle date for the wire reversal.
3988
+ * The Fedwire cycle date for the wire reversal. The "Fedwire day" begins at 9:00
3989
+ * PM Eastern Time on the evening before the `cycle date`.
3397
3990
  */
3398
3991
  input_cycle_date: string;
3399
3992
 
@@ -3413,7 +4006,8 @@ export namespace ACHTransferSimulation {
3413
4006
  input_source: string;
3414
4007
 
3415
4008
  /**
3416
- * The Fedwire cycle date for the wire transfer that was reversed.
4009
+ * The Fedwire cycle date for the wire transfer that is being reversed by this
4010
+ * message.
3417
4011
  */
3418
4012
  previous_message_input_cycle_date: string;
3419
4013
 
@@ -3455,41 +4049,90 @@ export namespace ACHTransferSimulation {
3455
4049
  */
3456
4050
  export interface InboundWireTransfer {
3457
4051
  /**
3458
- * The amount in the minor unit of the transaction's currency. For dollars, for
3459
- * example, this is cents.
4052
+ * The amount in USD cents.
3460
4053
  */
3461
4054
  amount: number;
3462
4055
 
4056
+ /**
4057
+ * A free-form address field set by the sender.
4058
+ */
3463
4059
  beneficiary_address_line1: string | null;
3464
4060
 
4061
+ /**
4062
+ * A free-form address field set by the sender.
4063
+ */
3465
4064
  beneficiary_address_line2: string | null;
3466
4065
 
4066
+ /**
4067
+ * A free-form address field set by the sender.
4068
+ */
3467
4069
  beneficiary_address_line3: string | null;
3468
4070
 
4071
+ /**
4072
+ * A name set by the sender.
4073
+ */
3469
4074
  beneficiary_name: string | null;
3470
4075
 
4076
+ /**
4077
+ * A free-form reference string set by the sender, to help identify the transfer.
4078
+ */
3471
4079
  beneficiary_reference: string | null;
3472
4080
 
4081
+ /**
4082
+ * An Increase-constructed description of the transfer.
4083
+ */
3473
4084
  description: string;
3474
4085
 
4086
+ /**
4087
+ * A unique identifier available to the originating and receiving banks, commonly
4088
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
4089
+ * service and is helpful when debugging wires with the originating bank.
4090
+ */
3475
4091
  input_message_accountability_data: string | null;
3476
4092
 
4093
+ /**
4094
+ * The address of the wire originator, set by the sending bank.
4095
+ */
3477
4096
  originator_address_line1: string | null;
3478
4097
 
4098
+ /**
4099
+ * The address of the wire originator, set by the sending bank.
4100
+ */
3479
4101
  originator_address_line2: string | null;
3480
4102
 
4103
+ /**
4104
+ * The address of the wire originator, set by the sending bank.
4105
+ */
3481
4106
  originator_address_line3: string | null;
3482
4107
 
4108
+ /**
4109
+ * The originator of the wire, set by the sending bank.
4110
+ */
3483
4111
  originator_name: string | null;
3484
4112
 
4113
+ /**
4114
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
4115
+ */
3485
4116
  originator_to_beneficiary_information: string | null;
3486
4117
 
4118
+ /**
4119
+ * A free-form message set by the wire originator.
4120
+ */
3487
4121
  originator_to_beneficiary_information_line1: string | null;
3488
4122
 
4123
+ /**
4124
+ * A free-form message set by the wire originator.
4125
+ */
3489
4126
  originator_to_beneficiary_information_line2: string | null;
3490
4127
 
4128
+ /**
4129
+ * A free-form message set by the wire originator.
4130
+ */
3491
4131
  originator_to_beneficiary_information_line3: string | null;
3492
4132
 
4133
+ /**
4134
+ * A free-form message set by the wire originator.
4135
+ */
3493
4136
  originator_to_beneficiary_information_line4: string | null;
3494
4137
  }
3495
4138
 
@@ -3558,6 +4201,9 @@ export namespace ACHTransferSimulation {
3558
4201
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
3559
4202
 
3560
4203
  /**
4204
+ * An Internal Source is a transaction between you and Increase. This describes the
4205
+ * reason for the transaction.
4206
+ *
3561
4207
  * - `account_closure` - Account closure
3562
4208
  * - `bank_migration` - Bank migration
3563
4209
  * - `cashback` - Cashback
@@ -3656,6 +4302,9 @@ export namespace ACHTransferSimulation {
3656
4302
  */
3657
4303
  routing_number: string;
3658
4304
 
4305
+ /**
4306
+ * The identifier of the Wire Transfer that led to this Transaction.
4307
+ */
3659
4308
  transfer_id: string;
3660
4309
  }
3661
4310
 
@@ -3664,6 +4313,9 @@ export namespace ACHTransferSimulation {
3664
4313
  * response if and only if `category` is equal to `wire_transfer_rejection`.
3665
4314
  */
3666
4315
  export interface WireTransferRejection {
4316
+ /**
4317
+ * The identifier of the Wire Transfer that led to this Transaction.
4318
+ */
3667
4319
  transfer_id: string;
3668
4320
  }
3669
4321
  }
@@ -3747,7 +4399,7 @@ export interface ACHTransferReturnParams {
3747
4399
  * - `enr_invalid_individual_name` - Code R45. The individual name field was
3748
4400
  * invalid.
3749
4401
  * - `returned_per_odfi_request` - Code R06. The originating financial institution
3750
- * reversed the transfer.
4402
+ * asked for this transfer to be returned.
3751
4403
  * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
3752
4404
  * supervisor has limited their participation.
3753
4405
  * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
@@ -3834,7 +4486,7 @@ export interface ACHTransferReturnParams {
3834
4486
  * bank disputes that an earlier `duplicate_entry` return was actually a
3835
4487
  * duplicate.
3836
4488
  * - `return_of_erroneous_or_reversing_debit` - Code R62. A rare return reason. The
3837
- * originating bank made a mistake earlier and this return corrects it.
4489
+ * originating financial institution made a mistake and this return corrects it.
3838
4490
  * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
3839
4491
  * a malformed credit entry.
3840
4492
  * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a