@soltech/fluid-common 1.0.13 → 1.0.15
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 -1
- package/lib/index.js +7 -0
- package/package.json +1 -1
- package/src/index.ts +9 -1
package/lib/index.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export interface PaymentMethod {
|
|
|
106
106
|
minAmount: number;
|
|
107
107
|
maxAmount: number;
|
|
108
108
|
info: string;
|
|
109
|
-
paymentType
|
|
109
|
+
paymentType?: PaymentType;
|
|
110
110
|
inputFields?: InputField[];
|
|
111
111
|
bonusCodes?: string[];
|
|
112
112
|
instructions?: string;
|
|
@@ -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;
|
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";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -120,7 +120,7 @@ export interface PaymentMethod {
|
|
|
120
120
|
minAmount: number;
|
|
121
121
|
maxAmount: number;
|
|
122
122
|
info: string;
|
|
123
|
-
paymentType
|
|
123
|
+
paymentType?: PaymentType;
|
|
124
124
|
inputFields?: InputField[];
|
|
125
125
|
bonusCodes?: string[];
|
|
126
126
|
instructions?: string;
|
|
@@ -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 = {
|