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 @@
1
+ {"version":3,"file":"card-authorizations.mjs","sourceRoot":"","sources":["../../src/resources/simulations/card-authorizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;OAQG;IACH,MAAM,CACJ,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AAoFD,WAAiB,kBAAkB;AAGnC,CAAC,EAHgB,kBAAkB,KAAlB,kBAAkB,QAGlC"}
@@ -0,0 +1,27 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as CardFuelConfirmationsAPI from "./card-fuel-confirmations.js";
4
+ import * as CardPaymentsAPI from "../card-payments.js";
5
+ export declare class CardFuelConfirmations extends APIResource {
6
+ /**
7
+ * Simulates the fuel confirmation of an authorization by a card acquirer. This
8
+ * happens asynchronously right after a fuel pump transaction is completed. A fuel
9
+ * confirmation can only happen once per authorization.
10
+ */
11
+ create(body: CardFuelConfirmationCreateParams, options?: Core.RequestOptions): Core.APIPromise<CardPaymentsAPI.CardPayment>;
12
+ }
13
+ export interface CardFuelConfirmationCreateParams {
14
+ /**
15
+ * The amount of the fuel_confirmation in minor units in the card authorization's
16
+ * currency.
17
+ */
18
+ amount: number;
19
+ /**
20
+ * The identifier of the Card Payment to create a fuel_confirmation on.
21
+ */
22
+ card_payment_id: string;
23
+ }
24
+ export declare namespace CardFuelConfirmations {
25
+ export import CardFuelConfirmationCreateParams = CardFuelConfirmationsAPI.CardFuelConfirmationCreateParams;
26
+ }
27
+ //# sourceMappingURL=card-fuel-confirmations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-fuel-confirmations.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/card-fuel-confirmations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,wBAAwB,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,eAAe,MAAM,kBAAkB,CAAC;AAEpD,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;OAIG;IACH,MAAM,CACJ,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,WAAW,CAAC;CAGhD;AAED,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,yBAAiB,qBAAqB,CAAC;IACrC,MAAM,QAAQ,gCAAgC,GAAG,wBAAwB,CAAC,gCAAgC,CAAC;CAC5G"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CardFuelConfirmations = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class CardFuelConfirmations extends resource_1.APIResource {
7
+ /**
8
+ * Simulates the fuel confirmation of an authorization by a card acquirer. This
9
+ * happens asynchronously right after a fuel pump transaction is completed. A fuel
10
+ * confirmation can only happen once per authorization.
11
+ */
12
+ create(body, options) {
13
+ return this._client.post('/simulations/card_fuel_confirmations', { body, ...options });
14
+ }
15
+ }
16
+ exports.CardFuelConfirmations = CardFuelConfirmations;
17
+ (function (CardFuelConfirmations) {
18
+ })(CardFuelConfirmations = exports.CardFuelConfirmations || (exports.CardFuelConfirmations = {}));
19
+ //# sourceMappingURL=card-fuel-confirmations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-fuel-confirmations.js","sourceRoot":"","sources":["../../src/resources/simulations/card-fuel-confirmations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAK7C,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;;;OAIG;IACH,MAAM,CACJ,IAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AAZD,sDAYC;AAeD,WAAiB,qBAAqB;AAEtC,CAAC,EAFgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAErC"}
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class CardFuelConfirmations extends APIResource {
4
+ /**
5
+ * Simulates the fuel confirmation of an authorization by a card acquirer. This
6
+ * happens asynchronously right after a fuel pump transaction is completed. A fuel
7
+ * confirmation can only happen once per authorization.
8
+ */
9
+ create(body, options) {
10
+ return this._client.post('/simulations/card_fuel_confirmations', { body, ...options });
11
+ }
12
+ }
13
+ (function (CardFuelConfirmations) {
14
+ })(CardFuelConfirmations || (CardFuelConfirmations = {}));
15
+ //# sourceMappingURL=card-fuel-confirmations.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-fuel-confirmations.mjs","sourceRoot":"","sources":["../../src/resources/simulations/card-fuel-confirmations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;;;OAIG;IACH,MAAM,CACJ,IAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AAeD,WAAiB,qBAAqB;AAEtC,CAAC,EAFgB,qBAAqB,KAArB,qBAAqB,QAErC"}
@@ -0,0 +1,32 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as CardIncrementsAPI from "./card-increments.js";
4
+ import * as CardPaymentsAPI from "../card-payments.js";
5
+ export declare class CardIncrements extends APIResource {
6
+ /**
7
+ * Simulates the increment of an authorization by a card acquirer. An authorization
8
+ * can be incremented multiple times.
9
+ */
10
+ create(body: CardIncrementCreateParams, options?: Core.RequestOptions): Core.APIPromise<CardPaymentsAPI.CardPayment>;
11
+ }
12
+ export interface CardIncrementCreateParams {
13
+ /**
14
+ * The amount of the increment in minor units in the card authorization's currency.
15
+ */
16
+ amount: number;
17
+ /**
18
+ * The identifier of the Card Payment to create a increment on.
19
+ */
20
+ card_payment_id: string;
21
+ /**
22
+ * The identifier of the Event Subscription to use. If provided, will override the
23
+ * default real time event subscription. Because you can only create one real time
24
+ * decision event subscription, you can use this field to route events to any
25
+ * specified event subscription for testing purposes.
26
+ */
27
+ event_subscription_id?: string;
28
+ }
29
+ export declare namespace CardIncrements {
30
+ export import CardIncrementCreateParams = CardIncrementsAPI.CardIncrementCreateParams;
31
+ }
32
+ //# sourceMappingURL=card-increments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-increments.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/card-increments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,iBAAiB,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,eAAe,MAAM,kBAAkB,CAAC;AAEpD,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,WAAW,CAAC;CAGhD;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,yBAAiB,cAAc,CAAC;IAC9B,MAAM,QAAQ,yBAAyB,GAAG,iBAAiB,CAAC,yBAAyB,CAAC;CACvF"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CardIncrements = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class CardIncrements extends resource_1.APIResource {
7
+ /**
8
+ * Simulates the increment of an authorization by a card acquirer. An authorization
9
+ * can be incremented multiple times.
10
+ */
11
+ create(body, options) {
12
+ return this._client.post('/simulations/card_increments', { body, ...options });
13
+ }
14
+ }
15
+ exports.CardIncrements = CardIncrements;
16
+ (function (CardIncrements) {
17
+ })(CardIncrements = exports.CardIncrements || (exports.CardIncrements = {}));
18
+ //# sourceMappingURL=card-increments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-increments.js","sourceRoot":"","sources":["../../src/resources/simulations/card-increments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAK7C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAXD,wCAWC;AAsBD,WAAiB,cAAc;AAE/B,CAAC,EAFgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAE9B"}
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class CardIncrements extends APIResource {
4
+ /**
5
+ * Simulates the increment of an authorization by a card acquirer. An authorization
6
+ * can be incremented multiple times.
7
+ */
8
+ create(body, options) {
9
+ return this._client.post('/simulations/card_increments', { body, ...options });
10
+ }
11
+ }
12
+ (function (CardIncrements) {
13
+ })(CardIncrements || (CardIncrements = {}));
14
+ //# sourceMappingURL=card-increments.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-increments.mjs","sourceRoot":"","sources":["../../src/resources/simulations/card-increments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAsBD,WAAiB,cAAc;AAE/B,CAAC,EAFgB,cAAc,KAAd,cAAc,QAE9B"}
@@ -0,0 +1,28 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as CardReversalsAPI from "./card-reversals.js";
4
+ import * as CardPaymentsAPI from "../card-payments.js";
5
+ export declare class CardReversals extends APIResource {
6
+ /**
7
+ * Simulates the reversal of an authorization by a card acquirer. An authorization
8
+ * can be partially reversed multiple times, up until the total authorized amount.
9
+ * Marks the pending transaction as complete if the authorization is fully
10
+ * reversed.
11
+ */
12
+ create(body: CardReversalCreateParams, options?: Core.RequestOptions): Core.APIPromise<CardPaymentsAPI.CardPayment>;
13
+ }
14
+ export interface CardReversalCreateParams {
15
+ /**
16
+ * The identifier of the Card Payment to create a reversal on.
17
+ */
18
+ card_payment_id: string;
19
+ /**
20
+ * The amount of the reversal in minor units in the card authorization's currency.
21
+ * This defaults to the authorization amount.
22
+ */
23
+ amount?: number;
24
+ }
25
+ export declare namespace CardReversals {
26
+ export import CardReversalCreateParams = CardReversalsAPI.CardReversalCreateParams;
27
+ }
28
+ //# sourceMappingURL=card-reversals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-reversals.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/card-reversals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,gBAAgB,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,eAAe,MAAM,kBAAkB,CAAC;AAEpD,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;OAKG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,WAAW,CAAC;CAGhD;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,aAAa,CAAC;IAC7B,MAAM,QAAQ,wBAAwB,GAAG,gBAAgB,CAAC,wBAAwB,CAAC;CACpF"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CardReversals = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class CardReversals extends resource_1.APIResource {
7
+ /**
8
+ * Simulates the reversal of an authorization by a card acquirer. An authorization
9
+ * can be partially reversed multiple times, up until the total authorized amount.
10
+ * Marks the pending transaction as complete if the authorization is fully
11
+ * reversed.
12
+ */
13
+ create(body, options) {
14
+ return this._client.post('/simulations/card_reversals', { body, ...options });
15
+ }
16
+ }
17
+ exports.CardReversals = CardReversals;
18
+ (function (CardReversals) {
19
+ })(CardReversals = exports.CardReversals || (exports.CardReversals = {}));
20
+ //# sourceMappingURL=card-reversals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-reversals.js","sourceRoot":"","sources":["../../src/resources/simulations/card-reversals.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAK7C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;OAKG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AAbD,sCAaC;AAeD,WAAiB,aAAa;AAE9B,CAAC,EAFgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAE7B"}
@@ -0,0 +1,16 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class CardReversals extends APIResource {
4
+ /**
5
+ * Simulates the reversal of an authorization by a card acquirer. An authorization
6
+ * can be partially reversed multiple times, up until the total authorized amount.
7
+ * Marks the pending transaction as complete if the authorization is fully
8
+ * reversed.
9
+ */
10
+ create(body, options) {
11
+ return this._client.post('/simulations/card_reversals', { body, ...options });
12
+ }
13
+ }
14
+ (function (CardReversals) {
15
+ })(CardReversals || (CardReversals = {}));
16
+ //# sourceMappingURL=card-reversals.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-reversals.mjs","sourceRoot":"","sources":["../../src/resources/simulations/card-reversals.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;OAKG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AAeD,WAAiB,aAAa;AAE9B,CAAC,EAFgB,aAAa,KAAb,aAAa,QAE7B"}
@@ -0,0 +1,34 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as CardSettlementsAPI from "./card-settlements.js";
4
+ import * as TransactionsAPI from "../transactions.js";
5
+ export declare class CardSettlements extends APIResource {
6
+ /**
7
+ * Simulates the settlement of an authorization by a card acquirer. After a card
8
+ * authorization is created, the merchant will eventually send a settlement. This
9
+ * simulates that event, which may occur many days after the purchase in
10
+ * production. The amount settled can be different from the amount originally
11
+ * authorized, for example, when adding a tip to a restaurant bill.
12
+ */
13
+ create(body: CardSettlementCreateParams, options?: Core.RequestOptions): Core.APIPromise<TransactionsAPI.Transaction>;
14
+ }
15
+ export interface CardSettlementCreateParams {
16
+ /**
17
+ * The identifier of the Card to create a settlement on.
18
+ */
19
+ card_id: string;
20
+ /**
21
+ * The identifier of the Pending Transaction for the Card Authorization you wish to
22
+ * settle.
23
+ */
24
+ pending_transaction_id: string;
25
+ /**
26
+ * The amount to be settled. This defaults to the amount of the Pending Transaction
27
+ * being settled.
28
+ */
29
+ amount?: number;
30
+ }
31
+ export declare namespace CardSettlements {
32
+ export import CardSettlementCreateParams = CardSettlementsAPI.CardSettlementCreateParams;
33
+ }
34
+ //# sourceMappingURL=card-settlements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-settlements.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/card-settlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,kBAAkB,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,eAAe,MAAM,iBAAiB,CAAC;AAEnD,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;OAMG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,WAAW,CAAC;CAGhD;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,eAAe,CAAC;IAC/B,MAAM,QAAQ,0BAA0B,GAAG,kBAAkB,CAAC,0BAA0B,CAAC;CAC1F"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CardSettlements = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class CardSettlements extends resource_1.APIResource {
7
+ /**
8
+ * Simulates the settlement of an authorization by a card acquirer. After a card
9
+ * authorization is created, the merchant will eventually send a settlement. This
10
+ * simulates that event, which may occur many days after the purchase in
11
+ * production. The amount settled can be different from the amount originally
12
+ * authorized, for example, when adding a tip to a restaurant bill.
13
+ */
14
+ create(body, options) {
15
+ return this._client.post('/simulations/card_settlements', { body, ...options });
16
+ }
17
+ }
18
+ exports.CardSettlements = CardSettlements;
19
+ (function (CardSettlements) {
20
+ })(CardSettlements = exports.CardSettlements || (exports.CardSettlements = {}));
21
+ //# sourceMappingURL=card-settlements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-settlements.js","sourceRoot":"","sources":["../../src/resources/simulations/card-settlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAK7C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;OAMG;IACH,MAAM,CACJ,IAAgC,EAChC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAdD,0CAcC;AAqBD,WAAiB,eAAe;AAEhC,CAAC,EAFgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAE/B"}
@@ -0,0 +1,17 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class CardSettlements extends APIResource {
4
+ /**
5
+ * Simulates the settlement of an authorization by a card acquirer. After a card
6
+ * authorization is created, the merchant will eventually send a settlement. This
7
+ * simulates that event, which may occur many days after the purchase in
8
+ * production. The amount settled can be different from the amount originally
9
+ * authorized, for example, when adding a tip to a restaurant bill.
10
+ */
11
+ create(body, options) {
12
+ return this._client.post('/simulations/card_settlements', { body, ...options });
13
+ }
14
+ }
15
+ (function (CardSettlements) {
16
+ })(CardSettlements || (CardSettlements = {}));
17
+ //# sourceMappingURL=card-settlements.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-settlements.mjs","sourceRoot":"","sources":["../../src/resources/simulations/card-settlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;OAMG;IACH,MAAM,CACJ,IAAgC,EAChC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAqBD,WAAiB,eAAe;AAEhC,CAAC,EAFgB,eAAe,KAAf,eAAe,QAE/B"}
@@ -0,0 +1,89 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as SimulationsInboundACHTransfersAPI from "./inbound-ach-transfers.js";
4
+ import * as InboundACHTransfersAPI from "../inbound-ach-transfers.js";
5
+ export declare class InboundACHTransfers extends APIResource {
6
+ /**
7
+ * Simulates an inbound ACH transfer to your account. This imitates initiating a
8
+ * transfer to an Increase account from a different financial institution. The
9
+ * transfer may be either a credit or a debit depending on if the `amount` is
10
+ * positive or negative. The result of calling this API will contain the created
11
+ * transfer. You can pass a `resolve_at` parameter to allow for a window to
12
+ * [action on the Inbound ACH Transfer](https://increase.com/documentation/receiving-ach-transfers).
13
+ * Alternatively, if you don't pass the `resolve_at` parameter the result will
14
+ * contain either a [Transaction](#transactions) or a
15
+ * [Declined Transaction](#declined-transactions) depending on whether or not the
16
+ * transfer is allowed.
17
+ */
18
+ create(body: InboundACHTransferCreateParams, options?: Core.RequestOptions): Core.APIPromise<InboundACHTransfersAPI.InboundACHTransfer>;
19
+ }
20
+ export interface InboundACHTransferCreateParams {
21
+ /**
22
+ * The identifier of the Account Number the inbound ACH Transfer is for.
23
+ */
24
+ account_number_id: string;
25
+ /**
26
+ * The transfer amount in cents. A positive amount originates a credit transfer
27
+ * pushing funds to the receiving account. A negative amount originates a debit
28
+ * transfer pulling funds from the receiving account.
29
+ */
30
+ amount: number;
31
+ /**
32
+ * The description of the date of the transfer.
33
+ */
34
+ company_descriptive_date?: string;
35
+ /**
36
+ * Data associated with the transfer set by the sender.
37
+ */
38
+ company_discretionary_data?: string;
39
+ /**
40
+ * The description of the transfer set by the sender.
41
+ */
42
+ company_entry_description?: string;
43
+ /**
44
+ * The sender's company ID.
45
+ */
46
+ company_id?: string;
47
+ /**
48
+ * The name of the sender.
49
+ */
50
+ company_name?: string;
51
+ /**
52
+ * The ID of the receiver of the transfer.
53
+ */
54
+ receiver_id_number?: string;
55
+ /**
56
+ * The name of the receiver of the transfer.
57
+ */
58
+ receiver_name?: string;
59
+ /**
60
+ * The time at which the transfer should be resolved. If not provided will resolve
61
+ * immediately.
62
+ */
63
+ resolve_at?: string;
64
+ /**
65
+ * The standard entry class code for the transfer.
66
+ *
67
+ * - `corporate_credit_or_debit` - Corporate Credit and Debit (CCD).
68
+ * - `corporate_trade_exchange` - Corporate Trade Exchange (CTX).
69
+ * - `prearranged_payments_and_deposit` - Prearranged Payments and Deposits (PPD).
70
+ * - `internet_initiated` - Internet Initiated (WEB).
71
+ * - `point_of_sale` - Point of Sale (POS).
72
+ * - `telephone_initiated` - Telephone Initiated (TEL).
73
+ * - `customer_initiated` - Customer Initiated (CIE).
74
+ * - `accounts_receivable` - Accounts Receivable (ARC).
75
+ * - `machine_transfer` - Machine Transfer (MTE).
76
+ * - `shared_network_transaction` - Shared Network Transaction (SHR).
77
+ * - `represented_check` - Represented Check (RCK).
78
+ * - `back_office_conversion` - Back Office Conversion (BOC).
79
+ * - `point_of_purchase` - Point of Purchase (POP).
80
+ * - `check_truncation` - Check Truncation (TRC).
81
+ * - `destroyed_check` - Destroyed Check (XCK).
82
+ * - `international_ach_transaction` - International ACH Transaction (IAT).
83
+ */
84
+ standard_entry_class_code?: 'corporate_credit_or_debit' | 'corporate_trade_exchange' | 'prearranged_payments_and_deposit' | 'internet_initiated' | 'point_of_sale' | 'telephone_initiated' | 'customer_initiated' | 'accounts_receivable' | 'machine_transfer' | 'shared_network_transaction' | 'represented_check' | 'back_office_conversion' | 'point_of_purchase' | 'check_truncation' | 'destroyed_check' | 'international_ach_transaction';
85
+ }
86
+ export declare namespace InboundACHTransfers {
87
+ export import InboundACHTransferCreateParams = SimulationsInboundACHTransfersAPI.InboundACHTransferCreateParams;
88
+ }
89
+ //# sourceMappingURL=inbound-ach-transfers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inbound-ach-transfers.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/inbound-ach-transfers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,iCAAiC,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,sBAAsB,MAAM,0BAA0B,CAAC;AAEnE,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,kBAAkB,CAAC;CAG9D;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,yBAAyB,CAAC,EACtB,2BAA2B,GAC3B,0BAA0B,GAC1B,kCAAkC,GAClC,oBAAoB,GACpB,eAAe,GACf,qBAAqB,GACrB,oBAAoB,GACpB,qBAAqB,GACrB,kBAAkB,GAClB,4BAA4B,GAC5B,mBAAmB,GACnB,wBAAwB,GACxB,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,+BAA+B,CAAC;CACrC;AAED,yBAAiB,mBAAmB,CAAC;IACnC,MAAM,QAAQ,8BAA8B,GAAG,iCAAiC,CAAC,8BAA8B,CAAC;CACjH"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.InboundACHTransfers = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class InboundACHTransfers extends resource_1.APIResource {
7
+ /**
8
+ * Simulates an inbound ACH transfer to your account. This imitates initiating a
9
+ * transfer to an Increase account from a different financial institution. The
10
+ * transfer may be either a credit or a debit depending on if the `amount` is
11
+ * positive or negative. The result of calling this API will contain the created
12
+ * transfer. You can pass a `resolve_at` parameter to allow for a window to
13
+ * [action on the Inbound ACH Transfer](https://increase.com/documentation/receiving-ach-transfers).
14
+ * Alternatively, if you don't pass the `resolve_at` parameter the result will
15
+ * contain either a [Transaction](#transactions) or a
16
+ * [Declined Transaction](#declined-transactions) depending on whether or not the
17
+ * transfer is allowed.
18
+ */
19
+ create(body, options) {
20
+ return this._client.post('/simulations/inbound_ach_transfers', { body, ...options });
21
+ }
22
+ }
23
+ exports.InboundACHTransfers = InboundACHTransfers;
24
+ (function (InboundACHTransfers) {
25
+ })(InboundACHTransfers = exports.InboundACHTransfers || (exports.InboundACHTransfers = {}));
26
+ //# sourceMappingURL=inbound-ach-transfers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inbound-ach-transfers.js","sourceRoot":"","sources":["../../src/resources/simulations/inbound-ach-transfers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAK7C,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AAnBD,kDAmBC;AA+FD,WAAiB,mBAAmB;AAEpC,CAAC,EAFgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAEnC"}
@@ -0,0 +1,22 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class InboundACHTransfers extends APIResource {
4
+ /**
5
+ * Simulates an inbound ACH transfer to your account. This imitates initiating a
6
+ * transfer to an Increase account from a different financial institution. The
7
+ * transfer may be either a credit or a debit depending on if the `amount` is
8
+ * positive or negative. The result of calling this API will contain the created
9
+ * transfer. You can pass a `resolve_at` parameter to allow for a window to
10
+ * [action on the Inbound ACH Transfer](https://increase.com/documentation/receiving-ach-transfers).
11
+ * Alternatively, if you don't pass the `resolve_at` parameter the result will
12
+ * contain either a [Transaction](#transactions) or a
13
+ * [Declined Transaction](#declined-transactions) depending on whether or not the
14
+ * transfer is allowed.
15
+ */
16
+ create(body, options) {
17
+ return this._client.post('/simulations/inbound_ach_transfers', { body, ...options });
18
+ }
19
+ }
20
+ (function (InboundACHTransfers) {
21
+ })(InboundACHTransfers || (InboundACHTransfers = {}));
22
+ //# sourceMappingURL=inbound-ach-transfers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inbound-ach-transfers.mjs","sourceRoot":"","sources":["../../src/resources/simulations/inbound-ach-transfers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AA+FD,WAAiB,mBAAmB;AAEpC,CAAC,EAFgB,mBAAmB,KAAnB,mBAAmB,QAEnC"}
@@ -0,0 +1,71 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as InboundRealTimePaymentsTransfersAPI from "./inbound-real-time-payments-transfers.js";
4
+ import * as DeclinedTransactionsAPI from "../declined-transactions.js";
5
+ import * as TransactionsAPI from "../transactions.js";
6
+ export declare class InboundRealTimePaymentsTransfers extends APIResource {
7
+ /**
8
+ * Simulates an inbound Real-Time Payments transfer to your account. Real-Time
9
+ * Payments are a beta feature.
10
+ */
11
+ create(body: InboundRealTimePaymentsTransferCreateParams, options?: Core.RequestOptions): Core.APIPromise<InboundRealTimePaymentsTransferCreateResponse>;
12
+ }
13
+ /**
14
+ * The results of an inbound Real-Time Payments Transfer simulation.
15
+ */
16
+ export interface InboundRealTimePaymentsTransferCreateResponse {
17
+ /**
18
+ * If the Real-Time Payments Transfer attempt fails, this will contain the
19
+ * resulting [Declined Transaction](#declined-transactions) object. The Declined
20
+ * Transaction's `source` will be of
21
+ * `category: inbound_real_time_payments_transfer_decline`.
22
+ */
23
+ declined_transaction: DeclinedTransactionsAPI.DeclinedTransaction | null;
24
+ /**
25
+ * If the Real-Time Payments Transfer attempt succeeds, this will contain the
26
+ * resulting [Transaction](#transactions) object. The Transaction's `source` will
27
+ * be of `category: inbound_real_time_payments_transfer_confirmation`.
28
+ */
29
+ transaction: TransactionsAPI.Transaction | null;
30
+ /**
31
+ * A constant representing the object's type. For this resource it will always be
32
+ * `inbound_real_time_payments_transfer_simulation_result`.
33
+ */
34
+ type: 'inbound_real_time_payments_transfer_simulation_result';
35
+ }
36
+ export interface InboundRealTimePaymentsTransferCreateParams {
37
+ /**
38
+ * The identifier of the Account Number the inbound Real-Time Payments Transfer is
39
+ * for.
40
+ */
41
+ account_number_id: string;
42
+ /**
43
+ * The transfer amount in USD cents. Must be positive.
44
+ */
45
+ amount: number;
46
+ /**
47
+ * The account number of the account that sent the transfer.
48
+ */
49
+ debtor_account_number?: string;
50
+ /**
51
+ * The name provided by the sender of the transfer.
52
+ */
53
+ debtor_name?: string;
54
+ /**
55
+ * The routing number of the account that sent the transfer.
56
+ */
57
+ debtor_routing_number?: string;
58
+ /**
59
+ * Additional information included with the transfer.
60
+ */
61
+ remittance_information?: string;
62
+ /**
63
+ * The identifier of a pending Request for Payment that this transfer will fulfill.
64
+ */
65
+ request_for_payment_id?: string;
66
+ }
67
+ export declare namespace InboundRealTimePaymentsTransfers {
68
+ export import InboundRealTimePaymentsTransferCreateResponse = InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransferCreateResponse;
69
+ export import InboundRealTimePaymentsTransferCreateParams = InboundRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransferCreateParams;
70
+ }
71
+ //# sourceMappingURL=inbound-real-time-payments-transfers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inbound-real-time-payments-transfers.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/inbound-real-time-payments-transfers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,mCAAmC,MAAM,wCAAwC,CAAC;AAC9F,OAAO,KAAK,uBAAuB,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,eAAe,MAAM,iBAAiB,CAAC;AAEnD,qBAAa,gCAAiC,SAAQ,WAAW;IAC/D;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,2CAA2C,EACjD,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,6CAA6C,CAAC;CAGlE;AAED;;GAEG;AACH,MAAM,WAAW,6CAA6C;IAC5D;;;;;OAKG;IACH,oBAAoB,EAAE,uBAAuB,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAEzE;;;;OAIG;IACH,WAAW,EAAE,eAAe,CAAC,WAAW,GAAG,IAAI,CAAC;IAEhD;;;OAGG;IACH,IAAI,EAAE,uDAAuD,CAAC;CAC/D;AAED,MAAM,WAAW,2CAA2C;IAC1D;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,yBAAiB,gCAAgC,CAAC;IAChD,MAAM,QAAQ,6CAA6C,GAAG,mCAAmC,CAAC,6CAA6C,CAAC;IAChJ,MAAM,QAAQ,2CAA2C,GAAG,mCAAmC,CAAC,2CAA2C,CAAC;CAC7I"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.InboundRealTimePaymentsTransfers = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class InboundRealTimePaymentsTransfers extends resource_1.APIResource {
7
+ /**
8
+ * Simulates an inbound Real-Time Payments transfer to your account. Real-Time
9
+ * Payments are a beta feature.
10
+ */
11
+ create(body, options) {
12
+ return this._client.post('/simulations/inbound_real_time_payments_transfers', { body, ...options });
13
+ }
14
+ }
15
+ exports.InboundRealTimePaymentsTransfers = InboundRealTimePaymentsTransfers;
16
+ (function (InboundRealTimePaymentsTransfers) {
17
+ })(InboundRealTimePaymentsTransfers = exports.InboundRealTimePaymentsTransfers || (exports.InboundRealTimePaymentsTransfers = {}));
18
+ //# sourceMappingURL=inbound-real-time-payments-transfers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inbound-real-time-payments-transfers.js","sourceRoot":"","sources":["../../src/resources/simulations/inbound-real-time-payments-transfers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAM7C,MAAa,gCAAiC,SAAQ,sBAAW;IAC/D;;;OAGG;IACH,MAAM,CACJ,IAAiD,EACjD,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mDAAmD,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF;AAXD,4EAWC;AAkED,WAAiB,gCAAgC;AAGjD,CAAC,EAHgB,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAGhD"}
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class InboundRealTimePaymentsTransfers extends APIResource {
4
+ /**
5
+ * Simulates an inbound Real-Time Payments transfer to your account. Real-Time
6
+ * Payments are a beta feature.
7
+ */
8
+ create(body, options) {
9
+ return this._client.post('/simulations/inbound_real_time_payments_transfers', { body, ...options });
10
+ }
11
+ }
12
+ (function (InboundRealTimePaymentsTransfers) {
13
+ })(InboundRealTimePaymentsTransfers || (InboundRealTimePaymentsTransfers = {}));
14
+ //# sourceMappingURL=inbound-real-time-payments-transfers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inbound-real-time-payments-transfers.mjs","sourceRoot":"","sources":["../../src/resources/simulations/inbound-real-time-payments-transfers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB,MAAM,OAAO,gCAAiC,SAAQ,WAAW;IAC/D;;;OAGG;IACH,MAAM,CACJ,IAAiD,EACjD,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mDAAmD,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF;AAkED,WAAiB,gCAAgC;AAGjD,CAAC,EAHgB,gCAAgC,KAAhC,gCAAgC,QAGhD"}