@soltech/fluid-common 0.4.41 → 0.4.42
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 -4
- package/package.json +2 -1
- package/src/index.ts +8 -5
package/lib/index.d.ts
CHANGED
|
@@ -63,11 +63,11 @@ export interface PaymentMethod {
|
|
|
63
63
|
inputFields?: InputField[];
|
|
64
64
|
bonusCodes?: string[];
|
|
65
65
|
instructions?: string;
|
|
66
|
-
fees
|
|
66
|
+
fees?: PaymentMethodFees;
|
|
67
67
|
}
|
|
68
68
|
export interface PaymentMethodFees {
|
|
69
|
-
fixedAmount?:
|
|
70
|
-
percentage?:
|
|
69
|
+
fixedAmount?: number;
|
|
70
|
+
percentage?: number;
|
|
71
71
|
}
|
|
72
72
|
export interface PaymentMethodLogo {
|
|
73
73
|
height: number;
|
|
@@ -189,7 +189,10 @@ export declare enum WithdrawalState {
|
|
|
189
189
|
}
|
|
190
190
|
export interface AvailableBonusWithPaymentMethods {
|
|
191
191
|
code: string;
|
|
192
|
-
paymentMethodFilter?:
|
|
192
|
+
paymentMethodFilter?: {
|
|
193
|
+
applyTo?: BonusPaymentMethod[];
|
|
194
|
+
excludeFrom?: BonusPaymentMethod[];
|
|
195
|
+
};
|
|
193
196
|
}
|
|
194
197
|
export interface BonusPaymentMethod {
|
|
195
198
|
providerType: string;
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soltech/fluid-common",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.42",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Fluid frontend and API commons",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types:": "lib/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
+
"dev": "tsc --watch",
|
|
9
10
|
"build": "tsc",
|
|
10
11
|
"pub": "npm run build && npm publish && git push",
|
|
11
12
|
"lint": "npx eslint .",
|
package/src/index.ts
CHANGED
|
@@ -73,12 +73,12 @@ export interface PaymentMethod {
|
|
|
73
73
|
inputFields?: InputField[];
|
|
74
74
|
bonusCodes?: string[];
|
|
75
75
|
instructions?: string;
|
|
76
|
-
fees
|
|
76
|
+
fees?: PaymentMethodFees;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
export interface PaymentMethodFees {
|
|
80
|
-
fixedAmount?:
|
|
81
|
-
percentage?:
|
|
80
|
+
fixedAmount?: number;
|
|
81
|
+
percentage?: number;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export interface PaymentMethodLogo {
|
|
@@ -217,8 +217,11 @@ export enum WithdrawalState {
|
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
export interface AvailableBonusWithPaymentMethods {
|
|
220
|
-
|
|
221
|
-
paymentMethodFilter?:
|
|
220
|
+
code: string;
|
|
221
|
+
paymentMethodFilter?: {
|
|
222
|
+
applyTo?: BonusPaymentMethod[];
|
|
223
|
+
excludeFrom?: BonusPaymentMethod[];
|
|
224
|
+
}
|
|
222
225
|
}
|
|
223
226
|
|
|
224
227
|
export interface BonusPaymentMethod {
|