@soltech/fluid-common 1.6.20 → 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,14 +134,16 @@ export interface PaymentMethod {
134
134
  transactionStatusCheck?: TransactionStatusCheck;
135
135
  finalTransactionResultCheckEnabled?: boolean;
136
136
  encryptionSettings?: EncryptionSettings;
137
- hostedFields?: boolean;
138
- hostedFieldsUrl?: string;
137
+ hostedFields?: HostedFieldsSettings;
139
138
  }
140
139
  export interface EncryptionSettings {
141
140
  encryptionType: EncryptionType;
142
141
  expiryDateEncryptionMode: ExpiryDateEncryptionMode;
143
142
  encryptCardholderName: boolean;
144
143
  }
144
+ export interface HostedFieldsSettings {
145
+ url: string;
146
+ }
145
147
  export declare enum EncryptionType {
146
148
  NO_ENCRYPTION = "NO_ENCRYPTION",
147
149
  RSA_PKCS1 = "RSA_PKCS1",// RSA with PKCS#1 v1.5 padding (jsencrypt default)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.6.20",
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,8 +150,7 @@ export interface PaymentMethod {
150
150
  transactionStatusCheck?: TransactionStatusCheck;
151
151
  finalTransactionResultCheckEnabled?: boolean;
152
152
  encryptionSettings?: EncryptionSettings;
153
- hostedFields?: boolean;
154
- hostedFieldsUrl?: string;
153
+ hostedFields?: HostedFieldsSettings;
155
154
  }
156
155
 
157
156
  export interface EncryptionSettings {
@@ -160,6 +159,10 @@ export interface EncryptionSettings {
160
159
  encryptCardholderName: boolean;
161
160
  }
162
161
 
162
+ export interface HostedFieldsSettings {
163
+ url: string;
164
+ }
165
+
163
166
  export enum EncryptionType {
164
167
  NO_ENCRYPTION = 'NO_ENCRYPTION',
165
168
  RSA_PKCS1 = 'RSA_PKCS1', // RSA with PKCS#1 v1.5 padding (jsencrypt default)