@getivy/node-sdk 1.4.0 → 1.6.1
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 +109 -0
- package/LICENSE +1 -1
- package/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +13 -17
- package/core.js.map +1 -1
- package/core.mjs +13 -17
- package/core.mjs.map +1 -1
- package/index.d.mts +7 -4
- package/index.d.ts +7 -4
- package/index.d.ts.map +1 -1
- package/index.js +4 -0
- package/index.js.map +1 -1
- package/index.mjs +4 -0
- package/index.mjs.map +1 -1
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +24 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/balance.d.ts +9 -3
- package/resources/balance.d.ts.map +1 -1
- package/resources/checkoutsession.d.ts +80 -121
- package/resources/checkoutsession.d.ts.map +1 -1
- package/resources/data/accounts.d.ts +12 -1
- package/resources/data/accounts.d.ts.map +1 -1
- package/resources/data/transactions.d.ts +19 -133
- package/resources/data/transactions.d.ts.map +1 -1
- package/resources/deposits.d.ts +32 -6
- package/resources/deposits.d.ts.map +1 -1
- package/resources/fx.d.ts +70 -6
- package/resources/fx.d.ts.map +1 -1
- package/resources/fx.js +6 -0
- package/resources/fx.js.map +1 -1
- package/resources/fx.mjs +6 -0
- package/resources/fx.mjs.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/orders.d.ts +147 -141
- package/resources/orders.d.ts.map +1 -1
- package/resources/payee.d.ts +50 -0
- package/resources/payee.d.ts.map +1 -0
- package/resources/payee.js +30 -0
- package/resources/payee.js.map +1 -0
- package/resources/payee.mjs +26 -0
- package/resources/payee.mjs.map +1 -0
- package/resources/payouts.d.ts +124 -18
- package/resources/payouts.d.ts.map +1 -1
- package/resources/refunds.d.ts +3 -9
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs.map +1 -1
- package/resources/returns.d.ts +2 -2
- package/resources/returns.d.ts.map +1 -1
- package/resources/transactions.d.ts +25 -2
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook/subscription.d.ts +5 -5
- package/resources/webhook/subscription.d.ts.map +1 -1
- package/src/core.ts +16 -21
- package/src/index.ts +14 -2
- package/src/internal/utils/query.ts +23 -0
- package/src/resources/balance.ts +10 -3
- package/src/resources/checkoutsession.ts +360 -178
- package/src/resources/data/accounts.ts +15 -1
- package/src/resources/data/transactions.ts +19 -175
- package/src/resources/deposits.ts +56 -6
- package/src/resources/fx.ts +83 -5
- package/src/resources/index.ts +3 -1
- package/src/resources/orders.ts +195 -189
- package/src/resources/payee.ts +63 -0
- package/src/resources/payouts.ts +208 -18
- package/src/resources/refunds.ts +2 -29
- package/src/resources/returns.ts +2 -2
- package/src/resources/transactions.ts +38 -2
- package/src/resources/webhook/subscription.ts +15 -20
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/orders.ts
CHANGED
|
@@ -83,6 +83,7 @@ export interface OrderCreateResponse {
|
|
|
83
83
|
| 'canceled'
|
|
84
84
|
| 'processing'
|
|
85
85
|
| 'waiting_for_payment'
|
|
86
|
+
| 'waiting_for_bank_confirmation'
|
|
86
87
|
| 'paid'
|
|
87
88
|
| 'in_refund'
|
|
88
89
|
| 'refunded'
|
|
@@ -142,8 +143,6 @@ export interface OrderCreateResponse {
|
|
|
142
143
|
*/
|
|
143
144
|
lineItems?: Array<OrderCreateResponse.LineItem>;
|
|
144
145
|
|
|
145
|
-
mandate?: OrderCreateResponse.Mandate;
|
|
146
|
-
|
|
147
146
|
/**
|
|
148
147
|
* The financial address of the merchant associated with the order. Only available
|
|
149
148
|
* when requested via order/details and therefore requires authentication.
|
|
@@ -167,7 +166,7 @@ export interface OrderCreateResponse {
|
|
|
167
166
|
*/
|
|
168
167
|
payerFinancialAddress?: OrderCreateResponse.PayerFinancialAddress;
|
|
169
168
|
|
|
170
|
-
paymentMethodType?: '
|
|
169
|
+
paymentMethodType?: 'customer_balance' | 'manual_bank_transfer';
|
|
171
170
|
|
|
172
171
|
/**
|
|
173
172
|
* The payment mode of the order. Can be either settlement or direct.
|
|
@@ -200,12 +199,6 @@ export interface OrderCreateResponse {
|
|
|
200
199
|
*/
|
|
201
200
|
refunds?: Array<OrderCreateResponse.Refund>;
|
|
202
201
|
|
|
203
|
-
/**
|
|
204
|
-
* If set to true, a payment mandate will be created for the user. This is
|
|
205
|
-
* currently in alpha and defaults to false.
|
|
206
|
-
*/
|
|
207
|
-
setupPaymentMandate?: boolean;
|
|
208
|
-
|
|
209
202
|
shippingAddress?: OrderCreateResponse.ShippingAddress;
|
|
210
203
|
|
|
211
204
|
shopLogo?: string;
|
|
@@ -512,17 +505,17 @@ export namespace OrderCreateResponse {
|
|
|
512
505
|
| 'SS'
|
|
513
506
|
| 'XK';
|
|
514
507
|
|
|
515
|
-
|
|
508
|
+
line1: string;
|
|
516
509
|
|
|
517
|
-
|
|
510
|
+
zipCode: string;
|
|
518
511
|
|
|
519
|
-
|
|
512
|
+
firstName?: string;
|
|
520
513
|
|
|
521
|
-
|
|
514
|
+
lastName?: string;
|
|
522
515
|
|
|
523
|
-
|
|
516
|
+
line2?: string;
|
|
524
517
|
|
|
525
|
-
|
|
518
|
+
region?: string;
|
|
526
519
|
}
|
|
527
520
|
|
|
528
521
|
export interface ClimateActionMode {
|
|
@@ -546,7 +539,7 @@ export namespace OrderCreateResponse {
|
|
|
546
539
|
|
|
547
540
|
export namespace Destination {
|
|
548
541
|
export interface BankAccount {
|
|
549
|
-
type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
|
|
542
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
|
|
550
543
|
|
|
551
544
|
bankCode?: BankAccount.BankCode;
|
|
552
545
|
|
|
@@ -557,6 +550,8 @@ export namespace OrderCreateResponse {
|
|
|
557
550
|
paymentReference?: string;
|
|
558
551
|
|
|
559
552
|
sortCode?: BankAccount.SortCode;
|
|
553
|
+
|
|
554
|
+
wallet?: BankAccount.Wallet;
|
|
560
555
|
}
|
|
561
556
|
|
|
562
557
|
export namespace BankAccount {
|
|
@@ -591,6 +586,18 @@ export namespace OrderCreateResponse {
|
|
|
591
586
|
|
|
592
587
|
sortCode: string;
|
|
593
588
|
}
|
|
589
|
+
|
|
590
|
+
export interface Wallet {
|
|
591
|
+
/**
|
|
592
|
+
* The blockchain wallet address
|
|
593
|
+
*/
|
|
594
|
+
address: string;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* The blockchain network
|
|
598
|
+
*/
|
|
599
|
+
blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
|
|
600
|
+
}
|
|
594
601
|
}
|
|
595
602
|
}
|
|
596
603
|
|
|
@@ -648,50 +655,12 @@ export namespace OrderCreateResponse {
|
|
|
648
655
|
referenceId?: string;
|
|
649
656
|
}
|
|
650
657
|
|
|
651
|
-
export interface Mandate {
|
|
652
|
-
accountHolderName: string;
|
|
653
|
-
|
|
654
|
-
additionalDisplayInformation?: Mandate.AdditionalDisplayInformation;
|
|
655
|
-
|
|
656
|
-
creditor?: Mandate.Creditor;
|
|
657
|
-
|
|
658
|
-
reference?: string;
|
|
659
|
-
|
|
660
|
-
referenceId?: string;
|
|
661
|
-
|
|
662
|
-
setup?: boolean;
|
|
663
|
-
|
|
664
|
-
userNotificationEmail?: string;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
export namespace Mandate {
|
|
668
|
-
export interface AdditionalDisplayInformation {
|
|
669
|
-
cadence?: 'BI_WEEKLY' | 'WEEKLY' | 'MONTHLY' | 'QUARTERLY' | 'SEMI_ANNUAL' | 'ANNUAL' | 'ON_DEMAND';
|
|
670
|
-
|
|
671
|
-
price?: AdditionalDisplayInformation.Price;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
export namespace AdditionalDisplayInformation {
|
|
675
|
-
export interface Price {
|
|
676
|
-
amount: number;
|
|
677
|
-
|
|
678
|
-
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
export interface Creditor {
|
|
683
|
-
id?: string;
|
|
684
|
-
|
|
685
|
-
name?: string;
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
|
|
689
658
|
/**
|
|
690
659
|
* The financial address of the merchant associated with the order. Only available
|
|
691
660
|
* when requested via order/details and therefore requires authentication.
|
|
692
661
|
*/
|
|
693
662
|
export interface MerchantFinancialAddress {
|
|
694
|
-
type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
|
|
663
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
|
|
695
664
|
|
|
696
665
|
bankCode?: MerchantFinancialAddress.BankCode;
|
|
697
666
|
|
|
@@ -702,6 +671,8 @@ export namespace OrderCreateResponse {
|
|
|
702
671
|
paymentReference?: string;
|
|
703
672
|
|
|
704
673
|
sortCode?: MerchantFinancialAddress.SortCode;
|
|
674
|
+
|
|
675
|
+
wallet?: MerchantFinancialAddress.Wallet;
|
|
705
676
|
}
|
|
706
677
|
|
|
707
678
|
export namespace MerchantFinancialAddress {
|
|
@@ -736,6 +707,18 @@ export namespace OrderCreateResponse {
|
|
|
736
707
|
|
|
737
708
|
sortCode: string;
|
|
738
709
|
}
|
|
710
|
+
|
|
711
|
+
export interface Wallet {
|
|
712
|
+
/**
|
|
713
|
+
* The blockchain wallet address
|
|
714
|
+
*/
|
|
715
|
+
address: string;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* The blockchain network
|
|
719
|
+
*/
|
|
720
|
+
blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
|
|
721
|
+
}
|
|
739
722
|
}
|
|
740
723
|
|
|
741
724
|
/**
|
|
@@ -743,7 +726,7 @@ export namespace OrderCreateResponse {
|
|
|
743
726
|
* after successful PIS flow.
|
|
744
727
|
*/
|
|
745
728
|
export interface PayerFinancialAddress {
|
|
746
|
-
type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
|
|
729
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
|
|
747
730
|
|
|
748
731
|
bankCode?: PayerFinancialAddress.BankCode;
|
|
749
732
|
|
|
@@ -752,6 +735,8 @@ export namespace OrderCreateResponse {
|
|
|
752
735
|
iban?: PayerFinancialAddress.Iban;
|
|
753
736
|
|
|
754
737
|
sortCode?: PayerFinancialAddress.SortCode;
|
|
738
|
+
|
|
739
|
+
wallet?: PayerFinancialAddress.Wallet;
|
|
755
740
|
}
|
|
756
741
|
|
|
757
742
|
export namespace PayerFinancialAddress {
|
|
@@ -786,6 +771,18 @@ export namespace OrderCreateResponse {
|
|
|
786
771
|
|
|
787
772
|
accountHolderName?: string;
|
|
788
773
|
}
|
|
774
|
+
|
|
775
|
+
export interface Wallet {
|
|
776
|
+
/**
|
|
777
|
+
* The blockchain wallet address
|
|
778
|
+
*/
|
|
779
|
+
address: string;
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* The blockchain network
|
|
783
|
+
*/
|
|
784
|
+
blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
|
|
785
|
+
}
|
|
789
786
|
}
|
|
790
787
|
|
|
791
788
|
export interface Refund {
|
|
@@ -1080,17 +1077,17 @@ export namespace OrderCreateResponse {
|
|
|
1080
1077
|
| 'SS'
|
|
1081
1078
|
| 'XK';
|
|
1082
1079
|
|
|
1083
|
-
|
|
1080
|
+
line1: string;
|
|
1084
1081
|
|
|
1085
|
-
|
|
1082
|
+
zipCode: string;
|
|
1086
1083
|
|
|
1087
|
-
|
|
1084
|
+
firstName?: string;
|
|
1088
1085
|
|
|
1089
|
-
|
|
1086
|
+
lastName?: string;
|
|
1090
1087
|
|
|
1091
|
-
|
|
1088
|
+
line2?: string;
|
|
1092
1089
|
|
|
1093
|
-
|
|
1090
|
+
region?: string;
|
|
1094
1091
|
}
|
|
1095
1092
|
|
|
1096
1093
|
/**
|
|
@@ -1123,7 +1120,10 @@ export namespace OrderCreateResponse {
|
|
|
1123
1120
|
| 'bank_under_maintenance'
|
|
1124
1121
|
| 'pin_blocked'
|
|
1125
1122
|
| 'payment_not_settled'
|
|
1126
|
-
| 'unsupported_bank_account'
|
|
1123
|
+
| 'unsupported_bank_account'
|
|
1124
|
+
| 'online_banking_login_required'
|
|
1125
|
+
| 'deutsche_bank_psu_migration'
|
|
1126
|
+
| 'out_of_operational_hours';
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
1129
1129
|
export interface StatusHistoryList {
|
|
@@ -1134,6 +1134,7 @@ export namespace OrderCreateResponse {
|
|
|
1134
1134
|
| 'canceled'
|
|
1135
1135
|
| 'processing'
|
|
1136
1136
|
| 'waiting_for_payment'
|
|
1137
|
+
| 'waiting_for_bank_confirmation'
|
|
1137
1138
|
| 'paid'
|
|
1138
1139
|
| 'in_refund'
|
|
1139
1140
|
| 'refunded'
|
|
@@ -1180,6 +1181,7 @@ export namespace OrderCreateResponse {
|
|
|
1180
1181
|
| 'canceled'
|
|
1181
1182
|
| 'processing'
|
|
1182
1183
|
| 'waiting_for_payment'
|
|
1184
|
+
| 'waiting_for_bank_confirmation'
|
|
1183
1185
|
| 'paid'
|
|
1184
1186
|
| 'in_refund'
|
|
1185
1187
|
| 'refunded'
|
|
@@ -1244,6 +1246,7 @@ export interface OrderRetrieveResponse {
|
|
|
1244
1246
|
| 'canceled'
|
|
1245
1247
|
| 'processing'
|
|
1246
1248
|
| 'waiting_for_payment'
|
|
1249
|
+
| 'waiting_for_bank_confirmation'
|
|
1247
1250
|
| 'paid'
|
|
1248
1251
|
| 'in_refund'
|
|
1249
1252
|
| 'refunded'
|
|
@@ -1303,8 +1306,6 @@ export interface OrderRetrieveResponse {
|
|
|
1303
1306
|
*/
|
|
1304
1307
|
lineItems?: Array<OrderRetrieveResponse.LineItem>;
|
|
1305
1308
|
|
|
1306
|
-
mandate?: OrderRetrieveResponse.Mandate;
|
|
1307
|
-
|
|
1308
1309
|
/**
|
|
1309
1310
|
* The financial address of the merchant associated with the order. Only available
|
|
1310
1311
|
* when requested via order/details and therefore requires authentication.
|
|
@@ -1328,7 +1329,7 @@ export interface OrderRetrieveResponse {
|
|
|
1328
1329
|
*/
|
|
1329
1330
|
payerFinancialAddress?: OrderRetrieveResponse.PayerFinancialAddress;
|
|
1330
1331
|
|
|
1331
|
-
paymentMethodType?: '
|
|
1332
|
+
paymentMethodType?: 'customer_balance' | 'manual_bank_transfer';
|
|
1332
1333
|
|
|
1333
1334
|
/**
|
|
1334
1335
|
* The payment mode of the order. Can be either settlement or direct.
|
|
@@ -1361,12 +1362,6 @@ export interface OrderRetrieveResponse {
|
|
|
1361
1362
|
*/
|
|
1362
1363
|
refunds?: Array<OrderRetrieveResponse.Refund>;
|
|
1363
1364
|
|
|
1364
|
-
/**
|
|
1365
|
-
* If set to true, a payment mandate will be created for the user. This is
|
|
1366
|
-
* currently in alpha and defaults to false.
|
|
1367
|
-
*/
|
|
1368
|
-
setupPaymentMandate?: boolean;
|
|
1369
|
-
|
|
1370
1365
|
shippingAddress?: OrderRetrieveResponse.ShippingAddress;
|
|
1371
1366
|
|
|
1372
1367
|
shopLogo?: string;
|
|
@@ -1673,17 +1668,17 @@ export namespace OrderRetrieveResponse {
|
|
|
1673
1668
|
| 'SS'
|
|
1674
1669
|
| 'XK';
|
|
1675
1670
|
|
|
1676
|
-
|
|
1671
|
+
line1: string;
|
|
1677
1672
|
|
|
1678
|
-
|
|
1673
|
+
zipCode: string;
|
|
1679
1674
|
|
|
1680
|
-
|
|
1675
|
+
firstName?: string;
|
|
1681
1676
|
|
|
1682
|
-
|
|
1677
|
+
lastName?: string;
|
|
1683
1678
|
|
|
1684
|
-
|
|
1679
|
+
line2?: string;
|
|
1685
1680
|
|
|
1686
|
-
|
|
1681
|
+
region?: string;
|
|
1687
1682
|
}
|
|
1688
1683
|
|
|
1689
1684
|
export interface ClimateActionMode {
|
|
@@ -1707,7 +1702,7 @@ export namespace OrderRetrieveResponse {
|
|
|
1707
1702
|
|
|
1708
1703
|
export namespace Destination {
|
|
1709
1704
|
export interface BankAccount {
|
|
1710
|
-
type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
|
|
1705
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
|
|
1711
1706
|
|
|
1712
1707
|
bankCode?: BankAccount.BankCode;
|
|
1713
1708
|
|
|
@@ -1718,6 +1713,8 @@ export namespace OrderRetrieveResponse {
|
|
|
1718
1713
|
paymentReference?: string;
|
|
1719
1714
|
|
|
1720
1715
|
sortCode?: BankAccount.SortCode;
|
|
1716
|
+
|
|
1717
|
+
wallet?: BankAccount.Wallet;
|
|
1721
1718
|
}
|
|
1722
1719
|
|
|
1723
1720
|
export namespace BankAccount {
|
|
@@ -1752,6 +1749,18 @@ export namespace OrderRetrieveResponse {
|
|
|
1752
1749
|
|
|
1753
1750
|
sortCode: string;
|
|
1754
1751
|
}
|
|
1752
|
+
|
|
1753
|
+
export interface Wallet {
|
|
1754
|
+
/**
|
|
1755
|
+
* The blockchain wallet address
|
|
1756
|
+
*/
|
|
1757
|
+
address: string;
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* The blockchain network
|
|
1761
|
+
*/
|
|
1762
|
+
blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
|
|
1763
|
+
}
|
|
1755
1764
|
}
|
|
1756
1765
|
}
|
|
1757
1766
|
|
|
@@ -1809,50 +1818,12 @@ export namespace OrderRetrieveResponse {
|
|
|
1809
1818
|
referenceId?: string;
|
|
1810
1819
|
}
|
|
1811
1820
|
|
|
1812
|
-
export interface Mandate {
|
|
1813
|
-
accountHolderName: string;
|
|
1814
|
-
|
|
1815
|
-
additionalDisplayInformation?: Mandate.AdditionalDisplayInformation;
|
|
1816
|
-
|
|
1817
|
-
creditor?: Mandate.Creditor;
|
|
1818
|
-
|
|
1819
|
-
reference?: string;
|
|
1820
|
-
|
|
1821
|
-
referenceId?: string;
|
|
1822
|
-
|
|
1823
|
-
setup?: boolean;
|
|
1824
|
-
|
|
1825
|
-
userNotificationEmail?: string;
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
export namespace Mandate {
|
|
1829
|
-
export interface AdditionalDisplayInformation {
|
|
1830
|
-
cadence?: 'BI_WEEKLY' | 'WEEKLY' | 'MONTHLY' | 'QUARTERLY' | 'SEMI_ANNUAL' | 'ANNUAL' | 'ON_DEMAND';
|
|
1831
|
-
|
|
1832
|
-
price?: AdditionalDisplayInformation.Price;
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
export namespace AdditionalDisplayInformation {
|
|
1836
|
-
export interface Price {
|
|
1837
|
-
amount: number;
|
|
1838
|
-
|
|
1839
|
-
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
export interface Creditor {
|
|
1844
|
-
id?: string;
|
|
1845
|
-
|
|
1846
|
-
name?: string;
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
1821
|
/**
|
|
1851
1822
|
* The financial address of the merchant associated with the order. Only available
|
|
1852
1823
|
* when requested via order/details and therefore requires authentication.
|
|
1853
1824
|
*/
|
|
1854
1825
|
export interface MerchantFinancialAddress {
|
|
1855
|
-
type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
|
|
1826
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
|
|
1856
1827
|
|
|
1857
1828
|
bankCode?: MerchantFinancialAddress.BankCode;
|
|
1858
1829
|
|
|
@@ -1863,6 +1834,8 @@ export namespace OrderRetrieveResponse {
|
|
|
1863
1834
|
paymentReference?: string;
|
|
1864
1835
|
|
|
1865
1836
|
sortCode?: MerchantFinancialAddress.SortCode;
|
|
1837
|
+
|
|
1838
|
+
wallet?: MerchantFinancialAddress.Wallet;
|
|
1866
1839
|
}
|
|
1867
1840
|
|
|
1868
1841
|
export namespace MerchantFinancialAddress {
|
|
@@ -1897,6 +1870,18 @@ export namespace OrderRetrieveResponse {
|
|
|
1897
1870
|
|
|
1898
1871
|
sortCode: string;
|
|
1899
1872
|
}
|
|
1873
|
+
|
|
1874
|
+
export interface Wallet {
|
|
1875
|
+
/**
|
|
1876
|
+
* The blockchain wallet address
|
|
1877
|
+
*/
|
|
1878
|
+
address: string;
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* The blockchain network
|
|
1882
|
+
*/
|
|
1883
|
+
blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
|
|
1884
|
+
}
|
|
1900
1885
|
}
|
|
1901
1886
|
|
|
1902
1887
|
/**
|
|
@@ -1904,7 +1889,7 @@ export namespace OrderRetrieveResponse {
|
|
|
1904
1889
|
* after successful PIS flow.
|
|
1905
1890
|
*/
|
|
1906
1891
|
export interface PayerFinancialAddress {
|
|
1907
|
-
type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
|
|
1892
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
|
|
1908
1893
|
|
|
1909
1894
|
bankCode?: PayerFinancialAddress.BankCode;
|
|
1910
1895
|
|
|
@@ -1913,6 +1898,8 @@ export namespace OrderRetrieveResponse {
|
|
|
1913
1898
|
iban?: PayerFinancialAddress.Iban;
|
|
1914
1899
|
|
|
1915
1900
|
sortCode?: PayerFinancialAddress.SortCode;
|
|
1901
|
+
|
|
1902
|
+
wallet?: PayerFinancialAddress.Wallet;
|
|
1916
1903
|
}
|
|
1917
1904
|
|
|
1918
1905
|
export namespace PayerFinancialAddress {
|
|
@@ -1947,6 +1934,18 @@ export namespace OrderRetrieveResponse {
|
|
|
1947
1934
|
|
|
1948
1935
|
accountHolderName?: string;
|
|
1949
1936
|
}
|
|
1937
|
+
|
|
1938
|
+
export interface Wallet {
|
|
1939
|
+
/**
|
|
1940
|
+
* The blockchain wallet address
|
|
1941
|
+
*/
|
|
1942
|
+
address: string;
|
|
1943
|
+
|
|
1944
|
+
/**
|
|
1945
|
+
* The blockchain network
|
|
1946
|
+
*/
|
|
1947
|
+
blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
|
|
1948
|
+
}
|
|
1950
1949
|
}
|
|
1951
1950
|
|
|
1952
1951
|
export interface Refund {
|
|
@@ -2241,17 +2240,17 @@ export namespace OrderRetrieveResponse {
|
|
|
2241
2240
|
| 'SS'
|
|
2242
2241
|
| 'XK';
|
|
2243
2242
|
|
|
2244
|
-
|
|
2243
|
+
line1: string;
|
|
2245
2244
|
|
|
2246
|
-
|
|
2245
|
+
zipCode: string;
|
|
2247
2246
|
|
|
2248
|
-
|
|
2247
|
+
firstName?: string;
|
|
2249
2248
|
|
|
2250
|
-
|
|
2249
|
+
lastName?: string;
|
|
2251
2250
|
|
|
2252
|
-
|
|
2251
|
+
line2?: string;
|
|
2253
2252
|
|
|
2254
|
-
|
|
2253
|
+
region?: string;
|
|
2255
2254
|
}
|
|
2256
2255
|
|
|
2257
2256
|
/**
|
|
@@ -2284,7 +2283,10 @@ export namespace OrderRetrieveResponse {
|
|
|
2284
2283
|
| 'bank_under_maintenance'
|
|
2285
2284
|
| 'pin_blocked'
|
|
2286
2285
|
| 'payment_not_settled'
|
|
2287
|
-
| 'unsupported_bank_account'
|
|
2286
|
+
| 'unsupported_bank_account'
|
|
2287
|
+
| 'online_banking_login_required'
|
|
2288
|
+
| 'deutsche_bank_psu_migration'
|
|
2289
|
+
| 'out_of_operational_hours';
|
|
2288
2290
|
}
|
|
2289
2291
|
|
|
2290
2292
|
export interface StatusHistoryList {
|
|
@@ -2295,6 +2297,7 @@ export namespace OrderRetrieveResponse {
|
|
|
2295
2297
|
| 'canceled'
|
|
2296
2298
|
| 'processing'
|
|
2297
2299
|
| 'waiting_for_payment'
|
|
2300
|
+
| 'waiting_for_bank_confirmation'
|
|
2298
2301
|
| 'paid'
|
|
2299
2302
|
| 'in_refund'
|
|
2300
2303
|
| 'refunded'
|
|
@@ -2341,6 +2344,7 @@ export namespace OrderRetrieveResponse {
|
|
|
2341
2344
|
| 'canceled'
|
|
2342
2345
|
| 'processing'
|
|
2343
2346
|
| 'waiting_for_payment'
|
|
2347
|
+
| 'waiting_for_bank_confirmation'
|
|
2344
2348
|
| 'paid'
|
|
2345
2349
|
| 'in_refund'
|
|
2346
2350
|
| 'refunded'
|
|
@@ -2405,6 +2409,7 @@ export interface OrderExpireResponse {
|
|
|
2405
2409
|
| 'canceled'
|
|
2406
2410
|
| 'processing'
|
|
2407
2411
|
| 'waiting_for_payment'
|
|
2412
|
+
| 'waiting_for_bank_confirmation'
|
|
2408
2413
|
| 'paid'
|
|
2409
2414
|
| 'in_refund'
|
|
2410
2415
|
| 'refunded'
|
|
@@ -2464,8 +2469,6 @@ export interface OrderExpireResponse {
|
|
|
2464
2469
|
*/
|
|
2465
2470
|
lineItems?: Array<OrderExpireResponse.LineItem>;
|
|
2466
2471
|
|
|
2467
|
-
mandate?: OrderExpireResponse.Mandate;
|
|
2468
|
-
|
|
2469
2472
|
/**
|
|
2470
2473
|
* The financial address of the merchant associated with the order. Only available
|
|
2471
2474
|
* when requested via order/details and therefore requires authentication.
|
|
@@ -2489,7 +2492,7 @@ export interface OrderExpireResponse {
|
|
|
2489
2492
|
*/
|
|
2490
2493
|
payerFinancialAddress?: OrderExpireResponse.PayerFinancialAddress;
|
|
2491
2494
|
|
|
2492
|
-
paymentMethodType?: '
|
|
2495
|
+
paymentMethodType?: 'customer_balance' | 'manual_bank_transfer';
|
|
2493
2496
|
|
|
2494
2497
|
/**
|
|
2495
2498
|
* The payment mode of the order. Can be either settlement or direct.
|
|
@@ -2522,12 +2525,6 @@ export interface OrderExpireResponse {
|
|
|
2522
2525
|
*/
|
|
2523
2526
|
refunds?: Array<OrderExpireResponse.Refund>;
|
|
2524
2527
|
|
|
2525
|
-
/**
|
|
2526
|
-
* If set to true, a payment mandate will be created for the user. This is
|
|
2527
|
-
* currently in alpha and defaults to false.
|
|
2528
|
-
*/
|
|
2529
|
-
setupPaymentMandate?: boolean;
|
|
2530
|
-
|
|
2531
2528
|
shippingAddress?: OrderExpireResponse.ShippingAddress;
|
|
2532
2529
|
|
|
2533
2530
|
shopLogo?: string;
|
|
@@ -2834,17 +2831,17 @@ export namespace OrderExpireResponse {
|
|
|
2834
2831
|
| 'SS'
|
|
2835
2832
|
| 'XK';
|
|
2836
2833
|
|
|
2837
|
-
|
|
2834
|
+
line1: string;
|
|
2838
2835
|
|
|
2839
|
-
|
|
2836
|
+
zipCode: string;
|
|
2840
2837
|
|
|
2841
|
-
|
|
2838
|
+
firstName?: string;
|
|
2842
2839
|
|
|
2843
|
-
|
|
2840
|
+
lastName?: string;
|
|
2844
2841
|
|
|
2845
|
-
|
|
2842
|
+
line2?: string;
|
|
2846
2843
|
|
|
2847
|
-
|
|
2844
|
+
region?: string;
|
|
2848
2845
|
}
|
|
2849
2846
|
|
|
2850
2847
|
export interface ClimateActionMode {
|
|
@@ -2868,7 +2865,7 @@ export namespace OrderExpireResponse {
|
|
|
2868
2865
|
|
|
2869
2866
|
export namespace Destination {
|
|
2870
2867
|
export interface BankAccount {
|
|
2871
|
-
type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
|
|
2868
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
|
|
2872
2869
|
|
|
2873
2870
|
bankCode?: BankAccount.BankCode;
|
|
2874
2871
|
|
|
@@ -2879,6 +2876,8 @@ export namespace OrderExpireResponse {
|
|
|
2879
2876
|
paymentReference?: string;
|
|
2880
2877
|
|
|
2881
2878
|
sortCode?: BankAccount.SortCode;
|
|
2879
|
+
|
|
2880
|
+
wallet?: BankAccount.Wallet;
|
|
2882
2881
|
}
|
|
2883
2882
|
|
|
2884
2883
|
export namespace BankAccount {
|
|
@@ -2913,6 +2912,18 @@ export namespace OrderExpireResponse {
|
|
|
2913
2912
|
|
|
2914
2913
|
sortCode: string;
|
|
2915
2914
|
}
|
|
2915
|
+
|
|
2916
|
+
export interface Wallet {
|
|
2917
|
+
/**
|
|
2918
|
+
* The blockchain wallet address
|
|
2919
|
+
*/
|
|
2920
|
+
address: string;
|
|
2921
|
+
|
|
2922
|
+
/**
|
|
2923
|
+
* The blockchain network
|
|
2924
|
+
*/
|
|
2925
|
+
blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
|
|
2926
|
+
}
|
|
2916
2927
|
}
|
|
2917
2928
|
}
|
|
2918
2929
|
|
|
@@ -2970,50 +2981,12 @@ export namespace OrderExpireResponse {
|
|
|
2970
2981
|
referenceId?: string;
|
|
2971
2982
|
}
|
|
2972
2983
|
|
|
2973
|
-
export interface Mandate {
|
|
2974
|
-
accountHolderName: string;
|
|
2975
|
-
|
|
2976
|
-
additionalDisplayInformation?: Mandate.AdditionalDisplayInformation;
|
|
2977
|
-
|
|
2978
|
-
creditor?: Mandate.Creditor;
|
|
2979
|
-
|
|
2980
|
-
reference?: string;
|
|
2981
|
-
|
|
2982
|
-
referenceId?: string;
|
|
2983
|
-
|
|
2984
|
-
setup?: boolean;
|
|
2985
|
-
|
|
2986
|
-
userNotificationEmail?: string;
|
|
2987
|
-
}
|
|
2988
|
-
|
|
2989
|
-
export namespace Mandate {
|
|
2990
|
-
export interface AdditionalDisplayInformation {
|
|
2991
|
-
cadence?: 'BI_WEEKLY' | 'WEEKLY' | 'MONTHLY' | 'QUARTERLY' | 'SEMI_ANNUAL' | 'ANNUAL' | 'ON_DEMAND';
|
|
2992
|
-
|
|
2993
|
-
price?: AdditionalDisplayInformation.Price;
|
|
2994
|
-
}
|
|
2995
|
-
|
|
2996
|
-
export namespace AdditionalDisplayInformation {
|
|
2997
|
-
export interface Price {
|
|
2998
|
-
amount: number;
|
|
2999
|
-
|
|
3000
|
-
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK';
|
|
3001
|
-
}
|
|
3002
|
-
}
|
|
3003
|
-
|
|
3004
|
-
export interface Creditor {
|
|
3005
|
-
id?: string;
|
|
3006
|
-
|
|
3007
|
-
name?: string;
|
|
3008
|
-
}
|
|
3009
|
-
}
|
|
3010
|
-
|
|
3011
2984
|
/**
|
|
3012
2985
|
* The financial address of the merchant associated with the order. Only available
|
|
3013
2986
|
* when requested via order/details and therefore requires authentication.
|
|
3014
2987
|
*/
|
|
3015
2988
|
export interface MerchantFinancialAddress {
|
|
3016
|
-
type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
|
|
2989
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
|
|
3017
2990
|
|
|
3018
2991
|
bankCode?: MerchantFinancialAddress.BankCode;
|
|
3019
2992
|
|
|
@@ -3024,6 +2997,8 @@ export namespace OrderExpireResponse {
|
|
|
3024
2997
|
paymentReference?: string;
|
|
3025
2998
|
|
|
3026
2999
|
sortCode?: MerchantFinancialAddress.SortCode;
|
|
3000
|
+
|
|
3001
|
+
wallet?: MerchantFinancialAddress.Wallet;
|
|
3027
3002
|
}
|
|
3028
3003
|
|
|
3029
3004
|
export namespace MerchantFinancialAddress {
|
|
@@ -3058,6 +3033,18 @@ export namespace OrderExpireResponse {
|
|
|
3058
3033
|
|
|
3059
3034
|
sortCode: string;
|
|
3060
3035
|
}
|
|
3036
|
+
|
|
3037
|
+
export interface Wallet {
|
|
3038
|
+
/**
|
|
3039
|
+
* The blockchain wallet address
|
|
3040
|
+
*/
|
|
3041
|
+
address: string;
|
|
3042
|
+
|
|
3043
|
+
/**
|
|
3044
|
+
* The blockchain network
|
|
3045
|
+
*/
|
|
3046
|
+
blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
|
|
3047
|
+
}
|
|
3061
3048
|
}
|
|
3062
3049
|
|
|
3063
3050
|
/**
|
|
@@ -3065,7 +3052,7 @@ export namespace OrderExpireResponse {
|
|
|
3065
3052
|
* after successful PIS flow.
|
|
3066
3053
|
*/
|
|
3067
3054
|
export interface PayerFinancialAddress {
|
|
3068
|
-
type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
|
|
3055
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
|
|
3069
3056
|
|
|
3070
3057
|
bankCode?: PayerFinancialAddress.BankCode;
|
|
3071
3058
|
|
|
@@ -3074,6 +3061,8 @@ export namespace OrderExpireResponse {
|
|
|
3074
3061
|
iban?: PayerFinancialAddress.Iban;
|
|
3075
3062
|
|
|
3076
3063
|
sortCode?: PayerFinancialAddress.SortCode;
|
|
3064
|
+
|
|
3065
|
+
wallet?: PayerFinancialAddress.Wallet;
|
|
3077
3066
|
}
|
|
3078
3067
|
|
|
3079
3068
|
export namespace PayerFinancialAddress {
|
|
@@ -3108,6 +3097,18 @@ export namespace OrderExpireResponse {
|
|
|
3108
3097
|
|
|
3109
3098
|
accountHolderName?: string;
|
|
3110
3099
|
}
|
|
3100
|
+
|
|
3101
|
+
export interface Wallet {
|
|
3102
|
+
/**
|
|
3103
|
+
* The blockchain wallet address
|
|
3104
|
+
*/
|
|
3105
|
+
address: string;
|
|
3106
|
+
|
|
3107
|
+
/**
|
|
3108
|
+
* The blockchain network
|
|
3109
|
+
*/
|
|
3110
|
+
blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
|
|
3111
|
+
}
|
|
3111
3112
|
}
|
|
3112
3113
|
|
|
3113
3114
|
export interface Refund {
|
|
@@ -3402,17 +3403,17 @@ export namespace OrderExpireResponse {
|
|
|
3402
3403
|
| 'SS'
|
|
3403
3404
|
| 'XK';
|
|
3404
3405
|
|
|
3405
|
-
|
|
3406
|
+
line1: string;
|
|
3406
3407
|
|
|
3407
|
-
|
|
3408
|
+
zipCode: string;
|
|
3408
3409
|
|
|
3409
|
-
|
|
3410
|
+
firstName?: string;
|
|
3410
3411
|
|
|
3411
|
-
|
|
3412
|
+
lastName?: string;
|
|
3412
3413
|
|
|
3413
|
-
|
|
3414
|
+
line2?: string;
|
|
3414
3415
|
|
|
3415
|
-
|
|
3416
|
+
region?: string;
|
|
3416
3417
|
}
|
|
3417
3418
|
|
|
3418
3419
|
/**
|
|
@@ -3445,7 +3446,10 @@ export namespace OrderExpireResponse {
|
|
|
3445
3446
|
| 'bank_under_maintenance'
|
|
3446
3447
|
| 'pin_blocked'
|
|
3447
3448
|
| 'payment_not_settled'
|
|
3448
|
-
| 'unsupported_bank_account'
|
|
3449
|
+
| 'unsupported_bank_account'
|
|
3450
|
+
| 'online_banking_login_required'
|
|
3451
|
+
| 'deutsche_bank_psu_migration'
|
|
3452
|
+
| 'out_of_operational_hours';
|
|
3449
3453
|
}
|
|
3450
3454
|
|
|
3451
3455
|
export interface StatusHistoryList {
|
|
@@ -3456,6 +3460,7 @@ export namespace OrderExpireResponse {
|
|
|
3456
3460
|
| 'canceled'
|
|
3457
3461
|
| 'processing'
|
|
3458
3462
|
| 'waiting_for_payment'
|
|
3463
|
+
| 'waiting_for_bank_confirmation'
|
|
3459
3464
|
| 'paid'
|
|
3460
3465
|
| 'in_refund'
|
|
3461
3466
|
| 'refunded'
|
|
@@ -3502,6 +3507,7 @@ export namespace OrderExpireResponse {
|
|
|
3502
3507
|
| 'canceled'
|
|
3503
3508
|
| 'processing'
|
|
3504
3509
|
| 'waiting_for_payment'
|
|
3510
|
+
| 'waiting_for_bank_confirmation'
|
|
3505
3511
|
| 'paid'
|
|
3506
3512
|
| 'in_refund'
|
|
3507
3513
|
| 'refunded'
|