increase 0.59.1 → 0.61.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 (299) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +41 -17
  3. package/error.d.ts.map +1 -1
  4. package/error.js +0 -3
  5. package/error.js.map +1 -1
  6. package/error.mjs +0 -3
  7. package/error.mjs.map +1 -1
  8. package/index.d.mts +190 -172
  9. package/index.d.ts +190 -172
  10. package/index.d.ts.map +1 -1
  11. package/index.js +96 -87
  12. package/index.js.map +1 -1
  13. package/index.mjs +96 -87
  14. package/index.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/resources/cards.d.ts +1 -1
  17. package/resources/cards.d.ts.map +1 -1
  18. package/resources/cards.js +1 -1
  19. package/resources/cards.js.map +1 -1
  20. package/resources/cards.mjs +1 -1
  21. package/resources/cards.mjs.map +1 -1
  22. package/resources/declined-transactions.d.ts +2 -231
  23. package/resources/declined-transactions.d.ts.map +1 -1
  24. package/resources/declined-transactions.js.map +1 -1
  25. package/resources/declined-transactions.mjs.map +1 -1
  26. package/resources/{entities/entities.d.ts → entities.d.ts} +276 -46
  27. package/resources/entities.d.ts.map +1 -0
  28. package/resources/{entities/entities.js → entities.js} +28 -17
  29. package/resources/entities.js.map +1 -0
  30. package/resources/{entities/entities.mjs → entities.mjs} +28 -17
  31. package/resources/entities.mjs.map +1 -0
  32. package/resources/groups.d.ts +1 -1
  33. package/resources/groups.d.ts.map +1 -1
  34. package/resources/groups.js +1 -1
  35. package/resources/groups.js.map +1 -1
  36. package/resources/groups.mjs +1 -1
  37. package/resources/groups.mjs.map +1 -1
  38. package/resources/inbound-ach-transfers.d.ts +218 -7
  39. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  40. package/resources/inbound-ach-transfers.js +8 -8
  41. package/resources/inbound-ach-transfers.js.map +1 -1
  42. package/resources/inbound-ach-transfers.mjs +8 -8
  43. package/resources/inbound-ach-transfers.mjs.map +1 -1
  44. package/resources/inbound-check-deposits.d.ts +25 -1
  45. package/resources/inbound-check-deposits.d.ts.map +1 -1
  46. package/resources/inbound-check-deposits.js +6 -0
  47. package/resources/inbound-check-deposits.js.map +1 -1
  48. package/resources/inbound-check-deposits.mjs +6 -0
  49. package/resources/inbound-check-deposits.mjs.map +1 -1
  50. package/resources/inbound-mail-items.d.ts +0 -14
  51. package/resources/inbound-mail-items.d.ts.map +1 -1
  52. package/resources/inbound-mail-items.js.map +1 -1
  53. package/resources/inbound-mail-items.mjs.map +1 -1
  54. package/resources/inbound-wire-transfers.d.ts +4 -0
  55. package/resources/inbound-wire-transfers.d.ts.map +1 -1
  56. package/resources/inbound-wire-transfers.js.map +1 -1
  57. package/resources/inbound-wire-transfers.mjs.map +1 -1
  58. package/resources/index.d.ts +11 -8
  59. package/resources/index.d.ts.map +1 -1
  60. package/resources/index.js +15 -6
  61. package/resources/index.js.map +1 -1
  62. package/resources/index.mjs +7 -4
  63. package/resources/index.mjs.map +1 -1
  64. package/resources/{intrafi/account-enrollments.d.ts → intrafi-account-enrollments.d.ts} +17 -17
  65. package/resources/intrafi-account-enrollments.d.ts.map +1 -0
  66. package/resources/{intrafi/account-enrollments.js → intrafi-account-enrollments.js} +11 -11
  67. package/resources/intrafi-account-enrollments.js.map +1 -0
  68. package/resources/{intrafi/account-enrollments.mjs → intrafi-account-enrollments.mjs} +9 -9
  69. package/resources/intrafi-account-enrollments.mjs.map +1 -0
  70. package/resources/{intrafi/balances.d.ts → intrafi-balances.d.ts} +7 -7
  71. package/resources/intrafi-balances.d.ts.map +1 -0
  72. package/resources/{intrafi/balances.js → intrafi-balances.js} +7 -7
  73. package/resources/intrafi-balances.js.map +1 -0
  74. package/resources/{intrafi/balances.mjs → intrafi-balances.mjs} +5 -5
  75. package/resources/intrafi-balances.mjs.map +1 -0
  76. package/resources/{intrafi/exclusions.d.ts → intrafi-exclusions.d.ts} +15 -15
  77. package/resources/intrafi-exclusions.d.ts.map +1 -0
  78. package/resources/{intrafi/exclusions.js → intrafi-exclusions.js} +11 -11
  79. package/resources/intrafi-exclusions.js.map +1 -0
  80. package/resources/{intrafi/exclusions.mjs → intrafi-exclusions.mjs} +9 -9
  81. package/resources/intrafi-exclusions.mjs.map +1 -0
  82. package/resources/lockboxes.d.ts +0 -14
  83. package/resources/lockboxes.d.ts.map +1 -1
  84. package/resources/lockboxes.js.map +1 -1
  85. package/resources/lockboxes.mjs.map +1 -1
  86. package/resources/routing-numbers.d.ts +5 -5
  87. package/resources/routing-numbers.d.ts.map +1 -1
  88. package/resources/routing-numbers.js +5 -5
  89. package/resources/routing-numbers.js.map +1 -1
  90. package/resources/routing-numbers.mjs +3 -3
  91. package/resources/routing-numbers.mjs.map +1 -1
  92. package/resources/simulations/ach-transfers.d.ts +10 -61
  93. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  94. package/resources/simulations/ach-transfers.js +10 -14
  95. package/resources/simulations/ach-transfers.js.map +1 -1
  96. package/resources/simulations/ach-transfers.mjs +10 -14
  97. package/resources/simulations/ach-transfers.mjs.map +1 -1
  98. package/resources/simulations/card-authorization-expirations.d.ts +20 -0
  99. package/resources/simulations/card-authorization-expirations.d.ts.map +1 -0
  100. package/resources/simulations/card-authorization-expirations.js +17 -0
  101. package/resources/simulations/card-authorization-expirations.js.map +1 -0
  102. package/resources/simulations/card-authorization-expirations.mjs +13 -0
  103. package/resources/simulations/card-authorization-expirations.mjs.map +1 -0
  104. package/resources/simulations/card-authorizations.d.ts +91 -0
  105. package/resources/simulations/card-authorizations.d.ts.map +1 -0
  106. package/resources/simulations/{cards.js → card-authorizations.js} +7 -17
  107. package/resources/simulations/card-authorizations.js.map +1 -0
  108. package/resources/simulations/{cards.mjs → card-authorizations.mjs} +5 -15
  109. package/resources/simulations/card-authorizations.mjs.map +1 -0
  110. package/resources/simulations/card-fuel-confirmations.d.ts +27 -0
  111. package/resources/simulations/card-fuel-confirmations.d.ts.map +1 -0
  112. package/resources/simulations/card-fuel-confirmations.js +19 -0
  113. package/resources/simulations/card-fuel-confirmations.js.map +1 -0
  114. package/resources/simulations/card-fuel-confirmations.mjs +15 -0
  115. package/resources/simulations/card-fuel-confirmations.mjs.map +1 -0
  116. package/resources/simulations/card-increments.d.ts +32 -0
  117. package/resources/simulations/card-increments.d.ts.map +1 -0
  118. package/resources/simulations/card-increments.js +18 -0
  119. package/resources/simulations/card-increments.js.map +1 -0
  120. package/resources/simulations/card-increments.mjs +14 -0
  121. package/resources/simulations/card-increments.mjs.map +1 -0
  122. package/resources/simulations/card-reversals.d.ts +28 -0
  123. package/resources/simulations/card-reversals.d.ts.map +1 -0
  124. package/resources/simulations/card-reversals.js +20 -0
  125. package/resources/simulations/card-reversals.js.map +1 -0
  126. package/resources/simulations/card-reversals.mjs +16 -0
  127. package/resources/simulations/card-reversals.mjs.map +1 -0
  128. package/resources/simulations/card-settlements.d.ts +34 -0
  129. package/resources/simulations/card-settlements.d.ts.map +1 -0
  130. package/resources/simulations/card-settlements.js +21 -0
  131. package/resources/simulations/card-settlements.js.map +1 -0
  132. package/resources/simulations/card-settlements.mjs +17 -0
  133. package/resources/simulations/card-settlements.mjs.map +1 -0
  134. package/resources/simulations/inbound-ach-transfers.d.ts +89 -0
  135. package/resources/simulations/inbound-ach-transfers.d.ts.map +1 -0
  136. package/resources/simulations/inbound-ach-transfers.js +26 -0
  137. package/resources/simulations/inbound-ach-transfers.js.map +1 -0
  138. package/resources/simulations/inbound-ach-transfers.mjs +22 -0
  139. package/resources/simulations/inbound-ach-transfers.mjs.map +1 -0
  140. package/resources/simulations/inbound-real-time-payments-transfers.d.ts +71 -0
  141. package/resources/simulations/inbound-real-time-payments-transfers.d.ts.map +1 -0
  142. package/resources/simulations/inbound-real-time-payments-transfers.js +18 -0
  143. package/resources/simulations/inbound-real-time-payments-transfers.js.map +1 -0
  144. package/resources/simulations/inbound-real-time-payments-transfers.mjs +14 -0
  145. package/resources/simulations/inbound-real-time-payments-transfers.mjs.map +1 -0
  146. package/resources/simulations/inbound-wire-transfers.d.ts +99 -0
  147. package/resources/simulations/inbound-wire-transfers.d.ts.map +1 -0
  148. package/resources/simulations/inbound-wire-transfers.js +17 -0
  149. package/resources/simulations/inbound-wire-transfers.js.map +1 -0
  150. package/resources/simulations/inbound-wire-transfers.mjs +13 -0
  151. package/resources/simulations/inbound-wire-transfers.mjs.map +1 -0
  152. package/resources/simulations/index.d.ts +14 -7
  153. package/resources/simulations/index.d.ts.map +1 -1
  154. package/resources/simulations/index.js +21 -7
  155. package/resources/simulations/index.js.map +1 -1
  156. package/resources/simulations/index.mjs +11 -4
  157. package/resources/simulations/index.mjs.map +1 -1
  158. package/resources/simulations/interest-payments.js +1 -1
  159. package/resources/simulations/interest-payments.js.map +1 -1
  160. package/resources/simulations/interest-payments.mjs +1 -1
  161. package/resources/simulations/interest-payments.mjs.map +1 -1
  162. package/resources/simulations/physical-cards.d.ts +3 -3
  163. package/resources/simulations/physical-cards.js +2 -2
  164. package/resources/simulations/physical-cards.mjs +2 -2
  165. package/resources/simulations/real-time-payments-transfers.d.ts +0 -3686
  166. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  167. package/resources/simulations/real-time-payments-transfers.js +0 -7
  168. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  169. package/resources/simulations/real-time-payments-transfers.mjs +0 -7
  170. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  171. package/resources/simulations/simulations.d.ts +67 -118
  172. package/resources/simulations/simulations.d.ts.map +1 -1
  173. package/resources/simulations/simulations.js +45 -54
  174. package/resources/simulations/simulations.js.map +1 -1
  175. package/resources/simulations/simulations.mjs +45 -54
  176. package/resources/simulations/simulations.mjs.map +1 -1
  177. package/resources/simulations/wire-transfers.d.ts +10 -85
  178. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  179. package/resources/simulations/wire-transfers.js +14 -5
  180. package/resources/simulations/wire-transfers.js.map +1 -1
  181. package/resources/simulations/wire-transfers.mjs +14 -5
  182. package/resources/simulations/wire-transfers.mjs.map +1 -1
  183. package/resources/{entities/supplemental-documents.d.ts → supplemental-documents.d.ts} +17 -10
  184. package/resources/supplemental-documents.d.ts.map +1 -0
  185. package/resources/{entities/supplemental-documents.js → supplemental-documents.js} +9 -9
  186. package/resources/supplemental-documents.js.map +1 -0
  187. package/resources/{entities/supplemental-documents.mjs → supplemental-documents.mjs} +7 -7
  188. package/resources/supplemental-documents.mjs.map +1 -0
  189. package/resources/transactions.d.ts +6 -276
  190. package/resources/transactions.d.ts.map +1 -1
  191. package/resources/transactions.js.map +1 -1
  192. package/resources/transactions.mjs.map +1 -1
  193. package/resources/wire-transfers.d.ts +4 -13
  194. package/resources/wire-transfers.d.ts.map +1 -1
  195. package/resources/wire-transfers.js +0 -17
  196. package/resources/wire-transfers.js.map +1 -1
  197. package/resources/wire-transfers.mjs +0 -17
  198. package/resources/wire-transfers.mjs.map +1 -1
  199. package/src/error.ts +0 -8
  200. package/src/index.ts +210 -189
  201. package/src/resources/cards.ts +1 -1
  202. package/src/resources/declined-transactions.ts +0 -297
  203. package/src/resources/{entities/entities.ts → entities.ts} +351 -56
  204. package/src/resources/groups.ts +1 -1
  205. package/src/resources/inbound-ach-transfers.ts +288 -13
  206. package/src/resources/inbound-check-deposits.ts +34 -1
  207. package/src/resources/inbound-mail-items.ts +0 -16
  208. package/src/resources/inbound-wire-transfers.ts +5 -0
  209. package/src/resources/index.ts +32 -14
  210. package/src/resources/{intrafi/account-enrollments.ts → intrafi-account-enrollments.ts} +18 -18
  211. package/src/resources/{intrafi/balances.ts → intrafi-balances.ts} +6 -6
  212. package/src/resources/{intrafi/exclusions.ts → intrafi-exclusions.ts} +19 -16
  213. package/src/resources/lockboxes.ts +0 -16
  214. package/src/resources/routing-numbers.ts +6 -6
  215. package/src/resources/simulations/ach-transfers.ts +15 -76
  216. package/src/resources/simulations/card-authorization-expirations.ts +29 -0
  217. package/src/resources/simulations/card-authorizations.ts +112 -0
  218. package/src/resources/simulations/card-fuel-confirmations.ts +37 -0
  219. package/src/resources/simulations/card-increments.ts +43 -0
  220. package/src/resources/simulations/card-reversals.ts +38 -0
  221. package/src/resources/simulations/card-settlements.ts +45 -0
  222. package/src/resources/simulations/inbound-ach-transfers.ts +124 -0
  223. package/src/resources/simulations/inbound-real-time-payments-transfers.ts +89 -0
  224. package/src/resources/simulations/inbound-wire-transfers.ts +124 -0
  225. package/src/resources/simulations/index.ts +26 -21
  226. package/src/resources/simulations/interest-payments.ts +1 -1
  227. package/src/resources/simulations/physical-cards.ts +5 -5
  228. package/src/resources/simulations/real-time-payments-transfers.ts +0 -4659
  229. package/src/resources/simulations/simulations.ts +80 -157
  230. package/src/resources/simulations/wire-transfers.ts +18 -104
  231. package/src/resources/{entities/supplemental-documents.ts → supplemental-documents.ts} +21 -13
  232. package/src/resources/transactions.ts +5 -350
  233. package/src/resources/wire-transfers.ts +5 -19
  234. package/src/version.ts +1 -1
  235. package/version.d.ts +1 -1
  236. package/version.js +1 -1
  237. package/version.mjs +1 -1
  238. package/resources/entities/beneficial-owners.d.ts +0 -279
  239. package/resources/entities/beneficial-owners.d.ts.map +0 -1
  240. package/resources/entities/beneficial-owners.js +0 -29
  241. package/resources/entities/beneficial-owners.js.map +0 -1
  242. package/resources/entities/beneficial-owners.mjs +0 -25
  243. package/resources/entities/beneficial-owners.mjs.map +0 -1
  244. package/resources/entities/entities.d.ts.map +0 -1
  245. package/resources/entities/entities.js.map +0 -1
  246. package/resources/entities/entities.mjs.map +0 -1
  247. package/resources/entities/index.d.ts +0 -5
  248. package/resources/entities/index.d.ts.map +0 -1
  249. package/resources/entities/index.js +0 -15
  250. package/resources/entities/index.js.map +0 -1
  251. package/resources/entities/index.mjs +0 -6
  252. package/resources/entities/index.mjs.map +0 -1
  253. package/resources/entities/industry-code.d.ts +0 -23
  254. package/resources/entities/industry-code.d.ts.map +0 -1
  255. package/resources/entities/industry-code.js +0 -17
  256. package/resources/entities/industry-code.js.map +0 -1
  257. package/resources/entities/industry-code.mjs +0 -13
  258. package/resources/entities/industry-code.mjs.map +0 -1
  259. package/resources/entities/supplemental-documents.d.ts.map +0 -1
  260. package/resources/entities/supplemental-documents.js.map +0 -1
  261. package/resources/entities/supplemental-documents.mjs.map +0 -1
  262. package/resources/intrafi/account-enrollments.d.ts.map +0 -1
  263. package/resources/intrafi/account-enrollments.js.map +0 -1
  264. package/resources/intrafi/account-enrollments.mjs.map +0 -1
  265. package/resources/intrafi/balances.d.ts.map +0 -1
  266. package/resources/intrafi/balances.js.map +0 -1
  267. package/resources/intrafi/balances.mjs.map +0 -1
  268. package/resources/intrafi/exclusions.d.ts.map +0 -1
  269. package/resources/intrafi/exclusions.js.map +0 -1
  270. package/resources/intrafi/exclusions.mjs.map +0 -1
  271. package/resources/intrafi/index.d.ts +0 -5
  272. package/resources/intrafi/index.d.ts.map +0 -1
  273. package/resources/intrafi/index.js +0 -15
  274. package/resources/intrafi/index.js.map +0 -1
  275. package/resources/intrafi/index.mjs +0 -6
  276. package/resources/intrafi/index.mjs.map +0 -1
  277. package/resources/intrafi/intrafi.d.ts +0 -24
  278. package/resources/intrafi/intrafi.d.ts.map +0 -1
  279. package/resources/intrafi/intrafi.js +0 -48
  280. package/resources/intrafi/intrafi.js.map +0 -1
  281. package/resources/intrafi/intrafi.mjs +0 -21
  282. package/resources/intrafi/intrafi.mjs.map +0 -1
  283. package/resources/simulations/cards.d.ts +0 -1763
  284. package/resources/simulations/cards.d.ts.map +0 -1
  285. package/resources/simulations/cards.js.map +0 -1
  286. package/resources/simulations/cards.mjs.map +0 -1
  287. package/resources/simulations/inbound-international-ach-transfers.d.ts +0 -285
  288. package/resources/simulations/inbound-international-ach-transfers.d.ts.map +0 -1
  289. package/resources/simulations/inbound-international-ach-transfers.js +0 -21
  290. package/resources/simulations/inbound-international-ach-transfers.js.map +0 -1
  291. package/resources/simulations/inbound-international-ach-transfers.mjs +0 -17
  292. package/resources/simulations/inbound-international-ach-transfers.mjs.map +0 -1
  293. package/src/resources/entities/beneficial-owners.ts +0 -346
  294. package/src/resources/entities/index.ts +0 -25
  295. package/src/resources/entities/industry-code.ts +0 -33
  296. package/src/resources/intrafi/index.ts +0 -18
  297. package/src/resources/intrafi/intrafi.ts +0 -29
  298. package/src/resources/simulations/cards.ts +0 -2188
  299. package/src/resources/simulations/inbound-international-ach-transfers.ts +0 -367
