@augustusbank/typescript-sdk 0.20.0 → 0.22.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 (196) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/account-holders.d.mts +1555 -1184
  12. package/resources/account-holders.d.mts.map +1 -1
  13. package/resources/account-holders.d.ts +1555 -1184
  14. package/resources/account-holders.d.ts.map +1 -1
  15. package/resources/account-holders.js +59 -0
  16. package/resources/account-holders.js.map +1 -1
  17. package/resources/account-holders.mjs +59 -0
  18. package/resources/account-holders.mjs.map +1 -1
  19. package/resources/account-programs.d.mts +2 -2
  20. package/resources/account-programs.d.ts +2 -2
  21. package/resources/accounts.d.mts +206 -43
  22. package/resources/accounts.d.mts.map +1 -1
  23. package/resources/accounts.d.ts +206 -43
  24. package/resources/accounts.d.ts.map +1 -1
  25. package/resources/accounts.js +53 -0
  26. package/resources/accounts.js.map +1 -1
  27. package/resources/accounts.mjs +53 -0
  28. package/resources/accounts.mjs.map +1 -1
  29. package/resources/api-keys.d.mts +1 -1
  30. package/resources/api-keys.d.mts.map +1 -1
  31. package/resources/api-keys.d.ts +1 -1
  32. package/resources/api-keys.d.ts.map +1 -1
  33. package/resources/api-versions.d.mts +3 -0
  34. package/resources/api-versions.d.mts.map +1 -1
  35. package/resources/api-versions.d.ts +3 -0
  36. package/resources/api-versions.d.ts.map +1 -1
  37. package/resources/conversions.d.mts +36 -81
  38. package/resources/conversions.d.mts.map +1 -1
  39. package/resources/conversions.d.ts +36 -81
  40. package/resources/conversions.d.ts.map +1 -1
  41. package/resources/conversions.js +25 -1
  42. package/resources/conversions.js.map +1 -1
  43. package/resources/conversions.mjs +25 -1
  44. package/resources/conversions.mjs.map +1 -1
  45. package/resources/counterparties.d.mts +1042 -0
  46. package/resources/counterparties.d.mts.map +1 -0
  47. package/resources/counterparties.d.ts +1042 -0
  48. package/resources/counterparties.d.ts.map +1 -0
  49. package/resources/counterparties.js +45 -0
  50. package/resources/counterparties.js.map +1 -0
  51. package/resources/counterparties.mjs +41 -0
  52. package/resources/counterparties.mjs.map +1 -0
  53. package/resources/deposits.d.mts +38 -186
  54. package/resources/deposits.d.mts.map +1 -1
  55. package/resources/deposits.d.ts +38 -186
  56. package/resources/deposits.d.ts.map +1 -1
  57. package/resources/index.d.mts +2 -0
  58. package/resources/index.d.mts.map +1 -1
  59. package/resources/index.d.ts +2 -0
  60. package/resources/index.d.ts.map +1 -1
  61. package/resources/index.js +5 -1
  62. package/resources/index.js.map +1 -1
  63. package/resources/index.mjs +2 -0
  64. package/resources/index.mjs.map +1 -1
  65. package/resources/payouts.d.mts +458 -276
  66. package/resources/payouts.d.mts.map +1 -1
  67. package/resources/payouts.d.ts +458 -276
  68. package/resources/payouts.d.ts.map +1 -1
  69. package/resources/payouts.js +27 -0
  70. package/resources/payouts.js.map +1 -1
  71. package/resources/payouts.mjs +27 -0
  72. package/resources/payouts.mjs.map +1 -1
  73. package/resources/quotes/indicative.d.mts +7 -11
  74. package/resources/quotes/indicative.d.mts.map +1 -1
  75. package/resources/quotes/indicative.d.ts +7 -11
  76. package/resources/quotes/indicative.d.ts.map +1 -1
  77. package/resources/quotes/quotes.d.mts +4 -8
  78. package/resources/quotes/quotes.d.mts.map +1 -1
  79. package/resources/quotes/quotes.d.ts +4 -8
  80. package/resources/quotes/quotes.d.ts.map +1 -1
  81. package/resources/quotes/quotes.js.map +1 -1
  82. package/resources/quotes/quotes.mjs.map +1 -1
  83. package/resources/returns.d.mts +84 -39
  84. package/resources/returns.d.mts.map +1 -1
  85. package/resources/returns.d.ts +84 -39
  86. package/resources/returns.d.ts.map +1 -1
  87. package/resources/returns.js +22 -0
  88. package/resources/returns.js.map +1 -1
  89. package/resources/returns.mjs +22 -0
  90. package/resources/returns.mjs.map +1 -1
  91. package/resources/scopes.d.mts +4 -1
  92. package/resources/scopes.d.mts.map +1 -1
  93. package/resources/scopes.d.ts +4 -1
  94. package/resources/scopes.d.ts.map +1 -1
  95. package/resources/simulations/account-programs.d.mts +281 -0
  96. package/resources/simulations/account-programs.d.mts.map +1 -0
  97. package/resources/simulations/account-programs.d.ts +281 -0
  98. package/resources/simulations/account-programs.d.ts.map +1 -0
  99. package/resources/simulations/account-programs.js +98 -0
  100. package/resources/simulations/account-programs.js.map +1 -0
  101. package/resources/simulations/account-programs.mjs +94 -0
  102. package/resources/simulations/account-programs.mjs.map +1 -0
  103. package/resources/simulations/accounts.d.mts +270 -0
  104. package/resources/simulations/accounts.d.mts.map +1 -0
  105. package/resources/simulations/accounts.d.ts +270 -0
  106. package/resources/simulations/accounts.d.ts.map +1 -0
  107. package/resources/simulations/accounts.js +91 -0
  108. package/resources/simulations/accounts.js.map +1 -0
  109. package/resources/simulations/accounts.mjs +87 -0
  110. package/resources/simulations/accounts.mjs.map +1 -0
  111. package/resources/simulations/deposits.d.mts +218 -0
  112. package/resources/simulations/deposits.d.mts.map +1 -0
  113. package/resources/simulations/deposits.d.ts +218 -0
  114. package/resources/simulations/deposits.d.ts.map +1 -0
  115. package/resources/simulations/deposits.js +25 -0
  116. package/resources/simulations/deposits.js.map +1 -0
  117. package/resources/simulations/deposits.mjs +21 -0
  118. package/resources/simulations/deposits.mjs.map +1 -0
  119. package/resources/simulations/index.d.mts +6 -0
  120. package/resources/simulations/index.d.mts.map +1 -0
  121. package/resources/simulations/index.d.ts +6 -0
  122. package/resources/simulations/index.d.ts.map +1 -0
  123. package/resources/simulations/index.js +15 -0
  124. package/resources/simulations/index.js.map +1 -0
  125. package/resources/simulations/index.mjs +7 -0
  126. package/resources/simulations/index.mjs.map +1 -0
  127. package/resources/simulations/payouts.d.mts +76 -0
  128. package/resources/simulations/payouts.d.mts.map +1 -0
  129. package/resources/simulations/payouts.d.ts +76 -0
  130. package/resources/simulations/payouts.d.ts.map +1 -0
  131. package/resources/simulations/payouts.js +39 -0
  132. package/resources/simulations/payouts.js.map +1 -0
  133. package/resources/simulations/payouts.mjs +35 -0
  134. package/resources/simulations/payouts.mjs.map +1 -0
  135. package/resources/simulations/simulations.d.mts +22 -0
  136. package/resources/simulations/simulations.d.mts.map +1 -0
  137. package/resources/simulations/simulations.d.ts +22 -0
  138. package/resources/simulations/simulations.d.ts.map +1 -0
  139. package/resources/simulations/simulations.js +29 -0
  140. package/resources/simulations/simulations.js.map +1 -0
  141. package/resources/simulations/simulations.mjs +24 -0
  142. package/resources/simulations/simulations.mjs.map +1 -0
  143. package/resources/simulations.d.mts +2 -0
  144. package/resources/simulations.d.mts.map +1 -0
  145. package/resources/simulations.d.ts +2 -0
  146. package/resources/simulations.d.ts.map +1 -0
  147. package/resources/simulations.js +6 -0
  148. package/resources/simulations.js.map +1 -0
  149. package/resources/simulations.mjs +3 -0
  150. package/resources/simulations.mjs.map +1 -0
  151. package/resources/transactions.d.mts +300 -180
  152. package/resources/transactions.d.mts.map +1 -1
  153. package/resources/transactions.d.ts +300 -180
  154. package/resources/transactions.d.ts.map +1 -1
  155. package/resources/webhook-subscriptions.d.mts +54 -4
  156. package/resources/webhook-subscriptions.d.mts.map +1 -1
  157. package/resources/webhook-subscriptions.d.ts +54 -4
  158. package/resources/webhook-subscriptions.d.ts.map +1 -1
  159. package/resources/webhook-subscriptions.js +49 -0
  160. package/resources/webhook-subscriptions.js.map +1 -1
  161. package/resources/webhook-subscriptions.mjs +49 -0
  162. package/resources/webhook-subscriptions.mjs.map +1 -1
  163. package/resources/webhooks.d.mts +736 -953
  164. package/resources/webhooks.d.mts.map +1 -1
  165. package/resources/webhooks.d.ts +736 -953
  166. package/resources/webhooks.d.ts.map +1 -1
  167. package/src/client.ts +32 -0
  168. package/src/resources/account-holders.ts +1701 -1282
  169. package/src/resources/account-programs.ts +2 -2
  170. package/src/resources/accounts.ts +236 -44
  171. package/src/resources/api-keys.ts +3 -0
  172. package/src/resources/api-versions.ts +3 -0
  173. package/src/resources/conversions.ts +36 -93
  174. package/src/resources/counterparties.ts +3127 -0
  175. package/src/resources/deposits.ts +54 -269
  176. package/src/resources/index.ts +13 -0
  177. package/src/resources/payouts.ts +2089 -367
  178. package/src/resources/quotes/indicative.ts +7 -12
  179. package/src/resources/quotes/quotes.ts +4 -9
  180. package/src/resources/returns.ts +144 -40
  181. package/src/resources/scopes.ts +7 -1
  182. package/src/resources/simulations/account-programs.ts +363 -0
  183. package/src/resources/simulations/accounts.ts +340 -0
  184. package/src/resources/simulations/deposits.ts +530 -0
  185. package/src/resources/simulations/index.ts +32 -0
  186. package/src/resources/simulations/payouts.ts +98 -0
  187. package/src/resources/simulations/simulations.ts +82 -0
  188. package/src/resources/simulations.ts +3 -0
  189. package/src/resources/transactions.ts +910 -232
  190. package/src/resources/webhook-subscriptions.ts +54 -4
  191. package/src/resources/webhooks.ts +948 -1126
  192. package/src/version.ts +1 -1
  193. package/version.d.mts +1 -1
  194. package/version.d.ts +1 -1
  195. package/version.js +1 -1
  196. package/version.mjs +1 -1
