@augustusbank/typescript-sdk 0.12.1 → 0.13.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 (185) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +1 -1
  3. package/api-promise.d.mts +1 -0
  4. package/api-promise.d.mts.map +1 -1
  5. package/api-promise.d.ts +1 -0
  6. package/api-promise.d.ts.map +1 -1
  7. package/api-promise.mjs +1 -0
  8. package/api-promise.mjs.map +1 -1
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts.map +1 -1
  11. package/client.js +9 -1
  12. package/client.js.map +1 -1
  13. package/client.mjs +9 -1
  14. package/client.mjs.map +1 -1
  15. package/core/api-promise.d.mts.map +1 -1
  16. package/core/api-promise.d.ts.map +1 -1
  17. package/core/api-promise.mjs.map +1 -1
  18. package/core/error.mjs.map +1 -1
  19. package/core/pagination.d.mts.map +1 -1
  20. package/core/pagination.d.ts.map +1 -1
  21. package/core/pagination.mjs.map +1 -1
  22. package/core/resource.d.mts.map +1 -1
  23. package/core/resource.d.ts.map +1 -1
  24. package/core/uploads.d.mts.map +1 -1
  25. package/core/uploads.d.ts.map +1 -1
  26. package/core/uploads.mjs.map +1 -1
  27. package/error.d.mts +1 -0
  28. package/error.d.mts.map +1 -1
  29. package/error.d.ts +1 -0
  30. package/error.d.ts.map +1 -1
  31. package/error.mjs +1 -0
  32. package/error.mjs.map +1 -1
  33. package/index.d.mts.map +1 -1
  34. package/index.d.ts.map +1 -1
  35. package/index.mjs.map +1 -1
  36. package/internal/detect-platform.mjs.map +1 -1
  37. package/internal/headers.mjs.map +1 -1
  38. package/internal/parse.d.mts.map +1 -1
  39. package/internal/parse.d.ts.map +1 -1
  40. package/internal/parse.mjs.map +1 -1
  41. package/internal/qs/formats.d.mts.map +1 -1
  42. package/internal/qs/formats.d.ts.map +1 -1
  43. package/internal/qs/index.d.mts +2 -2
  44. package/internal/qs/index.d.mts.map +1 -1
  45. package/internal/qs/index.d.ts +2 -2
  46. package/internal/qs/index.d.ts.map +1 -1
  47. package/internal/qs/index.mjs.map +1 -1
  48. package/internal/qs/stringify.d.mts.map +1 -1
  49. package/internal/qs/stringify.d.ts.map +1 -1
  50. package/internal/qs/stringify.mjs.map +1 -1
  51. package/internal/qs/utils.d.mts.map +1 -1
  52. package/internal/qs/utils.d.ts.map +1 -1
  53. package/internal/qs/utils.mjs.map +1 -1
  54. package/internal/request-options.d.mts.map +1 -1
  55. package/internal/request-options.d.ts.map +1 -1
  56. package/internal/shims.d.mts +6 -0
  57. package/internal/shims.d.mts.map +1 -1
  58. package/internal/shims.d.ts +6 -0
  59. package/internal/shims.d.ts.map +1 -1
  60. package/internal/to-file.d.mts.map +1 -1
  61. package/internal/to-file.d.ts.map +1 -1
  62. package/internal/to-file.mjs.map +1 -1
  63. package/internal/types.d.mts +4 -4
  64. package/internal/types.d.mts.map +1 -1
  65. package/internal/types.d.ts +4 -4
  66. package/internal/types.d.ts.map +1 -1
  67. package/internal/uploads.d.mts.map +1 -1
  68. package/internal/uploads.d.ts.map +1 -1
  69. package/internal/uploads.mjs.map +1 -1
  70. package/internal/utils/base64.mjs.map +1 -1
  71. package/internal/utils/log.d.mts.map +1 -1
  72. package/internal/utils/log.d.ts.map +1 -1
  73. package/internal/utils/log.mjs.map +1 -1
  74. package/internal/utils/path.mjs.map +1 -1
  75. package/internal/utils/query.mjs.map +1 -1
  76. package/internal/utils/values.mjs.map +1 -1
  77. package/internal/utils.d.mts.map +1 -1
  78. package/internal/utils.d.ts.map +1 -1
  79. package/internal/utils.mjs.map +1 -1
  80. package/package.json +2 -2
  81. package/pagination.d.mts +1 -0
  82. package/pagination.d.mts.map +1 -1
  83. package/pagination.d.ts +1 -0
  84. package/pagination.d.ts.map +1 -1
  85. package/pagination.mjs +1 -0
  86. package/pagination.mjs.map +1 -1
  87. package/resource.d.mts +1 -0
  88. package/resource.d.mts.map +1 -1
  89. package/resource.d.ts +1 -0
  90. package/resource.d.ts.map +1 -1
  91. package/resource.mjs +1 -0
  92. package/resource.mjs.map +1 -1
  93. package/resources/account-programs.d.mts.map +1 -1
  94. package/resources/account-programs.d.ts.map +1 -1
  95. package/resources/account-programs.mjs.map +1 -1
  96. package/resources/accounts.d.mts +156 -66
  97. package/resources/accounts.d.mts.map +1 -1
  98. package/resources/accounts.d.ts +156 -66
  99. package/resources/accounts.d.ts.map +1 -1
  100. package/resources/accounts.mjs.map +1 -1
  101. package/resources/api-keys.d.mts.map +1 -1
  102. package/resources/api-keys.d.ts.map +1 -1
  103. package/resources/api-keys.mjs.map +1 -1
  104. package/resources/api-versions.d.mts.map +1 -1
  105. package/resources/api-versions.d.ts.map +1 -1
  106. package/resources/api-versions.mjs.map +1 -1
  107. package/resources/conversions.d.mts +8 -8
  108. package/resources/conversions.d.mts.map +1 -1
  109. package/resources/conversions.d.ts +8 -8
  110. package/resources/conversions.d.ts.map +1 -1
  111. package/resources/conversions.mjs.map +1 -1
  112. package/resources/deposits.d.mts +44 -8
  113. package/resources/deposits.d.mts.map +1 -1
  114. package/resources/deposits.d.ts +44 -8
  115. package/resources/deposits.d.ts.map +1 -1
  116. package/resources/deposits.mjs.map +1 -1
  117. package/resources/events.d.mts.map +1 -1
  118. package/resources/events.d.ts.map +1 -1
  119. package/resources/events.mjs.map +1 -1
  120. package/resources/index.d.mts.map +1 -1
  121. package/resources/index.d.ts.map +1 -1
  122. package/resources/index.mjs.map +1 -1
  123. package/resources/payouts.d.mts +28 -10
  124. package/resources/payouts.d.mts.map +1 -1
  125. package/resources/payouts.d.ts +28 -10
  126. package/resources/payouts.d.ts.map +1 -1
  127. package/resources/payouts.mjs.map +1 -1
  128. package/resources/quotes/index.d.mts.map +1 -1
  129. package/resources/quotes/index.d.ts.map +1 -1
  130. package/resources/quotes/index.mjs.map +1 -1
  131. package/resources/quotes/indicative.d.mts +5 -5
  132. package/resources/quotes/indicative.d.mts.map +1 -1
  133. package/resources/quotes/indicative.d.ts +5 -5
  134. package/resources/quotes/indicative.d.ts.map +1 -1
  135. package/resources/quotes/indicative.mjs.map +1 -1
  136. package/resources/quotes/quotes.d.mts +2 -2
  137. package/resources/quotes/quotes.d.mts.map +1 -1
  138. package/resources/quotes/quotes.d.ts +2 -2
  139. package/resources/quotes/quotes.d.ts.map +1 -1
  140. package/resources/quotes/quotes.mjs.map +1 -1
  141. package/resources/quotes.d.mts.map +1 -1
  142. package/resources/quotes.d.ts.map +1 -1
  143. package/resources/quotes.mjs.map +1 -1
  144. package/resources/returns.d.mts +1 -1
  145. package/resources/returns.d.mts.map +1 -1
  146. package/resources/returns.d.ts +1 -1
  147. package/resources/returns.d.ts.map +1 -1
  148. package/resources/returns.mjs.map +1 -1
  149. package/resources/scopes.d.mts.map +1 -1
  150. package/resources/scopes.d.ts.map +1 -1
  151. package/resources/scopes.mjs.map +1 -1
  152. package/resources/webhook-deliveries.d.mts.map +1 -1
  153. package/resources/webhook-deliveries.d.ts.map +1 -1
  154. package/resources/webhook-deliveries.mjs.map +1 -1
  155. package/resources/webhook-subscriptions.d.mts.map +1 -1
  156. package/resources/webhook-subscriptions.d.ts.map +1 -1
  157. package/resources/webhook-subscriptions.mjs.map +1 -1
  158. package/resources/webhooks.d.mts +40 -22
  159. package/resources/webhooks.d.mts.map +1 -1
  160. package/resources/webhooks.d.ts +40 -22
  161. package/resources/webhooks.d.ts.map +1 -1
  162. package/resources/webhooks.mjs.map +1 -1
  163. package/resources.d.mts.map +1 -1
  164. package/resources.d.ts.map +1 -1
  165. package/resources.mjs.map +1 -1
  166. package/src/client.ts +9 -1
  167. package/src/resources/accounts.ts +500 -95
  168. package/src/resources/conversions.ts +8 -8
  169. package/src/resources/deposits.ts +76 -6
  170. package/src/resources/payouts.ts +65 -10
  171. package/src/resources/quotes/indicative.ts +5 -5
  172. package/src/resources/quotes/quotes.ts +2 -2
  173. package/src/resources/returns.ts +1 -1
  174. package/src/resources/webhooks.ts +87 -21
  175. package/src/version.ts +1 -1
  176. package/uploads.d.mts +1 -0
  177. package/uploads.d.mts.map +1 -1
  178. package/uploads.d.ts +1 -0
  179. package/uploads.d.ts.map +1 -1
  180. package/uploads.mjs +1 -0
  181. package/uploads.mjs.map +1 -1
  182. package/version.d.mts +1 -1
  183. package/version.d.ts +1 -1
  184. package/version.js +1 -1
  185. 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: 'ethereum' | 'solana' | 'polygon';
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: 'ethereum' | 'solana' | 'polygon';
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.
@@ -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: 'ethereum' | 'solana' | 'polygon';
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: 'ethereum' | 'solana' | 'polygon';
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: 'ethereum' | 'solana' | 'polygon';
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: 'ethereum' | 'solana' | 'polygon';
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&currencies=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.
@@ -33,7 +33,7 @@ export interface ReturnRetrieveResponse {
33
33
  /**
34
34
  * Currency code (ISO 4217 currency code or crypto currency code).
35
35
  */
36
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
36
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
37
37
 
38
38
  /**
39
39
  * ID of the parent deposit.
@@ -68,7 +68,7 @@ export namespace PayoutCreatedWebhookEvent {
68
68
  /**
69
69
  * Currency code (ISO 4217 currency code or crypto currency code).
70
70
  */
71
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
71
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
72
72
 
73
73
  /**
74
74
  * Bank account or crypto wallet the payout was sent to.
@@ -187,7 +187,15 @@ export namespace PayoutCreatedWebhookEvent {
187
187
  /**
188
188
  * Blockchain network for the crypto wallet.
189
189
  */
190
- blockchain: 'ethereum' | 'solana' | 'polygon';
190
+ blockchain:
191
+ | 'bitcoin'
192
+ | 'ethereum'
193
+ | 'solana'
194
+ | 'polygon'
195
+ | 'bitcoin_testnet4'
196
+ | 'ethereum_sepolia'
197
+ | 'solana_devnet'
198
+ | 'polygon_amoy';
191
199
 
192
200
  /**
193
201
  * Discriminator for crypto wallet financial address.
@@ -281,7 +289,7 @@ export namespace PayoutInitiatedWebhookEvent {
281
289
  /**
282
290
  * Currency code (ISO 4217 currency code or crypto currency code).
283
291
  */
284
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
292
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
285
293
 
286
294
  /**
287
295
  * Bank account or crypto wallet the payout was sent to.
@@ -400,7 +408,15 @@ export namespace PayoutInitiatedWebhookEvent {
400
408
  /**
401
409
  * Blockchain network for the crypto wallet.
402
410
  */
403
- blockchain: 'ethereum' | 'solana' | 'polygon';
411
+ blockchain:
412
+ | 'bitcoin'
413
+ | 'ethereum'
414
+ | 'solana'
415
+ | 'polygon'
416
+ | 'bitcoin_testnet4'
417
+ | 'ethereum_sepolia'
418
+ | 'solana_devnet'
419
+ | 'polygon_amoy';
404
420
 
405
421
  /**
406
422
  * Discriminator for crypto wallet financial address.
@@ -494,7 +510,7 @@ export namespace PayoutPaidWebhookEvent {
494
510
  /**
495
511
  * Currency code (ISO 4217 currency code or crypto currency code).
496
512
  */
497
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
513
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
498
514
 
499
515
  /**
500
516
  * Bank account or crypto wallet the payout was sent to.
@@ -613,7 +629,15 @@ export namespace PayoutPaidWebhookEvent {
613
629
  /**
614
630
  * Blockchain network for the crypto wallet.
615
631
  */
616
- blockchain: 'ethereum' | 'solana' | 'polygon';
632
+ blockchain:
633
+ | 'bitcoin'
634
+ | 'ethereum'
635
+ | 'solana'
636
+ | 'polygon'
637
+ | 'bitcoin_testnet4'
638
+ | 'ethereum_sepolia'
639
+ | 'solana_devnet'
640
+ | 'polygon_amoy';
617
641
 
618
642
  /**
619
643
  * Discriminator for crypto wallet financial address.
@@ -707,7 +731,7 @@ export namespace PayoutFailedWebhookEvent {
707
731
  /**
708
732
  * Currency code (ISO 4217 currency code or crypto currency code).
709
733
  */
710
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
734
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
711
735
 
712
736
  /**
713
737
  * Bank account or crypto wallet the payout was sent to.
@@ -826,7 +850,15 @@ export namespace PayoutFailedWebhookEvent {
826
850
  /**
827
851
  * Blockchain network for the crypto wallet.
828
852
  */
829
- blockchain: 'ethereum' | 'solana' | 'polygon';
853
+ blockchain:
854
+ | 'bitcoin'
855
+ | 'ethereum'
856
+ | 'solana'
857
+ | 'polygon'
858
+ | 'bitcoin_testnet4'
859
+ | 'ethereum_sepolia'
860
+ | 'solana_devnet'
861
+ | 'polygon_amoy';
830
862
 
831
863
  /**
832
864
  * Discriminator for crypto wallet financial address.
@@ -920,7 +952,7 @@ export namespace ReturnInitiatedWebhookEvent {
920
952
  /**
921
953
  * Currency code (ISO 4217 currency code or crypto currency code).
922
954
  */
923
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
955
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
924
956
 
925
957
  /**
926
958
  * ID of the parent deposit.
@@ -1035,7 +1067,7 @@ export namespace ReturnPaidWebhookEvent {
1035
1067
  /**
1036
1068
  * Currency code (ISO 4217 currency code or crypto currency code).
1037
1069
  */
1038
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
1070
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
1039
1071
 
1040
1072
  /**
1041
1073
  * ID of the parent deposit.
@@ -1150,7 +1182,7 @@ export namespace ReturnFailedWebhookEvent {
1150
1182
  /**
1151
1183
  * Currency code (ISO 4217 currency code or crypto currency code).
1152
1184
  */
1153
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
1185
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
1154
1186
 
1155
1187
  /**
1156
1188
  * ID of the parent deposit.
@@ -1265,7 +1297,7 @@ export namespace ReturnReturnedWebhookEvent {
1265
1297
  /**
1266
1298
  * Currency code (ISO 4217 currency code or crypto currency code).
1267
1299
  */
1268
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
1300
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
1269
1301
 
1270
1302
  /**
1271
1303
  * ID of the parent deposit.
@@ -1385,7 +1417,7 @@ export namespace DepositReceivedWebhookEvent {
1385
1417
  /**
1386
1418
  * Supported fiat or crypto currency code for the deposit amount.
1387
1419
  */
1388
- currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
1420
+ currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
1389
1421
 
1390
1422
  /**
1391
1423
  * ID of the merchant account that received the deposit.
@@ -1407,6 +1439,10 @@ export namespace DepositReceivedWebhookEvent {
1407
1439
  | 'swift'
1408
1440
  | 'internal'
1409
1441
  | 'target'
1442
+ | 'ach'
1443
+ | 'fedwire'
1444
+ | 'btc'
1445
+ | 'btc_testnet4'
1410
1446
  | 'eth'
1411
1447
  | 'eth_sepolia'
1412
1448
  | 'sol'
@@ -1423,7 +1459,7 @@ export namespace DepositReceivedWebhookEvent {
1423
1459
  /**
1424
1460
  * Counterparty bank account or crypto wallet that sent the funds.
1425
1461
  */
1426
- source: Payload.UnionMember0 | Payload.UnionMember1 | Payload.UnionMember2;
1462
+ source: Payload.UnionMember0 | Payload.UnionMember1 | Payload.UnionMember2 | Payload.UnionMember3;
1427
1463
 
1428
1464
  /**
1429
1465
  * Current status of the deposit.
@@ -1492,6 +1528,28 @@ export namespace DepositReceivedWebhookEvent {
1492
1528
  }
1493
1529
 
1494
1530
  export interface UnionMember2 {
1531
+ /**
1532
+ * Name of the account holder.
1533
+ */
1534
+ account_holder_name: string;
1535
+
1536
+ /**
1537
+ * Bank account number.
1538
+ */
1539
+ account_number: string;
1540
+
1541
+ /**
1542
+ * ABA routing number (9 digits).
1543
+ */
1544
+ routing_number: string;
1545
+
1546
+ /**
1547
+ * Discriminator for ABA wire source.
1548
+ */
1549
+ type: 'aba';
1550
+ }
1551
+
1552
+ export interface UnionMember3 {
1495
1553
  /**
1496
1554
  * Wallet address on the specified blockchain.
1497
1555
  */
@@ -1500,7 +1558,15 @@ export namespace DepositReceivedWebhookEvent {
1500
1558
  /**
1501
1559
  * Blockchain network for the crypto wallet.
1502
1560
  */
1503
- blockchain: 'ethereum' | 'solana' | 'polygon';
1561
+ blockchain:
1562
+ | 'bitcoin'
1563
+ | 'ethereum'
1564
+ | 'solana'
1565
+ | 'polygon'
1566
+ | 'bitcoin_testnet4'
1567
+ | 'ethereum_sepolia'
1568
+ | 'solana_devnet'
1569
+ | 'polygon_amoy';
1504
1570
 
1505
1571
  /**
1506
1572
  * Discriminator for crypto wallet source.
@@ -1585,7 +1651,7 @@ export namespace ConversionCreatedWebhookEvent {
1585
1651
  /**
1586
1652
  * Source currency code.
1587
1653
  */
1588
- source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
1654
+ source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
1589
1655
 
1590
1656
  /**
1591
1657
  * Current status of the conversion.
@@ -1600,7 +1666,7 @@ export namespace ConversionCreatedWebhookEvent {
1600
1666
  /**
1601
1667
  * Target currency code.
1602
1668
  */
1603
- target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
1669
+ target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
1604
1670
 
1605
1671
  /**
1606
1672
  * Resource type discriminator.
@@ -1701,7 +1767,7 @@ export namespace ConversionCompletedWebhookEvent {
1701
1767
  /**
1702
1768
  * Source currency code.
1703
1769
  */
1704
- source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
1770
+ source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
1705
1771
 
1706
1772
  /**
1707
1773
  * Current status of the conversion.
@@ -1716,7 +1782,7 @@ export namespace ConversionCompletedWebhookEvent {
1716
1782
  /**
1717
1783
  * Target currency code.
1718
1784
  */
1719
- target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
1785
+ target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
1720
1786
 
1721
1787
  /**
1722
1788
  * Resource type discriminator.
@@ -1817,7 +1883,7 @@ export namespace ConversionFailedWebhookEvent {
1817
1883
  /**
1818
1884
  * Source currency code.
1819
1885
  */
1820
- source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
1886
+ source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
1821
1887
 
1822
1888
  /**
1823
1889
  * Current status of the conversion.
@@ -1832,7 +1898,7 @@ export namespace ConversionFailedWebhookEvent {
1832
1898
  /**
1833
1899
  * Target currency code.
1834
1900
  */
1835
- target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
1901
+ target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC' | 'BTC';
1836
1902
 
1837
1903
  /**
1838
1904
  * Resource type discriminator.