increase 0.10.2 → 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 (281) hide show
  1. package/CHANGELOG.md +50 -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 +3 -2
  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 -5
  55. package/index.d.ts +2 -5
  56. package/index.d.ts.map +1 -1
  57. package/index.js +3 -6
  58. package/index.js.map +1 -1
  59. package/index.mjs +3 -6
  60. package/index.mjs.map +1 -1
  61. package/package.json +9 -4
  62. package/pagination.d.ts +1 -1
  63. package/resources/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 +282 -19
  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 +57 -9
  111. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  112. package/resources/inbound-ach-transfers.js +11 -2
  113. package/resources/inbound-ach-transfers.js.map +1 -1
  114. package/resources/inbound-ach-transfers.mjs +11 -2
  115. package/resources/inbound-ach-transfers.mjs.map +1 -1
  116. package/resources/index.d.ts +9 -7
  117. package/resources/index.d.ts.map +1 -1
  118. package/resources/index.js +0 -15
  119. package/resources/index.js.map +1 -1
  120. package/resources/index.mjs +0 -1
  121. package/resources/index.mjs.map +1 -1
  122. package/resources/pending-transactions.d.ts +19 -6
  123. package/resources/pending-transactions.d.ts.map +1 -1
  124. package/resources/pending-transactions.js.map +1 -1
  125. package/resources/pending-transactions.mjs.map +1 -1
  126. package/resources/real-time-decisions.d.ts +16 -9
  127. package/resources/real-time-decisions.d.ts.map +1 -1
  128. package/resources/real-time-decisions.js.map +1 -1
  129. package/resources/real-time-decisions.mjs.map +1 -1
  130. package/resources/simulations/ach-transfers.d.ts +686 -35
  131. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  132. package/resources/simulations/ach-transfers.js.map +1 -1
  133. package/resources/simulations/ach-transfers.mjs.map +1 -1
  134. package/resources/simulations/cards.d.ts +301 -25
  135. package/resources/simulations/cards.d.ts.map +1 -1
  136. package/resources/simulations/cards.js.map +1 -1
  137. package/resources/simulations/cards.mjs.map +1 -1
  138. package/resources/simulations/interest-payments.d.ts +402 -14
  139. package/resources/simulations/interest-payments.d.ts.map +1 -1
  140. package/resources/simulations/interest-payments.js.map +1 -1
  141. package/resources/simulations/interest-payments.mjs.map +1 -1
  142. package/resources/simulations/real-time-payments-transfers.d.ts +684 -33
  143. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  144. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  145. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  146. package/resources/simulations/wire-transfers.d.ts +402 -14
  147. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  148. package/resources/simulations/wire-transfers.js.map +1 -1
  149. package/resources/simulations/wire-transfers.mjs.map +1 -1
  150. package/resources/transactions.d.ts +402 -14
  151. package/resources/transactions.d.ts.map +1 -1
  152. package/resources/transactions.js.map +1 -1
  153. package/resources/transactions.mjs.map +1 -1
  154. package/resources/wire-transfers.d.ts +7 -5
  155. package/resources/wire-transfers.d.ts.map +1 -1
  156. package/resources/wire-transfers.js +1 -1
  157. package/resources/wire-transfers.js.map +1 -1
  158. package/resources/wire-transfers.mjs +1 -1
  159. package/resources/wire-transfers.mjs.map +1 -1
  160. package/src/_shims/ReadableStream.d.ts +5 -5
  161. package/src/_shims/agent.ts +1 -1
  162. package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +8 -8
  163. package/src/_shims/fetch.d.ts +10 -10
  164. package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
  165. package/src/_shims/fileFromPath.ts +2 -2
  166. package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
  167. package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
  168. package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
  169. package/src/_shims/getMultipartRequestOptions.ts +3 -3
  170. package/src/core.ts +12 -11
  171. package/src/error.ts +3 -3
  172. package/src/index.ts +9 -13
  173. package/src/pagination.ts +2 -2
  174. package/src/resource.ts +1 -1
  175. package/src/resources/account-numbers.ts +5 -5
  176. package/src/resources/account-statements.ts +5 -5
  177. package/src/resources/account-transfers.ts +5 -5
  178. package/src/resources/accounts.ts +5 -5
  179. package/src/resources/ach-prenotifications.ts +224 -8
  180. package/src/resources/ach-transfers.ts +19 -14
  181. package/src/resources/balance-lookups.ts +3 -3
  182. package/src/resources/bookkeeping-accounts.ts +5 -5
  183. package/src/resources/bookkeeping-entries.ts +5 -5
  184. package/src/resources/bookkeeping-entry-sets.ts +4 -4
  185. package/src/resources/card-disputes.ts +5 -5
  186. package/src/resources/card-profiles.ts +6 -6
  187. package/src/resources/card-purchase-supplements.ts +7 -7
  188. package/src/resources/cards.ts +5 -5
  189. package/src/resources/check-deposits.ts +8 -5
  190. package/src/resources/check-transfers.ts +12 -5
  191. package/src/resources/declined-transactions.ts +287 -24
  192. package/src/resources/digital-wallet-tokens.ts +7 -6
  193. package/src/resources/documents.ts +5 -5
  194. package/src/resources/entities/beneficial-owners.ts +66 -4
  195. package/src/resources/entities/entities.ts +61 -8
  196. package/src/resources/entities/index.ts +11 -3
  197. package/src/resources/entities/supplemental-documents.ts +5 -5
  198. package/src/resources/event-subscriptions.ts +5 -5
  199. package/src/resources/events.ts +5 -5
  200. package/src/resources/exports.ts +5 -5
  201. package/src/resources/external-accounts.ts +10 -5
  202. package/src/resources/files.ts +6 -6
  203. package/src/resources/groups.ts +3 -3
  204. package/src/resources/inbound-ach-transfers.ts +75 -15
  205. package/src/resources/inbound-wire-drawdown-requests.ts +5 -5
  206. package/src/resources/index.ts +54 -45
  207. package/src/resources/limits.ts +5 -5
  208. package/src/resources/oauth-connections.ts +5 -5
  209. package/src/resources/pending-transactions.ts +24 -11
  210. package/src/resources/programs.ts +5 -5
  211. package/src/resources/real-time-decisions.ts +20 -12
  212. package/src/resources/real-time-payments-transfers.ts +5 -5
  213. package/src/resources/routing-numbers.ts +4 -4
  214. package/src/resources/simulations/account-statements.ts +4 -4
  215. package/src/resources/simulations/account-transfers.ts +3 -3
  216. package/src/resources/simulations/ach-transfers.ts +699 -41
  217. package/src/resources/simulations/card-disputes.ts +4 -4
  218. package/src/resources/simulations/card-profiles.ts +3 -3
  219. package/src/resources/simulations/card-refunds.ts +4 -4
  220. package/src/resources/simulations/cards.ts +306 -30
  221. package/src/resources/simulations/check-deposits.ts +3 -3
  222. package/src/resources/simulations/check-transfers.ts +3 -3
  223. package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
  224. package/src/resources/simulations/documents.ts +4 -4
  225. package/src/resources/simulations/inbound-funds-holds.ts +3 -3
  226. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
  227. package/src/resources/simulations/index.ts +18 -18
  228. package/src/resources/simulations/interest-payments.ts +413 -18
  229. package/src/resources/simulations/programs.ts +4 -4
  230. package/src/resources/simulations/real-time-payments-transfers.ts +697 -39
  231. package/src/resources/simulations/simulations.ts +19 -19
  232. package/src/resources/simulations/wire-transfers.ts +413 -18
  233. package/src/resources/transactions.ts +415 -20
  234. package/src/resources/wire-drawdown-requests.ts +5 -5
  235. package/src/resources/wire-transfers.ts +12 -10
  236. package/src/tsconfig.json +11 -0
  237. package/src/uploads.ts +6 -6
  238. package/src/version.ts +1 -1
  239. package/uploads.d.ts +1 -1
  240. package/uploads.d.ts.map +1 -1
  241. package/uploads.js +4 -4
  242. package/uploads.js.map +1 -1
  243. package/uploads.mjs +1 -1
  244. package/uploads.mjs.map +1 -1
  245. package/version.d.ts +1 -1
  246. package/version.js +1 -1
  247. package/version.mjs +1 -1
  248. package/_shims/ReadableStream.node.d.ts.map +0 -1
  249. package/_shims/ReadableStream.node.js.map +0 -1
  250. package/_shims/ReadableStream.node.mjs.map +0 -1
  251. package/_shims/agent.node.d.ts.map +0 -1
  252. package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
  253. package/_shims/node-readable.node.js.map +0 -1
  254. package/_shims/node-readable.node.mjs.map +0 -1
  255. package/resources/inbound-ach-transfer-returns.d.ts +0 -115
  256. package/resources/inbound-ach-transfer-returns.d.ts.map +0 -1
  257. package/resources/inbound-ach-transfer-returns.js +0 -31
  258. package/resources/inbound-ach-transfer-returns.js.map +0 -1
  259. package/resources/inbound-ach-transfer-returns.mjs +0 -24
  260. package/resources/inbound-ach-transfer-returns.mjs.map +0 -1
  261. package/src/_shims/fetch.deno.ts +0 -23
  262. package/src/_shims/formdata.deno.ts +0 -16
  263. package/src/resources/inbound-ach-transfer-returns.ts +0 -145
  264. /package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +0 -0
  265. /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
  266. /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  267. /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
  268. /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
  269. /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  270. /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
  271. /package/_shims/{formdata.js → form-data.js} +0 -0
  272. /package/_shims/{formdata.mjs → form-data.mjs} +0 -0
  273. /package/src/_shims/{ReadableStream.node.ts → ReadableStream-node.ts} +0 -0
  274. /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
  275. /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
  276. /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  277. /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
  278. /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  279. /package/src/_shims/{formdata.js → form-data.js} +0 -0
  280. /package/src/_shims/{formdata.mjs → form-data.mjs} +0 -0
  281. /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
