@getivy/node-sdk 1.3.0 → 1.6.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 (92) hide show
  1. package/CHANGELOG.md +114 -0
  2. package/LICENSE +1 -1
  3. package/core.d.ts +1 -1
  4. package/core.d.ts.map +1 -1
  5. package/core.js +13 -18
  6. package/core.js.map +1 -1
  7. package/core.mjs +13 -18
  8. package/core.mjs.map +1 -1
  9. package/index.d.mts +9 -6
  10. package/index.d.ts +9 -6
  11. package/index.d.ts.map +1 -1
  12. package/index.js +4 -0
  13. package/index.js.map +1 -1
  14. package/index.mjs +4 -0
  15. package/index.mjs.map +1 -1
  16. package/internal/utils/query.d.ts +5 -0
  17. package/internal/utils/query.d.ts.map +1 -0
  18. package/internal/utils/query.js +24 -0
  19. package/internal/utils/query.js.map +1 -0
  20. package/internal/utils/query.mjs +20 -0
  21. package/internal/utils/query.mjs.map +1 -0
  22. package/package.json +1 -1
  23. package/resources/balance.d.ts +9 -3
  24. package/resources/balance.d.ts.map +1 -1
  25. package/resources/checkoutsession.d.ts +84 -121
  26. package/resources/checkoutsession.d.ts.map +1 -1
  27. package/resources/customers.d.ts +508 -8
  28. package/resources/customers.d.ts.map +1 -1
  29. package/resources/customers.js +12 -0
  30. package/resources/customers.js.map +1 -1
  31. package/resources/customers.mjs +12 -0
  32. package/resources/customers.mjs.map +1 -1
  33. package/resources/data/accounts.d.ts +12 -1
  34. package/resources/data/accounts.d.ts.map +1 -1
  35. package/resources/data/transactions.d.ts +19 -133
  36. package/resources/data/transactions.d.ts.map +1 -1
  37. package/resources/deposits.d.ts +32 -6
  38. package/resources/deposits.d.ts.map +1 -1
  39. package/resources/fx.d.ts +70 -6
  40. package/resources/fx.d.ts.map +1 -1
  41. package/resources/fx.js +6 -0
  42. package/resources/fx.js.map +1 -1
  43. package/resources/fx.mjs +6 -0
  44. package/resources/fx.mjs.map +1 -1
  45. package/resources/index.d.ts +4 -3
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js +3 -1
  48. package/resources/index.js.map +1 -1
  49. package/resources/index.mjs +1 -0
  50. package/resources/index.mjs.map +1 -1
  51. package/resources/orders.d.ts +151 -141
  52. package/resources/orders.d.ts.map +1 -1
  53. package/resources/payee.d.ts +50 -0
  54. package/resources/payee.d.ts.map +1 -0
  55. package/resources/payee.js +30 -0
  56. package/resources/payee.js.map +1 -0
  57. package/resources/payee.mjs +26 -0
  58. package/resources/payee.mjs.map +1 -0
  59. package/resources/payouts.d.ts +124 -18
  60. package/resources/payouts.d.ts.map +1 -1
  61. package/resources/refunds.d.ts +3 -9
  62. package/resources/refunds.d.ts.map +1 -1
  63. package/resources/refunds.js.map +1 -1
  64. package/resources/refunds.mjs.map +1 -1
  65. package/resources/returns.d.ts +2 -2
  66. package/resources/returns.d.ts.map +1 -1
  67. package/resources/transactions.d.ts +25 -2
  68. package/resources/transactions.d.ts.map +1 -1
  69. package/resources/webhook/subscription.d.ts +5 -5
  70. package/resources/webhook/subscription.d.ts.map +1 -1
  71. package/src/core.ts +16 -22
  72. package/src/index.ts +22 -2
  73. package/src/internal/utils/query.ts +23 -0
  74. package/src/resources/balance.ts +10 -3
  75. package/src/resources/checkoutsession.ts +365 -178
  76. package/src/resources/customers.ts +13430 -7
  77. package/src/resources/data/accounts.ts +15 -1
  78. package/src/resources/data/transactions.ts +19 -175
  79. package/src/resources/deposits.ts +56 -6
  80. package/src/resources/fx.ts +83 -5
  81. package/src/resources/index.ts +7 -1
  82. package/src/resources/orders.ts +200 -189
  83. package/src/resources/payee.ts +63 -0
  84. package/src/resources/payouts.ts +208 -18
  85. package/src/resources/refunds.ts +2 -29
  86. package/src/resources/returns.ts +2 -2
  87. package/src/resources/transactions.ts +38 -2
  88. package/src/resources/webhook/subscription.ts +15 -20
  89. package/src/version.ts +1 -1
  90. package/version.d.ts +1 -1
  91. package/version.js +1 -1
  92. package/version.mjs +1 -1
