increase 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +4 -0
  3. package/_shims/{ReadableStream.node.d.ts → ReadableStream-node.d.ts} +1 -1
  4. package/_shims/ReadableStream-node.d.ts.map +1 -0
  5. package/_shims/{ReadableStream.node.js → ReadableStream-node.js} +1 -1
  6. package/_shims/ReadableStream-node.js.map +1 -0
  7. package/_shims/{ReadableStream.node.mjs → ReadableStream-node.mjs} +1 -1
  8. package/_shims/ReadableStream-node.mjs.map +1 -0
  9. package/_shims/{agent.node.d.ts → agent-node.d.ts} +1 -1
  10. package/_shims/agent-node.d.ts.map +1 -0
  11. package/_shims/{agent.node.js → agent-node.js} +1 -1
  12. package/_shims/{agent.node.js.map → agent-node.js.map} +1 -1
  13. package/_shims/{agent.node.mjs → agent-node.mjs} +1 -1
  14. package/_shims/{agent.node.mjs.map → agent-node.mjs.map} +1 -1
  15. package/_shims/agent.d.ts +1 -1
  16. package/_shims/agent.js +1 -1
  17. package/_shims/agent.mjs +1 -1
  18. package/_shims/{fileFromPath.node.d.ts → fileFromPath-node.d.ts} +2 -2
  19. package/_shims/{fileFromPath.node.d.ts.map → fileFromPath-node.d.ts.map} +1 -1
  20. package/_shims/{fileFromPath.node.js → fileFromPath-node.js} +1 -1
  21. package/_shims/{fileFromPath.node.js.map → fileFromPath-node.js.map} +1 -1
  22. package/_shims/{fileFromPath.node.mjs → fileFromPath-node.mjs} +1 -1
  23. package/_shims/{fileFromPath.node.mjs.map → fileFromPath-node.mjs.map} +1 -1
  24. package/_shims/fileFromPath.d.ts +2 -2
  25. package/_shims/fileFromPath.d.ts.map +1 -1
  26. package/_shims/fileFromPath.js +1 -1
  27. package/_shims/fileFromPath.mjs +1 -1
  28. package/_shims/{getMultipartRequestOptions.node.d.ts → getMultipartRequestOptions-node.d.ts} +2 -2
  29. package/_shims/getMultipartRequestOptions-node.d.ts.map +1 -0
  30. package/_shims/{getMultipartRequestOptions.node.js → getMultipartRequestOptions-node.js} +1 -1
  31. package/_shims/{getMultipartRequestOptions.node.js.map → getMultipartRequestOptions-node.js.map} +1 -1
  32. package/_shims/{getMultipartRequestOptions.node.mjs → getMultipartRequestOptions-node.mjs} +1 -1
  33. package/_shims/{getMultipartRequestOptions.node.mjs.map → getMultipartRequestOptions-node.mjs.map} +1 -1
  34. package/_shims/getMultipartRequestOptions.d.ts +1 -1
  35. package/_shims/getMultipartRequestOptions.d.ts.map +1 -1
  36. package/_shims/{node-readable.node.d.ts → node-readable-node.d.ts} +1 -1
  37. package/_shims/{node-readable.node.d.ts.map → node-readable-node.d.ts.map} +1 -1
  38. package/_shims/{node-readable.node.js → node-readable-node.js} +1 -1
  39. package/_shims/node-readable-node.js.map +1 -0
  40. package/_shims/{node-readable.node.mjs → node-readable-node.mjs} +1 -1
  41. package/_shims/node-readable-node.mjs.map +1 -0
  42. package/core.d.ts +2 -1
  43. package/core.d.ts.map +1 -1
  44. package/core.js +3 -1
  45. package/core.js.map +1 -1
  46. package/core.mjs +1 -1
  47. package/core.mjs.map +1 -1
  48. package/error.d.ts +1 -1
  49. package/error.d.ts.map +1 -1
  50. package/error.js +2 -2
  51. package/error.js.map +1 -1
  52. package/error.mjs +2 -2
  53. package/error.mjs.map +1 -1
  54. package/index.d.mts +2 -7
  55. package/index.d.ts +2 -7
  56. package/index.d.ts.map +1 -1
  57. package/index.js +3 -6
  58. package/index.js.map +1 -1
  59. package/index.mjs +3 -6
  60. package/index.mjs.map +1 -1
  61. package/package.json +9 -4
  62. package/pagination.d.ts +1 -1
  63. package/resources/account-numbers.d.ts +57 -0
  64. package/resources/account-numbers.d.ts.map +1 -1
  65. package/resources/account-numbers.js.map +1 -1
  66. package/resources/account-numbers.mjs.map +1 -1
  67. package/resources/ach-prenotifications.d.ts +219 -3
  68. package/resources/ach-prenotifications.d.ts.map +1 -1
  69. package/resources/ach-prenotifications.js.map +1 -1
  70. package/resources/ach-prenotifications.mjs.map +1 -1
  71. package/resources/ach-transfers.d.ts +14 -9
  72. package/resources/ach-transfers.d.ts.map +1 -1
  73. package/resources/ach-transfers.js.map +1 -1
  74. package/resources/ach-transfers.mjs.map +1 -1
  75. package/resources/bookkeeping-entry-sets.d.ts +1 -1
  76. package/resources/card-profiles.d.ts +12 -3
  77. package/resources/card-profiles.d.ts.map +1 -1
  78. package/resources/card-profiles.js.map +1 -1
  79. package/resources/card-profiles.mjs.map +1 -1
  80. package/resources/card-purchase-supplements.d.ts +2 -2
  81. package/resources/check-deposits.d.ts +3 -0
  82. package/resources/check-deposits.d.ts.map +1 -1
  83. package/resources/check-deposits.js.map +1 -1
  84. package/resources/check-deposits.mjs.map +1 -1
  85. package/resources/check-transfers.d.ts +6 -0
  86. package/resources/check-transfers.d.ts.map +1 -1
  87. package/resources/check-transfers.js.map +1 -1
  88. package/resources/check-transfers.mjs.map +1 -1
  89. package/resources/declined-transactions.d.ts +289 -32
  90. package/resources/declined-transactions.d.ts.map +1 -1
  91. package/resources/declined-transactions.js.map +1 -1
  92. package/resources/declined-transactions.mjs.map +1 -1
  93. package/resources/digital-wallet-tokens.d.ts +2 -1
  94. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  95. package/resources/digital-wallet-tokens.js.map +1 -1
  96. package/resources/digital-wallet-tokens.mjs.map +1 -1
  97. package/resources/entities/beneficial-owners.d.ts +51 -0
  98. package/resources/entities/beneficial-owners.d.ts.map +1 -1
  99. package/resources/entities/beneficial-owners.js +6 -0
  100. package/resources/entities/beneficial-owners.js.map +1 -1
  101. package/resources/entities/beneficial-owners.mjs +6 -0
  102. package/resources/entities/beneficial-owners.mjs.map +1 -1
  103. package/resources/entities/entities.d.ts +45 -1
  104. package/resources/entities/entities.d.ts.map +1 -1
  105. package/resources/entities/entities.js +6 -0
  106. package/resources/entities/entities.js.map +1 -1
  107. package/resources/entities/entities.mjs +6 -0
  108. package/resources/entities/entities.mjs.map +1 -1
  109. package/resources/entities/index.d.ts +9 -1
  110. package/resources/entities/index.d.ts.map +1 -1
  111. package/resources/entities/index.js.map +1 -1
  112. package/resources/entities/index.mjs.map +1 -1
  113. package/resources/external-accounts.d.ts +4 -0
  114. package/resources/external-accounts.d.ts.map +1 -1
  115. package/resources/external-accounts.js.map +1 -1
  116. package/resources/external-accounts.mjs.map +1 -1
  117. package/resources/inbound-ach-transfers.d.ts +56 -8
  118. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  119. package/resources/inbound-ach-transfers.js +9 -0
  120. package/resources/inbound-ach-transfers.js.map +1 -1
  121. package/resources/inbound-ach-transfers.mjs +9 -0
  122. package/resources/inbound-ach-transfers.mjs.map +1 -1
  123. package/resources/index.d.ts +9 -9
  124. package/resources/index.d.ts.map +1 -1
  125. package/resources/index.js +0 -15
  126. package/resources/index.js.map +1 -1
  127. package/resources/index.mjs +0 -1
  128. package/resources/index.mjs.map +1 -1
  129. package/resources/pending-transactions.d.ts +19 -6
  130. package/resources/pending-transactions.d.ts.map +1 -1
  131. package/resources/pending-transactions.js.map +1 -1
  132. package/resources/pending-transactions.mjs.map +1 -1
  133. package/resources/real-time-decisions.d.ts +11 -9
  134. package/resources/real-time-decisions.d.ts.map +1 -1
  135. package/resources/real-time-decisions.js.map +1 -1
  136. package/resources/real-time-decisions.mjs.map +1 -1
  137. package/resources/simulations/ach-transfers.d.ts +693 -48
  138. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  139. package/resources/simulations/ach-transfers.js.map +1 -1
  140. package/resources/simulations/ach-transfers.mjs.map +1 -1
  141. package/resources/simulations/cards.d.ts +308 -38
  142. package/resources/simulations/cards.d.ts.map +1 -1
  143. package/resources/simulations/cards.js.map +1 -1
  144. package/resources/simulations/cards.mjs.map +1 -1
  145. package/resources/simulations/interest-payments.d.ts +402 -14
  146. package/resources/simulations/interest-payments.d.ts.map +1 -1
  147. package/resources/simulations/interest-payments.js.map +1 -1
  148. package/resources/simulations/interest-payments.mjs.map +1 -1
  149. package/resources/simulations/real-time-payments-transfers.d.ts +691 -46
  150. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  151. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  152. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  153. package/resources/simulations/wire-transfers.d.ts +402 -14
  154. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  155. package/resources/simulations/wire-transfers.js.map +1 -1
  156. package/resources/simulations/wire-transfers.mjs.map +1 -1
  157. package/resources/transactions.d.ts +402 -14
  158. package/resources/transactions.d.ts.map +1 -1
  159. package/resources/transactions.js.map +1 -1
  160. package/resources/transactions.mjs.map +1 -1
  161. package/resources/wire-transfers.d.ts +7 -5
  162. package/resources/wire-transfers.d.ts.map +1 -1
  163. package/resources/wire-transfers.js +1 -1
  164. package/resources/wire-transfers.js.map +1 -1
  165. package/resources/wire-transfers.mjs +1 -1
  166. package/resources/wire-transfers.mjs.map +1 -1
  167. package/src/_shims/ReadableStream.d.ts +5 -5
  168. package/src/_shims/agent.ts +1 -1
  169. package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +8 -8
  170. package/src/_shims/fetch.d.ts +10 -10
  171. package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
  172. package/src/_shims/fileFromPath.ts +2 -2
  173. package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
  174. package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
  175. package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
  176. package/src/_shims/getMultipartRequestOptions.ts +3 -3
  177. package/src/core.ts +11 -10
  178. package/src/error.ts +3 -3
  179. package/src/index.ts +9 -15
  180. package/src/pagination.ts +2 -2
  181. package/src/resource.ts +1 -1
  182. package/src/resources/account-numbers.ts +68 -5
  183. package/src/resources/account-statements.ts +5 -5
  184. package/src/resources/account-transfers.ts +5 -5
  185. package/src/resources/accounts.ts +5 -5
  186. package/src/resources/ach-prenotifications.ts +224 -8
  187. package/src/resources/ach-transfers.ts +19 -14
  188. package/src/resources/balance-lookups.ts +3 -3
  189. package/src/resources/bookkeeping-accounts.ts +5 -5
  190. package/src/resources/bookkeeping-entries.ts +5 -5
  191. package/src/resources/bookkeeping-entry-sets.ts +4 -4
  192. package/src/resources/card-disputes.ts +5 -5
  193. package/src/resources/card-profiles.ts +17 -8
  194. package/src/resources/card-purchase-supplements.ts +7 -7
  195. package/src/resources/cards.ts +5 -5
  196. package/src/resources/check-deposits.ts +8 -5
  197. package/src/resources/check-transfers.ts +12 -5
  198. package/src/resources/declined-transactions.ts +294 -37
  199. package/src/resources/digital-wallet-tokens.ts +7 -6
  200. package/src/resources/documents.ts +5 -5
  201. package/src/resources/entities/beneficial-owners.ts +66 -4
  202. package/src/resources/entities/entities.ts +61 -8
  203. package/src/resources/entities/index.ts +11 -3
  204. package/src/resources/entities/supplemental-documents.ts +5 -5
  205. package/src/resources/event-subscriptions.ts +5 -5
  206. package/src/resources/events.ts +5 -5
  207. package/src/resources/exports.ts +5 -5
  208. package/src/resources/external-accounts.ts +10 -5
  209. package/src/resources/files.ts +6 -6
  210. package/src/resources/groups.ts +3 -3
  211. package/src/resources/inbound-ach-transfers.ts +73 -13
  212. package/src/resources/inbound-wire-drawdown-requests.ts +5 -5
  213. package/src/resources/index.ts +46 -39
  214. package/src/resources/oauth-connections.ts +5 -5
  215. package/src/resources/pending-transactions.ts +24 -11
  216. package/src/resources/programs.ts +5 -5
  217. package/src/resources/real-time-decisions.ts +14 -12
  218. package/src/resources/real-time-payments-transfers.ts +5 -5
  219. package/src/resources/routing-numbers.ts +4 -4
  220. package/src/resources/simulations/account-statements.ts +4 -4
  221. package/src/resources/simulations/account-transfers.ts +3 -3
  222. package/src/resources/simulations/ach-transfers.ts +706 -54
  223. package/src/resources/simulations/card-disputes.ts +4 -4
  224. package/src/resources/simulations/card-profiles.ts +3 -3
  225. package/src/resources/simulations/card-refunds.ts +4 -4
  226. package/src/resources/simulations/cards.ts +313 -43
  227. package/src/resources/simulations/check-deposits.ts +3 -3
  228. package/src/resources/simulations/check-transfers.ts +3 -3
  229. package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
  230. package/src/resources/simulations/documents.ts +4 -4
  231. package/src/resources/simulations/inbound-funds-holds.ts +3 -3
  232. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
  233. package/src/resources/simulations/index.ts +18 -18
  234. package/src/resources/simulations/interest-payments.ts +413 -18
  235. package/src/resources/simulations/programs.ts +4 -4
  236. package/src/resources/simulations/real-time-payments-transfers.ts +704 -52
  237. package/src/resources/simulations/simulations.ts +19 -19
  238. package/src/resources/simulations/wire-transfers.ts +413 -18
  239. package/src/resources/transactions.ts +415 -20
  240. package/src/resources/wire-drawdown-requests.ts +5 -5
  241. package/src/resources/wire-transfers.ts +12 -10
  242. package/src/tsconfig.json +11 -0
  243. package/src/uploads.ts +6 -6
  244. package/src/version.ts +1 -1
  245. package/uploads.d.ts +1 -1
  246. package/uploads.d.ts.map +1 -1
  247. package/uploads.js +4 -4
  248. package/uploads.js.map +1 -1
  249. package/uploads.mjs +1 -1
  250. package/uploads.mjs.map +1 -1
  251. package/version.d.ts +1 -1
  252. package/version.js +1 -1
  253. package/version.mjs +1 -1
  254. package/_shims/ReadableStream.node.d.ts.map +0 -1
  255. package/_shims/ReadableStream.node.js.map +0 -1
  256. package/_shims/ReadableStream.node.mjs.map +0 -1
  257. package/_shims/agent.node.d.ts.map +0 -1
  258. package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
  259. package/_shims/node-readable.node.js.map +0 -1
  260. package/_shims/node-readable.node.mjs.map +0 -1
  261. package/resources/limits.d.ts +0 -148
  262. package/resources/limits.d.ts.map +0 -1
  263. package/resources/limits.js +0 -38
  264. package/resources/limits.js.map +0 -1
  265. package/resources/limits.mjs +0 -33
  266. package/resources/limits.mjs.map +0 -1
  267. package/src/_shims/fetch.deno.ts +0 -23
  268. package/src/_shims/formdata.deno.ts +0 -16
  269. package/src/resources/limits.ts +0 -186
  270. /package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +0 -0
  271. /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
  272. /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  273. /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
  274. /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
  275. /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  276. /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
  277. /package/_shims/{formdata.js → form-data.js} +0 -0
  278. /package/_shims/{formdata.mjs → form-data.mjs} +0 -0
  279. /package/src/_shims/{ReadableStream.node.ts → ReadableStream-node.ts} +0 -0
  280. /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
  281. /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
  282. /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  283. /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
  284. /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  285. /package/src/_shims/{formdata.js → form-data.js} +0 -0
  286. /package/src/_shims/{formdata.mjs → form-data.mjs} +0 -0
  287. /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
