@soltech/fluid-common 1.1.1 → 1.1.3

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
@@ -66,7 +66,6 @@ export interface WalletConfig {
66
66
  userResponseRequired: boolean;
67
67
  threshold: number;
68
68
  };
69
- virtual: boolean;
70
69
  }
71
70
  export interface Promotion {
72
71
  title: string;
@@ -119,6 +118,13 @@ export interface PaymentMethod {
119
118
  withdrawalHandledByHostSite?: boolean;
120
119
  withdrawalInputsShownWhenMethodIsStored: boolean;
121
120
  transactionStatusCheck?: TransactionStatusCheck;
121
+ encryptionType?: EncryptionType;
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;
@@ -224,6 +230,7 @@ export interface TransactionResult {
224
230
  state: TransactionState;
225
231
  statusCode: string;
226
232
  transactionId: string;
233
+ pspStatusCode?: string;
227
234
  }
228
235
  export interface RedirectOutput {
229
236
  container: RedirectContainer;
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.1.3",
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
@@ -72,8 +72,7 @@ export interface WalletConfig {
72
72
  pendingWithdrawalsReminder: {
73
73
  userResponseRequired: boolean;
74
74
  threshold: number;
75
- },
76
- virtual: boolean;
75
+ }
77
76
  }
78
77
 
79
78
  export interface Promotion {
@@ -133,6 +132,14 @@ export interface PaymentMethod {
133
132
  withdrawalHandledByHostSite?: boolean;
134
133
  withdrawalInputsShownWhenMethodIsStored: boolean;
135
134
  transactionStatusCheck?: TransactionStatusCheck;
135
+ encryptionType?: EncryptionType;
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 = {
@@ -251,6 +258,7 @@ export interface TransactionResult {
251
258
  state: TransactionState;
252
259
  statusCode: string;
253
260
  transactionId: string;
261
+ pspStatusCode?: string;
254
262
  }
255
263
 
256
264
  export interface RedirectOutput {