@@ -381,13 +381,23 @@ export declare namespace Transaction {
381
381
  * response if and only if `category` is equal to `ach_transfer_intention`.
382
382
  */
383
383
  interface ACHTransferIntention {
384
+ /**
385
+ * The account number for the destination account.
386
+ */
384
387
  account_number: string;
385
388
  /**
386
389
  * The amount in the minor unit of the transaction's currency. For dollars, for
387
390
  * example, this is cents.
388
391
  */
389
392
  amount: number;
393
+ /**
394
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
395
+ * destination account.
396
+ */
390
397
  routing_number: string;
398
+ /**
399
+ * A description set when the ACH Transfer was created.
400
+ */
391
401
  statement_descriptor: string;
392
402
  /**
393
403
  * The identifier of the ACH Transfer that led to this Transaction.
@@ -454,7 +464,7 @@ export declare namespace Transaction {
454
464
  * - `enr_invalid_individual_name` - Code R45. The individual name field was
455
465
  * invalid.
456
466
  * - `returned_per_odfi_request` - Code R06. The originating financial institution
457
- * reversed the transfer.
467
+ * asked for this transfer to be returned.
458
468
  * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
459
469
  * supervisor has limited their participation.
460
470
  * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
@@ -541,7 +551,7 @@ export declare namespace Transaction {
541
551
  * bank disputes that an earlier `duplicate_entry` return was actually a
542
552
  * duplicate.
543
553
  * - `return_of_erroneous_or_reversing_debit` - Code R62. A rare return reason. The
544
- * originating bank made a mistake earlier and this return corrects it.
554
+ * originating financial institution made a mistake and this return corrects it.
545
555
  * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
546
556
  * a malformed credit entry.
547
557
  * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a
@@ -1847,6 +1857,9 @@ export declare namespace Transaction {
1847
1857
  */
1848
1858
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1849
1859
  /**
1860
+ * Why this check was returned by the bank holding the account it was drawn
1861
+ * against.
1862
+ *
1850
1863
  * - `ach_conversion_not_supported` - The check doesn't allow ACH conversion.
1851
1864
  * - `closed_account` - The account is closed.
1852
1865
  * - `duplicate_submission` - The check has already been deposited.
@@ -1894,6 +1907,12 @@ export declare namespace Transaction {
1894
1907
  * deposited check.
1895
1908
  */
1896
1909
  back_image_file_id: string | null;
1910
+ /**
1911
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
1912
+ * bank depositing this check. In some rare cases, this is not transmitted via
1913
+ * Check21 and the value will be null.
1914
+ */
1915
+ bank_of_first_deposit_routing_number: string | null;
1897
1916
  /**
1898
1917
  * When the check was deposited.
1899
1918
  */
@@ -2029,14 +2048,48 @@ export declare namespace Transaction {
2029
2048
  * for example, this is cents.
2030
2049
  */
2031
2050
  amount: number;
2051
+ /**
2052
+ * The description of the date of the transfer, usually in the format `YYMMDD`.
2053
+ */
2032
2054
  originator_company_descriptive_date: string | null;
2055
+ /**
2056
+ * Data set by the originator.
2057
+ */
2033
2058
  originator_company_discretionary_data: string | null;
2059
+ /**
2060
+ * An informational description of the transfer.
2061
+ */
2034
2062
  originator_company_entry_description: string;
2063
+ /**
2064
+ * An identifier for the originating company. This is generally, but not always, a
2065
+ * stable identifier across multiple transfers.
2066
+ */
2035
2067
  originator_company_id: string;
2068
+ /**
2069
+ * A name set by the originator to identify themselves.
2070
+ */
2036
2071
  originator_company_name: string;
2072
+ /**
2073
+ * The originator's identifier for the transfer receipient.
2074
+ */
2037
2075
  receiver_id_number: string | null;
2076
+ /**
2077
+ * The name of the transfer recipient. This value is informational and not verified
2078
+ * by Increase.
2079
+ */
2038
2080
  receiver_name: string | null;
2081
+ /**
2082
+ * A 15 digit number recorded in the Nacha file and available to both the
2083
+ * originating and receiving bank. Along with the amount, date, and originating
2084
+ * routing number, this can be used to identify the ACH transfer at either bank.
2085
+ * ACH trace numbers are not unique, but are
2086
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
2087
+ */
2039
2088
  trace_number: string;
2089
+ /**
2090
+ * The inbound ach transfer's identifier.
2091
+ */
2092
+ transfer_id: string;
2040
2093
  }
2041
2094
  /**
2042
2095
  * An Inbound Check object. This field will be present in the JSON response if and
@@ -2048,8 +2101,24 @@ export declare namespace Transaction {
2048
2101
  * for example, this is cents.
2049
2102
  */
2050
2103
  amount: number;
2104
+ /**
2105
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
2106
+ * bank depositing this check. In some rare cases, this is not transmitted via
2107
+ * Check21 and the value will be null.
2108
+ */
2109
+ bank_of_first_deposit_routing_number: string | null;
2110
+ /**
2111
+ * The front image of the check. This is a black and white TIFF image file.
2112
+ */
2051
2113
  check_front_image_file_id: string | null;
2114
+ /**
2115
+ * The number of the check. This field is set by the depositing bank and can be
2116
+ * unreliable.
2117
+ */
2052
2118
  check_number: string | null;
2119
+ /**
2120
+ * The rear image of the check. This is a black and white TIFF image file.
2121
+ */
2053
2122
  check_rear_image_file_id: string | null;
2054
2123
  /**
2055
2124
  * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
@@ -2075,40 +2144,245 @@ export declare namespace Transaction {
2075
2144
  * for example, this is cents.
2076
2145
  */
2077
2146
  amount: number;
2147
+ /**
2148
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
2149
+ * country code of the destination country.
2150
+ */
2078
2151
  destination_country_code: string;
2152
+ /**
2153
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
2154
+ * destination bank account.
2155
+ */
2079
2156
  destination_currency_code: string;
2080
- foreign_exchange_indicator: string;
2157
+ /**
2158
+ * A description of how the foreign exchange rate was calculated.
2159
+ *
2160
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
2161
+ * The settled amount in USD was converted using the exchange rate.
2162
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
2163
+ * originator's amount was variable; known only after the foreign exchange
2164
+ * conversion.
2165
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
2166
+ * USD. There is no foreign exchange conversion.
2167
+ */
2168
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
2169
+ /**
2170
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
2171
+ * reference to a well-known rate.
2172
+ */
2081
2173
  foreign_exchange_reference: string | null;
2082
- foreign_exchange_reference_indicator: string;
2174
+ /**
2175
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
2176
+ * this Transaction.
2177
+ *
2178
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
2179
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
2180
+ * well-known foreign exchange rate.
2181
+ * - `blank` - There is no foreign exchange for this transfer, so the
2182
+ * `foreign_exchange_reference` field is blank.
2183
+ */
2184
+ foreign_exchange_reference_indicator:
2185
+ | 'foreign_exchange_rate'
2186
+ | 'foreign_exchange_reference_number'
2187
+ | 'blank';
2188
+ /**
2189
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
2190
+ * example, this is cents.
2191
+ */
2083
2192
  foreign_payment_amount: number;
2193
+ /**
2194
+ * A reference number in the foreign banking infrastructure.
2195
+ */
2084
2196
  foreign_trace_number: string | null;
2085
- international_transaction_type_code: string;
2197
+ /**
2198
+ * The type of transfer. Set by the originator.
2199
+ *
2200
+ * - `annuity` - Sent as `ANN` in the Nacha file.
2201
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
2202
+ * - `deposit` - Sent as `DEP` in the Nacha file.
2203
+ * - `loan` - Sent as `LOA` in the Nacha file.
2204
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
2205
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
2206
+ * - `pension` - Sent as `PEN` in the Nacha file.
2207
+ * - `remittance` - Sent as `REM` in the Nacha file.
2208
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
2209
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
2210
+ * - `tax` - Sent as `TAX` in the Nacha file.
2211
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
2212
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
2213
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
2214
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
2215
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
2216
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
2217
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
2218
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
2219
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
2220
+ */
2221
+ international_transaction_type_code:
2222
+ | 'annuity'
2223
+ | 'business_or_commercial'
2224
+ | 'deposit'
2225
+ | 'loan'
2226
+ | 'miscellaneous'
2227
+ | 'mortgage'
2228
+ | 'pension'
2229
+ | 'remittance'
2230
+ | 'rent_or_lease'
2231
+ | 'salary_or_payroll'
2232
+ | 'tax'
2233
+ | 'accounts_receivable'
2234
+ | 'back_office_conversion'
2235
+ | 'machine_transfer'
2236
+ | 'point_of_purchase'
2237
+ | 'point_of_sale'
2238
+ | 'represented_check'
2239
+ | 'shared_network_transaction'
2240
+ | 'telphone_initiated'
2241
+ | 'internet_initiated';
2242
+ /**
2243
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
2244
+ * originating bank account.
2245
+ */
2086
2246
  originating_currency_code: string;
2247
+ /**
2248
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
2249
+ * country code of the originating branch country.
2250
+ */
2087
2251
  originating_depository_financial_institution_branch_country: string;
2252
+ /**
2253
+ * An identifier for the originating bank. One of an International Bank Account
2254
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
2255
+ * domestic identifier like a US Routing Number.
2256
+ */
2088
2257
  originating_depository_financial_institution_id: string;
2089
- originating_depository_financial_institution_id_qualifier: string;
2258
+ /**
2259
+ * An instruction of how to interpret the
2260
+ * `originating_depository_financial_institution_id` field for this Transaction.
2261
+ *
2262
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
2263
+ * US, for example, this is the American Banking Association (ABA) routing
2264
+ * number.
2265
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
2266
+ * - `iban` - An International Bank Account Number.
2267
+ */
2268
+ originating_depository_financial_institution_id_qualifier:
2269
+ | 'national_clearing_system_number'
2270
+ | 'bic_code'
2271
+ | 'iban';
2272
+ /**
2273
+ * The name of the originating bank. Sometimes this will refer to an American bank
2274
+ * and obscure the correspondent foreign bank.
2275
+ */
2090
2276
  originating_depository_financial_institution_name: string;
2277
+ /**
2278
+ * A portion of the originator address. This may be incomplete.
2279
+ */
2091
2280
  originator_city: string;
2281
+ /**
2282
+ * A description field set by the originator.
2283
+ */
2092
2284
  originator_company_entry_description: string;
2285
+ /**
2286
+ * A portion of the originator address. The
2287
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
2288
+ * code of the originator country.
2289
+ */
2093
2290
  originator_country: string;
2291
+ /**
2292
+ * An identifier for the originating company. This is generally stable across
2293
+ * multiple ACH transfers.
2294
+ */
2094
2295
  originator_identification: string;
2296
+ /**
2297
+ * Either the name of the originator or an intermediary money transmitter.
2298
+ */
2095
2299
  originator_name: string;
2300
+ /**
2301
+ * A portion of the originator address. This may be incomplete.
2302
+ */
2096
2303
  originator_postal_code: string | null;
2304
+ /**
2305
+ * A portion of the originator address. This may be incomplete.
2306
+ */
2097
2307
  originator_state_or_province: string | null;
2308
+ /**
2309
+ * A portion of the originator address. This may be incomplete.
2310
+ */
2098
2311
  originator_street_address: string;
2312
+ /**
2313
+ * A description field set by the originator.
2314
+ */
2099
2315
  payment_related_information: string | null;
2316
+ /**
2317
+ * A description field set by the originator.
2318
+ */
2100
2319
  payment_related_information2: string | null;
2320
+ /**
2321
+ * A portion of the receiver address. This may be incomplete.
2322
+ */
2101
2323
  receiver_city: string;
2324
+ /**
2325
+ * A portion of the receiver address. The
2326
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
2327
+ * code of the receiver country.
2328
+ */
2102
2329
  receiver_country: string;
2330
+ /**
2331
+ * An identification number the originator uses for the receiver.
2332
+ */
2103
2333
  receiver_identification_number: string | null;
2334
+ /**
2335
+ * A portion of the receiver address. This may be incomplete.
2336
+ */
2104
2337
  receiver_postal_code: string | null;
2338
+ /**
2339
+ * A portion of the receiver address. This may be incomplete.
2340
+ */
2105
2341
  receiver_state_or_province: string | null;
2342
+ /**
2343
+ * A portion of the receiver address. This may be incomplete.
2344
+ */
2106
2345
  receiver_street_address: string;
2346
+ /**
2347
+ * The name of the receiver of the transfer. This is not verified by Increase.
2348
+ */
2107
2349
  receiving_company_or_individual_name: string;
2350
+ /**
2351
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
2352
+ * country code of the receiving bank country.
2353
+ */
2108
2354
  receiving_depository_financial_institution_country: string;
2355
+ /**
2356
+ * An identifier for the receiving bank. One of an International Bank Account
2357
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
2358
+ * domestic identifier like a US Routing Number.
2359
+ */
2109
2360
  receiving_depository_financial_institution_id: string;
2110
- receiving_depository_financial_institution_id_qualifier: string;
2361
+ /**
2362
+ * An instruction of how to interpret the
2363
+ * `receiving_depository_financial_institution_id` field for this Transaction.
2364
+ *
2365
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
2366
+ * US, for example, this is the American Banking Association (ABA) routing
2367
+ * number.
2368
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
2369
+ * - `iban` - An International Bank Account Number.
2370
+ */
2371
+ receiving_depository_financial_institution_id_qualifier:
2372
+ | 'national_clearing_system_number'
2373
+ | 'bic_code'
2374
+ | 'iban';
2375
+ /**
2376
+ * The name of the receiving bank, as set by the sending financial institution.
2377
+ */
2111
2378
  receiving_depository_financial_institution_name: string;
2379
+ /**
2380
+ * A 15 digit number recorded in the Nacha file and available to both the
2381
+ * originating and receiving bank. Along with the amount, date, and originating
2382
+ * routing number, this can be used to identify the ACH transfer at either bank.
2383
+ * ACH trace numbers are not unique, but are
2384
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
2385
+ */
2112
2386
  trace_number: string;
2113
2387
  }
2114
2388
  /**
@@ -2155,7 +2429,7 @@ export declare namespace Transaction {
2155
2429
  */
2156
2430
  remittance_information: string | null;
2157
2431
  /**
2158
- * The Real-Time Payments network identification of the transfer
2432
+ * The Real-Time Payments network identification of the transfer.
2159
2433
  */
2160
2434
  transaction_identification: string;
2161
2435
  }
