@soltech/fluid-common 0.3.24 → 0.4.0

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
@@ -16,9 +16,7 @@ export declare enum PaymentType {
16
16
  BANK_TRANSFER = "BankTransfer",
17
17
  CREDIT_CARD = "CreditCard",
18
18
  CRYPTO = "Crypto",
19
- DIGITAL_WALLET = "DigitalWallet",
20
- PREPAID_CARD = "PrepaidCard",
21
- VOUCHER = "Voucher",
19
+ EWALLET = "EWallet",
22
20
  WEBREDIRECT = "WebRedirect"
23
21
  }
24
22
  export interface WalletRequestBody {
@@ -48,6 +46,10 @@ export interface AllPaymentMethods {
48
46
  recentPaymentMethods: RecentMethod[];
49
47
  paymentMethods: PaymentMethod[];
50
48
  }
49
+ export interface AllPaymentMethodsByTransactionType {
50
+ deposit: AllPaymentMethods;
51
+ withdrawal: AllPaymentMethods;
52
+ }
51
53
  export interface PaymentMethod {
52
54
  id: string;
53
55
  name: string;
@@ -78,7 +80,7 @@ export interface InputField {
78
80
  export interface InputFieldOption {
79
81
  name: string;
80
82
  code: string;
81
- logo?: string;
83
+ logo?: PaymentMethodLogo;
82
84
  }
83
85
  export interface RecentMethod extends PaymentMethod {
84
86
  accountId: string;
@@ -122,9 +124,10 @@ export interface BankTransferTransactionParams extends TransactionParams {
122
124
  export interface CryptoTransactionParams extends TransactionParams {
123
125
  cryptoCurrency: string;
124
126
  }
125
- export interface DigitalWalletTransactionParams extends TransactionParams {
127
+ export interface EWalletTransactionParams extends TransactionParams {
128
+ customerNumber?: string;
126
129
  email?: string;
127
- phoneNumber?: string;
130
+ service?: string;
128
131
  }
129
132
  export interface TransactionOptions {
130
133
  bonusCode?: string;
@@ -158,7 +161,6 @@ export interface ProviderTransactionError {
158
161
  }
159
162
  export declare enum ErrorAction {
160
163
  RETURN_STEP1 = "RETURN_STEP1",
161
- RETURN_STEP1_FORCE_NEW_METHOD = "RETURN_STEP1_FORCE_NEW_METHOD",
162
164
  RETURN_STEP2 = "RETURN_STEP2",
163
165
  BLOCK_DEPOSITS = "BLOCK_DEPOSITS"
164
166
  }
package/lib/index.js CHANGED
@@ -20,9 +20,7 @@ export var PaymentType;
20
20
  PaymentType["BANK_TRANSFER"] = "BankTransfer";
21
21
  PaymentType["CREDIT_CARD"] = "CreditCard";
22
22
  PaymentType["CRYPTO"] = "Crypto";
23
- PaymentType["DIGITAL_WALLET"] = "DigitalWallet";
24
- PaymentType["PREPAID_CARD"] = "PrepaidCard";
25
- PaymentType["VOUCHER"] = "Voucher";
23
+ PaymentType["EWALLET"] = "EWallet";
26
24
  PaymentType["WEBREDIRECT"] = "WebRedirect";
27
25
  })(PaymentType || (PaymentType = {}));
28
26
  export var TransactionState;
@@ -36,7 +34,6 @@ export var TransactionState;
36
34
  export var ErrorAction;
37
35
  (function (ErrorAction) {
38
36
  ErrorAction["RETURN_STEP1"] = "RETURN_STEP1";
39
- ErrorAction["RETURN_STEP1_FORCE_NEW_METHOD"] = "RETURN_STEP1_FORCE_NEW_METHOD";
40
37
  ErrorAction["RETURN_STEP2"] = "RETURN_STEP2";
41
38
  ErrorAction["BLOCK_DEPOSITS"] = "BLOCK_DEPOSITS";
42
39
  })(ErrorAction || (ErrorAction = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.3.24",
3
+ "version": "0.4.0",
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
@@ -20,9 +20,7 @@ export enum PaymentType {
20
20
  BANK_TRANSFER = 'BankTransfer',
21
21
  CREDIT_CARD = 'CreditCard',
22
22
  CRYPTO = 'Crypto',
23
- DIGITAL_WALLET = 'DigitalWallet',
24
- PREPAID_CARD = 'PrepaidCard',
25
- VOUCHER = 'Voucher',
23
+ EWALLET = 'EWallet',
26
24
  WEBREDIRECT = 'WebRedirect'
27
25
  }
28
26
 
@@ -58,6 +56,11 @@ export interface AllPaymentMethods {
58
56
  paymentMethods: PaymentMethod[];
59
57
  }
60
58
 
59
+ export interface AllPaymentMethodsByTransactionType {
60
+ deposit: AllPaymentMethods,
61
+ withdrawal: AllPaymentMethods
62
+ }
63
+
61
64
  export interface PaymentMethod {
62
65
  id: string;
63
66
  name: string;
@@ -91,7 +94,7 @@ export interface InputField {
91
94
  export interface InputFieldOption {
92
95
  name: string;
93
96
  code: string;
94
- logo?: string;
97
+ logo?: PaymentMethodLogo;
95
98
  }
96
99
 
97
100
  export interface RecentMethod extends PaymentMethod {
@@ -141,9 +144,10 @@ export interface CryptoTransactionParams extends TransactionParams {
141
144
  cryptoCurrency: string;
142
145
  }
143
146
 
144
- export interface DigitalWalletTransactionParams extends TransactionParams {
147
+ export interface EWalletTransactionParams extends TransactionParams {
148
+ customerNumber?: string;
145
149
  email?: string;
146
- phoneNumber?: string;
150
+ service?: string;
147
151
  }
148
152
 
149
153
  export interface TransactionOptions {
@@ -183,7 +187,6 @@ export interface ProviderTransactionError {
183
187
 
184
188
  export enum ErrorAction {
185
189
  RETURN_STEP1 = 'RETURN_STEP1',
186
- RETURN_STEP1_FORCE_NEW_METHOD = 'RETURN_STEP1_FORCE_NEW_METHOD',
187
190
  RETURN_STEP2 = 'RETURN_STEP2',
188
191
  BLOCK_DEPOSITS = 'BLOCK_DEPOSITS'
189
192
  }