@@ -0,0 +1,124 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../resource';
4
+ import * as Core from '../../core';
5
+ import * as SimulationsInboundACHTransfersAPI from './inbound-ach-transfers';
6
+ import * as InboundACHTransfersAPI from '../inbound-ach-transfers';
7
+
8
+ export class InboundACHTransfers extends APIResource {
9
+ /**
10
+ * Simulates an inbound ACH transfer to your account. This imitates initiating a
11
+ * transfer to an Increase account from a different financial institution. The
12
+ * transfer may be either a credit or a debit depending on if the `amount` is
13
+ * positive or negative. The result of calling this API will contain the created
14
+ * transfer. You can pass a `resolve_at` parameter to allow for a window to
15
+ * [action on the Inbound ACH Transfer](https://increase.com/documentation/receiving-ach-transfers).
16
+ * Alternatively, if you don't pass the `resolve_at` parameter the result will
17
+ * contain either a [Transaction](#transactions) or a
18
+ * [Declined Transaction](#declined-transactions) depending on whether or not the
19
+ * transfer is allowed.
20
+ */
21
+ create(
22
+ body: InboundACHTransferCreateParams,
23
+ options?: Core.RequestOptions,
24
+ ): Core.APIPromise<InboundACHTransfersAPI.InboundACHTransfer> {
25
+ return this._client.post('/simulations/inbound_ach_transfers', { body, ...options });
26
+ }
27
+ }
28
+
29
+ export interface InboundACHTransferCreateParams {
30
+ /**
31
+ * The identifier of the Account Number the inbound ACH Transfer is for.
32
+ */
33
+ account_number_id: string;
34
+
35
+ /**
36
+ * The transfer amount in cents. A positive amount originates a credit transfer
37
+ * pushing funds to the receiving account. A negative amount originates a debit
38
+ * transfer pulling funds from the receiving account.
39
+ */
40
+ amount: number;
41
+
42
+ /**
43
+ * The description of the date of the transfer.
44
+ */
45
+ company_descriptive_date?: string;
46
+
47
+ /**
48
+ * Data associated with the transfer set by the sender.
49
+ */
50
+ company_discretionary_data?: string;
51
+
52
+ /**
53
+ * The description of the transfer set by the sender.
54
+ */
55
+ company_entry_description?: string;
56
+
57
+ /**
58
+ * The sender's company ID.
59
+ */
60
+ company_id?: string;
61
+
62
+ /**
63
+ * The name of the sender.
64
+ */
65
+ company_name?: string;
66
+
67
+ /**
68
+ * The ID of the receiver of the transfer.
69
+ */
70
+ receiver_id_number?: string;
71
+
72
+ /**
73
+ * The name of the receiver of the transfer.
74
+ */
75
+ receiver_name?: string;
76
+
77
+ /**
78
+ * The time at which the transfer should be resolved. If not provided will resolve
79
+ * immediately.
80
+ */
81
+ resolve_at?: string;
82
+
83
+ /**
84
+ * The standard entry class code for the transfer.
85
+ *
86
+ * - `corporate_credit_or_debit` - Corporate Credit and Debit (CCD).
87
+ * - `corporate_trade_exchange` - Corporate Trade Exchange (CTX).
88
+ * - `prearranged_payments_and_deposit` - Prearranged Payments and Deposits (PPD).
89
+ * - `internet_initiated` - Internet Initiated (WEB).
90
+ * - `point_of_sale` - Point of Sale (POS).
91
+ * - `telephone_initiated` - Telephone Initiated (TEL).
92
+ * - `customer_initiated` - Customer Initiated (CIE).
93
+ * - `accounts_receivable` - Accounts Receivable (ARC).
94
+ * - `machine_transfer` - Machine Transfer (MTE).
95
+ * - `shared_network_transaction` - Shared Network Transaction (SHR).
96
+ * - `represented_check` - Represented Check (RCK).
97
+ * - `back_office_conversion` - Back Office Conversion (BOC).
98
+ * - `point_of_purchase` - Point of Purchase (POP).
99
+ * - `check_truncation` - Check Truncation (TRC).
100
+ * - `destroyed_check` - Destroyed Check (XCK).
101
+ * - `international_ach_transaction` - International ACH Transaction (IAT).
102
+ */
103
+ standard_entry_class_code?:
104
+ | 'corporate_credit_or_debit'
105
+ | 'corporate_trade_exchange'
106
+ | 'prearranged_payments_and_deposit'
107
+ | 'internet_initiated'
108
+ | 'point_of_sale'
109
+ | 'telephone_initiated'
110
+ | 'customer_initiated'
111
+ | 'accounts_receivable'
112
+ | 'machine_transfer'
113
+ | 'shared_network_transaction'
114
+ | 'represented_check'
115
+ | 'back_office_conversion'
116
+ | 'point_of_purchase'
117
+ | 'check_truncation'
118
+ | 'destroyed_check'
119
+ | 'international_ach_transaction';
120
+ }
121
+
122
+ export namespace InboundACHTransfers {
123
+ export import InboundACHTransferCreateParams = SimulationsInboundACHTransfersAPI.InboundACHTransferCreateParams;
124
+ }
@@ -0,0 +1,89 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../resource';
4
+ import * as Core from '../../core';
5
+ import * as InboundRealTimePaymentsTransfersAPI from './inbound-real-time-payments-transfers';
6
+ import * as DeclinedTransactionsAPI from '../declined-transactions';
7
+ import * as TransactionsAPI from '../transactions';
8
+
9
+ export class InboundRealTimePaymentsTransfers extends APIResource {
10
+ /**
11
+ * Simulates an inbound Real-Time Payments transfer to your account. Real-Time
12
+ * Payments are a beta feature.
13
+ */
14
+ create(
15
+ body: InboundRealTimePaymentsTransferCreateParams,
16
+ options?: Core.RequestOptions,
17
+ ): Core.APIPromise<InboundRealTimePaymentsTransferCreateResponse> {
18
+ return this._client.post('/simulations/inbound_real_time_payments_transfers', { body, ...options });
19
+ }
20
+ }
21
+
22
+ /**
23
+ * The results of an inbound Real-Time Payments Transfer simulation.
24
+ */
25
+ export interface InboundRealTimePaymentsTransferCreateResponse {
26
+ /**
27
+ * If the Real-Time Payments Transfer attempt fails, this will contain the
28
+ * resulting [Declined Transaction](#declined-transactions) object. The Declined
29
+ * Transaction's `source` will be of
30
+ * `category: inbound_real_time_payments_transfer_decline`.
31
+ */
32
+ declined_transaction: DeclinedTransactionsAPI.DeclinedTransaction | null;
33
+
34
+ /**
35
+ * If the Real-Time Payments Transfer attempt succeeds, this will contain the
36
+ * resulting [Transaction](#transactions) object. The Transaction's `source` will
37
+ * be of `category: inbound_real_time_payments_transfer_confirmation`.
38
+ */
39
+ transaction: TransactionsAPI.Transaction | null;
40
+
41
+ /**
42
+ * A constant representing the object's type. For this resource it will always be
43
+ * `inbound_real_time_payments_transfer_simulation_result`.
44
+ */
45
+ type: 'inbound_real_time_payments_transfer_simulation_result';
46
+ }
47
+
48
+ export interface InboundRealTimePaymentsTransferCreateParams {
49
+ /**
50
+ * The identifier of the Account Number the inbound Real-Time Payments Transfer is
51
+ * for.
52
+ */
53
+ account_number_id: string;
54
+
55
+ /**
56
+ * The transfer amount in USD cents. Must be positive.
57
+ */
58
+ amount: number;
59
+
60
+ /**
61
+ * The account number of the account that sent the transfer.
62
+ */
63
+ debtor_account_number?: string;
64
+
65
+ /**
66
+ * The name provided by the sender of the transfer.
67
+ */
68
+ debtor_name?: string;
69
+
70
+ /**
71
+ * The routing number of the account that sent the transfer.
72
+ */
73
+ debtor_routing_number?: string;
74
+
75
+ /**
76
+ * Additional information included with the transfer.
77
+ */
78
+ remittance_information?: string;
79
+
80
+ /**
81
+ * The identifier of a pending Request for Payment that this transfer will fulfill.
82
+ */
83
+ request_for_payment_id?: string;
84
+ }
85
+
86
+ export namespace InboundRealTimePaymentsTransfers {
87
+ export import InboundRealTimePaymentsTransferCreateResponse = InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransferCreateResponse;
88
+ export import InboundRealTimePaymentsTransferCreateParams = InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransferCreateParams;
89
+ }
@@ -0,0 +1,124 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../resource';
4
+ import * as Core from '../../core';
5
+ import * as SimulationsInboundWireTransfersAPI from './inbound-wire-transfers';
6
+ import * as InboundWireTransfersAPI from '../inbound-wire-transfers';
7
+
8
+ export class InboundWireTransfers extends APIResource {
9
+ /**
10
+ * Simulates an inbound Wire Transfer to your account.
11
+ */
12
+ create(
13
+ body: InboundWireTransferCreateParams,
14
+ options?: Core.RequestOptions,
15
+ ): Core.APIPromise<InboundWireTransfersAPI.InboundWireTransfer> {
16
+ return this._client.post('/simulations/inbound_wire_transfers', { body, ...options });
17
+ }
18
+ }
19
+
20
+ export interface InboundWireTransferCreateParams {
21
+ /**
22
+ * The identifier of the Account Number the inbound Wire Transfer is for.
23
+ */
24
+ account_number_id: string;
25
+
26
+ /**
27
+ * The transfer amount in cents. Must be positive.
28
+ */
29
+ amount: number;
30
+
31
+ /**
32
+ * The sending bank will set beneficiary_address_line1 in production. You can
33
+ * simulate any value here.
34
+ */
35
+ beneficiary_address_line1?: string;
36
+
37
+ /**
38
+ * The sending bank will set beneficiary_address_line2 in production. You can
39
+ * simulate any value here.
40
+ */
41
+ beneficiary_address_line2?: string;
42
+
43
+ /**
44
+ * The sending bank will set beneficiary_address_line3 in production. You can
45
+ * simulate any value here.
46
+ */
47
+ beneficiary_address_line3?: string;
48
+
49
+ /**
50
+ * The sending bank will set beneficiary_name in production. You can simulate any
51
+ * value here.
52
+ */
53
+ beneficiary_name?: string;
54
+
55
+ /**
56
+ * The sending bank will set beneficiary_reference in production. You can simulate
57
+ * any value here.
58
+ */
59
+ beneficiary_reference?: string;
60
+
61
+ /**
62
+ * The sending bank will set originator_address_line1 in production. You can
63
+ * simulate any value here.
64
+ */
65
+ originator_address_line1?: string;
66
+
67
+ /**
68
+ * The sending bank will set originator_address_line2 in production. You can
69
+ * simulate any value here.
70
+ */
71
+ originator_address_line2?: string;
72
+
73
+ /**
74
+ * The sending bank will set originator_address_line3 in production. You can
75
+ * simulate any value here.
76
+ */
77
+ originator_address_line3?: string;
78
+
79
+ /**
80
+ * The sending bank will set originator_name in production. You can simulate any
81
+ * value here.
82
+ */
83
+ originator_name?: string;
84
+
85
+ /**
86
+ * The sending bank will set originator_routing_number in production. You can
87
+ * simulate any value here.
88
+ */
89
+ originator_routing_number?: string;
90
+
91
+ /**
92
+ * The sending bank will set originator_to_beneficiary_information_line1 in
93
+ * production. You can simulate any value here.
94
+ */
95
+ originator_to_beneficiary_information_line1?: string;
96
+
97
+ /**
98
+ * The sending bank will set originator_to_beneficiary_information_line2 in
99
+ * production. You can simulate any value here.
100
+ */
101
+ originator_to_beneficiary_information_line2?: string;
102
+
103
+ /**
104
+ * The sending bank will set originator_to_beneficiary_information_line3 in
105
+ * production. You can simulate any value here.
106
+ */
107
+ originator_to_beneficiary_information_line3?: string;
108
+
109
+ /**
110
+ * The sending bank will set originator_to_beneficiary_information_line4 in
111
+ * production. You can simulate any value here.
112
+ */
113
+ originator_to_beneficiary_information_line4?: string;
114
+
115
+ /**
116
+ * The sending bank will set sender_reference in production. You can simulate any
117
+ * value here.
118
+ */
119
+ sender_reference?: string;
120
+ }
121
+
122
+ export namespace InboundWireTransfers {
123
+ export import InboundWireTransferCreateParams = SimulationsInboundWireTransfersAPI.InboundWireTransferCreateParams;
124
+ }
@@ -1,16 +1,27 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export {
4
- ACHTransferCreateInboundParams,
5
- ACHTransferNotificationOfChangeParams,
4
+ ACHTransferCreateNotificationOfChangeParams,
6
5
  ACHTransferReturnParams,
7
6
  ACHTransfers,
8
7
  } from './ach-transfers';
