@getivy/node-sdk 2.6.0 → 2.20.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 (232) hide show
  1. package/CHANGELOG.md +164 -0
  2. package/README.md +2 -2
  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/bin/migration-config.json +1 -1
  10. package/client.d.mts +10 -4
  11. package/client.d.mts.map +1 -1
  12. package/client.d.ts +10 -4
  13. package/client.d.ts.map +1 -1
  14. package/client.js +21 -7
  15. package/client.js.map +1 -1
  16. package/client.mjs +21 -7
  17. package/client.mjs.map +1 -1
  18. package/core/api-promise.d.mts.map +1 -1
  19. package/core/api-promise.d.ts.map +1 -1
  20. package/core/api-promise.mjs.map +1 -1
  21. package/core/error.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/request-options.d.mts.map +1 -1
  42. package/internal/request-options.d.ts.map +1 -1
  43. package/internal/shims.d.mts +6 -0
  44. package/internal/shims.d.mts.map +1 -1
  45. package/internal/shims.d.ts +6 -0
  46. package/internal/shims.d.ts.map +1 -1
  47. package/internal/to-file.d.mts.map +1 -1
  48. package/internal/to-file.d.ts.map +1 -1
  49. package/internal/to-file.mjs.map +1 -1
  50. package/internal/tslib.js +17 -17
  51. package/internal/types.d.mts +4 -4
  52. package/internal/types.d.mts.map +1 -1
  53. package/internal/types.d.ts +4 -4
  54. package/internal/types.d.ts.map +1 -1
  55. package/internal/uploads.d.mts.map +1 -1
  56. package/internal/uploads.d.ts.map +1 -1
  57. package/internal/uploads.mjs.map +1 -1
  58. package/internal/utils/base64.mjs.map +1 -1
  59. package/internal/utils/log.d.mts.map +1 -1
  60. package/internal/utils/log.d.ts.map +1 -1
  61. package/internal/utils/log.js +4 -1
  62. package/internal/utils/log.js.map +1 -1
  63. package/internal/utils/log.mjs +4 -1
  64. package/internal/utils/log.mjs.map +1 -1
  65. package/internal/utils/path.mjs.map +1 -1
  66. package/internal/utils/query.mjs.map +1 -1
  67. package/internal/utils/values.mjs.map +1 -1
  68. package/internal/utils.d.mts.map +1 -1
  69. package/internal/utils.d.ts.map +1 -1
  70. package/internal/utils.mjs.map +1 -1
  71. package/lib/request-signing.d.mts +6 -0
  72. package/lib/request-signing.d.mts.map +1 -0
  73. package/lib/request-signing.d.ts +6 -0
  74. package/lib/request-signing.d.ts.map +1 -0
  75. package/lib/request-signing.js +113 -0
  76. package/lib/request-signing.js.map +1 -0
  77. package/lib/request-signing.mjs +109 -0
  78. package/lib/request-signing.mjs.map +1 -0
  79. package/package.json +16 -4
  80. package/resource.d.mts +1 -0
  81. package/resource.d.mts.map +1 -1
  82. package/resource.d.ts +1 -0
  83. package/resource.d.ts.map +1 -1
  84. package/resource.mjs +1 -0
  85. package/resource.mjs.map +1 -1
  86. package/resources/balance.d.mts.map +1 -1
  87. package/resources/balance.d.ts.map +1 -1
  88. package/resources/balance.mjs.map +1 -1
  89. package/resources/banks.d.mts +12 -14
  90. package/resources/banks.d.mts.map +1 -1
  91. package/resources/banks.d.ts +12 -14
  92. package/resources/banks.d.ts.map +1 -1
  93. package/resources/banks.mjs.map +1 -1
  94. package/resources/beneficiary-payouts.d.mts +2 -2
  95. package/resources/beneficiary-payouts.d.mts.map +1 -1
  96. package/resources/beneficiary-payouts.d.ts +2 -2
  97. package/resources/beneficiary-payouts.d.ts.map +1 -1
  98. package/resources/beneficiary-payouts.mjs.map +1 -1
  99. package/resources/capabilities.d.mts +8 -1
  100. package/resources/capabilities.d.mts.map +1 -1
  101. package/resources/capabilities.d.ts +8 -1
  102. package/resources/capabilities.d.ts.map +1 -1
  103. package/resources/capabilities.js +7 -0
  104. package/resources/capabilities.js.map +1 -1
  105. package/resources/capabilities.mjs +7 -0
  106. package/resources/capabilities.mjs.map +1 -1
  107. package/resources/checkoutsession.d.mts +18 -10
  108. package/resources/checkoutsession.d.mts.map +1 -1
  109. package/resources/checkoutsession.d.ts +18 -10
  110. package/resources/checkoutsession.d.ts.map +1 -1
  111. package/resources/checkoutsession.js +3 -2
  112. package/resources/checkoutsession.js.map +1 -1
  113. package/resources/checkoutsession.mjs +3 -2
  114. package/resources/checkoutsession.mjs.map +1 -1
  115. package/resources/counterparties.d.mts +956 -0
  116. package/resources/counterparties.d.mts.map +1 -0
  117. package/resources/counterparties.d.ts +956 -0
  118. package/resources/counterparties.d.ts.map +1 -0
  119. package/resources/counterparties.js +41 -0
  120. package/resources/counterparties.js.map +1 -0
  121. package/resources/counterparties.mjs +37 -0
  122. package/resources/counterparties.mjs.map +1 -0
  123. package/resources/customers.d.mts +6 -6
  124. package/resources/customers.d.mts.map +1 -1
  125. package/resources/customers.d.ts +6 -6
  126. package/resources/customers.d.ts.map +1 -1
  127. package/resources/customers.mjs.map +1 -1
  128. package/resources/deposits.d.mts +21 -7
  129. package/resources/deposits.d.mts.map +1 -1
  130. package/resources/deposits.d.ts +21 -7
  131. package/resources/deposits.d.ts.map +1 -1
  132. package/resources/deposits.mjs.map +1 -1
  133. package/resources/index.d.mts +1 -1
  134. package/resources/index.d.mts.map +1 -1
  135. package/resources/index.d.ts +1 -1
  136. package/resources/index.d.ts.map +1 -1
  137. package/resources/index.js +3 -3
  138. package/resources/index.js.map +1 -1
  139. package/resources/index.mjs +1 -1
  140. package/resources/index.mjs.map +1 -1
  141. package/resources/orders.d.mts +102 -39
  142. package/resources/orders.d.mts.map +1 -1
  143. package/resources/orders.d.ts +102 -39
  144. package/resources/orders.d.ts.map +1 -1
  145. package/resources/orders.mjs.map +1 -1
  146. package/resources/payee.d.mts.map +1 -1
  147. package/resources/payee.d.ts.map +1 -1
  148. package/resources/payee.mjs.map +1 -1
  149. package/resources/payouts.d.mts +82 -21
  150. package/resources/payouts.d.mts.map +1 -1
  151. package/resources/payouts.d.ts +82 -21
  152. package/resources/payouts.d.ts.map +1 -1
  153. package/resources/payouts.mjs.map +1 -1
  154. package/resources/refunds.d.mts +1 -1
  155. package/resources/refunds.d.mts.map +1 -1
  156. package/resources/refunds.d.ts +1 -1
  157. package/resources/refunds.d.ts.map +1 -1
  158. package/resources/refunds.mjs.map +1 -1
  159. package/resources/returns.d.mts +2 -2
  160. package/resources/returns.d.mts.map +1 -1
  161. package/resources/returns.d.ts +2 -2
  162. package/resources/returns.d.ts.map +1 -1
  163. package/resources/returns.mjs.map +1 -1
  164. package/resources/subaccounts.d.mts +4 -4
  165. package/resources/subaccounts.d.mts.map +1 -1
  166. package/resources/subaccounts.d.ts +4 -4
  167. package/resources/subaccounts.d.ts.map +1 -1
  168. package/resources/subaccounts.mjs.map +1 -1
  169. package/resources/transactions.d.mts +3 -3
  170. package/resources/transactions.d.mts.map +1 -1
  171. package/resources/transactions.d.ts +3 -3
  172. package/resources/transactions.d.ts.map +1 -1
  173. package/resources/transactions.mjs.map +1 -1
  174. package/resources/webhook/index.d.mts.map +1 -1
  175. package/resources/webhook/index.d.ts.map +1 -1
  176. package/resources/webhook/index.mjs.map +1 -1
  177. package/resources/webhook/subscription.d.mts +12 -12
  178. package/resources/webhook/subscription.d.mts.map +1 -1
  179. package/resources/webhook/subscription.d.ts +12 -12
  180. package/resources/webhook/subscription.d.ts.map +1 -1
  181. package/resources/webhook/subscription.mjs.map +1 -1
  182. package/resources/webhook/webhook.d.mts.map +1 -1
  183. package/resources/webhook/webhook.d.ts.map +1 -1
  184. package/resources/webhook/webhook.mjs.map +1 -1
  185. package/resources/webhook.d.mts.map +1 -1
  186. package/resources/webhook.d.ts.map +1 -1
  187. package/resources/webhook.mjs.map +1 -1
  188. package/resources.d.mts.map +1 -1
  189. package/resources.d.ts.map +1 -1
  190. package/resources.mjs.map +1 -1
  191. package/src/client.ts +51 -22
  192. package/src/internal/utils/log.ts +3 -0
  193. package/src/lib/request-signing.ts +139 -0
  194. package/src/resources/banks.ts +21 -11
  195. package/src/resources/beneficiary-payouts.ts +2 -2
  196. package/src/resources/capabilities.ts +8 -1
  197. package/src/resources/checkoutsession.ts +31 -10
  198. package/src/resources/counterparties.ts +3073 -0
  199. package/src/resources/customers.ts +3509 -3509
  200. package/src/resources/deposits.ts +52 -6
  201. package/src/resources/index.ts +13 -9
  202. package/src/resources/orders.ts +222 -36
  203. package/src/resources/payouts.ts +396 -17
  204. package/src/resources/refunds.ts +1 -1
  205. package/src/resources/returns.ts +2 -2
  206. package/src/resources/subaccounts.ts +4 -4
  207. package/src/resources/transactions.ts +5 -2
  208. package/src/resources/webhook/subscription.ts +37 -12
  209. package/src/version.ts +1 -1
  210. package/uploads.d.mts +1 -0
  211. package/uploads.d.mts.map +1 -1
  212. package/uploads.d.ts +1 -0
  213. package/uploads.d.ts.map +1 -1
  214. package/uploads.mjs +1 -0
  215. package/uploads.mjs.map +1 -1
  216. package/version.d.mts +1 -1
  217. package/version.d.mts.map +1 -1
  218. package/version.d.ts +1 -1
  219. package/version.d.ts.map +1 -1
  220. package/version.js +1 -1
  221. package/version.js.map +1 -1
  222. package/version.mjs +1 -1
  223. package/version.mjs.map +1 -1
  224. package/resources/fx.d.mts +0 -155
  225. package/resources/fx.d.mts.map +0 -1
  226. package/resources/fx.d.ts +0 -155
  227. package/resources/fx.d.ts.map +0 -1
  228. package/resources/fx.js +0 -28
  229. package/resources/fx.js.map +0 -1
  230. package/resources/fx.mjs +0 -24
  231. package/resources/fx.mjs.map +0 -1
  232. package/src/resources/fx.ts +0 -195
