@soltech/fluid-common 0.3.19 → 0.3.21

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,7 +16,9 @@ export declare enum PaymentType {
16
16
  BANK_TRANSFER = "BankTransfer",
17
17
  CREDIT_CARD = "CreditCard",
18
18
  CRYPTO = "Crypto",
19
- EWALLET = "EWallet",
19
+ DIGITAL_WALLET = "DigitalWallet",
20
+ PREPAID_CARD = "PrepaidCard",
21
+ VOUCHER = "Voucher",
20
22
  WEBREDIRECT = "WebRedirect"
21
23
  }
22
24
  export interface WalletRequestBody {
@@ -51,8 +53,8 @@ export interface PaymentMethod {
51
53
  name: string;
52
54
  description: string;
53
55
  termsAndConditions: string;
54
- logo: string;
55
- logoLight?: string;
56
+ logo: PaymentMethodLogo;
57
+ logoLight?: PaymentMethodLogo;
56
58
  minAmount: number;
57
59
  maxAmount: number;
58
60
  info: string;
@@ -60,6 +62,11 @@ export interface PaymentMethod {
60
62
  providerType: string;
61
63
  inputFields?: InputField[];
62
64
  }
65
+ export interface PaymentMethodLogo {
66
+ height: number;
67
+ url: string;
68
+ width: number;
69
+ }
63
70
  export interface InputField {
64
71
  paramName: string;
65
72
  format: string;
@@ -112,13 +119,9 @@ export interface BankTransferTransactionParams extends TransactionParams {
112
119
  iban?: string;
113
120
  nationalId?: string;
114
121
  }
115
- export interface CryptoTransactionParams extends TransactionParams {
116
- cryptoCurrency: string;
117
- }
118
- export interface EWalletTransactionParams extends TransactionParams {
119
- customerNumber?: string;
122
+ export interface DigitalWalletTransactionParams extends TransactionParams {
120
123
  email?: string;
121
- service?: string;
124
+ phoneNumber?: string;
122
125
  }
123
126
  export interface TransactionOptions {
124
127
  bonusCode?: string;
package/lib/index.js CHANGED
@@ -20,7 +20,9 @@ export var PaymentType;
20
20
  PaymentType["BANK_TRANSFER"] = "BankTransfer";
21
21
  PaymentType["CREDIT_CARD"] = "CreditCard";
22
22
  PaymentType["CRYPTO"] = "Crypto";
23
- PaymentType["EWALLET"] = "EWallet";
23
+ PaymentType["DIGITAL_WALLET"] = "DigitalWallet";
24
+ PaymentType["PREPAID_CARD"] = "PrepaidCard";
25
+ PaymentType["VOUCHER"] = "Voucher";
24
26
  PaymentType["WEBREDIRECT"] = "WebRedirect";
25
27
  })(PaymentType || (PaymentType = {}));
26
28
  export var TransactionState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.3.19",
3
+ "version": "0.3.21",
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,7 +20,9 @@ export enum PaymentType {
20
20
  BANK_TRANSFER = 'BankTransfer',
21
21
  CREDIT_CARD = 'CreditCard',
22
22
  CRYPTO = 'Crypto',
23
- EWALLET = 'EWallet',
23
+ DIGITAL_WALLET = 'DigitalWallet',
24
+ PREPAID_CARD = 'PrepaidCard',
25
+ VOUCHER = 'Voucher',
24
26
  WEBREDIRECT = 'WebRedirect'
25
27
  }
26
28
 
@@ -61,8 +63,8 @@ export interface PaymentMethod {
61
63
  name: string;
62
64
  description: string;
63
65
  termsAndConditions: string;
64
- logo: string;
65
- logoLight?: string;
66
+ logo: PaymentMethodLogo;
67
+ logoLight?: PaymentMethodLogo;
66
68
  minAmount: number;
67
69
  maxAmount: number;
68
70
  info: string;
@@ -71,6 +73,12 @@ export interface PaymentMethod {
71
73
  inputFields?: InputField[];
72
74
  }
73
75
 
76
+ export interface PaymentMethodLogo {
77
+ height: number;
78
+ url: string;
79
+ width: number;
80
+ }
81
+
74
82
  export interface InputField {
75
83
  paramName: string;
76
84
  format: string;
@@ -129,14 +137,9 @@ export interface BankTransferTransactionParams extends TransactionParams {
129
137
  nationalId?: string;
130
138
  }
131
139
 
132
- export interface CryptoTransactionParams extends TransactionParams {
133
- cryptoCurrency: string;
134
- }
135
-
136
- export interface EWalletTransactionParams extends TransactionParams {
137
- customerNumber?: string;
140
+ export interface DigitalWalletTransactionParams extends TransactionParams {
138
141
  email?: string;
139
- service?: string;
142
+ phoneNumber?: string;
140
143
  }
141
144
 
142
145
  export interface TransactionOptions {