9
8
  export { AccountStatementCreateParams, AccountStatements } from './account-statements';
10
9
  export { AccountTransfers } from './account-transfers';
11
- export { CardAuthorizationSimulation, CardAuthorizeParams, CardSettlementParams, Cards } from './cards';
10
+ export {
11
+ CardAuthorizationCreateResponse,
12
+ CardAuthorizationCreateParams,
13
+ CardAuthorizations,
14
+ } from './card-authorizations';
15
+ export {
16
+ CardAuthorizationExpirationCreateParams,
17
+ CardAuthorizationExpirations,
18
+ } from './card-authorization-expirations';
12
19
  export { CardDisputeActionParams, CardDisputes } from './card-disputes';
20
+ export { CardFuelConfirmationCreateParams, CardFuelConfirmations } from './card-fuel-confirmations';
21
+ export { CardIncrementCreateParams, CardIncrements } from './card-increments';
13
22
  export { CardRefundCreateParams, CardRefunds } from './card-refunds';
23
+ export { CardReversalCreateParams, CardReversals } from './card-reversals';
24
+ export { CardSettlementCreateParams, CardSettlements } from './card-settlements';
14
25
  export { CheckDeposits } from './check-deposits';
15
26
  export { CheckTransfers } from './check-transfers';
16
27
  export {
@@ -19,31 +30,25 @@ export {
19
30
  DigitalWalletTokenRequests,
20
31
  } from './digital-wallet-token-requests';
21
32
  export { DocumentCreateParams, Documents } from './documents';
33
+ export { InboundACHTransferCreateParams, InboundACHTransfers } from './inbound-ach-transfers';
22
34
  export { InboundCheckDepositCreateParams, InboundCheckDeposits } from './inbound-check-deposits';
23
35
  export { InboundFundsHoldReleaseResponse, InboundFundsHolds } from './inbound-funds-holds';
24
36
  export {
25
- InboundInternationalACHTransfer,
26
- InboundInternationalACHTransferCreateParams,
27
- InboundInternationalACHTransfers,
28
- } from './inbound-international-ach-transfers';
29
- export {
30
- InboundRealTimePaymentsTransferSimulationResult,
31
- RealTimePaymentsTransferCompleteParams,
32
- RealTimePaymentsTransferCreateInboundParams,
33
- RealTimePaymentsTransfers,
34
- } from './real-time-payments-transfers';
37
+ InboundRealTimePaymentsTransferCreateResponse,
38
+ InboundRealTimePaymentsTransferCreateParams,
39
+ InboundRealTimePaymentsTransfers,
40
+ } from './inbound-real-time-payments-transfers';
35
41
  export {
36
42
  InboundWireDrawdownRequestCreateParams,
37
43
  InboundWireDrawdownRequests,
38
44
  } from './inbound-wire-drawdown-requests';
