@soltech/fluid-common 1.0.5 → 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 -7
- package/lib/index.js +6 -0
- package/package.json +1 -1
- package/src/index.ts +9 -7
package/lib/index.d.ts
CHANGED
|
@@ -61,10 +61,7 @@ export interface WalletConfig {
|
|
|
61
61
|
suggestedDepositAmounts: number[];
|
|
62
62
|
theme: Record<string, string>;
|
|
63
63
|
transactionToggleDisplayed: boolean;
|
|
64
|
-
|
|
65
|
-
enforceUserToAnswer: boolean;
|
|
66
|
-
allowedNumberOfPendingWithdrawalsBeforeEnforcing: number;
|
|
67
|
-
};
|
|
64
|
+
transactionStatusCheck?: TransactionStatusCheck;
|
|
68
65
|
}
|
|
69
66
|
export interface Promotion {
|
|
70
67
|
title: string;
|
|
@@ -98,7 +95,6 @@ export interface AllPaymentMethodsByTransactionType {
|
|
|
98
95
|
export interface PaymentMethod {
|
|
99
96
|
id: string;
|
|
100
97
|
name: string;
|
|
101
|
-
paymentGatewayId: string;
|
|
102
98
|
description: string;
|
|
103
99
|
termsAndConditions: string;
|
|
104
100
|
logo: PaymentMethodLogo;
|
|
@@ -107,6 +103,7 @@ export interface PaymentMethod {
|
|
|
107
103
|
maxAmount: number;
|
|
108
104
|
info: string;
|
|
109
105
|
paymentType: PaymentType;
|
|
106
|
+
providerType: string;
|
|
110
107
|
inputFields?: InputField[];
|
|
111
108
|
bonusCodes?: string[];
|
|
112
109
|
instructions?: string;
|
|
@@ -116,7 +113,12 @@ export interface PaymentMethod {
|
|
|
116
113
|
depositHandledByHostSite?: boolean;
|
|
117
114
|
withdrawalHandledByHostSite?: boolean;
|
|
118
115
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
119
|
-
|
|
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"
|
|
120
122
|
}
|
|
121
123
|
export type PaymentMethodFees = {
|
|
122
124
|
fixed?: number;
|
|
@@ -269,7 +271,6 @@ export interface PendingWithdrawal {
|
|
|
269
271
|
providerType: string;
|
|
270
272
|
state: WithdrawalState;
|
|
271
273
|
transactionId: string;
|
|
272
|
-
paymentGatewayId: string;
|
|
273
274
|
}
|
|
274
275
|
export declare enum WithdrawalState {
|
|
275
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,10 +68,7 @@ export interface WalletConfig {
|
|
|
68
68
|
suggestedDepositAmounts: number[];
|
|
69
69
|
theme: Record<string, string>;
|
|
70
70
|
transactionToggleDisplayed: boolean;
|
|
71
|
-
|
|
72
|
-
enforceUserToAnswer: boolean;
|
|
73
|
-
allowedNumberOfPendingWithdrawalsBeforeEnforcing: number;
|
|
74
|
-
}
|
|
71
|
+
transactionStatusCheck?: TransactionStatusCheck;
|
|
75
72
|
}
|
|
76
73
|
|
|
77
74
|
export interface Promotion {
|
|
@@ -112,7 +109,6 @@ export interface AllPaymentMethodsByTransactionType {
|
|
|
112
109
|
export interface PaymentMethod {
|
|
113
110
|
id: string;
|
|
114
111
|
name: string;
|
|
115
|
-
paymentGatewayId: string;
|
|
116
112
|
description: string;
|
|
117
113
|
termsAndConditions: string;
|
|
118
114
|
logo: PaymentMethodLogo;
|
|
@@ -121,6 +117,7 @@ export interface PaymentMethod {
|
|
|
121
117
|
maxAmount: number;
|
|
122
118
|
info: string;
|
|
123
119
|
paymentType: PaymentType;
|
|
120
|
+
providerType: string;
|
|
124
121
|
inputFields?: InputField[];
|
|
125
122
|
bonusCodes?: string[];
|
|
126
123
|
instructions?: string;
|
|
@@ -130,7 +127,13 @@ export interface PaymentMethod {
|
|
|
130
127
|
depositHandledByHostSite?: boolean;
|
|
131
128
|
withdrawalHandledByHostSite?: boolean;
|
|
132
129
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
133
|
-
|
|
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)
|
|
134
137
|
}
|
|
135
138
|
|
|
136
139
|
export type PaymentMethodFees = {
|
|
@@ -303,7 +306,6 @@ export interface PendingWithdrawal {
|
|
|
303
306
|
providerType: string;
|
|
304
307
|
state: WithdrawalState;
|
|
305
308
|
transactionId: string;
|
|
306
|
-
paymentGatewayId: string;
|
|
307
309
|
}
|
|
308
310
|
|
|
309
311
|
export enum WithdrawalState {
|