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