increase 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +4 -0
  3. package/_shims/{ReadableStream.node.d.ts → ReadableStream-node.d.ts} +1 -1
  4. package/_shims/ReadableStream-node.d.ts.map +1 -0
  5. package/_shims/{ReadableStream.node.js → ReadableStream-node.js} +1 -1
  6. package/_shims/ReadableStream-node.js.map +1 -0
  7. package/_shims/{ReadableStream.node.mjs → ReadableStream-node.mjs} +1 -1
  8. package/_shims/ReadableStream-node.mjs.map +1 -0
  9. package/_shims/{agent.node.d.ts → agent-node.d.ts} +1 -1
  10. package/_shims/agent-node.d.ts.map +1 -0
  11. package/_shims/{agent.node.js → agent-node.js} +1 -1
  12. package/_shims/{agent.node.js.map → agent-node.js.map} +1 -1
  13. package/_shims/{agent.node.mjs → agent-node.mjs} +1 -1
  14. package/_shims/{agent.node.mjs.map → agent-node.mjs.map} +1 -1
  15. package/_shims/agent.d.ts +1 -1
  16. package/_shims/agent.js +1 -1
  17. package/_shims/agent.mjs +1 -1
  18. package/_shims/{fileFromPath.node.d.ts → fileFromPath-node.d.ts} +2 -2
  19. package/_shims/{fileFromPath.node.d.ts.map → fileFromPath-node.d.ts.map} +1 -1
  20. package/_shims/{fileFromPath.node.js → fileFromPath-node.js} +1 -1
  21. package/_shims/{fileFromPath.node.js.map → fileFromPath-node.js.map} +1 -1
  22. package/_shims/{fileFromPath.node.mjs → fileFromPath-node.mjs} +1 -1
  23. package/_shims/{fileFromPath.node.mjs.map → fileFromPath-node.mjs.map} +1 -1
  24. package/_shims/fileFromPath.d.ts +2 -2
  25. package/_shims/fileFromPath.d.ts.map +1 -1
  26. package/_shims/fileFromPath.js +1 -1
  27. package/_shims/fileFromPath.mjs +1 -1
  28. package/_shims/{getMultipartRequestOptions.node.d.ts → getMultipartRequestOptions-node.d.ts} +2 -2
  29. package/_shims/getMultipartRequestOptions-node.d.ts.map +1 -0
  30. package/_shims/{getMultipartRequestOptions.node.js → getMultipartRequestOptions-node.js} +1 -1
  31. package/_shims/{getMultipartRequestOptions.node.js.map → getMultipartRequestOptions-node.js.map} +1 -1
  32. package/_shims/{getMultipartRequestOptions.node.mjs → getMultipartRequestOptions-node.mjs} +1 -1
  33. package/_shims/{getMultipartRequestOptions.node.mjs.map → getMultipartRequestOptions-node.mjs.map} +1 -1
  34. package/_shims/getMultipartRequestOptions.d.ts +1 -1
  35. package/_shims/getMultipartRequestOptions.d.ts.map +1 -1
  36. package/_shims/{node-readable.node.d.ts → node-readable-node.d.ts} +1 -1
  37. package/_shims/{node-readable.node.d.ts.map → node-readable-node.d.ts.map} +1 -1
  38. package/_shims/{node-readable.node.js → node-readable-node.js} +1 -1
  39. package/_shims/node-readable-node.js.map +1 -0
  40. package/_shims/{node-readable.node.mjs → node-readable-node.mjs} +1 -1
  41. package/_shims/node-readable-node.mjs.map +1 -0
  42. package/core.d.ts +2 -1
  43. package/core.d.ts.map +1 -1
  44. package/core.js +3 -1
  45. package/core.js.map +1 -1
  46. package/core.mjs +1 -1
  47. package/core.mjs.map +1 -1
  48. package/error.d.ts +1 -1
  49. package/error.d.ts.map +1 -1
  50. package/error.js +2 -2
  51. package/error.js.map +1 -1
  52. package/error.mjs +2 -2
  53. package/error.mjs.map +1 -1
  54. package/index.d.mts +2 -7
  55. package/index.d.ts +2 -7
  56. package/index.d.ts.map +1 -1
  57. package/index.js +3 -6
  58. package/index.js.map +1 -1
  59. package/index.mjs +3 -6
  60. package/index.mjs.map +1 -1
  61. package/package.json +9 -4
  62. package/pagination.d.ts +1 -1
  63. package/resources/account-numbers.d.ts +57 -0
  64. package/resources/account-numbers.d.ts.map +1 -1
  65. package/resources/account-numbers.js.map +1 -1
  66. package/resources/account-numbers.mjs.map +1 -1
  67. package/resources/ach-prenotifications.d.ts +219 -3
  68. package/resources/ach-prenotifications.d.ts.map +1 -1
  69. package/resources/ach-prenotifications.js.map +1 -1
  70. package/resources/ach-prenotifications.mjs.map +1 -1
  71. package/resources/ach-transfers.d.ts +14 -9
  72. package/resources/ach-transfers.d.ts.map +1 -1
  73. package/resources/ach-transfers.js.map +1 -1
  74. package/resources/ach-transfers.mjs.map +1 -1
  75. package/resources/bookkeeping-entry-sets.d.ts +1 -1
  76. package/resources/card-profiles.d.ts +12 -3
  77. package/resources/card-profiles.d.ts.map +1 -1
  78. package/resources/card-profiles.js.map +1 -1
  79. package/resources/card-profiles.mjs.map +1 -1
  80. package/resources/card-purchase-supplements.d.ts +2 -2
  81. package/resources/check-deposits.d.ts +3 -0
  82. package/resources/check-deposits.d.ts.map +1 -1
  83. package/resources/check-deposits.js.map +1 -1
  84. package/resources/check-deposits.mjs.map +1 -1
  85. package/resources/check-transfers.d.ts +6 -0
  86. package/resources/check-transfers.d.ts.map +1 -1
  87. package/resources/check-transfers.js.map +1 -1
  88. package/resources/check-transfers.mjs.map +1 -1
  89. package/resources/declined-transactions.d.ts +289 -32
  90. package/resources/declined-transactions.d.ts.map +1 -1
  91. package/resources/declined-transactions.js.map +1 -1
  92. package/resources/declined-transactions.mjs.map +1 -1
  93. package/resources/digital-wallet-tokens.d.ts +2 -1
  94. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  95. package/resources/digital-wallet-tokens.js.map +1 -1
  96. package/resources/digital-wallet-tokens.mjs.map +1 -1
  97. package/resources/entities/beneficial-owners.d.ts +51 -0
  98. package/resources/entities/beneficial-owners.d.ts.map +1 -1
  99. package/resources/entities/beneficial-owners.js +6 -0
  100. package/resources/entities/beneficial-owners.js.map +1 -1
  101. package/resources/entities/beneficial-owners.mjs +6 -0
  102. package/resources/entities/beneficial-owners.mjs.map +1 -1
  103. package/resources/entities/entities.d.ts +45 -1
  104. package/resources/entities/entities.d.ts.map +1 -1
  105. package/resources/entities/entities.js +6 -0
  106. package/resources/entities/entities.js.map +1 -1
  107. package/resources/entities/entities.mjs +6 -0
  108. package/resources/entities/entities.mjs.map +1 -1
  109. package/resources/entities/index.d.ts +9 -1
  110. package/resources/entities/index.d.ts.map +1 -1
  111. package/resources/entities/index.js.map +1 -1
  112. package/resources/entities/index.mjs.map +1 -1
  113. package/resources/external-accounts.d.ts +4 -0
  114. package/resources/external-accounts.d.ts.map +1 -1
  115. package/resources/external-accounts.js.map +1 -1
  116. package/resources/external-accounts.mjs.map +1 -1
  117. package/resources/inbound-ach-transfers.d.ts +56 -8
  118. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  119. package/resources/inbound-ach-transfers.js +9 -0
  120. package/resources/inbound-ach-transfers.js.map +1 -1
  121. package/resources/inbound-ach-transfers.mjs +9 -0
  122. package/resources/inbound-ach-transfers.mjs.map +1 -1
  123. package/resources/index.d.ts +9 -9
  124. package/resources/index.d.ts.map +1 -1
  125. package/resources/index.js +0 -15
  126. package/resources/index.js.map +1 -1
  127. package/resources/index.mjs +0 -1
  128. package/resources/index.mjs.map +1 -1
  129. package/resources/pending-transactions.d.ts +19 -6
  130. package/resources/pending-transactions.d.ts.map +1 -1
  131. package/resources/pending-transactions.js.map +1 -1
  132. package/resources/pending-transactions.mjs.map +1 -1
  133. package/resources/real-time-decisions.d.ts +11 -9
  134. package/resources/real-time-decisions.d.ts.map +1 -1
  135. package/resources/real-time-decisions.js.map +1 -1
  136. package/resources/real-time-decisions.mjs.map +1 -1
  137. package/resources/simulations/ach-transfers.d.ts +693 -48
  138. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  139. package/resources/simulations/ach-transfers.js.map +1 -1
  140. package/resources/simulations/ach-transfers.mjs.map +1 -1
  141. package/resources/simulations/cards.d.ts +308 -38
  142. package/resources/simulations/cards.d.ts.map +1 -1
  143. package/resources/simulations/cards.js.map +1 -1
  144. package/resources/simulations/cards.mjs.map +1 -1
  145. package/resources/simulations/interest-payments.d.ts +402 -14
  146. package/resources/simulations/interest-payments.d.ts.map +1 -1
  147. package/resources/simulations/interest-payments.js.map +1 -1
  148. package/resources/simulations/interest-payments.mjs.map +1 -1
  149. package/resources/simulations/real-time-payments-transfers.d.ts +691 -46
  150. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  151. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  152. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  153. package/resources/simulations/wire-transfers.d.ts +402 -14
  154. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  155. package/resources/simulations/wire-transfers.js.map +1 -1
  156. package/resources/simulations/wire-transfers.mjs.map +1 -1
  157. package/resources/transactions.d.ts +402 -14
  158. package/resources/transactions.d.ts.map +1 -1
  159. package/resources/transactions.js.map +1 -1
  160. package/resources/transactions.mjs.map +1 -1
  161. package/resources/wire-transfers.d.ts +7 -5
  162. package/resources/wire-transfers.d.ts.map +1 -1
  163. package/resources/wire-transfers.js +1 -1
  164. package/resources/wire-transfers.js.map +1 -1
  165. package/resources/wire-transfers.mjs +1 -1
  166. package/resources/wire-transfers.mjs.map +1 -1
  167. package/src/_shims/ReadableStream.d.ts +5 -5
  168. package/src/_shims/agent.ts +1 -1
  169. package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +8 -8
  170. package/src/_shims/fetch.d.ts +10 -10
  171. package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
  172. package/src/_shims/fileFromPath.ts +2 -2
  173. package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
  174. package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
  175. package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
  176. package/src/_shims/getMultipartRequestOptions.ts +3 -3
  177. package/src/core.ts +11 -10
  178. package/src/error.ts +3 -3
  179. package/src/index.ts +9 -15
  180. package/src/pagination.ts +2 -2
  181. package/src/resource.ts +1 -1
  182. package/src/resources/account-numbers.ts +68 -5
  183. package/src/resources/account-statements.ts +5 -5
  184. package/src/resources/account-transfers.ts +5 -5
  185. package/src/resources/accounts.ts +5 -5
  186. package/src/resources/ach-prenotifications.ts +224 -8
  187. package/src/resources/ach-transfers.ts +19 -14
  188. package/src/resources/balance-lookups.ts +3 -3
  189. package/src/resources/bookkeeping-accounts.ts +5 -5
  190. package/src/resources/bookkeeping-entries.ts +5 -5
  191. package/src/resources/bookkeeping-entry-sets.ts +4 -4
  192. package/src/resources/card-disputes.ts +5 -5
  193. package/src/resources/card-profiles.ts +17 -8
  194. package/src/resources/card-purchase-supplements.ts +7 -7
  195. package/src/resources/cards.ts +5 -5
  196. package/src/resources/check-deposits.ts +8 -5
  197. package/src/resources/check-transfers.ts +12 -5
  198. package/src/resources/declined-transactions.ts +294 -37
  199. package/src/resources/digital-wallet-tokens.ts +7 -6
  200. package/src/resources/documents.ts +5 -5
  201. package/src/resources/entities/beneficial-owners.ts +66 -4
  202. package/src/resources/entities/entities.ts +61 -8
  203. package/src/resources/entities/index.ts +11 -3
  204. package/src/resources/entities/supplemental-documents.ts +5 -5
  205. package/src/resources/event-subscriptions.ts +5 -5
  206. package/src/resources/events.ts +5 -5
  207. package/src/resources/exports.ts +5 -5
  208. package/src/resources/external-accounts.ts +10 -5
  209. package/src/resources/files.ts +6 -6
  210. package/src/resources/groups.ts +3 -3
  211. package/src/resources/inbound-ach-transfers.ts +73 -13
  212. package/src/resources/inbound-wire-drawdown-requests.ts +5 -5
  213. package/src/resources/index.ts +46 -39
  214. package/src/resources/oauth-connections.ts +5 -5
  215. package/src/resources/pending-transactions.ts +24 -11
  216. package/src/resources/programs.ts +5 -5
  217. package/src/resources/real-time-decisions.ts +14 -12
  218. package/src/resources/real-time-payments-transfers.ts +5 -5
  219. package/src/resources/routing-numbers.ts +4 -4
  220. package/src/resources/simulations/account-statements.ts +4 -4
  221. package/src/resources/simulations/account-transfers.ts +3 -3
  222. package/src/resources/simulations/ach-transfers.ts +706 -54
  223. package/src/resources/simulations/card-disputes.ts +4 -4
  224. package/src/resources/simulations/card-profiles.ts +3 -3
  225. package/src/resources/simulations/card-refunds.ts +4 -4
  226. package/src/resources/simulations/cards.ts +313 -43
  227. package/src/resources/simulations/check-deposits.ts +3 -3
  228. package/src/resources/simulations/check-transfers.ts +3 -3
  229. package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
  230. package/src/resources/simulations/documents.ts +4 -4
  231. package/src/resources/simulations/inbound-funds-holds.ts +3 -3
  232. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
  233. package/src/resources/simulations/index.ts +18 -18
  234. package/src/resources/simulations/interest-payments.ts +413 -18
  235. package/src/resources/simulations/programs.ts +4 -4
  236. package/src/resources/simulations/real-time-payments-transfers.ts +704 -52
  237. package/src/resources/simulations/simulations.ts +19 -19
  238. package/src/resources/simulations/wire-transfers.ts +413 -18
  239. package/src/resources/transactions.ts +415 -20
  240. package/src/resources/wire-drawdown-requests.ts +5 -5
  241. package/src/resources/wire-transfers.ts +12 -10
  242. package/src/tsconfig.json +11 -0
  243. package/src/uploads.ts +6 -6
  244. package/src/version.ts +1 -1
  245. package/uploads.d.ts +1 -1
  246. package/uploads.d.ts.map +1 -1
  247. package/uploads.js +4 -4
  248. package/uploads.js.map +1 -1
  249. package/uploads.mjs +1 -1
  250. package/uploads.mjs.map +1 -1
  251. package/version.d.ts +1 -1
  252. package/version.js +1 -1
  253. package/version.mjs +1 -1
  254. package/_shims/ReadableStream.node.d.ts.map +0 -1
  255. package/_shims/ReadableStream.node.js.map +0 -1
  256. package/_shims/ReadableStream.node.mjs.map +0 -1
  257. package/_shims/agent.node.d.ts.map +0 -1
  258. package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
  259. package/_shims/node-readable.node.js.map +0 -1
  260. package/_shims/node-readable.node.mjs.map +0 -1
  261. package/resources/limits.d.ts +0 -148
  262. package/resources/limits.d.ts.map +0 -1
  263. package/resources/limits.js +0 -38
  264. package/resources/limits.js.map +0 -1
  265. package/resources/limits.mjs +0 -33
  266. package/resources/limits.mjs.map +0 -1
  267. package/src/_shims/fetch.deno.ts +0 -23
  268. package/src/_shims/formdata.deno.ts +0 -16
  269. package/src/resources/limits.ts +0 -186
  270. /package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +0 -0
  271. /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
  272. /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  273. /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
  274. /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
  275. /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  276. /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
  277. /package/_shims/{formdata.js → form-data.js} +0 -0
  278. /package/_shims/{formdata.mjs → form-data.mjs} +0 -0
  279. /package/src/_shims/{ReadableStream.node.ts → ReadableStream-node.ts} +0 -0
  280. /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
  281. /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
  282. /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  283. /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
  284. /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  285. /package/src/_shims/{formdata.js → form-data.js} +0 -0
  286. /package/src/_shims/{formdata.mjs → form-data.mjs} +0 -0
  287. /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
