@soltech/fluid-common 1.0.11 → 1.0.13

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
@@ -117,13 +117,6 @@ export interface PaymentMethod {
117
117
  withdrawalHandledByHostSite?: boolean;
118
118
  withdrawalInputsShownWhenMethodIsStored: boolean;
119
119
  transactionStatusCheck?: TransactionStatusCheck;
120
- encryptionType?: EncryptionType;
121
- }
122
- export declare enum EncryptionType {
123
- NO_ENCRYPTION = "NO_ENCRYPTION",
124
- RSA_PKCS1 = "RSA_PKCS1",// RSA with PKCS#1 v1.5 padding (jsencrypt default)
125
- RSA_OAEP = "RSA_OAEP",// RSA with OAEP padding (crypto/Web Crypto)
126
- SHA384_SIGNATURE = "SHA384_SIGNATURE"
127
120
  }
128
121
  export type PaymentMethodFees = {
129
122
  fixed?: number;
@@ -162,9 +155,9 @@ export declare enum RecentMethodMaskedAccountFormat {
162
155
  export interface RecentMethod extends PaymentMethod {
163
156
  accountId: string;
164
157
  maskedAccount: string;
165
- lastSuccess: string;
166
- expiryDate: string;
167
- maskedAccountFormat: RecentMethodMaskedAccountFormat;
158
+ lastSuccess?: string;
159
+ expiryDate?: string;
160
+ maskedAccountFormat?: RecentMethodMaskedAccountFormat;
168
161
  }
169
162
  export interface TransactionParams {
170
163
  accountId?: string;
package/lib/index.js CHANGED
@@ -24,13 +24,6 @@ export var PaymentType;
24
24
  PaymentType["CRYPTO"] = "Crypto";
25
25
  PaymentType["EWALLET"] = "EWallet";
26
26
  })(PaymentType || (PaymentType = {}));
27
- export var EncryptionType;
28
- (function (EncryptionType) {
29
- EncryptionType["NO_ENCRYPTION"] = "NO_ENCRYPTION";
30
- EncryptionType["RSA_PKCS1"] = "RSA_PKCS1";
31
- EncryptionType["RSA_OAEP"] = "RSA_OAEP";
32
- EncryptionType["SHA384_SIGNATURE"] = "SHA384_SIGNATURE"; // SHA-384-based signature (headers)
33
- })(EncryptionType || (EncryptionType = {}));
34
27
  export var RecentMethodMaskedAccountFormat;
35
28
  (function (RecentMethodMaskedAccountFormat) {
36
29
  RecentMethodMaskedAccountFormat["DEFAULT"] = "Default";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
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
@@ -131,14 +131,6 @@ export interface PaymentMethod {
131
131
  withdrawalHandledByHostSite?: boolean;
132
132
  withdrawalInputsShownWhenMethodIsStored: boolean;
133
133
  transactionStatusCheck?: TransactionStatusCheck;
134
- encryptionType?: EncryptionType;
135
- }
136
-
137
- export enum EncryptionType {
138
- NO_ENCRYPTION = 'NO_ENCRYPTION',
139
- RSA_PKCS1 = 'RSA_PKCS1', // RSA with PKCS#1 v1.5 padding (jsencrypt default)
140
- RSA_OAEP = 'RSA_OAEP', // RSA with OAEP padding (crypto/Web Crypto)
141
- SHA384_SIGNATURE = 'SHA384_SIGNATURE' // SHA-384-based signature (headers)
142
134
  }
143
135
 
144
136
  export type PaymentMethodFees = {
@@ -183,9 +175,9 @@ export enum RecentMethodMaskedAccountFormat {
183
175
  export interface RecentMethod extends PaymentMethod {
184
176
  accountId: string;
185
177
  maskedAccount: string;
186
- lastSuccess: string;
187
- expiryDate: string;
188
- maskedAccountFormat: RecentMethodMaskedAccountFormat;
178
+ lastSuccess?: string;
179
+ expiryDate?: string;
180
+ maskedAccountFormat?: RecentMethodMaskedAccountFormat;
189
181
  }
190
182
 
191
183
  export interface TransactionParams {