@soltech/fluid-common 1.6.14 → 1.6.15

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
@@ -39,11 +39,8 @@ export interface WalletInitParams {
39
39
  operatorId: number;
40
40
  sessionId: string;
41
41
  userId: string | number;
42
- /** @deprecated Use browserInfo.userAgent instead */
43
42
  userAgent: string;
44
- /** @deprecated Use browserInfo.viewport instead */
45
43
  viewport: Viewport;
46
- browserInfo?: BrowserInfo;
47
44
  userData?: UserData;
48
45
  timestamp: string;
49
46
  buildDate: string;
@@ -54,19 +51,6 @@ export interface Viewport {
54
51
  innerWidth: number;
55
52
  innerHeight: number;
56
53
  }
57
- export interface ScreenDimensions {
58
- height: number;
59
- width: number;
60
- }
61
- export interface BrowserInfo {
62
- userAgent: string;
63
- acceptHeader: string;
64
- javaEnabled: boolean;
65
- colorDepth: number;
66
- screen: ScreenDimensions;
67
- viewport: Viewport;
68
- timezoneOffset: number;
69
- }
70
54
  export interface WalletConfig {
71
55
  autofillCreditCardName: boolean;
72
56
  balanceDisplayed: boolean;
@@ -154,7 +138,6 @@ export interface EncryptionSettings {
154
138
  encryptionType: EncryptionType;
155
139
  expiryDateEncryptionMode: ExpiryDateEncryptionMode;
156
140
  encryptCardholderName: boolean;
157
- encryptFullYear: boolean;
158
141
  }
159
142
  export declare enum EncryptionType {
160
143
  NO_ENCRYPTION = "NO_ENCRYPTION",
@@ -225,44 +208,12 @@ export interface CreditcardTransactionParams extends TransactionParams {
225
208
  expiryYear?: string;
226
209
  expiryDate?: string;
227
210
  }
228
- export interface BankTransferTransactionParams extends TransactionParams {
229
- accountName?: string;
230
- accountNumber?: string;
231
- accountType?: string;
232
- bankCode?: string;
233
- bankName?: string;
234
- beneficiaryCity?: string;
235
- beneficiaryCountry?: string;
236
- beneficiaryName?: string;
237
- beneficiaryState?: string;
238
- beneficiaryStreet?: string;
239
- beneficiaryZip?: string;
240
- bic?: string;
241
- branchAddress?: string;
242
- branchCode?: string;
243
- branchName?: string;
244
- clearingNumber?: string;
245
- countryCode?: string;
246
- iban?: string;
247
- nationalId?: string;
248
- documentType?: string;
249
- documentNumber?: string;
250
- }
251
- export interface CryptoTransactionParams extends TransactionParams {
252
- cryptoCurrency?: string;
253
- destinationTag?: string;
254
- walletAddress?: string;
255
- }
256
- export interface EWalletTransactionParams extends TransactionParams {
257
- customerNumber?: string;
258
- email?: string;
259
- mobile?: string;
260
- phoneNumber?: string;
261
- service?: string;
262
- beneficiaryName?: string;
263
- userAccountId?: string;
264
- }
265
- export interface VoucherTransactionParams extends TransactionParams {
211
+ /**
212
+ * Transaction params for any payment method whose input fields are defined
213
+ * dynamically in CMS (bank transfer, crypto, e-wallet, voucher, etc.). Field
214
+ * keys come from `PaymentMethod.inputFields[].paramName`.
215
+ */
216
+ export interface DynamicTransactionParams extends TransactionParams {
266
217
  [key: string]: string | number | undefined;
267
218
  }
268
219
  export interface ApplePayTransactionParams extends TransactionParams {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.6.14",
3
+ "version": "1.6.15",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend, API and AI common interfaces & enums",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -45,11 +45,8 @@ export interface WalletInitParams {
45
45
  operatorId: number;
46
46
  sessionId: string;
47
47
  userId: string | number;
48
- /** @deprecated Use browserInfo.userAgent instead */
49
48
  userAgent: string;
50
- /** @deprecated Use browserInfo.viewport instead */
51
49
  viewport: Viewport;
52
- browserInfo?: BrowserInfo;
53
50
  userData?: UserData;
54
51
  timestamp: string;
55
52
  buildDate: string;
@@ -62,21 +59,6 @@ export interface Viewport {
62
59
  innerHeight: number;
63
60
  }
64
61
 
65
- export interface ScreenDimensions {
66
- height: number;
67
- width: number;
68
- }
69
-
70
- export interface BrowserInfo {
71
- userAgent: string;
72
- acceptHeader: string;
73
- javaEnabled: boolean;
74
- colorDepth: number;
75
- screen: ScreenDimensions;
76
- viewport: Viewport;
77
- timezoneOffset: number;
78
- }
79
-
80
62
  export interface WalletConfig {
81
63
  autofillCreditCardName: boolean;
82
64
  balanceDisplayed: boolean;
@@ -172,7 +154,6 @@ export interface EncryptionSettings {
172
154
  encryptionType: EncryptionType;
173
155
  expiryDateEncryptionMode: ExpiryDateEncryptionMode;
174
156
  encryptCardholderName: boolean;
175
- encryptFullYear: boolean;
176
157
  }
177
158
 
178
159
  export enum EncryptionType {
@@ -254,47 +235,12 @@ export interface CreditcardTransactionParams extends TransactionParams {
254
235
  expiryDate?: string;
255
236
  }
256
237
 
257
- export interface BankTransferTransactionParams extends TransactionParams {
258
- accountName?: string;
259
- accountNumber?: string;
260
- accountType?: string;
261
- bankCode?: string;
262
- bankName?: string;
263
- beneficiaryCity?: string;
264
- beneficiaryCountry?: string;
265
- beneficiaryName?: string;
266
- beneficiaryState?: string;
267
- beneficiaryStreet?: string;
268
- beneficiaryZip?: string;
269
- bic?: string;
270
- branchAddress?: string;
271
- branchCode?: string;
272
- branchName?: string;
273
- clearingNumber?: string;
274
- countryCode?: string;
275
- iban?: string;
276
- nationalId?: string;
277
- documentType?: string;
278
- documentNumber?: string;
279
- }
280
-
281
- export interface CryptoTransactionParams extends TransactionParams {
282
- cryptoCurrency?: string;
283
- destinationTag?: string;
284
- walletAddress?: string;
285
- }
286
-
287
- export interface EWalletTransactionParams extends TransactionParams {
288
- customerNumber?: string;
289
- email?: string;
290
- mobile?: string;
291
- phoneNumber?: string;
292
- service?: string;
293
- beneficiaryName?: string;
294
- userAccountId?: string;
295
- }
296
-
297
- export interface VoucherTransactionParams extends TransactionParams {
238
+ /**
239
+ * Transaction params for any payment method whose input fields are defined
240
+ * dynamically in CMS (bank transfer, crypto, e-wallet, voucher, etc.). Field
241
+ * keys come from `PaymentMethod.inputFields[].paramName`.
242
+ */
243
+ export interface DynamicTransactionParams extends TransactionParams {
298
244
  [key: string]: string | number | undefined;
299
245
  }
300
246