@augustusbank/typescript-sdk 0.12.1 → 0.14.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 +22 -0
- package/README.md +1 -1
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js +9 -1
- package/client.js.map +1 -1
- package/client.mjs +10 -2
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +2 -2
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/account-programs.d.mts.map +1 -1
- package/resources/account-programs.d.ts.map +1 -1
- package/resources/account-programs.mjs.map +1 -1
- package/resources/accounts.d.mts +156 -66
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +156 -66
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.mjs.map +1 -1
- package/resources/api-versions.d.mts.map +1 -1
- package/resources/api-versions.d.ts.map +1 -1
- package/resources/api-versions.mjs.map +1 -1
- package/resources/conversions.d.mts +8 -8
- package/resources/conversions.d.mts.map +1 -1
- package/resources/conversions.d.ts +8 -8
- package/resources/conversions.d.ts.map +1 -1
- package/resources/conversions.mjs.map +1 -1
- package/resources/deposits.d.mts +44 -8
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +44 -8
- package/resources/deposits.d.ts.map +1 -1
- package/resources/deposits.mjs.map +1 -1
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/payouts.d.mts +28 -10
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +28 -10
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.mjs.map +1 -1
- package/resources/quotes/index.d.mts.map +1 -1
- package/resources/quotes/index.d.ts.map +1 -1
- package/resources/quotes/index.mjs.map +1 -1
- package/resources/quotes/indicative.d.mts +5 -5
- package/resources/quotes/indicative.d.mts.map +1 -1
- package/resources/quotes/indicative.d.ts +5 -5
- package/resources/quotes/indicative.d.ts.map +1 -1
- package/resources/quotes/indicative.mjs.map +1 -1
- package/resources/quotes/quotes.d.mts +2 -2
- package/resources/quotes/quotes.d.mts.map +1 -1
- package/resources/quotes/quotes.d.ts +2 -2
- package/resources/quotes/quotes.d.ts.map +1 -1
- package/resources/quotes/quotes.mjs.map +1 -1
- package/resources/quotes.d.mts.map +1 -1
- package/resources/quotes.d.ts.map +1 -1
- package/resources/quotes.mjs.map +1 -1
- package/resources/returns.d.mts +161 -2
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +161 -2
- package/resources/returns.d.ts.map +1 -1
- package/resources/returns.js +13 -0
- package/resources/returns.js.map +1 -1
- package/resources/returns.mjs +13 -0
- package/resources/returns.mjs.map +1 -1
- package/resources/scopes.d.mts.map +1 -1
- package/resources/scopes.d.ts.map +1 -1
- package/resources/scopes.mjs.map +1 -1
- package/resources/webhook-deliveries.d.mts.map +1 -1
- package/resources/webhook-deliveries.d.ts.map +1 -1
- package/resources/webhook-deliveries.mjs.map +1 -1
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.mjs.map +1 -1
- package/resources/webhooks.d.mts +40 -22
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +40 -22
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +27 -3
- package/src/resources/accounts.ts +500 -95
- package/src/resources/conversions.ts +8 -8
- package/src/resources/deposits.ts +76 -6
- package/src/resources/index.ts +9 -1
- package/src/resources/payouts.ts +65 -10
- package/src/resources/quotes/indicative.ts +5 -5
- package/src/resources/quotes/quotes.ts +2 -2
- package/src/resources/returns.ts +237 -2
- package/src/resources/webhooks.ts +87 -21
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -81,7 +81,7 @@ export interface ConversionCreateResponse {
|
|
|
81
81
|
/**
|
|
82
82
|
* Source currency code.
|
|
83
83
|
*/
|
|
84
|
-
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
84
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
* Current status of the conversion.
|
|
@@ -96,7 +96,7 @@ export interface ConversionCreateResponse {
|
|
|
96
96
|
/**
|
|
97
97
|
* Target currency code.
|
|
98
98
|
*/
|
|
99
|
-
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
99
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* Resource type discriminator.
|
|
@@ -165,7 +165,7 @@ export interface ConversionRetrieveResponse {
|
|
|
165
165
|
/**
|
|
166
166
|
* Source currency code.
|
|
167
167
|
*/
|
|
168
|
-
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
168
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* Current status of the conversion.
|
|
@@ -180,7 +180,7 @@ export interface ConversionRetrieveResponse {
|
|
|
180
180
|
/**
|
|
181
181
|
* Target currency code.
|
|
182
182
|
*/
|
|
183
|
-
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
183
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* Resource type discriminator.
|
|
@@ -249,7 +249,7 @@ export interface ConversionListResponse {
|
|
|
249
249
|
/**
|
|
250
250
|
* Source currency code.
|
|
251
251
|
*/
|
|
252
|
-
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
252
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
253
253
|
|
|
254
254
|
/**
|
|
255
255
|
* Current status of the conversion.
|
|
@@ -264,7 +264,7 @@ export interface ConversionListResponse {
|
|
|
264
264
|
/**
|
|
265
265
|
* Target currency code.
|
|
266
266
|
*/
|
|
267
|
-
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
267
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
268
268
|
|
|
269
269
|
/**
|
|
270
270
|
* Resource type discriminator.
|
|
@@ -315,7 +315,7 @@ export interface ConversionListParams extends CursorPageParams {
|
|
|
315
315
|
/**
|
|
316
316
|
* Filter by source currency code.
|
|
317
317
|
*/
|
|
318
|
-
source_currency?: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
318
|
+
source_currency?: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
321
|
* Filter by conversion status.
|
|
@@ -325,7 +325,7 @@ export interface ConversionListParams extends CursorPageParams {
|
|
|
325
325
|
/**
|
|
326
326
|
* Filter by target currency code.
|
|
327
327
|
*/
|
|
328
|
-
target_currency?: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
328
|
+
target_currency?: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
export declare namespace Conversions {
|
|
@@ -51,7 +51,7 @@ export interface DepositRetrieveResponse {
|
|
|
51
51
|
/**
|
|
52
52
|
* Supported fiat or crypto currency code for the deposit amount.
|
|
53
53
|
*/
|
|
54
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
54
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* ID of the merchant account that received the deposit.
|
|
@@ -73,6 +73,10 @@ export interface DepositRetrieveResponse {
|
|
|
73
73
|
| 'swift'
|
|
74
74
|
| 'internal'
|
|
75
75
|
| 'target'
|
|
76
|
+
| 'ach'
|
|
77
|
+
| 'fedwire'
|
|
78
|
+
| 'btc'
|
|
79
|
+
| 'btc_testnet4'
|
|
76
80
|
| 'eth'
|
|
77
81
|
| 'eth_sepolia'
|
|
78
82
|
| 'sol'
|
|
@@ -92,7 +96,8 @@ export interface DepositRetrieveResponse {
|
|
|
92
96
|
source:
|
|
93
97
|
| DepositRetrieveResponse.UnionMember0
|
|
94
98
|
| DepositRetrieveResponse.UnionMember1
|
|
95
|
-
| DepositRetrieveResponse.UnionMember2
|
|
99
|
+
| DepositRetrieveResponse.UnionMember2
|
|
100
|
+
| DepositRetrieveResponse.UnionMember3;
|
|
96
101
|
|
|
97
102
|
/**
|
|
98
103
|
* Current status of the deposit.
|
|
@@ -161,6 +166,28 @@ export namespace DepositRetrieveResponse {
|
|
|
161
166
|
}
|
|
162
167
|
|
|
163
168
|
export interface UnionMember2 {
|
|
169
|
+
/**
|
|
170
|
+
* Name of the account holder.
|
|
171
|
+
*/
|
|
172
|
+
account_holder_name: string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Bank account number.
|
|
176
|
+
*/
|
|
177
|
+
account_number: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* ABA routing number (9 digits).
|
|
181
|
+
*/
|
|
182
|
+
routing_number: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Discriminator for ABA wire source.
|
|
186
|
+
*/
|
|
187
|
+
type: 'aba';
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface UnionMember3 {
|
|
164
191
|
/**
|
|
165
192
|
* Wallet address on the specified blockchain.
|
|
166
193
|
*/
|
|
@@ -169,7 +196,15 @@ export namespace DepositRetrieveResponse {
|
|
|
169
196
|
/**
|
|
170
197
|
* Blockchain network for the crypto wallet.
|
|
171
198
|
*/
|
|
172
|
-
blockchain:
|
|
199
|
+
blockchain:
|
|
200
|
+
| 'bitcoin'
|
|
201
|
+
| 'ethereum'
|
|
202
|
+
| 'solana'
|
|
203
|
+
| 'polygon'
|
|
204
|
+
| 'bitcoin_testnet4'
|
|
205
|
+
| 'ethereum_sepolia'
|
|
206
|
+
| 'solana_devnet'
|
|
207
|
+
| 'polygon_amoy';
|
|
173
208
|
|
|
174
209
|
/**
|
|
175
210
|
* Discriminator for crypto wallet source.
|
|
@@ -202,7 +237,7 @@ export interface DepositListResponse {
|
|
|
202
237
|
/**
|
|
203
238
|
* Supported fiat or crypto currency code for the deposit amount.
|
|
204
239
|
*/
|
|
205
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
240
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
206
241
|
|
|
207
242
|
/**
|
|
208
243
|
* ID of the merchant account that received the deposit.
|
|
@@ -224,6 +259,10 @@ export interface DepositListResponse {
|
|
|
224
259
|
| 'swift'
|
|
225
260
|
| 'internal'
|
|
226
261
|
| 'target'
|
|
262
|
+
| 'ach'
|
|
263
|
+
| 'fedwire'
|
|
264
|
+
| 'btc'
|
|
265
|
+
| 'btc_testnet4'
|
|
227
266
|
| 'eth'
|
|
228
267
|
| 'eth_sepolia'
|
|
229
268
|
| 'sol'
|
|
@@ -243,7 +282,8 @@ export interface DepositListResponse {
|
|
|
243
282
|
source:
|
|
244
283
|
| DepositListResponse.UnionMember0
|
|
245
284
|
| DepositListResponse.UnionMember1
|
|
246
|
-
| DepositListResponse.UnionMember2
|
|
285
|
+
| DepositListResponse.UnionMember2
|
|
286
|
+
| DepositListResponse.UnionMember3;
|
|
247
287
|
|
|
248
288
|
/**
|
|
249
289
|
* Current status of the deposit.
|
|
@@ -312,6 +352,28 @@ export namespace DepositListResponse {
|
|
|
312
352
|
}
|
|
313
353
|
|
|
314
354
|
export interface UnionMember2 {
|
|
355
|
+
/**
|
|
356
|
+
* Name of the account holder.
|
|
357
|
+
*/
|
|
358
|
+
account_holder_name: string;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Bank account number.
|
|
362
|
+
*/
|
|
363
|
+
account_number: string;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* ABA routing number (9 digits).
|
|
367
|
+
*/
|
|
368
|
+
routing_number: string;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Discriminator for ABA wire source.
|
|
372
|
+
*/
|
|
373
|
+
type: 'aba';
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export interface UnionMember3 {
|
|
315
377
|
/**
|
|
316
378
|
* Wallet address on the specified blockchain.
|
|
317
379
|
*/
|
|
@@ -320,7 +382,15 @@ export namespace DepositListResponse {
|
|
|
320
382
|
/**
|
|
321
383
|
* Blockchain network for the crypto wallet.
|
|
322
384
|
*/
|
|
323
|
-
blockchain:
|
|
385
|
+
blockchain:
|
|
386
|
+
| 'bitcoin'
|
|
387
|
+
| 'ethereum'
|
|
388
|
+
| 'solana'
|
|
389
|
+
| 'polygon'
|
|
390
|
+
| 'bitcoin_testnet4'
|
|
391
|
+
| 'ethereum_sepolia'
|
|
392
|
+
| 'solana_devnet'
|
|
393
|
+
| 'polygon_amoy';
|
|
324
394
|
|
|
325
395
|
/**
|
|
326
396
|
* Discriminator for crypto wallet source.
|
package/src/resources/index.ts
CHANGED
|
@@ -57,7 +57,15 @@ export {
|
|
|
57
57
|
type PayoutListResponsesCursorPage,
|
|
58
58
|
} from './payouts';
|
|
59
59
|
export { Quotes, type QuoteRetrieveResponse } from './quotes/quotes';
|
|
60
|
-
export {
|
|
60
|
+
export {
|
|
61
|
+
Returns,
|
|
62
|
+
type ReturnCreateResponse,
|
|
63
|
+
type ReturnRetrieveResponse,
|
|
64
|
+
type ReturnListResponse,
|
|
65
|
+
type ReturnCreateParams,
|
|
66
|
+
type ReturnListParams,
|
|
67
|
+
type ReturnListResponsesCursorPage,
|
|
68
|
+
} from './returns';
|
|
61
69
|
export { Scopes, type ScopeListResponse } from './scopes';
|
|
62
70
|
export {
|
|
63
71
|
WebhookDeliveries,
|
package/src/resources/payouts.ts
CHANGED
|
@@ -53,7 +53,7 @@ export interface PayoutCreateResponse {
|
|
|
53
53
|
/**
|
|
54
54
|
* Currency code (ISO 4217 currency code or crypto currency code).
|
|
55
55
|
*/
|
|
56
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
56
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Bank account or crypto wallet the payout was sent to.
|
|
@@ -176,7 +176,15 @@ export namespace PayoutCreateResponse {
|
|
|
176
176
|
/**
|
|
177
177
|
* Blockchain network for the crypto wallet.
|
|
178
178
|
*/
|
|
179
|
-
blockchain:
|
|
179
|
+
blockchain:
|
|
180
|
+
| 'bitcoin'
|
|
181
|
+
| 'ethereum'
|
|
182
|
+
| 'solana'
|
|
183
|
+
| 'polygon'
|
|
184
|
+
| 'bitcoin_testnet4'
|
|
185
|
+
| 'ethereum_sepolia'
|
|
186
|
+
| 'solana_devnet'
|
|
187
|
+
| 'polygon_amoy';
|
|
180
188
|
|
|
181
189
|
/**
|
|
182
190
|
* Discriminator for crypto wallet financial address.
|
|
@@ -238,7 +246,7 @@ export interface PayoutRetrieveResponse {
|
|
|
238
246
|
/**
|
|
239
247
|
* Currency code (ISO 4217 currency code or crypto currency code).
|
|
240
248
|
*/
|
|
241
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
249
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
242
250
|
|
|
243
251
|
/**
|
|
244
252
|
* Bank account or crypto wallet the payout was sent to.
|
|
@@ -361,7 +369,15 @@ export namespace PayoutRetrieveResponse {
|
|
|
361
369
|
/**
|
|
362
370
|
* Blockchain network for the crypto wallet.
|
|
363
371
|
*/
|
|
364
|
-
blockchain:
|
|
372
|
+
blockchain:
|
|
373
|
+
| 'bitcoin'
|
|
374
|
+
| 'ethereum'
|
|
375
|
+
| 'solana'
|
|
376
|
+
| 'polygon'
|
|
377
|
+
| 'bitcoin_testnet4'
|
|
378
|
+
| 'ethereum_sepolia'
|
|
379
|
+
| 'solana_devnet'
|
|
380
|
+
| 'polygon_amoy';
|
|
365
381
|
|
|
366
382
|
/**
|
|
367
383
|
* Discriminator for crypto wallet financial address.
|
|
@@ -423,7 +439,7 @@ export interface PayoutListResponse {
|
|
|
423
439
|
/**
|
|
424
440
|
* Currency code (ISO 4217 currency code or crypto currency code).
|
|
425
441
|
*/
|
|
426
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
442
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
427
443
|
|
|
428
444
|
/**
|
|
429
445
|
* Bank account or crypto wallet the payout was sent to.
|
|
@@ -546,7 +562,15 @@ export namespace PayoutListResponse {
|
|
|
546
562
|
/**
|
|
547
563
|
* Blockchain network for the crypto wallet.
|
|
548
564
|
*/
|
|
549
|
-
blockchain:
|
|
565
|
+
blockchain:
|
|
566
|
+
| 'bitcoin'
|
|
567
|
+
| 'ethereum'
|
|
568
|
+
| 'solana'
|
|
569
|
+
| 'polygon'
|
|
570
|
+
| 'bitcoin_testnet4'
|
|
571
|
+
| 'ethereum_sepolia'
|
|
572
|
+
| 'solana_devnet'
|
|
573
|
+
| 'polygon_amoy';
|
|
550
574
|
|
|
551
575
|
/**
|
|
552
576
|
* Discriminator for crypto wallet financial address.
|
|
@@ -598,7 +622,7 @@ export interface PayoutCreateParams {
|
|
|
598
622
|
/**
|
|
599
623
|
* Currency for the payout.
|
|
600
624
|
*/
|
|
601
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
625
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
602
626
|
|
|
603
627
|
/**
|
|
604
628
|
* Bank account or crypto wallet to send funds to.
|
|
@@ -606,7 +630,8 @@ export interface PayoutCreateParams {
|
|
|
606
630
|
destination:
|
|
607
631
|
| PayoutCreateParams.UnionMember0
|
|
608
632
|
| PayoutCreateParams.UnionMember1
|
|
609
|
-
| PayoutCreateParams.UnionMember2
|
|
633
|
+
| PayoutCreateParams.UnionMember2
|
|
634
|
+
| PayoutCreateParams.UnionMember3;
|
|
610
635
|
|
|
611
636
|
/**
|
|
612
637
|
* Payment reference.
|
|
@@ -675,6 +700,28 @@ export namespace PayoutCreateParams {
|
|
|
675
700
|
}
|
|
676
701
|
|
|
677
702
|
export interface UnionMember2 {
|
|
703
|
+
/**
|
|
704
|
+
* Name of the account holder.
|
|
705
|
+
*/
|
|
706
|
+
account_holder_name: string;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Bank account number.
|
|
710
|
+
*/
|
|
711
|
+
account_number: string;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* ABA routing number (9 digits).
|
|
715
|
+
*/
|
|
716
|
+
routing_number: string;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Discriminator for ABA wire financial address.
|
|
720
|
+
*/
|
|
721
|
+
type: 'aba';
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export interface UnionMember3 {
|
|
678
725
|
/**
|
|
679
726
|
* Wallet address on the specified blockchain.
|
|
680
727
|
*/
|
|
@@ -683,7 +730,15 @@ export namespace PayoutCreateParams {
|
|
|
683
730
|
/**
|
|
684
731
|
* Blockchain network for the crypto wallet.
|
|
685
732
|
*/
|
|
686
|
-
blockchain:
|
|
733
|
+
blockchain:
|
|
734
|
+
| 'bitcoin'
|
|
735
|
+
| 'ethereum'
|
|
736
|
+
| 'solana'
|
|
737
|
+
| 'polygon'
|
|
738
|
+
| 'bitcoin_testnet4'
|
|
739
|
+
| 'ethereum_sepolia'
|
|
740
|
+
| 'solana_devnet'
|
|
741
|
+
| 'polygon_amoy';
|
|
687
742
|
|
|
688
743
|
/**
|
|
689
744
|
* Discriminator for crypto wallet financial address.
|
|
@@ -699,7 +754,7 @@ export interface PayoutListParams extends CursorPageParams {
|
|
|
699
754
|
* Filter to these currency codes. Use a separate `currencies` query parameter for
|
|
700
755
|
* each value (e.g. `?currencies=EUR¤cies=USD`).
|
|
701
756
|
*/
|
|
702
|
-
currencies?: Array<'EUR' | 'GBP' | 'USD' | 'USDC'>;
|
|
757
|
+
currencies?: Array<'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC'>;
|
|
703
758
|
|
|
704
759
|
/**
|
|
705
760
|
* Filter by payout status.
|
|
@@ -40,7 +40,7 @@ export interface IndicativeRetrieveResponse {
|
|
|
40
40
|
/**
|
|
41
41
|
* Source currency code.
|
|
42
42
|
*/
|
|
43
|
-
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
43
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Target amount as a string decimal.
|
|
@@ -50,7 +50,7 @@ export interface IndicativeRetrieveResponse {
|
|
|
50
50
|
/**
|
|
51
51
|
* Target currency code.
|
|
52
52
|
*/
|
|
53
|
-
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
53
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* Venue the quote was fetched from.
|
|
@@ -71,7 +71,7 @@ export namespace IndicativeRetrieveResponse {
|
|
|
71
71
|
/**
|
|
72
72
|
* Fee currency code.
|
|
73
73
|
*/
|
|
74
|
-
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
74
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -79,12 +79,12 @@ export interface IndicativeRetrieveParams {
|
|
|
79
79
|
/**
|
|
80
80
|
* Source currency code.
|
|
81
81
|
*/
|
|
82
|
-
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
82
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Target currency code.
|
|
86
86
|
*/
|
|
87
|
-
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
87
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* Source amount as a string decimal. Defaults to 1 unit if omitted.
|
|
@@ -52,7 +52,7 @@ export interface QuoteRetrieveResponse {
|
|
|
52
52
|
/**
|
|
53
53
|
* Source currency code.
|
|
54
54
|
*/
|
|
55
|
-
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
55
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* Current status of the quote.
|
|
@@ -77,7 +77,7 @@ export interface QuoteRetrieveResponse {
|
|
|
77
77
|
/**
|
|
78
78
|
* Target currency code.
|
|
79
79
|
*/
|
|
80
|
-
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
80
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* Resource type discriminator.
|