@@ -0,0 +1,270 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class Accounts extends APIResource {
5
+ /**
6
+ * Creates a Mock-US USD operating (DDA) account owned by the caller merchant. This
7
+ * endpoint is unavailable in live production.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const account = await client.simulations.accounts.create({
12
+ * label: 'x',
13
+ * });
14
+ * ```
15
+ */
16
+ create(body: AccountCreateParams, options?: RequestOptions): APIPromise<AccountCreateResponse>;
17
+ /**
18
+ * Closes an operating (DDA) account. The account must be drained via the drain
19
+ * endpoint first. This endpoint is unavailable in live production.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const response = await client.simulations.accounts.close(
24
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
25
+ * { reason: 'aml_risk_fraud' },
26
+ * );
27
+ * ```
28
+ */
29
+ close(id: string, body: AccountCloseParams, options?: RequestOptions): APIPromise<AccountCloseResponse>;
30
+ /**
31
+ * Creates an outbound payout that drains the residual balance of a frozen
32
+ * operating (DDA) account to the provided destination. The returned `payout_id`
33
+ * must be settled via `POST /v1/simulations/payouts/{id}/send` for the account
34
+ * balance to reach zero. This endpoint is unavailable in live production.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const response = await client.simulations.accounts.drain(
39
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
40
+ * {
41
+ * destination: {
42
+ * account_holder_name: 'Acme Sandbox Ltd.',
43
+ * bic: 'COBADEFFXXX',
44
+ * iban: 'DE89370400440532013000',
45
+ * type: 'iban',
46
+ * },
47
+ * },
48
+ * );
49
+ * ```
50
+ */
51
+ drain(id: string, body: AccountDrainParams, options?: RequestOptions): APIPromise<AccountDrainResponse>;
52
+ /**
53
+ * Freezes an existing operating (DDA) account. This endpoint is unavailable in
54
+ * live production.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * const response = await client.simulations.accounts.freeze(
59
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
60
+ * );
61
+ * ```
62
+ */
63
+ freeze(id: string, options?: RequestOptions): APIPromise<AccountFreezeResponse>;
64
+ /**
65
+ * Unfreezes an existing operating (DDA) account. This endpoint is unavailable in
66
+ * live production.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * const response = await client.simulations.accounts.unfreeze(
71
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
72
+ * );
73
+ * ```
74
+ */
75
+ unfreeze(id: string, options?: RequestOptions): APIPromise<AccountUnfreezeResponse>;
76
+ }
77
+ export interface AccountCreateResponse {
78
+ /**
79
+ * Account whose lifecycle is being simulated.
80
+ */
81
+ account_id: string;
82
+ /**
83
+ * Account lifecycle event submitted to the sandbox.
84
+ */
85
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
86
+ /**
87
+ * Payout created by a drain event. Feed to
88
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
89
+ */
90
+ payout_id: string | null;
91
+ /**
92
+ * Whether the simulation submission was successful.
93
+ */
94
+ success: boolean;
95
+ /**
96
+ * Resource type discriminator.
97
+ */
98
+ type: 'account_simulation';
99
+ }
100
+ export interface AccountCloseResponse {
101
+ /**
102
+ * Account whose lifecycle is being simulated.
103
+ */
104
+ account_id: string;
105
+ /**
106
+ * Account lifecycle event submitted to the sandbox.
107
+ */
108
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
109
+ /**
110
+ * Payout created by a drain event. Feed to
111
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
112
+ */
113
+ payout_id: string | null;
114
+ /**
115
+ * Whether the simulation submission was successful.
116
+ */
117
+ success: boolean;
118
+ /**
119
+ * Resource type discriminator.
120
+ */
121
+ type: 'account_simulation';
122
+ }
123
+ export interface AccountDrainResponse {
124
+ /**
125
+ * Account whose lifecycle is being simulated.
126
+ */
127
+ account_id: string;
128
+ /**
129
+ * Account lifecycle event submitted to the sandbox.
130
+ */
131
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
132
+ /**
133
+ * Payout created by a drain event. Feed to
134
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
135
+ */
136
+ payout_id: string | null;
137
+ /**
138
+ * Whether the simulation submission was successful.
139
+ */
140
+ success: boolean;
141
+ /**
142
+ * Resource type discriminator.
143
+ */
144
+ type: 'account_simulation';
145
+ }
146
+ export interface AccountFreezeResponse {
147
+ /**
148
+ * Account whose lifecycle is being simulated.
149
+ */
150
+ account_id: string;
151
+ /**
152
+ * Account lifecycle event submitted to the sandbox.
153
+ */
154
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
155
+ /**
156
+ * Payout created by a drain event. Feed to
157
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
158
+ */
159
+ payout_id: string | null;
160
+ /**
161
+ * Whether the simulation submission was successful.
162
+ */
163
+ success: boolean;
164
+ /**
165
+ * Resource type discriminator.
166
+ */
167
+ type: 'account_simulation';
168
+ }
169
+ export interface AccountUnfreezeResponse {
170
+ /**
171
+ * Account whose lifecycle is being simulated.
172
+ */
173
+ account_id: string;
174
+ /**
175
+ * Account lifecycle event submitted to the sandbox.
176
+ */
177
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
178
+ /**
179
+ * Payout created by a drain event. Feed to
180
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
181
+ */
182
+ payout_id: string | null;
183
+ /**
184
+ * Whether the simulation submission was successful.
185
+ */
186
+ success: boolean;
187
+ /**
188
+ * Resource type discriminator.
189
+ */
190
+ type: 'account_simulation';
191
+ }
192
+ export interface AccountCreateParams {
193
+ /**
194
+ * Human-readable label for the operating account.
195
+ */
196
+ label: string;
197
+ }
198
+ export interface AccountCloseParams {
199
+ /**
200
+ * Reason for closing the account.
201
+ */
202
+ reason: 'aml_risk_fraud' | 'client_request';
203
+ }
204
+ export interface AccountDrainParams {
205
+ /**
206
+ * Fiat financial address to which the residual balance of the frozen account is
207
+ * drained.
208
+ */
209
+ destination: AccountDrainParams.IbanFinancialAddress | AccountDrainParams.SortCodeFinancialAddress | AccountDrainParams.AbaFinancialAddress;
210
+ }
211
+ export declare namespace AccountDrainParams {
212
+ interface IbanFinancialAddress {
213
+ /**
214
+ * Name of the account holder.
215
+ */
216
+ account_holder_name: string;
217
+ /**
218
+ * Bank Identifier Code, or null if not provided.
219
+ */
220
+ bic: string | null;
221
+ /**
222
+ * International Bank Account Number.
223
+ */
224
+ iban: string;
225
+ /**
226
+ * Discriminator for IBAN financial address.
227
+ */
228
+ type: 'iban';
229
+ }
230
+ interface SortCodeFinancialAddress {
231
+ /**
232
+ * Name of the account holder.
233
+ */
234
+ account_holder_name: string;
235
+ /**
236
+ * UK account number (8 digits).
237
+ */
238
+ account_number: string;
239
+ /**
240
+ * UK sort code (6 digits).
241
+ */
242
+ sort_code: string;
243
+ /**
244
+ * Discriminator for UK sort code financial address.
245
+ */
246
+ type: 'sort_code';
247
+ }
248
+ interface AbaFinancialAddress {
249
+ /**
250
+ * Name of the account holder.
251
+ */
252
+ account_holder_name: string;
253
+ /**
254
+ * Bank account number.
255
+ */
256
+ account_number: string;
257
+ /**
258
+ * ABA routing number (9 digits).
259
+ */
260
+ routing_number: string;
261
+ /**
262
+ * Discriminator for ABA wire financial address.
263
+ */
264
+ type: 'aba';
265
+ }
266
+ }
267
+ export declare namespace Accounts {
268
+ export { type AccountCreateResponse as AccountCreateResponse, type AccountCloseResponse as AccountCloseResponse, type AccountDrainResponse as AccountDrainResponse, type AccountFreezeResponse as AccountFreezeResponse, type AccountUnfreezeResponse as AccountUnfreezeResponse, type AccountCreateParams as AccountCreateParams, type AccountCloseParams as AccountCloseParams, type AccountDrainParams as AccountDrainParams, };
269
+ }
270
+ //# sourceMappingURL=accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/accounts.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,91 @@
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.Accounts = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class Accounts extends resource_1.APIResource {
8
+ /**
9
+ * Creates a Mock-US USD operating (DDA) account owned by the caller merchant. This
10
+ * endpoint is unavailable in live production.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const account = await client.simulations.accounts.create({
15
+ * label: 'x',
16
+ * });
17
+ * ```
18
+ */
19
+ create(body, options) {
20
+ return this._client.post('/v1/simulations/accounts', { body, ...options });
21
+ }
22
+ /**
23
+ * Closes an operating (DDA) account. The account must be drained via the drain
24
+ * endpoint first. This endpoint is unavailable in live production.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const response = await client.simulations.accounts.close(
29
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
30
+ * { reason: 'aml_risk_fraud' },
31
+ * );
32
+ * ```
33
+ */
34
+ close(id, body, options) {
35
+ return this._client.post((0, path_1.path) `/v1/simulations/accounts/${id}/close`, { body, ...options });
36
+ }
37
+ /**
38
+ * Creates an outbound payout that drains the residual balance of a frozen
39
+ * operating (DDA) account to the provided destination. The returned `payout_id`
40
+ * must be settled via `POST /v1/simulations/payouts/{id}/send` for the account
41
+ * balance to reach zero. This endpoint is unavailable in live production.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const response = await client.simulations.accounts.drain(
46
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
47
+ * {
48
+ * destination: {
49
+ * account_holder_name: 'Acme Sandbox Ltd.',
50
+ * bic: 'COBADEFFXXX',
51
+ * iban: 'DE89370400440532013000',
52
+ * type: 'iban',
53
+ * },
54
+ * },
55
+ * );
56
+ * ```
57
+ */
58
+ drain(id, body, options) {
59
+ return this._client.post((0, path_1.path) `/v1/simulations/accounts/${id}/drain`, { body, ...options });
60
+ }
61
+ /**
62
+ * Freezes an existing operating (DDA) account. This endpoint is unavailable in
63
+ * live production.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const response = await client.simulations.accounts.freeze(
68
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
69
+ * );
70
+ * ```
71
+ */
72
+ freeze(id, options) {
73
+ return this._client.post((0, path_1.path) `/v1/simulations/accounts/${id}/freeze`, options);
74
+ }
75
+ /**
76
+ * Unfreezes an existing operating (DDA) account. This endpoint is unavailable in
77
+ * live production.
78
+ *
79
+ * @example
80
+ * ```ts
81
+ * const response = await client.simulations.accounts.unfreeze(
82
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
83
+ * );
84
+ * ```
85
+ */
86
+ unfreeze(id, options) {
87
+ return this._client.post((0, path_1.path) `/v1/simulations/accounts/${id}/unfreeze`, options);
88
+ }
89
+ }
90
+ exports.Accounts = Accounts;
91
+ //# sourceMappingURL=accounts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/resources/simulations/accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;CACF;AAtFD,4BAsFC"}
@@ -0,0 +1,87 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ export class Accounts extends APIResource {
5
+ /**
6
+ * Creates a Mock-US USD operating (DDA) account owned by the caller merchant. This
7
+ * endpoint is unavailable in live production.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const account = await client.simulations.accounts.create({
12
+ * label: 'x',
13
+ * });
14
+ * ```
15
+ */
16
+ create(body, options) {
17
+ return this._client.post('/v1/simulations/accounts', { body, ...options });
18
+ }
19
+ /**
20
+ * Closes an operating (DDA) account. The account must be drained via the drain
21
+ * endpoint first. This endpoint is unavailable in live production.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response = await client.simulations.accounts.close(
26
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
27
+ * { reason: 'aml_risk_fraud' },
28
+ * );
29
+ * ```
30
+ */
31
+ close(id, body, options) {
32
+ return this._client.post(path `/v1/simulations/accounts/${id}/close`, { body, ...options });
33
+ }
34
+ /**
35
+ * Creates an outbound payout that drains the residual balance of a frozen
36
+ * operating (DDA) account to the provided destination. The returned `payout_id`
37
+ * must be settled via `POST /v1/simulations/payouts/{id}/send` for the account
38
+ * balance to reach zero. This endpoint is unavailable in live production.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const response = await client.simulations.accounts.drain(
43
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
44
+ * {
45
+ * destination: {
46
+ * account_holder_name: 'Acme Sandbox Ltd.',
47
+ * bic: 'COBADEFFXXX',
48
+ * iban: 'DE89370400440532013000',
49
+ * type: 'iban',
50
+ * },
51
+ * },
52
+ * );
53
+ * ```
54
+ */
55
+ drain(id, body, options) {
56
+ return this._client.post(path `/v1/simulations/accounts/${id}/drain`, { body, ...options });
57
+ }
58
+ /**
59
+ * Freezes an existing operating (DDA) account. This endpoint is unavailable in
60
+ * live production.
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * const response = await client.simulations.accounts.freeze(
65
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
66
+ * );
67
+ * ```
68
+ */
69
+ freeze(id, options) {
70
+ return this._client.post(path `/v1/simulations/accounts/${id}/freeze`, options);
71
+ }
72
+ /**
73
+ * Unfreezes an existing operating (DDA) account. This endpoint is unavailable in
74
+ * live production.
75
+ *
76
+ * @example
77
+ * ```ts
78
+ * const response = await client.simulations.accounts.unfreeze(
79
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
80
+ * );
81
+ * ```
82
+ */
83
+ unfreeze(id, options) {
84
+ return this._client.post(path `/v1/simulations/accounts/${id}/unfreeze`, options);
85
+ }
86
+ }
87
+ //# sourceMappingURL=accounts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../../src/resources/simulations/accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;CACF"}
@@ -0,0 +1,218 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Deposits extends APIResource {
5
+ /**
6
+ * Initiates an incoming deposit through the sandbox provider pipeline. This
7
+ * endpoint is unavailable in live production.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const deposit = await client.simulations.deposits.create({
12
+ * account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
13
+ * amount: '869.225610155',
14
+ * currency: 'EUR',
15
+ * });
16
+ * ```
17
+ */
18
+ create(body: DepositCreateParams, options?: RequestOptions): APIPromise<DepositCreateResponse>;
19
+ }
20
+ export interface DepositCreateResponse {
21
+ /**
22
+ * Account receiving the simulated deposit.
23
+ */
24
+ account_id: string;
25
+ /**
26
+ * Simulated amount as a decimal string.
27
+ */
28
+ amount: string;
29
+ /**
30
+ * Currency of the receiving account.
31
+ */
32
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
33
+ /**
34
+ * Payment rail the simulated deposit arrived on, or null when not known.
35
+ */
36
+ rail: 'sepa' | 'sepa_instant' | 'faster_payments' | 'ach' | 'fedwire' | 'swift' | null;
37
+ /**
38
+ * Whether the simulation submission was successful.
39
+ */
40
+ success: boolean;
41
+ /**
42
+ * Resource type discriminator.
43
+ */
44
+ type: 'deposit_simulation';
45
+ /**
46
+ * ISO 20022 unstructured remittance information (<RmtInf>/<Ustrd>), or null when
47
+ * omitted.
48
+ */
49
+ unstructured_remittance_information: string | null;
50
+ }
51
+ export interface DepositCreateParams {
52
+ /**
53
+ * ID of the account to credit with the simulated deposit.
54
+ */
55
+ account_id: string;
56
+ /**
57
+ * Amount as a decimal string in the account currency (e.g. "100.50").
58
+ */
59
+ amount: string;
60
+ /**
61
+ * Currency of the simulated deposit.
62
+ */
63
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
64
+ /**
65
+ * Sender of the simulated deposit.
66
+ */
67
+ counterparty?: DepositCreateParams.Counterparty;
68
+ /**
69
+ * Payment rail the simulated deposit arrives on.
70
+ */
71
+ rail?: 'sepa' | 'sepa_instant' | 'faster_payments' | 'ach' | 'fedwire' | 'swift';
72
+ /**
73
+ * Unstructured remittance information attached to the transfer. Not all rails
74
+ * support this field.
75
+ */
76
+ unstructured_remittance_information?: string;
77
+ }
78
+ export declare namespace DepositCreateParams {
79
+ /**
80
+ * Sender of the simulated deposit.
81
+ */
82
+ interface Counterparty {
83
+ /**
84
+ * Financial address of the counterparty.
85
+ */
86
+ financial_address: Counterparty.IbanFinancialAddressRequest | Counterparty.SortCodeFinancialAddress | Counterparty.AbaFinancialAddress | Counterparty.BicFinancialAddressRequest | Counterparty.CryptoWalletFinancialAddress;
87
+ /**
88
+ * Physical address of the counterparty.
89
+ */
90
+ physical_address?: Counterparty.PhysicalAddress | null;
91
+ }
92
+ namespace Counterparty {
93
+ interface IbanFinancialAddressRequest {
94
+ /**
95
+ * Name of the account holder.
96
+ */
97
+ account_holder_name: string;
98
+ /**
99
+ * International Bank Account Number.
100
+ */
101
+ iban: string;
102
+ /**
103
+ * Discriminator for IBAN financial address.
104
+ */
105
+ type: 'iban';
106
+ /**
107
+ * Bank Identifier Code. Optional; omit or send null if not provided.
108
+ */
109
+ bic?: string | null;
110
+ }
111
+ interface SortCodeFinancialAddress {
112
+ /**
113
+ * Name of the account holder.
114
+ */
115
+ account_holder_name: string;
116
+ /**
117
+ * UK account number (8 digits).
118
+ */
119
+ account_number: string;
120
+ /**
121
+ * UK sort code (6 digits).
122
+ */
123
+ sort_code: string;
124
+ /**
125
+ * Discriminator for UK sort code financial address.
126
+ */
127
+ type: 'sort_code';
128
+ }
129
+ interface AbaFinancialAddress {
130
+ /**
131
+ * Name of the account holder.
132
+ */
133
+ account_holder_name: string;
134
+ /**
135
+ * Bank account number.
136
+ */
137
+ account_number: string;
138
+ /**
139
+ * ABA routing number (9 digits).
140
+ */
141
+ routing_number: string;
142
+ /**
143
+ * Discriminator for ABA wire financial address.
144
+ */
145
+ type: 'aba';
146
+ }
147
+ interface BicFinancialAddressRequest {
148
+ /**
149
+ * Name of the account holder.
150
+ */
151
+ account_holder_name: string;
152
+ /**
153
+ * Local-format bank account number (1-34 alphanumeric characters).
154
+ */
155
+ account_number: string;
156
+ /**
157
+ * ISO 9362 Bank Identifier Code (8 or 11 characters).
158
+ */
159
+ bic: string;
160
+ /**
161
+ * Discriminator for BIC + local account financial address.
162
+ */
163
+ type: 'bic';
164
+ /**
165
+ * Domestic bank or branch code where the destination country uses one (for example
166
+ * the BSB in Australia). Optional; omit or send null where the country has none.
167
+ */
168
+ local_bank_code?: string | null;
169
+ }
170
+ interface CryptoWalletFinancialAddress {
171
+ /**
172
+ * Wallet address on the specified blockchain.
173
+ */
174
+ address: string;
175
+ /**
176
+ * Blockchain network for the crypto wallet.
177
+ */
178
+ blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
179
+ /**
180
+ * Discriminator for crypto wallet financial address.
181
+ */
182
+ type: 'crypto_wallet';
183
+ }
184
+ /**
185
+ * Physical address of the counterparty.
186
+ */
187
+ interface PhysicalAddress {
188
+ /**
189
+ * City or locality.
190
+ */
191
+ city: string;
192
+ /**
193
+ * ISO 3166-1 alpha-2 country code.
194
+ */
195
+ country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
196
+ /**
197
+ * Primary street address.
198
+ */
199
+ line_1: string;
200
+ /**
201
+ * Secondary street address, or null if not recorded.
202
+ */
203
+ line_2: string | null;
204
+ /**
205
+ * Postal or ZIP code.
206
+ */
207
+ postal_code: string;
208
+ /**
209
+ * State, province, or region, or null if not recorded.
210
+ */
211
+ state: string | null;
212
+ }
213
+ }
214
+ }
215
+ export declare namespace Deposits {
216
+ export { type DepositCreateResponse as DepositCreateResponse, type DepositCreateParams as DepositCreateParams, };
217
+ }
218
+ //# sourceMappingURL=deposits.d.mts.map