@soltech/fluid-common 1.6.15 → 1.6.17
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 +63 -13
- package/package.json +1 -1
- package/src/index.ts +69 -13
package/lib/index.d.ts
CHANGED
|
@@ -39,8 +39,11 @@ export interface WalletInitParams {
|
|
|
39
39
|
operatorId: number;
|
|
40
40
|
sessionId: string;
|
|
41
41
|
userId: string | number;
|
|
42
|
+
/** @deprecated Use browserInfo.userAgent instead */
|
|
42
43
|
userAgent: string;
|
|
44
|
+
/** @deprecated Use browserInfo.viewport instead */
|
|
43
45
|
viewport: Viewport;
|
|
46
|
+
browserInfo?: BrowserInfo;
|
|
44
47
|
userData?: UserData;
|
|
45
48
|
timestamp: string;
|
|
46
49
|
buildDate: string;
|
|
@@ -51,34 +54,48 @@ export interface Viewport {
|
|
|
51
54
|
innerWidth: number;
|
|
52
55
|
innerHeight: number;
|
|
53
56
|
}
|
|
57
|
+
export interface ScreenDimensions {
|
|
58
|
+
height: number;
|
|
59
|
+
width: number;
|
|
60
|
+
}
|
|
61
|
+
export interface BrowserInfo {
|
|
62
|
+
userAgent: string;
|
|
63
|
+
acceptHeader: string;
|
|
64
|
+
javaEnabled: boolean;
|
|
65
|
+
colorDepth: number;
|
|
66
|
+
screen: ScreenDimensions;
|
|
67
|
+
viewport: Viewport;
|
|
68
|
+
timezoneOffset: number;
|
|
69
|
+
}
|
|
54
70
|
export interface WalletConfig {
|
|
55
71
|
autofillCreditCardName: boolean;
|
|
56
72
|
balanceDisplayed: boolean;
|
|
73
|
+
banner?: Banner;
|
|
57
74
|
bonusOutlined: boolean;
|
|
75
|
+
campaign?: Campaign;
|
|
58
76
|
contactSupportEnabled: boolean;
|
|
59
77
|
contactSupportLink: string;
|
|
60
78
|
contentText: Record<string, string>;
|
|
61
79
|
expressFlowEnabled: boolean;
|
|
62
80
|
defaultDepositAmount: number;
|
|
63
81
|
fullListOfDepositMethodsDisplayed: boolean;
|
|
82
|
+
hideMinMaxEnabled: boolean;
|
|
64
83
|
integration: Integration;
|
|
65
84
|
kycDepositLimit: number | null;
|
|
66
85
|
logo: string;
|
|
86
|
+
manualBonusCodesEnabled?: boolean;
|
|
67
87
|
numberCharactersHolderName: number | null;
|
|
88
|
+
pendingWithdrawalsReminder: {
|
|
89
|
+
threshold: number;
|
|
90
|
+
userResponseRequired: boolean;
|
|
91
|
+
};
|
|
68
92
|
successScreen: {
|
|
69
93
|
promotion: Promotion | null;
|
|
70
94
|
};
|
|
71
95
|
suggestedDepositAmounts: number[];
|
|
72
96
|
theme: Record<string, string>;
|
|
73
97
|
transactionToggleDisplayed: boolean;
|
|
74
|
-
pendingWithdrawalsReminder: {
|
|
75
|
-
userResponseRequired: boolean;
|
|
76
|
-
threshold: number;
|
|
77
|
-
};
|
|
78
98
|
withdrawalInFiatCurrency: boolean;
|
|
79
|
-
banner?: Banner;
|
|
80
|
-
campaign?: Campaign;
|
|
81
|
-
manualBonusCodesEnabled?: boolean;
|
|
82
99
|
}
|
|
83
100
|
export interface Promotion {
|
|
84
101
|
title: string;
|
|
@@ -138,6 +155,7 @@ export interface EncryptionSettings {
|
|
|
138
155
|
encryptionType: EncryptionType;
|
|
139
156
|
expiryDateEncryptionMode: ExpiryDateEncryptionMode;
|
|
140
157
|
encryptCardholderName: boolean;
|
|
158
|
+
encryptFullYear: boolean;
|
|
141
159
|
}
|
|
142
160
|
export declare enum EncryptionType {
|
|
143
161
|
NO_ENCRYPTION = "NO_ENCRYPTION",
|
|
@@ -208,12 +226,44 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
208
226
|
expiryYear?: string;
|
|
209
227
|
expiryDate?: string;
|
|
210
228
|
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
229
|
+
export interface BankTransferTransactionParams extends TransactionParams {
|
|
230
|
+
accountName?: string;
|
|
231
|
+
accountNumber?: string;
|
|
232
|
+
accountType?: string;
|
|
233
|
+
bankCode?: string;
|
|
234
|
+
bankName?: string;
|
|
235
|
+
beneficiaryCity?: string;
|
|
236
|
+
beneficiaryCountry?: string;
|
|
237
|
+
beneficiaryName?: string;
|
|
238
|
+
beneficiaryState?: string;
|
|
239
|
+
beneficiaryStreet?: string;
|
|
240
|
+
beneficiaryZip?: string;
|
|
241
|
+
bic?: string;
|
|
242
|
+
branchAddress?: string;
|
|
243
|
+
branchCode?: string;
|
|
244
|
+
branchName?: string;
|
|
245
|
+
clearingNumber?: string;
|
|
246
|
+
countryCode?: string;
|
|
247
|
+
iban?: string;
|
|
248
|
+
nationalId?: string;
|
|
249
|
+
documentType?: string;
|
|
250
|
+
documentNumber?: string;
|
|
251
|
+
}
|
|
252
|
+
export interface CryptoTransactionParams extends TransactionParams {
|
|
253
|
+
cryptoCurrency?: string;
|
|
254
|
+
destinationTag?: string;
|
|
255
|
+
walletAddress?: string;
|
|
256
|
+
}
|
|
257
|
+
export interface EWalletTransactionParams extends TransactionParams {
|
|
258
|
+
customerNumber?: string;
|
|
259
|
+
email?: string;
|
|
260
|
+
mobile?: string;
|
|
261
|
+
phoneNumber?: string;
|
|
262
|
+
service?: string;
|
|
263
|
+
beneficiaryName?: string;
|
|
264
|
+
userAccountId?: string;
|
|
265
|
+
}
|
|
266
|
+
export interface VoucherTransactionParams extends TransactionParams {
|
|
217
267
|
[key: string]: string | number | undefined;
|
|
218
268
|
}
|
|
219
269
|
export interface ApplePayTransactionParams extends TransactionParams {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -45,8 +45,11 @@ export interface WalletInitParams {
|
|
|
45
45
|
operatorId: number;
|
|
46
46
|
sessionId: string;
|
|
47
47
|
userId: string | number;
|
|
48
|
+
/** @deprecated Use browserInfo.userAgent instead */
|
|
48
49
|
userAgent: string;
|
|
50
|
+
/** @deprecated Use browserInfo.viewport instead */
|
|
49
51
|
viewport: Viewport;
|
|
52
|
+
browserInfo?: BrowserInfo;
|
|
50
53
|
userData?: UserData;
|
|
51
54
|
timestamp: string;
|
|
52
55
|
buildDate: string;
|
|
@@ -59,34 +62,51 @@ export interface Viewport {
|
|
|
59
62
|
innerHeight: number;
|
|
60
63
|
}
|
|
61
64
|
|
|
65
|
+
export interface ScreenDimensions {
|
|
66
|
+
height: number;
|
|
67
|
+
width: number;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface BrowserInfo {
|
|
71
|
+
userAgent: string;
|
|
72
|
+
acceptHeader: string;
|
|
73
|
+
javaEnabled: boolean;
|
|
74
|
+
colorDepth: number;
|
|
75
|
+
screen: ScreenDimensions;
|
|
76
|
+
viewport: Viewport;
|
|
77
|
+
timezoneOffset: number;
|
|
78
|
+
}
|
|
79
|
+
|
|
62
80
|
export interface WalletConfig {
|
|
63
81
|
autofillCreditCardName: boolean;
|
|
64
82
|
balanceDisplayed: boolean;
|
|
83
|
+
banner?: Banner;
|
|
65
84
|
bonusOutlined: boolean;
|
|
85
|
+
campaign?: Campaign;
|
|
66
86
|
contactSupportEnabled: boolean;
|
|
67
87
|
contactSupportLink: string;
|
|
68
88
|
contentText: Record<string, string>;
|
|
69
89
|
expressFlowEnabled: boolean;
|
|
70
90
|
defaultDepositAmount: number;
|
|
71
91
|
fullListOfDepositMethodsDisplayed: boolean;
|
|
92
|
+
hideMinMaxEnabled: boolean;
|
|
72
93
|
integration: Integration;
|
|
73
94
|
kycDepositLimit: number | null;
|
|
74
95
|
logo: string;
|
|
96
|
+
manualBonusCodesEnabled?: boolean;
|
|
75
97
|
numberCharactersHolderName: number | null;
|
|
98
|
+
pendingWithdrawalsReminder: {
|
|
99
|
+
threshold: number;
|
|
100
|
+
userResponseRequired: boolean;
|
|
101
|
+
};
|
|
76
102
|
successScreen: {
|
|
77
103
|
promotion: Promotion | null;
|
|
78
104
|
};
|
|
79
105
|
suggestedDepositAmounts: number[];
|
|
80
106
|
theme: Record<string, string>;
|
|
81
107
|
transactionToggleDisplayed: boolean;
|
|
82
|
-
pendingWithdrawalsReminder: {
|
|
83
|
-
userResponseRequired: boolean;
|
|
84
|
-
threshold: number;
|
|
85
|
-
},
|
|
86
108
|
withdrawalInFiatCurrency: boolean;
|
|
87
|
-
|
|
88
|
-
campaign?: Campaign;
|
|
89
|
-
manualBonusCodesEnabled?: boolean;
|
|
109
|
+
|
|
90
110
|
}
|
|
91
111
|
|
|
92
112
|
export interface Promotion {
|
|
@@ -154,6 +174,7 @@ export interface EncryptionSettings {
|
|
|
154
174
|
encryptionType: EncryptionType;
|
|
155
175
|
expiryDateEncryptionMode: ExpiryDateEncryptionMode;
|
|
156
176
|
encryptCardholderName: boolean;
|
|
177
|
+
encryptFullYear: boolean;
|
|
157
178
|
}
|
|
158
179
|
|
|
159
180
|
export enum EncryptionType {
|
|
@@ -235,12 +256,47 @@ export interface CreditcardTransactionParams extends TransactionParams {
|
|
|
235
256
|
expiryDate?: string;
|
|
236
257
|
}
|
|
237
258
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
259
|
+
export interface BankTransferTransactionParams extends TransactionParams {
|
|
260
|
+
accountName?: string;
|
|
261
|
+
accountNumber?: string;
|
|
262
|
+
accountType?: string;
|
|
263
|
+
bankCode?: string;
|
|
264
|
+
bankName?: string;
|
|
265
|
+
beneficiaryCity?: string;
|
|
266
|
+
beneficiaryCountry?: string;
|
|
267
|
+
beneficiaryName?: string;
|
|
268
|
+
beneficiaryState?: string;
|
|
269
|
+
beneficiaryStreet?: string;
|
|
270
|
+
beneficiaryZip?: string;
|
|
271
|
+
bic?: string;
|
|
272
|
+
branchAddress?: string;
|
|
273
|
+
branchCode?: string;
|
|
274
|
+
branchName?: string;
|
|
275
|
+
clearingNumber?: string;
|
|
276
|
+
countryCode?: string;
|
|
277
|
+
iban?: string;
|
|
278
|
+
nationalId?: string;
|
|
279
|
+
documentType?: string;
|
|
280
|
+
documentNumber?: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export interface CryptoTransactionParams extends TransactionParams {
|
|
284
|
+
cryptoCurrency?: string;
|
|
285
|
+
destinationTag?: string;
|
|
286
|
+
walletAddress?: string;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export interface EWalletTransactionParams extends TransactionParams {
|
|
290
|
+
customerNumber?: string;
|
|
291
|
+
email?: string;
|
|
292
|
+
mobile?: string;
|
|
293
|
+
phoneNumber?: string;
|
|
294
|
+
service?: string;
|
|
295
|
+
beneficiaryName?: string;
|
|
296
|
+
userAccountId?: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface VoucherTransactionParams extends TransactionParams {
|
|
244
300
|
[key: string]: string | number | undefined;
|
|
245
301
|
}
|
|
246
302
|
|