@soltech/fluid-common 1.6.19 → 1.6.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
@@ -134,12 +134,16 @@ export interface PaymentMethod {
134
134
  transactionStatusCheck?: TransactionStatusCheck;
135
135
  finalTransactionResultCheckEnabled?: boolean;
136
136
  encryptionSettings?: EncryptionSettings;
137
+ hostedFields?: HostedFieldsSettings;
137
138
  }
138
139
  export interface EncryptionSettings {
139
140
  encryptionType: EncryptionType;
140
141
  expiryDateEncryptionMode: ExpiryDateEncryptionMode;
141
142
  encryptCardholderName: boolean;
142
143
  }
144
+ export interface HostedFieldsSettings {
145
+ url: string;
146
+ }
143
147
  export declare enum EncryptionType {
144
148
  NO_ENCRYPTION = "NO_ENCRYPTION",
145
149
  RSA_PKCS1 = "RSA_PKCS1",// RSA with PKCS#1 v1.5 padding (jsencrypt default)
@@ -209,16 +213,49 @@ export interface CreditcardTransactionParams extends TransactionParams {
209
213
  expiryYear?: string;
210
214
  expiryDate?: string;
211
215
  }
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 {
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 {
220
254
  [key: string]: string | number | undefined;
221
255
  }
256
+ export interface ApplePayTransactionParams extends TransactionParams {
257
+ token?: string;
258
+ }
222
259
  export interface TransactionOptions {
223
260
  bonusCode?: string;
224
261
  activityId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.6.19",
3
+ "version": "1.6.21",
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
@@ -150,6 +150,7 @@ export interface PaymentMethod {
150
150
  transactionStatusCheck?: TransactionStatusCheck;
151
151
  finalTransactionResultCheckEnabled?: boolean;
152
152
  encryptionSettings?: EncryptionSettings;
153
+ hostedFields?: HostedFieldsSettings;
153
154
  }
154
155
 
155
156
  export interface EncryptionSettings {
@@ -158,6 +159,10 @@ export interface EncryptionSettings {
158
159
  encryptCardholderName: boolean;
159
160
  }
160
161
 
162
+ export interface HostedFieldsSettings {
163
+ url: string;
164
+ }
165
+
161
166
  export enum EncryptionType {
162
167
  NO_ENCRYPTION = 'NO_ENCRYPTION',
163
168
  RSA_PKCS1 = 'RSA_PKCS1', // RSA with PKCS#1 v1.5 padding (jsencrypt default)
@@ -237,17 +242,54 @@ export interface CreditcardTransactionParams extends TransactionParams {
237
242
  expiryDate?: string;
238
243
  }
239
244
 
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 {
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 {
248
286
  [key: string]: string | number | undefined;
249
287
  }
250
288
 
289
+ export interface ApplePayTransactionParams extends TransactionParams {
290
+ token?: string;
291
+ }
292
+
251
293
  export interface TransactionOptions {
252
294
  bonusCode?: string;
253
295
  activityId?: string;