@@ -2169,18 +2443,72 @@ export declare namespace Transaction {
2169
2443
  * example, this is cents.
2170
2444
  */
2171
2445
  amount: number;
2446
+ /**
2447
+ * A free-form address field set by the sender.
2448
+ */
2172
2449
  beneficiary_address_line1: string | null;
2450
+ /**
2451
+ * A free-form address field set by the sender.
2452
+ */
2173
2453
  beneficiary_address_line2: string | null;
2454
+ /**
2455
+ * A free-form address field set by the sender.
2456
+ */
2174
2457
  beneficiary_address_line3: string | null;
2458
+ /**
2459
+ * A name set by the sender.
2460
+ */
2175
2461
  beneficiary_name: string | null;
2462
+ /**
2463
+ * A free-form reference string set by the sender, to help identify the transfer.
2464
+ */
2176
2465
  beneficiary_reference: string | null;
2466
+ /**
2467
+ * An Increase-constructed description of the transfer.
2468
+ */
2177
2469
  description: string;
2470
+ /**
2471
+ * A unique identifier available to the originating and receiving banks, commonly
2472
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
2473
+ * service and is helpful when debugging wires with the receiving bank.
2474
+ */
2178
2475
  input_message_accountability_data: string | null;
2476
+ /**
2477
+ * The address of the wire originator, set by the sending bank.
2478
+ */
2179
2479
  originator_address_line1: string | null;
2480
+ /**
2481
+ * The address of the wire originator, set by the sending bank.
2482
+ */
2180
2483
  originator_address_line2: string | null;
2484
+ /**
2485
+ * The address of the wire originator, set by the sending bank.
2486
+ */
2181
2487
  originator_address_line3: string | null;
2488
+ /**
2489
+ * The originator of the wire, set by the sending bank.
2490
+ */
2182
2491
  originator_name: string | null;
2492
+ /**
2493
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
2494
+ */
2183
2495
  originator_to_beneficiary_information: string | null;
2496
+ /**
2497
+ * A free-form message set by the wire originator.
2498
+ */
2499
+ originator_to_beneficiary_information_line1: string | null;
2500
+ /**
2501
+ * A free-form message set by the wire originator.
2502
+ */
2503
+ originator_to_beneficiary_information_line2: string | null;
2504
+ /**
2505
+ * A free-form message set by the wire originator.
2506
+ */
2507
+ originator_to_beneficiary_information_line3: string | null;
2508
+ /**
2509
+ * A free-form message set by the wire originator.
2510
+ */
2511
+ originator_to_beneficiary_information_line4: string | null;
2184
2512
  }
