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,10 +1,10 @@
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 { isRequestOptions } from '../core';
6
- import * as API from './index';
7
- import { Page, PageParams } from '../pagination';
3
+ import * as Core from '../core.js';
4
+ import { APIResource } from '../resource.js';
5
+ import { isRequestOptions } from '../core.js';
6
+ import * as API from './index.js';
7
+ import { Page, PageParams } from '../pagination.js';
8
8
 
9
9
  export class CardPurchaseSupplements extends APIResource {
10
10
  /**
@@ -259,7 +259,7 @@ export namespace CardPurchaseSupplement {
259
259
  sales_tax_rate: string | null;
260
260
 
261
261
  /**
262
- * Total amount of all line items
262
+ * Total amount of all line items.
263
263
  */
264
264
  total_amount: number | null;
265
265
 
@@ -280,7 +280,7 @@ export namespace CardPurchaseSupplement {
280
280
  unit_cost_currency: string | null;
281
281
 
282
282
  /**
283
- * Code indicating unit of measure (gallons, etc.)
283
+ * Code indicating unit of measure (gallons, etc.).
284
284
  */
285
285
  unit_of_measure_code: string | null;
286
286
  }
@@ -1,10 +1,10 @@
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 { isRequestOptions } from '../core';
6
- import * as API from './index';
7
- import { Page, PageParams } from '../pagination';
3
+ import * as Core from '../core.js';
4
+ import { APIResource } from '../resource.js';
5
+ import { isRequestOptions } from '../core.js';
6
+ import * as API from './index.js';
7
+ import { Page, PageParams } from '../pagination.js';
8
8
 
9
9
  export class Cards extends APIResource {
10
10
  /**
@@ -1,10 +1,10 @@
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 { isRequestOptions } from '../core';
6
- import * as API from './index';
7
- import { Page, PageParams } from '../pagination';
3
+ import * as Core from '../core.js';
4
+ import { APIResource } from '../resource.js';
5
+ import { isRequestOptions } from '../core.js';
6
+ import * as API from './index.js';
7
+ import { Page, PageParams } from '../pagination.js';
8
8
 
9
9
  export class CheckDeposits extends APIResource {
10
10
  /**
@@ -271,6 +271,9 @@ export namespace CheckDeposit {
271
271
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
272
272
 
273
273
  /**
274
+ * Why this check was returned by the bank holding the account it was drawn
275
+ * against.
276
+ *
274
277
  * - `ach_conversion_not_supported` - The check doesn't allow ACH conversion.
275
278
  * - `closed_account` - The account is closed.
276
279
  * - `duplicate_submission` - The check has already been deposited.
@@ -1,10 +1,10 @@
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 { isRequestOptions } from '../core';
6
- import * as API from './index';
7
- import { Page, PageParams } from '../pagination';
3
+ import * as Core from '../core.js';
4
+ import { APIResource } from '../resource.js';
5
+ import { isRequestOptions } from '../core.js';
6
+ import * as API from './index.js';
7
+ import { Page, PageParams } from '../pagination.js';
8
8
 
9
9
  export class CheckTransfers extends APIResource {
10
10
  /**
@@ -273,6 +273,13 @@ export namespace CheckTransfer {
273
273
  */
274
274
  back_image_file_id: string | null;
275
275
 
276
+ /**
277
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
278
+ * bank depositing this check. In some rare cases, this is not transmitted via
279
+ * Check21 and the value will be null.
280
+ */
281
+ bank_of_first_deposit_routing_number: string | null;
282
+
276
283
  /**
277
284
  * When the check was deposited.
278
285
  */
@@ -1,10 +1,10 @@
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 { isRequestOptions } from '../core';
6
- import * as API from './index';
7
- import { Page, PageParams } from '../pagination';
3
+ import * as Core from '../core.js';
4
+ import { APIResource } from '../resource.js';
5
+ import { isRequestOptions } from '../core.js';
6
+ import * as API from './index.js';
7
+ import { Page, PageParams } from '../pagination.js';
8
8
 
9
9
  export class DeclinedTransactions extends APIResource {
10
10
  /**
@@ -234,16 +234,22 @@ export namespace DeclinedTransaction {
234
234
  *
235
235
  * - `ach_route_canceled` - The account number is canceled.
236
236
  * - `ach_route_disabled` - The account number is disabled.
237
- * - `breaches_limit` - The transaction would cause a limit to be exceeded.
238
- * - `credit_entry_refused_by_receiver` - A credit was refused.
239
- * - `duplicate_return` - Other.
237
+ * - `breaches_limit` - The transaction would cause an Increase limit to be
238
+ * exceeded.
239
+ * - `credit_entry_refused_by_receiver` - A credit was refused. This is a
240
+ * reasonable default reason for decline of credits.
241
+ * - `duplicate_return` - A rare return reason. The return this message refers to
242
+ * was a duplicate.
240
243
  * - `entity_not_active` - The account's entity is not active.
241
244
  * - `group_locked` - Your account is inactive.
242
245
  * - `insufficient_funds` - Your account contains insufficient funds.
243
- * - `misrouted_return` - Other.
244
- * - `return_of_erroneous_or_reversing_debit` - Other.
246
+ * - `misrouted_return` - A rare return reason. The return this message refers to
247
+ * was misrouted.
248
+ * - `return_of_erroneous_or_reversing_debit` - The originating financial
249
+ * institution made a mistake and this return corrects it.
245
250
  * - `no_ach_route` - The account number that was debited does not exist.
246
- * - `originator_request` - Other.
251
+ * - `originator_request` - The originating financial institution asked for this
252
+ * transfer to be returned.
247
253
  * - `transaction_not_allowed` - The transaction is not allowed per Increase's
248
254
  * terms.
249
255
  * - `user_initiated` - The user initiated the decline.
@@ -349,7 +355,7 @@ export namespace DeclinedTransaction {
349
355
  merchant_state: string | null;
350
356
 
351
357
  /**
352
- * Fields specific to the `network`
358
+ * Fields specific to the `network`.
353
359
  */
354
360
  network_details: CardDecline.NetworkDetails;
355
361
 
@@ -408,25 +414,25 @@ export namespace DeclinedTransaction {
408
414
 
409
415
  export namespace CardDecline {
410
416
  /**
411
- * Fields specific to the `network`
417
+ * Fields specific to the `network`.
412
418
  */
413
419
  export interface NetworkDetails {
414
420
  /**
415
- * The payment network used to process this card authorization
421
+ * The payment network used to process this card authorization.
416
422
  *
417
423
  * - `visa` - Visa
418
424
  */
419
425
  category: 'visa';
420
426
 
421
427
  /**
422
- * Fields specific to the `visa` network
428
+ * Fields specific to the `visa` network.
423
429
  */
424
430
  visa: NetworkDetails.Visa | null;
425
431
  }
426
432
 
427
433
  export namespace NetworkDetails {
428
434
  /**
429
- * Fields specific to the `visa` network
435
+ * Fields specific to the `visa` network.
430
436
  */
431
437
  export interface Visa {
432
438
  /**
@@ -477,7 +483,7 @@ export namespace DeclinedTransaction {
477
483
 
478
484
  /**
479
485
  * The method used to enter the cardholder's primary account number and card
480
- * expiration date
486
+ * expiration date.
481
487
  *
482
488
  * - `unknown` - Unknown
483
489
  * - `manual` - Manual key entry
@@ -520,43 +526,42 @@ export namespace DeclinedTransaction {
520
526
  */
521
527
  amount: number;
522
528
 
529
+ /**
530
+ * A computer-readable number printed on the MICR line of business checks, usually
531
+ * the check number. This is useful for positive pay checks, but can be unreliably
532
+ * transmitted by the bank of first deposit.
533
+ */
523
534
  auxiliary_on_us: string | null;
524
535
 
525
536
  /**
526
537
  * Why the check was declined.
527
538
  *
528
- * - `ach_route_canceled` - The account number is canceled.
529
539
  * - `ach_route_disabled` - The account number is disabled.
540
+ * - `ach_route_canceled` - The account number is canceled.
530
541
  * - `breaches_limit` - The transaction would cause a limit to be exceeded.
531
542
  * - `entity_not_active` - The account's entity is not active.
532
543
  * - `group_locked` - Your account is inactive.
533
544
  * - `insufficient_funds` - Your account contains insufficient funds.
534
- * - `unable_to_locate_account` - Unable to locate account.
535
- * - `not_our_item` - Routing number on the check is not ours.
536
- * - `unable_to_process` - Unable to process.
537
- * - `refer_to_image` - Refer to image.
538
545
  * - `stop_payment_requested` - Stop payment requested for this check.
539
- * - `returned` - Check was returned to sender.
540
546
  * - `duplicate_presentment` - The check was a duplicate deposit.
541
- * - `not_authorized` - The transaction is not allowed.
542
- * - `altered_or_fictitious` - The check was altered or fictitious.
547
+ * - `not_authorized` - The check was not authorized.
548
+ * - `amount_mismatch` - The amount the receiving bank is attempting to deposit
549
+ * does not match the amount on the check.
550
+ * - `not_our_item` - The check attempting to be deposited does not belong to
551
+ * Increase.
543
552
  */
544
553
  reason:
545
- | 'ach_route_canceled'
546
554
  | 'ach_route_disabled'
555
+ | 'ach_route_canceled'
547
556
  | 'breaches_limit'
548
557
  | 'entity_not_active'
549
558
  | 'group_locked'
550
559
  | 'insufficient_funds'
551
- | 'unable_to_locate_account'
552
- | 'not_our_item'
553
- | 'unable_to_process'
554
- | 'refer_to_image'
555
560
  | 'stop_payment_requested'
556
- | 'returned'
557
561
  | 'duplicate_presentment'
558
562
  | 'not_authorized'
559
- | 'altered_or_fictitious';
563
+ | 'amount_mismatch'
564
+ | 'not_our_item';
560
565
  }
561
566
 
562
567
  /**
@@ -646,74 +651,279 @@ export namespace DeclinedTransaction {
646
651
  */
647
652
  amount: number;
648
653
 
654
+ /**
655
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
656
+ * country code of the destination country.
657
+ */
649
658
  destination_country_code: string;
650
659
 
660
+ /**
661
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
662
+ * destination bank account.
663
+ */
651
664
  destination_currency_code: string;
652
665
 
653
- foreign_exchange_indicator: string;
666
+ /**
667
+ * A description of how the foreign exchange rate was calculated.
668
+ *
669
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
670
+ * The settled amount in USD was converted using the exchange rate.
671
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
672
+ * originator's amount was variable; known only after the foreign exchange
673
+ * conversion.
674
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
675
+ * USD. There is no foreign exchange conversion.
676
+ */
677
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
654
678
 
679
+ /**
680
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
681
+ * reference to a well-known rate.
682
+ */
655
683
  foreign_exchange_reference: string | null;
656
684
 
657
- foreign_exchange_reference_indicator: string;
685
+ /**
686
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
687
+ * this Transaction.
688
+ *
689
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
690
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
691
+ * well-known foreign exchange rate.
692
+ * - `blank` - There is no foreign exchange for this transfer, so the
693
+ * `foreign_exchange_reference` field is blank.
694
+ */
695
+ foreign_exchange_reference_indicator:
696
+ | 'foreign_exchange_rate'
697
+ | 'foreign_exchange_reference_number'
698
+ | 'blank';
658
699
 
700
+ /**
701
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
702
+ * example, this is cents.
703
+ */
659
704
  foreign_payment_amount: number;
660
705
 
706
+ /**
707
+ * A reference number in the foreign banking infrastructure.
708
+ */
661
709
  foreign_trace_number: string | null;
662
710
 
663
- international_transaction_type_code: string;
711
+ /**
712
+ * The type of transfer. Set by the originator.
713
+ *
714
+ * - `annuity` - Sent as `ANN` in the Nacha file.
715
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
716
+ * - `deposit` - Sent as `DEP` in the Nacha file.
717
+ * - `loan` - Sent as `LOA` in the Nacha file.
718
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
719
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
720
+ * - `pension` - Sent as `PEN` in the Nacha file.
721
+ * - `remittance` - Sent as `REM` in the Nacha file.
722
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
723
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
724
+ * - `tax` - Sent as `TAX` in the Nacha file.
725
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
726
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
727
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
728
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
729
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
730
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
731
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
732
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
733
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
734
+ */
735
+ international_transaction_type_code:
736
+ | 'annuity'
737
+ | 'business_or_commercial'
738
+ | 'deposit'
739
+ | 'loan'
740
+ | 'miscellaneous'
741
+ | 'mortgage'
742
+ | 'pension'
743
+ | 'remittance'
744
+ | 'rent_or_lease'
745
+ | 'salary_or_payroll'
746
+ | 'tax'
747
+ | 'accounts_receivable'
748
+ | 'back_office_conversion'
749
+ | 'machine_transfer'
750
+ | 'point_of_purchase'
751
+ | 'point_of_sale'
752
+ | 'represented_check'
753
+ | 'shared_network_transaction'
754
+ | 'telphone_initiated'
755
+ | 'internet_initiated';
664
756
 
757
+ /**
758
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
759
+ * originating bank account.
760
+ */
665
761
  originating_currency_code: string;
666
762
 
763
+ /**
764
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
765
+ * country code of the originating branch country.
766
+ */
667
767
  originating_depository_financial_institution_branch_country: string;
668
768
 
769
+ /**
770
+ * An identifier for the originating bank. One of an International Bank Account
771
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
772
+ * domestic identifier like a US Routing Number.
773
+ */
669
774
  originating_depository_financial_institution_id: string;
670
775
 
671
- originating_depository_financial_institution_id_qualifier: string;
776
+ /**
777
+ * An instruction of how to interpret the
778
+ * `originating_depository_financial_institution_id` field for this Transaction.
779
+ *
780
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
781
+ * US, for example, this is the American Banking Association (ABA) routing
782
+ * number.
783
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
784
+ * - `iban` - An International Bank Account Number.
785
+ */
786
+ originating_depository_financial_institution_id_qualifier:
787
+ | 'national_clearing_system_number'
788
+ | 'bic_code'
789
+ | 'iban';
672
790
 
791
+ /**
792
+ * The name of the originating bank. Sometimes this will refer to an American bank
793
+ * and obscure the correspondent foreign bank.
794
+ */
673
795
  originating_depository_financial_institution_name: string;
674
796
 
797
+ /**
798
+ * A portion of the originator address. This may be incomplete.
799
+ */
675
800
  originator_city: string;
676
801
 
802
+ /**
803
+ * A description field set by the originator.
804
+ */
677
805
  originator_company_entry_description: string;
678
806
 
807
+ /**
808
+ * A portion of the originator address. The
809
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
810
+ * code of the originator country.
811
+ */
679
812
  originator_country: string;
680
813
 
814
+ /**
815
+ * An identifier for the originating company. This is generally stable across
816
+ * multiple ACH transfers.
817
+ */
681
818
  originator_identification: string;
682
819
 
820
+ /**
821
+ * Either the name of the originator or an intermediary money transmitter.
822
+ */
683
823
  originator_name: string;
684
824
 
825
+ /**
826
+ * A portion of the originator address. This may be incomplete.
827
+ */
685
828
  originator_postal_code: string | null;
686
829
 
830
+ /**
831
+ * A portion of the originator address. This may be incomplete.
832
+ */
687
833
  originator_state_or_province: string | null;
688
834
 
835
+ /**
836
+ * A portion of the originator address. This may be incomplete.
837
+ */
689
838
  originator_street_address: string;
690
839
 
840
+ /**
841
+ * A description field set by the originator.
842
+ */
691
843
  payment_related_information: string | null;
692
844
 
845
+ /**
846
+ * A description field set by the originator.
847
+ */
693
848
  payment_related_information2: string | null;
694
849
 
850
+ /**
851
+ * A portion of the receiver address. This may be incomplete.
852
+ */
695
853
  receiver_city: string;
696
854
 
855
+ /**
856
+ * A portion of the receiver address. The
857
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
858
+ * code of the receiver country.
859
+ */
697
860
  receiver_country: string;
698
861
 
862
+ /**
863
+ * An identification number the originator uses for the receiver.
864
+ */
699
865
  receiver_identification_number: string | null;
700
866
 
867
+ /**
868
+ * A portion of the receiver address. This may be incomplete.
869
+ */
701
870
  receiver_postal_code: string | null;
702
871
 
872
+ /**
873
+ * A portion of the receiver address. This may be incomplete.
874
+ */
703
875
  receiver_state_or_province: string | null;
704
876
 
877
+ /**
878
+ * A portion of the receiver address. This may be incomplete.
879
+ */
705
880
  receiver_street_address: string;
706
881
 
882
+ /**
883
+ * The name of the receiver of the transfer. This is not verified by Increase.
884
+ */
707
885
  receiving_company_or_individual_name: string;
708
886
 
887
+ /**
888
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
889
+ * country code of the receiving bank country.
890
+ */
709
891
  receiving_depository_financial_institution_country: string;
710
892
 
893
+ /**
894
+ * An identifier for the receiving bank. One of an International Bank Account
895
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
896
+ * domestic identifier like a US Routing Number.
897
+ */
711
898
  receiving_depository_financial_institution_id: string;
712
899
 
713
- receiving_depository_financial_institution_id_qualifier: string;
900
+ /**
901
+ * An instruction of how to interpret the
902
+ * `receiving_depository_financial_institution_id` field for this Transaction.
903
+ *
904
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
905
+ * US, for example, this is the American Banking Association (ABA) routing
906
+ * number.
907
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
908
+ * - `iban` - An International Bank Account Number.
909
+ */
910
+ receiving_depository_financial_institution_id_qualifier:
911
+ | 'national_clearing_system_number'
912
+ | 'bic_code'
913
+ | 'iban';
714
914
 
915
+ /**
916
+ * The name of the receiving bank, as set by the sending financial institution.
917
+ */
715
918
  receiving_depository_financial_institution_name: string;
716
919
 
920
+ /**
921
+ * A 15 digit number recorded in the Nacha file and available to both the
922
+ * originating and receiving bank. Along with the amount, date, and originating
923
+ * routing number, this can be used to identify the ACH transfer at either bank.
924
+ * ACH trace numbers are not unique, but are
925
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
926
+ */
717
927
  trace_number: string;
718
928
  }
719
929
 
@@ -728,34 +938,81 @@ export namespace DeclinedTransaction {
728
938
  */
729
939
  amount: number;
730
940
 
941
+ /**
942
+ * A free-form address field set by the sender.
943
+ */
731
944
  beneficiary_address_line1: string | null;
732
945
 
946
+ /**
947
+ * A free-form address field set by the sender.
948
+ */
733
949
  beneficiary_address_line2: string | null;
734
950
 
951
+ /**
952
+ * A free-form address field set by the sender.
953
+ */
735
954
  beneficiary_address_line3: string | null;
736
955
 
956
+ /**
957
+ * A name set by the sender.
958
+ */
737
959
  beneficiary_name: string | null;
738
960
 
961
+ /**
962
+ * A free-form reference string set by the sender, to help identify the transfer.
963
+ */
739
964
  beneficiary_reference: string | null;
740
965
 
966
+ /**
967
+ * An Increase-constructed description of the declined transaction.
968
+ */
741
969
  description: string;
742
970
 
971
+ /**
972
+ * A unique identifier available to the originating and receiving banks, commonly
973
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
974
+ * service and is helpful when debugging wires with the originating bank.
975
+ */
743
976
  input_message_accountability_data: string | null;
744
977
 
978
+ /**
979
+ * The address of the wire originator, set by the sending bank.
980
+ */
745
981
  originator_address_line1: string | null;
746
982
 
983
+ /**
984
+ * The address of the wire originator, set by the sending bank.
985
+ */
747
986
  originator_address_line2: string | null;
748
987
 
988
+ /**
989
+ * The address of the wire originator, set by the sending bank.
990
+ */
749
991
  originator_address_line3: string | null;
750
992
 
993
+ /**
994
+ * The originator of the wire, set by the sending bank.
995
+ */
751
996
  originator_name: string | null;
752
997
 
998
+ /**
999
+ * A free-form message set by the wire originator.
1000
+ */
753
1001
  originator_to_beneficiary_information_line1: string | null;
754
1002
 
1003
+ /**
1004
+ * A free-form message set by the wire originator.
1005
+ */
755
1006
  originator_to_beneficiary_information_line2: string | null;
756
1007
 
1008
+ /**
1009
+ * A free-form message set by the wire originator.
1010
+ */
757
1011
  originator_to_beneficiary_information_line3: string | null;
758
1012
 
1013
+ /**
1014
+ * A free-form message set by the wire originator.
1015
+ */
759
1016
  originator_to_beneficiary_information_line4: string | null;
760
1017
 
761
1018
  /**
@@ -1,10 +1,10 @@
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 { isRequestOptions } from '../core';
6
- import * as API from './index';
7
- import { Page, PageParams } from '../pagination';
3
+ import * as Core from '../core.js';
4
+ import { APIResource } from '../resource.js';
5
+ import { isRequestOptions } from '../core.js';
6
+ import * as API from './index.js';
7
+ import { Page, PageParams } from '../pagination.js';
8
8
 
9
9
  export class DigitalWalletTokens extends APIResource {
10
10
  /**
@@ -75,8 +75,9 @@ export interface DigitalWalletToken {
75
75
  *
76
76
  * - `apple_pay` - Apple Pay
77
77
  * - `google_pay` - Google Pay
78
+ * - `unknown` - Unknown
78
79
  */
79
- token_requestor: 'apple_pay' | 'google_pay';
80
+ token_requestor: 'apple_pay' | 'google_pay' | 'unknown';
80
81
 
81
82
  /**
82
83
  * A constant representing the object's type. For this resource it will always be
@@ -1,10 +1,10 @@
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 { isRequestOptions } from '../core';
6
- import * as API from './index';
7
- import { Page, PageParams } from '../pagination';
3
+ import * as Core from '../core.js';
4
+ import { APIResource } from '../resource.js';
5
+ import { isRequestOptions } from '../core.js';
6
+ import * as API from './index.js';
7
+ import { Page, PageParams } from '../pagination.js';
8
8
 
9
9
  export class Documents extends APIResource {
10
10
  /**