@soltech/fluid-common 1.2.2 → 1.2.4

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
@@ -118,8 +118,11 @@ export interface PaymentMethod {
118
118
  withdrawalInputsShownWhenMethodIsStored: boolean;
119
119
  transactionStatusCheck?: TransactionStatusCheck;
120
120
  finalTransactionResultCheckEnabled?: boolean;
121
+ encryptionSettings?: EncryptionSettings;
122
+ }
123
+ export interface EncryptionSettings {
121
124
  encryptionType: EncryptionType;
122
- encryptCardExpiryDate: boolean;
125
+ expiryDateEncryptionMode: ExpiryDateEncryptionMode;
123
126
  }
124
127
  export declare enum EncryptionType {
125
128
  NO_ENCRYPTION = "NO_ENCRYPTION",
@@ -127,6 +130,11 @@ export declare enum EncryptionType {
127
130
  RSA_OAEP = "RSA_OAEP",// RSA with OAEP padding (crypto/Web Crypto)
128
131
  SHA384_SIGNATURE = "SHA384_SIGNATURE"
129
132
  }
133
+ export declare enum ExpiryDateEncryptionMode {
134
+ NONE = "None",
135
+ SEPARATE_FIELDS = "SeparateFields",
136
+ SINGLE_FIELD = "SingleField"
137
+ }
130
138
  export type PaymentMethodFees = {
131
139
  fixed?: number;
132
140
  percentage?: number;
package/lib/index.js CHANGED
@@ -31,6 +31,12 @@ export var EncryptionType;
31
31
  EncryptionType["RSA_OAEP"] = "RSA_OAEP";
32
32
  EncryptionType["SHA384_SIGNATURE"] = "SHA384_SIGNATURE"; // SHA-384-based signature (headers)
33
33
  })(EncryptionType || (EncryptionType = {}));
34
+ export var ExpiryDateEncryptionMode;
35
+ (function (ExpiryDateEncryptionMode) {
36
+ ExpiryDateEncryptionMode["NONE"] = "None";
37
+ ExpiryDateEncryptionMode["SEPARATE_FIELDS"] = "SeparateFields";
38
+ ExpiryDateEncryptionMode["SINGLE_FIELD"] = "SingleField";
39
+ })(ExpiryDateEncryptionMode || (ExpiryDateEncryptionMode = {}));
34
40
  export var RecentMethodMaskedAccountFormat;
35
41
  (function (RecentMethodMaskedAccountFormat) {
36
42
  RecentMethodMaskedAccountFormat["DEFAULT"] = "Default";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
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
@@ -132,8 +132,12 @@ export interface PaymentMethod {
132
132
  withdrawalInputsShownWhenMethodIsStored: boolean;
133
133
  transactionStatusCheck?: TransactionStatusCheck;
134
134
  finalTransactionResultCheckEnabled?: boolean;
135
+ encryptionSettings?: EncryptionSettings;
136
+ }
137
+
138
+ export interface EncryptionSettings {
135
139
  encryptionType: EncryptionType;
136
- encryptCardExpiryDate: boolean;
140
+ expiryDateEncryptionMode: ExpiryDateEncryptionMode;
137
141
  }
138
142
 
139
143
  export enum EncryptionType {
@@ -143,6 +147,12 @@ export enum EncryptionType {
143
147
  SHA384_SIGNATURE = 'SHA384_SIGNATURE' // SHA-384-based signature (headers)
144
148
  }
145
149
 
150
+ export enum ExpiryDateEncryptionMode {
151
+ NONE = 'None',
152
+ SEPARATE_FIELDS = 'SeparateFields',
153
+ SINGLE_FIELD = 'SingleField'
154
+ }
155
+
146
156
  export type PaymentMethodFees = {
147
157
  fixed?: number;
148
158
  percentage?: number;