@soltech/fluid-common 1.0.21 → 1.1.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/lib/index.d.ts +7 -11
- package/lib/index.js +0 -7
- package/package.json +1 -1
- package/src/index.ts +8 -13
package/lib/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export interface WalletInitParams {
|
|
|
38
38
|
timestamp: string;
|
|
39
39
|
buildDate: string;
|
|
40
40
|
hostSiteUrl: string;
|
|
41
|
+
virtual: boolean;
|
|
41
42
|
}
|
|
42
43
|
export interface Viewport {
|
|
43
44
|
innerWidth: number;
|
|
@@ -65,6 +66,7 @@ export interface WalletConfig {
|
|
|
65
66
|
userResponseRequired: boolean;
|
|
66
67
|
threshold: number;
|
|
67
68
|
};
|
|
69
|
+
virtual: boolean;
|
|
68
70
|
}
|
|
69
71
|
export interface Promotion {
|
|
70
72
|
title: string;
|
|
@@ -106,7 +108,7 @@ export interface PaymentMethod {
|
|
|
106
108
|
minAmount: number;
|
|
107
109
|
maxAmount: number;
|
|
108
110
|
info: string;
|
|
109
|
-
paymentType
|
|
111
|
+
paymentType: PaymentType;
|
|
110
112
|
inputFields?: InputField[];
|
|
111
113
|
bonusCodes?: string[];
|
|
112
114
|
instructions?: string;
|
|
@@ -117,13 +119,6 @@ export interface PaymentMethod {
|
|
|
117
119
|
withdrawalHandledByHostSite?: boolean;
|
|
118
120
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
119
121
|
transactionStatusCheck?: TransactionStatusCheck;
|
|
120
|
-
encryptionType?: EncryptionType;
|
|
121
|
-
}
|
|
122
|
-
export declare enum EncryptionType {
|
|
123
|
-
NO_ENCRYPTION = "NO_ENCRYPTION",
|
|
124
|
-
RSA_PKCS1 = "RSA_PKCS1",// RSA with PKCS#1 v1.5 padding (jsencrypt default)
|
|
125
|
-
RSA_OAEP = "RSA_OAEP",// RSA with OAEP padding (crypto/Web Crypto)
|
|
126
|
-
SHA384_SIGNATURE = "SHA384_SIGNATURE"
|
|
127
122
|
}
|
|
128
123
|
export type PaymentMethodFees = {
|
|
129
124
|
fixed?: number;
|
|
@@ -162,9 +157,9 @@ export declare enum RecentMethodMaskedAccountFormat {
|
|
|
162
157
|
export interface RecentMethod extends PaymentMethod {
|
|
163
158
|
accountId: string;
|
|
164
159
|
maskedAccount: string;
|
|
165
|
-
lastSuccess
|
|
166
|
-
expiryDate
|
|
167
|
-
maskedAccountFormat
|
|
160
|
+
lastSuccess: string;
|
|
161
|
+
expiryDate: string;
|
|
162
|
+
maskedAccountFormat: RecentMethodMaskedAccountFormat;
|
|
168
163
|
}
|
|
169
164
|
export interface TransactionParams {
|
|
170
165
|
accountId?: string;
|
|
@@ -274,6 +269,7 @@ export declare enum Action {
|
|
|
274
269
|
export interface PendingWithdrawal {
|
|
275
270
|
amount: string;
|
|
276
271
|
creationDate: string;
|
|
272
|
+
providerType: string;
|
|
277
273
|
state: WithdrawalState;
|
|
278
274
|
transactionId: string;
|
|
279
275
|
paymentGatewayId: string;
|
package/lib/index.js
CHANGED
|
@@ -24,13 +24,6 @@ export var PaymentType;
|
|
|
24
24
|
PaymentType["CRYPTO"] = "Crypto";
|
|
25
25
|
PaymentType["EWALLET"] = "EWallet";
|
|
26
26
|
})(PaymentType || (PaymentType = {}));
|
|
27
|
-
export var EncryptionType;
|
|
28
|
-
(function (EncryptionType) {
|
|
29
|
-
EncryptionType["NO_ENCRYPTION"] = "NO_ENCRYPTION";
|
|
30
|
-
EncryptionType["RSA_PKCS1"] = "RSA_PKCS1";
|
|
31
|
-
EncryptionType["RSA_OAEP"] = "RSA_OAEP";
|
|
32
|
-
EncryptionType["SHA384_SIGNATURE"] = "SHA384_SIGNATURE"; // SHA-384-based signature (headers)
|
|
33
|
-
})(EncryptionType || (EncryptionType = {}));
|
|
34
27
|
export var RecentMethodMaskedAccountFormat;
|
|
35
28
|
(function (RecentMethodMaskedAccountFormat) {
|
|
36
29
|
RecentMethodMaskedAccountFormat["DEFAULT"] = "Default";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -43,6 +43,7 @@ export interface WalletInitParams {
|
|
|
43
43
|
timestamp: string;
|
|
44
44
|
buildDate: string;
|
|
45
45
|
hostSiteUrl: string;
|
|
46
|
+
virtual: boolean;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
export interface Viewport {
|
|
@@ -71,7 +72,8 @@ export interface WalletConfig {
|
|
|
71
72
|
pendingWithdrawalsReminder: {
|
|
72
73
|
userResponseRequired: boolean;
|
|
73
74
|
threshold: number;
|
|
74
|
-
}
|
|
75
|
+
},
|
|
76
|
+
virtual: boolean;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
export interface Promotion {
|
|
@@ -120,7 +122,7 @@ export interface PaymentMethod {
|
|
|
120
122
|
minAmount: number;
|
|
121
123
|
maxAmount: number;
|
|
122
124
|
info: string;
|
|
123
|
-
paymentType
|
|
125
|
+
paymentType: PaymentType;
|
|
124
126
|
inputFields?: InputField[];
|
|
125
127
|
bonusCodes?: string[];
|
|
126
128
|
instructions?: string;
|
|
@@ -131,14 +133,6 @@ export interface PaymentMethod {
|
|
|
131
133
|
withdrawalHandledByHostSite?: boolean;
|
|
132
134
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
133
135
|
transactionStatusCheck?: TransactionStatusCheck;
|
|
134
|
-
encryptionType?: EncryptionType;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export enum EncryptionType {
|
|
138
|
-
NO_ENCRYPTION = 'NO_ENCRYPTION',
|
|
139
|
-
RSA_PKCS1 = 'RSA_PKCS1', // RSA with PKCS#1 v1.5 padding (jsencrypt default)
|
|
140
|
-
RSA_OAEP = 'RSA_OAEP', // RSA with OAEP padding (crypto/Web Crypto)
|
|
141
|
-
SHA384_SIGNATURE = 'SHA384_SIGNATURE' // SHA-384-based signature (headers)
|
|
142
136
|
}
|
|
143
137
|
|
|
144
138
|
export type PaymentMethodFees = {
|
|
@@ -183,9 +177,9 @@ export enum RecentMethodMaskedAccountFormat {
|
|
|
183
177
|
export interface RecentMethod extends PaymentMethod {
|
|
184
178
|
accountId: string;
|
|
185
179
|
maskedAccount: string;
|
|
186
|
-
lastSuccess
|
|
187
|
-
expiryDate
|
|
188
|
-
maskedAccountFormat
|
|
180
|
+
lastSuccess: string;
|
|
181
|
+
expiryDate: string;
|
|
182
|
+
maskedAccountFormat: RecentMethodMaskedAccountFormat;
|
|
189
183
|
}
|
|
190
184
|
|
|
191
185
|
export interface TransactionParams {
|
|
@@ -309,6 +303,7 @@ export enum Action {
|
|
|
309
303
|
export interface PendingWithdrawal {
|
|
310
304
|
amount: string;
|
|
311
305
|
creationDate: string;
|
|
306
|
+
providerType: string;
|
|
312
307
|
state: WithdrawalState;
|
|
313
308
|
transactionId: string;
|
|
314
309
|
paymentGatewayId: string;
|