@soltech/fluid-common 1.0.19 → 1.1.0
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 -11
- package/lib/index.js +0 -7
- package/package.json +1 -1
- package/src/index.ts +6 -13
package/lib/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export interface WalletConfig {
|
|
|
65
65
|
userResponseRequired: boolean;
|
|
66
66
|
threshold: number;
|
|
67
67
|
};
|
|
68
|
+
virtual: boolean;
|
|
68
69
|
}
|
|
69
70
|
export interface Promotion {
|
|
70
71
|
title: string;
|
|
@@ -106,7 +107,7 @@ export interface PaymentMethod {
|
|
|
106
107
|
minAmount: number;
|
|
107
108
|
maxAmount: number;
|
|
108
109
|
info: string;
|
|
109
|
-
paymentType
|
|
110
|
+
paymentType: PaymentType;
|
|
110
111
|
inputFields?: InputField[];
|
|
111
112
|
bonusCodes?: string[];
|
|
112
113
|
instructions?: string;
|
|
@@ -117,13 +118,6 @@ export interface PaymentMethod {
|
|
|
117
118
|
withdrawalHandledByHostSite?: boolean;
|
|
118
119
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
119
120
|
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
121
|
}
|
|
128
122
|
export type PaymentMethodFees = {
|
|
129
123
|
fixed?: number;
|
|
@@ -162,9 +156,9 @@ export declare enum RecentMethodMaskedAccountFormat {
|
|
|
162
156
|
export interface RecentMethod extends PaymentMethod {
|
|
163
157
|
accountId: string;
|
|
164
158
|
maskedAccount: string;
|
|
165
|
-
lastSuccess
|
|
166
|
-
expiryDate
|
|
167
|
-
maskedAccountFormat
|
|
159
|
+
lastSuccess: string;
|
|
160
|
+
expiryDate: string;
|
|
161
|
+
maskedAccountFormat: RecentMethodMaskedAccountFormat;
|
|
168
162
|
}
|
|
169
163
|
export interface TransactionParams {
|
|
170
164
|
accountId?: 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
|
@@ -71,7 +71,8 @@ export interface WalletConfig {
|
|
|
71
71
|
pendingWithdrawalsReminder: {
|
|
72
72
|
userResponseRequired: boolean;
|
|
73
73
|
threshold: number;
|
|
74
|
-
}
|
|
74
|
+
},
|
|
75
|
+
virtual: boolean;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
export interface Promotion {
|
|
@@ -120,7 +121,7 @@ export interface PaymentMethod {
|
|
|
120
121
|
minAmount: number;
|
|
121
122
|
maxAmount: number;
|
|
122
123
|
info: string;
|
|
123
|
-
paymentType
|
|
124
|
+
paymentType: PaymentType;
|
|
124
125
|
inputFields?: InputField[];
|
|
125
126
|
bonusCodes?: string[];
|
|
126
127
|
instructions?: string;
|
|
@@ -131,14 +132,6 @@ export interface PaymentMethod {
|
|
|
131
132
|
withdrawalHandledByHostSite?: boolean;
|
|
132
133
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
133
134
|
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
135
|
}
|
|
143
136
|
|
|
144
137
|
export type PaymentMethodFees = {
|
|
@@ -183,9 +176,9 @@ export enum RecentMethodMaskedAccountFormat {
|
|
|
183
176
|
export interface RecentMethod extends PaymentMethod {
|
|
184
177
|
accountId: string;
|
|
185
178
|
maskedAccount: string;
|
|
186
|
-
lastSuccess
|
|
187
|
-
expiryDate
|
|
188
|
-
maskedAccountFormat
|
|
179
|
+
lastSuccess: string;
|
|
180
|
+
expiryDate: string;
|
|
181
|
+
maskedAccountFormat: RecentMethodMaskedAccountFormat;
|
|
189
182
|
}
|
|
190
183
|
|
|
191
184
|
export interface TransactionParams {
|