@augustusbank/typescript-sdk 0.22.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.
- package/CHANGELOG.md +19 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-programs.d.mts +21 -16
- package/resources/account-programs.d.mts.map +1 -1
- package/resources/account-programs.d.ts +21 -16
- package/resources/account-programs.d.ts.map +1 -1
- package/resources/account-programs.js +2 -2
- package/resources/account-programs.js.map +1 -1
- package/resources/account-programs.mjs +2 -2
- package/resources/account-programs.mjs.map +1 -1
- package/resources/accounts.d.mts +21 -6
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +21 -6
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +2 -2
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +2 -2
- package/resources/accounts.mjs.map +1 -1
- package/resources/counterparties.d.mts +16 -16
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +16 -16
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/deposits.d.mts +10 -0
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +10 -0
- package/resources/deposits.d.ts.map +1 -1
- package/resources/events.d.mts +3 -3
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +3 -3
- package/resources/events.d.ts.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/payouts.d.mts +22 -406
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +22 -406
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +2 -4
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +2 -4
- package/resources/payouts.mjs.map +1 -1
- package/resources/simulations/account-programs.d.mts +9 -75
- package/resources/simulations/account-programs.d.mts.map +1 -1
- package/resources/simulations/account-programs.d.ts +9 -75
- package/resources/simulations/account-programs.d.ts.map +1 -1
- package/resources/simulations/account-programs.js +0 -2
- package/resources/simulations/account-programs.js.map +1 -1
- package/resources/simulations/account-programs.mjs +0 -2
- package/resources/simulations/account-programs.mjs.map +1 -1
- package/resources/simulations/accounts.d.mts +9 -70
- package/resources/simulations/accounts.d.mts.map +1 -1
- package/resources/simulations/accounts.d.ts +9 -70
- package/resources/simulations/accounts.d.ts.map +1 -1
- package/resources/simulations/accounts.js +0 -1
- package/resources/simulations/accounts.js.map +1 -1
- package/resources/simulations/accounts.mjs +0 -1
- package/resources/simulations/accounts.mjs.map +1 -1
- package/resources/simulations/conversions.d.mts +54 -0
- package/resources/simulations/conversions.d.mts.map +1 -0
- package/resources/simulations/conversions.d.ts +54 -0
- package/resources/simulations/conversions.d.ts.map +1 -0
- package/resources/simulations/conversions.js +39 -0
- package/resources/simulations/conversions.js.map +1 -0
- package/resources/simulations/conversions.mjs +35 -0
- package/resources/simulations/conversions.mjs.map +1 -0
- package/resources/simulations/deposits.d.mts +14 -30
- package/resources/simulations/deposits.d.mts.map +1 -1
- package/resources/simulations/deposits.d.ts +14 -30
- package/resources/simulations/deposits.d.ts.map +1 -1
- package/resources/simulations/index.d.mts +1 -0
- package/resources/simulations/index.d.mts.map +1 -1
- package/resources/simulations/index.d.ts +1 -0
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +3 -1
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +1 -0
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/payouts.d.mts +4 -18
- package/resources/simulations/payouts.d.mts.map +1 -1
- package/resources/simulations/payouts.d.ts +4 -18
- package/resources/simulations/payouts.d.ts.map +1 -1
- package/resources/simulations/simulations.d.mts +4 -0
- package/resources/simulations/simulations.d.mts.map +1 -1
- package/resources/simulations/simulations.d.ts +4 -0
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +4 -0
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +4 -0
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/transactions.d.mts +60 -0
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +60 -0
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +9 -9
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +9 -9
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +1 -1
- package/resources/webhook-subscriptions.mjs +1 -1
- package/resources/webhooks.d.mts +245 -30
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +245 -30
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +16 -8
- package/src/resources/account-programs.ts +29 -18
- package/src/resources/accounts.ts +29 -6
- package/src/resources/counterparties.ts +16 -16
- package/src/resources/deposits.ts +12 -0
- package/src/resources/events.ts +18 -12
- package/src/resources/index.ts +8 -4
- package/src/resources/payouts.ts +36 -1993
- package/src/resources/simulations/account-programs.ts +10 -91
- package/src/resources/simulations/accounts.ts +10 -85
- package/src/resources/simulations/conversions.ts +70 -0
- package/src/resources/simulations/deposits.ts +27 -35
- package/src/resources/simulations/index.ts +1 -0
- package/src/resources/simulations/payouts.ts +4 -22
- package/src/resources/simulations/simulations.ts +10 -0
- package/src/resources/transactions.ts +70 -0
- package/src/resources/webhook-subscriptions.ts +49 -33
- package/src/resources/webhooks.ts +360 -36
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -11,7 +11,6 @@ export declare class AccountPrograms extends APIResource {
|
|
|
11
11
|
* const accountProgram =
|
|
12
12
|
* await client.simulations.accountPrograms.create({
|
|
13
13
|
* label: 'x',
|
|
14
|
-
* type: 'fbo-program',
|
|
15
14
|
* });
|
|
16
15
|
* ```
|
|
17
16
|
*/
|
|
@@ -45,7 +44,6 @@ export declare class AccountPrograms extends APIResource {
|
|
|
45
44
|
* {
|
|
46
45
|
* destination: {
|
|
47
46
|
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
48
|
-
* bic: 'COBADEFFXXX',
|
|
49
47
|
* iban: 'DE89370400440532013000',
|
|
50
48
|
* type: 'iban',
|
|
51
49
|
* },
|
|
@@ -86,19 +84,6 @@ export interface AccountProgramCreateResponse {
|
|
|
86
84
|
* Account program whose lifecycle is being simulated.
|
|
87
85
|
*/
|
|
88
86
|
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
87
|
/**
|
|
103
88
|
* Resource type discriminator.
|
|
104
89
|
*/
|
|
@@ -109,19 +94,6 @@ export interface AccountProgramCloseResponse {
|
|
|
109
94
|
* Account program whose lifecycle is being simulated.
|
|
110
95
|
*/
|
|
111
96
|
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
97
|
/**
|
|
126
98
|
* Resource type discriminator.
|
|
127
99
|
*/
|
|
@@ -133,18 +105,10 @@ export interface AccountProgramDrainResponse {
|
|
|
133
105
|
*/
|
|
134
106
|
account_program_id: string;
|
|
135
107
|
/**
|
|
136
|
-
*
|
|
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.
|
|
108
|
+
* Payouts created by the drain. Feed each id to
|
|
109
|
+
* `POST /v1/simulations/payouts/{id}/send` to settle.
|
|
146
110
|
*/
|
|
147
|
-
|
|
111
|
+
payout_ids: Array<string>;
|
|
148
112
|
/**
|
|
149
113
|
* Resource type discriminator.
|
|
150
114
|
*/
|
|
@@ -155,19 +119,6 @@ export interface AccountProgramFreezeResponse {
|
|
|
155
119
|
* Account program whose lifecycle is being simulated.
|
|
156
120
|
*/
|
|
157
121
|
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
122
|
/**
|
|
172
123
|
* Resource type discriminator.
|
|
173
124
|
*/
|
|
@@ -178,19 +129,6 @@ export interface AccountProgramUnfreezeResponse {
|
|
|
178
129
|
* Account program whose lifecycle is being simulated.
|
|
179
130
|
*/
|
|
180
131
|
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
132
|
/**
|
|
195
133
|
* Resource type discriminator.
|
|
196
134
|
*/
|
|
@@ -201,10 +139,6 @@ export interface AccountProgramCreateParams {
|
|
|
201
139
|
* Human-readable label for the account program.
|
|
202
140
|
*/
|
|
203
141
|
label: string;
|
|
204
|
-
/**
|
|
205
|
-
* Account program type.
|
|
206
|
-
*/
|
|
207
|
-
type: 'fbo-program' | 'fbo-sponsored';
|
|
208
142
|
}
|
|
209
143
|
export interface AccountProgramCloseParams {
|
|
210
144
|
/**
|
|
@@ -217,18 +151,14 @@ export interface AccountProgramDrainParams {
|
|
|
217
151
|
* Fiat financial address to which the residual balance of every frozen account
|
|
218
152
|
* under the program is drained.
|
|
219
153
|
*/
|
|
220
|
-
destination: AccountProgramDrainParams.
|
|
154
|
+
destination: AccountProgramDrainParams.IbanFinancialAddressRequest | AccountProgramDrainParams.SortCodeFinancialAddress | AccountProgramDrainParams.AbaFinancialAddress;
|
|
221
155
|
}
|
|
222
156
|
export declare namespace AccountProgramDrainParams {
|
|
223
|
-
interface
|
|
157
|
+
interface IbanFinancialAddressRequest {
|
|
224
158
|
/**
|
|
225
159
|
* Name of the account holder.
|
|
226
160
|
*/
|
|
227
161
|
account_holder_name: string;
|
|
228
|
-
/**
|
|
229
|
-
* Bank Identifier Code, or null if not provided.
|
|
230
|
-
*/
|
|
231
|
-
bic: string | null;
|
|
232
162
|
/**
|
|
233
163
|
* International Bank Account Number.
|
|
234
164
|
*/
|
|
@@ -237,6 +167,10 @@ export declare namespace AccountProgramDrainParams {
|
|
|
237
167
|
* Discriminator for IBAN financial address.
|
|
238
168
|
*/
|
|
239
169
|
type: 'iban';
|
|
170
|
+
/**
|
|
171
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
172
|
+
*/
|
|
173
|
+
bic?: string | null;
|
|
240
174
|
}
|
|
241
175
|
interface SortCodeFinancialAddress {
|
|
242
176
|
/**
|
|
@@ -1 +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
|
|
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,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AccountPrograms extends APIResource {
|
|
|
11
11
|
* const accountProgram =
|
|
12
12
|
* await client.simulations.accountPrograms.create({
|
|
13
13
|
* label: 'x',
|
|
14
|
-
* type: 'fbo-program',
|
|
15
14
|
* });
|
|
16
15
|
* ```
|
|
17
16
|
*/
|
|
@@ -45,7 +44,6 @@ export declare class AccountPrograms extends APIResource {
|
|
|
45
44
|
* {
|
|
46
45
|
* destination: {
|
|
47
46
|
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
48
|
-
* bic: 'COBADEFFXXX',
|
|
49
47
|
* iban: 'DE89370400440532013000',
|
|
50
48
|
* type: 'iban',
|
|
51
49
|
* },
|
|
@@ -86,19 +84,6 @@ export interface AccountProgramCreateResponse {
|
|
|
86
84
|
* Account program whose lifecycle is being simulated.
|
|
87
85
|
*/
|
|
88
86
|
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
87
|
/**
|
|
103
88
|
* Resource type discriminator.
|
|
104
89
|
*/
|
|
@@ -109,19 +94,6 @@ export interface AccountProgramCloseResponse {
|
|
|
109
94
|
* Account program whose lifecycle is being simulated.
|
|
110
95
|
*/
|
|
111
96
|
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
97
|
/**
|
|
126
98
|
* Resource type discriminator.
|
|
127
99
|
*/
|
|
@@ -133,18 +105,10 @@ export interface AccountProgramDrainResponse {
|
|
|
133
105
|
*/
|
|
134
106
|
account_program_id: string;
|
|
135
107
|
/**
|
|
136
|
-
*
|
|
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.
|
|
108
|
+
* Payouts created by the drain. Feed each id to
|
|
109
|
+
* `POST /v1/simulations/payouts/{id}/send` to settle.
|
|
146
110
|
*/
|
|
147
|
-
|
|
111
|
+
payout_ids: Array<string>;
|
|
148
112
|
/**
|
|
149
113
|
* Resource type discriminator.
|
|
150
114
|
*/
|
|
@@ -155,19 +119,6 @@ export interface AccountProgramFreezeResponse {
|
|
|
155
119
|
* Account program whose lifecycle is being simulated.
|
|
156
120
|
*/
|
|
157
121
|
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
122
|
/**
|
|
172
123
|
* Resource type discriminator.
|
|
173
124
|
*/
|
|
@@ -178,19 +129,6 @@ export interface AccountProgramUnfreezeResponse {
|
|
|
178
129
|
* Account program whose lifecycle is being simulated.
|
|
179
130
|
*/
|
|
180
131
|
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
132
|
/**
|
|
195
133
|
* Resource type discriminator.
|
|
196
134
|
*/
|
|
@@ -201,10 +139,6 @@ export interface AccountProgramCreateParams {
|
|
|
201
139
|
* Human-readable label for the account program.
|
|
202
140
|
*/
|
|
203
141
|
label: string;
|
|
204
|
-
/**
|
|
205
|
-
* Account program type.
|
|
206
|
-
*/
|
|
207
|
-
type: 'fbo-program' | 'fbo-sponsored';
|
|
208
142
|
}
|
|
209
143
|
export interface AccountProgramCloseParams {
|
|
210
144
|
/**
|
|
@@ -217,18 +151,14 @@ export interface AccountProgramDrainParams {
|
|
|
217
151
|
* Fiat financial address to which the residual balance of every frozen account
|
|
218
152
|
* under the program is drained.
|
|
219
153
|
*/
|
|
220
|
-
destination: AccountProgramDrainParams.
|
|
154
|
+
destination: AccountProgramDrainParams.IbanFinancialAddressRequest | AccountProgramDrainParams.SortCodeFinancialAddress | AccountProgramDrainParams.AbaFinancialAddress;
|
|
221
155
|
}
|
|
222
156
|
export declare namespace AccountProgramDrainParams {
|
|
223
|
-
interface
|
|
157
|
+
interface IbanFinancialAddressRequest {
|
|
224
158
|
/**
|
|
225
159
|
* Name of the account holder.
|
|
226
160
|
*/
|
|
227
161
|
account_holder_name: string;
|
|
228
|
-
/**
|
|
229
|
-
* Bank Identifier Code, or null if not provided.
|
|
230
|
-
*/
|
|
231
|
-
bic: string | null;
|
|
232
162
|
/**
|
|
233
163
|
* International Bank Account Number.
|
|
234
164
|
*/
|
|
@@ -237,6 +167,10 @@ export declare namespace AccountProgramDrainParams {
|
|
|
237
167
|
* Discriminator for IBAN financial address.
|
|
238
168
|
*/
|
|
239
169
|
type: 'iban';
|
|
170
|
+
/**
|
|
171
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
172
|
+
*/
|
|
173
|
+
bic?: string | null;
|
|
240
174
|
}
|
|
241
175
|
interface SortCodeFinancialAddress {
|
|
242
176
|
/**
|
|
@@ -1 +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
|
|
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,EAAE,EAAE,MAAM,EACV,IAAI,EA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GAC5D,CAAC;CACH"}
|
|
@@ -14,7 +14,6 @@ class AccountPrograms extends resource_1.APIResource {
|
|
|
14
14
|
* const accountProgram =
|
|
15
15
|
* await client.simulations.accountPrograms.create({
|
|
16
16
|
* label: 'x',
|
|
17
|
-
* type: 'fbo-program',
|
|
18
17
|
* });
|
|
19
18
|
* ```
|
|
20
19
|
*/
|
|
@@ -52,7 +51,6 @@ class AccountPrograms extends resource_1.APIResource {
|
|
|
52
51
|
* {
|
|
53
52
|
* destination: {
|
|
54
53
|
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
55
|
-
* bic: 'COBADEFFXXX',
|
|
56
54
|
* iban: 'DE89370400440532013000',
|
|
57
55
|
* type: 'iban',
|
|
58
56
|
* },
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -11,7 +11,6 @@ export class AccountPrograms extends APIResource {
|
|
|
11
11
|
* const accountProgram =
|
|
12
12
|
* await client.simulations.accountPrograms.create({
|
|
13
13
|
* label: 'x',
|
|
14
|
-
* type: 'fbo-program',
|
|
15
14
|
* });
|
|
16
15
|
* ```
|
|
17
16
|
*/
|
|
@@ -49,7 +48,6 @@ export class AccountPrograms extends APIResource {
|
|
|
49
48
|
* {
|
|
50
49
|
* destination: {
|
|
51
50
|
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
52
|
-
* bic: 'COBADEFFXXX',
|
|
53
51
|
* iban: 'DE89370400440532013000',
|
|
54
52
|
* type: 'iban',
|
|
55
53
|
* },
|
|
@@ -1 +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,OAA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oCAAoC,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -40,7 +40,6 @@ export declare class Accounts extends APIResource {
|
|
|
40
40
|
* {
|
|
41
41
|
* destination: {
|
|
42
42
|
* account_holder_name: 'Acme Sandbox Ltd.',
|
|
43
|
-
* bic: 'COBADEFFXXX',
|
|
44
43
|
* iban: 'DE89370400440532013000',
|
|
45
44
|
* type: 'iban',
|
|
46
45
|
* },
|
|
@@ -79,19 +78,6 @@ export interface AccountCreateResponse {
|
|
|
79
78
|
* Account whose lifecycle is being simulated.
|
|
80
79
|
*/
|
|
81
80
|
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
81
|
/**
|
|
96
82
|
* Resource type discriminator.
|
|
97
83
|
*/
|
|
@@ -102,19 +88,6 @@ export interface AccountCloseResponse {
|
|
|
102
88
|
* Account whose lifecycle is being simulated.
|
|
103
89
|
*/
|
|
104
90
|
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
91
|
/**
|
|
119
92
|
* Resource type discriminator.
|
|
120
93
|
*/
|
|
@@ -126,18 +99,10 @@ export interface AccountDrainResponse {
|
|
|
126
99
|
*/
|
|
127
100
|
account_id: string;
|
|
128
101
|
/**
|
|
129
|
-
*
|
|
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.
|
|
102
|
+
* Payout created by the drain. Feed to `POST /v1/simulations/payouts/{id}/send` to
|
|
103
|
+
* settle.
|
|
139
104
|
*/
|
|
140
|
-
|
|
105
|
+
payout_id: string;
|
|
141
106
|
/**
|
|
142
107
|
* Resource type discriminator.
|
|
143
108
|
*/
|
|
@@ -148,19 +113,6 @@ export interface AccountFreezeResponse {
|
|
|
148
113
|
* Account whose lifecycle is being simulated.
|
|
149
114
|
*/
|
|
150
115
|
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
116
|
/**
|
|
165
117
|
* Resource type discriminator.
|
|
166
118
|
*/
|
|
@@ -171,19 +123,6 @@ export interface AccountUnfreezeResponse {
|
|
|
171
123
|
* Account whose lifecycle is being simulated.
|
|
172
124
|
*/
|
|
173
125
|
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
126
|
/**
|
|
188
127
|
* Resource type discriminator.
|
|
189
128
|
*/
|
|
@@ -206,18 +145,14 @@ export interface AccountDrainParams {
|
|
|
206
145
|
* Fiat financial address to which the residual balance of the frozen account is
|
|
207
146
|
* drained.
|
|
208
147
|
*/
|
|
209
|
-
destination: AccountDrainParams.
|
|
148
|
+
destination: AccountDrainParams.IbanFinancialAddressRequest | AccountDrainParams.SortCodeFinancialAddress | AccountDrainParams.AbaFinancialAddress;
|
|
210
149
|
}
|
|
211
150
|
export declare namespace AccountDrainParams {
|
|
212
|
-
interface
|
|
151
|
+
interface IbanFinancialAddressRequest {
|
|
213
152
|
/**
|
|
214
153
|
* Name of the account holder.
|
|
215
154
|
*/
|
|
216
155
|
account_holder_name: string;
|
|
217
|
-
/**
|
|
218
|
-
* Bank Identifier Code, or null if not provided.
|
|
219
|
-
*/
|
|
220
|
-
bic: string | null;
|
|
221
156
|
/**
|
|
222
157
|
* International Bank Account Number.
|
|
223
158
|
*/
|
|
@@ -226,6 +161,10 @@ export declare namespace AccountDrainParams {
|
|
|
226
161
|
* Discriminator for IBAN financial address.
|
|
227
162
|
*/
|
|
228
163
|
type: 'iban';
|
|
164
|
+
/**
|
|
165
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
166
|
+
*/
|
|
167
|
+
bic?: string | null;
|
|
229
168
|
}
|
|
230
169
|
interface SortCodeFinancialAddress {
|
|
231
170
|
/**
|
|
@@ -1 +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
|
|
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;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