@soltech/fluid-common 0.8.17 → 0.9.1
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 +7 -5
- package/package.json +1 -1
- package/src/index.ts +8 -6
package/lib/index.d.ts
CHANGED
|
@@ -50,11 +50,17 @@ export interface WalletConfig {
|
|
|
50
50
|
autofillCreditCardName: boolean;
|
|
51
51
|
contactSupportLink: string;
|
|
52
52
|
numberCharactersHolderName: number | null;
|
|
53
|
+
aiPredictionsForSuggestedAmountsEnabled: boolean;
|
|
54
|
+
aiPredictionsForDepositMethodsOrderEnabled: boolean;
|
|
53
55
|
}
|
|
54
56
|
export interface WalletConfigParams {
|
|
55
57
|
contentText: Record<string, ContentType>;
|
|
56
58
|
theme: Record<string, TraitType>;
|
|
57
59
|
}
|
|
60
|
+
export interface DepositAmountsSettings {
|
|
61
|
+
defaultDepositAmount: number;
|
|
62
|
+
suggestedDepositAmounts: number[];
|
|
63
|
+
}
|
|
58
64
|
export interface AllPaymentMethods {
|
|
59
65
|
recentPaymentMethods: RecentMethod[];
|
|
60
66
|
paymentMethods: PaymentMethod[];
|
|
@@ -171,7 +177,7 @@ export interface TransactionResult {
|
|
|
171
177
|
state: TransactionState;
|
|
172
178
|
statusCode: string;
|
|
173
179
|
transactionId: string;
|
|
174
|
-
suggestedAmounts?:
|
|
180
|
+
suggestedAmounts?: DepositAmountsSettings;
|
|
175
181
|
}
|
|
176
182
|
export interface RedirectOutput {
|
|
177
183
|
container: RedirectContainer;
|
|
@@ -256,7 +262,3 @@ export interface UserData {
|
|
|
256
262
|
lifetimeDeposit?: number;
|
|
257
263
|
kycStatus?: KycStatus;
|
|
258
264
|
}
|
|
259
|
-
export interface SuggestedAmountsPrediction {
|
|
260
|
-
prefilled: number;
|
|
261
|
-
buttons: number[];
|
|
262
|
-
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -56,6 +56,8 @@ export interface WalletConfig {
|
|
|
56
56
|
autofillCreditCardName: boolean;
|
|
57
57
|
contactSupportLink: string;
|
|
58
58
|
numberCharactersHolderName: number | null;
|
|
59
|
+
aiPredictionsForSuggestedAmountsEnabled: boolean;
|
|
60
|
+
aiPredictionsForDepositMethodsOrderEnabled: boolean;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
export interface WalletConfigParams {
|
|
@@ -63,6 +65,11 @@ export interface WalletConfigParams {
|
|
|
63
65
|
theme: Record<string, TraitType>
|
|
64
66
|
}
|
|
65
67
|
|
|
68
|
+
export interface DepositAmountsSettings {
|
|
69
|
+
defaultDepositAmount: number;
|
|
70
|
+
suggestedDepositAmounts: number[];
|
|
71
|
+
}
|
|
72
|
+
|
|
66
73
|
export interface AllPaymentMethods {
|
|
67
74
|
recentPaymentMethods: RecentMethod[];
|
|
68
75
|
paymentMethods: PaymentMethod[];
|
|
@@ -193,7 +200,7 @@ export interface TransactionResult {
|
|
|
193
200
|
state: TransactionState;
|
|
194
201
|
statusCode: string;
|
|
195
202
|
transactionId: string;
|
|
196
|
-
suggestedAmounts?:
|
|
203
|
+
suggestedAmounts?: DepositAmountsSettings;
|
|
197
204
|
}
|
|
198
205
|
|
|
199
206
|
export interface RedirectOutput {
|
|
@@ -291,8 +298,3 @@ export interface UserData {
|
|
|
291
298
|
lifetimeDeposit?: number;
|
|
292
299
|
kycStatus?: KycStatus;
|
|
293
300
|
}
|
|
294
|
-
|
|
295
|
-
export interface SuggestedAmountsPrediction {
|
|
296
|
-
prefilled: number;
|
|
297
|
-
buttons: number[];
|
|
298
|
-
}
|