@@ -41,7 +41,7 @@ export interface Payout {
41
41
  /**
42
42
  * The payout created at
43
43
  */
44
- createdAt: unknown;
44
+ createdAt: string;
45
45
 
46
46
  /**
47
47
  * The payout currency
@@ -56,7 +56,7 @@ export interface Payout {
56
56
  /**
57
57
  * The payout status
58
58
  */
59
- status: 'paid' | 'pending' | 'in_transit' | 'failed' | 'canceled';
59
+ status: 'paid' | 'pending' | 'in_transit' | 'failed' | 'returned' | 'canceled';
60
60
 
61
61
  /**
62
62
  * The payout type
@@ -66,7 +66,7 @@ export interface Payout {
66
66
  /**
67
67
  * The payout updated at
68
68
  */
69
- updatedAt: unknown;
69
+ updatedAt: string;
70
70
 
71
71
  /**
72
72
  * Failure details. Only available if the payout failed.
@@ -94,7 +94,7 @@ export namespace Payout {
94
94
  * The payout destination
95
95
  */
96
96
  export interface Destination {
97
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba';
97
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba' | 'bic';
98
98
 
99
99
  aba?: Destination.Aba;
100
100
 
@@ -102,6 +102,8 @@ export namespace Payout {
102
102
 
103
103
  bban?: Destination.Bban;
104
104
 
105
+ bic?: Destination.Bic;
106
+
105
107
  iban?: Destination.Iban;
106
108
 
107
109
  sortCode?: Destination.SortCode;
@@ -134,6 +136,16 @@ export namespace Payout {
134
136
  bic?: string;
135
137
  }
136
138
 
139
+ export interface Bic {
140
+ accountHolderName: string;
141
+
142
+ accountNumber: string;
143
+
144
+ bic: string;
145
+
146
+ localBankCode?: string;
147
+ }
148
+
137
149
  export interface Iban {
138
150
  accountHolderName: string;
139
151
 
@@ -159,7 +171,15 @@ export namespace Payout {
159
171
  /**
160
172
  * The blockchain network
161
173
  */
162
- blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
174
+ blockchain:
175
+ | 'BTC'
176
+ | 'BTC-TESTNET4'
177
+ | 'ETH'
178
+ | 'ETH-SEPOLIA'
179
+ | 'SOL'
180
+ | 'SOL-DEVNET'
181
+ | 'MATIC'
182
+ | 'MATIC-AMOY';
163
183
  }
164
184
  }
165
185
 
@@ -175,6 +195,7 @@ export namespace Payout {
175
195
  | 'account_blocked'
176
196
  | 'insufficient_funds'
177
197
  | 'invalid_account_format'
198
+ | 'invalid_routing_number'
178
199
  | 'invalid_instruction'
179
200
  | 'invalid_amount'
180
201
  | 'invalid_time'
@@ -212,7 +233,7 @@ export interface PayoutRetrieveResponse {
212
233
  /**
213
234
  * The payout created at
214
235
  */
215
- createdAt: unknown;
236
+ createdAt: string;
216
237
 
217
238
  /**
218
239
  * The payout currency
@@ -227,7 +248,7 @@ export interface PayoutRetrieveResponse {
227
248
  /**
228
249
  * The payout status
229
250
  */
230
- status: 'paid' | 'pending' | 'in_transit' | 'failed' | 'canceled';
251
+ status: 'paid' | 'pending' | 'in_transit' | 'failed' | 'returned' | 'canceled';
231
252
 
232
253
  /**
233
254
  * The payout type
@@ -237,7 +258,7 @@ export interface PayoutRetrieveResponse {
237
258
  /**
238
259
  * The payout updated at
239
260
  */
240
- updatedAt: unknown;
261
+ updatedAt: string;
241
262
 
242
263
  /**
243
264
  * Failure details. Only available if the payout failed.
@@ -265,7 +286,7 @@ export namespace PayoutRetrieveResponse {
265
286
  * The payout destination
266
287
  */
267
288
  export interface Destination {
268
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba';
289
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba' | 'bic';
269
290
 
270
291
  aba?: Destination.Aba;
271
292
 
@@ -273,6 +294,8 @@ export namespace PayoutRetrieveResponse {
273
294
 
274
295
  bban?: Destination.Bban;
275
296
 
297
+ bic?: Destination.Bic;
298
+
276
299
  iban?: Destination.Iban;
277
300
 
278
301
  sortCode?: Destination.SortCode;
@@ -305,6 +328,16 @@ export namespace PayoutRetrieveResponse {
305
328
  bic?: string;
306
329
  }
307
330
 
331
+ export interface Bic {
332
+ accountHolderName: string;
333
+
334
+ accountNumber: string;
335
+
336
+ bic: string;
337
+
338
+ localBankCode?: string;
339
+ }
340
+
308
341
  export interface Iban {
309
342
  accountHolderName: string;
310
343
 
@@ -330,7 +363,15 @@ export namespace PayoutRetrieveResponse {
330
363
  /**
331
364
  * The blockchain network
332
365
  */
333
- blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
366
+ blockchain:
367
+ | 'BTC'
368
+ | 'BTC-TESTNET4'
369
+ | 'ETH'
370
+ | 'ETH-SEPOLIA'
371
+ | 'SOL'
372
+ | 'SOL-DEVNET'
373
+ | 'MATIC'
374
+ | 'MATIC-AMOY';
334
375
  }
335
376
  }
336
377
 
@@ -346,6 +387,7 @@ export namespace PayoutRetrieveResponse {
346
387
  | 'account_blocked'
347
388
  | 'insufficient_funds'
348
389
  | 'invalid_account_format'
390
+ | 'invalid_routing_number'
349
391
  | 'invalid_instruction'
350
392
  | 'invalid_amount'
351
393
  | 'invalid_time'
@@ -394,7 +436,7 @@ export namespace PayoutListResponse {
394
436
  /**
395
437
  * The payout created at
396
438
  */
397
- createdAt: unknown;
439
+ createdAt: string;
398
440
 
399
441
  /**
400
442
  * The payout currency
@@ -409,7 +451,7 @@ export namespace PayoutListResponse {
409
451
  /**
410
452
  * The payout status
411
453
  */
412
- status: 'paid' | 'pending' | 'in_transit' | 'failed' | 'canceled';
454
+ status: 'paid' | 'pending' | 'in_transit' | 'failed' | 'returned' | 'canceled';
413
455
 
414
456
  /**
415
457
  * The payout type
@@ -419,7 +461,7 @@ export namespace PayoutListResponse {
419
461
  /**
420
462
  * The payout updated at
421
463
  */
422
- updatedAt: unknown;
464
+ updatedAt: string;
423
465
 
424
466
  /**
425
467
  * Failure details. Only available if the payout failed.
@@ -447,7 +489,7 @@ export namespace PayoutListResponse {
447
489
  * The payout destination
448
490
  */
449
491
  export interface Destination {
450
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba';
492
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba' | 'bic';
451
493
 
452
494
  aba?: Destination.Aba;
453
495
 
@@ -455,6 +497,8 @@ export namespace PayoutListResponse {
455
497
 
456
498
  bban?: Destination.Bban;
457
499
 
500
+ bic?: Destination.Bic;
501
+
458
502
  iban?: Destination.Iban;
459
503
 
460
504
  sortCode?: Destination.SortCode;
@@ -487,6 +531,16 @@ export namespace PayoutListResponse {
487
531
  bic?: string;
488
532
  }
489
533
 
534
+ export interface Bic {
535
+ accountHolderName: string;
536
+
537
+ accountNumber: string;
538
+
539
+ bic: string;
540
+
541
+ localBankCode?: string;
542
+ }
543
+
490
544
  export interface Iban {
491
545
  accountHolderName: string;
492
546
 
@@ -512,7 +566,15 @@ export namespace PayoutListResponse {
512
566
  /**
513
567
  * The blockchain network
514
568
  */
515
- blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
569
+ blockchain:
570
+ | 'BTC'
571
+ | 'BTC-TESTNET4'
572
+ | 'ETH'
573
+ | 'ETH-SEPOLIA'
574
+ | 'SOL'
575
+ | 'SOL-DEVNET'
576
+ | 'MATIC'
577
+ | 'MATIC-AMOY';
516
578
  }
517
579
  }
518
580
 
@@ -528,6 +590,7 @@ export namespace PayoutListResponse {
528
590
  | 'account_blocked'
529
591
  | 'insufficient_funds'
530
592
  | 'invalid_account_format'
593
+ | 'invalid_routing_number'
531
594
  | 'invalid_instruction'
532
595
  | 'invalid_amount'
533
596
  | 'invalid_time'
@@ -589,6 +652,12 @@ export interface PayoutCreateParams {
589
652
  | 'SWIFT'
590
653
  | 'INTERNAL'
591
654
  | 'TARGET'
655
+ | 'ACH'
656
+ | 'FEDWIRE'
657
+ | 'FEDNOW'
658
+ | 'RTP'
659
+ | 'BTC'
660
+ | 'BTC-TESTNET4'
592
661
  | 'ETH'
593
662
  | 'ETH-SEPOLIA'
594
663
  | 'SOL'
@@ -599,6 +668,11 @@ export interface PayoutCreateParams {
599
668
 
600
669
  export namespace PayoutCreateParams {
601
670
  export interface Destination {
671
+ /**
672
+ * Physical postal address of the payout counterparty.
673
+ */
674
+ address?: Destination.Address;
675
+
602
676
  financialAddress?: Destination.FinancialAddress | null;
603
677
 
604
678
  orderId?: string;
@@ -611,8 +685,293 @@ export namespace PayoutCreateParams {
611
685
  }
612
686
 
613
687
  export namespace Destination {
688
+ /**
689
+ * Physical postal address of the payout counterparty.
690
+ */
691
+ export interface Address {
692
+ /**
693
+ * City or locality.
694
+ */
695
+ city: string;
696
+
697
+ /**
698
+ * ISO 3166-1 alpha-2 country code.
699
+ */
700
+ countryCode:
701
+ | 'AF'
702
+ | 'AL'
703
+ | 'DZ'
704
+ | 'AS'
705
+ | 'AD'
706
+ | 'AO'
707
+ | 'AI'
708
+ | 'AQ'
709
+ | 'AG'
710
+ | 'AR'
711
+ | 'AM'
712
+ | 'AW'
713
+ | 'AU'
714
+ | 'AT'
715
+ | 'AZ'
716
+ | 'BS'
717
+ | 'BH'
718
+ | 'BD'
719
+ | 'BB'
720
+ | 'BY'
721
+ | 'BE'
722
+ | 'BZ'
723
+ | 'BJ'
724
+ | 'BM'
725
+ | 'BT'
726
+ | 'BO'
727
+ | 'BA'
728
+ | 'BW'
729
+ | 'BV'
730
+ | 'BR'
731
+ | 'IO'
732
+ | 'BN'
733
+ | 'BG'
734
+ | 'BF'
735
+ | 'BI'
736
+ | 'KH'
737
+ | 'CM'
738
+ | 'CA'
739
+ | 'CV'
740
+ | 'KY'
741
+ | 'CF'
742
+ | 'TD'
743
+ | 'CL'
744
+ | 'CN'
745
+ | 'CX'
746
+ | 'CC'
747
+ | 'CO'
748
+ | 'KM'
749
+ | 'CG'
750
+ | 'CD'
751
+ | 'CK'
752
+ | 'CR'
753
+ | 'CI'
754
+ | 'HR'
755
+ | 'CU'
756
+ | 'CY'
757
+ | 'CZ'
758
+ | 'DK'
759
+ | 'DJ'
760
+ | 'DM'
761
+ | 'DO'
762
+ | 'EC'
763
+ | 'EG'
764
+ | 'SV'
765
+ | 'GQ'
766
+ | 'ER'
767
+ | 'EE'
768
+ | 'ET'
769
+ | 'FK'
770
+ | 'FO'
771
+ | 'FJ'
772
+ | 'FI'
773
+ | 'FR'
774
+ | 'GF'
775
+ | 'PF'
776
+ | 'TF'
777
+ | 'GA'
778
+ | 'GM'
779
+ | 'GE'
780
+ | 'DE'
781
+ | 'GH'
782
+ | 'GI'
783
+ | 'GR'
784
+ | 'GL'
785
+ | 'GD'
786
+ | 'GP'
787
+ | 'GU'
788
+ | 'GT'
789
+ | 'GN'
790
+ | 'GW'
791
+ | 'GY'
792
+ | 'HT'
793
+ | 'HM'
794
+ | 'VA'
795
+ | 'HN'
796
+ | 'HK'
797
+ | 'HU'
798
+ | 'IS'
799
+ | 'IN'
800
+ | 'ID'
801
+ | 'IR'
802
+ | 'IQ'
803
+ | 'IE'
804
+ | 'IL'
805
+ | 'IT'
806
+ | 'JM'
807
+ | 'JP'
808
+ | 'JO'
809
+ | 'KZ'
810
+ | 'KE'
811
+ | 'KI'
812
+ | 'KP'
813
+ | 'KR'
814
+ | 'KW'
815
+ | 'KG'
816
+ | 'LA'
817
+ | 'LV'
818
+ | 'LB'
819
+ | 'LS'
820
+ | 'LR'
821
+ | 'LY'
822
+ | 'LI'
823
+ | 'LT'
824
+ | 'LU'
825
+ | 'MO'
826
+ | 'MG'
827
+ | 'MW'
828
+ | 'MY'
829
+ | 'MV'
830
+ | 'ML'
831
+ | 'MT'
832
+ | 'MH'
833
+ | 'MQ'
834
+ | 'MR'
835
+ | 'MU'
836
+ | 'YT'
837
+ | 'MX'
838
+ | 'FM'
839
+ | 'MD'
840
+ | 'MC'
841
+ | 'MN'
842
+ | 'MS'
843
+ | 'MA'
844
+ | 'MZ'
845
+ | 'MM'
846
+ | 'NA'
847
+ | 'NR'
848
+ | 'NP'
849
+ | 'NL'
850
+ | 'NC'
851
+ | 'NZ'
852
+ | 'NI'
853
+ | 'NE'
854
+ | 'NG'
855
+ | 'NU'
856
+ | 'NF'
857
+ | 'MP'
858
+ | 'MK'
859
+ | 'NO'
860
+ | 'OM'
861
+ | 'PK'
862
+ | 'PW'
863
+ | 'PS'
864
+ | 'PA'
865
+ | 'PG'
866
+ | 'PY'
867
+ | 'PE'
868
+ | 'PH'
869
+ | 'PN'
870
+ | 'PL'
871
+ | 'PT'
872
+ | 'PR'
873
+ | 'QA'
874
+ | 'RE'
875
+ | 'RO'
876
+ | 'RU'
877
+ | 'RW'
878
+ | 'SH'
879
+ | 'KN'
880
+ | 'LC'
881
+ | 'PM'
882
+ | 'VC'
883
+ | 'WS'
884
+ | 'SM'
885
+ | 'ST'
886
+ | 'SA'
887
+ | 'SN'
888
+ | 'SC'
889
+ | 'SL'
890
+ | 'SG'
891
+ | 'SK'
892
+ | 'SI'
893
+ | 'SB'
894
+ | 'SO'
895
+ | 'ZA'
896
+ | 'GS'
897
+ | 'ES'
898
+ | 'LK'
899
+ | 'SD'
900
+ | 'SR'
901
+ | 'SJ'
902
+ | 'SZ'
903
+ | 'SE'
904
+ | 'CH'
905
+ | 'SY'
906
+ | 'TW'
907
+ | 'TJ'
908
+ | 'TZ'
909
+ | 'TH'
910
+ | 'TL'
911
+ | 'TG'
912
+ | 'TK'
913
+ | 'TO'
914
+ | 'TT'
915
+ | 'TN'
916
+ | 'TR'
917
+ | 'TM'
918
+ | 'TC'
919
+ | 'TV'
920
+ | 'UG'
921
+ | 'UA'
922
+ | 'AE'
923
+ | 'GB'
924
+ | 'US'
925
+ | 'UM'
926
+ | 'UY'
927
+ | 'UZ'
928
+ | 'VU'
929
+ | 'VE'
930
+ | 'VN'
931
+ | 'VG'
932
+ | 'VI'
933
+ | 'WF'
934
+ | 'EH'
935
+ | 'YE'
936
+ | 'ZM'
937
+ | 'ZW'
938
+ | 'AX'
939
+ | 'BQ'
940
+ | 'CW'
941
+ | 'GG'
942
+ | 'IM'
943
+ | 'JE'
944
+ | 'ME'
945
+ | 'BL'
946
+ | 'MF'
947
+ | 'RS'
948
+ | 'SX'
949
+ | 'SS'
950
+ | 'XK';
951
+
952
+ /**
953
+ * Primary street address line.
954
+ */
955
+ line1?: string;
956
+
957
+ /**
958
+ * Secondary street address line.
959
+ */
960
+ line2?: string;
961
+
962
+ /**
963
+ * Postal or ZIP code.
964
+ */
965
+ postalCode?: string;
966
+
967
+ /**
968
+ * State, province, or region.
969
+ */
970
+ state?: string;
971
+ }
972
+
614
973
  export interface FinancialAddress {
615
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba';
974
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba' | 'bic';
616
975
 
617
976
  aba?: FinancialAddress.Aba;
618
977
 
@@ -620,6 +979,8 @@ export namespace PayoutCreateParams {
620
979
 
621
980
  bban?: FinancialAddress.Bban;
622
981
 
982
+ bic?: FinancialAddress.Bic;
983
+
623
984
  iban?: FinancialAddress.Iban;
624
985
 
625
986
  sortCode?: FinancialAddress.SortCode;
@@ -652,6 +1013,16 @@ export namespace PayoutCreateParams {
652
1013
  bic?: string;
653
1014
  }
654
1015
 
1016
+ export interface Bic {
1017
+ accountHolderName: string;
1018
+
1019
+ accountNumber: string;
1020
+
1021
+ bic: string;
1022
+
1023
+ localBankCode?: string;
1024
+ }
1025
+
655
1026
  export interface Iban {
656
1027
  accountHolderName: string;
657
1028
 
@@ -677,7 +1048,15 @@ export namespace PayoutCreateParams {
677
1048
  /**
678
1049
  * The blockchain network
679
1050
  */
680
- blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
1051
+ blockchain:
1052
+ | 'BTC'
1053
+ | 'BTC-TESTNET4'
1054
+ | 'ETH'
1055
+ | 'ETH-SEPOLIA'
1056
+ | 'SOL'
1057
+ | 'SOL-DEVNET'
1058
+ | 'MATIC'
1059
+ | 'MATIC-AMOY';
681
1060
  }
682
1061
  }
683
1062
  }
@@ -88,7 +88,7 @@ export interface RefundCreateResponse {
88
88
  }
89
89
 
90
90
  export interface RefundCreateParams {
91
- amount: number;
91
+ amount?: number;
92
92
 
93
93
  /**
94
94
  * An optional custom text that will be shown on the customer's payment reference.
@@ -39,7 +39,7 @@ export interface ReturnCreateResponse {
39
39
  /**
40
40
  * The currency of the return
41
41
  */
42
- currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK' | 'USD' | 'USDC';
42
+ currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
43
43
 
44
44
  /**
45
45
  * The ID of the associated deposit
@@ -86,7 +86,7 @@ export interface ReturnRetrieveResponse {
86
86
  /**
87
87
  * The currency of the return
88
88
  */
89
- currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK' | 'USD' | 'USDC';
89
+ currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
90
90
 
91
91
  /**
92
92
  * The ID of the associated deposit
@@ -24,7 +24,7 @@ export class Subaccounts extends APIResource {
24
24
  export interface Subaccount {
25
25
  id: string;
26
26
 
27
- createdAt: unknown;
27
+ createdAt: string;
28
28
 
29
29
  legalName: string;
30
30
 
@@ -34,7 +34,7 @@ export interface Subaccount {
34
34
 
35
35
  status: 'active' | 'inactive';
36
36
 
37
- updatedAt: unknown;
37
+ updatedAt: string;
38
38
 
39
39
  websiteUrl?: string;
40
40
  }
@@ -42,7 +42,7 @@ export interface Subaccount {
42
42
  export interface SubaccountCreateResponse {
43
43
  id: string;
44
44
 
45
- createdAt: unknown;
45
+ createdAt: string;
46
46
 
47
47
  legalName: string;
48
48
 
@@ -52,7 +52,7 @@ export interface SubaccountCreateResponse {
52
52
 
53
53
  status: 'active' | 'inactive';
54
54
 
55
- updatedAt: unknown;
55
+ updatedAt: string;
56
56
 
57
57
  websiteUrl?: string;
58
58
  }
@@ -88,6 +88,9 @@ export namespace TransactionListResponse {
88
88
  | 'merchant_payout'
89
89
  | 'payment'
90
90
  | 'refund'
91
+ | 'fxQuote'
92
+ | 'payoutv2'
93
+ | 'walletVerification'
91
94
  | 'topup';
92
95
  }
93
96
 
@@ -114,7 +117,7 @@ export namespace TransactionListResponse {
114
117
  /**
115
118
  * Type of financial address
116
119
  */
117
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba';
120
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba' | 'bic';
118
121
 
119
122
  bankCode?: Creditor.BankCode;
120
123
 
@@ -175,7 +178,7 @@ export namespace TransactionListResponse {
175
178
  /**
176
179
  * Type of financial address
177
180
  */
178
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba';
181
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba' | 'bic';
179
182
 
180
183
  bankCode?: Debtor.BankCode;
181
184