increase 0.10.3 → 0.10.4

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