@@ -1,9 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import * as RealTimePaymentsTransfers_ from '../real-time-payments-transfers';
6
- import * as API from './index';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import * as RealTimePaymentsTransfers_ from '../real-time-payments-transfers.js';
6
+ import * as API from './index.js';
7
7
 
8
8
  export class RealTimePaymentsTransfers extends APIResource {
9
9
  /**
@@ -256,16 +256,22 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
256
256
  *
257
257
  * - `ach_route_canceled` - The account number is canceled.
258
258
  * - `ach_route_disabled` - The account number is disabled.
259
- * - `breaches_limit` - The transaction would cause a limit to be exceeded.
260
- * - `credit_entry_refused_by_receiver` - A credit was refused.
261
- * - `duplicate_return` - Other.
259
+ * - `breaches_limit` - The transaction would cause an Increase limit to be
260
+ * exceeded.
261
+ * - `credit_entry_refused_by_receiver` - A credit was refused. This is a
262
+ * reasonable default reason for decline of credits.
263
+ * - `duplicate_return` - A rare return reason. The return this message refers to
264
+ * was a duplicate.
262
265
  * - `entity_not_active` - The account's entity is not active.
263
266
  * - `group_locked` - Your account is inactive.
264
267
  * - `insufficient_funds` - Your account contains insufficient funds.
265
- * - `misrouted_return` - Other.
266
- * - `return_of_erroneous_or_reversing_debit` - Other.
268
+ * - `misrouted_return` - A rare return reason. The return this message refers to
269
+ * was misrouted.
270
+ * - `return_of_erroneous_or_reversing_debit` - The originating financial
271
+ * institution made a mistake and this return corrects it.
267
272
  * - `no_ach_route` - The account number that was debited does not exist.
268
- * - `originator_request` - Other.
273
+ * - `originator_request` - The originating financial institution asked for this
274
+ * transfer to be returned.
269
275
  * - `transaction_not_allowed` - The transaction is not allowed per Increase's
270
276
  * terms.
271
277
  * - `user_initiated` - The user initiated the decline.
@@ -371,7 +377,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
371
377
  merchant_state: string | null;
372
378
 
373
379
  /**
374
- * Fields specific to the `network`
380
+ * Fields specific to the `network`.
375
381
  */
376
382
  network_details: CardDecline.NetworkDetails;
377
383
 
@@ -430,25 +436,25 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
430
436
 
431
437
  export namespace CardDecline {
432
438
  /**
433
- * Fields specific to the `network`
439
+ * Fields specific to the `network`.
434
440
  */
435
441
  export interface NetworkDetails {
436
442
  /**
437
- * The payment network used to process this card authorization
443
+ * The payment network used to process this card authorization.
438
444
  *
439
445
  * - `visa` - Visa
440
446
  */
441
447
  category: 'visa';
442
448
 
443
449
  /**
444
- * Fields specific to the `visa` network
450
+ * Fields specific to the `visa` network.
445
451
  */
446
452
  visa: NetworkDetails.Visa | null;
447
453
  }
448
454
 
449
455
  export namespace NetworkDetails {
450
456
  /**
451
- * Fields specific to the `visa` network
457
+ * Fields specific to the `visa` network.
452
458
  */
453
459
  export interface Visa {
454
460
  /**
@@ -499,7 +505,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
499
505
 
500
506
  /**
501
507
  * The method used to enter the cardholder's primary account number and card
502
- * expiration date
508
+ * expiration date.
503
509
  *
504
510
  * - `unknown` - Unknown
505
511
  * - `manual` - Manual key entry
@@ -542,43 +548,42 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
542
548
  */
543
549
  amount: number;
544
550
 
551
+ /**
552
+ * A computer-readable number printed on the MICR line of business checks, usually
553
+ * the check number. This is useful for positive pay checks, but can be unreliably
554
+ * transmitted by the bank of first deposit.
555
+ */
545
556
  auxiliary_on_us: string | null;
546
557
 
547
558
  /**
548
559
  * Why the check was declined.
549
560
  *
550
- * - `ach_route_canceled` - The account number is canceled.
551
561
  * - `ach_route_disabled` - The account number is disabled.
562
+ * - `ach_route_canceled` - The account number is canceled.
552
563
  * - `breaches_limit` - The transaction would cause a limit to be exceeded.
553
564
  * - `entity_not_active` - The account's entity is not active.
554
565
  * - `group_locked` - Your account is inactive.
555
566
  * - `insufficient_funds` - Your account contains insufficient funds.
556
- * - `unable_to_locate_account` - Unable to locate account.
557
- * - `not_our_item` - Routing number on the check is not ours.
558
- * - `unable_to_process` - Unable to process.
559
- * - `refer_to_image` - Refer to image.
560
567
  * - `stop_payment_requested` - Stop payment requested for this check.
561
- * - `returned` - Check was returned to sender.
562
568
  * - `duplicate_presentment` - The check was a duplicate deposit.
563
- * - `not_authorized` - The transaction is not allowed.
564
- * - `altered_or_fictitious` - The check was altered or fictitious.
569
+ * - `not_authorized` - The check was not authorized.
570
+ * - `amount_mismatch` - The amount the receiving bank is attempting to deposit
571
+ * does not match the amount on the check.
572
+ * - `not_our_item` - The check attempting to be deposited does not belong to
573
+ * Increase.
565
574
  */
566
575
  reason:
567
- | 'ach_route_canceled'
568
576
  | 'ach_route_disabled'
577
+ | 'ach_route_canceled'
569
578
  | 'breaches_limit'
570
579
  | 'entity_not_active'
571
580
  | 'group_locked'
572
581
  | 'insufficient_funds'
573
- | 'unable_to_locate_account'
574
- | 'not_our_item'
575
- | 'unable_to_process'
576
- | 'refer_to_image'
577
582
  | 'stop_payment_requested'
578
- | 'returned'
579
583
  | 'duplicate_presentment'
580
584
  | 'not_authorized'
581
- | 'altered_or_fictitious';
585
+ | 'amount_mismatch'
586
+ | 'not_our_item';
582
587
  }
583
588
 
584
589
  /**
@@ -668,74 +673,279 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
668
673
  */
669
674
  amount: number;
670
675
 
676
+ /**
677
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
678
+ * country code of the destination country.
679
+ */
671
680
  destination_country_code: string;
672
681
 
682
+ /**
683
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
684
+ * destination bank account.
685
+ */
673
686
  destination_currency_code: string;
674
687
 
675
- foreign_exchange_indicator: string;
688
+ /**
689
+ * A description of how the foreign exchange rate was calculated.
690
+ *
691
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
692
+ * The settled amount in USD was converted using the exchange rate.
693
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
694
+ * originator's amount was variable; known only after the foreign exchange
695
+ * conversion.
696
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
697
+ * USD. There is no foreign exchange conversion.
698
+ */
699
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
676
700
 
701
+ /**
702
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
703
+ * reference to a well-known rate.
704
+ */
677
705
  foreign_exchange_reference: string | null;
678
706
 
679
- foreign_exchange_reference_indicator: string;
707
+ /**
708
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
709
+ * this Transaction.
710
+ *
711
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
712
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
713
+ * well-known foreign exchange rate.
714
+ * - `blank` - There is no foreign exchange for this transfer, so the
715
+ * `foreign_exchange_reference` field is blank.
716
+ */
717
+ foreign_exchange_reference_indicator:
718
+ | 'foreign_exchange_rate'
719
+ | 'foreign_exchange_reference_number'
720
+ | 'blank';
680
721
 
722
+ /**
723
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
724
+ * example, this is cents.
725
+ */
681
726
  foreign_payment_amount: number;
682
727
 
728
+ /**
729
+ * A reference number in the foreign banking infrastructure.
730
+ */
683
731
  foreign_trace_number: string | null;
684
732
 
685
- international_transaction_type_code: string;
686
-
733
+ /**
734
+ * The type of transfer. Set by the originator.
735
+ *
736
+ * - `annuity` - Sent as `ANN` in the Nacha file.
737
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
738
+ * - `deposit` - Sent as `DEP` in the Nacha file.
739
+ * - `loan` - Sent as `LOA` in the Nacha file.
740
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
741
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
742
+ * - `pension` - Sent as `PEN` in the Nacha file.
743
+ * - `remittance` - Sent as `REM` in the Nacha file.
744
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
745
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
746
+ * - `tax` - Sent as `TAX` in the Nacha file.
747
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
748
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
749
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
750
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
751
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
752
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
753
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
754
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
755
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
756
+ */
757
+ international_transaction_type_code:
758
+ | 'annuity'
759
+ | 'business_or_commercial'
760
+ | 'deposit'
761
+ | 'loan'
762
+ | 'miscellaneous'
763
+ | 'mortgage'
764
+ | 'pension'
765
+ | 'remittance'
766
+ | 'rent_or_lease'
767
+ | 'salary_or_payroll'
768
+ | 'tax'
769
+ | 'accounts_receivable'
770
+ | 'back_office_conversion'
771
+ | 'machine_transfer'
772
+ | 'point_of_purchase'
773
+ | 'point_of_sale'
774
+ | 'represented_check'
775
+ | 'shared_network_transaction'
776
+ | 'telphone_initiated'
777
+ | 'internet_initiated';
778
+
779
+ /**
780
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
781
+ * originating bank account.
782
+ */
687
783
  originating_currency_code: string;
688
784
 
785
+ /**
786
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
787
+ * country code of the originating branch country.
788
+ */
689
789
  originating_depository_financial_institution_branch_country: string;
690
790
 
791
+ /**
792
+ * An identifier for the originating bank. One of an International Bank Account
793
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
794
+ * domestic identifier like a US Routing Number.
795
+ */
691
796
  originating_depository_financial_institution_id: string;
692
797
 
693
- originating_depository_financial_institution_id_qualifier: string;
798
+ /**
799
+ * An instruction of how to interpret the
800
+ * `originating_depository_financial_institution_id` field for this Transaction.
801
+ *
802
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
803
+ * US, for example, this is the American Banking Association (ABA) routing
804
+ * number.
805
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
806
+ * - `iban` - An International Bank Account Number.
807
+ */
808
+ originating_depository_financial_institution_id_qualifier:
809
+ | 'national_clearing_system_number'
810
+ | 'bic_code'
811
+ | 'iban';
694
812
 
813
+ /**
814
+ * The name of the originating bank. Sometimes this will refer to an American bank
815
+ * and obscure the correspondent foreign bank.
816
+ */
695
817
  originating_depository_financial_institution_name: string;
696
818
 
819
+ /**
820
+ * A portion of the originator address. This may be incomplete.
821
+ */
697
822
  originator_city: string;
698
823
 
824
+ /**
825
+ * A description field set by the originator.
826
+ */
699
827
  originator_company_entry_description: string;
700
828
 
829
+ /**
830
+ * A portion of the originator address. The
831
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
832
+ * code of the originator country.
833
+ */
701
834
  originator_country: string;
702
835
 
836
+ /**
837
+ * An identifier for the originating company. This is generally stable across
838
+ * multiple ACH transfers.
839
+ */
703
840
  originator_identification: string;
704
841
 
842
+ /**
843
+ * Either the name of the originator or an intermediary money transmitter.
844
+ */
705
845
  originator_name: string;
706
846
 
847
+ /**
848
+ * A portion of the originator address. This may be incomplete.
849
+ */
707
850
  originator_postal_code: string | null;
708
851
 
852
+ /**
853
+ * A portion of the originator address. This may be incomplete.
854
+ */
709
855
  originator_state_or_province: string | null;
710
856
 
857
+ /**
858
+ * A portion of the originator address. This may be incomplete.
859
+ */
711
860
  originator_street_address: string;
712
861
 
862
+ /**
863
+ * A description field set by the originator.
864
+ */
713
865
  payment_related_information: string | null;
714
866
 
867
+ /**
868
+ * A description field set by the originator.
869
+ */
715
870
  payment_related_information2: string | null;
716
871
 
872
+ /**
873
+ * A portion of the receiver address. This may be incomplete.
874
+ */
717
875
  receiver_city: string;
718
876
 
877
+ /**
878
+ * A portion of the receiver address. The
879
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
880
+ * code of the receiver country.
881
+ */
719
882
  receiver_country: string;
720
883
 
884
+ /**
885
+ * An identification number the originator uses for the receiver.
886
+ */
721
887
  receiver_identification_number: string | null;
722
888
 
889
+ /**
890
+ * A portion of the receiver address. This may be incomplete.
891
+ */
723
892
  receiver_postal_code: string | null;
724
893
 
894
+ /**
895
+ * A portion of the receiver address. This may be incomplete.
896
+ */
725
897
  receiver_state_or_province: string | null;
726
898
 
899
+ /**
900
+ * A portion of the receiver address. This may be incomplete.
901
+ */
727
902
  receiver_street_address: string;
728
903
 
904
+ /**
905
+ * The name of the receiver of the transfer. This is not verified by Increase.
906
+ */
729
907
  receiving_company_or_individual_name: string;
730
908
 
909
+ /**
910
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
911
+ * country code of the receiving bank country.
912
+ */
731
913
  receiving_depository_financial_institution_country: string;
732
914
 
915
+ /**
916
+ * An identifier for the receiving bank. One of an International Bank Account
917
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
918
+ * domestic identifier like a US Routing Number.
919
+ */
733
920
  receiving_depository_financial_institution_id: string;
734
921
 
735
- receiving_depository_financial_institution_id_qualifier: string;
922
+ /**
923
+ * An instruction of how to interpret the
924
+ * `receiving_depository_financial_institution_id` field for this Transaction.
925
+ *
926
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
927
+ * US, for example, this is the American Banking Association (ABA) routing
928
+ * number.
929
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
930
+ * - `iban` - An International Bank Account Number.
931
+ */
932
+ receiving_depository_financial_institution_id_qualifier:
933
+ | 'national_clearing_system_number'
934
+ | 'bic_code'
935
+ | 'iban';
736
936
 
937
+ /**
938
+ * The name of the receiving bank, as set by the sending financial institution.
939
+ */
737
940
  receiving_depository_financial_institution_name: string;
738
941
 
942
+ /**
943
+ * A 15 digit number recorded in the Nacha file and available to both the
944
+ * originating and receiving bank. Along with the amount, date, and originating
945
+ * routing number, this can be used to identify the ACH transfer at either bank.
946
+ * ACH trace numbers are not unique, but are
947
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
948
+ */
739
949
  trace_number: string;
740
950
  }
741
951
 
@@ -750,34 +960,81 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
750
960
  */
751
961
  amount: number;
752
962
 
963
+ /**
964
+ * A free-form address field set by the sender.
965
+ */
753
966
  beneficiary_address_line1: string | null;
754
967
 
968
+ /**
969
+ * A free-form address field set by the sender.
970
+ */
755
971
  beneficiary_address_line2: string | null;
756
972
 
973
+ /**
974
+ * A free-form address field set by the sender.
975
+ */
757
976
  beneficiary_address_line3: string | null;
758
977
 
978
+ /**
979
+ * A name set by the sender.
980
+ */
759
981
  beneficiary_name: string | null;
760
982
 
983
+ /**
984
+ * A free-form reference string set by the sender, to help identify the transfer.
985
+ */
761
986
  beneficiary_reference: string | null;
762
987
 
988
+ /**
989
+ * An Increase-constructed description of the declined transaction.
990
+ */
763
991
  description: string;
764
992
 
993
+ /**
994
+ * A unique identifier available to the originating and receiving banks, commonly
995
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
996
+ * service and is helpful when debugging wires with the originating bank.
997
+ */
765
998
  input_message_accountability_data: string | null;
766
999
 
1000
+ /**
1001
+ * The address of the wire originator, set by the sending bank.
1002
+ */
767
1003
  originator_address_line1: string | null;
768
1004
 
1005
+ /**
1006
+ * The address of the wire originator, set by the sending bank.
1007
+ */
769
1008
  originator_address_line2: string | null;
770
1009
 
1010
+ /**
1011
+ * The address of the wire originator, set by the sending bank.
1012
+ */
771
1013
  originator_address_line3: string | null;
772
1014
 
1015
+ /**
1016
+ * The originator of the wire, set by the sending bank.
1017
+ */
773
1018
  originator_name: string | null;
774
1019
 
1020
+ /**
1021
+ * A free-form message set by the wire originator.
1022
+ */
775
1023
  originator_to_beneficiary_information_line1: string | null;
776
1024
 
1025
+ /**
1026
+ * A free-form message set by the wire originator.
1027
+ */
777
1028
  originator_to_beneficiary_information_line2: string | null;
778
1029
 
1030
+ /**
1031
+ * A free-form message set by the wire originator.
1032
+ */
779
1033
  originator_to_beneficiary_information_line3: string | null;
780
1034
 
1035
+ /**
1036
+ * A free-form message set by the wire originator.
1037
+ */
781
1038
  originator_to_beneficiary_information_line4: string | null;
782
1039
 
783
1040
  /**
@@ -1211,6 +1468,9 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1211
1468
  * response if and only if `category` is equal to `ach_transfer_intention`.
1212
1469
  */
1213
1470
  export interface ACHTransferIntention {
1471
+ /**
1472
+ * The account number for the destination account.
1473
+ */
1214
1474
  account_number: string;
1215
1475
 
1216
1476
  /**
@@ -1219,8 +1479,15 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1219
1479
  */
1220
1480
  amount: number;
1221
1481
 
1482
+ /**
1483
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
1484
+ * destination account.
1485
+ */
1222
1486
  routing_number: string;
1223
1487
 
1488
+ /**
1489
+ * A description set when the ACH Transfer was created.
1490
+ */
1224
1491
  statement_descriptor: string;
1225
1492
 
1226
1493
  /**
@@ -1292,7 +1559,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1292
1559
  * - `enr_invalid_individual_name` - Code R45. The individual name field was
1293
1560
  * invalid.
1294
1561
  * - `returned_per_odfi_request` - Code R06. The originating financial institution
1295
- * reversed the transfer.
1562
+ * asked for this transfer to be returned.
1296
1563
  * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
1297
1564
  * supervisor has limited their participation.
1298
1565
  * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
@@ -1379,7 +1646,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1379
1646
  * bank disputes that an earlier `duplicate_entry` return was actually a
1380
1647
  * duplicate.
1381
1648
  * - `return_of_erroneous_or_reversing_debit` - Code R62. A rare return reason. The
1382
- * originating bank made a mistake earlier and this return corrects it.
1649
+ * originating financial institution made a mistake and this return corrects it.
1383
1650
  * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
1384
1651
  * a malformed credit entry.
1385
1652
  * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a
@@ -2868,6 +3135,9 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
2868
3135
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2869
3136
 
2870
3137
  /**
3138
+ * Why this check was returned by the bank holding the account it was drawn
3139
+ * against.
3140
+ *
2871
3141
  * - `ach_conversion_not_supported` - The check doesn't allow ACH conversion.
2872
3142
  * - `closed_account` - The account is closed.
2873
3143
  * - `duplicate_submission` - The check has already been deposited.
@@ -2919,6 +3189,13 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
2919
3189
  */
2920
3190
  back_image_file_id: string | null;
2921
3191
 
3192
+ /**
3193
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
3194
+ * bank depositing this check. In some rare cases, this is not transmitted via
3195
+ * Check21 and the value will be null.
3196
+ */
3197
+ bank_of_first_deposit_routing_number: string | null;
3198
+
2922
3199
  /**
2923
3200
  * When the check was deposited.
2924
3201
  */
@@ -3075,21 +3352,56 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3075
3352
  */
3076
3353
  amount: number;
3077
3354
 
3355
+ /**
3356
+ * The description of the date of the transfer, usually in the format `YYMMDD`.
3357
+ */
3078
3358
  originator_company_descriptive_date: string | null;
3079
3359
 
3360
+ /**
3361
+ * Data set by the originator.
3362
+ */
3080
3363
  originator_company_discretionary_data: string | null;
3081
3364
 
3365
+ /**
3366
+ * An informational description of the transfer.
3367
+ */
3082
3368
  originator_company_entry_description: string;
3083
3369
 
3370
+ /**
3371
+ * An identifier for the originating company. This is generally, but not always, a
3372
+ * stable identifier across multiple transfers.
3373
+ */
3084
3374
  originator_company_id: string;
3085
3375
 
3376
+ /**
3377
+ * A name set by the originator to identify themselves.
3378
+ */
3086
3379
  originator_company_name: string;
3087
3380
 
3381
+ /**
3382
+ * The originator's identifier for the transfer receipient.
3383
+ */
3088
3384
  receiver_id_number: string | null;
3089
3385
 
3386
+ /**
3387
+ * The name of the transfer recipient. This value is informational and not verified
3388
+ * by Increase.
3389
+ */
3090
3390
  receiver_name: string | null;
3091
3391
 
3392
+ /**
3393
+ * A 15 digit number recorded in the Nacha file and available to both the
3394
+ * originating and receiving bank. Along with the amount, date, and originating
3395
+ * routing number, this can be used to identify the ACH transfer at either bank.
3396
+ * ACH trace numbers are not unique, but are
3397
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
3398
+ */
3092
3399
  trace_number: string;
3400
+
3401
+ /**
3402
+ * The inbound ach transfer's identifier.
3403
+ */
3404
+ transfer_id: string;
3093
3405
  }
3094
3406
 
3095
3407
  /**
@@ -3103,10 +3415,27 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3103
3415
  */
3104
3416
  amount: number;
3105
3417
 
3418
+ /**
3419
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
3420
+ * bank depositing this check. In some rare cases, this is not transmitted via
3421
+ * Check21 and the value will be null.
3422
+ */
3423
+ bank_of_first_deposit_routing_number: string | null;
3424
+
3425
+ /**
3426
+ * The front image of the check. This is a black and white TIFF image file.
3427
+ */
3106
3428
  check_front_image_file_id: string | null;
3107
3429
 
3430
+ /**
3431
+ * The number of the check. This field is set by the depositing bank and can be
3432
+ * unreliable.
3433
+ */
3108
3434
  check_number: string | null;
3109
3435
 
3436
+ /**
3437
+ * The rear image of the check. This is a black and white TIFF image file.
3438
+ */
3110
3439
  check_rear_image_file_id: string | null;
3111
3440
 
3112
3441
  /**
@@ -3135,74 +3464,279 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3135
3464
  */
3136
3465
  amount: number;
3137
3466
 
3467
+ /**
3468
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3469
+ * country code of the destination country.
3470
+ */
3138
3471
  destination_country_code: string;
3139
3472
 
3473
+ /**
3474
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
3475
+ * destination bank account.
3476
+ */
3140
3477
  destination_currency_code: string;
3141
3478
 
3142
- foreign_exchange_indicator: string;
3479
+ /**
3480
+ * A description of how the foreign exchange rate was calculated.
3481
+ *
3482
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
3483
+ * The settled amount in USD was converted using the exchange rate.
3484
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
3485
+ * originator's amount was variable; known only after the foreign exchange
3486
+ * conversion.
3487
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
3488
+ * USD. There is no foreign exchange conversion.
3489
+ */
3490
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
3143
3491
 
3492
+ /**
3493
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
3494
+ * reference to a well-known rate.
3495
+ */
3144
3496
  foreign_exchange_reference: string | null;
3145
3497
 
3146
- foreign_exchange_reference_indicator: string;
3498
+ /**
3499
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
3500
+ * this Transaction.
3501
+ *
3502
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
3503
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
3504
+ * well-known foreign exchange rate.
3505
+ * - `blank` - There is no foreign exchange for this transfer, so the
3506
+ * `foreign_exchange_reference` field is blank.
3507
+ */
3508
+ foreign_exchange_reference_indicator:
3509
+ | 'foreign_exchange_rate'
3510
+ | 'foreign_exchange_reference_number'
3511
+ | 'blank';
3147
3512
 
3513
+ /**
3514
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
3515
+ * example, this is cents.
3516
+ */
3148
3517
  foreign_payment_amount: number;
3149
3518
 
3519
+ /**
3520
+ * A reference number in the foreign banking infrastructure.
3521
+ */
3150
3522
  foreign_trace_number: string | null;
3151
3523
 
3152
- international_transaction_type_code: string;
3153
-
3524
+ /**
3525
+ * The type of transfer. Set by the originator.
3526
+ *
3527
+ * - `annuity` - Sent as `ANN` in the Nacha file.
3528
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
3529
+ * - `deposit` - Sent as `DEP` in the Nacha file.
3530
+ * - `loan` - Sent as `LOA` in the Nacha file.
3531
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
3532
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
3533
+ * - `pension` - Sent as `PEN` in the Nacha file.
3534
+ * - `remittance` - Sent as `REM` in the Nacha file.
3535
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
3536
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
3537
+ * - `tax` - Sent as `TAX` in the Nacha file.
3538
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
3539
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
3540
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
3541
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
3542
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
3543
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
3544
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
3545
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
3546
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
3547
+ */
3548
+ international_transaction_type_code:
3549
+ | 'annuity'
3550
+ | 'business_or_commercial'
3551
+ | 'deposit'
3552
+ | 'loan'
3553
+ | 'miscellaneous'
3554
+ | 'mortgage'
3555
+ | 'pension'
3556
+ | 'remittance'
3557
+ | 'rent_or_lease'
3558
+ | 'salary_or_payroll'
3559
+ | 'tax'
3560
+ | 'accounts_receivable'
3561
+ | 'back_office_conversion'
3562
+ | 'machine_transfer'
3563
+ | 'point_of_purchase'
3564
+ | 'point_of_sale'
3565
+ | 'represented_check'
3566
+ | 'shared_network_transaction'
3567
+ | 'telphone_initiated'
3568
+ | 'internet_initiated';
3569
+
3570
+ /**
3571
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
3572
+ * originating bank account.
3573
+ */
3154
3574
  originating_currency_code: string;
3155
3575
 
3576
+ /**
3577
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3578
+ * country code of the originating branch country.
3579
+ */
3156
3580
  originating_depository_financial_institution_branch_country: string;
3157
3581
 
3582
+ /**
3583
+ * An identifier for the originating bank. One of an International Bank Account
3584
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
3585
+ * domestic identifier like a US Routing Number.
3586
+ */
3158
3587
  originating_depository_financial_institution_id: string;
3159
3588
 
3160
- originating_depository_financial_institution_id_qualifier: string;
3589
+ /**
3590
+ * An instruction of how to interpret the
3591
+ * `originating_depository_financial_institution_id` field for this Transaction.
3592
+ *
3593
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
3594
+ * US, for example, this is the American Banking Association (ABA) routing
3595
+ * number.
3596
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
3597
+ * - `iban` - An International Bank Account Number.
3598
+ */
3599
+ originating_depository_financial_institution_id_qualifier:
3600
+ | 'national_clearing_system_number'
3601
+ | 'bic_code'
3602
+ | 'iban';
3161
3603
 
3604
+ /**
3605
+ * The name of the originating bank. Sometimes this will refer to an American bank
3606
+ * and obscure the correspondent foreign bank.
3607
+ */
3162
3608
  originating_depository_financial_institution_name: string;
3163
3609
 
3610
+ /**
3611
+ * A portion of the originator address. This may be incomplete.
3612
+ */
3164
3613
  originator_city: string;
3165
3614
 
3615
+ /**
3616
+ * A description field set by the originator.
3617
+ */
3166
3618
  originator_company_entry_description: string;
3167
3619
 
3620
+ /**
3621
+ * A portion of the originator address. The
3622
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
3623
+ * code of the originator country.
3624
+ */
3168
3625
  originator_country: string;
3169
3626
 
3627
+ /**
3628
+ * An identifier for the originating company. This is generally stable across
3629
+ * multiple ACH transfers.
3630
+ */
3170
3631
  originator_identification: string;
3171
3632
 
3633
+ /**
3634
+ * Either the name of the originator or an intermediary money transmitter.
3635
+ */
3172
3636
  originator_name: string;
3173
3637
 
3638
+ /**
3639
+ * A portion of the originator address. This may be incomplete.
3640
+ */
3174
3641
  originator_postal_code: string | null;
3175
3642
 
3643
+ /**
3644
+ * A portion of the originator address. This may be incomplete.
3645
+ */
3176
3646
  originator_state_or_province: string | null;
3177
3647
 
3648
+ /**
3649
+ * A portion of the originator address. This may be incomplete.
3650
+ */
3178
3651
  originator_street_address: string;
3179
3652
 
3653
+ /**
3654
+ * A description field set by the originator.
3655
+ */
3180
3656
  payment_related_information: string | null;
3181
3657
 
3658
+ /**
3659
+ * A description field set by the originator.
3660
+ */
3182
3661
  payment_related_information2: string | null;
3183
3662
 
3663
+ /**
3664
+ * A portion of the receiver address. This may be incomplete.
3665
+ */
3184
3666
  receiver_city: string;
3185
3667
 
3668
+ /**
3669
+ * A portion of the receiver address. The
3670
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
3671
+ * code of the receiver country.
3672
+ */
3186
3673
  receiver_country: string;
3187
3674
 
3675
+ /**
3676
+ * An identification number the originator uses for the receiver.
3677
+ */
3188
3678
  receiver_identification_number: string | null;
3189
3679
 
3680
+ /**
3681
+ * A portion of the receiver address. This may be incomplete.
3682
+ */
3190
3683
  receiver_postal_code: string | null;
3191
3684
 
3685
+ /**
3686
+ * A portion of the receiver address. This may be incomplete.
3687
+ */
3192
3688
  receiver_state_or_province: string | null;
3193
3689
 
3690
+ /**
3691
+ * A portion of the receiver address. This may be incomplete.
3692
+ */
3194
3693
  receiver_street_address: string;
3195
3694
 
3695
+ /**
3696
+ * The name of the receiver of the transfer. This is not verified by Increase.
3697
+ */
3196
3698
  receiving_company_or_individual_name: string;
3197
3699
 
3700
+ /**
3701
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
3702
+ * country code of the receiving bank country.
3703
+ */
3198
3704
  receiving_depository_financial_institution_country: string;
3199
3705
 
3706
+ /**
3707
+ * An identifier for the receiving bank. One of an International Bank Account
3708
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
3709
+ * domestic identifier like a US Routing Number.
3710
+ */
3200
3711
  receiving_depository_financial_institution_id: string;
3201
3712
 
3202
- receiving_depository_financial_institution_id_qualifier: string;
3713
+ /**
3714
+ * An instruction of how to interpret the
3715
+ * `receiving_depository_financial_institution_id` field for this Transaction.
3716
+ *
3717
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
3718
+ * US, for example, this is the American Banking Association (ABA) routing
3719
+ * number.
3720
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
3721
+ * - `iban` - An International Bank Account Number.
3722
+ */
3723
+ receiving_depository_financial_institution_id_qualifier:
3724
+ | 'national_clearing_system_number'
3725
+ | 'bic_code'
3726
+ | 'iban';
3203
3727
 
3728
+ /**
3729
+ * The name of the receiving bank, as set by the sending financial institution.
3730
+ */
3204
3731
  receiving_depository_financial_institution_name: string;
3205
3732
 
3733
+ /**
3734
+ * A 15 digit number recorded in the Nacha file and available to both the
3735
+ * originating and receiving bank. Along with the amount, date, and originating
3736
+ * routing number, this can be used to identify the ACH transfer at either bank.
3737
+ * ACH trace numbers are not unique, but are
3738
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
3739
+ */
3206
3740
  trace_number: string;
3207
3741
  }
3208
3742
 
@@ -3257,7 +3791,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3257
3791
  remittance_information: string | null;
3258
3792
 
3259
3793
  /**
3260
- * The Real-Time Payments network identification of the transfer
3794
+ * The Real-Time Payments network identification of the transfer.
3261
3795
  */
3262
3796
  transaction_identification: string;
3263
3797
  }
