@augustusbank/typescript-sdk 0.21.0 → 0.22.1

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 (216) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/client.d.mts +12 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -6
  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 +22 -17
  20. package/resources/account-programs.d.mts.map +1 -1
  21. package/resources/account-programs.d.ts +22 -17
  22. package/resources/account-programs.d.ts.map +1 -1
  23. package/resources/account-programs.js +2 -2
  24. package/resources/account-programs.js.map +1 -1
  25. package/resources/account-programs.mjs +2 -2
  26. package/resources/account-programs.mjs.map +1 -1
  27. package/resources/accounts.d.mts +226 -48
  28. package/resources/accounts.d.mts.map +1 -1
  29. package/resources/accounts.d.ts +226 -48
  30. package/resources/accounts.d.ts.map +1 -1
  31. package/resources/accounts.js +55 -2
  32. package/resources/accounts.js.map +1 -1
  33. package/resources/accounts.mjs +55 -2
  34. package/resources/accounts.mjs.map +1 -1
  35. package/resources/api-keys.d.mts +1 -1
  36. package/resources/api-keys.d.mts.map +1 -1
  37. package/resources/api-keys.d.ts +1 -1
  38. package/resources/api-keys.d.ts.map +1 -1
  39. package/resources/api-versions.d.mts +3 -0
  40. package/resources/api-versions.d.mts.map +1 -1
  41. package/resources/api-versions.d.ts +3 -0
  42. package/resources/api-versions.d.ts.map +1 -1
  43. package/resources/conversions.d.mts +36 -81
  44. package/resources/conversions.d.mts.map +1 -1
  45. package/resources/conversions.d.ts +36 -81
  46. package/resources/conversions.d.ts.map +1 -1
  47. package/resources/conversions.js +25 -1
  48. package/resources/conversions.js.map +1 -1
  49. package/resources/conversions.mjs +25 -1
  50. package/resources/conversions.mjs.map +1 -1
  51. package/resources/counterparties.d.mts +1042 -0
  52. package/resources/counterparties.d.mts.map +1 -0
  53. package/resources/counterparties.d.ts +1042 -0
  54. package/resources/counterparties.d.ts.map +1 -0
  55. package/resources/counterparties.js +45 -0
  56. package/resources/counterparties.js.map +1 -0
  57. package/resources/counterparties.mjs +41 -0
  58. package/resources/counterparties.mjs.map +1 -0
  59. package/resources/deposits.d.mts +48 -186
  60. package/resources/deposits.d.mts.map +1 -1
  61. package/resources/deposits.d.ts +48 -186
  62. package/resources/deposits.d.ts.map +1 -1
  63. package/resources/events.d.mts +3 -3
  64. package/resources/events.d.mts.map +1 -1
  65. package/resources/events.d.ts +3 -3
  66. package/resources/events.d.ts.map +1 -1
  67. package/resources/index.d.mts +5 -3
  68. package/resources/index.d.mts.map +1 -1
  69. package/resources/index.d.ts +5 -3
  70. package/resources/index.d.ts.map +1 -1
  71. package/resources/index.js +5 -1
  72. package/resources/index.js.map +1 -1
  73. package/resources/index.mjs +2 -0
  74. package/resources/index.mjs.map +1 -1
  75. package/resources/payouts.d.mts +133 -335
  76. package/resources/payouts.d.mts.map +1 -1
  77. package/resources/payouts.d.ts +133 -335
  78. package/resources/payouts.d.ts.map +1 -1
  79. package/resources/payouts.js +25 -0
  80. package/resources/payouts.js.map +1 -1
  81. package/resources/payouts.mjs +25 -0
  82. package/resources/payouts.mjs.map +1 -1
  83. package/resources/quotes/indicative.d.mts +7 -11
  84. package/resources/quotes/indicative.d.mts.map +1 -1
  85. package/resources/quotes/indicative.d.ts +7 -11
  86. package/resources/quotes/indicative.d.ts.map +1 -1
  87. package/resources/quotes/quotes.d.mts +4 -8
  88. package/resources/quotes/quotes.d.mts.map +1 -1
  89. package/resources/quotes/quotes.d.ts +4 -8
  90. package/resources/quotes/quotes.d.ts.map +1 -1
  91. package/resources/quotes/quotes.js.map +1 -1
  92. package/resources/quotes/quotes.mjs.map +1 -1
  93. package/resources/returns.d.mts +84 -39
  94. package/resources/returns.d.mts.map +1 -1
  95. package/resources/returns.d.ts +84 -39
  96. package/resources/returns.d.ts.map +1 -1
  97. package/resources/returns.js +22 -0
  98. package/resources/returns.js.map +1 -1
  99. package/resources/returns.mjs +22 -0
  100. package/resources/returns.mjs.map +1 -1
  101. package/resources/scopes.d.mts +4 -1
  102. package/resources/scopes.d.mts.map +1 -1
  103. package/resources/scopes.d.ts +4 -1
  104. package/resources/scopes.d.ts.map +1 -1
  105. package/resources/simulations/account-programs.d.mts +215 -0
  106. package/resources/simulations/account-programs.d.mts.map +1 -0
  107. package/resources/simulations/account-programs.d.ts +215 -0
  108. package/resources/simulations/account-programs.d.ts.map +1 -0
  109. package/resources/simulations/account-programs.js +96 -0
  110. package/resources/simulations/account-programs.js.map +1 -0
  111. package/resources/simulations/account-programs.mjs +92 -0
  112. package/resources/simulations/account-programs.mjs.map +1 -0
  113. package/resources/simulations/accounts.d.mts +209 -0
  114. package/resources/simulations/accounts.d.mts.map +1 -0
  115. package/resources/simulations/accounts.d.ts +209 -0
  116. package/resources/simulations/accounts.d.ts.map +1 -0
  117. package/resources/simulations/accounts.js +90 -0
  118. package/resources/simulations/accounts.js.map +1 -0
  119. package/resources/simulations/accounts.mjs +86 -0
  120. package/resources/simulations/accounts.mjs.map +1 -0
  121. package/resources/simulations/conversions.d.mts +54 -0
  122. package/resources/simulations/conversions.d.mts.map +1 -0
  123. package/resources/simulations/conversions.d.ts +54 -0
  124. package/resources/simulations/conversions.d.ts.map +1 -0
  125. package/resources/simulations/conversions.js +39 -0
  126. package/resources/simulations/conversions.js.map +1 -0
  127. package/resources/simulations/conversions.mjs +35 -0
  128. package/resources/simulations/conversions.mjs.map +1 -0
  129. package/resources/simulations/deposits.d.mts +202 -0
  130. package/resources/simulations/deposits.d.mts.map +1 -0
  131. package/resources/simulations/deposits.d.ts +202 -0
  132. package/resources/simulations/deposits.d.ts.map +1 -0
  133. package/resources/simulations/deposits.js +25 -0
  134. package/resources/simulations/deposits.js.map +1 -0
  135. package/resources/simulations/deposits.mjs +21 -0
  136. package/resources/simulations/deposits.mjs.map +1 -0
  137. package/resources/simulations/index.d.mts +7 -0
  138. package/resources/simulations/index.d.mts.map +1 -0
  139. package/resources/simulations/index.d.ts +7 -0
  140. package/resources/simulations/index.d.ts.map +1 -0
  141. package/resources/simulations/index.js +17 -0
  142. package/resources/simulations/index.js.map +1 -0
  143. package/resources/simulations/index.mjs +8 -0
  144. package/resources/simulations/index.mjs.map +1 -0
  145. package/resources/simulations/payouts.d.mts +62 -0
  146. package/resources/simulations/payouts.d.mts.map +1 -0
  147. package/resources/simulations/payouts.d.ts +62 -0
  148. package/resources/simulations/payouts.d.ts.map +1 -0
  149. package/resources/simulations/payouts.js +39 -0
  150. package/resources/simulations/payouts.js.map +1 -0
  151. package/resources/simulations/payouts.mjs +35 -0
  152. package/resources/simulations/payouts.mjs.map +1 -0
  153. package/resources/simulations/simulations.d.mts +26 -0
  154. package/resources/simulations/simulations.d.mts.map +1 -0
  155. package/resources/simulations/simulations.d.ts +26 -0
  156. package/resources/simulations/simulations.d.ts.map +1 -0
  157. package/resources/simulations/simulations.js +33 -0
  158. package/resources/simulations/simulations.js.map +1 -0
  159. package/resources/simulations/simulations.mjs +28 -0
  160. package/resources/simulations/simulations.mjs.map +1 -0
  161. package/resources/simulations.d.mts +2 -0
  162. package/resources/simulations.d.mts.map +1 -0
  163. package/resources/simulations.d.ts +2 -0
  164. package/resources/simulations.d.ts.map +1 -0
  165. package/resources/simulations.js +6 -0
  166. package/resources/simulations.js.map +1 -0
  167. package/resources/simulations.mjs +3 -0
  168. package/resources/simulations.mjs.map +1 -0
  169. package/resources/transactions.d.mts +342 -162
  170. package/resources/transactions.d.mts.map +1 -1
  171. package/resources/transactions.d.ts +342 -162
  172. package/resources/transactions.d.ts.map +1 -1
  173. package/resources/webhook-subscriptions.d.mts +61 -11
  174. package/resources/webhook-subscriptions.d.mts.map +1 -1
  175. package/resources/webhook-subscriptions.d.ts +61 -11
  176. package/resources/webhook-subscriptions.d.ts.map +1 -1
  177. package/resources/webhook-subscriptions.js +49 -0
  178. package/resources/webhook-subscriptions.js.map +1 -1
  179. package/resources/webhook-subscriptions.mjs +49 -0
  180. package/resources/webhook-subscriptions.mjs.map +1 -1
  181. package/resources/webhooks.d.mts +976 -978
  182. package/resources/webhooks.d.mts.map +1 -1
  183. package/resources/webhooks.d.ts +976 -978
  184. package/resources/webhooks.d.ts.map +1 -1
  185. package/src/client.ts +48 -8
  186. package/src/resources/account-holders.ts +1701 -1282
  187. package/src/resources/account-programs.ts +30 -19
  188. package/src/resources/accounts.ts +265 -50
  189. package/src/resources/api-keys.ts +3 -0
  190. package/src/resources/api-versions.ts +3 -0
  191. package/src/resources/conversions.ts +36 -93
  192. package/src/resources/counterparties.ts +3127 -0
  193. package/src/resources/deposits.ts +66 -269
  194. package/src/resources/events.ts +18 -12
  195. package/src/resources/index.ts +21 -4
  196. package/src/resources/payouts.ts +204 -439
  197. package/src/resources/quotes/indicative.ts +7 -12
  198. package/src/resources/quotes/quotes.ts +4 -9
  199. package/src/resources/returns.ts +144 -40
  200. package/src/resources/scopes.ts +7 -1
  201. package/src/resources/simulations/account-programs.ts +282 -0
  202. package/src/resources/simulations/accounts.ts +265 -0
  203. package/src/resources/simulations/conversions.ts +70 -0
  204. package/src/resources/simulations/deposits.ts +522 -0
  205. package/src/resources/simulations/index.ts +33 -0
  206. package/src/resources/simulations/payouts.ts +80 -0
  207. package/src/resources/simulations/simulations.ts +92 -0
  208. package/src/resources/simulations.ts +3 -0
  209. package/src/resources/transactions.ts +954 -206
  210. package/src/resources/webhook-subscriptions.ts +102 -36
  211. package/src/resources/webhooks.ts +1283 -1153
  212. package/src/version.ts +1 -1
  213. package/version.d.mts +1 -1
  214. package/version.d.ts +1 -1
  215. package/version.js +1 -1
  216. package/version.mjs +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-programs.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/account-programs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAItF;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;CAG3F;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,IAAI,EAAE,4BAA4B,CAAC;CACpC;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,IAAI,EAAE,4BAA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WAEG;QACH,mBAAmB,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,IAAI,EAAE,KAAK,CAAC;KACb;CACF;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,215 @@
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 AccountPrograms extends APIResource {
5
+ /**
6
+ * Creates a Mock-US USD account program owned by the caller merchant. This
7
+ * endpoint is unavailable in live production.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const accountProgram =
12
+ * await client.simulations.accountPrograms.create({
13
+ * label: 'x',
14
+ * });
15
+ * ```
16
+ */
17
+ create(body: AccountProgramCreateParams, options?: RequestOptions): APIPromise<AccountProgramCreateResponse>;
18
+ /**
19
+ * Closes an account program. All child accounts must be drained via the drain
20
+ * endpoint first. This endpoint is unavailable in live production.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const response =
25
+ * await client.simulations.accountPrograms.close(
26
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
27
+ * { reason: 'aml_risk_fraud' },
28
+ * );
29
+ * ```
30
+ */
31
+ close(id: string, body: AccountProgramCloseParams, options?: RequestOptions): APIPromise<AccountProgramCloseResponse>;
32
+ /**
33
+ * Creates outbound payouts that drain the residual balance of every frozen account
34
+ * under the program to the provided destination. The program must be frozen. Every
35
+ * returned `payout_ids[i]` must be settled via
36
+ * `POST /v1/simulations/payouts/{id}/send` for the program balance to reach zero.
37
+ * This endpoint is unavailable in live production.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const response =
42
+ * await client.simulations.accountPrograms.drain(
43
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
44
+ * {
45
+ * destination: {
46
+ * account_holder_name: 'Acme Sandbox Ltd.',
47
+ * iban: 'DE89370400440532013000',
48
+ * type: 'iban',
49
+ * },
50
+ * },
51
+ * );
52
+ * ```
53
+ */
54
+ drain(id: string, body: AccountProgramDrainParams, options?: RequestOptions): APIPromise<AccountProgramDrainResponse>;
55
+ /**
56
+ * Freezes an existing account program and its virtual accounts. This endpoint is
57
+ * unavailable in live production.
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const response =
62
+ * await client.simulations.accountPrograms.freeze(
63
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
64
+ * );
65
+ * ```
66
+ */
67
+ freeze(id: string, options?: RequestOptions): APIPromise<AccountProgramFreezeResponse>;
68
+ /**
69
+ * Unfreezes an existing account program and its virtual accounts. This endpoint is
70
+ * unavailable in live production.
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * const response =
75
+ * await client.simulations.accountPrograms.unfreeze(
76
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
77
+ * );
78
+ * ```
79
+ */
80
+ unfreeze(id: string, options?: RequestOptions): APIPromise<AccountProgramUnfreezeResponse>;
81
+ }
82
+ export interface AccountProgramCreateResponse {
83
+ /**
84
+ * Account program whose lifecycle is being simulated.
85
+ */
86
+ account_program_id: string;
87
+ /**
88
+ * Resource type discriminator.
89
+ */
90
+ type: 'account_program_simulation';
91
+ }
92
+ export interface AccountProgramCloseResponse {
93
+ /**
94
+ * Account program whose lifecycle is being simulated.
95
+ */
96
+ account_program_id: string;
97
+ /**
98
+ * Resource type discriminator.
99
+ */
100
+ type: 'account_program_simulation';
101
+ }
102
+ export interface AccountProgramDrainResponse {
103
+ /**
104
+ * Account program whose lifecycle is being simulated.
105
+ */
106
+ account_program_id: string;
107
+ /**
108
+ * Payouts created by the drain. Feed each id to
109
+ * `POST /v1/simulations/payouts/{id}/send` to settle.
110
+ */
111
+ payout_ids: Array<string>;
112
+ /**
113
+ * Resource type discriminator.
114
+ */
115
+ type: 'account_program_simulation';
116
+ }
117
+ export interface AccountProgramFreezeResponse {
118
+ /**
119
+ * Account program whose lifecycle is being simulated.
120
+ */
121
+ account_program_id: string;
122
+ /**
123
+ * Resource type discriminator.
124
+ */
125
+ type: 'account_program_simulation';
126
+ }
127
+ export interface AccountProgramUnfreezeResponse {
128
+ /**
129
+ * Account program whose lifecycle is being simulated.
130
+ */
131
+ account_program_id: string;
132
+ /**
133
+ * Resource type discriminator.
134
+ */
135
+ type: 'account_program_simulation';
136
+ }
137
+ export interface AccountProgramCreateParams {
138
+ /**
139
+ * Human-readable label for the account program.
140
+ */
141
+ label: string;
142
+ }
143
+ export interface AccountProgramCloseParams {
144
+ /**
145
+ * Reason for closing the account program.
146
+ */
147
+ reason: 'aml_risk_fraud' | 'client_request';
148
+ }
149
+ export interface AccountProgramDrainParams {
150
+ /**
151
+ * Fiat financial address to which the residual balance of every frozen account
152
+ * under the program is drained.
153
+ */
154
+ destination: AccountProgramDrainParams.IbanFinancialAddressRequest | AccountProgramDrainParams.SortCodeFinancialAddress | AccountProgramDrainParams.AbaFinancialAddress;
155
+ }
156
+ export declare namespace AccountProgramDrainParams {
157
+ interface IbanFinancialAddressRequest {
158
+ /**
159
+ * Name of the account holder.
160
+ */
161
+ account_holder_name: string;
162
+ /**
163
+ * International Bank Account Number.
164
+ */
165
+ iban: string;
166
+ /**
167
+ * Discriminator for IBAN financial address.
168
+ */
169
+ type: 'iban';
170
+ /**
171
+ * Bank Identifier Code. Optional; omit or send null if not provided.
172
+ */
173
+ bic?: string | null;
174
+ }
175
+ interface SortCodeFinancialAddress {
176
+ /**
177
+ * Name of the account holder.
178
+ */
179
+ account_holder_name: string;
180
+ /**
181
+ * UK account number (8 digits).
182
+ */
183
+ account_number: string;
184
+ /**
185
+ * UK sort code (6 digits).
186
+ */
187
+ sort_code: string;
188
+ /**
189
+ * Discriminator for UK sort code financial address.
190
+ */
191
+ type: 'sort_code';
192
+ }
193
+ interface AbaFinancialAddress {
194
+ /**
195
+ * Name of the account holder.
196
+ */
197
+ account_holder_name: string;
198
+ /**
199
+ * Bank account number.
200
+ */
201
+ account_number: string;
202
+ /**
203
+ * ABA routing number (9 digits).
204
+ */
205
+ routing_number: string;
206
+ /**
207
+ * Discriminator for ABA wire financial address.
208
+ */
209
+ type: 'aba';
210
+ }
211
+ }
212
+ export declare namespace AccountPrograms {
213
+ export { type AccountProgramCreateResponse as AccountProgramCreateResponse, type AccountProgramCloseResponse as AccountProgramCloseResponse, type AccountProgramDrainResponse as AccountProgramDrainResponse, type AccountProgramFreezeResponse as AccountProgramFreezeResponse, type AccountProgramUnfreezeResponse as AccountProgramUnfreezeResponse, type AccountProgramCreateParams as AccountProgramCreateParams, type AccountProgramCloseParams as AccountProgramCloseParams, type AccountProgramDrainParams as AccountProgramDrainParams, };
214
+ }
215
+ //# sourceMappingURL=account-programs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-programs.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/account-programs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;OAYG;IACH,KAAK,CACH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3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,96 @@
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.AccountPrograms = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class AccountPrograms extends resource_1.APIResource {
8
+ /**
9
+ * Creates a Mock-US USD account program owned by the caller merchant. This
10
+ * endpoint is unavailable in live production.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const accountProgram =
15
+ * await client.simulations.accountPrograms.create({
16
+ * label: 'x',
17
+ * });
18
+ * ```
19
+ */
20
+ create(body, options) {
21
+ return this._client.post('/v1/simulations/account_programs', { body, ...options });
22
+ }
23
+ /**
24
+ * Closes an account program. All child accounts must be drained via the drain
25
+ * endpoint first. This endpoint is unavailable in live production.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const response =
30
+ * await client.simulations.accountPrograms.close(
31
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
32
+ * { reason: 'aml_risk_fraud' },
33
+ * );
34
+ * ```
35
+ */
36
+ close(id, body, options) {
37
+ return this._client.post((0, path_1.path) `/v1/simulations/account_programs/${id}/close`, { body, ...options });
38
+ }
39
+ /**
40
+ * Creates outbound payouts that drain the residual balance of every frozen account
41
+ * under the program to the provided destination. The program must be frozen. Every
42
+ * returned `payout_ids[i]` must be settled via
43
+ * `POST /v1/simulations/payouts/{id}/send` for the program balance to reach zero.
44
+ * This endpoint is unavailable in live production.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const response =
49
+ * await client.simulations.accountPrograms.drain(
50
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
51
+ * {
52
+ * destination: {
53
+ * account_holder_name: 'Acme Sandbox Ltd.',
54
+ * iban: 'DE89370400440532013000',
55
+ * type: 'iban',
56
+ * },
57
+ * },
58
+ * );
59
+ * ```
60
+ */
61
+ drain(id, body, options) {
62
+ return this._client.post((0, path_1.path) `/v1/simulations/account_programs/${id}/drain`, { body, ...options });
63
+ }
64
+ /**
65
+ * Freezes an existing account program and its virtual accounts. This endpoint is
66
+ * unavailable in live production.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * const response =
71
+ * await client.simulations.accountPrograms.freeze(
72
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
73
+ * );
74
+ * ```
75
+ */
76
+ freeze(id, options) {
77
+ return this._client.post((0, path_1.path) `/v1/simulations/account_programs/${id}/freeze`, options);
78
+ }
79
+ /**
80
+ * Unfreezes an existing account program and its virtual accounts. This endpoint is
81
+ * unavailable in live production.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const response =
86
+ * await client.simulations.accountPrograms.unfreeze(
87
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
88
+ * );
89
+ * ```
90
+ */
91
+ unfreeze(id, options) {
92
+ return this._client.post((0, path_1.path) `/v1/simulations/account_programs/${id}/unfreeze`, options);
93
+ }
94
+ }
95
+ exports.AccountPrograms = AccountPrograms;
96
+ //# sourceMappingURL=account-programs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-programs.js","sourceRoot":"","sources":["../../src/resources/simulations/account-programs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CACH,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF;AAtGD,0CAsGC"}
@@ -0,0 +1,92 @@
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 AccountPrograms extends APIResource {
5
+ /**
6
+ * Creates a Mock-US USD account program owned by the caller merchant. This
7
+ * endpoint is unavailable in live production.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const accountProgram =
12
+ * await client.simulations.accountPrograms.create({
13
+ * label: 'x',
14
+ * });
15
+ * ```
16
+ */
17
+ create(body, options) {
18
+ return this._client.post('/v1/simulations/account_programs', { body, ...options });
19
+ }
20
+ /**
21
+ * Closes an account program. All child accounts must be drained via the drain
22
+ * endpoint first. This endpoint is unavailable in live production.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const response =
27
+ * await client.simulations.accountPrograms.close(
28
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
29
+ * { reason: 'aml_risk_fraud' },
30
+ * );
31
+ * ```
32
+ */
33
+ close(id, body, options) {
34
+ return this._client.post(path `/v1/simulations/account_programs/${id}/close`, { body, ...options });
35
+ }
36
+ /**
37
+ * Creates outbound payouts that drain the residual balance of every frozen account
38
+ * under the program to the provided destination. The program must be frozen. Every
39
+ * returned `payout_ids[i]` must be settled via
40
+ * `POST /v1/simulations/payouts/{id}/send` for the program balance to reach zero.
41
+ * This endpoint is unavailable in live production.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const response =
46
+ * await client.simulations.accountPrograms.drain(
47
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
48
+ * {
49
+ * destination: {
50
+ * account_holder_name: 'Acme Sandbox Ltd.',
51
+ * iban: 'DE89370400440532013000',
52
+ * type: 'iban',
53
+ * },
54
+ * },
55
+ * );
56
+ * ```
57
+ */
58
+ drain(id, body, options) {
59
+ return this._client.post(path `/v1/simulations/account_programs/${id}/drain`, { body, ...options });
60
+ }
61
+ /**
62
+ * Freezes an existing account program and its virtual accounts. This endpoint is
63
+ * unavailable in live production.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const response =
68
+ * await client.simulations.accountPrograms.freeze(
69
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
70
+ * );
71
+ * ```
72
+ */
73
+ freeze(id, options) {
74
+ return this._client.post(path `/v1/simulations/account_programs/${id}/freeze`, options);
75
+ }
76
+ /**
77
+ * Unfreezes an existing account program and its virtual accounts. This endpoint is
78
+ * unavailable in live production.
79
+ *
80
+ * @example
81
+ * ```ts
82
+ * const response =
83
+ * await client.simulations.accountPrograms.unfreeze(
84
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
85
+ * );
86
+ * ```
87
+ */
88
+ unfreeze(id, options) {
89
+ return this._client.post(path `/v1/simulations/account_programs/${id}/unfreeze`, options);
90
+ }
91
+ }
92
+ //# sourceMappingURL=account-programs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-programs.mjs","sourceRoot":"","sources":["../../src/resources/simulations/account-programs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oCAAoC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CACH,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oCAAoC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oCAAoC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oCAAoC,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF"}
@@ -0,0 +1,209 @@
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 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
+ * iban: 'DE89370400440532013000',
44
+ * type: 'iban',
45
+ * },
46
+ * },
47
+ * );
48
+ * ```
49
+ */
50
+ drain(id: string, body: AccountDrainParams, options?: RequestOptions): APIPromise<AccountDrainResponse>;
51
+ /**
52
+ * Freezes an existing operating (DDA) account. This endpoint is unavailable in
53
+ * live production.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const response = await client.simulations.accounts.freeze(
58
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
59
+ * );
60
+ * ```
61
+ */
62
+ freeze(id: string, options?: RequestOptions): APIPromise<AccountFreezeResponse>;
63
+ /**
64
+ * Unfreezes an existing operating (DDA) account. This endpoint is unavailable in
65
+ * live production.
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * const response = await client.simulations.accounts.unfreeze(
70
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
71
+ * );
72
+ * ```
73
+ */
74
+ unfreeze(id: string, options?: RequestOptions): APIPromise<AccountUnfreezeResponse>;
75
+ }
76
+ export interface AccountCreateResponse {
77
+ /**
78
+ * Account whose lifecycle is being simulated.
79
+ */
80
+ account_id: string;
81
+ /**
82
+ * Resource type discriminator.
83
+ */
84
+ type: 'account_simulation';
85
+ }
86
+ export interface AccountCloseResponse {
87
+ /**
88
+ * Account whose lifecycle is being simulated.
89
+ */
90
+ account_id: string;
91
+ /**
92
+ * Resource type discriminator.
93
+ */
94
+ type: 'account_simulation';
95
+ }
96
+ export interface AccountDrainResponse {
97
+ /**
98
+ * Account whose lifecycle is being simulated.
99
+ */
100
+ account_id: string;
101
+ /**
102
+ * Payout created by the drain. Feed to `POST /v1/simulations/payouts/{id}/send` to
103
+ * settle.
104
+ */
105
+ payout_id: string;
106
+ /**
107
+ * Resource type discriminator.
108
+ */
109
+ type: 'account_simulation';
110
+ }
111
+ export interface AccountFreezeResponse {
112
+ /**
113
+ * Account whose lifecycle is being simulated.
114
+ */
115
+ account_id: string;
116
+ /**
117
+ * Resource type discriminator.
118
+ */
119
+ type: 'account_simulation';
120
+ }
121
+ export interface AccountUnfreezeResponse {
122
+ /**
123
+ * Account whose lifecycle is being simulated.
124
+ */
125
+ account_id: string;
126
+ /**
127
+ * Resource type discriminator.
128
+ */
129
+ type: 'account_simulation';
130
+ }
131
+ export interface AccountCreateParams {
132
+ /**
133
+ * Human-readable label for the operating account.
134
+ */
135
+ label: string;
136
+ }
137
+ export interface AccountCloseParams {
138
+ /**
139
+ * Reason for closing the account.
140
+ */
141
+ reason: 'aml_risk_fraud' | 'client_request';
142
+ }
143
+ export interface AccountDrainParams {
144
+ /**
145
+ * Fiat financial address to which the residual balance of the frozen account is
146
+ * drained.
147
+ */
148
+ destination: AccountDrainParams.IbanFinancialAddressRequest | AccountDrainParams.SortCodeFinancialAddress | AccountDrainParams.AbaFinancialAddress;
149
+ }
150
+ export declare namespace AccountDrainParams {
151
+ interface IbanFinancialAddressRequest {
152
+ /**
153
+ * Name of the account holder.
154
+ */
155
+ account_holder_name: string;
156
+ /**
157
+ * International Bank Account Number.
158
+ */
159
+ iban: string;
160
+ /**
161
+ * Discriminator for IBAN financial address.
162
+ */
163
+ type: 'iban';
164
+ /**
165
+ * Bank Identifier Code. Optional; omit or send null if not provided.
166
+ */
167
+ bic?: string | null;
168
+ }
169
+ interface SortCodeFinancialAddress {
170
+ /**
171
+ * Name of the account holder.
172
+ */
173
+ account_holder_name: string;
174
+ /**
175
+ * UK account number (8 digits).
176
+ */
177
+ account_number: string;
178
+ /**
179
+ * UK sort code (6 digits).
180
+ */
181
+ sort_code: string;
182
+ /**
183
+ * Discriminator for UK sort code financial address.
184
+ */
185
+ type: 'sort_code';
186
+ }
187
+ interface AbaFinancialAddress {
188
+ /**
189
+ * Name of the account holder.
190
+ */
191
+ account_holder_name: string;
192
+ /**
193
+ * Bank account number.
194
+ */
195
+ account_number: string;
196
+ /**
197
+ * ABA routing number (9 digits).
198
+ */
199
+ routing_number: string;
200
+ /**
201
+ * Discriminator for ABA wire financial address.
202
+ */
203
+ type: 'aba';
204
+ }
205
+ }
206
+ export declare namespace Accounts {
207
+ 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, };
208
+ }
209
+ //# sourceMappingURL=accounts.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/accounts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIvG;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIvG;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI/E;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGpF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;I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