@soltech/fluid-common 0.3.25 → 0.4.1

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
@@ -46,6 +46,10 @@ export interface AllPaymentMethods {
46
46
  recentPaymentMethods: RecentMethod[];
47
47
  paymentMethods: PaymentMethod[];
48
48
  }
49
+ export interface AllPaymentMethodsByTransactionType {
50
+ deposit: AllPaymentMethods;
51
+ withdrawal: AllPaymentMethods;
52
+ }
49
53
  export interface PaymentMethod {
50
54
  id: string;
51
55
  name: string;
@@ -123,6 +127,7 @@ export interface CryptoTransactionParams extends TransactionParams {
123
127
  export interface EWalletTransactionParams extends TransactionParams {
124
128
  customerNumber?: string;
125
129
  email?: string;
130
+ phoneNumber?: string;
126
131
  service?: string;
127
132
  }
128
133
  export interface TransactionOptions {
@@ -157,6 +162,7 @@ export interface ProviderTransactionError {
157
162
  }
158
163
  export declare enum ErrorAction {
159
164
  RETURN_STEP1 = "RETURN_STEP1",
165
+ RETURN_STEP1_FORCE_NEW_METHOD = "RETURN_STEP1_FORCE_NEW_METHOD",
160
166
  RETURN_STEP2 = "RETURN_STEP2",
161
167
  BLOCK_DEPOSITS = "BLOCK_DEPOSITS"
162
168
  }
package/lib/index.js CHANGED
@@ -34,6 +34,7 @@ export var TransactionState;
34
34
  export var ErrorAction;
35
35
  (function (ErrorAction) {
36
36
  ErrorAction["RETURN_STEP1"] = "RETURN_STEP1";
37
+ ErrorAction["RETURN_STEP1_FORCE_NEW_METHOD"] = "RETURN_STEP1_FORCE_NEW_METHOD";
37
38
  ErrorAction["RETURN_STEP2"] = "RETURN_STEP2";
38
39
  ErrorAction["BLOCK_DEPOSITS"] = "BLOCK_DEPOSITS";
39
40
  })(ErrorAction || (ErrorAction = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.3.25",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend and API commons",
6
6
  "main": "lib/index.js",
@@ -18,4 +18,4 @@
18
18
  "devDependencies": {
19
19
  "typescript": "^5.0.4"
20
20
  }
21
- }
21
+ }
package/src/index.ts CHANGED
@@ -56,6 +56,11 @@ export interface AllPaymentMethods {
56
56
  paymentMethods: PaymentMethod[];
57
57
  }
58
58
 
59
+ export interface AllPaymentMethodsByTransactionType {
60
+ deposit: AllPaymentMethods,
61
+ withdrawal: AllPaymentMethods
62
+ }
63
+
59
64
  export interface PaymentMethod {
60
65
  id: string;
61
66
  name: string;
@@ -142,6 +147,7 @@ export interface CryptoTransactionParams extends TransactionParams {
142
147
  export interface EWalletTransactionParams extends TransactionParams {
143
148
  customerNumber?: string;
144
149
  email?: string;
150
+ phoneNumber?: string;
145
151
  service?: string;
146
152
  }
147
153
 
@@ -182,6 +188,7 @@ export interface ProviderTransactionError {
182
188
 
183
189
  export enum ErrorAction {
184
190
  RETURN_STEP1 = 'RETURN_STEP1',
191
+ RETURN_STEP1_FORCE_NEW_METHOD = 'RETURN_STEP1_FORCE_NEW_METHOD',
185
192
  RETURN_STEP2 = 'RETURN_STEP2',
186
193
  BLOCK_DEPOSITS = 'BLOCK_DEPOSITS'
187
194
  }