increase 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +4 -0
  3. package/_shims/{ReadableStream.node.d.ts → ReadableStream-node.d.ts} +1 -1
  4. package/_shims/ReadableStream-node.d.ts.map +1 -0
  5. package/_shims/{ReadableStream.node.js → ReadableStream-node.js} +1 -1
  6. package/_shims/ReadableStream-node.js.map +1 -0
  7. package/_shims/{ReadableStream.node.mjs → ReadableStream-node.mjs} +1 -1
  8. package/_shims/ReadableStream-node.mjs.map +1 -0
  9. package/_shims/{agent.node.d.ts → agent-node.d.ts} +1 -1
  10. package/_shims/agent-node.d.ts.map +1 -0
  11. package/_shims/{agent.node.js → agent-node.js} +1 -1
  12. package/_shims/{agent.node.js.map → agent-node.js.map} +1 -1
  13. package/_shims/{agent.node.mjs → agent-node.mjs} +1 -1
  14. package/_shims/{agent.node.mjs.map → agent-node.mjs.map} +1 -1
  15. package/_shims/agent.d.ts +1 -1
  16. package/_shims/agent.js +1 -1
  17. package/_shims/agent.mjs +1 -1
  18. package/_shims/{fileFromPath.node.d.ts → fileFromPath-node.d.ts} +2 -2
  19. package/_shims/{fileFromPath.node.d.ts.map → fileFromPath-node.d.ts.map} +1 -1
  20. package/_shims/{fileFromPath.node.js → fileFromPath-node.js} +1 -1
  21. package/_shims/{fileFromPath.node.js.map → fileFromPath-node.js.map} +1 -1
  22. package/_shims/{fileFromPath.node.mjs → fileFromPath-node.mjs} +1 -1
  23. package/_shims/{fileFromPath.node.mjs.map → fileFromPath-node.mjs.map} +1 -1
  24. package/_shims/fileFromPath.d.ts +2 -2
  25. package/_shims/fileFromPath.d.ts.map +1 -1
  26. package/_shims/fileFromPath.js +1 -1
  27. package/_shims/fileFromPath.mjs +1 -1
  28. package/_shims/{getMultipartRequestOptions.node.d.ts → getMultipartRequestOptions-node.d.ts} +2 -2
  29. package/_shims/getMultipartRequestOptions-node.d.ts.map +1 -0
  30. package/_shims/{getMultipartRequestOptions.node.js → getMultipartRequestOptions-node.js} +1 -1
  31. package/_shims/{getMultipartRequestOptions.node.js.map → getMultipartRequestOptions-node.js.map} +1 -1
  32. package/_shims/{getMultipartRequestOptions.node.mjs → getMultipartRequestOptions-node.mjs} +1 -1
  33. package/_shims/{getMultipartRequestOptions.node.mjs.map → getMultipartRequestOptions-node.mjs.map} +1 -1
  34. package/_shims/getMultipartRequestOptions.d.ts +1 -1
  35. package/_shims/getMultipartRequestOptions.d.ts.map +1 -1
  36. package/_shims/{node-readable.node.d.ts → node-readable-node.d.ts} +1 -1
  37. package/_shims/{node-readable.node.d.ts.map → node-readable-node.d.ts.map} +1 -1
  38. package/_shims/{node-readable.node.js → node-readable-node.js} +1 -1
  39. package/_shims/node-readable-node.js.map +1 -0
  40. package/_shims/{node-readable.node.mjs → node-readable-node.mjs} +1 -1
  41. package/_shims/node-readable-node.mjs.map +1 -0
  42. package/core.d.ts +2 -1
  43. package/core.d.ts.map +1 -1
  44. package/core.js +3 -1
  45. package/core.js.map +1 -1
  46. package/core.mjs +1 -1
  47. package/core.mjs.map +1 -1
  48. package/error.d.ts +1 -1
  49. package/error.d.ts.map +1 -1
  50. package/error.js +2 -2
  51. package/error.js.map +1 -1
  52. package/error.mjs +2 -2
  53. package/error.mjs.map +1 -1
  54. package/index.d.mts +2 -7
  55. package/index.d.ts +2 -7
  56. package/index.d.ts.map +1 -1
  57. package/index.js +3 -6
  58. package/index.js.map +1 -1
  59. package/index.mjs +3 -6
  60. package/index.mjs.map +1 -1
  61. package/package.json +9 -4
  62. package/pagination.d.ts +1 -1
  63. package/resources/account-numbers.d.ts +57 -0
  64. package/resources/account-numbers.d.ts.map +1 -1
  65. package/resources/account-numbers.js.map +1 -1
  66. package/resources/account-numbers.mjs.map +1 -1
  67. package/resources/ach-prenotifications.d.ts +219 -3
  68. package/resources/ach-prenotifications.d.ts.map +1 -1
  69. package/resources/ach-prenotifications.js.map +1 -1
  70. package/resources/ach-prenotifications.mjs.map +1 -1
  71. package/resources/ach-transfers.d.ts +14 -9
  72. package/resources/ach-transfers.d.ts.map +1 -1
  73. package/resources/ach-transfers.js.map +1 -1
  74. package/resources/ach-transfers.mjs.map +1 -1
  75. package/resources/bookkeeping-entry-sets.d.ts +1 -1
  76. package/resources/card-profiles.d.ts +12 -3
  77. package/resources/card-profiles.d.ts.map +1 -1
  78. package/resources/card-profiles.js.map +1 -1
  79. package/resources/card-profiles.mjs.map +1 -1
  80. package/resources/card-purchase-supplements.d.ts +2 -2
  81. package/resources/check-deposits.d.ts +3 -0
  82. package/resources/check-deposits.d.ts.map +1 -1
  83. package/resources/check-deposits.js.map +1 -1
  84. package/resources/check-deposits.mjs.map +1 -1
  85. package/resources/check-transfers.d.ts +6 -0
  86. package/resources/check-transfers.d.ts.map +1 -1
  87. package/resources/check-transfers.js.map +1 -1
  88. package/resources/check-transfers.mjs.map +1 -1
  89. package/resources/declined-transactions.d.ts +289 -32
  90. package/resources/declined-transactions.d.ts.map +1 -1
  91. package/resources/declined-transactions.js.map +1 -1
  92. package/resources/declined-transactions.mjs.map +1 -1
  93. package/resources/digital-wallet-tokens.d.ts +2 -1
  94. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  95. package/resources/digital-wallet-tokens.js.map +1 -1
  96. package/resources/digital-wallet-tokens.mjs.map +1 -1
  97. package/resources/entities/beneficial-owners.d.ts +51 -0
  98. package/resources/entities/beneficial-owners.d.ts.map +1 -1
  99. package/resources/entities/beneficial-owners.js +6 -0
  100. package/resources/entities/beneficial-owners.js.map +1 -1
  101. package/resources/entities/beneficial-owners.mjs +6 -0
  102. package/resources/entities/beneficial-owners.mjs.map +1 -1
  103. package/resources/entities/entities.d.ts +45 -1
  104. package/resources/entities/entities.d.ts.map +1 -1
  105. package/resources/entities/entities.js +6 -0
  106. package/resources/entities/entities.js.map +1 -1
  107. package/resources/entities/entities.mjs +6 -0
  108. package/resources/entities/entities.mjs.map +1 -1
  109. package/resources/entities/index.d.ts +9 -1
  110. package/resources/entities/index.d.ts.map +1 -1
  111. package/resources/entities/index.js.map +1 -1
  112. package/resources/entities/index.mjs.map +1 -1
  113. package/resources/external-accounts.d.ts +4 -0
  114. package/resources/external-accounts.d.ts.map +1 -1
  115. package/resources/external-accounts.js.map +1 -1
  116. package/resources/external-accounts.mjs.map +1 -1
  117. package/resources/inbound-ach-transfers.d.ts +56 -8
  118. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  119. package/resources/inbound-ach-transfers.js +9 -0
  120. package/resources/inbound-ach-transfers.js.map +1 -1
  121. package/resources/inbound-ach-transfers.mjs +9 -0
  122. package/resources/inbound-ach-transfers.mjs.map +1 -1
  123. package/resources/index.d.ts +9 -9
  124. package/resources/index.d.ts.map +1 -1
  125. package/resources/index.js +0 -15
  126. package/resources/index.js.map +1 -1
  127. package/resources/index.mjs +0 -1
  128. package/resources/index.mjs.map +1 -1
  129. package/resources/pending-transactions.d.ts +19 -6
  130. package/resources/pending-transactions.d.ts.map +1 -1
  131. package/resources/pending-transactions.js.map +1 -1
  132. package/resources/pending-transactions.mjs.map +1 -1
  133. package/resources/real-time-decisions.d.ts +11 -9
  134. package/resources/real-time-decisions.d.ts.map +1 -1
  135. package/resources/real-time-decisions.js.map +1 -1
  136. package/resources/real-time-decisions.mjs.map +1 -1
  137. package/resources/simulations/ach-transfers.d.ts +693 -48
  138. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  139. package/resources/simulations/ach-transfers.js.map +1 -1
  140. package/resources/simulations/ach-transfers.mjs.map +1 -1
  141. package/resources/simulations/cards.d.ts +308 -38
  142. package/resources/simulations/cards.d.ts.map +1 -1
  143. package/resources/simulations/cards.js.map +1 -1
  144. package/resources/simulations/cards.mjs.map +1 -1
  145. package/resources/simulations/interest-payments.d.ts +402 -14
  146. package/resources/simulations/interest-payments.d.ts.map +1 -1
  147. package/resources/simulations/interest-payments.js.map +1 -1
  148. package/resources/simulations/interest-payments.mjs.map +1 -1
  149. package/resources/simulations/real-time-payments-transfers.d.ts +691 -46
  150. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  151. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  152. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  153. package/resources/simulations/wire-transfers.d.ts +402 -14
  154. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  155. package/resources/simulations/wire-transfers.js.map +1 -1
  156. package/resources/simulations/wire-transfers.mjs.map +1 -1
  157. package/resources/transactions.d.ts +402 -14
  158. package/resources/transactions.d.ts.map +1 -1
  159. package/resources/transactions.js.map +1 -1
  160. package/resources/transactions.mjs.map +1 -1
  161. package/resources/wire-transfers.d.ts +7 -5
  162. package/resources/wire-transfers.d.ts.map +1 -1
  163. package/resources/wire-transfers.js +1 -1
  164. package/resources/wire-transfers.js.map +1 -1
  165. package/resources/wire-transfers.mjs +1 -1
  166. package/resources/wire-transfers.mjs.map +1 -1
  167. package/src/_shims/ReadableStream.d.ts +5 -5
  168. package/src/_shims/agent.ts +1 -1
  169. package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +8 -8
  170. package/src/_shims/fetch.d.ts +10 -10
  171. package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
  172. package/src/_shims/fileFromPath.ts +2 -2
  173. package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
  174. package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
  175. package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
  176. package/src/_shims/getMultipartRequestOptions.ts +3 -3
  177. package/src/core.ts +11 -10
  178. package/src/error.ts +3 -3
  179. package/src/index.ts +9 -15
  180. package/src/pagination.ts +2 -2
  181. package/src/resource.ts +1 -1
  182. package/src/resources/account-numbers.ts +68 -5
  183. package/src/resources/account-statements.ts +5 -5
  184. package/src/resources/account-transfers.ts +5 -5
  185. package/src/resources/accounts.ts +5 -5
  186. package/src/resources/ach-prenotifications.ts +224 -8
  187. package/src/resources/ach-transfers.ts +19 -14
  188. package/src/resources/balance-lookups.ts +3 -3
  189. package/src/resources/bookkeeping-accounts.ts +5 -5
  190. package/src/resources/bookkeeping-entries.ts +5 -5
  191. package/src/resources/bookkeeping-entry-sets.ts +4 -4
  192. package/src/resources/card-disputes.ts +5 -5
  193. package/src/resources/card-profiles.ts +17 -8
  194. package/src/resources/card-purchase-supplements.ts +7 -7
  195. package/src/resources/cards.ts +5 -5
  196. package/src/resources/check-deposits.ts +8 -5
  197. package/src/resources/check-transfers.ts +12 -5
  198. package/src/resources/declined-transactions.ts +294 -37
  199. package/src/resources/digital-wallet-tokens.ts +7 -6
  200. package/src/resources/documents.ts +5 -5
  201. package/src/resources/entities/beneficial-owners.ts +66 -4
  202. package/src/resources/entities/entities.ts +61 -8
  203. package/src/resources/entities/index.ts +11 -3
  204. package/src/resources/entities/supplemental-documents.ts +5 -5
  205. package/src/resources/event-subscriptions.ts +5 -5
  206. package/src/resources/events.ts +5 -5
  207. package/src/resources/exports.ts +5 -5
  208. package/src/resources/external-accounts.ts +10 -5
  209. package/src/resources/files.ts +6 -6
  210. package/src/resources/groups.ts +3 -3
  211. package/src/resources/inbound-ach-transfers.ts +73 -13
  212. package/src/resources/inbound-wire-drawdown-requests.ts +5 -5
  213. package/src/resources/index.ts +46 -39
  214. package/src/resources/oauth-connections.ts +5 -5
  215. package/src/resources/pending-transactions.ts +24 -11
  216. package/src/resources/programs.ts +5 -5
  217. package/src/resources/real-time-decisions.ts +14 -12
  218. package/src/resources/real-time-payments-transfers.ts +5 -5
  219. package/src/resources/routing-numbers.ts +4 -4
  220. package/src/resources/simulations/account-statements.ts +4 -4
  221. package/src/resources/simulations/account-transfers.ts +3 -3
  222. package/src/resources/simulations/ach-transfers.ts +706 -54
  223. package/src/resources/simulations/card-disputes.ts +4 -4
  224. package/src/resources/simulations/card-profiles.ts +3 -3
  225. package/src/resources/simulations/card-refunds.ts +4 -4
  226. package/src/resources/simulations/cards.ts +313 -43
  227. package/src/resources/simulations/check-deposits.ts +3 -3
  228. package/src/resources/simulations/check-transfers.ts +3 -3
  229. package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
  230. package/src/resources/simulations/documents.ts +4 -4
  231. package/src/resources/simulations/inbound-funds-holds.ts +3 -3
  232. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
  233. package/src/resources/simulations/index.ts +18 -18
  234. package/src/resources/simulations/interest-payments.ts +413 -18
  235. package/src/resources/simulations/programs.ts +4 -4
  236. package/src/resources/simulations/real-time-payments-transfers.ts +704 -52
  237. package/src/resources/simulations/simulations.ts +19 -19
  238. package/src/resources/simulations/wire-transfers.ts +413 -18
  239. package/src/resources/transactions.ts +415 -20
  240. package/src/resources/wire-drawdown-requests.ts +5 -5
  241. package/src/resources/wire-transfers.ts +12 -10
  242. package/src/tsconfig.json +11 -0
  243. package/src/uploads.ts +6 -6
  244. package/src/version.ts +1 -1
  245. package/uploads.d.ts +1 -1
  246. package/uploads.d.ts.map +1 -1
  247. package/uploads.js +4 -4
  248. package/uploads.js.map +1 -1
  249. package/uploads.mjs +1 -1
  250. package/uploads.mjs.map +1 -1
  251. package/version.d.ts +1 -1
  252. package/version.js +1 -1
  253. package/version.mjs +1 -1
  254. package/_shims/ReadableStream.node.d.ts.map +0 -1
  255. package/_shims/ReadableStream.node.js.map +0 -1
  256. package/_shims/ReadableStream.node.mjs.map +0 -1
  257. package/_shims/agent.node.d.ts.map +0 -1
  258. package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
  259. package/_shims/node-readable.node.js.map +0 -1
  260. package/_shims/node-readable.node.mjs.map +0 -1
  261. package/resources/limits.d.ts +0 -148
  262. package/resources/limits.d.ts.map +0 -1
  263. package/resources/limits.js +0 -38
  264. package/resources/limits.js.map +0 -1
  265. package/resources/limits.mjs +0 -33
  266. package/resources/limits.mjs.map +0 -1
  267. package/src/_shims/fetch.deno.ts +0 -23
  268. package/src/_shims/formdata.deno.ts +0 -16
  269. package/src/resources/limits.ts +0 -186
  270. /package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +0 -0
  271. /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
  272. /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  273. /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
  274. /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
  275. /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  276. /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
  277. /package/_shims/{formdata.js → form-data.js} +0 -0
  278. /package/_shims/{formdata.mjs → form-data.mjs} +0 -0
  279. /package/src/_shims/{ReadableStream.node.ts → ReadableStream-node.ts} +0 -0
  280. /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
  281. /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
  282. /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  283. /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
  284. /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  285. /package/src/_shims/{formdata.js → form-data.js} +0 -0
  286. /package/src/_shims/{formdata.mjs → form-data.mjs} +0 -0
  287. /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
