@soltech/fluid-common 0.4.40 → 0.4.41

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 CHANGED
@@ -63,6 +63,11 @@ export interface PaymentMethod {
63
63
  inputFields?: InputField[];
64
64
  bonusCodes?: string[];
65
65
  instructions?: string;
66
+ fees: PaymentMethodFees;
67
+ }
68
+ export interface PaymentMethodFees {
69
+ fixedAmount?: string;
70
+ percentage?: string;
66
71
  }
67
72
  export interface PaymentMethodLogo {
68
73
  height: number;
@@ -184,10 +189,7 @@ export declare enum WithdrawalState {
184
189
  }
185
190
  export interface AvailableBonusWithPaymentMethods {
186
191
  code: string;
187
- paymentMethodFilter?: {
188
- applyTo?: BonusPaymentMethod[];
189
- excludeFrom?: BonusPaymentMethod[];
190
- };
192
+ paymentMethodFilter?: BonusPaymentMethod[];
191
193
  }
192
194
  export interface BonusPaymentMethod {
193
195
  providerType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.4.40",
3
+ "version": "0.4.41",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend and API commons",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  export enum Integration {
3
2
  LEFT = 'LEFT',
4
3
  RIGHT = 'RIGHT',
@@ -74,6 +73,12 @@ export interface PaymentMethod {
74
73
  inputFields?: InputField[];
75
74
  bonusCodes?: string[];
76
75
  instructions?: string;
76
+ fees: PaymentMethodFees;
77
+ }
78
+
79
+ export interface PaymentMethodFees {
80
+ fixedAmount?: string;
81
+ percentage?: string;
77
82
  }
78
83
 
79
84
  export interface PaymentMethodLogo {
@@ -212,11 +217,8 @@ export enum WithdrawalState {
212
217
  }
213
218
 
214
219
  export interface AvailableBonusWithPaymentMethods {
215
- code: string;
216
- paymentMethodFilter?: {
217
- applyTo?: BonusPaymentMethod[];
218
- excludeFrom?: BonusPaymentMethod[];
219
- }
220
+ code: string;
221
+ paymentMethodFilter?: BonusPaymentMethod[];
220
222
  }
221
223
 
222
224
  export interface BonusPaymentMethod {