increase 0.10.2 → 0.10.4

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 (281) hide show
  1. package/CHANGELOG.md +50 -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 +3 -2
  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 -5
  55. package/index.d.ts +2 -5
  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/ach-prenotifications.d.ts +219 -3
  64. package/resources/ach-prenotifications.d.ts.map +1 -1
  65. package/resources/ach-prenotifications.js.map +1 -1
  66. package/resources/ach-prenotifications.mjs.map +1 -1
  67. package/resources/ach-transfers.d.ts +14 -9
  68. package/resources/ach-transfers.d.ts.map +1 -1
  69. package/resources/ach-transfers.js.map +1 -1
  70. package/resources/ach-transfers.mjs.map +1 -1
  71. package/resources/bookkeeping-entry-sets.d.ts +1 -1
  72. package/resources/card-profiles.d.ts +1 -1
  73. package/resources/card-purchase-supplements.d.ts +2 -2
  74. package/resources/check-deposits.d.ts +3 -0
  75. package/resources/check-deposits.d.ts.map +1 -1
  76. package/resources/check-deposits.js.map +1 -1
  77. package/resources/check-deposits.mjs.map +1 -1
  78. package/resources/check-transfers.d.ts +6 -0
  79. package/resources/check-transfers.d.ts.map +1 -1
  80. package/resources/check-transfers.js.map +1 -1
  81. package/resources/check-transfers.mjs.map +1 -1
  82. package/resources/declined-transactions.d.ts +282 -19
  83. package/resources/declined-transactions.d.ts.map +1 -1
  84. package/resources/declined-transactions.js.map +1 -1
  85. package/resources/declined-transactions.mjs.map +1 -1
  86. package/resources/digital-wallet-tokens.d.ts +2 -1
  87. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  88. package/resources/digital-wallet-tokens.js.map +1 -1
  89. package/resources/digital-wallet-tokens.mjs.map +1 -1
  90. package/resources/entities/beneficial-owners.d.ts +51 -0
  91. package/resources/entities/beneficial-owners.d.ts.map +1 -1
  92. package/resources/entities/beneficial-owners.js +6 -0
  93. package/resources/entities/beneficial-owners.js.map +1 -1
  94. package/resources/entities/beneficial-owners.mjs +6 -0
  95. package/resources/entities/beneficial-owners.mjs.map +1 -1
  96. package/resources/entities/entities.d.ts +45 -1
  97. package/resources/entities/entities.d.ts.map +1 -1
  98. package/resources/entities/entities.js +6 -0
  99. package/resources/entities/entities.js.map +1 -1
  100. package/resources/entities/entities.mjs +6 -0
  101. package/resources/entities/entities.mjs.map +1 -1
  102. package/resources/entities/index.d.ts +9 -1
  103. package/resources/entities/index.d.ts.map +1 -1
  104. package/resources/entities/index.js.map +1 -1
  105. package/resources/entities/index.mjs.map +1 -1
  106. package/resources/external-accounts.d.ts +4 -0
  107. package/resources/external-accounts.d.ts.map +1 -1
  108. package/resources/external-accounts.js.map +1 -1
  109. package/resources/external-accounts.mjs.map +1 -1
  110. package/resources/inbound-ach-transfers.d.ts +57 -9
  111. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  112. package/resources/inbound-ach-transfers.js +11 -2
  113. package/resources/inbound-ach-transfers.js.map +1 -1
  114. package/resources/inbound-ach-transfers.mjs +11 -2
  115. package/resources/inbound-ach-transfers.mjs.map +1 -1
  116. package/resources/index.d.ts +9 -7
  117. package/resources/index.d.ts.map +1 -1
  118. package/resources/index.js +0 -15
  119. package/resources/index.js.map +1 -1
  120. package/resources/index.mjs +0 -1
  121. package/resources/index.mjs.map +1 -1
  122. package/resources/pending-transactions.d.ts +19 -6
  123. package/resources/pending-transactions.d.ts.map +1 -1
  124. package/resources/pending-transactions.js.map +1 -1
  125. package/resources/pending-transactions.mjs.map +1 -1
  126. package/resources/real-time-decisions.d.ts +16 -9
  127. package/resources/real-time-decisions.d.ts.map +1 -1
  128. package/resources/real-time-decisions.js.map +1 -1
  129. package/resources/real-time-decisions.mjs.map +1 -1
  130. package/resources/simulations/ach-transfers.d.ts +686 -35
  131. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  132. package/resources/simulations/ach-transfers.js.map +1 -1
  133. package/resources/simulations/ach-transfers.mjs.map +1 -1
  134. package/resources/simulations/cards.d.ts +301 -25
  135. package/resources/simulations/cards.d.ts.map +1 -1
  136. package/resources/simulations/cards.js.map +1 -1
  137. package/resources/simulations/cards.mjs.map +1 -1
  138. package/resources/simulations/interest-payments.d.ts +402 -14
  139. package/resources/simulations/interest-payments.d.ts.map +1 -1
  140. package/resources/simulations/interest-payments.js.map +1 -1
  141. package/resources/simulations/interest-payments.mjs.map +1 -1
  142. package/resources/simulations/real-time-payments-transfers.d.ts +684 -33
  143. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  144. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  145. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  146. package/resources/simulations/wire-transfers.d.ts +402 -14
  147. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  148. package/resources/simulations/wire-transfers.js.map +1 -1
  149. package/resources/simulations/wire-transfers.mjs.map +1 -1
  150. package/resources/transactions.d.ts +402 -14
  151. package/resources/transactions.d.ts.map +1 -1
  152. package/resources/transactions.js.map +1 -1
  153. package/resources/transactions.mjs.map +1 -1
  154. package/resources/wire-transfers.d.ts +7 -5
  155. package/resources/wire-transfers.d.ts.map +1 -1
  156. package/resources/wire-transfers.js +1 -1
  157. package/resources/wire-transfers.js.map +1 -1
  158. package/resources/wire-transfers.mjs +1 -1
  159. package/resources/wire-transfers.mjs.map +1 -1
  160. package/src/_shims/ReadableStream.d.ts +5 -5
  161. package/src/_shims/agent.ts +1 -1
  162. package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +8 -8
  163. package/src/_shims/fetch.d.ts +10 -10
  164. package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
  165. package/src/_shims/fileFromPath.ts +2 -2
  166. package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
  167. package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
  168. package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
  169. package/src/_shims/getMultipartRequestOptions.ts +3 -3
  170. package/src/core.ts +12 -11
  171. package/src/error.ts +3 -3
  172. package/src/index.ts +9 -13
  173. package/src/pagination.ts +2 -2
  174. package/src/resource.ts +1 -1
  175. package/src/resources/account-numbers.ts +5 -5
  176. package/src/resources/account-statements.ts +5 -5
  177. package/src/resources/account-transfers.ts +5 -5
  178. package/src/resources/accounts.ts +5 -5
  179. package/src/resources/ach-prenotifications.ts +224 -8
  180. package/src/resources/ach-transfers.ts +19 -14
  181. package/src/resources/balance-lookups.ts +3 -3
  182. package/src/resources/bookkeeping-accounts.ts +5 -5
  183. package/src/resources/bookkeeping-entries.ts +5 -5
  184. package/src/resources/bookkeeping-entry-sets.ts +4 -4
  185. package/src/resources/card-disputes.ts +5 -5
  186. package/src/resources/card-profiles.ts +6 -6
  187. package/src/resources/card-purchase-supplements.ts +7 -7
  188. package/src/resources/cards.ts +5 -5
  189. package/src/resources/check-deposits.ts +8 -5
  190. package/src/resources/check-transfers.ts +12 -5
  191. package/src/resources/declined-transactions.ts +287 -24
  192. package/src/resources/digital-wallet-tokens.ts +7 -6
  193. package/src/resources/documents.ts +5 -5
  194. package/src/resources/entities/beneficial-owners.ts +66 -4
  195. package/src/resources/entities/entities.ts +61 -8
  196. package/src/resources/entities/index.ts +11 -3
  197. package/src/resources/entities/supplemental-documents.ts +5 -5
  198. package/src/resources/event-subscriptions.ts +5 -5
  199. package/src/resources/events.ts +5 -5
  200. package/src/resources/exports.ts +5 -5
  201. package/src/resources/external-accounts.ts +10 -5
  202. package/src/resources/files.ts +6 -6
  203. package/src/resources/groups.ts +3 -3
  204. package/src/resources/inbound-ach-transfers.ts +75 -15
  205. package/src/resources/inbound-wire-drawdown-requests.ts +5 -5
  206. package/src/resources/index.ts +54 -45
  207. package/src/resources/limits.ts +5 -5
  208. package/src/resources/oauth-connections.ts +5 -5
  209. package/src/resources/pending-transactions.ts +24 -11
  210. package/src/resources/programs.ts +5 -5
  211. package/src/resources/real-time-decisions.ts +20 -12
  212. package/src/resources/real-time-payments-transfers.ts +5 -5
  213. package/src/resources/routing-numbers.ts +4 -4
  214. package/src/resources/simulations/account-statements.ts +4 -4
  215. package/src/resources/simulations/account-transfers.ts +3 -3
  216. package/src/resources/simulations/ach-transfers.ts +699 -41
  217. package/src/resources/simulations/card-disputes.ts +4 -4
  218. package/src/resources/simulations/card-profiles.ts +3 -3
  219. package/src/resources/simulations/card-refunds.ts +4 -4
  220. package/src/resources/simulations/cards.ts +306 -30
  221. package/src/resources/simulations/check-deposits.ts +3 -3
  222. package/src/resources/simulations/check-transfers.ts +3 -3
  223. package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
  224. package/src/resources/simulations/documents.ts +4 -4
  225. package/src/resources/simulations/inbound-funds-holds.ts +3 -3
  226. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
  227. package/src/resources/simulations/index.ts +18 -18
  228. package/src/resources/simulations/interest-payments.ts +413 -18
  229. package/src/resources/simulations/programs.ts +4 -4
  230. package/src/resources/simulations/real-time-payments-transfers.ts +697 -39
  231. package/src/resources/simulations/simulations.ts +19 -19
  232. package/src/resources/simulations/wire-transfers.ts +413 -18
  233. package/src/resources/transactions.ts +415 -20
  234. package/src/resources/wire-drawdown-requests.ts +5 -5
  235. package/src/resources/wire-transfers.ts +12 -10
  236. package/src/tsconfig.json +11 -0
  237. package/src/uploads.ts +6 -6
  238. package/src/version.ts +1 -1
  239. package/uploads.d.ts +1 -1
  240. package/uploads.d.ts.map +1 -1
  241. package/uploads.js +4 -4
  242. package/uploads.js.map +1 -1
  243. package/uploads.mjs +1 -1
  244. package/uploads.mjs.map +1 -1
  245. package/version.d.ts +1 -1
  246. package/version.js +1 -1
  247. package/version.mjs +1 -1
  248. package/_shims/ReadableStream.node.d.ts.map +0 -1
  249. package/_shims/ReadableStream.node.js.map +0 -1
  250. package/_shims/ReadableStream.node.mjs.map +0 -1
  251. package/_shims/agent.node.d.ts.map +0 -1
  252. package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
  253. package/_shims/node-readable.node.js.map +0 -1
  254. package/_shims/node-readable.node.mjs.map +0 -1
  255. package/resources/inbound-ach-transfer-returns.d.ts +0 -115
  256. package/resources/inbound-ach-transfer-returns.d.ts.map +0 -1
  257. package/resources/inbound-ach-transfer-returns.js +0 -31
  258. package/resources/inbound-ach-transfer-returns.js.map +0 -1
  259. package/resources/inbound-ach-transfer-returns.mjs +0 -24
  260. package/resources/inbound-ach-transfer-returns.mjs.map +0 -1
  261. package/src/_shims/fetch.deno.ts +0 -23
  262. package/src/_shims/formdata.deno.ts +0 -16
  263. package/src/resources/inbound-ach-transfer-returns.ts +0 -145
  264. /package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +0 -0
  265. /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
  266. /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  267. /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
  268. /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
  269. /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  270. /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
  271. /package/_shims/{formdata.js → form-data.js} +0 -0
  272. /package/_shims/{formdata.mjs → form-data.mjs} +0 -0
  273. /package/src/_shims/{ReadableStream.node.ts → ReadableStream-node.ts} +0 -0
  274. /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
  275. /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
  276. /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  277. /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
  278. /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  279. /package/src/_shims/{formdata.js → form-data.js} +0 -0
  280. /package/src/_shims/{formdata.mjs → form-data.mjs} +0 -0
  281. /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.
