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
@@ -1,16 +1,19 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../resource';
4
- import { isRequestOptions } from '../../core';
5
- import * as Core from '../../core';
6
- import * as ExclusionsAPI from './exclusions';
7
- import { Page, type PageParams } from '../../pagination';
3
+ import { APIResource } from '../resource';
4
+ import { isRequestOptions } from '../core';
5
+ import * as Core from '../core';
6
+ import * as IntrafiExclusionsAPI from './intrafi-exclusions';
7
+ import { Page, type PageParams } from '../pagination';
8
8
 
9
- export class Exclusions extends APIResource {
9
+ export class IntrafiExclusions extends APIResource {
10
10
  /**
11
11
  * Create an IntraFi Exclusion
12
12
  */
13
- create(body: ExclusionCreateParams, options?: Core.RequestOptions): Core.APIPromise<IntrafiExclusion> {
13
+ create(
14
+ body: IntrafiExclusionCreateParams,
15
+ options?: Core.RequestOptions,
16
+ ): Core.APIPromise<IntrafiExclusion> {
14
17
  return this._client.post('/intrafi_exclusions', { body, ...options });
15
18
  }
16
19
 
@@ -25,12 +28,12 @@ export class Exclusions extends APIResource {
25
28
  * List IntraFi Exclusions.
26
29
  */
27
30
  list(
28
- query?: ExclusionListParams,
31
+ query?: IntrafiExclusionListParams,
29
32
  options?: Core.RequestOptions,
30
33
  ): Core.PagePromise<IntrafiExclusionsPage, IntrafiExclusion>;
31
34
  list(options?: Core.RequestOptions): Core.PagePromise<IntrafiExclusionsPage, IntrafiExclusion>;
32
35
  list(
33
- query: ExclusionListParams | Core.RequestOptions = {},
36
+ query: IntrafiExclusionListParams | Core.RequestOptions = {},
34
37
  options?: Core.RequestOptions,
35
38
  ): Core.PagePromise<IntrafiExclusionsPage, IntrafiExclusion> {
36
39
  if (isRequestOptions(query)) {
@@ -110,7 +113,7 @@ export interface IntrafiExclusion {
110
113
  type: 'intrafi_exclusion';
111
114
  }
112
115
 
113
- export interface ExclusionCreateParams {
116
+ export interface IntrafiExclusionCreateParams {
114
117
  /**
115
118
  * The name of the financial institution to be excluded.
116
119
  */
@@ -122,7 +125,7 @@ export interface ExclusionCreateParams {
122
125
  entity_id: string;
123
126
  }
124
127
 
125
- export interface ExclusionListParams extends PageParams {
128
+ export interface IntrafiExclusionListParams extends PageParams {
126
129
  /**
127
130
  * Filter IntraFi Exclusions for those belonging to the specified Entity.
128
131
  */
@@ -137,9 +140,9 @@ export interface ExclusionListParams extends PageParams {
137
140
  idempotency_key?: string;
138
141
  }
139
142
 
140
- export namespace Exclusions {
141
- export import IntrafiExclusion = ExclusionsAPI.IntrafiExclusion;
142
- export import IntrafiExclusionsPage = ExclusionsAPI.IntrafiExclusionsPage;
143
- export import ExclusionCreateParams = ExclusionsAPI.ExclusionCreateParams;
144
- export import ExclusionListParams = ExclusionsAPI.ExclusionListParams;
143
+ export namespace IntrafiExclusions {
144
+ export import IntrafiExclusion = IntrafiExclusionsAPI.IntrafiExclusion;
145
+ export import IntrafiExclusionsPage = IntrafiExclusionsAPI.IntrafiExclusionsPage;
146
+ export import IntrafiExclusionCreateParams = IntrafiExclusionsAPI.IntrafiExclusionCreateParams;
147
+ export import IntrafiExclusionListParams = IntrafiExclusionsAPI.IntrafiExclusionListParams;
145
148
  }
@@ -139,21 +139,6 @@ export namespace Lockbox {
139
139
  }
140
140
  }
141
141
 
142
- /**
143
- * A list of Lockbox objects.
144
- */
145
- export interface LockboxList {
146
- /**
147
- * The contents of the list.
148
- */
149
- data: Array<Lockbox>;
150
-
151
- /**
152
- * A pointer to a place in the list.
153
- */
154
- next_cursor: string | null;
155
- }
156
-
157
142
  export interface LockboxCreateParams {
158
143
  /**
159
144
  * The Account checks sent to this Lockbox should be deposited into.
@@ -230,7 +215,6 @@ export namespace LockboxListParams {
230
215
 
231
216
  export namespace Lockboxes {
232
217
  export import Lockbox = LockboxesAPI.Lockbox;
233
- export import LockboxList = LockboxesAPI.LockboxList;
234
218
  export import LockboxesPage = LockboxesAPI.LockboxesPage;
235
219
  export import LockboxCreateParams = LockboxesAPI.LockboxCreateParams;
236
220
  export import LockboxUpdateParams = LockboxesAPI.LockboxUpdateParams;
@@ -15,17 +15,17 @@ export class RoutingNumbers extends APIResource {
15
15
  list(
16
16
  query: RoutingNumberListParams,
17
17
  options?: Core.RequestOptions,
18
- ): Core.PagePromise<RoutingNumbersPage, RoutingNumber> {
19
- return this._client.getAPIList('/routing_numbers', RoutingNumbersPage, { query, ...options });
18
+ ): Core.PagePromise<RoutingNumberListResponsesPage, RoutingNumberListResponse> {
19
+ return this._client.getAPIList('/routing_numbers', RoutingNumberListResponsesPage, { query, ...options });
20
20
  }
21
21
  }
22
22
 
23
- export class RoutingNumbersPage extends Page<RoutingNumber> {}
23
+ export class RoutingNumberListResponsesPage extends Page<RoutingNumberListResponse> {}
24
24
 
25
25
  /**
26
26
  * Routing numbers are used to identify your bank in a financial transaction.
27
27
  */
28
- export interface RoutingNumber {
28
+ export interface RoutingNumberListResponse {
29
29
  /**
30
30
  * This routing number's support for ACH Transfers.
31
31
  *
@@ -75,7 +75,7 @@ export interface RoutingNumberListParams extends PageParams {
75
75
  }
76
76
 
77
77
  export namespace RoutingNumbers {
78
- export import RoutingNumber = RoutingNumbersAPI.RoutingNumber;
79
- export import RoutingNumbersPage = RoutingNumbersAPI.RoutingNumbersPage;
78
+ export import RoutingNumberListResponse = RoutingNumbersAPI.RoutingNumberListResponse;
79
+ export import RoutingNumberListResponsesPage = RoutingNumbersAPI.RoutingNumberListResponsesPage;
80
80
  export import RoutingNumberListParams = RoutingNumbersAPI.RoutingNumberListParams;
81
81
  }
@@ -4,38 +4,33 @@ import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
5
  import * as SimulationsACHTransfersAPI from './ach-transfers';
6
6
  import * as ACHTransfersAPI from '../ach-transfers';
7
- import * as InboundACHTransfersAPI from '../inbound-ach-transfers';
8
7
 
9
8
  export class ACHTransfers extends APIResource {
10
9
  /**
11
- * Simulates an inbound ACH transfer to your account. This imitates initiating a
12
- * transfer to an Increase account from a different financial institution. The
13
- * transfer may be either a credit or a debit depending on if the `amount` is
14
- * positive or negative. The result of calling this API will contain the created
15
- * transfer. You can pass a `resolve_at` parameter to allow for a window to
16
- * [action on the Inbound ACH Transfer](https://increase.com/documentation/receiving-ach-transfers).
17
- * Alternatively, if you don't pass the `resolve_at` parameter the result will
18
- * contain either a [Transaction](#transactions) or a
19
- * [Declined Transaction](#declined-transactions) depending on whether or not the
20
- * transfer is allowed.
10
+ * Simulates the acknowledgement of an [ACH Transfer](#ach-transfers) by the
11
+ * Federal Reserve. This transfer must first have a `status` of `submitted` . In
12
+ * production, the Federal Reserve generally acknowledges submitted ACH files
13
+ * within 30 minutes. Since sandbox ACH Transfers are not submitted to the Federal
14
+ * Reserve, this endpoint allows you to skip that delay and add the acknowledgment
15
+ * subresource to the ACH Transfer.
21
16
  */
22
- createInbound(
23
- body: ACHTransferCreateInboundParams,
17
+ acknowledge(
18
+ achTransferId: string,
24
19
  options?: Core.RequestOptions,
25
- ): Core.APIPromise<InboundACHTransfersAPI.InboundACHTransfer> {
26
- return this._client.post('/simulations/inbound_ach_transfers', { body, ...options });
20
+ ): Core.APIPromise<ACHTransfersAPI.ACHTransfer> {
21
+ return this._client.post(`/simulations/ach_transfers/${achTransferId}/acknowledge`, options);
27
22
  }
28
23
 
29
24
  /**
30
25
  * Simulates receiving a Notification of Change for an
31
26
  * [ACH Transfer](#ach-transfers).
32
27
  */
33
- notificationOfChange(
28
+ createNotificationOfChange(
34
29
  achTransferId: string,
35
- body: ACHTransferNotificationOfChangeParams,
30
+ body: ACHTransferCreateNotificationOfChangeParams,
36
31
  options?: Core.RequestOptions,
37
32
  ): Core.APIPromise<ACHTransfersAPI.ACHTransfer> {
38
- return this._client.post(`/simulations/ach_transfers/${achTransferId}/notification_of_change`, {
33
+ return this._client.post(`/simulations/ach_transfers/${achTransferId}/create_notification_of_change`, {
39
34
  body,
40
35
  ...options,
41
36
  });
@@ -67,62 +62,7 @@ export class ACHTransfers extends APIResource {
67
62
  }
68
63
  }
69
64
 
70
- export interface ACHTransferCreateInboundParams {
71
- /**
72
- * The identifier of the Account Number the inbound ACH Transfer is for.
73
- */
74
- account_number_id: string;
75
-
76
- /**
77
- * The transfer amount in cents. A positive amount originates a credit transfer
78
- * pushing funds to the receiving account. A negative amount originates a debit
79
- * transfer pulling funds from the receiving account.
80
- */
81
- amount: number;
82
-
83
- /**
84
- * The description of the date of the transfer.
85
- */
86
- company_descriptive_date?: string;
87
-
88
- /**
89
- * Data associated with the transfer set by the sender.
90
- */
91
- company_discretionary_data?: string;
92
-
93
- /**
94
- * The description of the transfer set by the sender.
95
- */
96
- company_entry_description?: string;
97
-
98
- /**
99
- * The sender's company ID.
100
- */
101
- company_id?: string;
102
-
103
- /**
104
- * The name of the sender.
105
- */
106
- company_name?: string;
107
-
108
- /**
109
- * The ID of the receiver of the transfer.
110
- */
111
- receiver_id_number?: string;
112
-
113
- /**
114
- * The name of the receiver of the transfer.
115
- */
116
- receiver_name?: string;
117
-
118
- /**
119
- * The time at which the transfer should be resolved. If not provided will resolve
120
- * immediately.
121
- */
122
- resolve_at?: string;
123
- }
124
-
125
- export interface ACHTransferNotificationOfChangeParams {
65
+ export interface ACHTransferCreateNotificationOfChangeParams {
126
66
  /**
127
67
  * The reason for the notification of change.
128
68
  *
@@ -415,7 +355,6 @@ export interface ACHTransferReturnParams {
415
355
  }
416
356
 
417
357
  export namespace ACHTransfers {
418
- export import ACHTransferCreateInboundParams = SimulationsACHTransfersAPI.ACHTransferCreateInboundParams;
419
- export import ACHTransferNotificationOfChangeParams = SimulationsACHTransfersAPI.ACHTransferNotificationOfChangeParams;
358
+ export import ACHTransferCreateNotificationOfChangeParams = SimulationsACHTransfersAPI.ACHTransferCreateNotificationOfChangeParams;
420
359
  export import ACHTransferReturnParams = SimulationsACHTransfersAPI.ACHTransferReturnParams;
421
360
  }
@@ -0,0 +1,29 @@
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 CardAuthorizationExpirationsAPI from './card-authorization-expirations';
6
+ import * as CardPaymentsAPI from '../card-payments';
7
+
8
+ export class CardAuthorizationExpirations extends APIResource {
9
+ /**
10
+ * Simulates expiring a card authorization immediately.
11
+ */
12
+ create(
13
+ body: CardAuthorizationExpirationCreateParams,
14
+ options?: Core.RequestOptions,
15
+ ): Core.APIPromise<CardPaymentsAPI.CardPayment> {
16
+ return this._client.post('/simulations/card_authorization_expirations', { body, ...options });
17
+ }
18
+ }
19
+
20
+ export interface CardAuthorizationExpirationCreateParams {
21
+ /**
22
+ * The identifier of the Card Payment to expire.
23
+ */
24
+ card_payment_id: string;
25
+ }
26
+
27
+ export namespace CardAuthorizationExpirations {
28
+ export import CardAuthorizationExpirationCreateParams = CardAuthorizationExpirationsAPI.CardAuthorizationExpirationCreateParams;
29
+ }
@@ -0,0 +1,112 @@
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 CardAuthorizationsAPI from './card-authorizations';
6
+ import * as DeclinedTransactionsAPI from '../declined-transactions';
7
+ import * as PendingTransactionsAPI from '../pending-transactions';
8
+
9
+ export class CardAuthorizations extends APIResource {
10
+ /**
11
+ * Simulates a purchase authorization on a [Card](#cards). Depending on the balance
12
+ * available to the card and the `amount` submitted, the authorization activity
13
+ * will result in a [Pending Transaction](#pending-transactions) of type
14
+ * `card_authorization` or a [Declined Transaction](#declined-transactions) of type
15
+ * `card_decline`. You can pass either a Card id or a
16
+ * [Digital Wallet Token](#digital-wallet-tokens) id to simulate the two different
17
+ * ways purchases can be made.
18
+ */
19
+ create(
20
+ body: CardAuthorizationCreateParams,
21
+ options?: Core.RequestOptions,
22
+ ): Core.APIPromise<CardAuthorizationCreateResponse> {
23
+ return this._client.post('/simulations/card_authorizations', { body, ...options });
24
+ }
25
+ }
26
+
27
+ /**
28
+ * The results of a Card Authorization simulation.
29
+ */
30
+ export interface CardAuthorizationCreateResponse {
31
+ /**
32
+ * If the authorization attempt fails, this will contain the resulting
33
+ * [Declined Transaction](#declined-transactions) object. The Declined
34
+ * Transaction's `source` will be of `category: card_decline`.
35
+ */
36
+ declined_transaction: DeclinedTransactionsAPI.DeclinedTransaction | null;
37
+
38
+ /**
39
+ * If the authorization attempt succeeds, this will contain the resulting Pending
40
+ * Transaction object. The Pending Transaction's `source` will be of
41
+ * `category: card_authorization`.
42
+ */
43
+ pending_transaction: PendingTransactionsAPI.PendingTransaction | null;
44
+
45
+ /**
46
+ * A constant representing the object's type. For this resource it will always be
47
+ * `inbound_card_authorization_simulation_result`.
48
+ */
49
+ type: 'inbound_card_authorization_simulation_result';
50
+ }
51
+
52
+ export interface CardAuthorizationCreateParams {
53
+ /**
54
+ * The authorization amount in cents.
55
+ */
56
+ amount: number;
57
+
58
+ /**
59
+ * The identifier of the Card to be authorized.
60
+ */
61
+ card_id?: string;
62
+
63
+ /**
64
+ * The identifier of the Digital Wallet Token to be authorized.
65
+ */
66
+ digital_wallet_token_id?: string;
67
+
68
+ /**
69
+ * The identifier of the Event Subscription to use. If provided, will override the
70
+ * default real time event subscription. Because you can only create one real time
71
+ * decision event subscription, you can use this field to route events to any
72
+ * specified event subscription for testing purposes.
73
+ */
74
+ event_subscription_id?: string;
75
+
76
+ /**
77
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
78
+ * is transacting with.
79
+ */
80
+ merchant_acceptor_id?: string;
81
+
82
+ /**
83
+ * The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
84
+ * card is transacting with.
85
+ */
86
+ merchant_category_code?: string;
87
+
88
+ /**
89
+ * The city the merchant resides in.
90
+ */
91
+ merchant_city?: string;
92
+
93
+ /**
94
+ * The country the merchant resides in.
95
+ */
96
+ merchant_country?: string;
97
+
98
+ /**
99
+ * The merchant descriptor of the merchant the card is transacting with.
100
+ */
101
+ merchant_descriptor?: string;
102
+
103
+ /**
104
+ * The identifier of the Physical Card to be authorized.
105
+ */
106
+ physical_card_id?: string;
107
+ }
108
+
109
+ export namespace CardAuthorizations {
110
+ export import CardAuthorizationCreateResponse = CardAuthorizationsAPI.CardAuthorizationCreateResponse;
111
+ export import CardAuthorizationCreateParams = CardAuthorizationsAPI.CardAuthorizationCreateParams;
112
+ }
@@ -0,0 +1,37 @@
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 CardFuelConfirmationsAPI from './card-fuel-confirmations';
6
+ import * as CardPaymentsAPI from '../card-payments';
7
+
8
+ export class CardFuelConfirmations extends APIResource {
9
+ /**
10
+ * Simulates the fuel confirmation of an authorization by a card acquirer. This
11
+ * happens asynchronously right after a fuel pump transaction is completed. A fuel
12
+ * confirmation can only happen once per authorization.
13
+ */
14
+ create(
15
+ body: CardFuelConfirmationCreateParams,
16
+ options?: Core.RequestOptions,
17
+ ): Core.APIPromise<CardPaymentsAPI.CardPayment> {
18
+ return this._client.post('/simulations/card_fuel_confirmations', { body, ...options });
19
+ }
20
+ }
21
+
22
+ export interface CardFuelConfirmationCreateParams {
23
+ /**
24
+ * The amount of the fuel_confirmation in minor units in the card authorization's
25
+ * currency.
26
+ */
27
+ amount: number;
28
+
29
+ /**
30
+ * The identifier of the Card Payment to create a fuel_confirmation on.
31
+ */
32
+ card_payment_id: string;
33
+ }
34
+
35
+ export namespace CardFuelConfirmations {
36
+ export import CardFuelConfirmationCreateParams = CardFuelConfirmationsAPI.CardFuelConfirmationCreateParams;
37
+ }
@@ -0,0 +1,43 @@
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 CardIncrementsAPI from './card-increments';
6
+ import * as CardPaymentsAPI from '../card-payments';
7
+
8
+ export class CardIncrements extends APIResource {
9
+ /**
10
+ * Simulates the increment of an authorization by a card acquirer. An authorization
11
+ * can be incremented multiple times.
12
+ */
13
+ create(
14
+ body: CardIncrementCreateParams,
15
+ options?: Core.RequestOptions,
16
+ ): Core.APIPromise<CardPaymentsAPI.CardPayment> {
17
+ return this._client.post('/simulations/card_increments', { body, ...options });
18
+ }
19
+ }
20
+
21
+ export interface CardIncrementCreateParams {
22
+ /**
23
+ * The amount of the increment in minor units in the card authorization's currency.
24
+ */
25
+ amount: number;
26
+
27
+ /**
28
+ * The identifier of the Card Payment to create a increment on.
29
+ */
30
+ card_payment_id: string;
31
+
32
+ /**
33
+ * The identifier of the Event Subscription to use. If provided, will override the
34
+ * default real time event subscription. Because you can only create one real time
35
+ * decision event subscription, you can use this field to route events to any
36
+ * specified event subscription for testing purposes.
37
+ */
38
+ event_subscription_id?: string;
39
+ }
40
+
41
+ export namespace CardIncrements {
42
+ export import CardIncrementCreateParams = CardIncrementsAPI.CardIncrementCreateParams;
43
+ }
@@ -0,0 +1,38 @@
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 CardReversalsAPI from './card-reversals';
6
+ import * as CardPaymentsAPI from '../card-payments';
7
+
8
+ export class CardReversals extends APIResource {
9
+ /**
10
+ * Simulates the reversal of an authorization by a card acquirer. An authorization
11
+ * can be partially reversed multiple times, up until the total authorized amount.
12
+ * Marks the pending transaction as complete if the authorization is fully
13
+ * reversed.
14
+ */
15
+ create(
16
+ body: CardReversalCreateParams,
17
+ options?: Core.RequestOptions,
18
+ ): Core.APIPromise<CardPaymentsAPI.CardPayment> {
19
+ return this._client.post('/simulations/card_reversals', { body, ...options });
20
+ }
21
+ }
22
+
23
+ export interface CardReversalCreateParams {
24
+ /**
25
+ * The identifier of the Card Payment to create a reversal on.
26
+ */
27
+ card_payment_id: string;
28
+
29
+ /**
30
+ * The amount of the reversal in minor units in the card authorization's currency.
31
+ * This defaults to the authorization amount.
32
+ */
33
+ amount?: number;
34
+ }
35
+
36
+ export namespace CardReversals {
37
+ export import CardReversalCreateParams = CardReversalsAPI.CardReversalCreateParams;
38
+ }
@@ -0,0 +1,45 @@
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 CardSettlementsAPI from './card-settlements';
6
+ import * as TransactionsAPI from '../transactions';
7
+
8
+ export class CardSettlements extends APIResource {
9
+ /**
10
+ * Simulates the settlement of an authorization by a card acquirer. After a card
11
+ * authorization is created, the merchant will eventually send a settlement. This
12
+ * simulates that event, which may occur many days after the purchase in
13
+ * production. The amount settled can be different from the amount originally
14
+ * authorized, for example, when adding a tip to a restaurant bill.
15
+ */
16
+ create(
17
+ body: CardSettlementCreateParams,
18
+ options?: Core.RequestOptions,
19
+ ): Core.APIPromise<TransactionsAPI.Transaction> {
20
+ return this._client.post('/simulations/card_settlements', { body, ...options });
21
+ }
22
+ }
23
+
24
+ export interface CardSettlementCreateParams {
25
+ /**
26
+ * The identifier of the Card to create a settlement on.
27
+ */
28
+ card_id: string;
29
+
30
+ /**
31
+ * The identifier of the Pending Transaction for the Card Authorization you wish to
32
+ * settle.
33
+ */
34
+ pending_transaction_id: string;
35
+
36
+ /**
37
+ * The amount to be settled. This defaults to the amount of the Pending Transaction
38
+ * being settled.
39
+ */
40
+ amount?: number;
41
+ }
42
+
43
+ export namespace CardSettlements {
44
+ export import CardSettlementCreateParams = CardSettlementsAPI.CardSettlementCreateParams;
45
+ }