@@ -0,0 +1,63 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../resource';
4
+ import * as Core from '../core';
5
+
6
+ export class Payee extends APIResource {
7
+ /**
8
+ * Verify that the provided account holder name matches the bank account details.
9
+ *
10
+ * **Currently supported financial address types:**
11
+ *
12
+ * - `iban`: IBAN-based accounts (EU/SEPA). It implements Verification of Payee
13
+ * (VoP) as required by EU Instant Payments Regulation.
14
+ *
15
+ * **Possible status values:**
16
+ *
17
+ * - `match`: Exact match - the name matches the account holder's name
18
+ * - `partial_match`: Close match - similar but not identical (e.g., typos,
19
+ * abbreviations). The `suggestedAccountHolderName` field will contain the
20
+ * suggested account holder name.
21
+ * - `no_match`: No match - the name does not match the account holder
22
+ * - `not_available`: Verification not possible (e.g., bank unreachable, timeout,
23
+ * unsupported)
24
+ */
25
+ verify(body: PayeeVerifyParams, options?: Core.RequestOptions): Core.APIPromise<PayeeVerifyResponse> {
26
+ return this._client.post('/api/service/payee/verify', { body, ...options });
27
+ }
28
+ }
29
+
30
+ export interface PayeeVerifyResponse {
31
+ /**
32
+ * The verification result status
33
+ */
34
+ status: 'match' | 'partial_match' | 'no_match' | 'not_available';
35
+
36
+ suggestedAccountHolderName?: string;
37
+ }
38
+
39
+ export interface PayeeVerifyParams {
40
+ payee: PayeeVerifyParams.Payee;
41
+ }
42
+
43
+ export namespace PayeeVerifyParams {
44
+ export interface Payee {
45
+ iban: Payee.Iban;
46
+
47
+ type: 'iban';
48
+ }
49
+
50
+ export namespace Payee {
51
+ export interface Iban {
52
+ accountHolderName: string;
53
+
54
+ iban: string;
55
+
56
+ bic?: string;
57
+ }
58
+ }
59
+ }
60
+
61
+ export declare namespace Payee {
62
+ export { type PayeeVerifyResponse as PayeeVerifyResponse, type PayeeVerifyParams as PayeeVerifyParams };
63
+ }
@@ -48,7 +48,7 @@ export interface Payout {
48
48
  /**
49
49
  * The payout currency
50
50
  */
51
- currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
51
+ currency: 'EUR' | 'GBP' | 'USDC';
52
52
 
53
53
  /**
54
54
  * The payout destination
@@ -70,6 +70,11 @@ export interface Payout {
70
70
  */
71
71
  updatedAt: unknown;
72
72
 
73
+ /**
74
+ * Failure details. Only available if the payout failed.
75
+ */
76
+ failure?: Payout.Failure;
77
+
73
78
  /**
74
79
  * The payout metadata
75
80
  */
@@ -91,7 +96,7 @@ export namespace Payout {
91
96
  * The payout destination
92
97
  */
93
98
  export interface Destination {
94
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
99
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
95
100
 
96
101
  bankCode?: Destination.BankCode;
97
102
 
@@ -100,6 +105,8 @@ export namespace Payout {
100
105
  iban?: Destination.Iban;
101
106
 
102
107
  sortCode?: Destination.SortCode;
108
+
109
+ wallet?: Destination.Wallet;
103
110
  }
104
111
 
105
112
  export namespace Destination {
@@ -134,6 +141,52 @@ export namespace Payout {
134
141
 
135
142
  sortCode: string;
136
143
  }
144
+
145
+ export interface Wallet {
146
+ /**
147
+ * The blockchain wallet address
148
+ */
149
+ address: string;
150
+
151
+ /**
152
+ * The blockchain network
153
+ */
154
+ blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
155
+ }
156
+ }
157
+
158
+ /**
159
+ * Failure details. Only available if the payout failed.
160
+ */
161
+ export interface Failure {
162
+ /**
163
+ * Failure code. Please refer to the documentation for the list of possible values.
164
+ */
165
+ code:
166
+ | 'account_closed'
167
+ | 'account_blocked'
168
+ | 'insufficient_funds'
169
+ | 'invalid_account_format'
170
+ | 'invalid_instruction'
171
+ | 'invalid_amount'
172
+ | 'invalid_time'
173
+ | 'duplicate_transaction'
174
+ | 'payee_verification_failed'
175
+ | 'system_error'
176
+ | 'provider_system_error'
177
+ | 'rejected_by_correspondent_bank'
178
+ | 'blocked_by_review'
179
+ | 'unknown';
180
+
181
+ /**
182
+ * Human readable description of the failure.
183
+ */
184
+ message: string;
185
+
186
+ /**
187
+ * If true, you can safely retry.
188
+ */
189
+ retry: boolean;
137
190
  }
138
191
  }
139
192
 
@@ -156,7 +209,7 @@ export interface PayoutRetrieveResponse {
156
209
  /**
157
210
  * The payout currency
158
211
  */
159
- currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
212
+ currency: 'EUR' | 'GBP' | 'USDC';
160
213
 
161
214
  /**
162
215
  * The payout destination
@@ -178,6 +231,11 @@ export interface PayoutRetrieveResponse {
178
231
  */
179
232
  updatedAt: unknown;
180
233
 
234
+ /**
235
+ * Failure details. Only available if the payout failed.
236
+ */
237
+ failure?: PayoutRetrieveResponse.Failure;
238
+
181
239
  /**
182
240
  * The payout metadata
183
241
  */
@@ -199,7 +257,7 @@ export namespace PayoutRetrieveResponse {
199
257
  * The payout destination
200
258
  */
201
259
  export interface Destination {
202
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
260
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
203
261
 
204
262
  bankCode?: Destination.BankCode;
205
263
 
@@ -208,6 +266,8 @@ export namespace PayoutRetrieveResponse {
208
266
  iban?: Destination.Iban;
209
267
 
210
268
  sortCode?: Destination.SortCode;
269
+
270
+ wallet?: Destination.Wallet;
211
271
  }
212
272
 
213
273
  export namespace Destination {
@@ -242,6 +302,52 @@ export namespace PayoutRetrieveResponse {
242
302
 
243
303
  sortCode: string;
244
304
  }
305
+
306
+ export interface Wallet {
307
+ /**
308
+ * The blockchain wallet address
309
+ */
310
+ address: string;
311
+
312
+ /**
313
+ * The blockchain network
314
+ */
315
+ blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
316
+ }
317
+ }
318
+
319
+ /**
320
+ * Failure details. Only available if the payout failed.
321
+ */
322
+ export interface Failure {
323
+ /**
324
+ * Failure code. Please refer to the documentation for the list of possible values.
325
+ */
326
+ code:
327
+ | 'account_closed'
328
+ | 'account_blocked'
329
+ | 'insufficient_funds'
330
+ | 'invalid_account_format'
331
+ | 'invalid_instruction'
332
+ | 'invalid_amount'
333
+ | 'invalid_time'
334
+ | 'duplicate_transaction'
335
+ | 'payee_verification_failed'
336
+ | 'system_error'
337
+ | 'provider_system_error'
338
+ | 'rejected_by_correspondent_bank'
339
+ | 'blocked_by_review'
340
+ | 'unknown';
341
+
342
+ /**
343
+ * Human readable description of the failure.
344
+ */
345
+ message: string;
346
+
347
+ /**
348
+ * If true, you can safely retry.
349
+ */
350
+ retry: boolean;
245
351
  }
246
352
  }
247
353
 
@@ -275,7 +381,7 @@ export namespace PayoutListResponse {
275
381
  /**
276
382
  * The payout currency
277
383
  */
278
- currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
384
+ currency: 'EUR' | 'GBP' | 'USDC';
279
385
 
280
386
  /**
281
387
  * The payout destination
@@ -297,6 +403,11 @@ export namespace PayoutListResponse {
297
403
  */
298
404
  updatedAt: unknown;
299
405
 
406
+ /**
407
+ * Failure details. Only available if the payout failed.
408
+ */
409
+ failure?: Item.Failure;
410
+
300
411
  /**
301
412
  * The payout metadata
302
413
  */
@@ -318,7 +429,7 @@ export namespace PayoutListResponse {
318
429
  * The payout destination
319
430
  */
320
431
  export interface Destination {
321
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
432
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
322
433
 
323
434
  bankCode?: Destination.BankCode;
324
435
 
@@ -327,6 +438,8 @@ export namespace PayoutListResponse {
327
438
  iban?: Destination.Iban;
328
439
 
329
440
  sortCode?: Destination.SortCode;
441
+
442
+ wallet?: Destination.Wallet;
330
443
  }
331
444
 
332
445
  export namespace Destination {
@@ -361,6 +474,52 @@ export namespace PayoutListResponse {
361
474
 
362
475
  sortCode: string;
363
476
  }
477
+
478
+ export interface Wallet {
479
+ /**
480
+ * The blockchain wallet address
481
+ */
482
+ address: string;
483
+
484
+ /**
485
+ * The blockchain network
486
+ */
487
+ blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
488
+ }
489
+ }
490
+
491
+ /**
492
+ * Failure details. Only available if the payout failed.
493
+ */
494
+ export interface Failure {
495
+ /**
496
+ * Failure code. Please refer to the documentation for the list of possible values.
497
+ */
498
+ code:
499
+ | 'account_closed'
500
+ | 'account_blocked'
501
+ | 'insufficient_funds'
502
+ | 'invalid_account_format'
503
+ | 'invalid_instruction'
504
+ | 'invalid_amount'
505
+ | 'invalid_time'
506
+ | 'duplicate_transaction'
507
+ | 'payee_verification_failed'
508
+ | 'system_error'
509
+ | 'provider_system_error'
510
+ | 'rejected_by_correspondent_bank'
511
+ | 'blocked_by_review'
512
+ | 'unknown';
513
+
514
+ /**
515
+ * Human readable description of the failure.
516
+ */
517
+ message: string;
518
+
519
+ /**
520
+ * If true, you can safely retry.
521
+ */
522
+ retry: boolean;
364
523
  }
365
524
  }
366
525
  }
@@ -371,14 +530,8 @@ export interface PayoutCreateParams {
371
530
  */
372
531
  amount: number;
373
532
 
374
- /**
375
- * The payout currency
376
- */
377
- currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
533
+ currency: 'EUR' | 'GBP' | 'USDC';
378
534
 
379
- /**
380
- * The payout destination
381
- */
382
535
  destination: PayoutCreateParams.Destination;
383
536
 
384
537
  /**
@@ -392,23 +545,46 @@ export interface PayoutCreateParams {
392
545
  * possible.
393
546
  */
394
547
  paymentReference?: string;
548
+
549
+ /**
550
+ * The payment rail or blockchain used for the payout
551
+ */
552
+ rail?:
553
+ | 'SEPA_INSTANT'
554
+ | 'FASTER_PAYMENTS'
555
+ | 'SEPA'
556
+ | 'ELIXIR'
557
+ | 'EXPRESS_ELIXIR'
558
+ | 'SEK_ACCOUNT_TO_ACCOUNT'
559
+ | 'SUMCLEARING'
560
+ | 'STRAKSCLEARING'
561
+ | 'SWIFT'
562
+ | 'INTERNAL'
563
+ | 'TARGET'
564
+ | 'ETH'
565
+ | 'ETH-SEPOLIA'
566
+ | 'SOL'
567
+ | 'SOL-DEVNET'
568
+ | 'MATIC'
569
+ | 'MATIC-AMOY';
395
570
  }
396
571
 
397
572
  export namespace PayoutCreateParams {
398
- /**
399
- * The payout destination
400
- */
401
573
  export interface Destination {
402
574
  financialAddress?: Destination.FinancialAddress | null;
403
575
 
404
576
  orderId?: string;
405
577
 
406
- type?: 'beneficiary';
578
+ /**
579
+ * Beneficiary is a payout to an account owned by the merchant. Customer is a
580
+ * payout to an external customer account.
581
+ */
582
+ type?: 'beneficiary' | 'customer';
407
583
  }
408
584
 
409
585
  export namespace Destination {
410
586
  export interface FinancialAddress {
411
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
587
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
412
588
 
413
589
  bankCode?: FinancialAddress.BankCode;
414
590
 
@@ -417,6 +593,8 @@ export namespace PayoutCreateParams {
417
593
  iban?: FinancialAddress.Iban;
418
594
 
419
595
  sortCode?: FinancialAddress.SortCode;
596
+
597
+ wallet?: FinancialAddress.Wallet;
420
598
  }
421
599
 
422
600
  export namespace FinancialAddress {
@@ -451,6 +629,18 @@ export namespace PayoutCreateParams {
451
629
 
452
630
  sortCode: string;
453
631
  }
632
+
633
+ export interface Wallet {
634
+ /**
635
+ * The blockchain wallet address
636
+ */
637
+ address: string;
638
+
639
+ /**
640
+ * The blockchain network
641
+ */
642
+ blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
643
+ }
454
644
  }
455
645
  }
456
646
  }
@@ -17,38 +17,12 @@ export class Refunds extends APIResource {
17
17
  /**
18
18
  * Returns refund details and Id of refunded order.
19
19
  */
20
- retrieve(
21
- body: RefundRetrieveParams,
22
- options?: Core.RequestOptions,
23
- ): Core.APIPromise<RefundRetrieveResponse> {
20
+ retrieve(body: RefundRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Refund> {
24
21
  return this._client.post('/api/service/refund/retrieve', { body, ...options });
25
22
  }
26
23
  }
27
24
 
28
25
  export interface Refund {
29
- orderId: string;
30
-
31
- orderStatus:
32
- | 'failed'
33
- | 'canceled'
34
- | 'processing'
35
- | 'waiting_for_payment'
36
- | 'paid'
37
- | 'in_refund'
38
- | 'refunded'
39
- | 'refund_failed'
40
- | 'partially_refunded'
41
- | 'in_dispute'
42
- | 'disputed'
43
- | 'refused'
44
- | 'finalizing';
45
-
46
- referenceId: string;
47
-
48
- refundStatus: 'pending' | 'succeeded' | 'failed' | 'requires_action' | 'partially_refunded';
49
- }
50
-
51
- export interface RefundCreateResponse {
52
26
  /**
53
27
  * The unique Refund id
54
28
  */
@@ -80,7 +54,7 @@ export interface RefundCreateResponse {
80
54
  transactionId?: string;
81
55
  }
82
56
 
83
- export interface RefundRetrieveResponse {
57
+ export interface RefundCreateResponse {
84
58
  /**
85
59
  * The unique Refund id
86
60
  */
@@ -146,7 +120,6 @@ export declare namespace Refunds {
146
120
  export {
147
121
  type Refund as Refund,
148
122
  type RefundCreateResponse as RefundCreateResponse,
149
- type RefundRetrieveResponse as RefundRetrieveResponse,
150
123
  type RefundCreateParams as RefundCreateParams,
151
124
  type RefundRetrieveParams as RefundRetrieveParams,
152
125
  };
@@ -41,7 +41,7 @@ export interface ReturnCreateResponse {
41
41
  /**
42
42
  * The currency of the return
43
43
  */
44
- currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
44
+ currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK' | 'USDC';
45
45
 
46
46
  /**
47
47
  * The ID of the associated deposit
@@ -88,7 +88,7 @@ export interface ReturnRetrieveResponse {
88
88
  /**
89
89
  * The currency of the return
90
90
  */
91
- currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
91
+ currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK' | 'USDC';
92
92
 
93
93
  /**
94
94
  * The ID of the associated deposit
@@ -70,6 +70,18 @@ export namespace TransactionListResponse {
70
70
  * Transaction date as unix timestamp
71
71
  */
72
72
  transactionDate: number;
73
+
74
+ /**
75
+ * Payment process type
76
+ */
77
+ paymentProcessType?:
78
+ | 'deposit'
79
+ | 'deposit_return'
80
+ | 'payout'
81
+ | 'merchant_payout'
82
+ | 'payment'
83
+ | 'refund'
84
+ | 'topup';
73
85
  }
74
86
 
75
87
  export namespace Data {
@@ -95,7 +107,7 @@ export namespace TransactionListResponse {
95
107
  /**
96
108
  * Type of financial address
97
109
  */
98
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
110
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
99
111
 
100
112
  bankCode?: Creditor.BankCode;
101
113
 
@@ -104,6 +116,8 @@ export namespace TransactionListResponse {
104
116
  iban?: Creditor.Iban;
105
117
 
106
118
  sortCode?: Creditor.SortCode;
119
+
120
+ wallet?: Creditor.Wallet;
107
121
  }
108
122
 
109
123
  export namespace Creditor {
@@ -138,6 +152,13 @@ export namespace TransactionListResponse {
138
152
 
139
153
  sortCode: string;
140
154
  }
155
+
156
+ export interface Wallet {
157
+ /**
158
+ * The blockchain wallet address
159
+ */
160
+ address: string;
161
+ }
141
162
  }
142
163
 
143
164
  /**
@@ -147,7 +168,7 @@ export namespace TransactionListResponse {
147
168
  /**
148
169
  * Type of financial address
149
170
  */
150
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
171
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
151
172
 
152
173
  bankCode?: Debtor.BankCode;
153
174
 
@@ -156,6 +177,8 @@ export namespace TransactionListResponse {
156
177
  iban?: Debtor.Iban;
157
178
 
158
179
  sortCode?: Debtor.SortCode;
180
+
181
+ wallet?: Debtor.Wallet;
159
182
  }
160
183
 
161
184
  export namespace Debtor {
@@ -190,6 +213,13 @@ export namespace TransactionListResponse {
190
213
 
191
214
  sortCode: string;
192
215
  }
216
+
217
+ export interface Wallet {
218
+ /**
219
+ * The blockchain wallet address
220
+ */
221
+ address: string;
222
+ }
193
223
  }
194
224
  }
195
225
 
@@ -220,6 +250,12 @@ export interface TransactionListParams {
220
250
  */
221
251
  to: number;
222
252
 
253
+ /**
254
+ * Account Id to fetch transactions for. Optional, is not specified - transactions
255
+ * for the default accounts will be returned
256
+ */
257
+ accountId?: string;
258
+
223
259
  /**
224
260
  * Cursor for pagination
225
261
  */
@@ -82,10 +82,6 @@ export interface SubscriptionCreateResponse {
82
82
  | 'checkout_session_completed'
83
83
  | 'payout_created'
84
84
  | 'payout_updated'
85
- | 'mandate_setup_started'
86
- | 'mandate_setup_succeeded'
87
- | 'mandate_setup_failed'
88
- | 'mandate_revoked'
89
85
  | 'user_payout.initiated'
90
86
  | 'user_payout.failed'
91
87
  | 'user_payout.paid'
@@ -97,6 +93,9 @@ export interface SubscriptionCreateResponse {
97
93
  | 'return.succeeded'
98
94
  | 'return.failed'
99
95
  | 'return.returned'
96
+ | 'fx.initiated'
97
+ | 'fx.succeeded'
98
+ | 'fx.failed'
100
99
  >;
101
100
 
102
101
  merchant: unknown;
@@ -132,10 +131,6 @@ export interface SubscriptionUpdateResponse {
132
131
  | 'checkout_session_completed'
133
132
  | 'payout_created'
134
133
  | 'payout_updated'
135
- | 'mandate_setup_started'
136
- | 'mandate_setup_succeeded'
137
- | 'mandate_setup_failed'
138
- | 'mandate_revoked'
139
134
  | 'user_payout.initiated'
140
135
  | 'user_payout.failed'
141
136
  | 'user_payout.paid'
@@ -147,6 +142,9 @@ export interface SubscriptionUpdateResponse {
147
142
  | 'return.succeeded'
148
143
  | 'return.failed'
149
144
  | 'return.returned'
145
+ | 'fx.initiated'
146
+ | 'fx.succeeded'
147
+ | 'fx.failed'
150
148
  >;
151
149
 
152
150
  merchant: unknown;
@@ -205,10 +203,6 @@ export namespace SubscriptionListResponse {
205
203
  | 'checkout_session_completed'
206
204
  | 'payout_created'
207
205
  | 'payout_updated'
208
- | 'mandate_setup_started'
209
- | 'mandate_setup_succeeded'
210
- | 'mandate_setup_failed'
211
- | 'mandate_revoked'
212
206
  | 'user_payout.initiated'
213
207
  | 'user_payout.failed'
214
208
  | 'user_payout.paid'
@@ -220,6 +214,9 @@ export namespace SubscriptionListResponse {
220
214
  | 'return.succeeded'
221
215
  | 'return.failed'
222
216
  | 'return.returned'
217
+ | 'fx.initiated'
218
+ | 'fx.succeeded'
219
+ | 'fx.failed'
223
220
  >;
224
221
 
225
222
  merchant: unknown;
@@ -294,10 +291,6 @@ export interface SubscriptionCreateParams {
294
291
  | 'checkout_session_completed'
295
292
  | 'payout_created'
296
293
  | 'payout_updated'
297
- | 'mandate_setup_started'
298
- | 'mandate_setup_succeeded'
299
- | 'mandate_setup_failed'
300
- | 'mandate_revoked'
301
294
  | 'user_payout.initiated'
302
295
  | 'user_payout.failed'
303
296
  | 'user_payout.paid'
@@ -309,6 +302,9 @@ export interface SubscriptionCreateParams {
309
302
  | 'return.succeeded'
310
303
  | 'return.failed'
311
304
  | 'return.returned'
305
+ | 'fx.initiated'
306
+ | 'fx.succeeded'
307
+ | 'fx.failed'
312
308
  >;
313
309
  }
314
310
 
@@ -340,10 +336,6 @@ export interface SubscriptionUpdateParams {
340
336
  | 'checkout_session_completed'
341
337
  | 'payout_created'
342
338
  | 'payout_updated'
343
- | 'mandate_setup_started'
344
- | 'mandate_setup_succeeded'
345
- | 'mandate_setup_failed'
346
- | 'mandate_revoked'
347
339
  | 'user_payout.initiated'
348
340
  | 'user_payout.failed'
349
341
  | 'user_payout.paid'
@@ -355,6 +347,9 @@ export interface SubscriptionUpdateParams {
355
347
  | 'return.succeeded'
356
348
  | 'return.failed'
357
349
  | 'return.returned'
350
+ | 'fx.initiated'
351
+ | 'fx.succeeded'
352
+ | 'fx.failed'
358
353
  >;
359
354
 
360
355
  /**
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.3.0'; // x-release-please-version
1
+ export const VERSION = '1.6.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.3.0";
1
+ export declare const VERSION = "1.6.0";
2
2
  //# sourceMappingURL=version.d.ts.map