@@ -3273,29 +3807,87 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3273
3807
  */
3274
3808
  amount: number;
3275
3809
 
3810
+ /**
3811
+ * A free-form address field set by the sender.
3812
+ */
3276
3813
  beneficiary_address_line1: string | null;
3277
3814
 
3815
+ /**
3816
+ * A free-form address field set by the sender.
3817
+ */
3278
3818
  beneficiary_address_line2: string | null;
3279
3819
 
3820
+ /**
3821
+ * A free-form address field set by the sender.
3822
+ */
3280
3823
  beneficiary_address_line3: string | null;
3281
3824
 
3825
+ /**
3826
+ * A name set by the sender.
3827
+ */
3282
3828
  beneficiary_name: string | null;
3283
3829
 
3830
+ /**
3831
+ * A free-form reference string set by the sender, to help identify the transfer.
3832
+ */
3284
3833
  beneficiary_reference: string | null;
3285
3834
 
3835
+ /**
3836
+ * An Increase-constructed description of the transfer.
3837
+ */
3286
3838
  description: string;
3287
3839
 
3840
+ /**
3841
+ * A unique identifier available to the originating and receiving banks, commonly
3842
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
3843
+ * service and is helpful when debugging wires with the receiving bank.
3844
+ */
3288
3845
  input_message_accountability_data: string | null;
