increase 0.10.3 → 0.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +4 -0
  3. package/_shims/{ReadableStream.node.d.ts → ReadableStream-node.d.ts} +1 -1
  4. package/_shims/ReadableStream-node.d.ts.map +1 -0
  5. package/_shims/{ReadableStream.node.js → ReadableStream-node.js} +1 -1
  6. package/_shims/ReadableStream-node.js.map +1 -0
  7. package/_shims/{ReadableStream.node.mjs → ReadableStream-node.mjs} +1 -1
  8. package/_shims/ReadableStream-node.mjs.map +1 -0
  9. package/_shims/{agent.node.d.ts → agent-node.d.ts} +1 -1
  10. package/_shims/agent-node.d.ts.map +1 -0
  11. package/_shims/{agent.node.js → agent-node.js} +1 -1
  12. package/_shims/{agent.node.js.map → agent-node.js.map} +1 -1
  13. package/_shims/{agent.node.mjs → agent-node.mjs} +1 -1
  14. package/_shims/{agent.node.mjs.map → agent-node.mjs.map} +1 -1
  15. package/_shims/agent.d.ts +1 -1
  16. package/_shims/agent.js +1 -1
  17. package/_shims/agent.mjs +1 -1
  18. package/_shims/{fileFromPath.node.d.ts → fileFromPath-node.d.ts} +2 -2
  19. package/_shims/{fileFromPath.node.d.ts.map → fileFromPath-node.d.ts.map} +1 -1
  20. package/_shims/{fileFromPath.node.js → fileFromPath-node.js} +1 -1
  21. package/_shims/{fileFromPath.node.js.map → fileFromPath-node.js.map} +1 -1
  22. package/_shims/{fileFromPath.node.mjs → fileFromPath-node.mjs} +1 -1
  23. package/_shims/{fileFromPath.node.mjs.map → fileFromPath-node.mjs.map} +1 -1
  24. package/_shims/fileFromPath.d.ts +2 -2
  25. package/_shims/fileFromPath.d.ts.map +1 -1
  26. package/_shims/fileFromPath.js +1 -1
  27. package/_shims/fileFromPath.mjs +1 -1
  28. package/_shims/{getMultipartRequestOptions.node.d.ts → getMultipartRequestOptions-node.d.ts} +2 -2
  29. package/_shims/getMultipartRequestOptions-node.d.ts.map +1 -0
  30. package/_shims/{getMultipartRequestOptions.node.js → getMultipartRequestOptions-node.js} +1 -1
  31. package/_shims/{getMultipartRequestOptions.node.js.map → getMultipartRequestOptions-node.js.map} +1 -1
  32. package/_shims/{getMultipartRequestOptions.node.mjs → getMultipartRequestOptions-node.mjs} +1 -1
  33. package/_shims/{getMultipartRequestOptions.node.mjs.map → getMultipartRequestOptions-node.mjs.map} +1 -1
  34. package/_shims/getMultipartRequestOptions.d.ts +1 -1
  35. package/_shims/getMultipartRequestOptions.d.ts.map +1 -1
  36. package/_shims/{node-readable.node.d.ts → node-readable-node.d.ts} +1 -1
  37. package/_shims/{node-readable.node.d.ts.map → node-readable-node.d.ts.map} +1 -1
  38. package/_shims/{node-readable.node.js → node-readable-node.js} +1 -1
  39. package/_shims/node-readable-node.js.map +1 -0
  40. package/_shims/{node-readable.node.mjs → node-readable-node.mjs} +1 -1
  41. package/_shims/node-readable-node.mjs.map +1 -0
  42. package/core.d.ts +2 -1
  43. package/core.d.ts.map +1 -1
  44. package/core.js +3 -1
  45. package/core.js.map +1 -1
  46. package/core.mjs +1 -1
  47. package/core.mjs.map +1 -1
  48. package/error.d.ts +1 -1
  49. package/error.d.ts.map +1 -1
  50. package/error.js +2 -2
  51. package/error.js.map +1 -1
  52. package/error.mjs +2 -2
  53. package/error.mjs.map +1 -1
  54. package/index.d.mts +2 -0
  55. package/index.d.ts +2 -0
  56. package/index.d.ts.map +1 -1
  57. package/index.js +3 -3
  58. package/index.js.map +1 -1
  59. package/index.mjs +3 -3
  60. package/index.mjs.map +1 -1
  61. package/package.json +9 -4
  62. package/pagination.d.ts +1 -1
  63. package/resources/ach-prenotifications.d.ts +219 -3
  64. package/resources/ach-prenotifications.d.ts.map +1 -1
  65. package/resources/ach-prenotifications.js.map +1 -1
  66. package/resources/ach-prenotifications.mjs.map +1 -1
  67. package/resources/ach-transfers.d.ts +14 -9
  68. package/resources/ach-transfers.d.ts.map +1 -1
  69. package/resources/ach-transfers.js.map +1 -1
  70. package/resources/ach-transfers.mjs.map +1 -1
  71. package/resources/bookkeeping-entry-sets.d.ts +1 -1
  72. package/resources/card-profiles.d.ts +1 -1
  73. package/resources/card-purchase-supplements.d.ts +2 -2
  74. package/resources/check-deposits.d.ts +3 -0
  75. package/resources/check-deposits.d.ts.map +1 -1
  76. package/resources/check-deposits.js.map +1 -1
  77. package/resources/check-deposits.mjs.map +1 -1
  78. package/resources/check-transfers.d.ts +6 -0
  79. package/resources/check-transfers.d.ts.map +1 -1
  80. package/resources/check-transfers.js.map +1 -1
  81. package/resources/check-transfers.mjs.map +1 -1
  82. package/resources/declined-transactions.d.ts +280 -17
  83. package/resources/declined-transactions.d.ts.map +1 -1
  84. package/resources/declined-transactions.js.map +1 -1
  85. package/resources/declined-transactions.mjs.map +1 -1
  86. package/resources/digital-wallet-tokens.d.ts +2 -1
  87. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  88. package/resources/digital-wallet-tokens.js.map +1 -1
  89. package/resources/digital-wallet-tokens.mjs.map +1 -1
  90. package/resources/entities/beneficial-owners.d.ts +51 -0
  91. package/resources/entities/beneficial-owners.d.ts.map +1 -1
  92. package/resources/entities/beneficial-owners.js +6 -0
  93. package/resources/entities/beneficial-owners.js.map +1 -1
  94. package/resources/entities/beneficial-owners.mjs +6 -0
  95. package/resources/entities/beneficial-owners.mjs.map +1 -1
  96. package/resources/entities/entities.d.ts +45 -1
  97. package/resources/entities/entities.d.ts.map +1 -1
  98. package/resources/entities/entities.js +6 -0
  99. package/resources/entities/entities.js.map +1 -1
  100. package/resources/entities/entities.mjs +6 -0
  101. package/resources/entities/entities.mjs.map +1 -1
  102. package/resources/entities/index.d.ts +9 -1
  103. package/resources/entities/index.d.ts.map +1 -1
  104. package/resources/entities/index.js.map +1 -1
  105. package/resources/entities/index.mjs.map +1 -1
  106. package/resources/external-accounts.d.ts +4 -0
  107. package/resources/external-accounts.d.ts.map +1 -1
  108. package/resources/external-accounts.js.map +1 -1
  109. package/resources/external-accounts.mjs.map +1 -1
  110. package/resources/inbound-ach-transfers.d.ts +56 -8
  111. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  112. package/resources/inbound-ach-transfers.js +9 -0
  113. package/resources/inbound-ach-transfers.js.map +1 -1
  114. package/resources/inbound-ach-transfers.mjs +9 -0
  115. package/resources/inbound-ach-transfers.mjs.map +1 -1
  116. package/resources/index.d.ts +9 -1
  117. package/resources/index.d.ts.map +1 -1
  118. package/resources/index.js.map +1 -1
  119. package/resources/index.mjs.map +1 -1
  120. package/resources/pending-transactions.d.ts +19 -6
  121. package/resources/pending-transactions.d.ts.map +1 -1
  122. package/resources/pending-transactions.js.map +1 -1
  123. package/resources/pending-transactions.mjs.map +1 -1
  124. package/resources/real-time-decisions.d.ts +11 -9
  125. package/resources/real-time-decisions.d.ts.map +1 -1
  126. package/resources/real-time-decisions.js.map +1 -1
  127. package/resources/real-time-decisions.mjs.map +1 -1
  128. package/resources/simulations/ach-transfers.d.ts +684 -33
  129. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  130. package/resources/simulations/ach-transfers.js.map +1 -1
  131. package/resources/simulations/ach-transfers.mjs.map +1 -1
  132. package/resources/simulations/cards.d.ts +299 -23
  133. package/resources/simulations/cards.d.ts.map +1 -1
  134. package/resources/simulations/cards.js.map +1 -1
  135. package/resources/simulations/cards.mjs.map +1 -1
  136. package/resources/simulations/interest-payments.d.ts +402 -14
  137. package/resources/simulations/interest-payments.d.ts.map +1 -1
  138. package/resources/simulations/interest-payments.js.map +1 -1
  139. package/resources/simulations/interest-payments.mjs.map +1 -1
  140. package/resources/simulations/real-time-payments-transfers.d.ts +682 -31
  141. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  142. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  143. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  144. package/resources/simulations/wire-transfers.d.ts +402 -14
  145. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  146. package/resources/simulations/wire-transfers.js.map +1 -1
  147. package/resources/simulations/wire-transfers.mjs.map +1 -1
  148. package/resources/transactions.d.ts +402 -14
  149. package/resources/transactions.d.ts.map +1 -1
  150. package/resources/transactions.js.map +1 -1
  151. package/resources/transactions.mjs.map +1 -1
  152. package/resources/wire-transfers.d.ts +7 -5
  153. package/resources/wire-transfers.d.ts.map +1 -1
  154. package/resources/wire-transfers.js +1 -1
  155. package/resources/wire-transfers.js.map +1 -1
  156. package/resources/wire-transfers.mjs +1 -1
  157. package/resources/wire-transfers.mjs.map +1 -1
  158. package/src/_shims/ReadableStream.d.ts +5 -5
  159. package/src/_shims/agent.ts +1 -1
  160. package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +8 -8
  161. package/src/_shims/fetch.d.ts +10 -10
  162. package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
  163. package/src/_shims/fileFromPath.ts +2 -2
  164. package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
  165. package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
  166. package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
  167. package/src/_shims/getMultipartRequestOptions.ts +3 -3
  168. package/src/core.ts +11 -10
  169. package/src/error.ts +3 -3
  170. package/src/index.ts +9 -7
  171. package/src/pagination.ts +2 -2
  172. package/src/resource.ts +1 -1
  173. package/src/resources/account-numbers.ts +5 -5
  174. package/src/resources/account-statements.ts +5 -5
  175. package/src/resources/account-transfers.ts +5 -5
  176. package/src/resources/accounts.ts +5 -5
  177. package/src/resources/ach-prenotifications.ts +224 -8
  178. package/src/resources/ach-transfers.ts +19 -14
  179. package/src/resources/balance-lookups.ts +3 -3
  180. package/src/resources/bookkeeping-accounts.ts +5 -5
  181. package/src/resources/bookkeeping-entries.ts +5 -5
  182. package/src/resources/bookkeeping-entry-sets.ts +4 -4
  183. package/src/resources/card-disputes.ts +5 -5
  184. package/src/resources/card-profiles.ts +6 -6
  185. package/src/resources/card-purchase-supplements.ts +7 -7
  186. package/src/resources/cards.ts +5 -5
  187. package/src/resources/check-deposits.ts +8 -5
  188. package/src/resources/check-transfers.ts +12 -5
  189. package/src/resources/declined-transactions.ts +285 -22
  190. package/src/resources/digital-wallet-tokens.ts +7 -6
  191. package/src/resources/documents.ts +5 -5
  192. package/src/resources/entities/beneficial-owners.ts +66 -4
  193. package/src/resources/entities/entities.ts +61 -8
  194. package/src/resources/entities/index.ts +11 -3
  195. package/src/resources/entities/supplemental-documents.ts +5 -5
  196. package/src/resources/event-subscriptions.ts +5 -5
  197. package/src/resources/events.ts +5 -5
  198. package/src/resources/exports.ts +5 -5
  199. package/src/resources/external-accounts.ts +10 -5
  200. package/src/resources/files.ts +6 -6
  201. package/src/resources/groups.ts +3 -3
  202. package/src/resources/inbound-ach-transfers.ts +73 -13
  203. package/src/resources/inbound-wire-drawdown-requests.ts +5 -5
  204. package/src/resources/index.ts +54 -39
  205. package/src/resources/limits.ts +5 -5
  206. package/src/resources/oauth-connections.ts +5 -5
  207. package/src/resources/pending-transactions.ts +24 -11
  208. package/src/resources/programs.ts +5 -5
  209. package/src/resources/real-time-decisions.ts +14 -12
  210. package/src/resources/real-time-payments-transfers.ts +5 -5
  211. package/src/resources/routing-numbers.ts +4 -4
  212. package/src/resources/simulations/account-statements.ts +4 -4
  213. package/src/resources/simulations/account-transfers.ts +3 -3
  214. package/src/resources/simulations/ach-transfers.ts +697 -39
  215. package/src/resources/simulations/card-disputes.ts +4 -4
  216. package/src/resources/simulations/card-profiles.ts +3 -3
  217. package/src/resources/simulations/card-refunds.ts +4 -4
  218. package/src/resources/simulations/cards.ts +304 -28
  219. package/src/resources/simulations/check-deposits.ts +3 -3
  220. package/src/resources/simulations/check-transfers.ts +3 -3
  221. package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
  222. package/src/resources/simulations/documents.ts +4 -4
  223. package/src/resources/simulations/inbound-funds-holds.ts +3 -3
  224. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
  225. package/src/resources/simulations/index.ts +18 -18
  226. package/src/resources/simulations/interest-payments.ts +413 -18
  227. package/src/resources/simulations/programs.ts +4 -4
  228. package/src/resources/simulations/real-time-payments-transfers.ts +695 -37
  229. package/src/resources/simulations/simulations.ts +19 -19
  230. package/src/resources/simulations/wire-transfers.ts +413 -18
  231. package/src/resources/transactions.ts +415 -20
  232. package/src/resources/wire-drawdown-requests.ts +5 -5
  233. package/src/resources/wire-transfers.ts +12 -10
  234. package/src/tsconfig.json +11 -0
  235. package/src/uploads.ts +6 -6
  236. package/src/version.ts +1 -1
  237. package/uploads.d.ts +1 -1
  238. package/uploads.d.ts.map +1 -1
  239. package/uploads.js +4 -4
  240. package/uploads.js.map +1 -1
  241. package/uploads.mjs +1 -1
  242. package/uploads.mjs.map +1 -1
  243. package/version.d.ts +1 -1
  244. package/version.js +1 -1
  245. package/version.mjs +1 -1
  246. package/_shims/ReadableStream.node.d.ts.map +0 -1
  247. package/_shims/ReadableStream.node.js.map +0 -1
  248. package/_shims/ReadableStream.node.mjs.map +0 -1
  249. package/_shims/agent.node.d.ts.map +0 -1
  250. package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
  251. package/_shims/node-readable.node.js.map +0 -1
  252. package/_shims/node-readable.node.mjs.map +0 -1
  253. package/src/_shims/fetch.deno.ts +0 -23
  254. package/src/_shims/formdata.deno.ts +0 -16
  255. /package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +0 -0
  256. /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
  257. /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  258. /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
  259. /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
  260. /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  261. /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
  262. /package/_shims/{formdata.js → form-data.js} +0 -0
  263. /package/_shims/{formdata.mjs → form-data.mjs} +0 -0
  264. /package/src/_shims/{ReadableStream.node.ts → ReadableStream-node.ts} +0 -0
  265. /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
  266. /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
  267. /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  268. /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
  269. /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  270. /package/src/_shims/{formdata.js → form-data.js} +0 -0
  271. /package/src/_shims/{formdata.mjs → form-data.mjs} +0 -0
  272. /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
