increase 0.10.3 → 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 (272) hide show
  1. package/CHANGELOG.md +31 -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 -0
  55. package/index.d.ts +2 -0
  56. package/index.d.ts.map +1 -1
  57. package/index.js +3 -3
  58. package/index.js.map +1 -1
  59. package/index.mjs +3 -3
  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 +280 -17
  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 +56 -8
  111. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  112. package/resources/inbound-ach-transfers.js +9 -0
  113. package/resources/inbound-ach-transfers.js.map +1 -1
  114. package/resources/inbound-ach-transfers.mjs +9 -0
  115. package/resources/inbound-ach-transfers.mjs.map +1 -1
  116. package/resources/index.d.ts +9 -1
  117. package/resources/index.d.ts.map +1 -1
  118. package/resources/index.js.map +1 -1
  119. package/resources/index.mjs.map +1 -1
  120. package/resources/pending-transactions.d.ts +19 -6
  121. package/resources/pending-transactions.d.ts.map +1 -1
  122. package/resources/pending-transactions.js.map +1 -1
  123. package/resources/pending-transactions.mjs.map +1 -1
  124. package/resources/real-time-decisions.d.ts +11 -9
  125. package/resources/real-time-decisions.d.ts.map +1 -1
  126. package/resources/real-time-decisions.js.map +1 -1
  127. package/resources/real-time-decisions.mjs.map +1 -1
  128. package/resources/simulations/ach-transfers.d.ts +684 -33
  129. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  130. package/resources/simulations/ach-transfers.js.map +1 -1
  131. package/resources/simulations/ach-transfers.mjs.map +1 -1
  132. package/resources/simulations/cards.d.ts +299 -23
  133. package/resources/simulations/cards.d.ts.map +1 -1
  134. package/resources/simulations/cards.js.map +1 -1
  135. package/resources/simulations/cards.mjs.map +1 -1
  136. package/resources/simulations/interest-payments.d.ts +402 -14
  137. package/resources/simulations/interest-payments.d.ts.map +1 -1
  138. package/resources/simulations/interest-payments.js.map +1 -1
  139. package/resources/simulations/interest-payments.mjs.map +1 -1
  140. package/resources/simulations/real-time-payments-transfers.d.ts +682 -31
  141. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  142. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  143. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  144. package/resources/simulations/wire-transfers.d.ts +402 -14
  145. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  146. package/resources/simulations/wire-transfers.js.map +1 -1
  147. package/resources/simulations/wire-transfers.mjs.map +1 -1
  148. package/resources/transactions.d.ts +402 -14
  149. package/resources/transactions.d.ts.map +1 -1
  150. package/resources/transactions.js.map +1 -1
  151. package/resources/transactions.mjs.map +1 -1
  152. package/resources/wire-transfers.d.ts +7 -5
  153. package/resources/wire-transfers.d.ts.map +1 -1
  154. package/resources/wire-transfers.js +1 -1
  155. package/resources/wire-transfers.js.map +1 -1
  156. package/resources/wire-transfers.mjs +1 -1
  157. package/resources/wire-transfers.mjs.map +1 -1
  158. package/src/_shims/ReadableStream.d.ts +5 -5
  159. package/src/_shims/agent.ts +1 -1
  160. package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +8 -8
  161. package/src/_shims/fetch.d.ts +10 -10
  162. package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
  163. package/src/_shims/fileFromPath.ts +2 -2
  164. package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
  165. package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
  166. package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
  167. package/src/_shims/getMultipartRequestOptions.ts +3 -3
  168. package/src/core.ts +11 -10
  169. package/src/error.ts +3 -3
  170. package/src/index.ts +9 -7
  171. package/src/pagination.ts +2 -2
  172. package/src/resource.ts +1 -1
  173. package/src/resources/account-numbers.ts +5 -5
  174. package/src/resources/account-statements.ts +5 -5
  175. package/src/resources/account-transfers.ts +5 -5
  176. package/src/resources/accounts.ts +5 -5
  177. package/src/resources/ach-prenotifications.ts +224 -8
  178. package/src/resources/ach-transfers.ts +19 -14
  179. package/src/resources/balance-lookups.ts +3 -3
  180. package/src/resources/bookkeeping-accounts.ts +5 -5
  181. package/src/resources/bookkeeping-entries.ts +5 -5
  182. package/src/resources/bookkeeping-entry-sets.ts +4 -4
  183. package/src/resources/card-disputes.ts +5 -5
  184. package/src/resources/card-profiles.ts +6 -6
  185. package/src/resources/card-purchase-supplements.ts +7 -7
  186. package/src/resources/cards.ts +5 -5
  187. package/src/resources/check-deposits.ts +8 -5
  188. package/src/resources/check-transfers.ts +12 -5
  189. package/src/resources/declined-transactions.ts +285 -22
  190. package/src/resources/digital-wallet-tokens.ts +7 -6
  191. package/src/resources/documents.ts +5 -5
  192. package/src/resources/entities/beneficial-owners.ts +66 -4
  193. package/src/resources/entities/entities.ts +61 -8
  194. package/src/resources/entities/index.ts +11 -3
  195. package/src/resources/entities/supplemental-documents.ts +5 -5
  196. package/src/resources/event-subscriptions.ts +5 -5
  197. package/src/resources/events.ts +5 -5
  198. package/src/resources/exports.ts +5 -5
  199. package/src/resources/external-accounts.ts +10 -5
  200. package/src/resources/files.ts +6 -6
  201. package/src/resources/groups.ts +3 -3
  202. package/src/resources/inbound-ach-transfers.ts +73 -13
  203. package/src/resources/inbound-wire-drawdown-requests.ts +5 -5
  204. package/src/resources/index.ts +54 -39
  205. package/src/resources/limits.ts +5 -5
  206. package/src/resources/oauth-connections.ts +5 -5
  207. package/src/resources/pending-transactions.ts +24 -11
  208. package/src/resources/programs.ts +5 -5
  209. package/src/resources/real-time-decisions.ts +14 -12
  210. package/src/resources/real-time-payments-transfers.ts +5 -5
  211. package/src/resources/routing-numbers.ts +4 -4
  212. package/src/resources/simulations/account-statements.ts +4 -4
  213. package/src/resources/simulations/account-transfers.ts +3 -3
  214. package/src/resources/simulations/ach-transfers.ts +697 -39
  215. package/src/resources/simulations/card-disputes.ts +4 -4
  216. package/src/resources/simulations/card-profiles.ts +3 -3
  217. package/src/resources/simulations/card-refunds.ts +4 -4
  218. package/src/resources/simulations/cards.ts +304 -28
  219. package/src/resources/simulations/check-deposits.ts +3 -3
  220. package/src/resources/simulations/check-transfers.ts +3 -3
  221. package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
  222. package/src/resources/simulations/documents.ts +4 -4
  223. package/src/resources/simulations/inbound-funds-holds.ts +3 -3
  224. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
  225. package/src/resources/simulations/index.ts +18 -18
  226. package/src/resources/simulations/interest-payments.ts +413 -18
  227. package/src/resources/simulations/programs.ts +4 -4
  228. package/src/resources/simulations/real-time-payments-transfers.ts +695 -37
  229. package/src/resources/simulations/simulations.ts +19 -19
  230. package/src/resources/simulations/wire-transfers.ts +413 -18
  231. package/src/resources/transactions.ts +415 -20
  232. package/src/resources/wire-drawdown-requests.ts +5 -5
  233. package/src/resources/wire-transfers.ts +12 -10
  234. package/src/tsconfig.json +11 -0
  235. package/src/uploads.ts +6 -6
  236. package/src/version.ts +1 -1
  237. package/uploads.d.ts +1 -1
  238. package/uploads.d.ts.map +1 -1
  239. package/uploads.js +4 -4
  240. package/uploads.js.map +1 -1
  241. package/uploads.mjs +1 -1
  242. package/uploads.mjs.map +1 -1
  243. package/version.d.ts +1 -1
  244. package/version.js +1 -1
  245. package/version.mjs +1 -1
  246. package/_shims/ReadableStream.node.d.ts.map +0 -1
  247. package/_shims/ReadableStream.node.js.map +0 -1
  248. package/_shims/ReadableStream.node.mjs.map +0 -1
  249. package/_shims/agent.node.d.ts.map +0 -1
  250. package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
  251. package/_shims/node-readable.node.js.map +0 -1
  252. package/_shims/node-readable.node.mjs.map +0 -1
  253. package/src/_shims/fetch.deno.ts +0 -23
  254. package/src/_shims/formdata.deno.ts +0 -16
  255. /package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +0 -0
  256. /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
  257. /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  258. /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
  259. /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
  260. /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  261. /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
  262. /package/_shims/{formdata.js → form-data.js} +0 -0
  263. /package/_shims/{formdata.mjs → form-data.mjs} +0 -0
  264. /package/src/_shims/{ReadableStream.node.ts → ReadableStream-node.ts} +0 -0
  265. /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
  266. /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
  267. /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  268. /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
  269. /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  270. /package/src/_shims/{formdata.js → form-data.js} +0 -0
  271. /package/src/_shims/{formdata.mjs → form-data.mjs} +0 -0
  272. /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