3289
3846
 
3847
+ /**
3848
+ * The address of the wire originator, set by the sending bank.
3849
+ */
3290
3850
  originator_address_line1: string | null;
3291
3851
 
3852
+ /**
3853
+ * The address of the wire originator, set by the sending bank.
3854
+ */
3292
3855
  originator_address_line2: string | null;
3293
3856
 
3857
+ /**
3858
+ * The address of the wire originator, set by the sending bank.
3859
+ */
3294
3860
  originator_address_line3: string | null;
3295
3861
 
3862
+ /**
3863
+ * The originator of the wire, set by the sending bank.
3864
+ */
3296
3865
  originator_name: string | null;
3297
3866
 
3867
+ /**
3868
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
3869
+ */
3298
3870
  originator_to_beneficiary_information: string | null;
3871
+
3872
+ /**
3873
+ * A free-form message set by the wire originator.
3874
+ */
3875
+ originator_to_beneficiary_information_line1: string | null;
3876
+
3877
+ /**
3878
+ * A free-form message set by the wire originator.
3879
+ */
3880
+ originator_to_beneficiary_information_line2: string | null;
3881
+
3882
+ /**
3883
+ * A free-form message set by the wire originator.
3884
+ */
3885
+ originator_to_beneficiary_information_line3: string | null;
3886
+
3887
+ /**
3888
+ * A free-form message set by the wire originator.
3889
+ */
3890
+ originator_to_beneficiary_information_line4: string | null;
3299
3891
  }
