@soltech/fluid-common 1.6.18 → 1.6.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
@@ -134,6 +134,8 @@ export interface PaymentMethod {
134
134
  transactionStatusCheck?: TransactionStatusCheck;
135
135
  finalTransactionResultCheckEnabled?: boolean;
136
136
  encryptionSettings?: EncryptionSettings;
137
+ hostedFields?: boolean;
138
+ hostedFieldsUrl?: string;
137
139
  }
138
140
  export interface EncryptionSettings {
139
141
  encryptionType: EncryptionType;
@@ -209,12 +211,44 @@ export interface CreditcardTransactionParams extends TransactionParams {
209
211
  expiryYear?: string;
210
212
  expiryDate?: string;
211
213
  }
212
- /**
213
- * Transaction params for any payment method whose input fields are defined
214
- * dynamically in CMS (bank transfer, crypto, e-wallet, voucher, etc.). Field
215
- * keys come from `PaymentMethod.inputFields[].paramName`.
216
- */
217
- export interface DynamicTransactionParams extends TransactionParams {
214
+ export interface BankTransferTransactionParams extends TransactionParams {
215
+ accountName?: string;
216
+ accountNumber?: string;
217
+ accountType?: string;
218
+ bankCode?: string;
219
+ bankName?: string;
220
+ beneficiaryCity?: string;
221
+ beneficiaryCountry?: string;
222
+ beneficiaryName?: string;
223
+ beneficiaryState?: string;
224
+ beneficiaryStreet?: string;
225
+ beneficiaryZip?: string;
226
+ bic?: string;
227
+ branchAddress?: string;
228
+ branchCode?: string;
229
+ branchName?: string;
230
+ clearingNumber?: string;
231
+ countryCode?: string;
232
+ iban?: string;
233
+ nationalId?: string;
234
+ documentType?: string;
235
+ documentNumber?: string;
236
+ }
237
+ export interface CryptoTransactionParams extends TransactionParams {
238
+ cryptoCurrency?: string;
239
+ destinationTag?: string;
240
+ walletAddress?: string;
241
+ }
242
+ export interface EWalletTransactionParams extends TransactionParams {
243
+ customerNumber?: string;
244
+ email?: string;
245
+ mobile?: string;
246
+ phoneNumber?: string;
247
+ service?: string;
248
+ beneficiaryName?: string;
249
+ userAccountId?: string;
250
+ }
251
+ export interface VoucherTransactionParams extends TransactionParams {
218
252
  [key: string]: string | number | undefined;
219
253
  }
220
254
  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.18",
3
+ "version": "1.6.20",
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,8 @@ export interface PaymentMethod {
150
150
  transactionStatusCheck?: TransactionStatusCheck;
151
151
  finalTransactionResultCheckEnabled?: boolean;
152
152
  encryptionSettings?: EncryptionSettings;
153
+ hostedFields?: boolean;
154
+ hostedFieldsUrl?: string;
153
155
  }
154
156
 
155
157
  export interface EncryptionSettings {
@@ -237,12 +239,47 @@ export interface CreditcardTransactionParams extends TransactionParams {
237
239
  expiryDate?: string;
238
240
  }
239
241
 
240
- /**
241
- * Transaction params for any payment method whose input fields are defined
242
- * dynamically in CMS (bank transfer, crypto, e-wallet, voucher, etc.). Field
243
- * keys come from `PaymentMethod.inputFields[].paramName`.
244
- */
245
- export interface DynamicTransactionParams extends TransactionParams {
242
+ export interface BankTransferTransactionParams extends TransactionParams {
243
+ accountName?: string;
244
+ accountNumber?: string;
245
+ accountType?: string;
246
+ bankCode?: string;
247
+ bankName?: string;
248
+ beneficiaryCity?: string;
249
+ beneficiaryCountry?: string;
250
+ beneficiaryName?: string;
251
+ beneficiaryState?: string;
252
+ beneficiaryStreet?: string;
253
+ beneficiaryZip?: string;
254
+ bic?: string;
255
+ branchAddress?: string;
256
+ branchCode?: string;
257
+ branchName?: string;
258
+ clearingNumber?: string;
259
+ countryCode?: string;
260
+ iban?: string;
261
+ nationalId?: string;
262
+ documentType?: string;
263
+ documentNumber?: string;
264
+ }
265
+
266
+ export interface CryptoTransactionParams extends TransactionParams {
267
+ cryptoCurrency?: string;
268
+ destinationTag?: string;
269
+ walletAddress?: string;
270
+ }
271
+
272
+ export interface EWalletTransactionParams extends TransactionParams {
273
+ customerNumber?: string;
274
+ email?: string;
275
+ mobile?: string;
276
+ phoneNumber?: string;
277
+ service?: string;
278
+ beneficiaryName?: string;
279
+ userAccountId?: string;
280
+ }
281
+
282
+ export interface VoucherTransactionParams extends TransactionParams {
246
283
  [key: string]: string | number | undefined;
247
284
  }
248
285