@@ -1,9 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import * as CardDisputes_ from '../card-disputes';
6
- import * as API from './index';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import * as CardDisputes_ from '../card-disputes.js';
6
+ import * as API from './index.js';
7
7
 
8
8
  export class CardDisputes extends APIResource {
9
9
  /**
@@ -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 CardProfiles_ from '../card-profiles';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import * as CardProfiles_ from '../card-profiles.js';
6
6
 
7
7
  export class CardProfiles extends APIResource {
8
8
  /**
@@ -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 Transactions from '../transactions';
6
- import * as API from './index';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import * as Transactions from '../transactions.js';
6
+ import * as API from './index.js';
7
7
 
8
8
  export class CardRefunds extends APIResource {
9
9
  /**
@@ -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 Transactions from '../transactions';
6
- import * as API from './index';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import * as Transactions from '../transactions.js';
6
+ import * as API from './index.js';
7
7
 
8
8
  export class Cards extends APIResource {
9
9
  /**
@@ -257,16 +257,22 @@ export namespace CardAuthorizationSimulation {
257
257
  *
258
258
  * - `ach_route_canceled` - The account number is canceled.
259
259
  * - `ach_route_disabled` - The account number is disabled.
260
- * - `breaches_limit` - The transaction would cause a limit to be exceeded.
261
- * - `credit_entry_refused_by_receiver` - A credit was refused.
262
- * - `duplicate_return` - Other.
260
+ * - `breaches_limit` - The transaction would cause an Increase limit to be
261
+ * exceeded.
262
+ * - `credit_entry_refused_by_receiver` - A credit was refused. This is a
263
+ * reasonable default reason for decline of credits.
264
+ * - `duplicate_return` - A rare return reason. The return this message refers to
265
+ * was a duplicate.
263
266
  * - `entity_not_active` - The account's entity is not active.
264
267
  * - `group_locked` - Your account is inactive.
265
268
  * - `insufficient_funds` - Your account contains insufficient funds.
266
- * - `misrouted_return` - Other.
267
- * - `return_of_erroneous_or_reversing_debit` - Other.
269
+ * - `misrouted_return` - A rare return reason. The return this message refers to
270
+ * was misrouted.
271
+ * - `return_of_erroneous_or_reversing_debit` - The originating financial
272
+ * institution made a mistake and this return corrects it.
268
273
  * - `no_ach_route` - The account number that was debited does not exist.
269
- * - `originator_request` - Other.
274
+ * - `originator_request` - The originating financial institution asked for this
275
+ * transfer to be returned.
270
276
  * - `transaction_not_allowed` - The transaction is not allowed per Increase's
271
277
  * terms.
272
278
  * - `user_initiated` - The user initiated the decline.
@@ -372,7 +378,7 @@ export namespace CardAuthorizationSimulation {
372
378
  merchant_state: string | null;
373
379
 
374
380
  /**
375
- * Fields specific to the `network`
381
+ * Fields specific to the `network`.
376
382
  */
377
383
  network_details: CardDecline.NetworkDetails;
378
384
 
@@ -431,25 +437,25 @@ export namespace CardAuthorizationSimulation {
431
437
 
432
438
  export namespace CardDecline {
433
439
  /**
434
- * Fields specific to the `network`
440
+ * Fields specific to the `network`.
435
441
  */
436
442
  export interface NetworkDetails {
437
443
  /**
438
- * The payment network used to process this card authorization
444
+ * The payment network used to process this card authorization.
439
445
  *
440
446
  * - `visa` - Visa
441
447
  */
442
448
  category: 'visa';
443
449
 
444
450
  /**
445
- * Fields specific to the `visa` network
451
+ * Fields specific to the `visa` network.
446
452
  */
447
453
  visa: NetworkDetails.Visa | null;
448
454
  }
449
455
 
450
456
  export namespace NetworkDetails {
451
457
  /**
452
- * Fields specific to the `visa` network
458
+ * Fields specific to the `visa` network.
453
459
  */
454
460
  export interface Visa {
455
461
  /**
@@ -500,7 +506,7 @@ export namespace CardAuthorizationSimulation {
500
506
 
501
507
  /**
502
508
  * The method used to enter the cardholder's primary account number and card
503
- * expiration date
509
+ * expiration date.
504
510
  *
505
511
  * - `unknown` - Unknown
506
512
  * - `manual` - Manual key entry
@@ -543,43 +549,42 @@ export namespace CardAuthorizationSimulation {
543
549
  */
544
550
  amount: number;
545
551
 
552
+ /**
553
+ * A computer-readable number printed on the MICR line of business checks, usually
554
+ * the check number. This is useful for positive pay checks, but can be unreliably
555
+ * transmitted by the bank of first deposit.
556
+ */
546
557
  auxiliary_on_us: string | null;
547
558
 
548
559
  /**
549
560
  * Why the check was declined.
550
561
  *
551
- * - `ach_route_canceled` - The account number is canceled.
552
562
  * - `ach_route_disabled` - The account number is disabled.
563
+ * - `ach_route_canceled` - The account number is canceled.
553
564
  * - `breaches_limit` - The transaction would cause a limit to be exceeded.
554
565
  * - `entity_not_active` - The account's entity is not active.
555
566
  * - `group_locked` - Your account is inactive.
556
567
  * - `insufficient_funds` - Your account contains insufficient funds.
557
- * - `unable_to_locate_account` - Unable to locate account.
558
- * - `not_our_item` - Routing number on the check is not ours.
559
- * - `unable_to_process` - Unable to process.
560
- * - `refer_to_image` - Refer to image.
561
568
  * - `stop_payment_requested` - Stop payment requested for this check.
562
- * - `returned` - Check was returned to sender.
563
569
  * - `duplicate_presentment` - The check was a duplicate deposit.
564
- * - `not_authorized` - The transaction is not allowed.
565
- * - `altered_or_fictitious` - The check was altered or fictitious.
570
+ * - `not_authorized` - The check was not authorized.
571
+ * - `amount_mismatch` - The amount the receiving bank is attempting to deposit
572
+ * does not match the amount on the check.
573
+ * - `not_our_item` - The check attempting to be deposited does not belong to
574
+ * Increase.
566
575
  */
567
576
  reason:
568
- | 'ach_route_canceled'
569
577
  | 'ach_route_disabled'
578
+ | 'ach_route_canceled'
570
579
  | 'breaches_limit'
571
580
  | 'entity_not_active'
572
581
  | 'group_locked'
573
582
  | 'insufficient_funds'
574
- | 'unable_to_locate_account'
575
- | 'not_our_item'
576
- | 'unable_to_process'
577
- | 'refer_to_image'
578
583
  | 'stop_payment_requested'
579
- | 'returned'
580
584
  | 'duplicate_presentment'
581
585
  | 'not_authorized'
582
- | 'altered_or_fictitious';
586
+ | 'amount_mismatch'
587
+ | 'not_our_item';
583
588
  }
584
589
 
585
590
  /**
@@ -669,74 +674,279 @@ export namespace CardAuthorizationSimulation {
669
674
  */
670
675
  amount: number;
671
676
 
677
+ /**
678
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
679
+ * country code of the destination country.
680
+ */
672
681
  destination_country_code: string;
673
682
 
683
+ /**
684
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
685
+ * destination bank account.
686
+ */
674
687
  destination_currency_code: string;
675
688
 
676
- foreign_exchange_indicator: string;
689
+ /**
690
+ * A description of how the foreign exchange rate was calculated.
691
+ *
692
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
693
+ * The settled amount in USD was converted using the exchange rate.
694
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
695
+ * originator's amount was variable; known only after the foreign exchange
696
+ * conversion.
697
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
698
+ * USD. There is no foreign exchange conversion.
699
+ */
700
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
677
701
 
702
+ /**
703
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
704
+ * reference to a well-known rate.
705
+ */
678
706
  foreign_exchange_reference: string | null;
679
707
 
680
- foreign_exchange_reference_indicator: string;
708
+ /**
709
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
710
+ * this Transaction.
711
+ *
712
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
713
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
714
+ * well-known foreign exchange rate.
715
+ * - `blank` - There is no foreign exchange for this transfer, so the
716
+ * `foreign_exchange_reference` field is blank.
717
+ */
718
+ foreign_exchange_reference_indicator:
719
+ | 'foreign_exchange_rate'
720
+ | 'foreign_exchange_reference_number'
721
+ | 'blank';
681
722
 
723
+ /**
724
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
725
+ * example, this is cents.
726
+ */
682
727
  foreign_payment_amount: number;
683
728
 
729
+ /**
730
+ * A reference number in the foreign banking infrastructure.
731
+ */
684
732
  foreign_trace_number: string | null;
685
733
 
686
- international_transaction_type_code: string;
687
-
734
+ /**
735
+ * The type of transfer. Set by the originator.
736
+ *
737
+ * - `annuity` - Sent as `ANN` in the Nacha file.
738
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
739
+ * - `deposit` - Sent as `DEP` in the Nacha file.
740
+ * - `loan` - Sent as `LOA` in the Nacha file.
741
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
742
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
743
+ * - `pension` - Sent as `PEN` in the Nacha file.
744
+ * - `remittance` - Sent as `REM` in the Nacha file.
745
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
746
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
747
+ * - `tax` - Sent as `TAX` in the Nacha file.
748
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
749
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
750
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
751
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
752
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
753
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
754
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
755
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
756
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
757
+ */
758
+ international_transaction_type_code:
759
+ | 'annuity'
760
+ | 'business_or_commercial'
761
+ | 'deposit'
762
+ | 'loan'
763
+ | 'miscellaneous'
764
+ | 'mortgage'
765
+ | 'pension'
766
+ | 'remittance'
767
+ | 'rent_or_lease'
768
+ | 'salary_or_payroll'
769
+ | 'tax'
770
+ | 'accounts_receivable'
771
+ | 'back_office_conversion'
772
+ | 'machine_transfer'
773
+ | 'point_of_purchase'
774
+ | 'point_of_sale'
775
+ | 'represented_check'
776
+ | 'shared_network_transaction'
777
+ | 'telphone_initiated'
778
+ | 'internet_initiated';
779
+
780
+ /**
781
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
782
+ * originating bank account.
783
+ */
688
784
  originating_currency_code: string;
689
785
 
786
+ /**
787
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
788
+ * country code of the originating branch country.
789
+ */
690
790
  originating_depository_financial_institution_branch_country: string;
691
791
 
792
+ /**
793
+ * An identifier for the originating bank. One of an International Bank Account
794
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
795
+ * domestic identifier like a US Routing Number.
796
+ */
692
797
  originating_depository_financial_institution_id: string;
693
798
 
694
- originating_depository_financial_institution_id_qualifier: string;
799
+ /**
800
+ * An instruction of how to interpret the
801
+ * `originating_depository_financial_institution_id` field for this Transaction.
802
+ *
803
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
804
+ * US, for example, this is the American Banking Association (ABA) routing
805
+ * number.
806
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
807
+ * - `iban` - An International Bank Account Number.
808
+ */
809
+ originating_depository_financial_institution_id_qualifier:
810
+ | 'national_clearing_system_number'
811
+ | 'bic_code'
812
+ | 'iban';
695
813
 
814
+ /**
815
+ * The name of the originating bank. Sometimes this will refer to an American bank
816
+ * and obscure the correspondent foreign bank.
817
+ */
696
818
  originating_depository_financial_institution_name: string;
697
819
 
820
+ /**
821
+ * A portion of the originator address. This may be incomplete.
822
+ */
698
823
  originator_city: string;
699
824
 
825
+ /**
826
+ * A description field set by the originator.
827
+ */
700
828
  originator_company_entry_description: string;
701
829
 
830
+ /**
831
+ * A portion of the originator address. The
832
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
833
+ * code of the originator country.
834
+ */
702
835
  originator_country: string;
703
836
 
837
+ /**
838
+ * An identifier for the originating company. This is generally stable across
839
+ * multiple ACH transfers.
840
+ */
704
841
  originator_identification: string;
705
842
 
843
+ /**
844
+ * Either the name of the originator or an intermediary money transmitter.
845
+ */
706
846
  originator_name: string;
707
847
 
848
+ /**
849
+ * A portion of the originator address. This may be incomplete.
850
+ */
708
851
  originator_postal_code: string | null;
709
852
 
853
+ /**
854
+ * A portion of the originator address. This may be incomplete.
855
+ */
710
856
  originator_state_or_province: string | null;
711
857
 
858
+ /**
859
+ * A portion of the originator address. This may be incomplete.
860
+ */
712
861
  originator_street_address: string;
713
862
 
863
+ /**
864
+ * A description field set by the originator.
865
+ */
714
866
  payment_related_information: string | null;
715
867
 
868
+ /**
869
+ * A description field set by the originator.
870
+ */
716
871
  payment_related_information2: string | null;
717
872
 
873
+ /**
874
+ * A portion of the receiver address. This may be incomplete.
875
+ */
718
876
  receiver_city: string;
719
877
 
878
+ /**
879
+ * A portion of the receiver address. The
880
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
881
+ * code of the receiver country.
882
+ */
720
883
  receiver_country: string;
721
884
 
885
+ /**
886
+ * An identification number the originator uses for the receiver.
887
+ */
722
888
  receiver_identification_number: string | null;
723
889
 
890
+ /**
891
+ * A portion of the receiver address. This may be incomplete.
892
+ */
724
893
  receiver_postal_code: string | null;
725
894
 
895
+ /**
896
+ * A portion of the receiver address. This may be incomplete.
897
+ */
726
898
  receiver_state_or_province: string | null;
727
899
 
900
+ /**
901
+ * A portion of the receiver address. This may be incomplete.
902
+ */
728
903
  receiver_street_address: string;
729
904
 
905
+ /**
906
+ * The name of the receiver of the transfer. This is not verified by Increase.
907
+ */
730
908
  receiving_company_or_individual_name: string;
731
909
 
910
+ /**
911
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
912
+ * country code of the receiving bank country.
913
+ */
732
914
  receiving_depository_financial_institution_country: string;
733
915
 
916
+ /**
917
+ * An identifier for the receiving bank. One of an International Bank Account
918
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
919
+ * domestic identifier like a US Routing Number.
920
+ */
734
921
  receiving_depository_financial_institution_id: string;
735
922
 
736
- receiving_depository_financial_institution_id_qualifier: string;
923
+ /**
924
+ * An instruction of how to interpret the
925
+ * `receiving_depository_financial_institution_id` field for this Transaction.
926
+ *
927
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
928
+ * US, for example, this is the American Banking Association (ABA) routing
929
+ * number.
930
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
931
+ * - `iban` - An International Bank Account Number.
932
+ */
933
+ receiving_depository_financial_institution_id_qualifier:
934
+ | 'national_clearing_system_number'
935
+ | 'bic_code'
936
+ | 'iban';
737
937
 
938
+ /**
939
+ * The name of the receiving bank, as set by the sending financial institution.
940
+ */
738
941
  receiving_depository_financial_institution_name: string;
739
942
 
943
+ /**
944
+ * A 15 digit number recorded in the Nacha file and available to both the
945
+ * originating and receiving bank. Along with the amount, date, and originating
946
+ * routing number, this can be used to identify the ACH transfer at either bank.
947
+ * ACH trace numbers are not unique, but are
948
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
949
+ */
740
950
  trace_number: string;
741
951
  }
742
952
 
@@ -751,34 +961,81 @@ export namespace CardAuthorizationSimulation {
751
961
  */
752
962
  amount: number;
753
963
 
964
+ /**
965
+ * A free-form address field set by the sender.
966
+ */
754
967
  beneficiary_address_line1: string | null;
755
968
 
969
+ /**
970
+ * A free-form address field set by the sender.
971
+ */
756
972
  beneficiary_address_line2: string | null;
757
973
 
974
+ /**
975
+ * A free-form address field set by the sender.
976
+ */
758
977
  beneficiary_address_line3: string | null;
759
978
 
979
+ /**
980
+ * A name set by the sender.
981
+ */
760
982
  beneficiary_name: string | null;
761
983
 
984
+ /**
985
+ * A free-form reference string set by the sender, to help identify the transfer.
986
+ */
762
987
  beneficiary_reference: string | null;
763
988
 
989
+ /**
990
+ * An Increase-constructed description of the declined transaction.
991
+ */
764
992
  description: string;
765
993
 
994
+ /**
995
+ * A unique identifier available to the originating and receiving banks, commonly
996
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
997
+ * service and is helpful when debugging wires with the originating bank.
998
+ */
766
999
  input_message_accountability_data: string | null;
767
1000
 
1001
+ /**
1002
+ * The address of the wire originator, set by the sending bank.
1003
+ */
768
1004
  originator_address_line1: string | null;
769
1005
 
1006
+ /**
1007
+ * The address of the wire originator, set by the sending bank.
1008
+ */
770
1009
  originator_address_line2: string | null;
771
1010
 
1011
+ /**
1012
+ * The address of the wire originator, set by the sending bank.
1013
+ */
772
1014
  originator_address_line3: string | null;
773
1015
 
1016
+ /**
1017
+ * The originator of the wire, set by the sending bank.
1018
+ */
774
1019
  originator_name: string | null;
775
1020
 
1021
+ /**
1022
+ * A free-form message set by the wire originator.
1023
+ */
776
1024
  originator_to_beneficiary_information_line1: string | null;
777
1025
 
1026
+ /**
1027
+ * A free-form message set by the wire originator.
1028
+ */
778
1029
  originator_to_beneficiary_information_line2: string | null;
779
1030
 
1031
+ /**
1032
+ * A free-form message set by the wire originator.
1033
+ */
780
1034
  originator_to_beneficiary_information_line3: string | null;
781
1035
 
1036
+ /**
1037
+ * A free-form message set by the wire originator.
1038
+ */
782
1039
  originator_to_beneficiary_information_line4: string | null;
783
1040
 
784
1041
  /**
@@ -1106,7 +1363,7 @@ export namespace CardAuthorizationSimulation {
1106
1363
  merchant_descriptor: string;
1107
1364
 
1108
1365
  /**
1109
- * Fields specific to the `network`
1366
+ * Fields specific to the `network`.
1110
1367
  */
1111
1368
  network_details: CardAuthorization.NetworkDetails;
1112
1369
 
@@ -1136,25 +1393,25 @@ export namespace CardAuthorizationSimulation {
1136
1393
 
1137
1394
  export namespace CardAuthorization {
1138
1395
  /**
1139
- * Fields specific to the `network`
1396
+ * Fields specific to the `network`.
1140
1397
  */
1141
1398
  export interface NetworkDetails {
1142
1399
  /**
1143
- * The payment network used to process this card authorization
1400
+ * The payment network used to process this card authorization.
1144
1401
  *
1145
1402
  * - `visa` - Visa
1146
1403
  */
1147
1404
  category: 'visa';
1148
1405
 
1149
1406
  /**
1150
- * Fields specific to the `visa` network
1407
+ * Fields specific to the `visa` network.
1151
1408
  */
1152
1409
  visa: NetworkDetails.Visa | null;
1153
1410
  }
1154
1411
 
1155
1412
  export namespace NetworkDetails {
1156
1413
  /**
1157
- * Fields specific to the `visa` network
1414
+ * Fields specific to the `visa` network.
1158
1415
  */
1159
1416
  export interface Visa {
1160
1417
  /**
@@ -1205,7 +1462,7 @@ export namespace CardAuthorizationSimulation {
1205
1462
 
1206
1463
  /**
1207
1464
  * The method used to enter the cardholder's primary account number and card
1208
- * expiration date
1465
+ * expiration date.
1209
1466
  *
1210
1467
  * - `unknown` - Unknown
1211
1468
  * - `manual` - Manual key entry
@@ -1404,6 +1661,9 @@ export namespace CardAuthorizationSimulation {
1404
1661
  * response if and only if `category` is equal to `wire_transfer_instruction`.
1405
1662
  */
1406
1663
  export interface WireTransferInstruction {
1664
+ /**
1665
+ * The account number for the destination account.
1666
+ */
1407
1667
  account_number: string;
1408
1668
 
1409
1669
  /**
@@ -1412,10 +1672,20 @@ export namespace CardAuthorizationSimulation {
1412
1672
  */
1413
1673
  amount: number;
1414
1674
 
1675
+ /**
1676
+ * The message that will show on the recipient's bank statement.
1677
+ */
1415
1678
  message_to_recipient: string;
1416
1679
 
1680
+ /**
1681
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
1682
+ * destination account.
1683
+ */
1417
1684
  routing_number: string;
1418
1685
 
1686
+ /**
1687
+ * The identifier of the Wire Transfer that led to this Pending Transaction.
1688
+ */
1419
1689
  transfer_id: string;
1420
1690
  }
1421
1691
  }
@@ -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 CheckDeposits_ from '../check-deposits';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import * as CheckDeposits_ from '../check-deposits.js';
6
6
 
7
7
  export class CheckDeposits extends APIResource {
8
8
  /**
@@ -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 CheckTransfers_ from '../check-transfers';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import * as CheckTransfers_ from '../check-transfers.js';
6
6
 
7
7
  export class CheckTransfers extends APIResource {
8
8
  /**
@@ -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 DigitalWalletTokenRequests extends APIResource {
8
8
  /**