@@ -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,42 +498,41 @@ 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.
498
509
  *
499
- * - `ach_route_canceled` - The account number is canceled.
500
510
  * - `ach_route_disabled` - The account number is disabled.
511
+ * - `ach_route_canceled` - The account number is canceled.
501
512
  * - `breaches_limit` - The transaction would cause a limit to be exceeded.
502
513
  * - `entity_not_active` - The account's entity is not active.
503
514
  * - `group_locked` - Your account is inactive.
504
515
  * - `insufficient_funds` - Your account contains insufficient funds.
505
- * - `unable_to_locate_account` - Unable to locate account.
506
- * - `not_our_item` - Routing number on the check is not ours.
507
- * - `unable_to_process` - Unable to process.
508
- * - `refer_to_image` - Refer to image.
509
516
  * - `stop_payment_requested` - Stop payment requested for this check.
510
- * - `returned` - Check was returned to sender.
511
517
  * - `duplicate_presentment` - The check was a duplicate deposit.
512
- * - `not_authorized` - The transaction is not allowed.
513
- * - `altered_or_fictitious` - The check was altered or fictitious.
518
+ * - `not_authorized` - The check was not authorized.
519
+ * - `amount_mismatch` - The amount the receiving bank is attempting to deposit
520
+ * does not match the amount on the check.
521
+ * - `not_our_item` - The check attempting to be deposited does not belong to
522
+ * Increase.
514
523
  */
