@soltech/fluid-common 1.1.1 → 1.2.0

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
@@ -38,7 +38,6 @@ export interface WalletInitParams {
38
38
  timestamp: string;
39
39
  buildDate: string;
40
40
  hostSiteUrl: string;
41
- virtual: boolean;
42
41
  }
43
42
  export interface Viewport {
44
43
  innerWidth: number;
@@ -66,7 +65,6 @@ export interface WalletConfig {
66
65
  userResponseRequired: boolean;
67
66
  threshold: number;
68
67
  };
69
- virtual: boolean;
70
68
  }
71
69
  export interface Promotion {
72
70
  title: string;
@@ -108,7 +106,7 @@ export interface PaymentMethod {
108
106
  minAmount: number;
109
107
  maxAmount: number;
110
108
  info: string;
111
- paymentType: PaymentType;
109
+ paymentType?: PaymentType;
112
110
  inputFields?: InputField[];
113
111
  bonusCodes?: string[];
114
112
  instructions?: string;
@@ -119,6 +117,14 @@ export interface PaymentMethod {
119
117
  withdrawalHandledByHostSite?: boolean;
120
118
  withdrawalInputsShownWhenMethodIsStored: boolean;
121
119
  transactionStatusCheck?: TransactionStatusCheck;
120
+ encryptionType?: EncryptionType;
121
+ encryptCardExpiryDate?: boolean;
122
+ }
123
+ export declare enum EncryptionType {
124
+ NO_ENCRYPTION = "NO_ENCRYPTION",
125
+ RSA_PKCS1 = "RSA_PKCS1",// RSA with PKCS#1 v1.5 padding (jsencrypt default)
126
+ RSA_OAEP = "RSA_OAEP",// RSA with OAEP padding (crypto/Web Crypto)
127
+ SHA384_SIGNATURE = "SHA384_SIGNATURE"
122
128
  }
123
129
  export type PaymentMethodFees = {
124
130
  fixed?: number;
@@ -157,9 +163,9 @@ export declare enum RecentMethodMaskedAccountFormat {
157
163
  export interface RecentMethod extends PaymentMethod {
158
164
  accountId: string;
159
165
  maskedAccount: string;
160
- lastSuccess: string;
161
- expiryDate: string;
162
- maskedAccountFormat: RecentMethodMaskedAccountFormat;
166
+ lastSuccess?: string;
167
+ expiryDate?: string;
168
+ maskedAccountFormat?: RecentMethodMaskedAccountFormat;
163
169
  }
164
170
  export interface TransactionParams {
165
171
  accountId?: string;
@@ -269,7 +275,6 @@ export declare enum Action {
269
275
  export interface PendingWithdrawal {
270
276
  amount: string;
271
277
  creationDate: string;
272
- providerType: string;
273
278
  state: WithdrawalState;
274
279
  transactionId: string;
275
280
  paymentGatewayId: string;
package/lib/index.js CHANGED
@@ -24,6 +24,13 @@ 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 = {}));
27
34
  export var RecentMethodMaskedAccountFormat;
28
35
  (function (RecentMethodMaskedAccountFormat) {
29
36
  RecentMethodMaskedAccountFormat["DEFAULT"] = "Default";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
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
@@ -43,7 +43,6 @@ export interface WalletInitParams {
43
43
  timestamp: string;
44
44
  buildDate: string;
45
45
  hostSiteUrl: string;
46
- virtual: boolean;
47
46
  }
48
47
 
49
48
  export interface Viewport {
@@ -72,8 +71,7 @@ export interface WalletConfig {
72
71
  pendingWithdrawalsReminder: {
73
72
  userResponseRequired: boolean;
74
73
  threshold: number;
75
- },
76
- virtual: boolean;
74
+ }
77
75
  }
78
76
 
79
77
  export interface Promotion {
@@ -122,7 +120,7 @@ export interface PaymentMethod {
122
120
  minAmount: number;
123
121
  maxAmount: number;
124
122
  info: string;
125
- paymentType: PaymentType;
123
+ paymentType?: PaymentType;
126
124
  inputFields?: InputField[];
127
125
  bonusCodes?: string[];
128
126
  instructions?: string;
@@ -133,6 +131,15 @@ export interface PaymentMethod {
133
131
  withdrawalHandledByHostSite?: boolean;
134
132
  withdrawalInputsShownWhenMethodIsStored: boolean;
135
133
  transactionStatusCheck?: TransactionStatusCheck;
134
+ encryptionType?: EncryptionType;
135
+ encryptCardExpiryDate?: boolean;
136
+ }
137
+
138
+ export enum EncryptionType {
139
+ NO_ENCRYPTION = 'NO_ENCRYPTION',
140
+ RSA_PKCS1 = 'RSA_PKCS1', // RSA with PKCS#1 v1.5 padding (jsencrypt default)
141
+ RSA_OAEP = 'RSA_OAEP', // RSA with OAEP padding (crypto/Web Crypto)
142
+ SHA384_SIGNATURE = 'SHA384_SIGNATURE' // SHA-384-based signature (headers)
136
143
  }
137
144
 
138
145
  export type PaymentMethodFees = {
@@ -177,9 +184,9 @@ export enum RecentMethodMaskedAccountFormat {
177
184
  export interface RecentMethod extends PaymentMethod {
178
185
  accountId: string;
179
186
  maskedAccount: string;
180
- lastSuccess: string;
181
- expiryDate: string;
182
- maskedAccountFormat: RecentMethodMaskedAccountFormat;
187
+ lastSuccess?: string;
188
+ expiryDate?: string;
189
+ maskedAccountFormat?: RecentMethodMaskedAccountFormat;
183
190
  }
184
191
 
185
192
  export interface TransactionParams {
@@ -303,7 +310,6 @@ export enum Action {
303
310
  export interface PendingWithdrawal {
304
311
  amount: string;
305
312
  creationDate: string;
306
- providerType: string;
307
313
  state: WithdrawalState;
308
314
  transactionId: string;
309
315
  paymentGatewayId: string;