@@ -344,8 +350,8 @@ export namespace ACHTransferSimulation {
344
350
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
345
351
 
346
352
  /**
347
- * If the authorization was attempted using a Digital Wallet Token (such as an
348
- * Apple Pay purchase), the identifier of the token that was used.
353
+ * If the authorization was made via a Digital Wallet Token (such as an Apple Pay
354
+ * purchase), the identifier of the token that was used.
349
355
  */
350
356
  digital_wallet_token_id: string | null;
351
357
 
@@ -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,6 +559,11 @@ 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
  /**
@@ -679,74 +690,279 @@ export namespace ACHTransferSimulation {
679
690
  */
680
691
  amount: number;
681
692
 
693
+ /**
694
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
695
+ * country code of the destination country.
696
+ */
682
697
  destination_country_code: string;
683
698
 
699
+ /**
700
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
701
+ * destination bank account.
702
+ */
684
703
  destination_currency_code: string;
685
704
 
686
- foreign_exchange_indicator: string;
705
+ /**
706
+ * A description of how the foreign exchange rate was calculated.
707
+ *
708
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
709
+ * The settled amount in USD was converted using the exchange rate.
710
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
711
+ * originator's amount was variable; known only after the foreign exchange
712
+ * conversion.
713
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
714
+ * USD. There is no foreign exchange conversion.
715
+ */
716
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
687
717
 
718
+ /**
719
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
720
+ * reference to a well-known rate.
721
+ */
688
722
  foreign_exchange_reference: string | null;
689
723
 
690
- foreign_exchange_reference_indicator: string;
724
+ /**
725
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
726
+ * this Transaction.
727
+ *
728
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
729
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
730
+ * well-known foreign exchange rate.
731
+ * - `blank` - There is no foreign exchange for this transfer, so the
732
+ * `foreign_exchange_reference` field is blank.
733
+ */
734
+ foreign_exchange_reference_indicator:
735
+ | 'foreign_exchange_rate'
736
+ | 'foreign_exchange_reference_number'
737
+ | 'blank';
691
738
 
739
+ /**
740
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
741
+ * example, this is cents.
742
+ */
692
743
  foreign_payment_amount: number;
693
744
 
745
+ /**
746
+ * A reference number in the foreign banking infrastructure.
747
+ */
694
748
  foreign_trace_number: string | null;
695
749
 
696
- international_transaction_type_code: string;
697
-
750
+ /**
751
+ * The type of transfer. Set by the originator.
752
+ *
753
+ * - `annuity` - Sent as `ANN` in the Nacha file.
754
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
755
+ * - `deposit` - Sent as `DEP` in the Nacha file.
756
+ * - `loan` - Sent as `LOA` in the Nacha file.
757
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
758
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
759
+ * - `pension` - Sent as `PEN` in the Nacha file.
760
+ * - `remittance` - Sent as `REM` in the Nacha file.
761
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
762
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
763
+ * - `tax` - Sent as `TAX` in the Nacha file.
764
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
765
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
766
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
767
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
768
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
769
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
770
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
771
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
772
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
773
+ */
774
+ international_transaction_type_code:
775
+ | 'annuity'
776
+ | 'business_or_commercial'
777
+ | 'deposit'
778
+ | 'loan'
779
+ | 'miscellaneous'
780
+ | 'mortgage'
781
+ | 'pension'
782
+ | 'remittance'
783
+ | 'rent_or_lease'
784
+ | 'salary_or_payroll'
785
+ | 'tax'
786
+ | 'accounts_receivable'
787
+ | 'back_office_conversion'
788
+ | 'machine_transfer'
789
+ | 'point_of_purchase'
790
+ | 'point_of_sale'
791
+ | 'represented_check'
792
+ | 'shared_network_transaction'
793
+ | 'telphone_initiated'
794
+ | 'internet_initiated';
795
+
796
+ /**
797
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
798
+ * originating bank account.
799
+ */
698
800
  originating_currency_code: string;
699
801
 
802
+ /**
803
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
804
+ * country code of the originating branch country.
805
+ */
700
806
  originating_depository_financial_institution_branch_country: string;
701
807
 
808
+ /**
809
+ * An identifier for the originating bank. One of an International Bank Account
810
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
811
+ * domestic identifier like a US Routing Number.
812
+ */
702
813
  originating_depository_financial_institution_id: string;
703
814
 
704
- originating_depository_financial_institution_id_qualifier: string;
815
+ /**
816
+ * An instruction of how to interpret the
817
+ * `originating_depository_financial_institution_id` field for this Transaction.
818
+ *
819
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
820
+ * US, for example, this is the American Banking Association (ABA) routing
821
+ * number.
822
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
823
+ * - `iban` - An International Bank Account Number.
824
+ */
825
+ originating_depository_financial_institution_id_qualifier:
826
+ | 'national_clearing_system_number'
827
+ | 'bic_code'
828
+ | 'iban';
705
829
 
830
+ /**
831
+ * The name of the originating bank. Sometimes this will refer to an American bank
832
+ * and obscure the correspondent foreign bank.
833
+ */
706
834
  originating_depository_financial_institution_name: string;
707
835
 
836
+ /**
837
+ * A portion of the originator address. This may be incomplete.
838
+ */
708
839
  originator_city: string;
709
840
 
841
+ /**
842
+ * A description field set by the originator.
843
+ */
710
844
  originator_company_entry_description: string;
711
845
 
846
+ /**
847
+ * A portion of the originator address. The
848
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
849
+ * code of the originator country.
850
+ */
712
851
  originator_country: string;
713
852
 
853
+ /**
854
+ * An identifier for the originating company. This is generally stable across
855
+ * multiple ACH transfers.
856
+ */
714
857
  originator_identification: string;
715
858
 
859
+ /**
860
+ * Either the name of the originator or an intermediary money transmitter.
861
+ */
716
862
  originator_name: string;
717
863
 
864
+ /**
865
+ * A portion of the originator address. This may be incomplete.
866
+ */
718
867
  originator_postal_code: string | null;
719
868
 
869
+ /**
870
+ * A portion of the originator address. This may be incomplete.
871
+ */
720
872
  originator_state_or_province: string | null;
721
873
 
874
+ /**
875
+ * A portion of the originator address. This may be incomplete.
876
+ */
722
877
  originator_street_address: string;
723
878
 
879
+ /**
880
+ * A description field set by the originator.
881
+ */
724
882
  payment_related_information: string | null;
725
883
 
884
+ /**
885
+ * A description field set by the originator.
886
+ */
726
887
  payment_related_information2: string | null;
727
888
 
889
+ /**
890
+ * A portion of the receiver address. This may be incomplete.
891
+ */
728
892
  receiver_city: string;
729
893
 
894
+ /**
895
+ * A portion of the receiver address. The
896
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
897
+ * code of the receiver country.
898
+ */
730
899
  receiver_country: string;
731
900
 
901
+ /**
902
+ * An identification number the originator uses for the receiver.
903
+ */
732
904
  receiver_identification_number: string | null;
733
905
 
906
+ /**
907
+ * A portion of the receiver address. This may be incomplete.
908
+ */
734
909
  receiver_postal_code: string | null;
735
910
 
911
+ /**
912
+ * A portion of the receiver address. This may be incomplete.
913
+ */
736
914
  receiver_state_or_province: string | null;
737
915
 
916
+ /**
917
+ * A portion of the receiver address. This may be incomplete.
918
+ */
738
919
  receiver_street_address: string;
739
920
 
921
+ /**
922
+ * The name of the receiver of the transfer. This is not verified by Increase.
923
+ */
740
924
  receiving_company_or_individual_name: string;
741
925
 
926
+ /**
927
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
928
+ * country code of the receiving bank country.
929
+ */
742
930
  receiving_depository_financial_institution_country: string;
743
931
 
932
+ /**
933
+ * An identifier for the receiving bank. One of an International Bank Account
934
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
935
+ * domestic identifier like a US Routing Number.
936
+ */
744
937
  receiving_depository_financial_institution_id: string;
745
938
 
746
- receiving_depository_financial_institution_id_qualifier: string;
939
+ /**
940
+ * An instruction of how to interpret the
941
+ * `receiving_depository_financial_institution_id` field for this Transaction.
942
+ *
943
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
944
+ * US, for example, this is the American Banking Association (ABA) routing
945
+ * number.
946
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
947
+ * - `iban` - An International Bank Account Number.
948
+ */
949
+ receiving_depository_financial_institution_id_qualifier:
950
+ | 'national_clearing_system_number'
951
+ | 'bic_code'
952
+ | 'iban';
747
953
 
954
+ /**
955
+ * The name of the receiving bank, as set by the sending financial institution.
956
+ */
748
957
  receiving_depository_financial_institution_name: string;
749
958
 
959
+ /**
960
+ * A 15 digit number recorded in the Nacha file and available to both the
961
+ * originating and receiving bank. Along with the amount, date, and originating
962
+ * routing number, this can be used to identify the ACH transfer at either bank.
963
+ * ACH trace numbers are not unique, but are
964
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
965
+ */
750
966
  trace_number: string;
751
967
  }