515
524
  reason:
516
- | 'ach_route_canceled'
517
525
  | 'ach_route_disabled'
526
+ | 'ach_route_canceled'
518
527
  | 'breaches_limit'
519
528
  | 'entity_not_active'
520
529
  | 'group_locked'
521
530
  | 'insufficient_funds'
522
- | 'unable_to_locate_account'
523
- | 'not_our_item'
524
- | 'unable_to_process'
525
- | 'refer_to_image'
526
531
  | 'stop_payment_requested'
527
- | 'returned'
528
532
  | 'duplicate_presentment'
529
533
  | 'not_authorized'
530
- | 'altered_or_fictitious';
534
+ | 'amount_mismatch'
535
+ | 'not_our_item';
531
536
  }
532
537
  /**
533
538
  * An Inbound Real-Time Payments Transfer Decline object. This field will be
@@ -606,40 +611,245 @@ export declare namespace ACHTransferSimulation {
606
611
  * dollars, for example, this is cents.
607
612
  */
608
613
  amount: number;
614
+ /**
615
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
616
+ * country code of the destination country.
617
+ */
609
618
  destination_country_code: string;
619
+ /**
620
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
621
+ * destination bank account.
622
+ */
610
623
  destination_currency_code: string;
611
- foreign_exchange_indicator: string;
624
+ /**
625
+ * A description of how the foreign exchange rate was calculated.
626
+ *
627
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
628
+ * The settled amount in USD was converted using the exchange rate.
629
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
630
+ * originator's amount was variable; known only after the foreign exchange
631
+ * conversion.
632
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
633
+ * USD. There is no foreign exchange conversion.
634
+ */
635
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
636
+ /**
637
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
638
+ * reference to a well-known rate.
639
+ */
612
640
  foreign_exchange_reference: string | null;
