@soltech/fluid-common 1.0.9 → 1.0.10
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 +8 -2
- package/lib/index.js +7 -1
- package/package.json +1 -1
- package/src/index.ts +9 -2
package/lib/index.d.ts
CHANGED
|
@@ -113,6 +113,13 @@ export interface PaymentMethod {
|
|
|
113
113
|
withdrawalHandledByHostSite?: boolean;
|
|
114
114
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
115
115
|
transactionStatusCheck?: TransactionStatusCheck;
|
|
116
|
+
encryptionType?: EncryptionType;
|
|
117
|
+
}
|
|
118
|
+
export declare enum EncryptionType {
|
|
119
|
+
NO_ENCRYPTION = "NO_ENCRYPTION",
|
|
120
|
+
RSA_PKCS1 = "RSA_PKCS1",// RSA with PKCS#1 v1.5 padding (jsencrypt default)
|
|
121
|
+
RSA_OAEP = "RSA_OAEP",// RSA with OAEP padding (crypto/Web Crypto)
|
|
122
|
+
SHA384_SIGNATURE = "SHA384_SIGNATURE"
|
|
116
123
|
}
|
|
117
124
|
export type PaymentMethodFees = {
|
|
118
125
|
fixed?: number;
|
|
@@ -257,8 +264,7 @@ export declare enum Action {
|
|
|
257
264
|
RESTART_CLEARING_DETAILS = "RESTART_CLEARING_DETAILS",
|
|
258
265
|
SHOW_DETAILS_STEP_PRESERVING_DETAILS = "SHOW_DETAILS_STEP_PRESERVING_DETAILS",
|
|
259
266
|
SHOW_DETAILS_STEP_CLEARING_DETAILS = "SHOW_DETAILS_STEP_CLEARING_DETAILS",
|
|
260
|
-
SHOW_CVC_EDIT = "SHOW_CVC_EDIT"
|
|
261
|
-
DISMISS = "DISMISS"
|
|
267
|
+
SHOW_CVC_EDIT = "SHOW_CVC_EDIT"
|
|
262
268
|
}
|
|
263
269
|
export interface PendingWithdrawal {
|
|
264
270
|
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
|
@@ -127,6 +127,14 @@ export interface PaymentMethod {
|
|
|
127
127
|
withdrawalHandledByHostSite?: boolean;
|
|
128
128
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
129
129
|
transactionStatusCheck?: TransactionStatusCheck;
|
|
130
|
+
encryptionType?: EncryptionType;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export enum EncryptionType {
|
|
134
|
+
NO_ENCRYPTION = 'NO_ENCRYPTION',
|
|
135
|
+
RSA_PKCS1 = 'RSA_PKCS1', // RSA with PKCS#1 v1.5 padding (jsencrypt default)
|
|
136
|
+
RSA_OAEP = 'RSA_OAEP', // RSA with OAEP padding (crypto/Web Crypto)
|
|
137
|
+
SHA384_SIGNATURE = 'SHA384_SIGNATURE' // SHA-384-based signature (headers)
|
|
130
138
|
}
|
|
131
139
|
|
|
132
140
|
export type PaymentMethodFees = {
|
|
@@ -290,8 +298,7 @@ export enum Action {
|
|
|
290
298
|
RESTART_CLEARING_DETAILS = 'RESTART_CLEARING_DETAILS',
|
|
291
299
|
SHOW_DETAILS_STEP_PRESERVING_DETAILS = 'SHOW_DETAILS_STEP_PRESERVING_DETAILS',
|
|
292
300
|
SHOW_DETAILS_STEP_CLEARING_DETAILS = 'SHOW_DETAILS_STEP_CLEARING_DETAILS',
|
|
293
|
-
SHOW_CVC_EDIT = 'SHOW_CVC_EDIT'
|
|
294
|
-
DISMISS = 'DISMISS'
|
|
301
|
+
SHOW_CVC_EDIT = 'SHOW_CVC_EDIT'
|
|
295
302
|
}
|
|
296
303
|
|
|
297
304
|
export interface PendingWithdrawal {
|