@soltech/fluid-common 0.3.23 → 0.3.25
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/lib/index.d.ts +8 -6
- package/lib/index.js +1 -3
- package/package.json +1 -1
- package/src/index.ts +9 -6
package/lib/index.d.ts
CHANGED
|
@@ -16,9 +16,7 @@ export declare enum PaymentType {
|
|
|
16
16
|
BANK_TRANSFER = "BankTransfer",
|
|
17
17
|
CREDIT_CARD = "CreditCard",
|
|
18
18
|
CRYPTO = "Crypto",
|
|
19
|
-
|
|
20
|
-
PREPAID_CARD = "PrepaidCard",
|
|
21
|
-
VOUCHER = "Voucher",
|
|
19
|
+
EWALLET = "EWallet",
|
|
22
20
|
WEBREDIRECT = "WebRedirect"
|
|
23
21
|
}
|
|
24
22
|
export interface WalletRequestBody {
|
|
@@ -78,7 +76,7 @@ export interface InputField {
|
|
|
78
76
|
export interface InputFieldOption {
|
|
79
77
|
name: string;
|
|
80
78
|
code: string;
|
|
81
|
-
logo?:
|
|
79
|
+
logo?: PaymentMethodLogo;
|
|
82
80
|
}
|
|
83
81
|
export interface RecentMethod extends PaymentMethod {
|
|
84
82
|
accountId: string;
|
|
@@ -119,9 +117,13 @@ export interface BankTransferTransactionParams extends TransactionParams {
|
|
|
119
117
|
iban?: string;
|
|
120
118
|
nationalId?: string;
|
|
121
119
|
}
|
|
122
|
-
export interface
|
|
120
|
+
export interface CryptoTransactionParams extends TransactionParams {
|
|
121
|
+
cryptoCurrency: string;
|
|
122
|
+
}
|
|
123
|
+
export interface EWalletTransactionParams extends TransactionParams {
|
|
124
|
+
customerNumber?: string;
|
|
123
125
|
email?: string;
|
|
124
|
-
|
|
126
|
+
service?: string;
|
|
125
127
|
}
|
|
126
128
|
export interface TransactionOptions {
|
|
127
129
|
bonusCode?: string;
|
package/lib/index.js
CHANGED
|
@@ -20,9 +20,7 @@ export var PaymentType;
|
|
|
20
20
|
PaymentType["BANK_TRANSFER"] = "BankTransfer";
|
|
21
21
|
PaymentType["CREDIT_CARD"] = "CreditCard";
|
|
22
22
|
PaymentType["CRYPTO"] = "Crypto";
|
|
23
|
-
PaymentType["
|
|
24
|
-
PaymentType["PREPAID_CARD"] = "PrepaidCard";
|
|
25
|
-
PaymentType["VOUCHER"] = "Voucher";
|
|
23
|
+
PaymentType["EWALLET"] = "EWallet";
|
|
26
24
|
PaymentType["WEBREDIRECT"] = "WebRedirect";
|
|
27
25
|
})(PaymentType || (PaymentType = {}));
|
|
28
26
|
export var TransactionState;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -20,9 +20,7 @@ export enum PaymentType {
|
|
|
20
20
|
BANK_TRANSFER = 'BankTransfer',
|
|
21
21
|
CREDIT_CARD = 'CreditCard',
|
|
22
22
|
CRYPTO = 'Crypto',
|
|
23
|
-
|
|
24
|
-
PREPAID_CARD = 'PrepaidCard',
|
|
25
|
-
VOUCHER = 'Voucher',
|
|
23
|
+
EWALLET = 'EWallet',
|
|
26
24
|
WEBREDIRECT = 'WebRedirect'
|
|
27
25
|
}
|
|
28
26
|
|
|
@@ -91,7 +89,7 @@ export interface InputField {
|
|
|
91
89
|
export interface InputFieldOption {
|
|
92
90
|
name: string;
|
|
93
91
|
code: string;
|
|
94
|
-
logo?:
|
|
92
|
+
logo?: PaymentMethodLogo;
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
export interface RecentMethod extends PaymentMethod {
|
|
@@ -137,9 +135,14 @@ export interface BankTransferTransactionParams extends TransactionParams {
|
|
|
137
135
|
nationalId?: string;
|
|
138
136
|
}
|
|
139
137
|
|
|
140
|
-
export interface
|
|
138
|
+
export interface CryptoTransactionParams extends TransactionParams {
|
|
139
|
+
cryptoCurrency: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface EWalletTransactionParams extends TransactionParams {
|
|
143
|
+
customerNumber?: string;
|
|
141
144
|
email?: string;
|
|
142
|
-
|
|
145
|
+
service?: string;
|
|
143
146
|
}
|
|
144
147
|
|
|
145
148
|
export interface TransactionOptions {
|