613
- foreign_exchange_reference_indicator: string;
641
+ /**
642
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
643
+ * this Transaction.
644
+ *
645
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
646
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
647
+ * well-known foreign exchange rate.
648
+ * - `blank` - There is no foreign exchange for this transfer, so the
649
+ * `foreign_exchange_reference` field is blank.
650
+ */
651
+ foreign_exchange_reference_indicator:
652
+ | 'foreign_exchange_rate'
653
+ | 'foreign_exchange_reference_number'
654
+ | 'blank';
655
+ /**
656
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
657
+ * example, this is cents.
658
+ */
614
659
  foreign_payment_amount: number;
660
+ /**
661
+ * A reference number in the foreign banking infrastructure.
662
+ */
615
663
  foreign_trace_number: string | null;
616
- international_transaction_type_code: string;
664
+ /**
665
+ * The type of transfer. Set by the originator.
666
+ *
667
+ * - `annuity` - Sent as `ANN` in the Nacha file.
668
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
669
+ * - `deposit` - Sent as `DEP` in the Nacha file.
670
+ * - `loan` - Sent as `LOA` in the Nacha file.
671
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
672
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
673
+ * - `pension` - Sent as `PEN` in the Nacha file.
674
+ * - `remittance` - Sent as `REM` in the Nacha file.
675
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
676
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
677
+ * - `tax` - Sent as `TAX` in the Nacha file.
678
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
679
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
680
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
681
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
682
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
683
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
684
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
685
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
686
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
687
+ */
688
+ international_transaction_type_code:
689
+ | 'annuity'
690
+ | 'business_or_commercial'
691
+ | 'deposit'
692
+ | 'loan'
693
+ | 'miscellaneous'
694
+ | 'mortgage'
695
+ | 'pension'
696
+ | 'remittance'
697
+ | 'rent_or_lease'
698
+ | 'salary_or_payroll'
699
+ | 'tax'
700
+ | 'accounts_receivable'
701
+ | 'back_office_conversion'
702
+ | 'machine_transfer'
703
+ | 'point_of_purchase'
704
+ | 'point_of_sale'
705
+ | 'represented_check'
706
+ | 'shared_network_transaction'
707
+ | 'telphone_initiated'
708
+ | 'internet_initiated';
709
+ /**
710
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
711
+ * originating bank account.
712
+ */
617
713
  originating_currency_code: string;
714
+ /**
715
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
716
+ * country code of the originating branch country.
717
+ */
618
718
  originating_depository_financial_institution_branch_country: string;
719
+ /**
720
+ * An identifier for the originating bank. One of an International Bank Account
721
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
722
+ * domestic identifier like a US Routing Number.
723
+ */
619
724
  originating_depository_financial_institution_id: string;
620
- originating_depository_financial_institution_id_qualifier: string;
725
+ /**
726
+ * An instruction of how to interpret the
727
+ * `originating_depository_financial_institution_id` field for this Transaction.
728
+ *
729
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
730
+ * US, for example, this is the American Banking Association (ABA) routing
731
+ * number.
732
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
733
+ * - `iban` - An International Bank Account Number.
734
+ */
735
+ originating_depository_financial_institution_id_qualifier:
736
+ | 'national_clearing_system_number'
737
+ | 'bic_code'
738
+ | 'iban';
739
+ /**
740
+ * The name of the originating bank. Sometimes this will refer to an American bank
741
+ * and obscure the correspondent foreign bank.
742
+ */
621
743
  originating_depository_financial_institution_name: string;
744
+ /**
745
+ * A portion of the originator address. This may be incomplete.
746
+ */
622
747
  originator_city: string;
748
+ /**
749
+ * A description field set by the originator.
750
+ */
623
751
  originator_company_entry_description: string;
752
+ /**
753
+ * A portion of the originator address. The
754
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
755
+ * code of the originator country.
756
+ */
624
757
  originator_country: string;
758
+ /**
759
+ * An identifier for the originating company. This is generally stable across
760
+ * multiple ACH transfers.
761
+ */
625
762
  originator_identification: string;
763
+ /**
764
+ * Either the name of the originator or an intermediary money transmitter.
765
+ */
626
766
  originator_name: string;
767
+ /**
768
+ * A portion of the originator address. This may be incomplete.
769
+ */
627
770
  originator_postal_code: string | null;
771
+ /**
772
+ * A portion of the originator address. This may be incomplete.
773
+ */
628
774
  originator_state_or_province: string | null;
775
+ /**
776
+ * A portion of the originator address. This may be incomplete.
777
+ */
629
778
  originator_street_address: string;
779
+ /**
780
+ * A description field set by the originator.
781
+ */
630
782
  payment_related_information: string | null;
783
+ /**
784
+ * A description field set by the originator.
785
+ */
631
786
  payment_related_information2: string | null;
787
+ /**
788
+ * A portion of the receiver address. This may be incomplete.
789
+ */
632
790
  receiver_city: string;
791
+ /**
792
+ * A portion of the receiver address. The
793
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
794
+ * code of the receiver country.
795
+ */
633
796
  receiver_country: string;
797
+ /**
798
+ * An identification number the originator uses for the receiver.
799
+ */
634
800
  receiver_identification_number: string | null;
801
+ /**
802
+ * A portion of the receiver address. This may be incomplete.
803
+ */
635
804
  receiver_postal_code: string | null;
805
+ /**
806
+ * A portion of the receiver address. This may be incomplete.
807
+ */
636
808
  receiver_state_or_province: string | null;
809
+ /**
810
+ * A portion of the receiver address. This may be incomplete.
811
+ */
637
812
  receiver_street_address: string;
813
+ /**
814
+ * The name of the receiver of the transfer. This is not verified by Increase.
815
+ */
638
816
  receiving_company_or_individual_name: string;
817
+ /**
818
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
819
+ * country code of the receiving bank country.
820
+ */
639
821
  receiving_depository_financial_institution_country: string;
822
+ /**
823
+ * An identifier for the receiving bank. One of an International Bank Account
824
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
825
+ * domestic identifier like a US Routing Number.
826
+ */
640
827
  receiving_depository_financial_institution_id: string;
641
- receiving_depository_financial_institution_id_qualifier: string;
828
+ /**
829
+ * An instruction of how to interpret the
830
+ * `receiving_depository_financial_institution_id` field for this Transaction.
831
+ *
832
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
833
+ * US, for example, this is the American Banking Association (ABA) routing
834
+ * number.
835
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
836
+ * - `iban` - An International Bank Account Number.
837
+ */
838
+ receiving_depository_financial_institution_id_qualifier:
839
+ | 'national_clearing_system_number'
840
+ | 'bic_code'
841
+ | 'iban';
842
+ /**
843
+ * The name of the receiving bank, as set by the sending financial institution.
844
+ */
642
845
  receiving_depository_financial_institution_name: string;
