@soltech/fluid-common 0.3.17 → 0.3.19

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 {
@@ -54,7 +52,7 @@ export interface PaymentMethod {
54
52
  description: string;
55
53
  termsAndConditions: string;
56
54
  logo: string;
57
- logoLight: string;
55
+ logoLight?: string;
58
56
  minAmount: number;
59
57
  maxAmount: number;
60
58
  info: string;
@@ -114,9 +112,13 @@ export interface BankTransferTransactionParams extends TransactionParams {
114
112
  iban?: string;
115
113
  nationalId?: string;
116
114
  }
117
- export interface DigitalWalletTransactionParams extends TransactionParams {
115
+ export interface CryptoTransactionParams extends TransactionParams {
116
+ cryptoCurrency: string;
117
+ }
118
+ export interface EWalletTransactionParams extends TransactionParams {
119
+ customerNumber?: string;
118
120
  email?: string;
119
- phoneNumber?: string;
121
+ service?: string;
120
122
  }
121
123
  export interface TransactionOptions {
122
124
  bonusCode?: string;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.3.17",
3
+ "version": "0.3.19",
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
 
@@ -64,7 +62,7 @@ export interface PaymentMethod {
64
62
  description: string;
65
63
  termsAndConditions: string;
66
64
  logo: string;
67
- logoLight: string;
65
+ logoLight?: string;
68
66
  minAmount: number;
69
67
  maxAmount: number;
70
68
  info: string;
@@ -131,9 +129,14 @@ export interface BankTransferTransactionParams extends TransactionParams {
131
129
  nationalId?: string;
132
130
  }
133
131
 
134
- export interface DigitalWalletTransactionParams extends TransactionParams {
132
+ export interface CryptoTransactionParams extends TransactionParams {
133
+ cryptoCurrency: string;
134
+ }
135
+
136
+ export interface EWalletTransactionParams extends TransactionParams {
137
+ customerNumber?: string;
135
138
  email?: string;
136
- phoneNumber?: string;
139
+ service?: string;
137
140
  }
138
141
 
139
142
  export interface TransactionOptions {