45
+ export { InboundWireTransferCreateParams, InboundWireTransfers } from './inbound-wire-transfers';
39
46
  export { InterestPaymentCreateParams, InterestPayments } from './interest-payments';
40
- export { PhysicalCardShipmentAdvanceParams, PhysicalCards } from './physical-cards';
47
+ export { PhysicalCardAdvanceShipmentParams, PhysicalCards } from './physical-cards';
41
48
  export { ProgramCreateParams, Programs } from './programs';
42
49
  export {
43
- SimulationCardAuthorizationExpirationsParams,
44
- SimulationCardFuelConfirmationsParams,
45
- SimulationCardIncrementsParams,
46
- SimulationCardReversalsParams,
47
- Simulations,
48
- } from './simulations';
49
- export { WireTransferCreateInboundParams, WireTransfers } from './wire-transfers';
50
+ RealTimePaymentsTransferCompleteParams,
51
+ RealTimePaymentsTransfers,
52
+ } from './real-time-payments-transfers';
53
+ export { Simulations } from './simulations';
54
+ export { WireTransfers } from './wire-transfers';
@@ -14,7 +14,7 @@ export class InterestPayments extends APIResource {
14
14
  body: InterestPaymentCreateParams,
15
15
  options?: Core.RequestOptions,
16
16
  ): Core.APIPromise<TransactionsAPI.Transaction> {
17
- return this._client.post('/simulations/interest_payment', { body, ...options });
17
+ return this._client.post('/simulations/interest_payments', { body, ...options });
18
18
  }
