@soltech/fluid-common 1.0.4 → 1.0.6
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 -3
- package/lib/index.js +6 -0
- package/package.json +1 -1
- package/src/index.ts +9 -3
package/lib/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export interface WalletConfig {
|
|
|
61
61
|
suggestedDepositAmounts: number[];
|
|
62
62
|
theme: Record<string, string>;
|
|
63
63
|
transactionToggleDisplayed: boolean;
|
|
64
|
+
transactionStatusCheck?: TransactionStatusCheck;
|
|
64
65
|
}
|
|
65
66
|
export interface Promotion {
|
|
66
67
|
title: string;
|
|
@@ -94,7 +95,6 @@ export interface AllPaymentMethodsByTransactionType {
|
|
|
94
95
|
export interface PaymentMethod {
|
|
95
96
|
id: string;
|
|
96
97
|
name: string;
|
|
97
|
-
paymentGatewayId: string;
|
|
98
98
|
description: string;
|
|
99
99
|
termsAndConditions: string;
|
|
100
100
|
logo: PaymentMethodLogo;
|
|
@@ -103,6 +103,7 @@ export interface PaymentMethod {
|
|
|
103
103
|
maxAmount: number;
|
|
104
104
|
info: string;
|
|
105
105
|
paymentType: PaymentType;
|
|
106
|
+
providerType: string;
|
|
106
107
|
inputFields?: InputField[];
|
|
107
108
|
bonusCodes?: string[];
|
|
108
109
|
instructions?: string;
|
|
@@ -112,7 +113,12 @@ export interface PaymentMethod {
|
|
|
112
113
|
depositHandledByHostSite?: boolean;
|
|
113
114
|
withdrawalHandledByHostSite?: boolean;
|
|
114
115
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
115
|
-
|
|
116
|
+
encryptionType?: EncryptionType;
|
|
117
|
+
}
|
|
118
|
+
export declare enum EncryptionType {
|
|
119
|
+
RSA_PKCS1 = "RSA_PKCS1",// RSA with PKCS#1 v1.5 padding (jsencrypt default)
|
|
120
|
+
RSA_OAEP = "RSA_OAEP",// RSA with OAEP padding (crypto/Web Crypto)
|
|
121
|
+
SHA384_SIGNATURE = "SHA384_SIGNATURE"
|
|
116
122
|
}
|
|
117
123
|
export type PaymentMethodFees = {
|
|
118
124
|
fixed?: number;
|
|
@@ -265,7 +271,6 @@ export interface PendingWithdrawal {
|
|
|
265
271
|
providerType: string;
|
|
266
272
|
state: WithdrawalState;
|
|
267
273
|
transactionId: string;
|
|
268
|
-
paymentGatewayId: string;
|
|
269
274
|
}
|
|
270
275
|
export declare enum WithdrawalState {
|
|
271
276
|
REQUESTED = "REQUESTED",
|
package/lib/index.js
CHANGED
|
@@ -24,6 +24,12 @@ 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["RSA_PKCS1"] = "RSA_PKCS1";
|
|
30
|
+
EncryptionType["RSA_OAEP"] = "RSA_OAEP";
|
|
31
|
+
EncryptionType["SHA384_SIGNATURE"] = "SHA384_SIGNATURE"; // SHA-384-based signature (headers)
|
|
32
|
+
})(EncryptionType || (EncryptionType = {}));
|
|
27
33
|
export var RecentMethodMaskedAccountFormat;
|
|
28
34
|
(function (RecentMethodMaskedAccountFormat) {
|
|
29
35
|
RecentMethodMaskedAccountFormat["DEFAULT"] = "Default";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -68,6 +68,7 @@ export interface WalletConfig {
|
|
|
68
68
|
suggestedDepositAmounts: number[];
|
|
69
69
|
theme: Record<string, string>;
|
|
70
70
|
transactionToggleDisplayed: boolean;
|
|
71
|
+
transactionStatusCheck?: TransactionStatusCheck;
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
export interface Promotion {
|
|
@@ -108,7 +109,6 @@ export interface AllPaymentMethodsByTransactionType {
|
|
|
108
109
|
export interface PaymentMethod {
|
|
109
110
|
id: string;
|
|
110
111
|
name: string;
|
|
111
|
-
paymentGatewayId: string;
|
|
112
112
|
description: string;
|
|
113
113
|
termsAndConditions: string;
|
|
114
114
|
logo: PaymentMethodLogo;
|
|
@@ -117,6 +117,7 @@ export interface PaymentMethod {
|
|
|
117
117
|
maxAmount: number;
|
|
118
118
|
info: string;
|
|
119
119
|
paymentType: PaymentType;
|
|
120
|
+
providerType: string;
|
|
120
121
|
inputFields?: InputField[];
|
|
121
122
|
bonusCodes?: string[];
|
|
122
123
|
instructions?: string;
|
|
@@ -126,7 +127,13 @@ export interface PaymentMethod {
|
|
|
126
127
|
depositHandledByHostSite?: boolean;
|
|
127
128
|
withdrawalHandledByHostSite?: boolean;
|
|
128
129
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
129
|
-
|
|
130
|
+
encryptionType?: EncryptionType;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export enum EncryptionType {
|
|
134
|
+
RSA_PKCS1 = 'RSA_PKCS1', // RSA with PKCS#1 v1.5 padding (jsencrypt default)
|
|
135
|
+
RSA_OAEP = 'RSA_OAEP', // RSA with OAEP padding (crypto/Web Crypto)
|
|
136
|
+
SHA384_SIGNATURE = 'SHA384_SIGNATURE' // SHA-384-based signature (headers)
|
|
130
137
|
}
|
|
131
138
|
|
|
132
139
|
export type PaymentMethodFees = {
|
|
@@ -299,7 +306,6 @@ export interface PendingWithdrawal {
|
|
|
299
306
|
providerType: string;
|
|
300
307
|
state: WithdrawalState;
|
|
301
308
|
transactionId: string;
|
|
302
|
-
paymentGatewayId: string;
|
|
303
309
|
}
|
|
304
310
|
|
|
305
311
|
export enum WithdrawalState {
|