846
+ /**
847
+ * A 15 digit number recorded in the Nacha file and available to both the
848
+ * originating and receiving bank. Along with the amount, date, and originating
849
+ * routing number, this can be used to identify the ACH transfer at either bank.
850
+ * ACH trace numbers are not unique, but are
851
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
852
+ */
643
853
  trace_number: string;
644
854
  }
645
855
  /**
@@ -652,20 +862,67 @@ export declare namespace ACHTransferSimulation {
652
862
  * dollars, for example, this is cents.
653
863
  */
654
864
  amount: number;
865
+ /**
866
+ * A free-form address field set by the sender.
867
+ */
655
868
  beneficiary_address_line1: string | null;
869
+ /**
870
+ * A free-form address field set by the sender.
871
+ */
656
872
  beneficiary_address_line2: string | null;
873
+ /**
874
+ * A free-form address field set by the sender.
875
+ */
657
876
  beneficiary_address_line3: string | null;
877
+ /**
878
+ * A name set by the sender.
879
+ */
658
880
  beneficiary_name: string | null;
881
+ /**
882
+ * A free-form reference string set by the sender, to help identify the transfer.
883
+ */
659
884
  beneficiary_reference: string | null;
885
+ /**
886
+ * An Increase-constructed description of the declined transaction.
887
+ */
660
888
  description: string;
889
+ /**
890
+ * A unique identifier available to the originating and receiving banks, commonly
891
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
892
+ * service and is helpful when debugging wires with the originating bank.
893
+ */
661
894
  input_message_accountability_data: string | null;
895
+ /**
896
+ * The address of the wire originator, set by the sending bank.
897
+ */
662
898
  originator_address_line1: string | null;
899
+ /**
900
+ * The address of the wire originator, set by the sending bank.
901
+ */
663
902
  originator_address_line2: string | null;
903
+ /**
904
+ * The address of the wire originator, set by the sending bank.
905
+ */
664
906
  originator_address_line3: string | null;
907
+ /**
908
+ * The originator of the wire, set by the sending bank.
909
+ */
665
910
  originator_name: string | null;
911
+ /**
912
+ * A free-form message set by the wire originator.
913
+ */
666
914
  originator_to_beneficiary_information_line1: string | null;
915
+ /**
916
+ * A free-form message set by the wire originator.
917
+ */
667
918
  originator_to_beneficiary_information_line2: string | null;
919
+ /**
920
+ * A free-form message set by the wire originator.
921
+ */
668
922
  originator_to_beneficiary_information_line3: string | null;
923
+ /**
924
+ * A free-form message set by the wire originator.
925
+ */
669
926
  originator_to_beneficiary_information_line4: string | null;
670
927
  /**
671
928
  * Why the wire transfer was declined.
@@ -1052,13 +1309,23 @@ export declare namespace ACHTransferSimulation {
1052
1309
  * response if and only if `category` is equal to `ach_transfer_intention`.
1053
1310
  */
