@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
@@ -19,7 +19,7 @@ export declare namespace ScopeListResponse {
19
19
  /**
20
20
  * Scope identifier in `resource:action` format.
21
21
  */
22
- id: 'payouts:read' | 'payouts:write' | 'deposits:read' | 'returns:read' | 'returns:write' | 'conversions:read' | 'conversions:write' | 'quotes:read' | 'accounts:read' | 'accounts:write' | 'account_programs:read' | 'account_holders:read' | 'account_holders:write' | 'webhook_subscriptions:read' | 'webhook_subscriptions:write' | 'events:read' | 'webhook_deliveries:read' | 'webhook_deliveries:write' | 'transactions:read';
22
+ id: 'payouts:read' | 'payouts:write' | 'deposits:read' | 'returns:read' | 'returns:write' | 'conversions:read' | 'conversions:write' | 'quotes:read' | 'accounts:read' | 'accounts:write' | 'account_programs:read' | 'account_holders:read' | 'account_holders:write' | 'counterparties:read' | 'counterparties:write' | 'webhook_subscriptions:read' | 'webhook_subscriptions:write' | 'events:read' | 'webhook_deliveries:read' | 'webhook_deliveries:write' | 'transactions:read' | 'simulations:write';
23
23
  /**
24
24
  * Action category.
25
25
  */
@@ -40,6 +40,9 @@ export declare namespace ScopeListResponse {
40
40
  * Resource the scope applies to.
41
41
  */
42
42
  resource: string;
43
+ /**
44
+ * Resource type discriminator.
45
+ */
43
46
  type: 'scope';
44
47
  }
45
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/resources/scopes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAG9D;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAEpC,QAAQ,EAAE,OAAO,CAAC;IAElB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EACE,cAAc,GACd,eAAe,GACf,eAAe,GACf,cAAc,GACd,eAAe,GACf,kBAAkB,GAClB,mBAAmB,GACnB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,uBAAuB,GACvB,sBAAsB,GACtB,uBAAuB,GACvB,4BAA4B,GAC5B,6BAA6B,GAC7B,aAAa,GACb,yBAAyB,GACzB,0BAA0B,GAC1B,mBAAmB,CAAC;QAExB;;WAEG;QACH,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QAEzB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,aAAa,EAAE,MAAM,GAAG,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AAE,MAAM,GAAG,IAAI,CAAC;QAE7B;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,OAAO,CAAC;KACf;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD"}
@@ -0,0 +1,281 @@
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 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
+ * type: 'fbo-program',
15
+ * });
16
+ * ```
17
+ */
18
+ create(body: AccountProgramCreateParams, options?: RequestOptions): APIPromise<AccountProgramCreateResponse>;
19
+ /**
20
+ * Closes an account program. All child accounts must be drained via the drain
21
+ * endpoint first. This endpoint is unavailable in live production.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response =
26
+ * await client.simulations.accountPrograms.close(
27
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
28
+ * { reason: 'aml_risk_fraud' },
29
+ * );
30
+ * ```
31
+ */
32
+ close(id: string, body: AccountProgramCloseParams, options?: RequestOptions): APIPromise<AccountProgramCloseResponse>;
33
+ /**
34
+ * Creates outbound payouts that drain the residual balance of every frozen account
35
+ * under the program to the provided destination. The program must be frozen. Every
36
+ * returned `payout_ids[i]` must be settled via
37
+ * `POST /v1/simulations/payouts/{id}/send` for the program balance to reach zero.
38
+ * This endpoint is unavailable in live production.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const response =
43
+ * await client.simulations.accountPrograms.drain(
44
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
45
+ * {
46
+ * destination: {
47
+ * account_holder_name: 'Acme Sandbox Ltd.',
48
+ * bic: 'COBADEFFXXX',
49
+ * iban: 'DE89370400440532013000',
50
+ * type: 'iban',
51
+ * },
52
+ * },
53
+ * );
54
+ * ```
55
+ */
56
+ drain(id: string, body: AccountProgramDrainParams, options?: RequestOptions): APIPromise<AccountProgramDrainResponse>;
57
+ /**
58
+ * Freezes an existing account program and its virtual accounts. This endpoint is
59
+ * unavailable in live production.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const response =
64
+ * await client.simulations.accountPrograms.freeze(
65
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
66
+ * );
67
+ * ```
68
+ */
69
+ freeze(id: string, options?: RequestOptions): APIPromise<AccountProgramFreezeResponse>;
70
+ /**
71
+ * Unfreezes an existing account program and its virtual accounts. This endpoint is
72
+ * unavailable in live production.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const response =
77
+ * await client.simulations.accountPrograms.unfreeze(
78
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
79
+ * );
80
+ * ```
81
+ */
82
+ unfreeze(id: string, options?: RequestOptions): APIPromise<AccountProgramUnfreezeResponse>;
83
+ }
84
+ export interface AccountProgramCreateResponse {
85
+ /**
86
+ * Account program whose lifecycle is being simulated.
87
+ */
88
+ account_program_id: string;
89
+ /**
90
+ * Account program lifecycle event submitted to the sandbox.
91
+ */
92
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
93
+ /**
94
+ * Payouts created by a drain event. Feed each id to
95
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
96
+ */
97
+ payout_ids: Array<string> | null;
98
+ /**
99
+ * Whether the simulation submission was successful.
100
+ */
101
+ success: boolean;
102
+ /**
103
+ * Resource type discriminator.
104
+ */
105
+ type: 'account_program_simulation';
106
+ }
107
+ export interface AccountProgramCloseResponse {
108
+ /**
109
+ * Account program whose lifecycle is being simulated.
110
+ */
111
+ account_program_id: string;
112
+ /**
113
+ * Account program lifecycle event submitted to the sandbox.
114
+ */
115
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
116
+ /**
117
+ * Payouts created by a drain event. Feed each id to
118
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
119
+ */
120
+ payout_ids: Array<string> | null;
121
+ /**
122
+ * Whether the simulation submission was successful.
123
+ */
124
+ success: boolean;
125
+ /**
126
+ * Resource type discriminator.
127
+ */
128
+ type: 'account_program_simulation';
129
+ }
130
+ export interface AccountProgramDrainResponse {
131
+ /**
132
+ * Account program whose lifecycle is being simulated.
133
+ */
134
+ account_program_id: string;
135
+ /**
136
+ * Account program lifecycle event submitted to the sandbox.
137
+ */
138
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
139
+ /**
140
+ * Payouts created by a drain event. Feed each id to
141
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
142
+ */
143
+ payout_ids: Array<string> | null;
144
+ /**
145
+ * Whether the simulation submission was successful.
146
+ */
147
+ success: boolean;
148
+ /**
149
+ * Resource type discriminator.
150
+ */
151
+ type: 'account_program_simulation';
152
+ }
153
+ export interface AccountProgramFreezeResponse {
154
+ /**
155
+ * Account program whose lifecycle is being simulated.
156
+ */
157
+ account_program_id: string;
158
+ /**
159
+ * Account program lifecycle event submitted to the sandbox.
160
+ */
161
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
162
+ /**
163
+ * Payouts created by a drain event. Feed each id to
164
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
165
+ */
166
+ payout_ids: Array<string> | null;
167
+ /**
168
+ * Whether the simulation submission was successful.
169
+ */
170
+ success: boolean;
171
+ /**
172
+ * Resource type discriminator.
173
+ */
174
+ type: 'account_program_simulation';
175
+ }
176
+ export interface AccountProgramUnfreezeResponse {
177
+ /**
178
+ * Account program whose lifecycle is being simulated.
179
+ */
180
+ account_program_id: string;
181
+ /**
182
+ * Account program lifecycle event submitted to the sandbox.
183
+ */
184
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
185
+ /**
186
+ * Payouts created by a drain event. Feed each id to
187
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
188
+ */
189
+ payout_ids: Array<string> | null;
190
+ /**
191
+ * Whether the simulation submission was successful.
192
+ */
193
+ success: boolean;
194
+ /**
195
+ * Resource type discriminator.
196
+ */
197
+ type: 'account_program_simulation';
198
+ }
199
+ export interface AccountProgramCreateParams {
200
+ /**
201
+ * Human-readable label for the account program.
202
+ */
203
+ label: string;
204
+ /**
205
+ * Account program type.
206
+ */
207
+ type: 'fbo-program' | 'fbo-sponsored';
208
+ }
209
+ export interface AccountProgramCloseParams {
210
+ /**
211
+ * Reason for closing the account program.
212
+ */
213
+ reason: 'aml_risk_fraud' | 'client_request';
214
+ }
215
+ export interface AccountProgramDrainParams {
216
+ /**
217
+ * Fiat financial address to which the residual balance of every frozen account
218
+ * under the program is drained.
219
+ */
220
+ destination: AccountProgramDrainParams.IbanFinancialAddress | AccountProgramDrainParams.SortCodeFinancialAddress | AccountProgramDrainParams.AbaFinancialAddress;
221
+ }
222
+ export declare namespace AccountProgramDrainParams {
223
+ interface IbanFinancialAddress {
224
+ /**
225
+ * Name of the account holder.
226
+ */
227
+ account_holder_name: string;
228
+ /**
229
+ * Bank Identifier Code, or null if not provided.
230
+ */
231
+ bic: string | null;
232
+ /**
233
+ * International Bank Account Number.
234
+ */
235
+ iban: string;
236
+ /**
237
+ * Discriminator for IBAN financial address.
238
+ */
239
+ type: 'iban';
240
+ }
241
+ interface SortCodeFinancialAddress {
242
+ /**
243
+ * Name of the account holder.
244
+ */
245
+ account_holder_name: string;
246
+ /**
247
+ * UK account number (8 digits).
248
+ */
249
+ account_number: string;
250
+ /**
251
+ * UK sort code (6 digits).
252
+ */
253
+ sort_code: string;
254
+ /**
255
+ * Discriminator for UK sort code financial address.
256
+ */
257
+ type: 'sort_code';
258
+ }
259
+ interface AbaFinancialAddress {
260
+ /**
261
+ * Name of the account holder.
262
+ */
263
+ account_holder_name: string;
264
+ /**
265
+ * Bank account number.
266
+ */
267
+ account_number: string;
268
+ /**
269
+ * ABA routing number (9 digits).
270
+ */
271
+ routing_number: string;
272
+ /**
273
+ * Discriminator for ABA wire financial address.
274
+ */
275
+ type: 'aba';
276
+ }
277
+ }
278
+ export declare namespace AccountPrograms {
279
+ 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, };
280
+ }
281
+ //# sourceMappingURL=account-programs.d.mts.map
@@ -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;;;;;;;;;;;;OAYG;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;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,IAAI,EA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AE5B;;WAEG;QACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;QAEnB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,wBAAwB;QACvC;;WAEG;QACH,mBAAmB,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EAAE,WAAW,CAAC;KACnB;IAED,UAAiB,mBAAmB;QAClC;;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,281 @@
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
+ * type: 'fbo-program',
15
+ * });
16
+ * ```
17
+ */
18
+ create(body: AccountProgramCreateParams, options?: RequestOptions): APIPromise<AccountProgramCreateResponse>;
19
+ /**
20
+ * Closes an account program. All child accounts must be drained via the drain
21
+ * endpoint first. This endpoint is unavailable in live production.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response =
26
+ * await client.simulations.accountPrograms.close(
27
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
28
+ * { reason: 'aml_risk_fraud' },
29
+ * );
30
+ * ```
31
+ */
32
+ close(id: string, body: AccountProgramCloseParams, options?: RequestOptions): APIPromise<AccountProgramCloseResponse>;
33
+ /**
34
+ * Creates outbound payouts that drain the residual balance of every frozen account
35
+ * under the program to the provided destination. The program must be frozen. Every
36
+ * returned `payout_ids[i]` must be settled via
37
+ * `POST /v1/simulations/payouts/{id}/send` for the program balance to reach zero.
38
+ * This endpoint is unavailable in live production.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const response =
43
+ * await client.simulations.accountPrograms.drain(
44
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
45
+ * {
46
+ * destination: {
47
+ * account_holder_name: 'Acme Sandbox Ltd.',
48
+ * bic: 'COBADEFFXXX',
49
+ * iban: 'DE89370400440532013000',
50
+ * type: 'iban',
51
+ * },
52
+ * },
53
+ * );
54
+ * ```
55
+ */
56
+ drain(id: string, body: AccountProgramDrainParams, options?: RequestOptions): APIPromise<AccountProgramDrainResponse>;
57
+ /**
58
+ * Freezes an existing account program and its virtual accounts. This endpoint is
59
+ * unavailable in live production.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const response =
64
+ * await client.simulations.accountPrograms.freeze(
65
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
66
+ * );
67
+ * ```
68
+ */
69
+ freeze(id: string, options?: RequestOptions): APIPromise<AccountProgramFreezeResponse>;
70
+ /**
71
+ * Unfreezes an existing account program and its virtual accounts. This endpoint is
72
+ * unavailable in live production.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const response =
77
+ * await client.simulations.accountPrograms.unfreeze(
78
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
79
+ * );
80
+ * ```
81
+ */
82
+ unfreeze(id: string, options?: RequestOptions): APIPromise<AccountProgramUnfreezeResponse>;
83
+ }
84
+ export interface AccountProgramCreateResponse {
85
+ /**
86
+ * Account program whose lifecycle is being simulated.
87
+ */
88
+ account_program_id: string;
89
+ /**
90
+ * Account program lifecycle event submitted to the sandbox.
91
+ */
92
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
93
+ /**
94
+ * Payouts created by a drain event. Feed each id to
95
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
96
+ */
97
+ payout_ids: Array<string> | null;
98
+ /**
99
+ * Whether the simulation submission was successful.
100
+ */
101
+ success: boolean;
102
+ /**
103
+ * Resource type discriminator.
104
+ */
105
+ type: 'account_program_simulation';
106
+ }
107
+ export interface AccountProgramCloseResponse {
108
+ /**
109
+ * Account program whose lifecycle is being simulated.
110
+ */
111
+ account_program_id: string;
112
+ /**
113
+ * Account program lifecycle event submitted to the sandbox.
114
+ */
115
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
116
+ /**
117
+ * Payouts created by a drain event. Feed each id to
118
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
119
+ */
120
+ payout_ids: Array<string> | null;
121
+ /**
122
+ * Whether the simulation submission was successful.
123
+ */
124
+ success: boolean;
125
+ /**
126
+ * Resource type discriminator.
127
+ */
128
+ type: 'account_program_simulation';
129
+ }
130
+ export interface AccountProgramDrainResponse {
131
+ /**
132
+ * Account program whose lifecycle is being simulated.
133
+ */
134
+ account_program_id: string;
135
+ /**
136
+ * Account program lifecycle event submitted to the sandbox.
137
+ */
138
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
139
+ /**
140
+ * Payouts created by a drain event. Feed each id to
141
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
142
+ */
143
+ payout_ids: Array<string> | null;
144
+ /**
145
+ * Whether the simulation submission was successful.
146
+ */
147
+ success: boolean;
148
+ /**
149
+ * Resource type discriminator.
150
+ */
151
+ type: 'account_program_simulation';
152
+ }
153
+ export interface AccountProgramFreezeResponse {
154
+ /**
155
+ * Account program whose lifecycle is being simulated.
156
+ */
157
+ account_program_id: string;
158
+ /**
159
+ * Account program lifecycle event submitted to the sandbox.
160
+ */
161
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
162
+ /**
163
+ * Payouts created by a drain event. Feed each id to
164
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
165
+ */
166
+ payout_ids: Array<string> | null;
167
+ /**
168
+ * Whether the simulation submission was successful.
169
+ */
170
+ success: boolean;
171
+ /**
172
+ * Resource type discriminator.
173
+ */
174
+ type: 'account_program_simulation';
175
+ }
176
+ export interface AccountProgramUnfreezeResponse {
177
+ /**
178
+ * Account program whose lifecycle is being simulated.
179
+ */
180
+ account_program_id: string;
181
+ /**
182
+ * Account program lifecycle event submitted to the sandbox.
183
+ */
184
+ event: 'create' | 'freeze' | 'unfreeze' | 'close' | 'drain';
185
+ /**
186
+ * Payouts created by a drain event. Feed each id to
187
+ * `POST /v1/simulations/payouts/{id}/send` to settle. `null` for non-drain events.
188
+ */
189
+ payout_ids: Array<string> | null;
190
+ /**
191
+ * Whether the simulation submission was successful.
192
+ */
193
+ success: boolean;
194
+ /**
195
+ * Resource type discriminator.
196
+ */
197
+ type: 'account_program_simulation';
198
+ }
199
+ export interface AccountProgramCreateParams {
200
+ /**
201
+ * Human-readable label for the account program.
202
+ */
203
+ label: string;
204
+ /**
205
+ * Account program type.
206
+ */
207
+ type: 'fbo-program' | 'fbo-sponsored';
208
+ }
209
+ export interface AccountProgramCloseParams {
210
+ /**
211
+ * Reason for closing the account program.
212
+ */
213
+ reason: 'aml_risk_fraud' | 'client_request';
214
+ }
215
+ export interface AccountProgramDrainParams {
216
+ /**
217
+ * Fiat financial address to which the residual balance of every frozen account
218
+ * under the program is drained.
219
+ */
220
+ destination: AccountProgramDrainParams.IbanFinancialAddress | AccountProgramDrainParams.SortCodeFinancialAddress | AccountProgramDrainParams.AbaFinancialAddress;
221
+ }
222
+ export declare namespace AccountProgramDrainParams {
223
+ interface IbanFinancialAddress {
224
+ /**
225
+ * Name of the account holder.
226
+ */
227
+ account_holder_name: string;
228
+ /**
229
+ * Bank Identifier Code, or null if not provided.
230
+ */
231
+ bic: string | null;
232
+ /**
233
+ * International Bank Account Number.
234
+ */
235
+ iban: string;
236
+ /**
237
+ * Discriminator for IBAN financial address.
238
+ */
239
+ type: 'iban';
240
+ }
241
+ interface SortCodeFinancialAddress {
242
+ /**
243
+ * Name of the account holder.
244
+ */
245
+ account_holder_name: string;
246
+ /**
247
+ * UK account number (8 digits).
248
+ */
249
+ account_number: string;
250
+ /**
251
+ * UK sort code (6 digits).
252
+ */
253
+ sort_code: string;
254
+ /**
255
+ * Discriminator for UK sort code financial address.
256
+ */
257
+ type: 'sort_code';
258
+ }
259
+ interface AbaFinancialAddress {
260
+ /**
261
+ * Name of the account holder.
262
+ */
263
+ account_holder_name: string;
264
+ /**
265
+ * Bank account number.
266
+ */
267
+ account_number: string;
268
+ /**
269
+ * ABA routing number (9 digits).
270
+ */
271
+ routing_number: string;
272
+ /**
273
+ * Discriminator for ABA wire financial address.
274
+ */
275
+ type: 'aba';
276
+ }
277
+ }
278
+ export declare namespace AccountPrograms {
279
+ 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, };
280
+ }
281
+ //# 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;;;;;;;;;;;;OAYG;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;;;;;;;;;;;;;;;;;;;;;;OAsBG;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,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;IAE5D;;;OAGG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IA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