@soltech/fluid-common 1.0.12 → 1.0.14
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 +11 -5
- package/lib/index.js +7 -1
- package/package.json +1 -1
- package/src/index.ts +12 -5
package/lib/index.d.ts
CHANGED
|
@@ -117,6 +117,13 @@ export interface PaymentMethod {
|
|
|
117
117
|
withdrawalHandledByHostSite?: boolean;
|
|
118
118
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
119
119
|
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"
|
|
120
127
|
}
|
|
121
128
|
export type PaymentMethodFees = {
|
|
122
129
|
fixed?: number;
|
|
@@ -155,9 +162,9 @@ export declare enum RecentMethodMaskedAccountFormat {
|
|
|
155
162
|
export interface RecentMethod extends PaymentMethod {
|
|
156
163
|
accountId: string;
|
|
157
164
|
maskedAccount: string;
|
|
158
|
-
lastSuccess
|
|
159
|
-
expiryDate
|
|
160
|
-
maskedAccountFormat
|
|
165
|
+
lastSuccess?: string;
|
|
166
|
+
expiryDate?: string;
|
|
167
|
+
maskedAccountFormat?: RecentMethodMaskedAccountFormat;
|
|
161
168
|
}
|
|
162
169
|
export interface TransactionParams {
|
|
163
170
|
accountId?: string;
|
|
@@ -261,8 +268,7 @@ export declare enum Action {
|
|
|
261
268
|
RESTART_CLEARING_DETAILS = "RESTART_CLEARING_DETAILS",
|
|
262
269
|
SHOW_DETAILS_STEP_PRESERVING_DETAILS = "SHOW_DETAILS_STEP_PRESERVING_DETAILS",
|
|
263
270
|
SHOW_DETAILS_STEP_CLEARING_DETAILS = "SHOW_DETAILS_STEP_CLEARING_DETAILS",
|
|
264
|
-
SHOW_CVC_EDIT = "SHOW_CVC_EDIT"
|
|
265
|
-
DISMISS = "DISMISS"
|
|
271
|
+
SHOW_CVC_EDIT = "SHOW_CVC_EDIT"
|
|
266
272
|
}
|
|
267
273
|
export interface PendingWithdrawal {
|
|
268
274
|
amount: string;
|
package/lib/index.js
CHANGED
|
@@ -24,6 +24,13 @@ 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 = {}));
|
|
27
34
|
export var RecentMethodMaskedAccountFormat;
|
|
28
35
|
(function (RecentMethodMaskedAccountFormat) {
|
|
29
36
|
RecentMethodMaskedAccountFormat["DEFAULT"] = "Default";
|
|
@@ -54,7 +61,6 @@ export var Action;
|
|
|
54
61
|
Action["SHOW_DETAILS_STEP_PRESERVING_DETAILS"] = "SHOW_DETAILS_STEP_PRESERVING_DETAILS";
|
|
55
62
|
Action["SHOW_DETAILS_STEP_CLEARING_DETAILS"] = "SHOW_DETAILS_STEP_CLEARING_DETAILS";
|
|
56
63
|
Action["SHOW_CVC_EDIT"] = "SHOW_CVC_EDIT";
|
|
57
|
-
Action["DISMISS"] = "DISMISS";
|
|
58
64
|
})(Action || (Action = {}));
|
|
59
65
|
export var WithdrawalState;
|
|
60
66
|
(function (WithdrawalState) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -131,6 +131,14 @@ export interface PaymentMethod {
|
|
|
131
131
|
withdrawalHandledByHostSite?: boolean;
|
|
132
132
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
133
133
|
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)
|
|
134
142
|
}
|
|
135
143
|
|
|
136
144
|
export type PaymentMethodFees = {
|
|
@@ -175,9 +183,9 @@ export enum RecentMethodMaskedAccountFormat {
|
|
|
175
183
|
export interface RecentMethod extends PaymentMethod {
|
|
176
184
|
accountId: string;
|
|
177
185
|
maskedAccount: string;
|
|
178
|
-
lastSuccess
|
|
179
|
-
expiryDate
|
|
180
|
-
maskedAccountFormat
|
|
186
|
+
lastSuccess?: string;
|
|
187
|
+
expiryDate?: string;
|
|
188
|
+
maskedAccountFormat?: RecentMethodMaskedAccountFormat;
|
|
181
189
|
}
|
|
182
190
|
|
|
183
191
|
export interface TransactionParams {
|
|
@@ -294,8 +302,7 @@ export enum Action {
|
|
|
294
302
|
RESTART_CLEARING_DETAILS = 'RESTART_CLEARING_DETAILS',
|
|
295
303
|
SHOW_DETAILS_STEP_PRESERVING_DETAILS = 'SHOW_DETAILS_STEP_PRESERVING_DETAILS',
|
|
296
304
|
SHOW_DETAILS_STEP_CLEARING_DETAILS = 'SHOW_DETAILS_STEP_CLEARING_DETAILS',
|
|
297
|
-
SHOW_CVC_EDIT = 'SHOW_CVC_EDIT'
|
|
298
|
-
DISMISS = 'DISMISS'
|
|
305
|
+
SHOW_CVC_EDIT = 'SHOW_CVC_EDIT'
|
|
299
306
|
}
|
|
300
307
|
|
|
301
308
|
export interface PendingWithdrawal {
|