1054
1311
  interface ACHTransferIntention {
1312
+ /**
1313
+ * The account number for the destination account.
1314
+ */
1055
1315
  account_number: string;
1056
1316
  /**
1057
1317
  * The amount in the minor unit of the transaction's currency. For dollars, for
1058
1318
  * example, this is cents.
1059
1319
  */
1060
1320
  amount: number;
1321
+ /**
1322
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
1323
+ * destination account.
1324
+ */
1061
1325
  routing_number: string;
1326
+ /**
1327
+ * A description set when the ACH Transfer was created.
1328
+ */
1062
1329
  statement_descriptor: string;
1063
1330
  /**
1064
1331
  * The identifier of the ACH Transfer that led to this Transaction.
@@ -1125,7 +1392,7 @@ export declare namespace ACHTransferSimulation {
1125
1392
  * - `enr_invalid_individual_name` - Code R45. The individual name field was
1126
1393
  * invalid.
1127
1394
  * - `returned_per_odfi_request` - Code R06. The originating financial institution
1128
- * reversed the transfer.
1395
+ * asked for this transfer to be returned.
1129
1396
  * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
1130
1397
  * supervisor has limited their participation.
1131
1398
  * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
@@ -1212,7 +1479,7 @@ export declare namespace ACHTransferSimulation {
1212
1479
  * bank disputes that an earlier `duplicate_entry` return was actually a
1213
1480
  * duplicate.
1214
1481
  * - `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.
1482
+ * originating financial institution made a mistake and this return corrects it.
1216
1483
  * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
1217
1484
  * a malformed credit entry.
1218
1485
  * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a
@@ -2518,6 +2785,9 @@ export declare namespace ACHTransferSimulation {
2518
2785
  */
2519
2786
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2520
2787
  /**
2788
+ * Why this check was returned by the bank holding the account it was drawn
2789
+ * against.
2790
+ *
2521
2791
  * - `ach_conversion_not_supported` - The check doesn't allow ACH conversion.
2522
2792
  * - `closed_account` - The account is closed.
2523
2793
  * - `duplicate_submission` - The check has already been deposited.
@@ -2565,6 +2835,12 @@ export declare namespace ACHTransferSimulation {
2565
2835
  * deposited check.
2566
2836
  */
2567
2837
  back_image_file_id: string | null;
2838
+ /**
2839
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
2840
+ * bank depositing this check. In some rare cases, this is not transmitted via
2841
+ * Check21 and the value will be null.
2842
+ */
2843
+ bank_of_first_deposit_routing_number: string | null;
2568
2844
  /**
2569
2845
  * When the check was deposited.
2570
2846
  */
@@ -2700,14 +2976,48 @@ export declare namespace ACHTransferSimulation {
2700
2976
  * for example, this is cents.
2701
2977
  */
2702
2978
  amount: number;
2979
+ /**
2980
+ * The description of the date of the transfer, usually in the format `YYMMDD`.
2981
+ */
2703
2982
  originator_company_descriptive_date: string | null;
2983
+ /**
2984
+ * Data set by the originator.
2985
+ */
2704
2986
  originator_company_discretionary_data: string | null;
2987
+ /**
2988
+ * An informational description of the transfer.
2989
+ */
2705
2990
  originator_company_entry_description: string;
2991
+ /**
2992
+ * An identifier for the originating company. This is generally, but not always, a
2993
+ * stable identifier across multiple transfers.
2994
+ */
2706
2995
  originator_company_id: string;
2996
+ /**
2997
+ * A name set by the originator to identify themselves.
2998
+ */
2707
2999
  originator_company_name: string;
3000
+ /**
3001
+ * The originator's identifier for the transfer receipient.
3002
+ */
2708
3003
  receiver_id_number: string | null;
3004
+ /**
3005
+ * The name of the transfer recipient. This value is informational and not verified
3006
+ * by Increase.
3007
+ */
2709
3008
  receiver_name: string | null;
3009
+ /**
3010
+ * A 15 digit number recorded in the Nacha file and available to both the
3011
+ * originating and receiving bank. Along with the amount, date, and originating
3012
+ * routing number, this can be used to identify the ACH transfer at either bank.
3013
+ * ACH trace numbers are not unique, but are
3014
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
3015
+ */
2710
3016
  trace_number: string;
3017
+ /**
3018
+ * The inbound ach transfer's identifier.
3019
+ */
3020
+ transfer_id: string;
2711
3021
  }
2712
3022
  /**
2713
3023
  * An Inbound Check object. This field will be present in the JSON response if and
@@ -2719,8 +3029,24 @@ export declare namespace ACHTransferSimulation {
2719
3029
  * for example, this is cents.
2720
3030
  */
2721
3031
  amount: number;
3032
+ /**
3033
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
3034
+ * bank depositing this check. In some rare cases, this is not transmitted via
3035
+ * Check21 and the value will be null.
3036
+ */
3037
+ bank_of_first_deposit_routing_number: string | null;
3038
+ /**
3039
+ * The front image of the check. This is a black and white TIFF image file.
3040
+ */
2722
3041
  check_front_image_file_id: string | null;
3042
+ /**
3043
+ * The number of the check. This field is set by the depositing bank and can be
3044
+ * unreliable.
3045
+ */
2723
3046
  check_number: string | null;
3047
+ /**
3048
+ * The rear image of the check. This is a black and white TIFF image file.
3049
+ */
2724
3050
  check_rear_image_file_id: string | null;
2725
3051
  /**
2726
3052
  * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
@@ -2746,40 +3072,245 @@ export declare namespace ACHTransferSimulation {
2746
3072
  * for example, this is cents.
2747
3073
  */
2748
3074
  amount: number;
3075
+ /**
3076
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3077
+ * country code of the destination country.
3078
+ */
2749
3079
  destination_country_code: string;
3080
+ /**
3081
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
3082
+ * destination bank account.
3083
+ */
2750
3084
  destination_currency_code: string;
2751
- foreign_exchange_indicator: string;
3085
+ /**
3086
+ * A description of how the foreign exchange rate was calculated.
3087
+ *
3088
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
3089
+ * The settled amount in USD was converted using the exchange rate.
3090
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
3091
+ * originator's amount was variable; known only after the foreign exchange
3092
+ * conversion.
3093
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
3094
+ * USD. There is no foreign exchange conversion.
3095
+ */
3096
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
3097
+ /**
3098
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
3099
+ * reference to a well-known rate.
3100
+ */
2752
3101
  foreign_exchange_reference: string | null;
2753
- foreign_exchange_reference_indicator: string;
3102
+ /**
3103
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
3104
+ * this Transaction.
3105
+ *
3106
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
3107
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
3108
+ * well-known foreign exchange rate.
3109
+ * - `blank` - There is no foreign exchange for this transfer, so the
3110
+ * `foreign_exchange_reference` field is blank.
3111
+ */
3112
+ foreign_exchange_reference_indicator:
3113
+ | 'foreign_exchange_rate'
3114
+ | 'foreign_exchange_reference_number'
3115
+ | 'blank';
3116
+ /**
3117
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
3118
+ * example, this is cents.
3119
+ */
2754
3120
  foreign_payment_amount: number;
3121
+ /**
3122
+ * A reference number in the foreign banking infrastructure.
3123
+ */
2755
3124
  foreign_trace_number: string | null;
2756
- international_transaction_type_code: string;
3125
+ /**
3126
+ * The type of transfer. Set by the originator.
3127
+ *
3128
+ * - `annuity` - Sent as `ANN` in the Nacha file.
3129
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
3130
+ * - `deposit` - Sent as `DEP` in the Nacha file.
3131
+ * - `loan` - Sent as `LOA` in the Nacha file.
3132
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
3133
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
3134
+ * - `pension` - Sent as `PEN` in the Nacha file.
3135
+ * - `remittance` - Sent as `REM` in the Nacha file.
3136
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
3137
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
3138
+ * - `tax` - Sent as `TAX` in the Nacha file.
3139
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
3140
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
3141
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
3142
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
3143
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
3144
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
3145
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
3146
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
3147
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
3148
+ */
3149
+ international_transaction_type_code:
3150
+ | 'annuity'
3151
+ | 'business_or_commercial'
3152
+ | 'deposit'
3153
+ | 'loan'
3154
+ | 'miscellaneous'
3155
+ | 'mortgage'
3156
+ | 'pension'
3157
+ | 'remittance'
3158
+ | 'rent_or_lease'
3159
+ | 'salary_or_payroll'
3160
+ | 'tax'
3161
+ | 'accounts_receivable'
3162
+ | 'back_office_conversion'
3163
+ | 'machine_transfer'
3164
+ | 'point_of_purchase'
3165
+ | 'point_of_sale'
3166
+ | 'represented_check'
3167
+ | 'shared_network_transaction'
3168
+ | 'telphone_initiated'
3169
+ | 'internet_initiated';
3170
+ /**
3171
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
3172
+ * originating bank account.
3173
+ */
2757
3174
  originating_currency_code: string;
3175
+ /**
3176
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3177
+ * country code of the originating branch country.
3178
+ */
2758
3179
  originating_depository_financial_institution_branch_country: string;
3180
+ /**
3181
+ * An identifier for the originating bank. One of an International Bank Account
3182
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
3183
+ * domestic identifier like a US Routing Number.
3184
+ */
2759
3185
  originating_depository_financial_institution_id: string;
2760
- originating_depository_financial_institution_id_qualifier: string;
3186
+ /**
3187
+ * An instruction of how to interpret the
3188
+ * `originating_depository_financial_institution_id` field for this Transaction.
3189
+ *
3190
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
3191
+ * US, for example, this is the American Banking Association (ABA) routing
3192
+ * number.
3193
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
3194
+ * - `iban` - An International Bank Account Number.
3195
+ */
3196
+ originating_depository_financial_institution_id_qualifier:
3197
+ | 'national_clearing_system_number'
3198
+ | 'bic_code'
3199
+ | 'iban';
3200
+ /**
3201
+ * The name of the originating bank. Sometimes this will refer to an American bank
3202
+ * and obscure the correspondent foreign bank.
3203
+ */
2761
3204
  originating_depository_financial_institution_name: string;
3205
+ /**
3206
+ * A portion of the originator address. This may be incomplete.
3207
+ */
2762
3208
  originator_city: string;
3209
+ /**
3210
+ * A description field set by the originator.
3211
+ */
2763
3212
  originator_company_entry_description: string;
3213
+ /**
3214
+ * A portion of the originator address. The
3215
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
3216
+ * code of the originator country.
3217
+ */
2764
3218
  originator_country: string;
3219
+ /**
3220
+ * An identifier for the originating company. This is generally stable across
3221
+ * multiple ACH transfers.
3222
+ */
2765
3223
  originator_identification: string;
3224
+ /**
3225
+ * Either the name of the originator or an intermediary money transmitter.
3226
+ */
2766
3227
  originator_name: string;
3228
+ /**
3229
+ * A portion of the originator address. This may be incomplete.
3230
+ */
2767
3231
  originator_postal_code: string | null;
3232
+ /**
3233
+ * A portion of the originator address. This may be incomplete.
3234
+ */
2768
3235
  originator_state_or_province: string | null;
3236
+ /**
3237
+ * A portion of the originator address. This may be incomplete.
3238
+ */
2769
3239
  originator_street_address: string;
3240
+ /**
3241
+ * A description field set by the originator.
3242
+ */
2770
3243
  payment_related_information: string | null;
3244
+ /**
3245
+ * A description field set by the originator.
3246
+ */
2771
3247
  payment_related_information2: string | null;
3248
+ /**
3249
+ * A portion of the receiver address. This may be incomplete.
3250
+ */
2772
3251
  receiver_city: string;
3252
+ /**
3253
+ * A portion of the receiver address. The
3254
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
3255
+ * code of the receiver country.
3256
+ */
2773
3257
  receiver_country: string;
3258
+ /**
3259
+ * An identification number the originator uses for the receiver.
3260
+ */
2774
3261
  receiver_identification_number: string | null;
3262
+ /**
3263
+ * A portion of the receiver address. This may be incomplete.
3264
+ */
2775
3265
  receiver_postal_code: string | null;
3266
+ /**
3267
+ * A portion of the receiver address. This may be incomplete.
3268
+ */
2776
3269
  receiver_state_or_province: string | null;
3270
+ /**
3271
+ * A portion of the receiver address. This may be incomplete.
3272
+ */
2777
3273
  receiver_street_address: string;
3274
+ /**
3275
+ * The name of the receiver of the transfer. This is not verified by Increase.
3276
+ */
2778
3277
  receiving_company_or_individual_name: string;
3278
+ /**
3279
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3280
+ * country code of the receiving bank country.
3281
+ */
2779
3282
  receiving_depository_financial_institution_country: string;
3283
+ /**
3284
+ * An identifier for the receiving bank. One of an International Bank Account
3285
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
3286
+ * domestic identifier like a US Routing Number.
3287
+ */
2780
3288
  receiving_depository_financial_institution_id: string;
2781
- receiving_depository_financial_institution_id_qualifier: string;
3289
+ /**
3290
+ * An instruction of how to interpret the
3291
+ * `receiving_depository_financial_institution_id` field for this Transaction.
3292
+ *
3293
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
3294
+ * US, for example, this is the American Banking Association (ABA) routing
3295
+ * number.
3296
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
3297
+ * - `iban` - An International Bank Account Number.
3298
+ */
3299
+ receiving_depository_financial_institution_id_qualifier:
3300
+ | 'national_clearing_system_number'
3301
+ | 'bic_code'
3302
+ | 'iban';
3303
+ /**
3304
+ * The name of the receiving bank, as set by the sending financial institution.
3305
+ */
2782
3306
  receiving_depository_financial_institution_name: string;
3307
+ /**
3308
+ * A 15 digit number recorded in the Nacha file and available to both the
3309
+ * originating and receiving bank. Along with the amount, date, and originating
3310
+ * routing number, this can be used to identify the ACH transfer at either bank.
3311
+ * ACH trace numbers are not unique, but are
3312
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
3313
+ */
2783
3314
  trace_number: string;
2784
3315
  }
