@soltech/fluid-common 0.3.19 → 0.3.20

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,12 @@ export interface PaymentMethod {
60
62
  providerType: string;
61
63
  inputFields?: InputField[];
62
64
  }
65
+ export interface PaymentMethodLogo {
66
+ aspectRatio: number;
67
+ height: number;
68
+ url: string;
69
+ width: number;
70
+ }
63
71
  export interface InputField {
64
72
  paramName: string;
65
73
  format: string;
@@ -112,13 +120,9 @@ export interface BankTransferTransactionParams extends TransactionParams {
112
120
  iban?: string;
113
121
  nationalId?: string;
114
122
  }
115
- export interface CryptoTransactionParams extends TransactionParams {
116
- cryptoCurrency: string;
117
- }
118
- export interface EWalletTransactionParams extends TransactionParams {
119
- customerNumber?: string;
123
+ export interface DigitalWalletTransactionParams extends TransactionParams {
120
124
  email?: string;
121
- service?: string;
125
+ phoneNumber?: string;
122
126
  }
123
127
  export interface TransactionOptions {
124
128
  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.20",
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,13 @@ export interface PaymentMethod {
71
73
  inputFields?: InputField[];
72
74
  }
73
75
 
76
+ export interface PaymentMethodLogo {
77
+ aspectRatio: number;
78
+ height: number;
79
+ url: string;
80
+ width: number;
81
+ }
82
+
74
83
  export interface InputField {
75
84
  paramName: string;
76
85
  format: string;
@@ -129,14 +138,9 @@ export interface BankTransferTransactionParams extends TransactionParams {
129
138
  nationalId?: string;
130
139
  }
131
140
 
132
- export interface CryptoTransactionParams extends TransactionParams {
133
- cryptoCurrency: string;
134
- }
135
-
136
- export interface EWalletTransactionParams extends TransactionParams {
137
- customerNumber?: string;
141
+ export interface DigitalWalletTransactionParams extends TransactionParams {
138
142
  email?: string;
139
- service?: string;
143
+ phoneNumber?: string;
140
144
  }
141
145
 
142
146
  export interface TransactionOptions {