@soltech/fluid-common 1.6.17 → 1.6.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
@@ -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;
@@ -155,7 +139,6 @@ export interface EncryptionSettings {
155
139
  encryptionType: EncryptionType;
156
140
  expiryDateEncryptionMode: ExpiryDateEncryptionMode;
157
141
  encryptCardholderName: boolean;
158
- encryptFullYear: boolean;
159
142
  }
160
143
  export declare enum EncryptionType {
161
144
  NO_ENCRYPTION = "NO_ENCRYPTION",
@@ -226,49 +209,16 @@ export interface CreditcardTransactionParams extends TransactionParams {
226
209
  expiryYear?: string;
227
210
  expiryDate?: string;
228
211
  }
229
- export interface BankTransferTransactionParams extends TransactionParams {
230
- accountName?: string;
231
- accountNumber?: string;
232
- accountType?: string;
233
- bankCode?: string;
234
- bankName?: string;
235
- beneficiaryCity?: string;
236
- beneficiaryCountry?: string;
237
- beneficiaryName?: string;
238
- beneficiaryState?: string;
239
- beneficiaryStreet?: string;
240
- beneficiaryZip?: string;
241
- bic?: string;
242
- branchAddress?: string;
243
- branchCode?: string;
244
- branchName?: string;
245
- clearingNumber?: string;
246
- countryCode?: string;
247
- iban?: string;
248
- nationalId?: string;
249
- documentType?: string;
250
- documentNumber?: string;
251
- }
252
- export interface CryptoTransactionParams extends TransactionParams {
253
- cryptoCurrency?: string;
254
- destinationTag?: string;
255
- walletAddress?: string;
256
- }
257
- export interface EWalletTransactionParams extends TransactionParams {
258
- customerNumber?: string;
259
- email?: string;
260
- mobile?: string;
261
- phoneNumber?: string;
262
- service?: string;
263
- beneficiaryName?: string;
264
- userAccountId?: string;
265
- }
266
- export interface VoucherTransactionParams extends TransactionParams {
212
+ /**
213
+ * Transaction params for any payment method whose payload is keyed dynamically:
214
+ * - CMS-defined input fields (bank transfer, crypto, e-wallet, voucher).
215
+ * - Native flows like Apple Pay where the gateway-bound `token` is the only
216
+ * extra key beyond the base TransactionParams.
217
+ * Field keys typically come from `PaymentMethod.inputFields[].paramName`.
218
+ */
219
+ export interface DynamicTransactionParams extends TransactionParams {
267
220
  [key: string]: string | number | undefined;
268
221
  }
269
- export interface ApplePayTransactionParams extends TransactionParams {
270
- token?: string;
271
- }
272
222
  export interface TransactionOptions {
273
223
  bonusCode?: string;
274
224
  activityId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.6.17",
3
+ "version": "1.6.19",
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;
@@ -174,7 +156,6 @@ export interface EncryptionSettings {
174
156
  encryptionType: EncryptionType;
175
157
  expiryDateEncryptionMode: ExpiryDateEncryptionMode;
176
158
  encryptCardholderName: boolean;
177
- encryptFullYear: boolean;
178
159
  }
179
160
 
180
161
  export enum EncryptionType {
@@ -256,54 +237,17 @@ export interface CreditcardTransactionParams extends TransactionParams {
256
237
  expiryDate?: string;
257
238
  }
258
239
 
259
- export interface BankTransferTransactionParams extends TransactionParams {
260
- accountName?: string;
261
- accountNumber?: string;
262
- accountType?: string;
263
- bankCode?: string;
264
- bankName?: string;
265
- beneficiaryCity?: string;
266
- beneficiaryCountry?: string;
267
- beneficiaryName?: string;
268
- beneficiaryState?: string;
269
- beneficiaryStreet?: string;
270
- beneficiaryZip?: string;
271
- bic?: string;
272
- branchAddress?: string;
273
- branchCode?: string;
274
- branchName?: string;
275
- clearingNumber?: string;
276
- countryCode?: string;
277
- iban?: string;
278
- nationalId?: string;
279
- documentType?: string;
280
- documentNumber?: string;
281
- }
282
-
283
- export interface CryptoTransactionParams extends TransactionParams {
284
- cryptoCurrency?: string;
285
- destinationTag?: string;
286
- walletAddress?: string;
287
- }
288
-
289
- export interface EWalletTransactionParams extends TransactionParams {
290
- customerNumber?: string;
291
- email?: string;
292
- mobile?: string;
293
- phoneNumber?: string;
294
- service?: string;
295
- beneficiaryName?: string;
296
- userAccountId?: string;
297
- }
298
-
299
- export interface VoucherTransactionParams extends TransactionParams {
240
+ /**
241
+ * Transaction params for any payment method whose payload is keyed dynamically:
242
+ * - CMS-defined input fields (bank transfer, crypto, e-wallet, voucher).
243
+ * - Native flows like Apple Pay where the gateway-bound `token` is the only
244
+ * extra key beyond the base TransactionParams.
245
+ * Field keys typically come from `PaymentMethod.inputFields[].paramName`.
246
+ */
247
+ export interface DynamicTransactionParams extends TransactionParams {
300
248
  [key: string]: string | number | undefined;
301
249
  }
302
250
 
303
- export interface ApplePayTransactionParams extends TransactionParams {
304
- token?: string;
305
- }
306
-
307
251
  export interface TransactionOptions {
308
252
  bonusCode?: string;
309
253
  activityId?: string;