@@ -1,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 AccountStatements 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 AccountTransfers 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 Accounts 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 ACHPrenotifications extends APIResource {
10
10
  /**
@@ -142,7 +142,8 @@ export interface ACHPrenotification {
142
142
  export namespace ACHPrenotification {
143
143
  export interface NotificationsOfChange {
144
144
  /**
145
- * The type of change that occurred.
145
+ * The required type of change that is being signaled by the receiving financial
146
+ * institution.
146
147
  *
147
148
  * - `incorrect_account_number` - The account number was incorrect.
148
149
  * - `incorrect_routing_number` - The routing number was incorrect.
@@ -174,7 +175,7 @@ export namespace ACHPrenotification {
174
175
  | 'incorrect_standard_entry_class_code_for_outbound_international_payment';
175
176
 
176
177
  /**
177
- * The corrected data.
178
+ * The corrected data that should be used in future ACHs to this account.
178
179
  */
179
180
  corrected_data: string;
180
181
 
@@ -197,8 +198,223 @@ export namespace ACHPrenotification {
197
198
 
198
199
  /**
199
200
  * Why the Prenotification was returned.
201
+ *
202
+ * - `insufficient_fund` - Code R01. Insufficient funds in the source account.
203
+ * - `no_account` - Code R03. The account does not exist or the receiving bank was
204
+ * unable to locate it.
205
+ * - `account_closed` - Code R02. The account is closed.
206
+ * - `invalid_account_number_structure` - Code R04. The account number is invalid
207
+ * at the receiving bank.
208
+ * - `account_frozen_entry_returned_per_ofac_instruction` - Code R16. The account
209
+ * was frozen per the Office of Foreign Assets Control.
210
+ * - `credit_entry_refused_by_receiver` - Code R23. The receiving bank account
211
+ * refused a credit transfer.
212
+ * - `unauthorized_debit_to_consumer_account_using_corporate_sec_code` - Code R05.
213
+ * The receiving bank rejected because of an incorrect Standard Entry Class code.
214
+ * - `corporate_customer_advised_not_authorized` - Code R29. The corporate customer
215
+ * reversed the transfer.
216
+ * - `payment_stopped` - Code R08. The receiving bank stopped payment on this
217
+ * transfer.
218
+ * - `non_transaction_account` - Code R20. The receiving bank account does not
219
+ * perform transfers.
220
+ * - `uncollected_funds` - Code R09. The receiving bank account does not have
221
+ * enough available balance for the transfer.
222
+ * - `routing_number_check_digit_error` - Code R28. The routing number is
223
+ * incorrect.
224
+ * - `customer_advised_unauthorized_improper_ineligible_or_incomplete` - Code R10.
225
+ * The customer reversed the transfer.
226
+ * - `amount_field_error` - Code R19. The amount field is incorrect or too large.
227
+ * - `authorization_revoked_by_customer` - Code R07. The customer who initiated the
228
+ * transfer revoked authorization.
229
+ * - `invalid_ach_routing_number` - Code R13. The routing number is invalid.
230
+ * - `file_record_edit_criteria` - Code R17. The receiving bank is unable to
231
+ * process a field in the transfer.
232
+ * - `enr_invalid_individual_name` - Code R45. The individual name field was
233
+ * invalid.
234
+ * - `returned_per_odfi_request` - Code R06. The originating financial institution
235
+ * asked for this transfer to be returned.
236
+ * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
237
+ * supervisor has limited their participation.
238
+ * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
239
+ * international ACH transfer was incorrect.
240
+ * - `account_sold_to_another_dfi` - Code R12. A rare return reason. The account
241
+ * was sold to another bank.
242
+ * - `addenda_error` - Code R25. The addenda record is incorrect or missing.
243
+ * - `beneficiary_or_account_holder_deceased` - Code R15. A rare return reason. The
244
+ * account holder is deceased.
245
+ * - `customer_advised_not_within_authorization_terms` - Code R11. A rare return
246
+ * reason. The customer authorized some payment to the sender, but this payment
247
+ * was not in error.
248
+ * - `corrected_return` - Code R74. A rare return reason. Sent in response to a
249
+ * return that was returned with code `field_error`. The latest return should
250
+ * include the corrected field(s).
251
+ * - `duplicate_entry` - Code R24. A rare return reason. The receiving bank
252
+ * received an exact duplicate entry with the same trace number and amount.
253
+ * - `duplicate_return` - Code R67. A rare return reason. The return this message
254
+ * refers to was a duplicate.
255
+ * - `enr_duplicate_enrollment` - Code R47. A rare return reason. Only used for US
256
+ * Government agency non-monetary automatic enrollment messages.
257
+ * - `enr_invalid_dfi_account_number` - Code R43. A rare return reason. Only used
258
+ * for US Government agency non-monetary automatic enrollment messages.
259
+ * - `enr_invalid_individual_id_number` - Code R44. A rare return reason. Only used
260
+ * for US Government agency non-monetary automatic enrollment messages.
261
+ * - `enr_invalid_representative_payee_indicator` - Code R46. A rare return reason.
262
+ * Only used for US Government agency non-monetary automatic enrollment messages.
263
+ * - `enr_invalid_transaction_code` - Code R41. A rare return reason. Only used for
264
+ * US Government agency non-monetary automatic enrollment messages.
265
+ * - `enr_return_of_enr_entry` - Code R40. A rare return reason. Only used for US
266
+ * Government agency non-monetary automatic enrollment messages.
267
+ * - `enr_routing_number_check_digit_error` - Code R42. A rare return reason. Only
268
+ * used for US Government agency non-monetary automatic enrollment messages.
269
+ * - `entry_not_processed_by_gateway` - Code R84. A rare return reason. The
270
+ * International ACH Transfer cannot be processed by the gateway.
271
+ * - `field_error` - Code R69. A rare return reason. One or more of the fields in
272
+ * the ACH were malformed.
273
+ * - `foreign_receiving_dfi_unable_to_settle` - Code R83. A rare return reason. The
274
+ * Foreign receiving bank was unable to settle this ACH transfer.
275
+ * - `iat_entry_coding_error` - Code R80. A rare return reason. The International
276
+ * ACH Transfer is malformed.
277
+ * - `improper_effective_entry_date` - Code R18. A rare return reason. The ACH has
278
+ * an improper effective entry date field.
279
+ * - `improper_source_document_source_document_presented` - Code R39. A rare return
280
+ * reason. The source document related to this ACH, usually an ACH check
281
+ * conversion, was presented to the bank.
282
+ * - `invalid_company_id` - Code R21. A rare return reason. The Company ID field of
283
+ * the ACH was invalid.
284
+ * - `invalid_foreign_receiving_dfi_identification` - Code R82. A rare return
285
+ * reason. The foreign receiving bank identifier for an International ACH
286
+ * Transfer was invalid.
287
+ * - `invalid_individual_id_number` - Code R22. A rare return reason. The
288
+ * Individual ID number field of the ACH was invalid.
289
+ * - `item_and_rck_entry_presented_for_payment` - Code R53. A rare return reason.
290
+ * Both the Represented Check ("RCK") entry and the original check were presented
291
+ * to the bank.
292
+ * - `item_related_to_rck_entry_is_ineligible` - Code R51. A rare return reason.
293
+ * The Represented Check ("RCK") entry is ineligible.
294
+ * - `mandatory_field_error` - Code R26. A rare return reason. The ACH is missing a
295
+ * required field.
296
+ * - `misrouted_dishonored_return` - Code R71. A rare return reason. The receiving
297
+ * bank does not recognize the routing number in a dishonored return entry.
298
+ * - `misrouted_return` - Code R61. A rare return reason. The receiving bank does
299
+ * not recognize the routing number in a return entry.
300
+ * - `no_errors_found` - Code R76. A rare return reason. Sent in response to a
301
+ * return, the bank does not find the errors alleged by the returning bank.
302
+ * - `non_acceptance_of_r62_dishonored_return` - Code R77. A rare return reason.
303
+ * The receiving bank does not accept the return of the erroneous debit. The
304
+ * funds are not available at the receiving bank.
305
+ * - `non_participant_in_iat_program` - Code R81. A rare return reason. The
306
+ * receiving bank does not accept International ACH Transfers.
307
+ * - `permissible_return_entry` - Code R31. A rare return reason. A return that has
308
+ * been agreed to be accepted by the receiving bank, despite falling outside of
309
+ * the usual return timeframe.
310
+ * - `permissible_return_entry_not_accepted` - Code R70. A rare return reason. The
311
+ * receiving bank had not approved this return.
312
+ * - `rdfi_non_settlement` - Code R32. A rare return reason. The receiving bank
313
+ * could not settle this transaction.
314
+ * - `rdfi_participant_in_check_truncation_program` - Code R30. A rare return
315
+ * reason. The receiving bank does not accept Check Truncation ACH transfers.
316
+ * - `representative_payee_deceased_or_unable_to_continue_in_that_capacity` - Code
317
+ * R14. A rare return reason. The payee is deceased.
318
+ * - `return_not_a_duplicate` - Code R75. A rare return reason. The originating
319
+ * bank disputes that an earlier `duplicate_entry` return was actually a
320
+ * duplicate.
321
+ * - `return_of_erroneous_or_reversing_debit` - Code R62. A rare return reason. The
322
+ * originating financial institution made a mistake and this return corrects it.
323
+ * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
324
+ * a malformed credit entry.
325
+ * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a
326
+ * malformed debit entry.
327
+ * - `return_of_xck_entry` - Code R33. A rare return reason. Return of a Destroyed
328
+ * Check ("XKC") entry.
329
+ * - `source_document_presented_for_payment` - Code R37. A rare return reason. The
330
+ * source document related to this ACH, usually an ACH check conversion, was
331
+ * presented to the bank.
332
+ * - `state_law_affecting_rck_acceptance` - Code R50. A rare return reason. State
333
+ * law prevents the bank from accepting the Represented Check ("RCK") entry.
334
+ * - `stop_payment_on_item_related_to_rck_entry` - Code R52. A rare return reason.
335
+ * A stop payment was issued on a Represented Check ("RCK") entry.
336
+ * - `stop_payment_on_source_document` - Code R38. A rare return reason. The source
337
+ * attached to the ACH, usually an ACH check conversion, includes a stop payment.
338
+ * - `timely_original_return` - Code R73. A rare return reason. The bank receiving
339
+ * an `untimely_return` believes it was on time.
340
+ * - `trace_number_error` - Code R27. A rare return reason. An ACH Return's trace
341
+ * number does not match an originated ACH.
342
+ * - `untimely_dishonored_return` - Code R72. A rare return reason. The dishonored
343
+ * return was sent too late.
344
+ * - `untimely_return` - Code R68. A rare return reason. The return was sent too
345
+ * late.
200
346
  */
201
- return_reason_code: string;
347
+ return_reason_code:
348
+ | 'insufficient_fund'
349
+ | 'no_account'
350
+ | 'account_closed'
351
+ | 'invalid_account_number_structure'
352
+ | 'account_frozen_entry_returned_per_ofac_instruction'
353
+ | 'credit_entry_refused_by_receiver'
354
+ | 'unauthorized_debit_to_consumer_account_using_corporate_sec_code'
355
+ | 'corporate_customer_advised_not_authorized'
356
+ | 'payment_stopped'
357
+ | 'non_transaction_account'
358
+ | 'uncollected_funds'
359
+ | 'routing_number_check_digit_error'
360
+ | 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
361
+ | 'amount_field_error'
362
+ | 'authorization_revoked_by_customer'
363
+ | 'invalid_ach_routing_number'
364
+ | 'file_record_edit_criteria'
365
+ | 'enr_invalid_individual_name'
366
+ | 'returned_per_odfi_request'
367
+ | 'limited_participation_dfi'
368
+ | 'incorrectly_coded_outbound_international_payment'
369
+ | 'account_sold_to_another_dfi'
370
+ | 'addenda_error'
371
+ | 'beneficiary_or_account_holder_deceased'
372
+ | 'customer_advised_not_within_authorization_terms'
373
+ | 'corrected_return'
374
+ | 'duplicate_entry'
375
+ | 'duplicate_return'
376
+ | 'enr_duplicate_enrollment'
377
+ | 'enr_invalid_dfi_account_number'
378
+ | 'enr_invalid_individual_id_number'
379
+ | 'enr_invalid_representative_payee_indicator'
380
+ | 'enr_invalid_transaction_code'
381
+ | 'enr_return_of_enr_entry'
382
+ | 'enr_routing_number_check_digit_error'
383
+ | 'entry_not_processed_by_gateway'
384
+ | 'field_error'
385
+ | 'foreign_receiving_dfi_unable_to_settle'
386
+ | 'iat_entry_coding_error'
387
+ | 'improper_effective_entry_date'
388
+ | 'improper_source_document_source_document_presented'
389
+ | 'invalid_company_id'
390
+ | 'invalid_foreign_receiving_dfi_identification'
391
+ | 'invalid_individual_id_number'
392
+ | 'item_and_rck_entry_presented_for_payment'
393
+ | 'item_related_to_rck_entry_is_ineligible'
394
+ | 'mandatory_field_error'
395
+ | 'misrouted_dishonored_return'
396
+ | 'misrouted_return'
397
+ | 'no_errors_found'
398
+ | 'non_acceptance_of_r62_dishonored_return'
399
+ | 'non_participant_in_iat_program'
400
+ | 'permissible_return_entry'
401
+ | 'permissible_return_entry_not_accepted'
402
+ | 'rdfi_non_settlement'
403
+ | 'rdfi_participant_in_check_truncation_program'
404
+ | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
405
+ | 'return_not_a_duplicate'
406
+ | 'return_of_erroneous_or_reversing_debit'
407
+ | 'return_of_improper_credit_entry'
408
+ | 'return_of_improper_debit_entry'
409
+ | 'return_of_xck_entry'
410
+ | 'source_document_presented_for_payment'
411
+ | 'state_law_affecting_rck_acceptance'
412
+ | 'stop_payment_on_item_related_to_rck_entry'
413
+ | 'stop_payment_on_source_document'
414
+ | 'timely_original_return'
415
+ | 'trace_number_error'
416
+ | 'untimely_dishonored_return'
417
+ | 'untimely_return';
202
418
  }
203
419
  }