2785
3316
  /**
@@ -2826,7 +3357,7 @@ export declare namespace ACHTransferSimulation {
2826
3357
  */
2827
3358
  remittance_information: string | null;
2828
3359
  /**
2829
- * The Real-Time Payments network identification of the transfer
3360
+ * The Real-Time Payments network identification of the transfer.
2830
3361
  */
2831
3362
  transaction_identification: string;
2832
3363
  }
@@ -2840,18 +3371,72 @@ export declare namespace ACHTransferSimulation {
2840
3371
  * example, this is cents.
2841
3372
  */
2842
3373
  amount: number;
3374
+ /**
3375
+ * A free-form address field set by the sender.
3376
+ */
2843
3377
  beneficiary_address_line1: string | null;
3378
+ /**
3379
+ * A free-form address field set by the sender.
3380
+ */
2844
3381
  beneficiary_address_line2: string | null;
3382
+ /**
3383
+ * A free-form address field set by the sender.
3384
+ */
2845
3385
  beneficiary_address_line3: string | null;
3386
+ /**
3387
+ * A name set by the sender.
3388
+ */
2846
3389
  beneficiary_name: string | null;
3390
+ /**
3391
+ * A free-form reference string set by the sender, to help identify the transfer.
3392
+ */
2847
3393
  beneficiary_reference: string | null;
3394
+ /**
3395
+ * An Increase-constructed description of the transfer.
3396
+ */
2848
3397
  description: string;
3398
+ /**
3399
+ * A unique identifier available to the originating and receiving banks, commonly
3400
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
3401
+ * service and is helpful when debugging wires with the receiving bank.
3402
+ */
2849
3403
  input_message_accountability_data: string | null;
3404
+ /**
3405
+ * The address of the wire originator, set by the sending bank.
3406
+ */
2850
3407
  originator_address_line1: string | null;
3408
+ /**
3409
+ * The address of the wire originator, set by the sending bank.
3410
+ */
2851
3411
  originator_address_line2: string | null;
3412
+ /**
3413
+ * The address of the wire originator, set by the sending bank.
3414
+ */
2852
3415
  originator_address_line3: string | null;
3416
+ /**
3417
+ * The originator of the wire, set by the sending bank.
3418
+ */
2853
3419
  originator_name: string | null;
3420
+ /**
3421
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
3422
+ */
2854
3423
  originator_to_beneficiary_information: string | null;
3424
+ /**
3425
+ * A free-form message set by the wire originator.
3426
+ */
3427
+ originator_to_beneficiary_information_line1: string | null;
3428
+ /**
3429
+ * A free-form message set by the wire originator.
3430
+ */
3431
+ originator_to_beneficiary_information_line2: string | null;
3432
+ /**
3433
+ * A free-form message set by the wire originator.
3434
+ */
3435
+ originator_to_beneficiary_information_line3: string | null;
3436
+ /**
3437
+ * A free-form message set by the wire originator.
3438
+ */
3439
+ originator_to_beneficiary_information_line4: string | null;
2855
3440
  }
