@soltech/fluid-common 0.3.24 → 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 +5 -7
- package/lib/index.js +1 -4
- package/package.json +1 -1
- package/src/index.ts +5 -7
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;
|
|
@@ -122,9 +120,10 @@ export interface BankTransferTransactionParams extends TransactionParams {
|
|
|
122
120
|
export interface CryptoTransactionParams extends TransactionParams {
|
|
123
121
|
cryptoCurrency: string;
|
|
124
122
|
}
|
|
125
|
-
export interface
|
|
123
|
+
export interface EWalletTransactionParams extends TransactionParams {
|
|
124
|
+
customerNumber?: string;
|
|
126
125
|
email?: string;
|
|
127
|
-
|
|
126
|
+
service?: string;
|
|
128
127
|
}
|
|
129
128
|
export interface TransactionOptions {
|
|
130
129
|
bonusCode?: string;
|
|
@@ -158,7 +157,6 @@ export interface ProviderTransactionError {
|
|
|
158
157
|
}
|
|
159
158
|
export declare enum ErrorAction {
|
|
160
159
|
RETURN_STEP1 = "RETURN_STEP1",
|
|
161
|
-
RETURN_STEP1_FORCE_NEW_METHOD = "RETURN_STEP1_FORCE_NEW_METHOD",
|
|
162
160
|
RETURN_STEP2 = "RETURN_STEP2",
|
|
163
161
|
BLOCK_DEPOSITS = "BLOCK_DEPOSITS"
|
|
164
162
|
}
|
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;
|
|
@@ -36,7 +34,6 @@ export var TransactionState;
|
|
|
36
34
|
export var ErrorAction;
|
|
37
35
|
(function (ErrorAction) {
|
|
38
36
|
ErrorAction["RETURN_STEP1"] = "RETURN_STEP1";
|
|
39
|
-
ErrorAction["RETURN_STEP1_FORCE_NEW_METHOD"] = "RETURN_STEP1_FORCE_NEW_METHOD";
|
|
40
37
|
ErrorAction["RETURN_STEP2"] = "RETURN_STEP2";
|
|
41
38
|
ErrorAction["BLOCK_DEPOSITS"] = "BLOCK_DEPOSITS";
|
|
42
39
|
})(ErrorAction || (ErrorAction = {}));
|
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 {
|
|
@@ -141,9 +139,10 @@ export interface CryptoTransactionParams extends TransactionParams {
|
|
|
141
139
|
cryptoCurrency: string;
|
|
142
140
|
}
|
|
143
141
|
|
|
144
|
-
export interface
|
|
142
|
+
export interface EWalletTransactionParams extends TransactionParams {
|
|
143
|
+
customerNumber?: string;
|
|
145
144
|
email?: string;
|
|
146
|
-
|
|
145
|
+
service?: string;
|
|
147
146
|
}
|
|
148
147
|
|
|
149
148
|
export interface TransactionOptions {
|
|
@@ -183,7 +182,6 @@ export interface ProviderTransactionError {
|
|
|
183
182
|
|
|
184
183
|
export enum ErrorAction {
|
|
185
184
|
RETURN_STEP1 = 'RETURN_STEP1',
|
|
186
|
-
RETURN_STEP1_FORCE_NEW_METHOD = 'RETURN_STEP1_FORCE_NEW_METHOD',
|
|
187
185
|
RETURN_STEP2 = 'RETURN_STEP2',
|
|
188
186
|
BLOCK_DEPOSITS = 'BLOCK_DEPOSITS'
|
|
189
187
|
}
|