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,8 +1,8 @@
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 API from './index';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import * as API from './index.js';
6
6
 
7
7
  export class InterestPayments extends APIResource {
8
8
  /**
@@ -443,6 +443,9 @@ export namespace InterestPaymentSimulationResult {
443
443
  * response if and only if `category` is equal to `ach_transfer_intention`.
444
444
  */
445
445
  export interface ACHTransferIntention {
446
+ /**
447
+ * The account number for the destination account.
448
+ */
446
449
  account_number: string;
447
450
 
448
451
  /**
@@ -451,8 +454,15 @@ export namespace InterestPaymentSimulationResult {
451
454
  */
452
455
  amount: number;
453
456
 
457
+ /**
458
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
459
+ * destination account.
460
+ */
454
461
  routing_number: string;
455
462
 
463
+ /**
464
+ * A description set when the ACH Transfer was created.
465
+ */
456
466
  statement_descriptor: string;
457
467
 
458
468
  /**
@@ -524,7 +534,7 @@ export namespace InterestPaymentSimulationResult {
524
534
  * - `enr_invalid_individual_name` - Code R45. The individual name field was
525
535
  * invalid.
526
536
  * - `returned_per_odfi_request` - Code R06. The originating financial institution
527
- * reversed the transfer.
537
+ * asked for this transfer to be returned.
528
538
  * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
529
539
  * supervisor has limited their participation.
530
540
  * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
@@ -611,7 +621,7 @@ export namespace InterestPaymentSimulationResult {
611
621
  * bank disputes that an earlier `duplicate_entry` return was actually a
612
622
  * duplicate.
613
623
  * - `return_of_erroneous_or_reversing_debit` - Code R62. A rare return reason. The
614
- * originating bank made a mistake earlier and this return corrects it.
624
+ * originating financial institution made a mistake and this return corrects it.
615
625
  * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
616
626
  * a malformed credit entry.
617
627
  * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a
@@ -2100,6 +2110,9 @@ export namespace InterestPaymentSimulationResult {
2100
2110
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2101
2111
 
2102
2112
  /**
2113
+ * Why this check was returned by the bank holding the account it was drawn
2114
+ * against.
2115
+ *
2103
2116
  * - `ach_conversion_not_supported` - The check doesn't allow ACH conversion.
2104
2117
  * - `closed_account` - The account is closed.
2105
2118
  * - `duplicate_submission` - The check has already been deposited.
@@ -2151,6 +2164,13 @@ export namespace InterestPaymentSimulationResult {
2151
2164
  */
2152
2165
  back_image_file_id: string | null;
2153
2166
 
2167
+ /**
2168
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
2169
+ * bank depositing this check. In some rare cases, this is not transmitted via
2170
+ * Check21 and the value will be null.
2171
+ */
2172
+ bank_of_first_deposit_routing_number: string | null;
2173
+
2154
2174
  /**
2155
2175
  * When the check was deposited.
2156
2176
  */
@@ -2307,21 +2327,56 @@ export namespace InterestPaymentSimulationResult {
2307
2327
  */
2308
2328
  amount: number;
2309
2329
 
2330
+ /**
2331
+ * The description of the date of the transfer, usually in the format `YYMMDD`.
2332
+ */
2310
2333
  originator_company_descriptive_date: string | null;
2311
2334
 
2335
+ /**
2336
+ * Data set by the originator.
2337
+ */
2312
2338
  originator_company_discretionary_data: string | null;
2313
2339
 
2340
+ /**
2341
+ * An informational description of the transfer.
2342
+ */
2314
2343
  originator_company_entry_description: string;
2315
2344
 
2345
+ /**
2346
+ * An identifier for the originating company. This is generally, but not always, a
2347
+ * stable identifier across multiple transfers.
2348
+ */
2316
2349
  originator_company_id: string;
2317
2350
 
2351
+ /**
2352
+ * A name set by the originator to identify themselves.
2353
+ */
2318
2354
  originator_company_name: string;
2319
2355
 
2356
+ /**
2357
+ * The originator's identifier for the transfer receipient.
2358
+ */
2320
2359
  receiver_id_number: string | null;
2321
2360
 
2361
+ /**
2362
+ * The name of the transfer recipient. This value is informational and not verified
2363
+ * by Increase.
2364
+ */
2322
2365
  receiver_name: string | null;
2323
2366
 
2367
+ /**
2368
+ * A 15 digit number recorded in the Nacha file and available to both the
2369
+ * originating and receiving bank. Along with the amount, date, and originating
2370
+ * routing number, this can be used to identify the ACH transfer at either bank.
2371
+ * ACH trace numbers are not unique, but are
2372
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
2373
+ */
2324
2374
  trace_number: string;
2375
+
2376
+ /**
2377
+ * The inbound ach transfer's identifier.
2378
+ */
2379
+ transfer_id: string;
2325
2380
  }
2326
2381
 
2327
2382
  /**
@@ -2335,10 +2390,27 @@ export namespace InterestPaymentSimulationResult {
2335
2390
  */
2336
2391
  amount: number;
2337
2392
 
2393
+ /**
2394
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
2395
+ * bank depositing this check. In some rare cases, this is not transmitted via
2396
+ * Check21 and the value will be null.
2397
+ */
2398
+ bank_of_first_deposit_routing_number: string | null;
2399
+
2400
+ /**
2401
+ * The front image of the check. This is a black and white TIFF image file.
2402
+ */
2338
2403
  check_front_image_file_id: string | null;
2339
2404
 
2405
+ /**
2406
+ * The number of the check. This field is set by the depositing bank and can be
2407
+ * unreliable.
2408
+ */
2340
2409
  check_number: string | null;
2341
2410
 
2411
+ /**
2412
+ * The rear image of the check. This is a black and white TIFF image file.
2413
+ */
2342
2414
  check_rear_image_file_id: string | null;
2343
2415
 
2344
2416
  /**
@@ -2367,74 +2439,279 @@ export namespace InterestPaymentSimulationResult {
2367
2439
  */
2368
2440
  amount: number;
2369
2441
 
2442
+ /**
2443
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
2444
+ * country code of the destination country.
2445
+ */
2370
2446
  destination_country_code: string;
2371
2447
 
2448
+ /**
2449
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
2450
+ * destination bank account.
2451
+ */
2372
2452
  destination_currency_code: string;
2373
2453
 
2374
- foreign_exchange_indicator: string;
2454
+ /**
2455
+ * A description of how the foreign exchange rate was calculated.
2456
+ *
2457
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
2458
+ * The settled amount in USD was converted using the exchange rate.
2459
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
2460
+ * originator's amount was variable; known only after the foreign exchange
2461
+ * conversion.
2462
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
2463
+ * USD. There is no foreign exchange conversion.
2464
+ */
2465
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
2375
2466
 
2467
+ /**
2468
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
2469
+ * reference to a well-known rate.
2470
+ */
2376
2471
  foreign_exchange_reference: string | null;
2377
2472
 
2378
- foreign_exchange_reference_indicator: string;
2473
+ /**
2474
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
2475
+ * this Transaction.
2476
+ *
2477
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
2478
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
2479
+ * well-known foreign exchange rate.
2480
+ * - `blank` - There is no foreign exchange for this transfer, so the
2481
+ * `foreign_exchange_reference` field is blank.
2482
+ */
2483
+ foreign_exchange_reference_indicator:
2484
+ | 'foreign_exchange_rate'
2485
+ | 'foreign_exchange_reference_number'
2486
+ | 'blank';
2379
2487
 
2488
+ /**
2489
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
2490
+ * example, this is cents.
2491
+ */
2380
2492
  foreign_payment_amount: number;
2381
2493
 
2494
+ /**
2495
+ * A reference number in the foreign banking infrastructure.
2496
+ */
2382
2497
  foreign_trace_number: string | null;
2383
2498
 
2384
- international_transaction_type_code: string;
2385
-
2499
+ /**
2500
+ * The type of transfer. Set by the originator.
2501
+ *
2502
+ * - `annuity` - Sent as `ANN` in the Nacha file.
2503
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
2504
+ * - `deposit` - Sent as `DEP` in the Nacha file.
2505
+ * - `loan` - Sent as `LOA` in the Nacha file.
2506
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
2507
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
2508
+ * - `pension` - Sent as `PEN` in the Nacha file.
2509
+ * - `remittance` - Sent as `REM` in the Nacha file.
2510
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
2511
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
2512
+ * - `tax` - Sent as `TAX` in the Nacha file.
2513
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
2514
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
2515
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
2516
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
2517
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
2518
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
2519
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
2520
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
2521
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
2522
+ */
2523
+ international_transaction_type_code:
2524
+ | 'annuity'
2525
+ | 'business_or_commercial'
2526
+ | 'deposit'
2527
+ | 'loan'
2528
+ | 'miscellaneous'
2529
+ | 'mortgage'
2530
+ | 'pension'
2531
+ | 'remittance'
2532
+ | 'rent_or_lease'
2533
+ | 'salary_or_payroll'
2534
+ | 'tax'
2535
+ | 'accounts_receivable'
2536
+ | 'back_office_conversion'
2537
+ | 'machine_transfer'
2538
+ | 'point_of_purchase'
2539
+ | 'point_of_sale'
2540
+ | 'represented_check'
2541
+ | 'shared_network_transaction'
2542
+ | 'telphone_initiated'
2543
+ | 'internet_initiated';
2544
+
2545
+ /**
2546
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
2547
+ * originating bank account.
2548
+ */
2386
2549
  originating_currency_code: string;
2387
2550
 
2551
+ /**
2552
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
2553
+ * country code of the originating branch country.
2554
+ */
2388
2555
  originating_depository_financial_institution_branch_country: string;
2389
2556
 
2557
+ /**
2558
+ * An identifier for the originating bank. One of an International Bank Account
2559
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
2560
+ * domestic identifier like a US Routing Number.
2561
+ */
2390
2562
  originating_depository_financial_institution_id: string;
2391
2563
 
2392
- originating_depository_financial_institution_id_qualifier: string;
2564
+ /**
2565
+ * An instruction of how to interpret the
2566
+ * `originating_depository_financial_institution_id` field for this Transaction.
2567
+ *
2568
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
2569
+ * US, for example, this is the American Banking Association (ABA) routing
2570
+ * number.
2571
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
2572
+ * - `iban` - An International Bank Account Number.
2573
+ */
2574
+ originating_depository_financial_institution_id_qualifier:
2575
+ | 'national_clearing_system_number'
2576
+ | 'bic_code'
2577
+ | 'iban';
2393
2578
 
2579
+ /**
2580
+ * The name of the originating bank. Sometimes this will refer to an American bank
2581
+ * and obscure the correspondent foreign bank.
2582
+ */
2394
2583
  originating_depository_financial_institution_name: string;
2395
2584
 
2585
+ /**
2586
+ * A portion of the originator address. This may be incomplete.
2587
+ */
2396
2588
  originator_city: string;
2397
2589
 
2590
+ /**
2591
+ * A description field set by the originator.
2592
+ */
2398
2593
  originator_company_entry_description: string;
2399
2594
 
2595
+ /**
2596
+ * A portion of the originator address. The
2597
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
2598
+ * code of the originator country.
2599
+ */
2400
2600
  originator_country: string;
2401
2601
 
2602
+ /**
2603
+ * An identifier for the originating company. This is generally stable across
2604
+ * multiple ACH transfers.
2605
+ */
2402
2606
  originator_identification: string;
2403
2607
 
2608
+ /**
2609
+ * Either the name of the originator or an intermediary money transmitter.
2610
+ */
2404
2611
  originator_name: string;
2405
2612
 
2613
+ /**
2614
+ * A portion of the originator address. This may be incomplete.
2615
+ */
2406
2616
  originator_postal_code: string | null;
2407
2617
 
2618
+ /**
2619
+ * A portion of the originator address. This may be incomplete.
2620
+ */
2408
2621
  originator_state_or_province: string | null;
2409
2622
 
2623
+ /**
2624
+ * A portion of the originator address. This may be incomplete.
2625
+ */
2410
2626
  originator_street_address: string;
2411
2627
 
2628
+ /**
2629
+ * A description field set by the originator.
2630
+ */
2412
2631
  payment_related_information: string | null;
2413
2632
 
2633
+ /**
2634
+ * A description field set by the originator.
2635
+ */
2414
2636
  payment_related_information2: string | null;
2415
2637
 
2638
+ /**
2639
+ * A portion of the receiver address. This may be incomplete.
2640
+ */
2416
2641
  receiver_city: string;
2417
2642
 
2643
+ /**
2644
+ * A portion of the receiver address. The
2645
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
2646
+ * code of the receiver country.
2647
+ */
2418
2648
  receiver_country: string;
2419
2649
 
2650
+ /**
2651
+ * An identification number the originator uses for the receiver.
2652
+ */
2420
2653
  receiver_identification_number: string | null;
2421
2654
 
2655
+ /**
2656
+ * A portion of the receiver address. This may be incomplete.
2657
+ */
2422
2658
  receiver_postal_code: string | null;
2423
2659
 
2660
+ /**
2661
+ * A portion of the receiver address. This may be incomplete.
2662
+ */
2424
2663
  receiver_state_or_province: string | null;
2425
2664
 
2665
+ /**
2666
+ * A portion of the receiver address. This may be incomplete.
2667
+ */
2426
2668
  receiver_street_address: string;
2427
2669
 
2670
+ /**
2671
+ * The name of the receiver of the transfer. This is not verified by Increase.
2672
+ */
2428
2673
  receiving_company_or_individual_name: string;
2429
2674
 
2675
+ /**
2676
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
2677
+ * country code of the receiving bank country.
2678
+ */
2430
2679
  receiving_depository_financial_institution_country: string;
2431
2680
 
2681
+ /**
2682
+ * An identifier for the receiving bank. One of an International Bank Account
2683
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
2684
+ * domestic identifier like a US Routing Number.
2685
+ */
2432
2686
  receiving_depository_financial_institution_id: string;
2433
2687
 
2434
- receiving_depository_financial_institution_id_qualifier: string;
2688
+ /**
2689
+ * An instruction of how to interpret the
2690
+ * `receiving_depository_financial_institution_id` field for this Transaction.
2691
+ *
2692
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
2693
+ * US, for example, this is the American Banking Association (ABA) routing
2694
+ * number.
2695
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
2696
+ * - `iban` - An International Bank Account Number.
2697
+ */
2698
+ receiving_depository_financial_institution_id_qualifier:
2699
+ | 'national_clearing_system_number'
2700
+ | 'bic_code'
2701
+ | 'iban';
2435
2702
 
2703
+ /**
2704
+ * The name of the receiving bank, as set by the sending financial institution.
2705
+ */
2436
2706
  receiving_depository_financial_institution_name: string;
2437
2707
 
2708
+ /**
2709
+ * A 15 digit number recorded in the Nacha file and available to both the
2710
+ * originating and receiving bank. Along with the amount, date, and originating
2711
+ * routing number, this can be used to identify the ACH transfer at either bank.
2712
+ * ACH trace numbers are not unique, but are
2713
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
2714
+ */
2438
2715
  trace_number: string;
2439
2716
  }
2440
2717
 
@@ -2489,7 +2766,7 @@ export namespace InterestPaymentSimulationResult {
2489
2766
  remittance_information: string | null;
2490
2767
 
2491
2768
  /**
2492
- * The Real-Time Payments network identification of the transfer
2769
+ * The Real-Time Payments network identification of the transfer.
2493
2770
  */
2494
2771
  transaction_identification: string;
2495
2772
  }
@@ -2505,29 +2782,87 @@ export namespace InterestPaymentSimulationResult {
2505
2782
  */
2506
2783
  amount: number;
2507
2784
 
2785
+ /**
2786
+ * A free-form address field set by the sender.
2787
+ */
2508
2788
  beneficiary_address_line1: string | null;
2509
2789
 
2790
+ /**
2791
+ * A free-form address field set by the sender.
2792
+ */
2510
2793
  beneficiary_address_line2: string | null;
2511
2794
 
2795
+ /**
2796
+ * A free-form address field set by the sender.
2797
+ */
2512
2798
  beneficiary_address_line3: string | null;
2513
2799
 
2800
+ /**
2801
+ * A name set by the sender.
2802
+ */
2514
2803
  beneficiary_name: string | null;
2515
2804
 
2805
+ /**
2806
+ * A free-form reference string set by the sender, to help identify the transfer.
2807
+ */
2516
2808
  beneficiary_reference: string | null;
2517
2809
 
2810
+ /**
2811
+ * An Increase-constructed description of the transfer.
2812
+ */
2518
2813
  description: string;
2519
2814
 
2815
+ /**
2816
+ * A unique identifier available to the originating and receiving banks, commonly
2817
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
2818
+ * service and is helpful when debugging wires with the receiving bank.
2819
+ */
2520
2820
  input_message_accountability_data: string | null;
2521
2821
 
2822
+ /**
2823
+ * The address of the wire originator, set by the sending bank.
2824
+ */
2522
2825
  originator_address_line1: string | null;
2523
2826
 
2827
+ /**
2828
+ * The address of the wire originator, set by the sending bank.
2829
+ */
2524
2830
  originator_address_line2: string | null;
2525
2831
 
2832
+ /**
2833
+ * The address of the wire originator, set by the sending bank.
2834
+ */
2526
2835
  originator_address_line3: string | null;
2527
2836
 
2837
+ /**
2838
+ * The originator of the wire, set by the sending bank.
2839
+ */
2528
2840
  originator_name: string | null;
2529
2841
 
2842
+ /**
2843
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
2844
+ */
2530
2845
  originator_to_beneficiary_information: string | null;
2846
+
2847
+ /**
2848
+ * A free-form message set by the wire originator.
2849
+ */
2850
+ originator_to_beneficiary_information_line1: string | null;
2851
+
2852
+ /**
2853
+ * A free-form message set by the wire originator.
2854
+ */
2855
+ originator_to_beneficiary_information_line2: string | null;
2856
+
2857
+ /**
2858
+ * A free-form message set by the wire originator.
2859
+ */
2860
+ originator_to_beneficiary_information_line3: string | null;
2861
+
2862
+ /**
2863
+ * A free-form message set by the wire originator.
2864
+ */
2865
+ originator_to_beneficiary_information_line4: string | null;
2531
2866
  }
2532
2867
 
2533
2868
  /**
@@ -2593,7 +2928,7 @@ export namespace InterestPaymentSimulationResult {
2593
2928
  */
2594
2929
  export interface InboundWireReversal {
2595
2930
  /**
2596
- * The amount that was reversed.
2931
+ * The amount that was reversed in USD cents.
2597
2932
  */
2598
2933
  amount: number;
2599
2934
 
@@ -2604,7 +2939,7 @@ export namespace InterestPaymentSimulationResult {
2604
2939
  created_at: string;
2605
2940
 
2606
2941
  /**
2607
- * The description on the reversal message from Fedwire.
2942
+ * The description on the reversal message from Fedwire, set by the reversing bank.
2608
2943
  */
2609
2944
  description: string;
2610
2945
 
@@ -2614,7 +2949,8 @@ export namespace InterestPaymentSimulationResult {
2614
2949
  financial_institution_to_financial_institution_information: string | null;
2615
2950
 
2616
2951
  /**
2617
- * The Fedwire cycle date for the wire reversal.
2952
+ * The Fedwire cycle date for the wire reversal. The "Fedwire day" begins at 9:00
2953
+ * PM Eastern Time on the evening before the `cycle date`.
2618
2954
  */
2619
2955
  input_cycle_date: string;
2620
2956
 
@@ -2634,7 +2970,8 @@ export namespace InterestPaymentSimulationResult {
2634
2970
  input_source: string;
2635
2971
 
2636
2972
  /**
2637
- * The Fedwire cycle date for the wire transfer that was reversed.
2973
+ * The Fedwire cycle date for the wire transfer that is being reversed by this
2974
+ * message.
2638
2975
  */
2639
2976
  previous_message_input_cycle_date: string;
2640
2977
 
@@ -2676,41 +3013,90 @@ export namespace InterestPaymentSimulationResult {
2676
3013
  */
2677
3014
  export interface InboundWireTransfer {
2678
3015
  /**
2679
- * The amount in the minor unit of the transaction's currency. For dollars, for
2680
- * example, this is cents.
3016
+ * The amount in USD cents.
2681
3017
  */
2682
3018
  amount: number;
2683
3019
 
3020
+ /**
3021
+ * A free-form address field set by the sender.
3022
+ */
2684
3023
  beneficiary_address_line1: string | null;
2685
3024
 
3025
+ /**
3026
+ * A free-form address field set by the sender.
3027
+ */
2686
3028
  beneficiary_address_line2: string | null;
2687
3029
 
3030
+ /**
3031
+ * A free-form address field set by the sender.
3032
+ */
2688
3033
  beneficiary_address_line3: string | null;
2689
3034
 
3035
+ /**
3036
+ * A name set by the sender.
3037
+ */
2690
3038
  beneficiary_name: string | null;
2691
3039
 
3040
+ /**
3041
+ * A free-form reference string set by the sender, to help identify the transfer.
3042
+ */
2692
3043
  beneficiary_reference: string | null;
2693
3044
 
3045
+ /**
3046
+ * An Increase-constructed description of the transfer.
3047
+ */
2694
3048
  description: string;
2695
3049
 
3050
+ /**
3051
+ * A unique identifier available to the originating and receiving banks, commonly
3052
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
3053
+ * service and is helpful when debugging wires with the originating bank.
3054
+ */
2696
3055
  input_message_accountability_data: string | null;
2697
3056
 
3057
+ /**
3058
+ * The address of the wire originator, set by the sending bank.
3059
+ */
2698
3060
  originator_address_line1: string | null;
2699
3061
 
3062
+ /**
3063
+ * The address of the wire originator, set by the sending bank.
3064
+ */
2700
3065
  originator_address_line2: string | null;
2701
3066
 
3067
+ /**
3068
+ * The address of the wire originator, set by the sending bank.
3069
+ */
2702
3070
  originator_address_line3: string | null;
2703
3071
 
3072
+ /**
3073
+ * The originator of the wire, set by the sending bank.
3074
+ */
2704
3075
  originator_name: string | null;
2705
3076
 
3077
+ /**
3078
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
3079
+ */
2706
3080
  originator_to_beneficiary_information: string | null;
2707
3081
 
3082
+ /**
3083
+ * A free-form message set by the wire originator.
3084
+ */
2708
3085
  originator_to_beneficiary_information_line1: string | null;
2709
3086
 
3087
+ /**
3088
+ * A free-form message set by the wire originator.
3089
+ */
2710
3090
  originator_to_beneficiary_information_line2: string | null;
2711
3091
 
3092
+ /**
3093
+ * A free-form message set by the wire originator.
3094
+ */
2712
3095
  originator_to_beneficiary_information_line3: string | null;
2713
3096
 
3097
+ /**
3098
+ * A free-form message set by the wire originator.
3099
+ */
2714
3100
  originator_to_beneficiary_information_line4: string | null;
2715
3101
  }
2716
3102
 
@@ -2779,6 +3165,9 @@ export namespace InterestPaymentSimulationResult {
2779
3165
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2780
3166
 
2781
3167
  /**
3168
+ * An Internal Source is a transaction between you and Increase. This describes the
3169
+ * reason for the transaction.
3170
+ *
2782
3171
  * - `account_closure` - Account closure
2783
3172
  * - `bank_migration` - Bank migration
2784
3173
  * - `cashback` - Cashback
@@ -2877,6 +3266,9 @@ export namespace InterestPaymentSimulationResult {
2877
3266
  */
2878
3267
  routing_number: string;
2879
3268
 
3269
+ /**
3270
+ * The identifier of the Wire Transfer that led to this Transaction.
3271
+ */
2880
3272
  transfer_id: string;
2881
3273
  }
2882
3274
 
@@ -2885,6 +3277,9 @@ export namespace InterestPaymentSimulationResult {
2885
3277
  * response if and only if `category` is equal to `wire_transfer_rejection`.
2886
3278
  */
2887
3279
  export interface WireTransferRejection {
3280
+ /**
3281
+ * The identifier of the Wire Transfer that led to this Transaction.
3282
+ */
2888
3283
  transfer_id: string;
2889
3284
  }
2890
3285
  }