752
968
 
@@ -761,34 +977,81 @@ export namespace ACHTransferSimulation {
761
977
  */
762
978
  amount: number;
763
979
 
980
+ /**
981
+ * A free-form address field set by the sender.
982
+ */
764
983
  beneficiary_address_line1: string | null;
765
984
 
985
+ /**
986
+ * A free-form address field set by the sender.
987
+ */
766
988
  beneficiary_address_line2: string | null;
767
989
 
990
+ /**
991
+ * A free-form address field set by the sender.
992
+ */
768
993
  beneficiary_address_line3: string | null;
769
994
 
995
+ /**
996
+ * A name set by the sender.
997
+ */
770
998
  beneficiary_name: string | null;
771
999
 
1000
+ /**
1001
+ * A free-form reference string set by the sender, to help identify the transfer.
1002
+ */
772
1003
  beneficiary_reference: string | null;
773
1004
 
1005
+ /**
1006
+ * An Increase-constructed description of the declined transaction.
1007
+ */
774
1008
  description: string;
775
1009
 
1010
+ /**
1011
+ * A unique identifier available to the originating and receiving banks, commonly
1012
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
1013
+ * service and is helpful when debugging wires with the originating bank.
1014
+ */
776
1015
  input_message_accountability_data: string | null;
777
1016
 
1017
+ /**
1018
+ * The address of the wire originator, set by the sending bank.
1019
+ */
778
1020
  originator_address_line1: string | null;
779
1021
 
1022
+ /**
1023
+ * The address of the wire originator, set by the sending bank.
1024
+ */
780
1025
  originator_address_line2: string | null;
781
1026
 
1027
+ /**
1028
+ * The address of the wire originator, set by the sending bank.
1029
+ */
782
1030
  originator_address_line3: string | null;
783
1031
 
1032
+ /**
1033
+ * The originator of the wire, set by the sending bank.
1034
+ */
784
1035
  originator_name: string | null;
785
1036
 
1037
+ /**
1038
+ * A free-form message set by the wire originator.
1039
+ */
786
1040
  originator_to_beneficiary_information_line1: string | null;
787
1041
 
1042
+ /**
1043
+ * A free-form message set by the wire originator.
1044
+ */
788
1045
  originator_to_beneficiary_information_line2: string | null;
789
1046
 
1047
+ /**
1048
+ * A free-form message set by the wire originator.
1049
+ */
790
1050
  originator_to_beneficiary_information_line3: string | null;
791
1051
 
1052
+ /**
1053
+ * A free-form message set by the wire originator.
1054
+ */
792
1055
  originator_to_beneficiary_information_line4: string | null;
793
1056
 
794
1057
  /**
@@ -1222,6 +1485,9 @@ export namespace ACHTransferSimulation {
1222
1485
  * response if and only if `category` is equal to `ach_transfer_intention`.
1223
1486
  */
1224
1487
  export interface ACHTransferIntention {
1488
+ /**
1489
+ * The account number for the destination account.
1490
+ */
1225
1491
  account_number: string;
1226
1492
 
1227
1493
  /**
@@ -1230,8 +1496,15 @@ export namespace ACHTransferSimulation {
1230
1496
  */
1231
1497
  amount: number;
1232
1498
 
1499
+ /**
1500
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
1501
+ * destination account.
1502
+ */
1233
1503
  routing_number: string;
1234
1504
 
1505
+ /**
1506
+ * A description set when the ACH Transfer was created.
1507
+ */
1235
1508
  statement_descriptor: string;
1236
1509
 
1237
1510
  /**
@@ -1303,7 +1576,7 @@ export namespace ACHTransferSimulation {
1303
1576
  * - `enr_invalid_individual_name` - Code R45. The individual name field was
1304
1577
  * invalid.
1305
1578
  * - `returned_per_odfi_request` - Code R06. The originating financial institution
1306
- * reversed the transfer.
1579
+ * asked for this transfer to be returned.
1307
1580
  * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
1308
1581
  * supervisor has limited their participation.
1309
1582
  * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
@@ -1390,7 +1663,7 @@ export namespace ACHTransferSimulation {
1390
1663
  * bank disputes that an earlier `duplicate_entry` return was actually a
1391
1664
  * duplicate.
1392
1665
  * - `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.
1666
+ * originating financial institution made a mistake and this return corrects it.
1394
1667
  * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
1395
1668
  * a malformed credit entry.
1396
1669
  * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a
@@ -2879,6 +3152,9 @@ export namespace ACHTransferSimulation {
2879
3152
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2880
3153
 
2881
3154
  /**
3155
+ * Why this check was returned by the bank holding the account it was drawn
3156
+ * against.
3157
+ *
2882
3158
  * - `ach_conversion_not_supported` - The check doesn't allow ACH conversion.
2883
3159
  * - `closed_account` - The account is closed.
2884
3160
  * - `duplicate_submission` - The check has already been deposited.
@@ -2930,6 +3206,13 @@ export namespace ACHTransferSimulation {
2930
3206
  */
2931
3207
  back_image_file_id: string | null;
2932
3208
 
3209
+ /**
3210
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
3211
+ * bank depositing this check. In some rare cases, this is not transmitted via
3212
+ * Check21 and the value will be null.
3213
+ */
3214
+ bank_of_first_deposit_routing_number: string | null;
3215
+
2933
3216
  /**
2934
3217
  * When the check was deposited.
2935
3218
  */
@@ -3086,21 +3369,56 @@ export namespace ACHTransferSimulation {
3086
3369
  */
3087
3370
  amount: number;
3088
3371
 
3372
+ /**
3373
+ * The description of the date of the transfer, usually in the format `YYMMDD`.
3374
+ */
3089
3375
  originator_company_descriptive_date: string | null;
3090
3376
 
3377
+ /**
3378
+ * Data set by the originator.
3379
+ */
3091
3380
  originator_company_discretionary_data: string | null;
3092
3381
 
3382
+ /**
3383
+ * An informational description of the transfer.
3384
+ */
3093
3385
  originator_company_entry_description: string;
3094
3386
 
3387
+ /**
3388
+ * An identifier for the originating company. This is generally, but not always, a
3389
+ * stable identifier across multiple transfers.
3390
+ */
3095
3391
  originator_company_id: string;
3096
3392
 
3393
+ /**
3394
+ * A name set by the originator to identify themselves.
3395
+ */
3097
3396
  originator_company_name: string;
3098
3397
 
3398
+ /**
3399
+ * The originator's identifier for the transfer receipient.
3400
+ */
3099
3401
  receiver_id_number: string | null;
3100
3402
 
3403
+ /**
3404
+ * The name of the transfer recipient. This value is informational and not verified
3405
+ * by Increase.
3406
+ */
3101
3407
  receiver_name: string | null;
3102
3408
 
3409
+ /**
3410
+ * A 15 digit number recorded in the Nacha file and available to both the
3411
+ * originating and receiving bank. Along with the amount, date, and originating
3412
+ * routing number, this can be used to identify the ACH transfer at either bank.
3413
+ * ACH trace numbers are not unique, but are
3414
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
3415
+ */
3103
3416
  trace_number: string;
3417
+
3418
+ /**
3419
+ * The inbound ach transfer's identifier.
3420
+ */
3421
+ transfer_id: string;
3104
3422
  }
3105
3423
 
3106
3424
  /**
@@ -3114,10 +3432,27 @@ export namespace ACHTransferSimulation {
3114
3432
  */
3115
3433
  amount: number;
3116
3434
 
3435
+ /**
3436
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
3437
+ * bank depositing this check. In some rare cases, this is not transmitted via
3438
+ * Check21 and the value will be null.
3439
+ */
3440
+ bank_of_first_deposit_routing_number: string | null;
3441
+
3442
+ /**
3443
+ * The front image of the check. This is a black and white TIFF image file.
3444
+ */
3117
3445
  check_front_image_file_id: string | null;
3118
3446
 
3447
+ /**
3448
+ * The number of the check. This field is set by the depositing bank and can be
3449
+ * unreliable.
3450
+ */
3119
3451
  check_number: string | null;
3120
3452
 
3453
+ /**
3454
+ * The rear image of the check. This is a black and white TIFF image file.
3455
+ */
3121
3456
  check_rear_image_file_id: string | null;
3122
3457
 
3123
3458
  /**
@@ -3146,74 +3481,279 @@ export namespace ACHTransferSimulation {
3146
3481
  */
3147
3482
  amount: number;
3148
3483
 
3484
+ /**
3485
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3486
+ * country code of the destination country.
3487
+ */
3149
3488
  destination_country_code: string;
3150
3489
 
3490
+ /**
3491
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
3492
+ * destination bank account.
3493
+ */
3151
3494
  destination_currency_code: string;
3152
3495
 
3153
- foreign_exchange_indicator: string;
3496
+ /**
3497
+ * A description of how the foreign exchange rate was calculated.
3498
+ *
3499
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
3500
+ * The settled amount in USD was converted using the exchange rate.
3501
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
3502
+ * originator's amount was variable; known only after the foreign exchange
3503
+ * conversion.
3504
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
3505
+ * USD. There is no foreign exchange conversion.
3506
+ */
3507
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
3154
3508
 
3509
+ /**
3510
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
3511
+ * reference to a well-known rate.
3512
+ */
3155
3513
  foreign_exchange_reference: string | null;
3156
3514
 
3157
- foreign_exchange_reference_indicator: string;
3515
+ /**
3516
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
3517
+ * this Transaction.
3518
+ *
3519
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
3520
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
3521
+ * well-known foreign exchange rate.
3522
+ * - `blank` - There is no foreign exchange for this transfer, so the
3523
+ * `foreign_exchange_reference` field is blank.
3524
+ */
3525
+ foreign_exchange_reference_indicator:
3526
+ | 'foreign_exchange_rate'
3527
+ | 'foreign_exchange_reference_number'
3528
+ | 'blank';
3158
3529
 
3530
+ /**
3531
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
3532
+ * example, this is cents.
3533
+ */
3159
3534
  foreign_payment_amount: number;
3160
3535
 
3536
+ /**
3537
+ * A reference number in the foreign banking infrastructure.
3538
+ */
3161
3539
  foreign_trace_number: string | null;
3162
3540
 
3163
- international_transaction_type_code: string;
3164
-
3541
+ /**
3542
+ * The type of transfer. Set by the originator.
3543
+ *
3544
+ * - `annuity` - Sent as `ANN` in the Nacha file.
3545
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
3546
+ * - `deposit` - Sent as `DEP` in the Nacha file.
3547
+ * - `loan` - Sent as `LOA` in the Nacha file.
3548
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
3549
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
3550
+ * - `pension` - Sent as `PEN` in the Nacha file.
3551
+ * - `remittance` - Sent as `REM` in the Nacha file.
3552
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
3553
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
3554
+ * - `tax` - Sent as `TAX` in the Nacha file.
3555
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
3556
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
3557
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
3558
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
3559
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
3560
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
3561
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
3562
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
3563
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
3564
+ */
3565
+ international_transaction_type_code:
3566
+ | 'annuity'
3567
+ | 'business_or_commercial'
3568
+ | 'deposit'
3569
+ | 'loan'
3570
+ | 'miscellaneous'
3571
+ | 'mortgage'
3572
+ | 'pension'
3573
+ | 'remittance'
3574
+ | 'rent_or_lease'
3575
+ | 'salary_or_payroll'
3576
+ | 'tax'
3577
+ | 'accounts_receivable'
3578
+ | 'back_office_conversion'
3579
+ | 'machine_transfer'
3580
+ | 'point_of_purchase'
3581
+ | 'point_of_sale'
3582
+ | 'represented_check'
3583
+ | 'shared_network_transaction'
3584
+ | 'telphone_initiated'
3585
+ | 'internet_initiated';
3586
+
3587
+ /**
3588
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
3589
+ * originating bank account.
3590
+ */
3165
3591
  originating_currency_code: string;
3166
3592
 
3593
+ /**
3594
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3595
+ * country code of the originating branch country.
3596
+ */
3167
3597
  originating_depository_financial_institution_branch_country: string;
3168
3598
 
3599
+ /**
3600
+ * An identifier for the originating bank. One of an International Bank Account
3601
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
3602
+ * domestic identifier like a US Routing Number.
3603
+ */
3169
3604
  originating_depository_financial_institution_id: string;
3170
3605
 
3171
- originating_depository_financial_institution_id_qualifier: string;
3606
+ /**
3607
+ * An instruction of how to interpret the
3608
+ * `originating_depository_financial_institution_id` field for this Transaction.
3609
+ *
3610
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
3611
+ * US, for example, this is the American Banking Association (ABA) routing
3612
+ * number.
3613
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
3614
+ * - `iban` - An International Bank Account Number.
3615
+ */
3616
+ originating_depository_financial_institution_id_qualifier:
3617
+ | 'national_clearing_system_number'
3618
+ | 'bic_code'
3619
+ | 'iban';
3172
3620
 
3621
+ /**
3622
+ * The name of the originating bank. Sometimes this will refer to an American bank
3623
+ * and obscure the correspondent foreign bank.
3624
+ */
3173
3625
  originating_depository_financial_institution_name: string;
3174
3626
 
3627
+ /**
3628
+ * A portion of the originator address. This may be incomplete.
3629
+ */
3175
3630
  originator_city: string;
3176
3631
 
3632
+ /**
3633
+ * A description field set by the originator.
3634
+ */
3177
3635
  originator_company_entry_description: string;
3178
3636
 
3637
+ /**
3638
+ * A portion of the originator address. The
3639
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
3640
+ * code of the originator country.
3641
+ */
3179
3642
  originator_country: string;
3180
3643
 
3644
+ /**
3645
+ * An identifier for the originating company. This is generally stable across
3646
+ * multiple ACH transfers.
3647
+ */
3181
3648
  originator_identification: string;
3182
3649
 
3650
+ /**
3651
+ * Either the name of the originator or an intermediary money transmitter.
3652
+ */
3183
3653
  originator_name: string;
3184
3654
 
3655
+ /**
3656
+ * A portion of the originator address. This may be incomplete.
3657
+ */
3185
3658
  originator_postal_code: string | null;
3186
3659
 
3660
+ /**
3661
+ * A portion of the originator address. This may be incomplete.
3662
+ */
3187
3663
  originator_state_or_province: string | null;
3188
3664
 
3665
+ /**
3666
+ * A portion of the originator address. This may be incomplete.
3667
+ */
3189
3668
  originator_street_address: string;
3190
3669
 
3670
+ /**
3671
+ * A description field set by the originator.
3672
+ */
3191
3673
  payment_related_information: string | null;
3192
3674
 
3675
+ /**
3676
+ * A description field set by the originator.
3677
+ */
3193
3678
  payment_related_information2: string | null;
3194
3679
 
3680
+ /**
3681
+ * A portion of the receiver address. This may be incomplete.
3682
+ */
3195
3683
  receiver_city: string;
3196
3684
 
3685
+ /**
3686
+ * A portion of the receiver address. The
3687
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
3688
+ * code of the receiver country.
3689
+ */
3197
3690
  receiver_country: string;
3198
3691
 
3692
+ /**
3693
+ * An identification number the originator uses for the receiver.
3694
+ */
3199
3695
  receiver_identification_number: string | null;
3200
3696
 
3697
+ /**
3698
+ * A portion of the receiver address. This may be incomplete.
3699
+ */
3201
3700
  receiver_postal_code: string | null;
3202
3701
 
3702
+ /**
3703
+ * A portion of the receiver address. This may be incomplete.
3704
+ */
3203
3705
  receiver_state_or_province: string | null;
3204
3706
 
3707
+ /**
3708
+ * A portion of the receiver address. This may be incomplete.
3709
+ */
3205
3710
  receiver_street_address: string;
3206
3711
 
3712
+ /**
3713
+ * The name of the receiver of the transfer. This is not verified by Increase.
3714
+ */
3207
3715
  receiving_company_or_individual_name: string;
3208
3716
 
3717
+ /**
3718
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3719
+ * country code of the receiving bank country.
3720
+ */
3209
3721
  receiving_depository_financial_institution_country: string;
3210
3722
 
3723
+ /**
3724
+ * An identifier for the receiving bank. One of an International Bank Account
3725
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
3726
+ * domestic identifier like a US Routing Number.
3727
+ */
3211
3728
  receiving_depository_financial_institution_id: string;
3212
3729
 
3213
- receiving_depository_financial_institution_id_qualifier: string;
3730
+ /**
3731
+ * An instruction of how to interpret the
3732
+ * `receiving_depository_financial_institution_id` field for this Transaction.
3733
+ *
3734
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
3735
+ * US, for example, this is the American Banking Association (ABA) routing
3736
+ * number.
3737
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
3738
+ * - `iban` - An International Bank Account Number.
3739
+ */
3740
+ receiving_depository_financial_institution_id_qualifier:
3741
+ | 'national_clearing_system_number'
3742
+ | 'bic_code'
3743
+ | 'iban';
3214
3744
 
3745
+ /**
3746
+ * The name of the receiving bank, as set by the sending financial institution.
3747
+ */
3215
3748
  receiving_depository_financial_institution_name: string;
3216
3749
 
3750
+ /**
3751
+ * A 15 digit number recorded in the Nacha file and available to both the
3752
+ * originating and receiving bank. Along with the amount, date, and originating
3753
+ * routing number, this can be used to identify the ACH transfer at either bank.
3754
+ * ACH trace numbers are not unique, but are
3755
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
3756
+ */
3217
3757
  trace_number: string;
3218
3758
  }
3219
3759
 
@@ -3268,7 +3808,7 @@ export namespace ACHTransferSimulation {
3268
3808
  remittance_information: string | null;
3269
3809
 
3270
3810
  /**
3271
- * The Real-Time Payments network identification of the transfer
3811
+ * The Real-Time Payments network identification of the transfer.
3272
3812
  */
3273
3813
  transaction_identification: string;
3274
3814
  }
@@ -3284,29 +3824,87 @@ export namespace ACHTransferSimulation {
3284
3824
  */
3285
3825
  amount: number;
3286
3826
 
3827
+ /**
3828
+ * A free-form address field set by the sender.
3829
+ */
3287
3830
  beneficiary_address_line1: string | null;
3288
3831
 
3832
+ /**
3833
+ * A free-form address field set by the sender.
3834
+ */
3289
3835
  beneficiary_address_line2: string | null;
3290
3836
 
3837
+ /**
3838
+ * A free-form address field set by the sender.
3839
+ */
3291
3840
  beneficiary_address_line3: string | null;
3292
3841
 
3842
+ /**
3843
+ * A name set by the sender.
3844
+ */
3293
3845
  beneficiary_name: string | null;
3294
3846
 
3847
+ /**
3848
+ * A free-form reference string set by the sender, to help identify the transfer.
3849
+ */
3295
3850
  beneficiary_reference: string | null;
3296
3851
 
3852
+ /**
3853
+ * An Increase-constructed description of the transfer.
3854
+ */
3297
3855
  description: string;
3298
3856
 
3857
+ /**
3858
+ * A unique identifier available to the originating and receiving banks, commonly
3859
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
3860
+ * service and is helpful when debugging wires with the receiving bank.
3861
+ */
3299
3862
  input_message_accountability_data: string | null;
3300
3863
 
3864
+ /**
3865
+ * The address of the wire originator, set by the sending bank.
3866
+ */
3301
3867
  originator_address_line1: string | null;
3302
3868
 
3869
+ /**
3870
+ * The address of the wire originator, set by the sending bank.
3871
+ */
3303
3872
  originator_address_line2: string | null;
3304
3873
 
3874
+ /**
3875
+ * The address of the wire originator, set by the sending bank.
3876
+ */
3305
3877
  originator_address_line3: string | null;
3306
3878
 
3879
+ /**
3880
+ * The originator of the wire, set by the sending bank.
3881
+ */
3307
3882
  originator_name: string | null;
3308
3883
 
3884
+ /**
3885
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
3886
+ */
3309
3887
  originator_to_beneficiary_information: string | null;
3888
+
3889
+ /**
3890
+ * A free-form message set by the wire originator.
3891
+ */
3892
+ originator_to_beneficiary_information_line1: string | null;
3893
+
3894
+ /**
3895
+ * A free-form message set by the wire originator.
3896
+ */
3897
+ originator_to_beneficiary_information_line2: string | null;
3898
+
3899
+ /**
3900
+ * A free-form message set by the wire originator.
3901
+ */
3902
+ originator_to_beneficiary_information_line3: string | null;
3903
+
3904
+ /**
3905
+ * A free-form message set by the wire originator.
3906
+ */
3907
+ originator_to_beneficiary_information_line4: string | null;
3310
3908
  }
3311
3909
 
3312
3910
  /**
@@ -3372,7 +3970,7 @@ export namespace ACHTransferSimulation {
3372
3970
  */
3373
3971
  export interface InboundWireReversal {
3374
3972
  /**
3375
- * The amount that was reversed.
3973
+ * The amount that was reversed in USD cents.
3376
3974
  */
3377
3975
  amount: number;
3378
3976
 
@@ -3383,7 +3981,7 @@ export namespace ACHTransferSimulation {
3383
3981
  created_at: string;
3384
3982
 
3385
3983
  /**
3386
- * The description on the reversal message from Fedwire.
3984
+ * The description on the reversal message from Fedwire, set by the reversing bank.
3387
3985
  */
3388
3986
  description: string;
3389
3987
 
@@ -3393,7 +3991,8 @@ export namespace ACHTransferSimulation {
3393
3991
  financial_institution_to_financial_institution_information: string | null;
3394
3992
 
3395
3993
  /**
3396
- * The Fedwire cycle date for the wire reversal.
3994
+ * The Fedwire cycle date for the wire reversal. The "Fedwire day" begins at 9:00
3995
+ * PM Eastern Time on the evening before the `cycle date`.
3397
3996
  */
3398
3997
  input_cycle_date: string;
3399
3998
 
@@ -3413,7 +4012,8 @@ export namespace ACHTransferSimulation {
3413
4012
  input_source: string;
3414
4013
 
3415
4014
  /**
3416
- * The Fedwire cycle date for the wire transfer that was reversed.
4015
+ * The Fedwire cycle date for the wire transfer that is being reversed by this
4016
+ * message.
3417
4017
  */
3418
4018
  previous_message_input_cycle_date: string;
3419
4019
 
@@ -3455,41 +4055,90 @@ export namespace ACHTransferSimulation {
3455
4055
  */
3456
4056
  export interface InboundWireTransfer {
3457
4057
  /**
3458
- * The amount in the minor unit of the transaction's currency. For dollars, for
3459
- * example, this is cents.
4058
+ * The amount in USD cents.
3460
4059
  */
3461
4060
  amount: number;
3462
4061
 
4062
+ /**
4063
+ * A free-form address field set by the sender.
4064
+ */
3463
4065
  beneficiary_address_line1: string | null;
3464
4066
 
4067
+ /**
4068
+ * A free-form address field set by the sender.
4069
+ */
3465
4070
  beneficiary_address_line2: string | null;
3466
4071
 
4072
+ /**
4073
+ * A free-form address field set by the sender.
4074
+ */
3467
4075
  beneficiary_address_line3: string | null;
3468
4076
 
4077
+ /**
4078
+ * A name set by the sender.
4079
+ */
3469
4080
  beneficiary_name: string | null;
3470
4081
 
4082
+ /**
4083
+ * A free-form reference string set by the sender, to help identify the transfer.
4084
+ */
3471
4085
  beneficiary_reference: string | null;
3472
4086
 
4087
+ /**
4088
+ * An Increase-constructed description of the transfer.
4089
+ */
3473
4090
  description: string;
3474
4091
 
4092
+ /**
4093
+ * A unique identifier available to the originating and receiving banks, commonly
4094
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
4095
+ * service and is helpful when debugging wires with the originating bank.
4096
+ */
3475
4097
  input_message_accountability_data: string | null;
3476
4098
 
4099
+ /**
4100
+ * The address of the wire originator, set by the sending bank.
4101
+ */
3477
4102
  originator_address_line1: string | null;
3478
4103
 
4104
+ /**
4105
+ * The address of the wire originator, set by the sending bank.
4106
+ */
3479
4107
  originator_address_line2: string | null;
3480
4108
 
4109
+ /**
4110
+ * The address of the wire originator, set by the sending bank.
4111
+ */
3481
4112
  originator_address_line3: string | null;
3482
4113
 
4114
+ /**
4115
+ * The originator of the wire, set by the sending bank.
4116
+ */
3483
4117
  originator_name: string | null;
3484
4118
 
4119
+ /**
4120
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
4121
+ */
3485
4122
  originator_to_beneficiary_information: string | null;
3486
4123
 
4124
+ /**
4125
+ * A free-form message set by the wire originator.
4126
+ */
3487
4127
  originator_to_beneficiary_information_line1: string | null;
3488
4128
 
4129
+ /**
4130
+ * A free-form message set by the wire originator.
4131
+ */
3489
4132
  originator_to_beneficiary_information_line2: string | null;
3490
4133
 
4134
+ /**
4135
+ * A free-form message set by the wire originator.
4136
+ */
3491
4137
  originator_to_beneficiary_information_line3: string | null;
3492
4138
 
4139
+ /**
4140
+ * A free-form message set by the wire originator.
4141
+ */
3493
4142
  originator_to_beneficiary_information_line4: string | null;
3494
4143
  }
3495
4144
 
@@ -3558,6 +4207,9 @@ export namespace ACHTransferSimulation {
3558
4207
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
3559
4208
 
3560
4209
  /**
4210
+ * An Internal Source is a transaction between you and Increase. This describes the
4211
+ * reason for the transaction.
4212
+ *
3561
4213
  * - `account_closure` - Account closure
3562
4214
  * - `bank_migration` - Bank migration
3563
4215
  * - `cashback` - Cashback
@@ -3656,6 +4308,9 @@ export namespace ACHTransferSimulation {
3656
4308
  */
3657
4309
  routing_number: string;
3658
4310
 
4311
+ /**
4312
+ * The identifier of the Wire Transfer that led to this Transaction.
4313
+ */
3659
4314
  transfer_id: string;
3660
4315
  }
3661
4316
 
@@ -3664,6 +4319,9 @@ export namespace ACHTransferSimulation {
3664
4319
  * response if and only if `category` is equal to `wire_transfer_rejection`.
3665
4320
  */
3666
4321
  export interface WireTransferRejection {
4322
+ /**
4323
+ * The identifier of the Wire Transfer that led to this Transaction.
4324
+ */
3667
4325
  transfer_id: string;
3668
4326
  }
3669
4327
  }
@@ -3747,7 +4405,7 @@ export interface ACHTransferReturnParams {
3747
4405
  * - `enr_invalid_individual_name` - Code R45. The individual name field was
3748
4406
  * invalid.
3749
4407
  * - `returned_per_odfi_request` - Code R06. The originating financial institution
3750
- * reversed the transfer.
4408
+ * asked for this transfer to be returned.
3751
4409
  * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
3752
4410
  * supervisor has limited their participation.
3753
4411
  * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
@@ -3834,7 +4492,7 @@ export interface ACHTransferReturnParams {
3834
4492
  * bank disputes that an earlier `duplicate_entry` return was actually a
3835
4493
  * duplicate.
3836
4494
  * - `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.
4495
+ * originating financial institution made a mistake and this return corrects it.
3838
4496
  * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
3839
4497
  * a malformed credit entry.
3840
4498
  * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a