@soltech/fluid-common 0.9.1 → 0.9.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
@@ -50,17 +50,11 @@ export interface WalletConfig {
50
50
  autofillCreditCardName: boolean;
51
51
  contactSupportLink: string;
52
52
  numberCharactersHolderName: number | null;
53
- aiPredictionsForSuggestedAmountsEnabled: boolean;
54
- aiPredictionsForDepositMethodsOrderEnabled: boolean;
55
53
  }
56
54
  export interface WalletConfigParams {
57
55
  contentText: Record<string, ContentType>;
58
56
  theme: Record<string, TraitType>;
59
57
  }
60
- export interface DepositAmountsSettings {
61
- defaultDepositAmount: number;
62
- suggestedDepositAmounts: number[];
63
- }
64
58
  export interface AllPaymentMethods {
65
59
  recentPaymentMethods: RecentMethod[];
66
60
  paymentMethods: PaymentMethod[];
@@ -109,11 +103,18 @@ export interface InputFieldOption {
109
103
  label: string;
110
104
  code: string;
111
105
  }
106
+ export declare enum RecentMethodMaskedAccountFormat {
107
+ DEFAULT = "Default",
108
+ LAST_8_DIGITS = "Last8Digits",
109
+ FULL_VALUE = "FullValue",
110
+ NOTHING = "Nothing"
111
+ }
112
112
  export interface RecentMethod extends PaymentMethod {
113
113
  accountId: string;
114
114
  maskedAccount: string;
115
115
  lastSuccess: string;
116
116
  expiryDate: string;
117
+ maskedAccountFormat: RecentMethodMaskedAccountFormat;
117
118
  }
118
119
  export interface TransactionParams {
119
120
  accountId?: string;
@@ -177,7 +178,7 @@ export interface TransactionResult {
177
178
  state: TransactionState;
178
179
  statusCode: string;
179
180
  transactionId: string;
180
- suggestedAmounts?: DepositAmountsSettings;
181
+ suggestedAmounts?: SuggestedAmountsPrediction;
181
182
  }
182
183
  export interface RedirectOutput {
183
184
  container: RedirectContainer;
@@ -262,3 +263,7 @@ export interface UserData {
262
263
  lifetimeDeposit?: number;
263
264
  kycStatus?: KycStatus;
264
265
  }
266
+ export interface SuggestedAmountsPrediction {
267
+ prefilled: number;
268
+ buttons: number[];
269
+ }
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 RecentMethodMaskedAccountFormat;
28
+ (function (RecentMethodMaskedAccountFormat) {
29
+ RecentMethodMaskedAccountFormat["DEFAULT"] = "Default";
30
+ RecentMethodMaskedAccountFormat["LAST_8_DIGITS"] = "Last8Digits";
31
+ RecentMethodMaskedAccountFormat["FULL_VALUE"] = "FullValue";
32
+ RecentMethodMaskedAccountFormat["NOTHING"] = "Nothing";
33
+ })(RecentMethodMaskedAccountFormat || (RecentMethodMaskedAccountFormat = {}));
27
34
  export var TransactionState;
28
35
  (function (TransactionState) {
29
36
  TransactionState["SUCCESS"] = "SUCCESS";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.9.1",
3
+ "version": "0.9.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
@@ -56,8 +56,6 @@ export interface WalletConfig {
56
56
  autofillCreditCardName: boolean;
57
57
  contactSupportLink: string;
58
58
  numberCharactersHolderName: number | null;
59
- aiPredictionsForSuggestedAmountsEnabled: boolean;
60
- aiPredictionsForDepositMethodsOrderEnabled: boolean;
61
59
  }
62
60
 
63
61
  export interface WalletConfigParams {
@@ -65,11 +63,6 @@ export interface WalletConfigParams {
65
63
  theme: Record<string, TraitType>
66
64
  }
67
65
 
68
- export interface DepositAmountsSettings {
69
- defaultDepositAmount: number;
70
- suggestedDepositAmounts: number[];
71
- }
72
-
73
66
  export interface AllPaymentMethods {
74
67
  recentPaymentMethods: RecentMethod[];
75
68
  paymentMethods: PaymentMethod[];
@@ -125,11 +118,19 @@ export interface InputFieldOption {
125
118
  code: string;
126
119
  }
127
120
 
121
+ export enum RecentMethodMaskedAccountFormat {
122
+ DEFAULT = 'Default',
123
+ LAST_8_DIGITS = 'Last8Digits',
124
+ FULL_VALUE = 'FullValue',
125
+ NOTHING = 'Nothing'
126
+ }
127
+
128
128
  export interface RecentMethod extends PaymentMethod {
129
129
  accountId: string;
130
130
  maskedAccount: string;
131
131
  lastSuccess: string;
132
132
  expiryDate: string;
133
+ maskedAccountFormat: RecentMethodMaskedAccountFormat;
133
134
  }
134
135
 
135
136
  export interface TransactionParams {
@@ -200,7 +201,7 @@ export interface TransactionResult {
200
201
  state: TransactionState;
201
202
  statusCode: string;
202
203
  transactionId: string;
203
- suggestedAmounts?: DepositAmountsSettings;
204
+ suggestedAmounts?: SuggestedAmountsPrediction;
204
205
  }
205
206
 
206
207
  export interface RedirectOutput {
@@ -298,3 +299,8 @@ export interface UserData {
298
299
  lifetimeDeposit?: number;
299
300
  kycStatus?: KycStatus;
300
301
  }
302
+
303
+ export interface SuggestedAmountsPrediction {
304
+ prefilled: number;
305
+ buttons: number[];
306
+ }