@@ -229,16 +229,22 @@ export declare namespace ACHTransferSimulation {
229
229
  *
230
230
  * - `ach_route_canceled` - The account number is canceled.
231
231
  * - `ach_route_disabled` - The account number is disabled.
232
- * - `breaches_limit` - The transaction would cause a limit to be exceeded.
233
- * - `credit_entry_refused_by_receiver` - A credit was refused.
234
- * - `duplicate_return` - Other.
232
+ * - `breaches_limit` - The transaction would cause an Increase limit to be
233
+ * exceeded.
234
+ * - `credit_entry_refused_by_receiver` - A credit was refused. This is a
235
+ * reasonable default reason for decline of credits.
236
+ * - `duplicate_return` - A rare return reason. The return this message refers to
237
+ * was a duplicate.
235
238
  * - `entity_not_active` - The account's entity is not active.
236
239
  * - `group_locked` - Your account is inactive.
237
240
  * - `insufficient_funds` - Your account contains insufficient funds.
238
- * - `misrouted_return` - Other.
239
- * - `return_of_erroneous_or_reversing_debit` - Other.
241
+ * - `misrouted_return` - A rare return reason. The return this message refers to
242
+ * was misrouted.
243
+ * - `return_of_erroneous_or_reversing_debit` - The originating financial
244
+ * institution made a mistake and this return corrects it.
240
245
  * - `no_ach_route` - The account number that was debited does not exist.
241
- * - `originator_request` - Other.
246
+ * - `originator_request` - The originating financial institution asked for this
247
+ * transfer to be returned.
242
248
  * - `transaction_not_allowed` - The transaction is not allowed per Increase's
243
249
  * terms.
244
250
  * - `user_initiated` - The user initiated the decline.
@@ -330,7 +336,7 @@ export declare namespace ACHTransferSimulation {
330
336
  */
331
337
  merchant_state: string | null;
332
338
  /**
333
- * Fields specific to the `network`
339
+ * Fields specific to the `network`.
334
340
  */
335
341
  network_details: CardDecline.NetworkDetails;
336
342
  /**
@@ -385,23 +391,23 @@ export declare namespace ACHTransferSimulation {
385
391
  }
386
392
  namespace CardDecline {
387
393
  /**
388
- * Fields specific to the `network`
394
+ * Fields specific to the `network`.
389
395
  */
390
396
  interface NetworkDetails {
391
397
  /**
392
- * The payment network used to process this card authorization
398
+ * The payment network used to process this card authorization.
393
399
  *
394
400
  * - `visa` - Visa
395
401
  */
396
402
  category: 'visa';
397
403
  /**
398
- * Fields specific to the `visa` network
404
+ * Fields specific to the `visa` network.
399
405
  */
400
406
  visa: NetworkDetails.Visa | null;
401
407
  }
402
408
  namespace NetworkDetails {
403
409
  /**
404
- * Fields specific to the `visa` network
410
+ * Fields specific to the `visa` network.
405
411
  */
406
412
  interface Visa {
407
413
  /**
@@ -451,7 +457,7 @@ export declare namespace ACHTransferSimulation {
451
457
  | null;
452
458
  /**
453
459
  * The method used to enter the cardholder's primary account number and card
454
- * expiration date
460
+ * expiration date.
455
461
  *
456
462
  * - `unknown` - Unknown
457
463
  * - `manual` - Manual key entry
@@ -492,6 +498,11 @@ export declare namespace ACHTransferSimulation {
492
498
  * dollars, for example, this is cents.
493
499
  */
494
500
  amount: number;
501
+ /**
502
+ * A computer-readable number printed on the MICR line of business checks, usually
503
+ * the check number. This is useful for positive pay checks, but can be unreliably
504
+ * transmitted by the bank of first deposit.
505
+ */
495
506
  auxiliary_on_us: string | null;
496
507
  /**
497
508
  * Why the check was declined.
@@ -606,40 +617,245 @@ export declare namespace ACHTransferSimulation {
606
617
  * dollars, for example, this is cents.
607
618
  */
608
619
  amount: number;
620
+ /**
621
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
622
+ * country code of the destination country.
623
+ */
609
624
  destination_country_code: string;
625
+ /**
626
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
627
+ * destination bank account.
628
+ */
610
629
  destination_currency_code: string;
611
- foreign_exchange_indicator: string;
630
+ /**
631
+ * A description of how the foreign exchange rate was calculated.
632
+ *
633
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
634
+ * The settled amount in USD was converted using the exchange rate.
635
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
636
+ * originator's amount was variable; known only after the foreign exchange
637
+ * conversion.
638
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
639
+ * USD. There is no foreign exchange conversion.
640
+ */
641
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
642
+ /**
643
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
644
+ * reference to a well-known rate.
645
+ */
612
646
  foreign_exchange_reference: string | null;
613
- foreign_exchange_reference_indicator: string;
647
+ /**
648
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
649
+ * this Transaction.
650
+ *
651
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
652
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
653
+ * well-known foreign exchange rate.
654
+ * - `blank` - There is no foreign exchange for this transfer, so the
655
+ * `foreign_exchange_reference` field is blank.
656
+ */
657
+ foreign_exchange_reference_indicator:
658
+ | 'foreign_exchange_rate'
659
+ | 'foreign_exchange_reference_number'
660
+ | 'blank';
661
+ /**
662
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
663
+ * example, this is cents.
664
+ */
614
665
  foreign_payment_amount: number;
666
+ /**
667
+ * A reference number in the foreign banking infrastructure.
668
+ */
615
669
  foreign_trace_number: string | null;
616
- international_transaction_type_code: string;
670
+ /**
671
+ * The type of transfer. Set by the originator.
672
+ *
673
+ * - `annuity` - Sent as `ANN` in the Nacha file.
674
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
675
+ * - `deposit` - Sent as `DEP` in the Nacha file.
676
+ * - `loan` - Sent as `LOA` in the Nacha file.
677
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
678
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
679
+ * - `pension` - Sent as `PEN` in the Nacha file.
680
+ * - `remittance` - Sent as `REM` in the Nacha file.
681
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
682
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
683
+ * - `tax` - Sent as `TAX` in the Nacha file.
684
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
685
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
686
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
687
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
688
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
689
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
690
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
691
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
692
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
693
+ */
694
+ international_transaction_type_code:
695
+ | 'annuity'
696
+ | 'business_or_commercial'
697
+ | 'deposit'
698
+ | 'loan'
699
+ | 'miscellaneous'
700
+ | 'mortgage'
701
+ | 'pension'
702
+ | 'remittance'
703
+ | 'rent_or_lease'
704
+ | 'salary_or_payroll'
705
+ | 'tax'
706
+ | 'accounts_receivable'
707
+ | 'back_office_conversion'
708
+ | 'machine_transfer'
709
+ | 'point_of_purchase'
710
+ | 'point_of_sale'
711
+ | 'represented_check'
712
+ | 'shared_network_transaction'
713
+ | 'telphone_initiated'
714
+ | 'internet_initiated';
715
+ /**
716
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
717
+ * originating bank account.
718
+ */
617
719
  originating_currency_code: string;
720
+ /**
721
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
722
+ * country code of the originating branch country.
723
+ */
618
724
  originating_depository_financial_institution_branch_country: string;
725
+ /**
726
+ * An identifier for the originating bank. One of an International Bank Account
727
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
728
+ * domestic identifier like a US Routing Number.
729
+ */
619
730
  originating_depository_financial_institution_id: string;
620
- originating_depository_financial_institution_id_qualifier: string;
731
+ /**
732
+ * An instruction of how to interpret the
733
+ * `originating_depository_financial_institution_id` field for this Transaction.
734
+ *
735
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
736
+ * US, for example, this is the American Banking Association (ABA) routing
737
+ * number.
738
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
739
+ * - `iban` - An International Bank Account Number.
740
+ */
741
+ originating_depository_financial_institution_id_qualifier:
742
+ | 'national_clearing_system_number'
743
+ | 'bic_code'
744
+ | 'iban';
745
+ /**
746
+ * The name of the originating bank. Sometimes this will refer to an American bank
747
+ * and obscure the correspondent foreign bank.
748
+ */
621
749
  originating_depository_financial_institution_name: string;
750
+ /**
751
+ * A portion of the originator address. This may be incomplete.
752
+ */
622
753
  originator_city: string;
754
+ /**
755
+ * A description field set by the originator.
756
+ */
623
757
  originator_company_entry_description: string;
758
+ /**
759
+ * A portion of the originator address. The
760
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
761
+ * code of the originator country.
762
+ */
624
763
  originator_country: string;
764
+ /**
765
+ * An identifier for the originating company. This is generally stable across
766
+ * multiple ACH transfers.
767
+ */
625
768
  originator_identification: string;
769
+ /**
770
+ * Either the name of the originator or an intermediary money transmitter.
771
+ */
626
772
  originator_name: string;
773
+ /**
774
+ * A portion of the originator address. This may be incomplete.
775
+ */
627
776
  originator_postal_code: string | null;
777
+ /**
778
+ * A portion of the originator address. This may be incomplete.
779
+ */
628
780
  originator_state_or_province: string | null;
781
+ /**
782
+ * A portion of the originator address. This may be incomplete.
783
+ */
629
784
  originator_street_address: string;
785
+ /**
786
+ * A description field set by the originator.
787
+ */
630
788
  payment_related_information: string | null;
789
+ /**
790
+ * A description field set by the originator.
791
+ */
631
792
  payment_related_information2: string | null;
793
+ /**
794
+ * A portion of the receiver address. This may be incomplete.
795
+ */
632
796
  receiver_city: string;
797
+ /**
798
+ * A portion of the receiver address. The
799
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
800
+ * code of the receiver country.
801
+ */
633
802
  receiver_country: string;
803
+ /**
804
+ * An identification number the originator uses for the receiver.
805
+ */
634
806
  receiver_identification_number: string | null;
807
+ /**
808
+ * A portion of the receiver address. This may be incomplete.
809
+ */
635
810
  receiver_postal_code: string | null;
811
+ /**
812
+ * A portion of the receiver address. This may be incomplete.
813
+ */
636
814
  receiver_state_or_province: string | null;
815
+ /**
816
+ * A portion of the receiver address. This may be incomplete.
817
+ */
637
818
  receiver_street_address: string;
819
+ /**
820
+ * The name of the receiver of the transfer. This is not verified by Increase.
821
+ */
638
822
  receiving_company_or_individual_name: string;
823
+ /**
824
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
825
+ * country code of the receiving bank country.
826
+ */
639
827
  receiving_depository_financial_institution_country: string;
828
+ /**
829
+ * An identifier for the receiving bank. One of an International Bank Account
830
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
831
+ * domestic identifier like a US Routing Number.
832
+ */
640
833
  receiving_depository_financial_institution_id: string;
641
- receiving_depository_financial_institution_id_qualifier: string;
834
+ /**
835
+ * An instruction of how to interpret the
836
+ * `receiving_depository_financial_institution_id` field for this Transaction.
837
+ *
838
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
839
+ * US, for example, this is the American Banking Association (ABA) routing
840
+ * number.
841
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
842
+ * - `iban` - An International Bank Account Number.
843
+ */
844
+ receiving_depository_financial_institution_id_qualifier:
845
+ | 'national_clearing_system_number'
846
+ | 'bic_code'
847
+ | 'iban';
848
+ /**
849
+ * The name of the receiving bank, as set by the sending financial institution.
850
+ */
642
851
  receiving_depository_financial_institution_name: string;
852
+ /**
853
+ * A 15 digit number recorded in the Nacha file and available to both the
854
+ * originating and receiving bank. Along with the amount, date, and originating
855
+ * routing number, this can be used to identify the ACH transfer at either bank.
856
+ * ACH trace numbers are not unique, but are
857
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
858
+ */
643
859
  trace_number: string;
644
860
  }
645
861
  /**
@@ -652,20 +868,67 @@ export declare namespace ACHTransferSimulation {
652
868
  * dollars, for example, this is cents.
653
869
  */
654
870
  amount: number;
871
+ /**
872
+ * A free-form address field set by the sender.
873
+ */
655
874
  beneficiary_address_line1: string | null;
875
+ /**
876
+ * A free-form address field set by the sender.
877
+ */
656
878
  beneficiary_address_line2: string | null;
879
+ /**
880
+ * A free-form address field set by the sender.
881
+ */
657
882
  beneficiary_address_line3: string | null;
883
+ /**
884
+ * A name set by the sender.
885
+ */
658
886
  beneficiary_name: string | null;
887
+ /**
888
+ * A free-form reference string set by the sender, to help identify the transfer.
889
+ */
659
890
  beneficiary_reference: string | null;
891
+ /**
892
+ * An Increase-constructed description of the declined transaction.
893
+ */
660
894
  description: string;
895
+ /**
896
+ * A unique identifier available to the originating and receiving banks, commonly
897
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
898
+ * service and is helpful when debugging wires with the originating bank.
899
+ */
661
900
  input_message_accountability_data: string | null;
901
+ /**
902
+ * The address of the wire originator, set by the sending bank.
903
+ */
662
904
  originator_address_line1: string | null;
905
+ /**
906
+ * The address of the wire originator, set by the sending bank.
907
+ */
663
908
  originator_address_line2: string | null;
909
+ /**
910
+ * The address of the wire originator, set by the sending bank.
911
+ */
664
912
  originator_address_line3: string | null;
913
+ /**
914
+ * The originator of the wire, set by the sending bank.
915
+ */
665
916
  originator_name: string | null;
917
+ /**
918
+ * A free-form message set by the wire originator.
919
+ */
666
920
  originator_to_beneficiary_information_line1: string | null;
921
+ /**
922
+ * A free-form message set by the wire originator.
923
+ */
667
924
  originator_to_beneficiary_information_line2: string | null;
925
+ /**
926
+ * A free-form message set by the wire originator.
927
+ */
668
928
  originator_to_beneficiary_information_line3: string | null;
929
+ /**
930
+ * A free-form message set by the wire originator.
931
+ */
669
932
  originator_to_beneficiary_information_line4: string | null;
670
933
  /**
671
934
  * Why the wire transfer was declined.
@@ -1052,13 +1315,23 @@ export declare namespace ACHTransferSimulation {
1052
1315
  * response if and only if `category` is equal to `ach_transfer_intention`.
1053
1316
  */
1054
1317
  interface ACHTransferIntention {
1318
+ /**
1319
+ * The account number for the destination account.
1320
+ */
1055
1321
  account_number: string;
1056
1322
  /**
1057
1323
  * The amount in the minor unit of the transaction's currency. For dollars, for
1058
1324
  * example, this is cents.
1059
1325
  */
1060
1326
  amount: number;
1327
+ /**
1328
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
1329
+ * destination account.
1330
+ */
1061
1331
  routing_number: string;
1332
+ /**
1333
+ * A description set when the ACH Transfer was created.
1334
+ */
1062
1335
  statement_descriptor: string;
1063
1336
  /**
1064
1337
  * The identifier of the ACH Transfer that led to this Transaction.
@@ -1125,7 +1398,7 @@ export declare namespace ACHTransferSimulation {
1125
1398
  * - `enr_invalid_individual_name` - Code R45. The individual name field was
1126
1399
  * invalid.
1127
1400
  * - `returned_per_odfi_request` - Code R06. The originating financial institution
1128
- * reversed the transfer.
1401
+ * asked for this transfer to be returned.
1129
1402
  * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
1130
1403
  * supervisor has limited their participation.
1131
1404
  * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
@@ -1212,7 +1485,7 @@ export declare namespace ACHTransferSimulation {
1212
1485
  * bank disputes that an earlier `duplicate_entry` return was actually a
1213
1486
  * duplicate.
1214
1487
  * - `return_of_erroneous_or_reversing_debit` - Code R62. A rare return reason. The
1215
- * originating bank made a mistake earlier and this return corrects it.
1488
+ * originating financial institution made a mistake and this return corrects it.
1216
1489
  * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
1217
1490
  * a malformed credit entry.
1218
1491
  * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a
@@ -2518,6 +2791,9 @@ export declare namespace ACHTransferSimulation {
2518
2791
  */
2519
2792
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2520
2793
  /**
2794
+ * Why this check was returned by the bank holding the account it was drawn
2795
+ * against.
2796
+ *
2521
2797
  * - `ach_conversion_not_supported` - The check doesn't allow ACH conversion.
2522
2798
  * - `closed_account` - The account is closed.
2523
2799
  * - `duplicate_submission` - The check has already been deposited.
@@ -2565,6 +2841,12 @@ export declare namespace ACHTransferSimulation {
2565
2841
  * deposited check.
2566
2842
  */
2567
2843
  back_image_file_id: string | null;
2844
+ /**
2845
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
2846
+ * bank depositing this check. In some rare cases, this is not transmitted via
2847
+ * Check21 and the value will be null.
2848
+ */
2849
+ bank_of_first_deposit_routing_number: string | null;
2568
2850
  /**
2569
2851
  * When the check was deposited.
2570
2852
  */
@@ -2700,14 +2982,48 @@ export declare namespace ACHTransferSimulation {
2700
2982
  * for example, this is cents.
2701
2983
  */
2702
2984
  amount: number;
2985
+ /**
2986
+ * The description of the date of the transfer, usually in the format `YYMMDD`.
2987
+ */
2703
2988
  originator_company_descriptive_date: string | null;
2989
+ /**
2990
+ * Data set by the originator.
2991
+ */
2704
2992
  originator_company_discretionary_data: string | null;
2993
+ /**
2994
+ * An informational description of the transfer.
2995
+ */
2705
2996
  originator_company_entry_description: string;
2997
+ /**
2998
+ * An identifier for the originating company. This is generally, but not always, a
2999
+ * stable identifier across multiple transfers.
3000
+ */
2706
3001
  originator_company_id: string;
3002
+ /**
3003
+ * A name set by the originator to identify themselves.
3004
+ */
2707
3005
  originator_company_name: string;
3006
+ /**
3007
+ * The originator's identifier for the transfer receipient.
3008
+ */
2708
3009
  receiver_id_number: string | null;
3010
+ /**
3011
+ * The name of the transfer recipient. This value is informational and not verified
3012
+ * by Increase.
3013
+ */
2709
3014
  receiver_name: string | null;
3015
+ /**
3016
+ * A 15 digit number recorded in the Nacha file and available to both the
3017
+ * originating and receiving bank. Along with the amount, date, and originating
3018
+ * routing number, this can be used to identify the ACH transfer at either bank.
3019
+ * ACH trace numbers are not unique, but are
3020
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
3021
+ */
2710
3022
  trace_number: string;
3023
+ /**
3024
+ * The inbound ach transfer's identifier.
3025
+ */
3026
+ transfer_id: string;
2711
3027
  }
2712
3028
  /**
2713
3029
  * An Inbound Check object. This field will be present in the JSON response if and
@@ -2719,8 +3035,24 @@ export declare namespace ACHTransferSimulation {
2719
3035
  * for example, this is cents.
2720
3036
  */
2721
3037
  amount: number;
3038
+ /**
3039
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
3040
+ * bank depositing this check. In some rare cases, this is not transmitted via
3041
+ * Check21 and the value will be null.
3042
+ */
3043
+ bank_of_first_deposit_routing_number: string | null;
3044
+ /**
3045
+ * The front image of the check. This is a black and white TIFF image file.
3046
+ */
2722
3047
  check_front_image_file_id: string | null;
3048
+ /**
3049
+ * The number of the check. This field is set by the depositing bank and can be
3050
+ * unreliable.
3051
+ */
2723
3052
  check_number: string | null;
3053
+ /**
3054
+ * The rear image of the check. This is a black and white TIFF image file.
3055
+ */
2724
3056
  check_rear_image_file_id: string | null;
2725
3057
  /**
2726
3058
  * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
@@ -2746,40 +3078,245 @@ export declare namespace ACHTransferSimulation {
2746
3078
  * for example, this is cents.
2747
3079
  */
2748
3080
  amount: number;
3081
+ /**
3082
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3083
+ * country code of the destination country.
3084
+ */
2749
3085
  destination_country_code: string;
3086
+ /**
3087
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
3088
+ * destination bank account.
3089
+ */
2750
3090
  destination_currency_code: string;
2751
- foreign_exchange_indicator: string;
3091
+ /**
3092
+ * A description of how the foreign exchange rate was calculated.
3093
+ *
3094
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
3095
+ * The settled amount in USD was converted using the exchange rate.
3096
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
3097
+ * originator's amount was variable; known only after the foreign exchange
3098
+ * conversion.
3099
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
3100
+ * USD. There is no foreign exchange conversion.
3101
+ */
3102
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
3103
+ /**
3104
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
3105
+ * reference to a well-known rate.
3106
+ */
2752
3107
  foreign_exchange_reference: string | null;
2753
- foreign_exchange_reference_indicator: string;
3108
+ /**
3109
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
3110
+ * this Transaction.
3111
+ *
3112
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
3113
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
3114
+ * well-known foreign exchange rate.
3115
+ * - `blank` - There is no foreign exchange for this transfer, so the
3116
+ * `foreign_exchange_reference` field is blank.
3117
+ */
3118
+ foreign_exchange_reference_indicator:
3119
+ | 'foreign_exchange_rate'
3120
+ | 'foreign_exchange_reference_number'
3121
+ | 'blank';
3122
+ /**
3123
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
3124
+ * example, this is cents.
3125
+ */
2754
3126
  foreign_payment_amount: number;
3127
+ /**
3128
+ * A reference number in the foreign banking infrastructure.
3129
+ */
2755
3130
  foreign_trace_number: string | null;
2756
- international_transaction_type_code: string;
3131
+ /**
3132
+ * The type of transfer. Set by the originator.
3133
+ *
3134
+ * - `annuity` - Sent as `ANN` in the Nacha file.
3135
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
3136
+ * - `deposit` - Sent as `DEP` in the Nacha file.
3137
+ * - `loan` - Sent as `LOA` in the Nacha file.
3138
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
3139
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
3140
+ * - `pension` - Sent as `PEN` in the Nacha file.
3141
+ * - `remittance` - Sent as `REM` in the Nacha file.
3142
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
3143
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
3144
+ * - `tax` - Sent as `TAX` in the Nacha file.
3145
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
3146
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
3147
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
3148
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
3149
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
3150
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
3151
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
3152
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
3153
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
3154
+ */
3155
+ international_transaction_type_code:
3156
+ | 'annuity'
3157
+ | 'business_or_commercial'
3158
+ | 'deposit'
3159
+ | 'loan'
3160
+ | 'miscellaneous'
3161
+ | 'mortgage'
3162
+ | 'pension'
3163
+ | 'remittance'
3164
+ | 'rent_or_lease'
3165
+ | 'salary_or_payroll'
3166
+ | 'tax'
3167
+ | 'accounts_receivable'
3168
+ | 'back_office_conversion'
3169
+ | 'machine_transfer'
3170
+ | 'point_of_purchase'
3171
+ | 'point_of_sale'
3172
+ | 'represented_check'
3173
+ | 'shared_network_transaction'
3174
+ | 'telphone_initiated'
3175
+ | 'internet_initiated';
3176
+ /**
3177
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
3178
+ * originating bank account.
3179
+ */
2757
3180
  originating_currency_code: string;
3181
+ /**
3182
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3183
+ * country code of the originating branch country.
3184
+ */
2758
3185
  originating_depository_financial_institution_branch_country: string;
3186
+ /**
3187
+ * An identifier for the originating bank. One of an International Bank Account
3188
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
3189
+ * domestic identifier like a US Routing Number.
3190
+ */
2759
3191
  originating_depository_financial_institution_id: string;
2760
- originating_depository_financial_institution_id_qualifier: string;
3192
+ /**
3193
+ * An instruction of how to interpret the
3194
+ * `originating_depository_financial_institution_id` field for this Transaction.
3195
+ *
3196
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
3197
+ * US, for example, this is the American Banking Association (ABA) routing
3198
+ * number.
3199
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
3200
+ * - `iban` - An International Bank Account Number.
3201
+ */
3202
+ originating_depository_financial_institution_id_qualifier:
3203
+ | 'national_clearing_system_number'
3204
+ | 'bic_code'
3205
+ | 'iban';
3206
+ /**
3207
+ * The name of the originating bank. Sometimes this will refer to an American bank
3208
+ * and obscure the correspondent foreign bank.
3209
+ */
2761
3210
  originating_depository_financial_institution_name: string;
3211
+ /**
3212
+ * A portion of the originator address. This may be incomplete.
3213
+ */
2762
3214
  originator_city: string;
3215
+ /**
3216
+ * A description field set by the originator.
3217
+ */
2763
3218
  originator_company_entry_description: string;
3219
+ /**
3220
+ * A portion of the originator address. The
3221
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
3222
+ * code of the originator country.
3223
+ */
2764
3224
  originator_country: string;
3225
+ /**
3226
+ * An identifier for the originating company. This is generally stable across
3227
+ * multiple ACH transfers.
3228
+ */
2765
3229
  originator_identification: string;
3230
+ /**
3231
+ * Either the name of the originator or an intermediary money transmitter.
3232
+ */
2766
3233
  originator_name: string;
3234
+ /**
3235
+ * A portion of the originator address. This may be incomplete.
3236
+ */
2767
3237
  originator_postal_code: string | null;
3238
+ /**
3239
+ * A portion of the originator address. This may be incomplete.
3240
+ */
2768
3241
  originator_state_or_province: string | null;
3242
+ /**
3243
+ * A portion of the originator address. This may be incomplete.
3244
+ */
2769
3245
  originator_street_address: string;
3246
+ /**
3247
+ * A description field set by the originator.
3248
+ */
2770
3249
  payment_related_information: string | null;
3250
+ /**
3251
+ * A description field set by the originator.
3252
+ */
2771
3253
  payment_related_information2: string | null;
3254
+ /**
3255
+ * A portion of the receiver address. This may be incomplete.
3256
+ */
2772
3257
  receiver_city: string;
3258
+ /**
3259
+ * A portion of the receiver address. The
3260
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
3261
+ * code of the receiver country.
3262
+ */
2773
3263
  receiver_country: string;
3264
+ /**
3265
+ * An identification number the originator uses for the receiver.
3266
+ */
2774
3267
  receiver_identification_number: string | null;
3268
+ /**
3269
+ * A portion of the receiver address. This may be incomplete.
3270
+ */
2775
3271
  receiver_postal_code: string | null;
3272
+ /**
3273
+ * A portion of the receiver address. This may be incomplete.
3274
+ */
2776
3275
  receiver_state_or_province: string | null;
3276
+ /**
3277
+ * A portion of the receiver address. This may be incomplete.
3278
+ */
2777
3279
  receiver_street_address: string;
3280
+ /**
3281
+ * The name of the receiver of the transfer. This is not verified by Increase.
3282
+ */
2778
3283
  receiving_company_or_individual_name: string;
3284
+ /**
3285
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3286
+ * country code of the receiving bank country.
3287
+ */
2779
3288
  receiving_depository_financial_institution_country: string;
3289
+ /**
3290
+ * An identifier for the receiving bank. One of an International Bank Account
3291
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
3292
+ * domestic identifier like a US Routing Number.
3293
+ */
2780
3294
  receiving_depository_financial_institution_id: string;
2781
- receiving_depository_financial_institution_id_qualifier: string;
3295
+ /**
3296
+ * An instruction of how to interpret the
3297
+ * `receiving_depository_financial_institution_id` field for this Transaction.
3298
+ *
3299
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
3300
+ * US, for example, this is the American Banking Association (ABA) routing
3301
+ * number.
3302
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
3303
+ * - `iban` - An International Bank Account Number.
3304
+ */
3305
+ receiving_depository_financial_institution_id_qualifier:
3306
+ | 'national_clearing_system_number'
3307
+ | 'bic_code'
3308
+ | 'iban';
3309
+ /**
3310
+ * The name of the receiving bank, as set by the sending financial institution.
3311
+ */
2782
3312
  receiving_depository_financial_institution_name: string;
3313
+ /**
3314
+ * A 15 digit number recorded in the Nacha file and available to both the
3315
+ * originating and receiving bank. Along with the amount, date, and originating
3316
+ * routing number, this can be used to identify the ACH transfer at either bank.
3317
+ * ACH trace numbers are not unique, but are
3318
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
3319
+ */
2783
3320
  trace_number: string;
2784
3321
  }
2785
3322
  /**
@@ -2826,7 +3363,7 @@ export declare namespace ACHTransferSimulation {
2826
3363
  */
2827
3364
  remittance_information: string | null;
2828
3365
  /**
2829
- * The Real-Time Payments network identification of the transfer
3366
+ * The Real-Time Payments network identification of the transfer.
2830
3367
  */
2831
3368
  transaction_identification: string;
2832
3369
  }
@@ -2840,18 +3377,72 @@ export declare namespace ACHTransferSimulation {
2840
3377
  * example, this is cents.
2841
3378
  */
2842
3379
  amount: number;
3380
+ /**
3381
+ * A free-form address field set by the sender.
3382
+ */
2843
3383
  beneficiary_address_line1: string | null;
3384
+ /**
3385
+ * A free-form address field set by the sender.
3386
+ */
2844
3387
  beneficiary_address_line2: string | null;
3388
+ /**
3389
+ * A free-form address field set by the sender.
3390
+ */
2845
3391
  beneficiary_address_line3: string | null;
3392
+ /**
3393
+ * A name set by the sender.
3394
+ */
2846
3395
  beneficiary_name: string | null;
3396
+ /**
3397
+ * A free-form reference string set by the sender, to help identify the transfer.
3398
+ */
2847
3399
  beneficiary_reference: string | null;
3400
+ /**
3401
+ * An Increase-constructed description of the transfer.
3402
+ */
2848
3403
  description: string;
3404
+ /**
3405
+ * A unique identifier available to the originating and receiving banks, commonly
3406
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
3407
+ * service and is helpful when debugging wires with the receiving bank.
3408
+ */
2849
3409
  input_message_accountability_data: string | null;
3410
+ /**
3411
+ * The address of the wire originator, set by the sending bank.
3412
+ */
2850
3413
  originator_address_line1: string | null;
3414
+ /**
3415
+ * The address of the wire originator, set by the sending bank.
3416
+ */
2851
3417
  originator_address_line2: string | null;
3418
+ /**
3419
+ * The address of the wire originator, set by the sending bank.
3420
+ */
2852
3421
  originator_address_line3: string | null;
3422
+ /**
3423
+ * The originator of the wire, set by the sending bank.
3424
+ */
2853
3425
  originator_name: string | null;
3426
+ /**
3427
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
3428
+ */
2854
3429
  originator_to_beneficiary_information: string | null;
3430
+ /**
3431
+ * A free-form message set by the wire originator.
3432
+ */
3433
+ originator_to_beneficiary_information_line1: string | null;
3434
+ /**
3435
+ * A free-form message set by the wire originator.
3436
+ */
3437
+ originator_to_beneficiary_information_line2: string | null;
3438
+ /**
3439
+ * A free-form message set by the wire originator.
3440
+ */
3441
+ originator_to_beneficiary_information_line3: string | null;
3442
+ /**
3443
+ * A free-form message set by the wire originator.
3444
+ */
3445
+ originator_to_beneficiary_information_line4: string | null;
2855
3446
  }
2856
3447
  /**
2857
3448
  * An Inbound Wire Drawdown Payment Reversal object. This field will be present in
@@ -2906,7 +3497,7 @@ export declare namespace ACHTransferSimulation {
2906
3497
  */
2907
3498
  interface InboundWireReversal {
2908
3499
  /**
2909
- * The amount that was reversed.
3500
+ * The amount that was reversed in USD cents.
2910
3501
  */
2911
3502
  amount: number;
2912
3503
  /**
@@ -2915,7 +3506,7 @@ export declare namespace ACHTransferSimulation {
2915
3506
  */
2916
3507
  created_at: string;
2917
3508
  /**
2918
- * The description on the reversal message from Fedwire.
3509
+ * The description on the reversal message from Fedwire, set by the reversing bank.
2919
3510
  */
2920
3511
  description: string;
2921
3512
  /**
@@ -2923,7 +3514,8 @@ export declare namespace ACHTransferSimulation {
2923
3514
  */
2924
3515
  financial_institution_to_financial_institution_information: string | null;
2925
3516
  /**
2926
- * The Fedwire cycle date for the wire reversal.
3517
+ * The Fedwire cycle date for the wire reversal. The "Fedwire day" begins at 9:00
3518
+ * PM Eastern Time on the evening before the `cycle date`.
2927
3519
  */
2928
3520
  input_cycle_date: string;
2929
3521
  /**
@@ -2939,7 +3531,8 @@ export declare namespace ACHTransferSimulation {
2939
3531
  */
2940
3532
  input_source: string;
2941
3533
  /**
2942
- * The Fedwire cycle date for the wire transfer that was reversed.
3534
+ * The Fedwire cycle date for the wire transfer that is being reversed by this
3535
+ * message.
2943
3536
  */
2944
3537
  previous_message_input_cycle_date: string;
2945
3538
  /**
@@ -2974,25 +3567,74 @@ export declare namespace ACHTransferSimulation {
2974
3567
  */
2975
3568
  interface InboundWireTransfer {
2976
3569
  /**
2977
- * The amount in the minor unit of the transaction's currency. For dollars, for
2978
- * example, this is cents.
3570
+ * The amount in USD cents.
2979
3571
  */
2980
3572
  amount: number;
3573
+ /**
3574
+ * A free-form address field set by the sender.
3575
+ */
2981
3576
  beneficiary_address_line1: string | null;
3577
+ /**
3578
+ * A free-form address field set by the sender.
3579
+ */
2982
3580
  beneficiary_address_line2: string | null;
3581
+ /**
3582
+ * A free-form address field set by the sender.
3583
+ */
2983
3584
  beneficiary_address_line3: string | null;
3585
+ /**
3586
+ * A name set by the sender.
3587
+ */
2984
3588
  beneficiary_name: string | null;
3589
+ /**
3590
+ * A free-form reference string set by the sender, to help identify the transfer.
3591
+ */
2985
3592
  beneficiary_reference: string | null;
3593
+ /**
3594
+ * An Increase-constructed description of the transfer.
3595
+ */
2986
3596
  description: string;
3597
+ /**
3598
+ * A unique identifier available to the originating and receiving banks, commonly
3599
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
3600
+ * service and is helpful when debugging wires with the originating bank.
3601
+ */
2987
3602
  input_message_accountability_data: string | null;
3603
+ /**
3604
+ * The address of the wire originator, set by the sending bank.
3605
+ */
2988
3606
  originator_address_line1: string | null;
3607
+ /**
3608
+ * The address of the wire originator, set by the sending bank.
3609
+ */
2989
3610
  originator_address_line2: string | null;
3611
+ /**
3612
+ * The address of the wire originator, set by the sending bank.
3613
+ */
2990
3614
  originator_address_line3: string | null;
3615
+ /**
3616
+ * The originator of the wire, set by the sending bank.
3617
+ */
2991
3618
  originator_name: string | null;
3619
+ /**
3620
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
3621
+ */
2992
3622
  originator_to_beneficiary_information: string | null;
3623
+ /**
3624
+ * A free-form message set by the wire originator.
3625
+ */
2993
3626
  originator_to_beneficiary_information_line1: string | null;
3627
+ /**
3628
+ * A free-form message set by the wire originator.
3629
+ */
2994
3630
  originator_to_beneficiary_information_line2: string | null;
3631
+ /**
3632
+ * A free-form message set by the wire originator.
3633
+ */
2995
3634
  originator_to_beneficiary_information_line3: string | null;
3635
+ /**
3636
+ * A free-form message set by the wire originator.
3637
+ */
2996
3638
  originator_to_beneficiary_information_line4: string | null;
2997
3639
  }
2998
3640
  /**
@@ -3053,6 +3695,9 @@ export declare namespace ACHTransferSimulation {
3053
3695
  */
3054
3696
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
3055
3697
  /**
3698
+ * An Internal Source is a transaction between you and Increase. This describes the
3699
+ * reason for the transaction.
3700
+ *
3056
3701
  * - `account_closure` - Account closure
3057
3702
  * - `bank_migration` - Bank migration
3058
3703
  * - `cashback` - Cashback
@@ -3140,6 +3785,9 @@ export declare namespace ACHTransferSimulation {
3140
3785
  * The American Bankers' Association (ABA) Routing Transit Number (RTN).
3141
3786
  */
3142
3787
  routing_number: string;
3788
+ /**
3789
+ * The identifier of the Wire Transfer that led to this Transaction.
3790
+ */
3143
3791
  transfer_id: string;
3144
3792
  }
3145
3793
  /**
@@ -3147,6 +3795,9 @@ export declare namespace ACHTransferSimulation {
3147
3795
  * response if and only if `category` is equal to `wire_transfer_rejection`.
3148
3796
  */
3149
3797
  interface WireTransferRejection {
3798
+ /**
3799
+ * The identifier of the Wire Transfer that led to this Transaction.
3800
+ */
3150
3801
  transfer_id: string;
3151
3802
  }
3152
3803
  }
@@ -3222,7 +3873,7 @@ export interface ACHTransferReturnParams {
3222
3873
  * - `enr_invalid_individual_name` - Code R45. The individual name field was
3223
3874
  * invalid.
3224
3875
  * - `returned_per_odfi_request` - Code R06. The originating financial institution
3225
- * reversed the transfer.
3876
+ * asked for this transfer to be returned.
3226
3877
  * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
3227
3878
  * supervisor has limited their participation.
3228
3879
  * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
@@ -3309,7 +3960,7 @@ export interface ACHTransferReturnParams {
3309
3960
  * bank disputes that an earlier `duplicate_entry` return was actually a
3310
3961
  * duplicate.
3311
3962
  * - `return_of_erroneous_or_reversing_debit` - Code R62. A rare return reason. The
3312
- * originating bank made a mistake earlier and this return corrects it.
3963
+ * originating financial institution made a mistake and this return corrects it.
3313
3964
  * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
3314
3965
  * a malformed credit entry.
3315
3966
  * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a