19
19
  }
20
20
 
@@ -11,19 +11,19 @@ export class PhysicalCards extends APIResource {
11
11
  * Card, to simulate e.g., that a physical card was attempted shipped but then
12
12
  * failed delivery.
13
13
  */
14
- shipmentAdvance(
14
+ advanceShipment(
15
15
  physicalCardId: string,
16
- body: PhysicalCardShipmentAdvanceParams,
16
+ body: PhysicalCardAdvanceShipmentParams,
17
17
  options?: Core.RequestOptions,
18
18
  ): Core.APIPromise<PhysicalCardsAPI.PhysicalCard> {
19
- return this._client.post(`/simulations/physical_cards/${physicalCardId}/shipment_advance`, {
19
+ return this._client.post(`/simulations/physical_cards/${physicalCardId}/advance_shipment`, {
20
20
  body,
21
21
  ...options,
22
22
  });
23
23
  }
24
24
  }
25
25
 
26
- export interface PhysicalCardShipmentAdvanceParams {
26
+ export interface PhysicalCardAdvanceShipmentParams {
27
27
  /**
28
28
  * The shipment status to move the Physical Card to.
29
29
  *
@@ -50,5 +50,5 @@ export interface PhysicalCardShipmentAdvanceParams {
50
50
  }
51
51
 
52
52
  export namespace PhysicalCards {
53
- export import PhysicalCardShipmentAdvanceParams = SimulationsPhysicalCardsAPI.PhysicalCardShipmentAdvanceParams;
53
+ export import PhysicalCardAdvanceShipmentParams = SimulationsPhysicalCardsAPI.PhysicalCardAdvanceShipmentParams;
54
54
  }