@soltech/fluid-common 1.6.21 → 1.6.22

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,8 +39,11 @@ export interface WalletInitParams {
39
39
  operatorId: number;
40
40
  sessionId: string;
41
41
  userId: string | number;
42
+ /** @deprecated Use browserInfo.userAgent instead */
42
43
  userAgent: string;
44
+ /** @deprecated Use browserInfo.viewport instead */
43
45
  viewport: Viewport;
46
+ browserInfo?: BrowserInfo;
44
47
  userData?: UserData;
45
48
  timestamp: string;
46
49
  buildDate: string;
@@ -51,6 +54,19 @@ export interface Viewport {
51
54
  innerWidth: number;
52
55
  innerHeight: number;
53
56
  }
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
+ }
54
70
  export interface WalletConfig {
55
71
  autofillCreditCardName: boolean;
56
72
  balanceDisplayed: boolean;
@@ -134,15 +150,12 @@ export interface PaymentMethod {
134
150
  transactionStatusCheck?: TransactionStatusCheck;
135
151
  finalTransactionResultCheckEnabled?: boolean;
136
152
  encryptionSettings?: EncryptionSettings;
137
- hostedFields?: HostedFieldsSettings;
138
153
  }
139
154
  export interface EncryptionSettings {
140
155
  encryptionType: EncryptionType;
141
156
  expiryDateEncryptionMode: ExpiryDateEncryptionMode;
142
157
  encryptCardholderName: boolean;
143
- }
144
- export interface HostedFieldsSettings {
145
- url: string;
158
+ encryptFullYear: boolean;
146
159
  }
147
160
  export declare enum EncryptionType {
148
161
  NO_ENCRYPTION = "NO_ENCRYPTION",
@@ -213,49 +226,16 @@ export interface CreditcardTransactionParams extends TransactionParams {
213
226
  expiryYear?: string;
214
227
  expiryDate?: string;
215
228
  }
216
- export interface BankTransferTransactionParams extends TransactionParams {
217
- accountName?: string;
218
- accountNumber?: string;
219
- accountType?: string;
220
- bankCode?: string;
221
- bankName?: string;
222
- beneficiaryCity?: string;
223
- beneficiaryCountry?: string;
224
- beneficiaryName?: string;
225
- beneficiaryState?: string;
226
- beneficiaryStreet?: string;
227
- beneficiaryZip?: string;
228
- bic?: string;
229
- branchAddress?: string;
230
- branchCode?: string;
231
- branchName?: string;
232
- clearingNumber?: string;
233
- countryCode?: string;
234
- iban?: string;
235
- nationalId?: string;
236
- documentType?: string;
237
- documentNumber?: string;
238
- }
239
- export interface CryptoTransactionParams extends TransactionParams {
240
- cryptoCurrency?: string;
241
- destinationTag?: string;
242
- walletAddress?: string;
243
- }
244
- export interface EWalletTransactionParams extends TransactionParams {
245
- customerNumber?: string;
246
- email?: string;
247
- mobile?: string;
248
- phoneNumber?: string;
249
- service?: string;
250
- beneficiaryName?: string;
251
- userAccountId?: string;
252
- }
253
- export interface VoucherTransactionParams extends TransactionParams {
229
+ /**
230
+ * Transaction params for any payment method whose payload is keyed dynamically:
231
+ * - CMS-defined input fields (bank transfer, crypto, e-wallet, voucher).
232
+ * - Native flows like Apple Pay where the gateway-bound `token` is the only
233
+ * extra key beyond the base TransactionParams.
234
+ * Field keys typically come from `PaymentMethod.inputFields[].paramName`.
235
+ */
236
+ export interface DynamicTransactionParams extends TransactionParams {
254
237
  [key: string]: string | number | undefined;
255
238
  }
256
- export interface ApplePayTransactionParams extends TransactionParams {
257
- token?: string;
258
- }
259
239
  export interface TransactionOptions {
260
240
  bonusCode?: string;
261
241
  activityId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.6.21",
3
+ "version": "1.6.22",
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,8 +45,11 @@ export interface WalletInitParams {
45
45
  operatorId: number;
46
46
  sessionId: string;
47
47
  userId: string | number;
48
+ /** @deprecated Use browserInfo.userAgent instead */
48
49
  userAgent: string;
50
+ /** @deprecated Use browserInfo.viewport instead */
49
51
  viewport: Viewport;
52
+ browserInfo?: BrowserInfo;
50
53
  userData?: UserData;
51
54
  timestamp: string;
52
55
  buildDate: string;
@@ -59,6 +62,21 @@ export interface Viewport {
59
62
  innerHeight: number;
60
63
  }
61
64
 
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
+
62
80
  export interface WalletConfig {
63
81
  autofillCreditCardName: boolean;
64
82
  balanceDisplayed: boolean;
@@ -150,17 +168,13 @@ export interface PaymentMethod {
150
168
  transactionStatusCheck?: TransactionStatusCheck;
151
169
  finalTransactionResultCheckEnabled?: boolean;
152
170
  encryptionSettings?: EncryptionSettings;
153
- hostedFields?: HostedFieldsSettings;
154
171
  }
155
172
 
156
173
  export interface EncryptionSettings {
157
174
  encryptionType: EncryptionType;
158
175
  expiryDateEncryptionMode: ExpiryDateEncryptionMode;
159
176
  encryptCardholderName: boolean;
160
- }
161
-
162
- export interface HostedFieldsSettings {
163
- url: string;
177
+ encryptFullYear: boolean;
164
178
  }
165
179
 
166
180
  export enum EncryptionType {
@@ -242,54 +256,17 @@ export interface CreditcardTransactionParams extends TransactionParams {
242
256
  expiryDate?: string;
243
257
  }
244
258
 
245
- export interface BankTransferTransactionParams extends TransactionParams {
246
- accountName?: string;
247
- accountNumber?: string;
248
- accountType?: string;
249
- bankCode?: string;
250
- bankName?: string;
251
- beneficiaryCity?: string;
252
- beneficiaryCountry?: string;
253
- beneficiaryName?: string;
254
- beneficiaryState?: string;
255
- beneficiaryStreet?: string;
256
- beneficiaryZip?: string;
257
- bic?: string;
258
- branchAddress?: string;
259
- branchCode?: string;
260
- branchName?: string;
261
- clearingNumber?: string;
262
- countryCode?: string;
263
- iban?: string;
264
- nationalId?: string;
265
- documentType?: string;
266
- documentNumber?: string;
267
- }
268
-
269
- export interface CryptoTransactionParams extends TransactionParams {
270
- cryptoCurrency?: string;
271
- destinationTag?: string;
272
- walletAddress?: string;
273
- }
274
-
275
- export interface EWalletTransactionParams extends TransactionParams {
276
- customerNumber?: string;
277
- email?: string;
278
- mobile?: string;
279
- phoneNumber?: string;
280
- service?: string;
281
- beneficiaryName?: string;
282
- userAccountId?: string;
283
- }
284
-
285
- export interface VoucherTransactionParams extends TransactionParams {
259
+ /**
260
+ * Transaction params for any payment method whose payload is keyed dynamically:
261
+ * - CMS-defined input fields (bank transfer, crypto, e-wallet, voucher).
262
+ * - Native flows like Apple Pay where the gateway-bound `token` is the only
263
+ * extra key beyond the base TransactionParams.
264
+ * Field keys typically come from `PaymentMethod.inputFields[].paramName`.
265
+ */
266
+ export interface DynamicTransactionParams extends TransactionParams {
286
267
  [key: string]: string | number | undefined;
287
268
  }
288
269
 
289
- export interface ApplePayTransactionParams extends TransactionParams {
290
- token?: string;
291
- }
292
-
293
270
  export interface TransactionOptions {
294
271
  bonusCode?: string;
295
272
  activityId?: string;