2856
3441
  /**
2857
3442
  * An Inbound Wire Drawdown Payment Reversal object. This field will be present in
@@ -2906,7 +3491,7 @@ export declare namespace ACHTransferSimulation {
2906
3491
  */
2907
3492
  interface InboundWireReversal {
2908
3493
  /**
2909
- * The amount that was reversed.
3494
+ * The amount that was reversed in USD cents.
2910
3495
  */
2911
3496
  amount: number;
2912
3497
  /**
@@ -2915,7 +3500,7 @@ export declare namespace ACHTransferSimulation {
2915
3500
  */
2916
3501
  created_at: string;
2917
3502
  /**
2918
- * The description on the reversal message from Fedwire.
3503
+ * The description on the reversal message from Fedwire, set by the reversing bank.
2919
3504
  */
2920
3505
  description: string;
2921
3506
  /**
@@ -2923,7 +3508,8 @@ export declare namespace ACHTransferSimulation {
2923
3508
  */
2924
3509
  financial_institution_to_financial_institution_information: string | null;
2925
3510
  /**
2926
- * The Fedwire cycle date for the wire reversal.
3511
+ * The Fedwire cycle date for the wire reversal. The "Fedwire day" begins at 9:00
3512
+ * PM Eastern Time on the evening before the `cycle date`.
2927
3513
  */
2928
3514
  input_cycle_date: string;
2929
3515
  /**
@@ -2939,7 +3525,8 @@ export declare namespace ACHTransferSimulation {
2939
3525
  */
2940
3526
  input_source: string;
2941
3527
  /**
2942
- * The Fedwire cycle date for the wire transfer that was reversed.
3528
+ * The Fedwire cycle date for the wire transfer that is being reversed by this
3529
+ * message.
2943
3530
  */
2944
3531
  previous_message_input_cycle_date: string;
2945
3532
  /**
@@ -2974,25 +3561,74 @@ export declare namespace ACHTransferSimulation {
2974
3561
  */
2975
3562
  interface InboundWireTransfer {
2976
3563
  /**
2977
- * The amount in the minor unit of the transaction's currency. For dollars, for
2978
- * example, this is cents.
3564
+ * The amount in USD cents.
2979
3565
  */
2980
3566
  amount: number;
3567
+ /**
3568
+ * A free-form address field set by the sender.
3569
+ */
2981
3570
  beneficiary_address_line1: string | null;
3571
+ /**
3572
+ * A free-form address field set by the sender.
3573
+ */
2982
3574
  beneficiary_address_line2: string | null;
3575
+ /**
3576
+ * A free-form address field set by the sender.
3577
+ */
2983
3578
  beneficiary_address_line3: string | null;
3579
+ /**
3580
+ * A name set by the sender.
3581
+ */
2984
3582
  beneficiary_name: string | null;
3583
+ /**
3584
+ * A free-form reference string set by the sender, to help identify the transfer.
3585
+ */
2985
3586
  beneficiary_reference: string | null;
3587
+ /**
3588
+ * An Increase-constructed description of the transfer.
3589
+ */
2986
3590
  description: string;
3591
+ /**
3592
+ * A unique identifier available to the originating and receiving banks, commonly
3593
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
3594
+ * service and is helpful when debugging wires with the originating bank.
3595
+ */
2987
3596
  input_message_accountability_data: string | null;
3597
+ /**
3598
+ * The address of the wire originator, set by the sending bank.
3599
+ */
2988
3600
  originator_address_line1: string | null;
3601
+ /**
3602
+ * The address of the wire originator, set by the sending bank.
3603
+ */
2989
3604
  originator_address_line2: string | null;
3605
+ /**
3606
+ * The address of the wire originator, set by the sending bank.
3607
+ */
2990
3608
  originator_address_line3: string | null;
3609
+ /**
3610
+ * The originator of the wire, set by the sending bank.
3611
+ */
2991
3612
  originator_name: string | null;
3613
+ /**
3614
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
3615
+ */
2992
3616
  originator_to_beneficiary_information: string | null;
3617
+ /**
3618
+ * A free-form message set by the wire originator.
3619
+ */
2993
3620
  originator_to_beneficiary_information_line1: string | null;
3621
+ /**
3622
+ * A free-form message set by the wire originator.
3623
+ */
2994
3624
  originator_to_beneficiary_information_line2: string | null;
3625
+ /**
3626
+ * A free-form message set by the wire originator.
3627
+ */
2995
3628
  originator_to_beneficiary_information_line3: string | null;
3629
+ /**
3630
+ * A free-form message set by the wire originator.
3631
+ */
2996
3632
  originator_to_beneficiary_information_line4: string | null;
2997
3633
  }
2998
3634
  /**
@@ -3053,6 +3689,9 @@ export declare namespace ACHTransferSimulation {
3053
3689
  */
3054
3690
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
3055
3691
  /**
3692
+ * An Internal Source is a transaction between you and Increase. This describes the
3693
+ * reason for the transaction.
3694
+ *
3056
3695
  * - `account_closure` - Account closure
3057
3696
  * - `bank_migration` - Bank migration
3058
3697
  * - `cashback` - Cashback
@@ -3140,6 +3779,9 @@ export declare namespace ACHTransferSimulation {
3140
3779
  * The American Bankers' Association (ABA) Routing Transit Number (RTN).
3141
3780
  */
3142
3781
  routing_number: string;
3782
+ /**
3783
+ * The identifier of the Wire Transfer that led to this Transaction.
3784
+ */
3143
3785
  transfer_id: string;
3144
3786
  }
3145
3787
  /**
@@ -3147,6 +3789,9 @@ export declare namespace ACHTransferSimulation {
3147
3789
  * response if and only if `category` is equal to `wire_transfer_rejection`.
3148
3790
  */
3149
3791
  interface WireTransferRejection {
3792
+ /**
3793
+ * The identifier of the Wire Transfer that led to this Transaction.
3794
+ */
3150
3795
  transfer_id: string;
3151
3796
  }
3152
3797
  }
@@ -3222,7 +3867,7 @@ export interface ACHTransferReturnParams {
3222
3867
  * - `enr_invalid_individual_name` - Code R45. The individual name field was
3223
3868
  * invalid.
3224
3869
  * - `returned_per_odfi_request` - Code R06. The originating financial institution
3225
- * reversed the transfer.
3870
+ * asked for this transfer to be returned.
3226
3871
  * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
3227
3872
  * supervisor has limited their participation.
3228
3873
  * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
@@ -3309,7 +3954,7 @@ export interface ACHTransferReturnParams {
3309
3954
  * bank disputes that an earlier `duplicate_entry` return was actually a
3310
3955
  * duplicate.
3311
3956
  * - `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.
3957
+ * originating financial institution made a mistake and this return corrects it.
3313
3958
  * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
3314
3959
  * a malformed credit entry.
3315
3960
  * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a