@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.
- package/CHANGELOG.md +28 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-holders.d.mts +1555 -1184
- package/resources/account-holders.d.mts.map +1 -1
- package/resources/account-holders.d.ts +1555 -1184
- package/resources/account-holders.d.ts.map +1 -1
- package/resources/account-holders.js +59 -0
- package/resources/account-holders.js.map +1 -1
- package/resources/account-holders.mjs +59 -0
- package/resources/account-holders.mjs.map +1 -1
- package/resources/account-programs.d.mts +2 -2
- package/resources/account-programs.d.ts +2 -2
- package/resources/accounts.d.mts +206 -43
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +206 -43
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +53 -0
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +53 -0
- package/resources/accounts.mjs.map +1 -1
- package/resources/api-keys.d.mts +1 -1
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +1 -1
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-versions.d.mts +3 -0
- package/resources/api-versions.d.mts.map +1 -1
- package/resources/api-versions.d.ts +3 -0
- package/resources/api-versions.d.ts.map +1 -1
- package/resources/conversions.d.mts +36 -81
- package/resources/conversions.d.mts.map +1 -1
- package/resources/conversions.d.ts +36 -81
- package/resources/conversions.d.ts.map +1 -1
- package/resources/conversions.js +25 -1
- package/resources/conversions.js.map +1 -1
- package/resources/conversions.mjs +25 -1
- package/resources/conversions.mjs.map +1 -1
- package/resources/counterparties.d.mts +1042 -0
- package/resources/counterparties.d.mts.map +1 -0
- package/resources/counterparties.d.ts +1042 -0
- package/resources/counterparties.d.ts.map +1 -0
- package/resources/counterparties.js +45 -0
- package/resources/counterparties.js.map +1 -0
- package/resources/counterparties.mjs +41 -0
- package/resources/counterparties.mjs.map +1 -0
- package/resources/deposits.d.mts +38 -186
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +38 -186
- package/resources/deposits.d.ts.map +1 -1
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/payouts.d.mts +458 -276
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +458 -276
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +27 -0
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +27 -0
- package/resources/payouts.mjs.map +1 -1
- package/resources/quotes/indicative.d.mts +7 -11
- package/resources/quotes/indicative.d.mts.map +1 -1
- package/resources/quotes/indicative.d.ts +7 -11
- package/resources/quotes/indicative.d.ts.map +1 -1
- package/resources/quotes/quotes.d.mts +4 -8
- package/resources/quotes/quotes.d.mts.map +1 -1
- package/resources/quotes/quotes.d.ts +4 -8
- package/resources/quotes/quotes.d.ts.map +1 -1
- package/resources/quotes/quotes.js.map +1 -1
- package/resources/quotes/quotes.mjs.map +1 -1
- package/resources/returns.d.mts +84 -39
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +84 -39
- package/resources/returns.d.ts.map +1 -1
- package/resources/returns.js +22 -0
- package/resources/returns.js.map +1 -1
- package/resources/returns.mjs +22 -0
- package/resources/returns.mjs.map +1 -1
- package/resources/scopes.d.mts +4 -1
- package/resources/scopes.d.mts.map +1 -1
- package/resources/scopes.d.ts +4 -1
- package/resources/scopes.d.ts.map +1 -1
- package/resources/simulations/account-programs.d.mts +281 -0
- package/resources/simulations/account-programs.d.mts.map +1 -0
- package/resources/simulations/account-programs.d.ts +281 -0
- package/resources/simulations/account-programs.d.ts.map +1 -0
- package/resources/simulations/account-programs.js +98 -0
- package/resources/simulations/account-programs.js.map +1 -0
- package/resources/simulations/account-programs.mjs +94 -0
- package/resources/simulations/account-programs.mjs.map +1 -0
- package/resources/simulations/accounts.d.mts +270 -0
- package/resources/simulations/accounts.d.mts.map +1 -0
- package/resources/simulations/accounts.d.ts +270 -0
- package/resources/simulations/accounts.d.ts.map +1 -0
- package/resources/simulations/accounts.js +91 -0
- package/resources/simulations/accounts.js.map +1 -0
- package/resources/simulations/accounts.mjs +87 -0
- package/resources/simulations/accounts.mjs.map +1 -0
- package/resources/simulations/deposits.d.mts +218 -0
- package/resources/simulations/deposits.d.mts.map +1 -0
- package/resources/simulations/deposits.d.ts +218 -0
- package/resources/simulations/deposits.d.ts.map +1 -0
- package/resources/simulations/deposits.js +25 -0
- package/resources/simulations/deposits.js.map +1 -0
- package/resources/simulations/deposits.mjs +21 -0
- package/resources/simulations/deposits.mjs.map +1 -0
- package/resources/simulations/index.d.mts +6 -0
- package/resources/simulations/index.d.mts.map +1 -0
- package/resources/simulations/index.d.ts +6 -0
- package/resources/simulations/index.d.ts.map +1 -0
- package/resources/simulations/index.js +15 -0
- package/resources/simulations/index.js.map +1 -0
- package/resources/simulations/index.mjs +7 -0
- package/resources/simulations/index.mjs.map +1 -0
- package/resources/simulations/payouts.d.mts +76 -0
- package/resources/simulations/payouts.d.mts.map +1 -0
- package/resources/simulations/payouts.d.ts +76 -0
- package/resources/simulations/payouts.d.ts.map +1 -0
- package/resources/simulations/payouts.js +39 -0
- package/resources/simulations/payouts.js.map +1 -0
- package/resources/simulations/payouts.mjs +35 -0
- package/resources/simulations/payouts.mjs.map +1 -0
- package/resources/simulations/simulations.d.mts +22 -0
- package/resources/simulations/simulations.d.mts.map +1 -0
- package/resources/simulations/simulations.d.ts +22 -0
- package/resources/simulations/simulations.d.ts.map +1 -0
- package/resources/simulations/simulations.js +29 -0
- package/resources/simulations/simulations.js.map +1 -0
- package/resources/simulations/simulations.mjs +24 -0
- package/resources/simulations/simulations.mjs.map +1 -0
- package/resources/simulations.d.mts +2 -0
- package/resources/simulations.d.mts.map +1 -0
- package/resources/simulations.d.ts +2 -0
- package/resources/simulations.d.ts.map +1 -0
- package/resources/simulations.js +6 -0
- package/resources/simulations.js.map +1 -0
- package/resources/simulations.mjs +3 -0
- package/resources/simulations.mjs.map +1 -0
- package/resources/transactions.d.mts +300 -180
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +300 -180
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +54 -4
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +54 -4
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +49 -0
- package/resources/webhook-subscriptions.js.map +1 -1
- package/resources/webhook-subscriptions.mjs +49 -0
- package/resources/webhook-subscriptions.mjs.map +1 -1
- package/resources/webhooks.d.mts +736 -953
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +736 -953
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +32 -0
- package/src/resources/account-holders.ts +1701 -1282
- package/src/resources/account-programs.ts +2 -2
- package/src/resources/accounts.ts +236 -44
- package/src/resources/api-keys.ts +3 -0
- package/src/resources/api-versions.ts +3 -0
- package/src/resources/conversions.ts +36 -93
- package/src/resources/counterparties.ts +3127 -0
- package/src/resources/deposits.ts +54 -269
- package/src/resources/index.ts +13 -0
- package/src/resources/payouts.ts +2089 -367
- package/src/resources/quotes/indicative.ts +7 -12
- package/src/resources/quotes/quotes.ts +4 -9
- package/src/resources/returns.ts +144 -40
- package/src/resources/scopes.ts +7 -1
- package/src/resources/simulations/account-programs.ts +363 -0
- package/src/resources/simulations/accounts.ts +340 -0
- package/src/resources/simulations/deposits.ts +530 -0
- package/src/resources/simulations/index.ts +32 -0
- package/src/resources/simulations/payouts.ts +98 -0
- package/src/resources/simulations/simulations.ts +82 -0
- package/src/resources/simulations.ts +3 -0
- package/src/resources/transactions.ts +910 -232
- package/src/resources/webhook-subscriptions.ts +54 -4
- package/src/resources/webhooks.ts +948 -1126
- 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
|
@@ -123,7 +123,7 @@ export interface AccountProgramRetrieveBalanceResponse {
|
|
|
123
123
|
id: string;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
126
|
+
* Available balance as a string decimal (e.g. "100.50").
|
|
127
127
|
*/
|
|
128
128
|
amount: string;
|
|
129
129
|
|
|
@@ -133,7 +133,7 @@ export interface AccountProgramRetrieveBalanceResponse {
|
|
|
133
133
|
as_of: string;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* ISO 4217 currency code
|
|
136
|
+
* ISO 4217 currency code.
|
|
137
137
|
*/
|
|
138
138
|
currency: 'EUR' | 'GBP' | 'USD';
|
|
139
139
|
|
|
@@ -9,6 +9,15 @@ import { path } from '../internal/utils/path';
|
|
|
9
9
|
export class Accounts extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Creates a new account.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const account = await client.accounts.create({
|
|
16
|
+
* account_holder_id: '68e0a1b2c3d4e5f60718293a',
|
|
17
|
+
* account_program_id:
|
|
18
|
+
* '550e8400-e29b-41d4-a716-446655440002',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
12
21
|
*/
|
|
13
22
|
create(body: AccountCreateParams, options?: RequestOptions): APIPromise<AccountCreateResponse> {
|
|
14
23
|
return this._client.post('/v1/accounts', { body, ...options });
|
|
@@ -16,6 +25,13 @@ export class Accounts extends APIResource {
|
|
|
16
25
|
|
|
17
26
|
/**
|
|
18
27
|
* Retrieves an account by ID.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const account = await client.accounts.retrieve(
|
|
32
|
+
* '550e8400-e29b-41d4-a716-446655440001',
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
19
35
|
*/
|
|
20
36
|
retrieve(id: string, options?: RequestOptions): APIPromise<AccountRetrieveResponse> {
|
|
21
37
|
return this._client.get(path`/v1/accounts/${id}`, options);
|
|
@@ -23,6 +39,14 @@ export class Accounts extends APIResource {
|
|
|
23
39
|
|
|
24
40
|
/**
|
|
25
41
|
* Returns a paginated list of accounts.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* // Automatically fetches more pages as needed.
|
|
46
|
+
* for await (const accountListResponse of client.accounts.list()) {
|
|
47
|
+
* // ...
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
26
50
|
*/
|
|
27
51
|
list(
|
|
28
52
|
query: AccountListParams | null | undefined = {},
|
|
@@ -33,6 +57,14 @@ export class Accounts extends APIResource {
|
|
|
33
57
|
|
|
34
58
|
/**
|
|
35
59
|
* Closes an account
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const response = await client.accounts.close(
|
|
64
|
+
* '550e8400-e29b-41d4-a716-446655440001',
|
|
65
|
+
* { reason: 'aml_risk_fraud' },
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
36
68
|
*/
|
|
37
69
|
close(id: string, body: AccountCloseParams, options?: RequestOptions): APIPromise<AccountCloseResponse> {
|
|
38
70
|
return this._client.post(path`/v1/accounts/${id}/close`, { body, ...options });
|
|
@@ -40,6 +72,13 @@ export class Accounts extends APIResource {
|
|
|
40
72
|
|
|
41
73
|
/**
|
|
42
74
|
* Freezes an account
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const response = await client.accounts.freeze(
|
|
79
|
+
* '550e8400-e29b-41d4-a716-446655440001',
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
43
82
|
*/
|
|
44
83
|
freeze(id: string, options?: RequestOptions): APIPromise<AccountFreezeResponse> {
|
|
45
84
|
return this._client.post(path`/v1/accounts/${id}/freeze`, options);
|
|
@@ -47,6 +86,13 @@ export class Accounts extends APIResource {
|
|
|
47
86
|
|
|
48
87
|
/**
|
|
49
88
|
* Retrieves the available balance for an account.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* const response = await client.accounts.retrieveBalance(
|
|
93
|
+
* '550e8400-e29b-41d4-a716-446655440001',
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
50
96
|
*/
|
|
51
97
|
retrieveBalance(id: string, options?: RequestOptions): APIPromise<AccountRetrieveBalanceResponse> {
|
|
52
98
|
return this._client.get(path`/v1/accounts/${id}/balance`, options);
|
|
@@ -54,6 +100,13 @@ export class Accounts extends APIResource {
|
|
|
54
100
|
|
|
55
101
|
/**
|
|
56
102
|
* Unfreezes an account
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* const response = await client.accounts.unfreeze(
|
|
107
|
+
* '550e8400-e29b-41d4-a716-446655440001',
|
|
108
|
+
* );
|
|
109
|
+
* ```
|
|
57
110
|
*/
|
|
58
111
|
unfreeze(id: string, options?: RequestOptions): APIPromise<AccountUnfreezeResponse> {
|
|
59
112
|
return this._client.post(path`/v1/accounts/${id}/unfreeze`, options);
|
|
@@ -68,11 +121,6 @@ export interface AccountCreateResponse {
|
|
|
68
121
|
*/
|
|
69
122
|
id: string;
|
|
70
123
|
|
|
71
|
-
/**
|
|
72
|
-
* Type of the account.
|
|
73
|
-
*/
|
|
74
|
-
account_type: 'virtual_account' | 'payment_account' | 'collateral_account';
|
|
75
|
-
|
|
76
124
|
/**
|
|
77
125
|
* Asset type of the account.
|
|
78
126
|
*/
|
|
@@ -84,7 +132,7 @@ export interface AccountCreateResponse {
|
|
|
84
132
|
created_at: string;
|
|
85
133
|
|
|
86
134
|
/**
|
|
87
|
-
* ISO 4217
|
|
135
|
+
* Currency code (ISO 4217 or crypto).
|
|
88
136
|
*/
|
|
89
137
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
90
138
|
|
|
@@ -96,6 +144,7 @@ export interface AccountCreateResponse {
|
|
|
96
144
|
| AccountCreateResponse.IbanFinancialAddress
|
|
97
145
|
| AccountCreateResponse.SortCodeFinancialAddress
|
|
98
146
|
| AccountCreateResponse.AbaFinancialAddress
|
|
147
|
+
| AccountCreateResponse.BicFinancialAddress
|
|
99
148
|
| AccountCreateResponse.CryptoWalletFinancialAddress
|
|
100
149
|
>;
|
|
101
150
|
|
|
@@ -187,6 +236,34 @@ export namespace AccountCreateResponse {
|
|
|
187
236
|
type: 'aba';
|
|
188
237
|
}
|
|
189
238
|
|
|
239
|
+
export interface BicFinancialAddress {
|
|
240
|
+
/**
|
|
241
|
+
* Name of the account holder.
|
|
242
|
+
*/
|
|
243
|
+
account_holder_name: string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Local-format bank account number.
|
|
247
|
+
*/
|
|
248
|
+
account_number: string;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
252
|
+
*/
|
|
253
|
+
bic: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
257
|
+
* the BSB in Australia), or null.
|
|
258
|
+
*/
|
|
259
|
+
local_bank_code: string | null;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Discriminator for BIC + local account financial address.
|
|
263
|
+
*/
|
|
264
|
+
type: 'bic';
|
|
265
|
+
}
|
|
266
|
+
|
|
190
267
|
export interface CryptoWalletFinancialAddress {
|
|
191
268
|
/**
|
|
192
269
|
* Wallet address on the specified blockchain.
|
|
@@ -219,11 +296,6 @@ export interface AccountRetrieveResponse {
|
|
|
219
296
|
*/
|
|
220
297
|
id: string;
|
|
221
298
|
|
|
222
|
-
/**
|
|
223
|
-
* Type of the account.
|
|
224
|
-
*/
|
|
225
|
-
account_type: 'virtual_account' | 'payment_account' | 'collateral_account';
|
|
226
|
-
|
|
227
299
|
/**
|
|
228
300
|
* Asset type of the account.
|
|
229
301
|
*/
|
|
@@ -235,7 +307,7 @@ export interface AccountRetrieveResponse {
|
|
|
235
307
|
created_at: string;
|
|
236
308
|
|
|
237
309
|
/**
|
|
238
|
-
* ISO 4217
|
|
310
|
+
* Currency code (ISO 4217 or crypto).
|
|
239
311
|
*/
|
|
240
312
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
241
313
|
|
|
@@ -247,6 +319,7 @@ export interface AccountRetrieveResponse {
|
|
|
247
319
|
| AccountRetrieveResponse.IbanFinancialAddress
|
|
248
320
|
| AccountRetrieveResponse.SortCodeFinancialAddress
|
|
249
321
|
| AccountRetrieveResponse.AbaFinancialAddress
|
|
322
|
+
| AccountRetrieveResponse.BicFinancialAddress
|
|
250
323
|
| AccountRetrieveResponse.CryptoWalletFinancialAddress
|
|
251
324
|
>;
|
|
252
325
|
|
|
@@ -338,6 +411,34 @@ export namespace AccountRetrieveResponse {
|
|
|
338
411
|
type: 'aba';
|
|
339
412
|
}
|
|
340
413
|
|
|
414
|
+
export interface BicFinancialAddress {
|
|
415
|
+
/**
|
|
416
|
+
* Name of the account holder.
|
|
417
|
+
*/
|
|
418
|
+
account_holder_name: string;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Local-format bank account number.
|
|
422
|
+
*/
|
|
423
|
+
account_number: string;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
427
|
+
*/
|
|
428
|
+
bic: string;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
432
|
+
* the BSB in Australia), or null.
|
|
433
|
+
*/
|
|
434
|
+
local_bank_code: string | null;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Discriminator for BIC + local account financial address.
|
|
438
|
+
*/
|
|
439
|
+
type: 'bic';
|
|
440
|
+
}
|
|
441
|
+
|
|
341
442
|
export interface CryptoWalletFinancialAddress {
|
|
342
443
|
/**
|
|
343
444
|
* Wallet address on the specified blockchain.
|
|
@@ -370,11 +471,6 @@ export interface AccountListResponse {
|
|
|
370
471
|
*/
|
|
371
472
|
id: string;
|
|
372
473
|
|
|
373
|
-
/**
|
|
374
|
-
* Type of the account.
|
|
375
|
-
*/
|
|
376
|
-
account_type: 'virtual_account' | 'payment_account' | 'collateral_account';
|
|
377
|
-
|
|
378
474
|
/**
|
|
379
475
|
* Asset type of the account.
|
|
380
476
|
*/
|
|
@@ -386,7 +482,7 @@ export interface AccountListResponse {
|
|
|
386
482
|
created_at: string;
|
|
387
483
|
|
|
388
484
|
/**
|
|
389
|
-
* ISO 4217
|
|
485
|
+
* Currency code (ISO 4217 or crypto).
|
|
390
486
|
*/
|
|
391
487
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
392
488
|
|
|
@@ -398,6 +494,7 @@ export interface AccountListResponse {
|
|
|
398
494
|
| AccountListResponse.IbanFinancialAddress
|
|
399
495
|
| AccountListResponse.SortCodeFinancialAddress
|
|
400
496
|
| AccountListResponse.AbaFinancialAddress
|
|
497
|
+
| AccountListResponse.BicFinancialAddress
|
|
401
498
|
| AccountListResponse.CryptoWalletFinancialAddress
|
|
402
499
|
>;
|
|
403
500
|
|
|
@@ -489,6 +586,34 @@ export namespace AccountListResponse {
|
|
|
489
586
|
type: 'aba';
|
|
490
587
|
}
|
|
491
588
|
|
|
589
|
+
export interface BicFinancialAddress {
|
|
590
|
+
/**
|
|
591
|
+
* Name of the account holder.
|
|
592
|
+
*/
|
|
593
|
+
account_holder_name: string;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Local-format bank account number.
|
|
597
|
+
*/
|
|
598
|
+
account_number: string;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
602
|
+
*/
|
|
603
|
+
bic: string;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
607
|
+
* the BSB in Australia), or null.
|
|
608
|
+
*/
|
|
609
|
+
local_bank_code: string | null;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Discriminator for BIC + local account financial address.
|
|
613
|
+
*/
|
|
614
|
+
type: 'bic';
|
|
615
|
+
}
|
|
616
|
+
|
|
492
617
|
export interface CryptoWalletFinancialAddress {
|
|
493
618
|
/**
|
|
494
619
|
* Wallet address on the specified blockchain.
|
|
@@ -521,11 +646,6 @@ export interface AccountCloseResponse {
|
|
|
521
646
|
*/
|
|
522
647
|
id: string;
|
|
523
648
|
|
|
524
|
-
/**
|
|
525
|
-
* Type of the account.
|
|
526
|
-
*/
|
|
527
|
-
account_type: 'virtual_account' | 'payment_account' | 'collateral_account';
|
|
528
|
-
|
|
529
649
|
/**
|
|
530
650
|
* Asset type of the account.
|
|
531
651
|
*/
|
|
@@ -537,7 +657,7 @@ export interface AccountCloseResponse {
|
|
|
537
657
|
created_at: string;
|
|
538
658
|
|
|
539
659
|
/**
|
|
540
|
-
* ISO 4217
|
|
660
|
+
* Currency code (ISO 4217 or crypto).
|
|
541
661
|
*/
|
|
542
662
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
543
663
|
|
|
@@ -549,6 +669,7 @@ export interface AccountCloseResponse {
|
|
|
549
669
|
| AccountCloseResponse.IbanFinancialAddress
|
|
550
670
|
| AccountCloseResponse.SortCodeFinancialAddress
|
|
551
671
|
| AccountCloseResponse.AbaFinancialAddress
|
|
672
|
+
| AccountCloseResponse.BicFinancialAddress
|
|
552
673
|
| AccountCloseResponse.CryptoWalletFinancialAddress
|
|
553
674
|
>;
|
|
554
675
|
|
|
@@ -640,6 +761,34 @@ export namespace AccountCloseResponse {
|
|
|
640
761
|
type: 'aba';
|
|
641
762
|
}
|
|
642
763
|
|
|
764
|
+
export interface BicFinancialAddress {
|
|
765
|
+
/**
|
|
766
|
+
* Name of the account holder.
|
|
767
|
+
*/
|
|
768
|
+
account_holder_name: string;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Local-format bank account number.
|
|
772
|
+
*/
|
|
773
|
+
account_number: string;
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
777
|
+
*/
|
|
778
|
+
bic: string;
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
782
|
+
* the BSB in Australia), or null.
|
|
783
|
+
*/
|
|
784
|
+
local_bank_code: string | null;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Discriminator for BIC + local account financial address.
|
|
788
|
+
*/
|
|
789
|
+
type: 'bic';
|
|
790
|
+
}
|
|
791
|
+
|
|
643
792
|
export interface CryptoWalletFinancialAddress {
|
|
644
793
|
/**
|
|
645
794
|
* Wallet address on the specified blockchain.
|
|
@@ -672,11 +821,6 @@ export interface AccountFreezeResponse {
|
|
|
672
821
|
*/
|
|
673
822
|
id: string;
|
|
674
823
|
|
|
675
|
-
/**
|
|
676
|
-
* Type of the account.
|
|
677
|
-
*/
|
|
678
|
-
account_type: 'virtual_account' | 'payment_account' | 'collateral_account';
|
|
679
|
-
|
|
680
824
|
/**
|
|
681
825
|
* Asset type of the account.
|
|
682
826
|
*/
|
|
@@ -688,7 +832,7 @@ export interface AccountFreezeResponse {
|
|
|
688
832
|
created_at: string;
|
|
689
833
|
|
|
690
834
|
/**
|
|
691
|
-
* ISO 4217
|
|
835
|
+
* Currency code (ISO 4217 or crypto).
|
|
692
836
|
*/
|
|
693
837
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
694
838
|
|
|
@@ -700,6 +844,7 @@ export interface AccountFreezeResponse {
|
|
|
700
844
|
| AccountFreezeResponse.IbanFinancialAddress
|
|
701
845
|
| AccountFreezeResponse.SortCodeFinancialAddress
|
|
702
846
|
| AccountFreezeResponse.AbaFinancialAddress
|
|
847
|
+
| AccountFreezeResponse.BicFinancialAddress
|
|
703
848
|
| AccountFreezeResponse.CryptoWalletFinancialAddress
|
|
704
849
|
>;
|
|
705
850
|
|
|
@@ -791,6 +936,34 @@ export namespace AccountFreezeResponse {
|
|
|
791
936
|
type: 'aba';
|
|
792
937
|
}
|
|
793
938
|
|
|
939
|
+
export interface BicFinancialAddress {
|
|
940
|
+
/**
|
|
941
|
+
* Name of the account holder.
|
|
942
|
+
*/
|
|
943
|
+
account_holder_name: string;
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* Local-format bank account number.
|
|
947
|
+
*/
|
|
948
|
+
account_number: string;
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
952
|
+
*/
|
|
953
|
+
bic: string;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
957
|
+
* the BSB in Australia), or null.
|
|
958
|
+
*/
|
|
959
|
+
local_bank_code: string | null;
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* Discriminator for BIC + local account financial address.
|
|
963
|
+
*/
|
|
964
|
+
type: 'bic';
|
|
965
|
+
}
|
|
966
|
+
|
|
794
967
|
export interface CryptoWalletFinancialAddress {
|
|
795
968
|
/**
|
|
796
969
|
* Wallet address on the specified blockchain.
|
|
@@ -824,7 +997,7 @@ export interface AccountRetrieveBalanceResponse {
|
|
|
824
997
|
account_id: string;
|
|
825
998
|
|
|
826
999
|
/**
|
|
827
|
-
* Available balance
|
|
1000
|
+
* Available balance as a string decimal (e.g. "100.50").
|
|
828
1001
|
*/
|
|
829
1002
|
amount: string;
|
|
830
1003
|
|
|
@@ -834,7 +1007,7 @@ export interface AccountRetrieveBalanceResponse {
|
|
|
834
1007
|
as_of: string;
|
|
835
1008
|
|
|
836
1009
|
/**
|
|
837
|
-
* ISO 4217
|
|
1010
|
+
* Currency code (ISO 4217 or crypto).
|
|
838
1011
|
*/
|
|
839
1012
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
840
1013
|
|
|
@@ -850,11 +1023,6 @@ export interface AccountUnfreezeResponse {
|
|
|
850
1023
|
*/
|
|
851
1024
|
id: string;
|
|
852
1025
|
|
|
853
|
-
/**
|
|
854
|
-
* Type of the account.
|
|
855
|
-
*/
|
|
856
|
-
account_type: 'virtual_account' | 'payment_account' | 'collateral_account';
|
|
857
|
-
|
|
858
1026
|
/**
|
|
859
1027
|
* Asset type of the account.
|
|
860
1028
|
*/
|
|
@@ -866,7 +1034,7 @@ export interface AccountUnfreezeResponse {
|
|
|
866
1034
|
created_at: string;
|
|
867
1035
|
|
|
868
1036
|
/**
|
|
869
|
-
* ISO 4217
|
|
1037
|
+
* Currency code (ISO 4217 or crypto).
|
|
870
1038
|
*/
|
|
871
1039
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
872
1040
|
|
|
@@ -878,6 +1046,7 @@ export interface AccountUnfreezeResponse {
|
|
|
878
1046
|
| AccountUnfreezeResponse.IbanFinancialAddress
|
|
879
1047
|
| AccountUnfreezeResponse.SortCodeFinancialAddress
|
|
880
1048
|
| AccountUnfreezeResponse.AbaFinancialAddress
|
|
1049
|
+
| AccountUnfreezeResponse.BicFinancialAddress
|
|
881
1050
|
| AccountUnfreezeResponse.CryptoWalletFinancialAddress
|
|
882
1051
|
>;
|
|
883
1052
|
|
|
@@ -969,6 +1138,34 @@ export namespace AccountUnfreezeResponse {
|
|
|
969
1138
|
type: 'aba';
|
|
970
1139
|
}
|
|
971
1140
|
|
|
1141
|
+
export interface BicFinancialAddress {
|
|
1142
|
+
/**
|
|
1143
|
+
* Name of the account holder.
|
|
1144
|
+
*/
|
|
1145
|
+
account_holder_name: string;
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Local-format bank account number.
|
|
1149
|
+
*/
|
|
1150
|
+
account_number: string;
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
1154
|
+
*/
|
|
1155
|
+
bic: string;
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
1159
|
+
* the BSB in Australia), or null.
|
|
1160
|
+
*/
|
|
1161
|
+
local_bank_code: string | null;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* Discriminator for BIC + local account financial address.
|
|
1165
|
+
*/
|
|
1166
|
+
type: 'bic';
|
|
1167
|
+
}
|
|
1168
|
+
|
|
972
1169
|
export interface CryptoWalletFinancialAddress {
|
|
973
1170
|
/**
|
|
974
1171
|
* Wallet address on the specified blockchain.
|
|
@@ -1005,11 +1202,6 @@ export interface AccountCreateParams {
|
|
|
1005
1202
|
* ID of the account program to create the account under.
|
|
1006
1203
|
*/
|
|
1007
1204
|
account_program_id: string;
|
|
1008
|
-
|
|
1009
|
-
/**
|
|
1010
|
-
* Type of account. Currently only virtual account.
|
|
1011
|
-
*/
|
|
1012
|
-
account_type: 'virtual_account';
|
|
1013
1205
|
}
|
|
1014
1206
|
|
|
1015
1207
|
export interface AccountListParams extends CursorPageParams {
|
|
@@ -1027,7 +1219,7 @@ export interface AccountListParams extends CursorPageParams {
|
|
|
1027
1219
|
/**
|
|
1028
1220
|
* ID of the account program to list virtual accounts for.
|
|
1029
1221
|
*/
|
|
1030
|
-
|
|
1222
|
+
account_program_id?: string;
|
|
1031
1223
|
|
|
1032
1224
|
/**
|
|
1033
1225
|
* Filter by account status.
|
|
@@ -67,12 +67,15 @@ export interface APIKeyIntrospectResponse {
|
|
|
67
67
|
| 'account_programs:read'
|
|
68
68
|
| 'account_holders:read'
|
|
69
69
|
| 'account_holders:write'
|
|
70
|
+
| 'counterparties:read'
|
|
71
|
+
| 'counterparties:write'
|
|
70
72
|
| 'webhook_subscriptions:read'
|
|
71
73
|
| 'webhook_subscriptions:write'
|
|
72
74
|
| 'events:read'
|
|
73
75
|
| 'webhook_deliveries:read'
|
|
74
76
|
| 'webhook_deliveries:write'
|
|
75
77
|
| 'transactions:read'
|
|
78
|
+
| 'simulations:write'
|
|
76
79
|
>;
|
|
77
80
|
|
|
78
81
|
/**
|