3300
3892
 
3301
3893
  /**
@@ -3361,7 +3953,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3361
3953
  */
3362
3954
  export interface InboundWireReversal {
3363
3955
  /**
3364
- * The amount that was reversed.
3956
+ * The amount that was reversed in USD cents.
3365
3957
  */
3366
3958
  amount: number;
3367
3959
 
@@ -3372,7 +3964,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3372
3964
  created_at: string;
3373
3965
 
3374
3966
  /**
3375
- * The description on the reversal message from Fedwire.
3967
+ * The description on the reversal message from Fedwire, set by the reversing bank.
3376
3968
  */
3377
3969
  description: string;
3378
3970
 
@@ -3382,7 +3974,8 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3382
3974
  financial_institution_to_financial_institution_information: string | null;
3383
3975
 
3384
3976
  /**
3385
- * The Fedwire cycle date for the wire reversal.
3977
+ * The Fedwire cycle date for the wire reversal. The "Fedwire day" begins at 9:00
3978
+ * PM Eastern Time on the evening before the `cycle date`.
3386
3979
  */
3387
3980
  input_cycle_date: string;
3388
3981
 
@@ -3402,7 +3995,8 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3402
3995
  input_source: string;
3403
3996
 
3404
3997
  /**
3405
- * The Fedwire cycle date for the wire transfer that was reversed.
3998
+ * The Fedwire cycle date for the wire transfer that is being reversed by this
3999
+ * message.
3406
4000
  */
3407
4001
  previous_message_input_cycle_date: string;
3408
4002
 
@@ -3444,41 +4038,90 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3444
4038
  */
3445
4039
  export interface InboundWireTransfer {
3446
4040
  /**
3447
- * The amount in the minor unit of the transaction's currency. For dollars, for
3448
- * example, this is cents.
4041
+ * The amount in USD cents.
3449
4042
  */
3450
4043
  amount: number;
3451
4044
 
4045
+ /**
4046
+ * A free-form address field set by the sender.
4047
+ */
3452
4048
  beneficiary_address_line1: string | null;
3453
4049
 
4050
+ /**
4051
+ * A free-form address field set by the sender.
4052
+ */
3454
4053
  beneficiary_address_line2: string | null;
3455
4054
 
4055
+ /**
4056
+ * A free-form address field set by the sender.
4057
+ */
3456
4058
  beneficiary_address_line3: string | null;
3457
4059
 
4060
+ /**
4061
+ * A name set by the sender.
4062
+ */
3458
4063
  beneficiary_name: string | null;
3459
4064
 
4065
+ /**
4066
+ * A free-form reference string set by the sender, to help identify the transfer.
4067
+ */
3460
4068
  beneficiary_reference: string | null;
3461
4069
 
4070
+ /**
4071
+ * An Increase-constructed description of the transfer.
4072
+ */
3462
4073
  description: string;
3463
4074
 
4075
+ /**
4076
+ * A unique identifier available to the originating and receiving banks, commonly
4077
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
4078
+ * service and is helpful when debugging wires with the originating bank.
4079
+ */
3464
4080
  input_message_accountability_data: string | null;
3465
4081
 
4082
+ /**
4083
+ * The address of the wire originator, set by the sending bank.
4084
+ */
3466
4085
  originator_address_line1: string | null;
3467
4086
 
4087
+ /**
4088
+ * The address of the wire originator, set by the sending bank.
4089
+ */
3468
4090
  originator_address_line2: string | null;
3469
4091
 
4092
+ /**
4093
+ * The address of the wire originator, set by the sending bank.
4094
+ */
3470
4095
  originator_address_line3: string | null;
3471
4096
 
4097
+ /**
4098
+ * The originator of the wire, set by the sending bank.
4099
+ */
3472
4100
  originator_name: string | null;
3473
4101
 
4102
+ /**
4103
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
4104
+ */
3474
4105
  originator_to_beneficiary_information: string | null;
3475
4106
 
4107
+ /**
4108
+ * A free-form message set by the wire originator.
4109
+ */
3476
4110
  originator_to_beneficiary_information_line1: string | null;
3477
4111
 
4112
+ /**
4113
+ * A free-form message set by the wire originator.
4114
+ */
3478
4115
  originator_to_beneficiary_information_line2: string | null;
3479
4116
 
4117
+ /**
4118
+ * A free-form message set by the wire originator.
4119
+ */
3480
4120
  originator_to_beneficiary_information_line3: string | null;
3481
4121
 
4122
+ /**
4123
+ * A free-form message set by the wire originator.
4124
+ */
3482
4125
  originator_to_beneficiary_information_line4: string | null;
3483
4126
  }
3484
4127
 
@@ -3547,6 +4190,9 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3547
4190
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
3548
4191
 
3549
4192
  /**
4193
+ * An Internal Source is a transaction between you and Increase. This describes the
4194
+ * reason for the transaction.
4195
+ *
3550
4196
  * - `account_closure` - Account closure
3551
4197
  * - `bank_migration` - Bank migration
3552
4198
  * - `cashback` - Cashback
@@ -3645,6 +4291,9 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3645
4291
  */
3646
4292
  routing_number: string;
3647
4293
 
4294
+ /**
4295
+ * The identifier of the Wire Transfer that led to this Transaction.
4296
+ */
3648
4297
  transfer_id: string;
3649
4298
  }
3650
4299
 
@@ -3653,6 +4302,9 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
3653
4302
  * response if and only if `category` is equal to `wire_transfer_rejection`.
3654
4303
  */
3655
4304
  export interface WireTransferRejection {
4305
+ /**
4306
+ * The identifier of the Wire Transfer that led to this Transaction.
4307
+ */
3656
4308
  transfer_id: string;
3657
4309
  }
3658
4310
  }