204
420
 
@@ -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 ACHTransfers extends APIResource {
10
10
  /**
@@ -252,8 +252,8 @@ export interface ACHTransfer {
252
252
  * After the transfer is submitted to FedACH, this will contain supplemental
253
253
  * details. Increase batches transfers and submits a file to the Federal Reserve
254
254
  * roughly every 30 minutes. The Federal Reserve processes ACH transfers during
255
- * weekdays according to their (posted
256
- * schedule)[https://www.frbservices.org/resources/resource-centers/same-day-ach/fedach-processing-schedule.html].
255
+ * weekdays according to their
256
+ * [posted schedule](https://www.frbservices.org/resources/resource-centers/same-day-ach/fedach-processing-schedule.html).
257
257
  */
258
258
  submission: ACHTransfer.Submission | null;
259
259
 
@@ -326,7 +326,8 @@ export namespace ACHTransfer {
326
326
 
327
327
  export interface NotificationsOfChange {
328
328
  /**
329
- * The type of change that occurred.
329
+ * The required type of change that is being signaled by the receiving financial
330
+ * institution.
330
331
  *
331
332
  * - `incorrect_account_number` - The account number was incorrect.
332
333
  * - `incorrect_routing_number` - The routing number was incorrect.
@@ -358,7 +359,7 @@ export namespace ACHTransfer {
358
359
  | 'incorrect_standard_entry_class_code_for_outbound_international_payment';
359
360
 
360
361
  /**
361
- * The corrected data.
362
+ * The corrected data that should be used in future ACHs to this account.
362
363
  */
363
364
  corrected_data: string;
364
365
 
@@ -420,7 +421,7 @@ export namespace ACHTransfer {
420
421
  * - `enr_invalid_individual_name` - Code R45. The individual name field was
421
422
  * invalid.
422
423
  * - `returned_per_odfi_request` - Code R06. The originating financial institution
423
- * reversed the transfer.
424
+ * asked for this transfer to be returned.
424
425
  * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
425
426
  * supervisor has limited their participation.
426
427
  * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
@@ -507,7 +508,7 @@ export namespace ACHTransfer {
507
508
  * bank disputes that an earlier `duplicate_entry` return was actually a
508
509
  * duplicate.
509
510
  * - `return_of_erroneous_or_reversing_debit` - Code R62. A rare return reason. The
510
- * originating bank made a mistake earlier and this return corrects it.
511
+ * originating financial institution made a mistake and this return corrects it.
511
512
  * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
512
513
  * a malformed credit entry.
513
514
  * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a
@@ -619,8 +620,8 @@ export namespace ACHTransfer {
619
620
  * After the transfer is submitted to FedACH, this will contain supplemental
620
621
  * details. Increase batches transfers and submits a file to the Federal Reserve
621
622
  * roughly every 30 minutes. The Federal Reserve processes ACH transfers during
622
- * weekdays according to their (posted
623
- * schedule)[https://www.frbservices.org/resources/resource-centers/same-day-ach/fedach-processing-schedule.html].
623
+ * weekdays according to their
624
+ * [posted schedule](https://www.frbservices.org/resources/resource-centers/same-day-ach/fedach-processing-schedule.html).
624
625
  */
625
626
  export interface Submission {
626
627
  /**
@@ -637,7 +638,11 @@ export namespace ACHTransfer {
637
638
  submitted_at: string;
638
639
 
639
640
  /**
640
- * The trace number for the submission.
641
+ * A 15 digit number recorded in the Nacha file and transmitted to the receiving
642
+ * bank. Along with the amount, date, and originating routing number, this can be
643
+ * used to identify the ACH transfer at the receiving bank. ACH trace numbers are
644
+ * not unique, but are
645
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
641
646
  */
642
647
  trace_number: string;
643
648
  }
@@ -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 BalanceLookups extends APIResource {
8
8
  /**
@@ -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 BookkeepingAccounts 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 BookkeepingEntries extends APIResource {
10
10
  /**
@@ -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 BookkeepingEntrySets extends APIResource {
8
8
  /**
@@ -31,7 +31,7 @@ export interface BookkeepingEntrySet {
31
31
  date: string;
32
32
 
33
33
  /**
34
- * The entries
34
+ * The entries.
35
35
  */
36
36
  entries: Array<BookkeepingEntrySet.Entry>;
37
37
 
@@ -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 CardDisputes 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 CardProfiles extends APIResource {
10
10
  /**
@@ -54,7 +54,7 @@ type _CardProfilesPage = CardProfilesPage;
54
54
  /**
55
55
  * This contains artwork and metadata relating to a Card's appearance in digital
56
56
  * wallet apps like Apple Pay and Google Pay. For more information, see our guide
57
- * on [digital card artwork](https://increase.com/documentation/card-art)
57
+ * on [digital card artwork](https://increase.com/documentation/card-art).
58
58
  */
59
59
  export interface CardProfile {
60
60
  /**
@@ -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
  */