2185
2513
  /**
2186
2514
  * An Inbound Wire Drawdown Payment Reversal object. This field will be present in
@@ -2235,7 +2563,7 @@ export declare namespace Transaction {
2235
2563
  */
2236
2564
  interface InboundWireReversal {
2237
2565
  /**
2238
- * The amount that was reversed.
2566
+ * The amount that was reversed in USD cents.
2239
2567
  */
2240
2568
  amount: number;
2241
2569
  /**
@@ -2244,7 +2572,7 @@ export declare namespace Transaction {
2244
2572
  */
2245
2573
  created_at: string;
2246
2574
  /**
2247
- * The description on the reversal message from Fedwire.
2575
+ * The description on the reversal message from Fedwire, set by the reversing bank.
2248
2576
  */
2249
2577
  description: string;
2250
2578
  /**
@@ -2252,7 +2580,8 @@ export declare namespace Transaction {
2252
2580
  */
2253
2581
  financial_institution_to_financial_institution_information: string | null;
2254
2582
  /**
2255
- * The Fedwire cycle date for the wire reversal.
2583
+ * The Fedwire cycle date for the wire reversal. The "Fedwire day" begins at 9:00
2584
+ * PM Eastern Time on the evening before the `cycle date`.
2256
2585
  */
2257
2586
  input_cycle_date: string;
2258
2587
  /**
@@ -2268,7 +2597,8 @@ export declare namespace Transaction {
2268
2597
  */
2269
2598
  input_source: string;
2270
2599
  /**
2271
- * The Fedwire cycle date for the wire transfer that was reversed.
2600
+ * The Fedwire cycle date for the wire transfer that is being reversed by this
2601
+ * message.
2272
2602
  */
2273
2603
  previous_message_input_cycle_date: string;
2274
2604
  /**
@@ -2303,25 +2633,74 @@ export declare namespace Transaction {
2303
2633
  */
2304
2634
  interface InboundWireTransfer {
2305
2635
  /**
2306
- * The amount in the minor unit of the transaction's currency. For dollars, for
2307
- * example, this is cents.
2636
+ * The amount in USD cents.
2308
2637
  */
2309
2638
  amount: number;
2639
+ /**
2640
+ * A free-form address field set by the sender.
2641
+ */
2310
2642
  beneficiary_address_line1: string | null;
2643
+ /**
2644
+ * A free-form address field set by the sender.
2645
+ */
2311
2646
  beneficiary_address_line2: string | null;
2647
+ /**
2648
+ * A free-form address field set by the sender.
2649
+ */
2312
2650
  beneficiary_address_line3: string | null;
2651
+ /**
2652
+ * A name set by the sender.
2653
+ */
2313
2654
  beneficiary_name: string | null;
2655
+ /**
2656
+ * A free-form reference string set by the sender, to help identify the transfer.
2657
+ */
2314
2658
  beneficiary_reference: string | null;
2659
+ /**
2660
+ * An Increase-constructed description of the transfer.
2661
+ */
2315
2662
  description: string;
2663
+ /**
2664
+ * A unique identifier available to the originating and receiving banks, commonly
2665
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
2666
+ * service and is helpful when debugging wires with the originating bank.
2667
+ */
2316
2668
  input_message_accountability_data: string | null;
2669
+ /**
2670
+ * The address of the wire originator, set by the sending bank.
2671
+ */
2317
2672
  originator_address_line1: string | null;
2673
+ /**
2674
+ * The address of the wire originator, set by the sending bank.
2675
+ */
2318
2676
  originator_address_line2: string | null;
2677
+ /**
2678
+ * The address of the wire originator, set by the sending bank.
2679
+ */
2319
2680
  originator_address_line3: string | null;
2681
+ /**
2682
+ * The originator of the wire, set by the sending bank.
2683
+ */
2320
2684
  originator_name: string | null;
2685
+ /**
2686
+ * An Increase-created concatenation of the Originator-to-Beneficiary lines.
2687
+ */
2321
2688
  originator_to_beneficiary_information: string | null;
2689
+ /**
2690
+ * A free-form message set by the wire originator.
2691
+ */
2322
2692
  originator_to_beneficiary_information_line1: string | null;
2693
+ /**
2694
+ * A free-form message set by the wire originator.
2695
+ */
2323
2696
  originator_to_beneficiary_information_line2: string | null;
2697
+ /**
2698
+ * A free-form message set by the wire originator.
2699
+ */
2324
2700
  originator_to_beneficiary_information_line3: string | null;
2701
+ /**
2702
+ * A free-form message set by the wire originator.
2703
+ */
2325
2704
  originator_to_beneficiary_information_line4: string | null;
2326
2705
  }
2327
2706
  /**
@@ -2382,6 +2761,9 @@ export declare namespace Transaction {
2382
2761
  */
2383
2762
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2384
2763
  /**
2764
+ * An Internal Source is a transaction between you and Increase. This describes the
2765
+ * reason for the transaction.
2766
+ *
2385
2767
  * - `account_closure` - Account closure
2386
2768
  * - `bank_migration` - Bank migration
2387
2769
  * - `cashback` - Cashback
@@ -2469,6 +2851,9 @@ export declare namespace Transaction {
2469
2851
  * The American Bankers' Association (ABA) Routing Transit Number (RTN).
2470
2852
  */
2471
2853
  routing_number: string;
2854
+ /**
2855
+ * The identifier of the Wire Transfer that led to this Transaction.
2856
+ */
2472
2857
  transfer_id: string;
2473
2858
  }
2474
2859
  /**
@@ -2476,6 +2861,9 @@ export declare namespace Transaction {
2476
2861
  * response if and only if `category` is equal to `wire_transfer_rejection`.
2477
2862
  */
2478
2863
  interface WireTransferRejection {
2864
+ /**
2865
+ * The identifier of the Wire Transfer that led to this Transaction.
2866
+ */
2479
2867
  transfer_id: string;
2480
2868
  }
2481
2869
  }