@soltech/fluid-common 1.10.0-beta.0 → 1.10.0-sc23736.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/.claude/settings.local.json +12 -0
- package/lib/bonus.d.ts +11 -0
- package/lib/bonus.js +1 -0
- package/lib/index.d.ts +7 -428
- package/lib/index.js +7 -97
- package/lib/payment-methods.d.ts +114 -0
- package/lib/payment-methods.js +29 -0
- package/lib/tracking.d.ts +23 -0
- package/lib/tracking.js +1 -0
- package/lib/transactions.d.ts +98 -0
- package/lib/transactions.js +36 -0
- package/lib/user.d.ts +22 -0
- package/lib/user.js +6 -0
- package/lib/wallet-config-keys.d.ts +459 -0
- package/lib/wallet-config-keys.js +462 -0
- package/lib/wallet.d.ts +92 -0
- package/lib/wallet.js +7 -0
- package/package.json +1 -1
- package/src/bonus.ts +12 -0
- package/src/index.ts +7 -491
- package/src/payment-methods.ts +129 -0
- package/src/tracking.ts +26 -0
- package/src/transactions.ts +111 -0
- package/src/user.ts +23 -0
- package/src/wallet-config-keys.ts +466 -0
- package/src/wallet.ts +103 -0
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
export var ContentType;
|
|
2
|
+
(function (ContentType) {
|
|
3
|
+
ContentType["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
4
|
+
ContentType["HTML"] = "HTML";
|
|
5
|
+
})(ContentType || (ContentType = {}));
|
|
6
|
+
export var TraitType;
|
|
7
|
+
(function (TraitType) {
|
|
8
|
+
TraitType["COLOR"] = "COLOR";
|
|
9
|
+
TraitType["IMAGE"] = "IMAGE";
|
|
10
|
+
TraitType["TEXT"] = "TEXT";
|
|
11
|
+
TraitType["SOUND"] = "SOUND";
|
|
12
|
+
})(TraitType || (TraitType = {}));
|
|
13
|
+
// The keys fluid-api accepts for WalletConfigParams. Removing a member is a breaking API change:
|
|
14
|
+
// widgets are cached on operator sites, so an older one may still request it.
|
|
15
|
+
export var Trait;
|
|
16
|
+
(function (Trait) {
|
|
17
|
+
Trait["buttonGradientDirection"] = "buttonGradientDirection";
|
|
18
|
+
Trait["buttonStyle"] = "buttonStyle";
|
|
19
|
+
Trait["bonusImagePlaceholder"] = "bonusImagePlaceholder";
|
|
20
|
+
Trait["colorAlert"] = "colorAlert";
|
|
21
|
+
Trait["colorBackgroundBase"] = "colorBackgroundBase";
|
|
22
|
+
Trait["colorBackgroundZero"] = "colorBackgroundZero";
|
|
23
|
+
Trait["colorBorder"] = "colorBorder";
|
|
24
|
+
Trait["colorButtonBase"] = "colorButtonBase";
|
|
25
|
+
Trait["colorButtonBaseStop"] = "colorButtonBaseStop";
|
|
26
|
+
Trait["colorButtonHover"] = "colorButtonHover";
|
|
27
|
+
Trait["colorButtonHoverStop"] = "colorButtonHoverStop";
|
|
28
|
+
Trait["colorButtonGhostText"] = "colorButtonGhostText";
|
|
29
|
+
Trait["colorButtonText"] = "colorButtonText";
|
|
30
|
+
Trait["colorCardGradiantEnd"] = "colorCardGradiantEnd";
|
|
31
|
+
Trait["colorCardGradiantStart"] = "colorCardGradiantStart";
|
|
32
|
+
Trait["colorDivider"] = "colorDivider";
|
|
33
|
+
Trait["colorError"] = "colorError";
|
|
34
|
+
Trait["colorIcon"] = "colorIcon";
|
|
35
|
+
Trait["colorInfo"] = "colorInfo";
|
|
36
|
+
Trait["colorInputBase"] = "colorInputBase";
|
|
37
|
+
Trait["colorInputBorder"] = "colorInputBorder";
|
|
38
|
+
Trait["colorInputIcon"] = "colorInputIcon";
|
|
39
|
+
Trait["colorOverlay"] = "colorOverlay";
|
|
40
|
+
Trait["colorPillBase"] = "colorPillBase";
|
|
41
|
+
Trait["colorPillBaseActive"] = "colorPillBaseActive";
|
|
42
|
+
Trait["colorPillText"] = "colorPillText";
|
|
43
|
+
Trait["colorPillTextActive"] = "colorPillTextActive";
|
|
44
|
+
Trait["colorPrimary"] = "colorPrimary";
|
|
45
|
+
Trait["colorProgressBarBase"] = "colorProgressBarBase";
|
|
46
|
+
Trait["colorProgressBarEnd"] = "colorProgressBarEnd";
|
|
47
|
+
Trait["colorProgressBarStart"] = "colorProgressBarStart";
|
|
48
|
+
Trait["colorSuccess"] = "colorSuccess";
|
|
49
|
+
Trait["colorTextAmount"] = "colorTextAmount";
|
|
50
|
+
Trait["colorTextDisabled"] = "colorTextDisabled";
|
|
51
|
+
Trait["colorTextPrimary"] = "colorTextPrimary";
|
|
52
|
+
Trait["colorTextSecondary"] = "colorTextSecondary";
|
|
53
|
+
Trait["fontWeightMedium"] = "fontWeightMedium";
|
|
54
|
+
Trait["fontWeightSemiBold"] = "fontWeightSemiBold";
|
|
55
|
+
Trait["fontWeightBold"] = "fontWeightBold";
|
|
56
|
+
Trait["inlineQuickDepositBorderRadius"] = "inlineQuickDepositBorderRadius";
|
|
57
|
+
Trait["inputFieldRadius"] = "inputFieldRadius";
|
|
58
|
+
Trait["stepAmount"] = "stepAmount";
|
|
59
|
+
Trait["stepBonus"] = "stepBonus";
|
|
60
|
+
Trait["stepCheckingDetails"] = "stepCheckingDetails";
|
|
61
|
+
Trait["stepPaymentMethod"] = "stepPaymentMethod";
|
|
62
|
+
Trait["stepSecure"] = "stepSecure";
|
|
63
|
+
Trait["successSound"] = "successSound";
|
|
64
|
+
Trait["depositCurrencyIcon"] = "depositCurrencyIcon";
|
|
65
|
+
Trait["withdrawalCurrencyIcon"] = "withdrawalCurrencyIcon";
|
|
66
|
+
})(Trait || (Trait = {}));
|
|
67
|
+
export var Content;
|
|
68
|
+
(function (Content) {
|
|
69
|
+
Content["acceptNoBonusAndContinue"] = "acceptNoBonusAndContinue";
|
|
70
|
+
Content["amountPlaceholderLabel"] = "amountPlaceholderLabel";
|
|
71
|
+
Content["authorisationTitle"] = "authorisationTitle";
|
|
72
|
+
Content["backLabel"] = "backLabel";
|
|
73
|
+
Content["bonus"] = "bonus";
|
|
74
|
+
Content["bonusCodeInputPlaceholder"] = "bonusCodeInputPlaceholder";
|
|
75
|
+
Content["bonusCodeMessage"] = "bonusCodeMessage";
|
|
76
|
+
Content["bonusMaximumDepositUpTo"] = "bonusMaximumDepositUpTo";
|
|
77
|
+
Content["bonusMinimumDepositFrom"] = "bonusMinimumDepositFrom";
|
|
78
|
+
Content["bonusModalTitle"] = "bonusModalTitle";
|
|
79
|
+
Content["bonusNotAvailableForPaymentMethod"] = "bonusNotAvailableForPaymentMethod";
|
|
80
|
+
Content["cancelWithdrawalsSuccess"] = "cancelWithdrawalsSuccess";
|
|
81
|
+
Content["cancelWithdrawalSuccess"] = "cancelWithdrawalSuccess";
|
|
82
|
+
Content["cardDetailsGenericError"] = "cardDetailsGenericError";
|
|
83
|
+
Content["cardInformation"] = "cardInformation";
|
|
84
|
+
Content["cardNumber"] = "cardNumber";
|
|
85
|
+
Content["closeLabel"] = "closeLabel";
|
|
86
|
+
Content["closingPromptContent"] = "closingPromptContent";
|
|
87
|
+
Content["closingPromptTitle"] = "closingPromptTitle";
|
|
88
|
+
Content["completeTransactionDepositInfo"] = "completeTransactionDepositInfo";
|
|
89
|
+
Content["completeTransactionDepositSummary"] = "completeTransactionDepositSummary";
|
|
90
|
+
Content["completeTransactionDepositTitle"] = "completeTransactionDepositTitle";
|
|
91
|
+
Content["completeTransactionWithdrawalInfo"] = "completeTransactionWithdrawalInfo";
|
|
92
|
+
Content["completeTransactionWithdrawalSummary"] = "completeTransactionWithdrawalSummary";
|
|
93
|
+
Content["completeTransactionWithdrawalTitle"] = "completeTransactionWithdrawalTitle";
|
|
94
|
+
Content["confirmationWithdrawingLabel"] = "confirmationWithdrawingLabel";
|
|
95
|
+
Content["continueCtaLabel"] = "continueCtaLabel";
|
|
96
|
+
Content["creditDebit"] = "creditDebit";
|
|
97
|
+
Content["cvc"] = "cvc";
|
|
98
|
+
Content["cvcTooltipLabel"] = "cvcTooltipLabel";
|
|
99
|
+
Content["depositAmountWithoutFee"] = "depositAmountWithoutFee";
|
|
100
|
+
Content["depositCtaLabel"] = "depositCtaLabel";
|
|
101
|
+
Content["depositTitle"] = "depositTitle";
|
|
102
|
+
Content["errorDepositAnotherMethodMessage"] = "errorDepositAnotherMethodMessage";
|
|
103
|
+
Content["errorDepositContactSupportMessage"] = "errorDepositContactSupportMessage";
|
|
104
|
+
Content["errorDepositCtaMessage"] = "errorDepositCtaMessage";
|
|
105
|
+
Content["errorDepositMessage"] = "errorDepositMessage";
|
|
106
|
+
Content["errorDepositTitle"] = "errorDepositTitle";
|
|
107
|
+
Content["errorDepositTooltip"] = "errorDepositTooltip";
|
|
108
|
+
Content["errorDepositTooltipCopied"] = "errorDepositTooltipCopied";
|
|
109
|
+
Content["errorVoucherAmountsOutsideLimits"] = "errorVoucherAmountsOutsideLimits";
|
|
110
|
+
Content["feeInfo"] = "feeInfo";
|
|
111
|
+
Content["feeLabel"] = "feeLabel";
|
|
112
|
+
Content["feeInfoWithinRange"] = "feeInfoWithinRange";
|
|
113
|
+
Content["feeInfoAboveMin"] = "feeInfoAboveMin";
|
|
114
|
+
Content["feeInfoBelowMax"] = "feeInfoBelowMax";
|
|
115
|
+
Content["fluentAmountEditMessage"] = "fluentAmountEditMessage";
|
|
116
|
+
Content["fluentAmountEditTitle"] = "fluentAmountEditTitle";
|
|
117
|
+
Content["fluentBonusClaimInfo"] = "fluentBonusClaimInfo";
|
|
118
|
+
Content["fluentBonusEditMessage"] = "fluentBonusEditMessage";
|
|
119
|
+
Content["fluentBonusEditTitle"] = "fluentBonusEditTitle";
|
|
120
|
+
Content["fluentBonusFullClaimMessage"] = "fluentBonusFullClaimMessage";
|
|
121
|
+
Content["fluentBonusFullClaimTitle"] = "fluentBonusFullClaimTitle";
|
|
122
|
+
Content["fluentBonusMaximumAmountExceededMessage"] = "fluentBonusMaximumAmountExceededMessage";
|
|
123
|
+
Content["fluentBonusMaximumAmountExceededTitle"] = "fluentBonusMaximumAmountExceededTitle";
|
|
124
|
+
Content["fluentBonusMessage"] = "fluentBonusMessage";
|
|
125
|
+
Content["fluentBonusMinimumAmountForThisBonusMessage"] = "fluentBonusMinimumAmountForThisBonusMessage";
|
|
126
|
+
Content["fluentBonusMinimumAmountNotMetMessage"] = "fluentBonusMinimumAmountNotMetMessage";
|
|
127
|
+
Content["fluentBonusMinimumAmountNotMetTitle"] = "fluentBonusMinimumAmountNotMetTitle";
|
|
128
|
+
Content["fluentBonusTeaserDismissedMessage"] = "fluentBonusTeaserDismissedMessage";
|
|
129
|
+
Content["fluentBonusTeaserDismissedTitle"] = "fluentBonusTeaserDismissedTitle";
|
|
130
|
+
Content["fluentBonusTeaserMessage"] = "fluentBonusTeaserMessage";
|
|
131
|
+
Content["fluentBonusTitle"] = "fluentBonusTitle";
|
|
132
|
+
Content["fluentBonusWithNoMaxSelectedMessage"] = "fluentBonusWithNoMaxSelectedMessage";
|
|
133
|
+
Content["fluentBonusWithNoMaxSelectedTitle"] = "fluentBonusWithNoMaxSelectedTitle";
|
|
134
|
+
Content["fluentDepositAmountAboveBonusMaxDepositLimit"] = "fluentDepositAmountAboveBonusMaxDepositLimit";
|
|
135
|
+
Content["fluentDepositAmountAboveLimit"] = "fluentDepositAmountAboveLimit";
|
|
136
|
+
Content["fluentDepositAmountAboveResponsibleGamingLimit"] = "fluentDepositAmountAboveResponsibleGamingLimit";
|
|
137
|
+
Content["fluentDepositAmountBelowLimit"] = "fluentDepositAmountBelowLimit";
|
|
138
|
+
Content["fluentDepositCVCNotRequired"] = "fluentDepositCvcNotRequired";
|
|
139
|
+
Content["fluentDepositCVCRequired"] = "fluentDepositCvcRequired";
|
|
140
|
+
Content["fluentDepositMessage"] = "fluentDepositMessage";
|
|
141
|
+
Content["fluentDepositTitle"] = "fluentDepositTitle";
|
|
142
|
+
Content["fluentDepositTitleAmountBad"] = "fluentDepositTitleAmountBad";
|
|
143
|
+
Content["fluentDepositTitleAmountGood"] = "fluentDepositTitleAmountGood";
|
|
144
|
+
Content["fluentDetailCard"] = "fluentDetailCard";
|
|
145
|
+
Content["fluentDetailExternal"] = "fluentDetailExternal";
|
|
146
|
+
Content["fluentDetailTitle"] = "fluentDetailTitle";
|
|
147
|
+
Content["fluentForfeitBonusNoticeMessage"] = "fluentForfeitBonusNoticeMessage";
|
|
148
|
+
Content["fluentForfeitBonusNoticeTitle"] = "fluentForfeitBonusNoticeTitle";
|
|
149
|
+
Content["fluentKycLimitNearlyReachedMessage"] = "fluentKycLimitNearlyReachedMessage";
|
|
150
|
+
Content["fluentKycLimitReachedMessage"] = "fluentKycLimitReachedMessage";
|
|
151
|
+
Content["fluentMaxAmountWithdrawal"] = "fluentMaxAmountWithdrawal";
|
|
152
|
+
Content["fluentMethodMessage"] = "fluentMethodMessage";
|
|
153
|
+
Content["fluentMethodTitle"] = "fluentMethodTitle";
|
|
154
|
+
Content["fluentNoWithdrawableBalanceMessage"] = "fluentNoWithdrawableBalanceMessage";
|
|
155
|
+
Content["fluentNoWithdrawableBalanceTitle"] = "fluentNoWithdrawableBalanceTitle";
|
|
156
|
+
Content["fluentOnePendingWithdrawalOnlyMessage"] = "fluentOnePendingWithdrawalOnlyMessage";
|
|
157
|
+
Content["fluentPendingWithdrawalsMessage"] = "fluentPendingWithdrawalsMessage";
|
|
158
|
+
Content["fluentPendingWithdrawalsTitle"] = "fluentPendingWithdrawalsTitle";
|
|
159
|
+
Content["fluentRgLimitReachedMessage"] = "fluentRgLimitReachedMessage";
|
|
160
|
+
Content["fluentRgLimitReachedTitle"] = "fluentRgLimitReachedTitle";
|
|
161
|
+
Content["fluentVerificationRequiredTitle"] = "fluentVerificationRequiredTitle";
|
|
162
|
+
Content["fluentVerifyCta"] = "fluentVerifyCta";
|
|
163
|
+
Content["fluentWithdrawalAmountAboveLimit"] = "fluentWithdrawalAmountAboveLimit";
|
|
164
|
+
Content["fluentWithdrawalAmountBelowLimit"] = "fluentWithdrawalAmountBelowLimit";
|
|
165
|
+
Content["fluentWithdrawalAmountError"] = "fluentWithdrawalAmountError";
|
|
166
|
+
Content["fluentWithdrawalAmountGoodTitle"] = "fluentWithdrawalAmountGoodTitle";
|
|
167
|
+
Content["fluentWithdrawalAmountMessage"] = "fluentWithdrawalAmountMessage";
|
|
168
|
+
Content["fluentWithdrawalAmountTitle"] = "fluentWithdrawalAmountTitle";
|
|
169
|
+
Content["fluentWithdrawalDetailDefaultMessage"] = "fluentWithdrawalDetailDefaultMessage";
|
|
170
|
+
Content["fluentWithdrawalDetailMessage"] = "fluentWithdrawalDetailMessage";
|
|
171
|
+
Content["fluentWithdrawalDetailTitle"] = "fluentWithdrawalDetailTitle";
|
|
172
|
+
Content["fluentWithdrawalSummaryMessage"] = "fluentWithdrawalSummaryMessage";
|
|
173
|
+
Content["fluentWithdrawalSummaryTitle"] = "fluentWithdrawalSummaryTitle";
|
|
174
|
+
Content["goBackModalContent"] = "goBackModalContent";
|
|
175
|
+
Content["goBackModalTitle"] = "goBackModalTitle";
|
|
176
|
+
Content["johnDoe"] = "johnDoe";
|
|
177
|
+
Content["labelButtonCancelAllWithdrawals"] = "labelButtonCancelAllWithdrawals";
|
|
178
|
+
Content["labelDeposit"] = "labelDeposit";
|
|
179
|
+
Content["labelInfoIcon"] = "labelInfoIcon";
|
|
180
|
+
Content["labelWithdraw"] = "labelWithdraw";
|
|
181
|
+
Content["landscapeWarning"] = "landscapeWarning";
|
|
182
|
+
Content["lockedBalanceTitle"] = "lockedBalanceTitle";
|
|
183
|
+
Content["lockedInfoModalContent"] = "lockedInfoModalContent";
|
|
184
|
+
Content["lockedInfoModalTitle"] = "lockedInfoModalTitle";
|
|
185
|
+
Content["manualBonusCodeApply"] = "manualBonusCodeApply";
|
|
186
|
+
Content["manualBonusCodeError"] = "manualBonusCodeError";
|
|
187
|
+
Content["manualBonusCodeLabel"] = "manualBonusCodeLabel";
|
|
188
|
+
Content["manualBonusCodeRemove"] = "manualBonusCodeRemove";
|
|
189
|
+
Content["manualBonusCodeValidated"] = "manualBonusCodeValidated";
|
|
190
|
+
Content["manualBonusCodeValidatedNotOptedIn"] = "manualBonusCodeValidatedNotOptedIn";
|
|
191
|
+
Content["maxAmount"] = "maxAmount";
|
|
192
|
+
Content["methodLimitExceededPromptBody"] = "methodLimitExceededPromptBody";
|
|
193
|
+
Content["methodLimitExceededPromptOptionDismiss"] = "methodLimitExceededPromptOptionDismiss";
|
|
194
|
+
Content["methodLimitExceededPromptOptionEdit"] = "methodLimitExceededPromptOptionEdit";
|
|
195
|
+
Content["methodLimitExceededPromptTitle"] = "methodLimitExceededPromptTitle";
|
|
196
|
+
Content["minAmount"] = "minAmount";
|
|
197
|
+
Content["mmYy"] = "mmYy";
|
|
198
|
+
Content["mmYyyy"] = "mmYyyy";
|
|
199
|
+
Content["modalFooterCta"] = "modalFooterCta";
|
|
200
|
+
Content["modifyAmount"] = "modifyAmount";
|
|
201
|
+
Content["modifyBonus"] = "modifyBonus";
|
|
202
|
+
Content["moreMethodsLabel"] = "moreMethodsLabel";
|
|
203
|
+
Content["nameOnCard"] = "nameOnCard";
|
|
204
|
+
Content["negativePromptModalContent"] = "negativePromptModalContent";
|
|
205
|
+
Content["newMethod"] = "newMethod";
|
|
206
|
+
Content["noBonusAvailableMessage"] = "noBonusAvailableMessage";
|
|
207
|
+
Content["noBonusAvailableTitle"] = "noBonusAvailableTitle";
|
|
208
|
+
Content["noBonusMessage"] = "noBonusMessage";
|
|
209
|
+
Content["noBonusSelected"] = "noBonusSelected";
|
|
210
|
+
Content["noBonusTitle"] = "noBonusTitle";
|
|
211
|
+
Content["noPaymentMethodsAvailableMessage"] = "noPaymentMethodsAvailableMessage";
|
|
212
|
+
Content["noPaymentMethodsAvailableTitle"] = "noPaymentMethodsAvailableTitle";
|
|
213
|
+
Content["noWithdrawalMethodsAvailable"] = "noWithdrawalMethodsAvailable";
|
|
214
|
+
Content["pendingTransactionTitle"] = "pendingTransactionTitle";
|
|
215
|
+
Content["pendingTransactionMessage"] = "pendingTransactionMessage";
|
|
216
|
+
Content["paymentMethodInfoModalTitle"] = "paymentMethodInfoModalTitle";
|
|
217
|
+
Content["paymentMethodsTitle"] = "paymentMethodsTitle";
|
|
218
|
+
Content["pendingWithdrawalsLinkLabel"] = "pendingWithdrawalsLinkLabel";
|
|
219
|
+
Content["phoneNumber"] = "phoneNumber";
|
|
220
|
+
Content["phonePrefix"] = "phonePrefix";
|
|
221
|
+
Content["positivePromptModalContent"] = "positivePromptModalContent";
|
|
222
|
+
Content["promptLabelNegative"] = "promptLabelNegative";
|
|
223
|
+
Content["promptLabelPositive"] = "promptLabelPositive";
|
|
224
|
+
Content["quickDepositTitle"] = "quickDepositTitle";
|
|
225
|
+
Content["selectAnotherPaymentMethodWithBonus"] = "selectAnotherPaymentMethodWithBonus";
|
|
226
|
+
Content["selectedBonusNotAvailable"] = "selectedBonusNotAvailable";
|
|
227
|
+
Content["sslTitle"] = "sslTitle";
|
|
228
|
+
Content["storedMethods"] = "storedMethods";
|
|
229
|
+
Content["successDepositTitle"] = "successDepositTitle";
|
|
230
|
+
Content["successPlayButton"] = "successPlayButton";
|
|
231
|
+
Content["successWithdrawalTitle"] = "successWithdrawalTitle";
|
|
232
|
+
Content["summaryDepositTitle"] = "summaryDepositTitle";
|
|
233
|
+
Content["summaryEditLabel"] = "summaryEditLabel";
|
|
234
|
+
Content["summaryWithdrawalTitle"] = "summaryWithdrawalTitle";
|
|
235
|
+
Content["totalAmountMessage"] = "totalAmountMessage";
|
|
236
|
+
Content["transactionInfo"] = "transactionInfo";
|
|
237
|
+
Content["transactionLoaderMessage"] = "transactionLoaderMessage";
|
|
238
|
+
Content["transactionLoaderTitle"] = "transactionLoaderTitle";
|
|
239
|
+
Content["transactionSplit"] = "transactionSplit";
|
|
240
|
+
Content["transactionSplitBonus"] = "transactionSplitBonus";
|
|
241
|
+
Content["transactionStatusFailure"] = "transactionStatusFailure";
|
|
242
|
+
Content["transactionStatusSuccess"] = "transactionStatusSuccess";
|
|
243
|
+
Content["turnedOverTitle"] = "turnedOverTitle";
|
|
244
|
+
Content["unavailableBonusModalBody"] = "unavailableBonusModalBody";
|
|
245
|
+
Content["unavailableBonusModalTitle"] = "unavailableBonusModalTitle";
|
|
246
|
+
Content["updateAvailableCta"] = "updateAvailableCta";
|
|
247
|
+
Content["updateAvailableMessage"] = "updateAvailableMessage";
|
|
248
|
+
Content["updateAvailableTitle"] = "updateAvailableTitle";
|
|
249
|
+
Content["userCloseBrowserTabPromptMessage"] = "userCloseBrowserTabPromptMessage";
|
|
250
|
+
Content["verificationScreenCtaLabel"] = "verificationScreenCtaLabel";
|
|
251
|
+
Content["verificationScreenMessage"] = "verificationScreenMessage";
|
|
252
|
+
Content["verificationScreenTitle"] = "verificationScreenTitle";
|
|
253
|
+
Content["withdrawalAmountLeftoverAfterFees"] = "withdrawalAmountLeftoverAfterFees";
|
|
254
|
+
Content["withdrawalApproved"] = "withdrawalApproved";
|
|
255
|
+
Content["withdrawalCancelLabel"] = "withdrawalCancelLabel";
|
|
256
|
+
Content["withdrawalCancelModalButtonNegative"] = "withdrawalCancelModalButtonNegative";
|
|
257
|
+
Content["withdrawalCancelModalButtonPositive"] = "withdrawalCancelModalButtonPositive";
|
|
258
|
+
Content["withdrawalCancelModalContent"] = "withdrawalCancelModalContent";
|
|
259
|
+
Content["withdrawalCancelModalTitle"] = "withdrawalCancelModalTitle";
|
|
260
|
+
Content["withdrawalCtaLabel"] = "withdrawalCtaLabel";
|
|
261
|
+
Content["withdrawalInfoModalContent"] = "withdrawalInfoModalContent";
|
|
262
|
+
Content["withdrawalInfoModalTitle"] = "withdrawalInfoModalTitle";
|
|
263
|
+
Content["withdrawalListTitle"] = "withdrawalListTitle";
|
|
264
|
+
Content["withdrawalProcessing"] = "withdrawalProcessing";
|
|
265
|
+
Content["withdrawalRemainingBalance"] = "withdrawalRemainingBalance";
|
|
266
|
+
Content["withdrawalRequestDate"] = "withdrawalRequestDate";
|
|
267
|
+
Content["withdrawalRequested"] = "withdrawalRequested";
|
|
268
|
+
Content["withdrawalTitle"] = "withdrawalTitle";
|
|
269
|
+
Content["withdrawalTransactionIdLabel"] = "withdrawalTransactionIdLabel";
|
|
270
|
+
Content["withdrawal2faHeaderTitle"] = "withdrawal2faHeaderTitle";
|
|
271
|
+
Content["withdrawal2faTitle"] = "withdrawal2faTitle";
|
|
272
|
+
Content["withdrawal2faBody"] = "withdrawal2faBody";
|
|
273
|
+
Content["withdrawal2faLabel"] = "withdrawal2faLabel";
|
|
274
|
+
Content["withdrawal2faPlaceholder"] = "withdrawal2faPlaceholder";
|
|
275
|
+
Content["withdrawal2faVerifyButton"] = "withdrawal2faVerifyButton";
|
|
276
|
+
Content["withdrawal2faInvalidCode"] = "withdrawal2faInvalidCode";
|
|
277
|
+
Content["withdrawal2faRateLimited"] = "withdrawal2faRateLimited";
|
|
278
|
+
Content["withMethod"] = "withMethod";
|
|
279
|
+
})(Content || (Content = {}));
|
|
280
|
+
export var ContentVirtual;
|
|
281
|
+
(function (ContentVirtual) {
|
|
282
|
+
ContentVirtual["abandonDepositModalMessage"] = "abandonDepositModalMessage";
|
|
283
|
+
ContentVirtual["abandonDepositModalNegativeButton"] = "abandonDepositModalNegativeButton";
|
|
284
|
+
ContentVirtual["abandonDepositModalPositiveButton"] = "abandonDepositModalPositiveButton";
|
|
285
|
+
ContentVirtual["abandonDepositModalTitle"] = "abandonDepositModalTitle";
|
|
286
|
+
ContentVirtual["authorisationTitle"] = "authorisationTitle";
|
|
287
|
+
ContentVirtual["backLabel"] = "backLabel";
|
|
288
|
+
ContentVirtual["cancelWithdrawalsSuccess"] = "cancelWithdrawalsSuccess";
|
|
289
|
+
ContentVirtual["cancelWithdrawalSuccess"] = "cancelWithdrawalSuccess";
|
|
290
|
+
ContentVirtual["cardDetailsGenericError"] = "cardDetailsGenericError";
|
|
291
|
+
ContentVirtual["cardInformation"] = "cardInformation";
|
|
292
|
+
ContentVirtual["cardNumber"] = "cardNumber";
|
|
293
|
+
ContentVirtual["closeLabel"] = "closeLabel";
|
|
294
|
+
ContentVirtual["closingPromptContent"] = "closingPromptContent";
|
|
295
|
+
ContentVirtual["closingPromptTitle"] = "closingPromptTitle";
|
|
296
|
+
ContentVirtual["completeTransactionDepositInfo"] = "completeTransactionDepositInfo";
|
|
297
|
+
ContentVirtual["completeTransactionDepositSummary"] = "completeTransactionDepositSummary";
|
|
298
|
+
ContentVirtual["completeTransactionDepositTitle"] = "completeTransactionDepositTitle";
|
|
299
|
+
ContentVirtual["completeTransactionWithdrawalInfo"] = "completeTransactionWithdrawalInfo";
|
|
300
|
+
ContentVirtual["completeTransactionWithdrawalSummary"] = "completeTransactionWithdrawalSummary";
|
|
301
|
+
ContentVirtual["completeTransactionWithdrawalTitle"] = "completeTransactionWithdrawalTitle";
|
|
302
|
+
ContentVirtual["confirmationWithdrawingLabel"] = "confirmationWithdrawingLabel";
|
|
303
|
+
ContentVirtual["continueCtaLabel"] = "continueCtaLabel";
|
|
304
|
+
ContentVirtual["creditDebit"] = "creditDebit";
|
|
305
|
+
ContentVirtual["customAmountLabel"] = "customAmountLabel";
|
|
306
|
+
ContentVirtual["cvc"] = "cvc";
|
|
307
|
+
ContentVirtual["cvcTooltipLabel"] = "cvcTooltipLabel";
|
|
308
|
+
ContentVirtual["depositAmountWithoutFee"] = "depositAmountWithoutFee";
|
|
309
|
+
ContentVirtual["depositCtaLabel"] = "depositCtaLabel";
|
|
310
|
+
ContentVirtual["depositTitle"] = "depositTitle";
|
|
311
|
+
ContentVirtual["errorDepositAnotherMethodMessage"] = "errorDepositAnotherMethodMessage";
|
|
312
|
+
ContentVirtual["errorDepositContactSupportMessage"] = "errorDepositContactSupportMessage";
|
|
313
|
+
ContentVirtual["errorDepositCtaMessage"] = "errorDepositCtaMessage";
|
|
314
|
+
ContentVirtual["errorDepositMessage"] = "errorDepositMessage";
|
|
315
|
+
ContentVirtual["errorDepositTitle"] = "errorDepositTitle";
|
|
316
|
+
ContentVirtual["errorDepositTooltip"] = "errorDepositTooltip";
|
|
317
|
+
ContentVirtual["errorDepositTooltipCopied"] = "errorDepositTooltipCopied";
|
|
318
|
+
ContentVirtual["errorVoucherAmountsOutsideLimits"] = "errorVoucherAmountsOutsideLimits";
|
|
319
|
+
ContentVirtual["featuredLabel"] = "featuredLabel";
|
|
320
|
+
ContentVirtual["feeInfo"] = "feeInfo";
|
|
321
|
+
ContentVirtual["feeInfoAboveMin"] = "feeInfoAboveMin";
|
|
322
|
+
ContentVirtual["feeInfoBelowMax"] = "feeInfoBelowMax";
|
|
323
|
+
ContentVirtual["feeInfoWithinRange"] = "feeInfoWithinRange";
|
|
324
|
+
ContentVirtual["feeLabel"] = "feeLabel";
|
|
325
|
+
ContentVirtual["fluentBuyCoinsCustomAmountGoodMessage"] = "fluentBuyCoinsCustomAmountGoodMessage";
|
|
326
|
+
ContentVirtual["fluentBuyCoinsPackSelectedGoodMessage"] = "fluentBuyCoinsPackSelectedGoodMessage";
|
|
327
|
+
ContentVirtual["fluentBuyCoinsPackSelectedGoodTitle"] = "fluentBuyCoinsPackSelectedGoodTitle";
|
|
328
|
+
ContentVirtual["fluentBuyCoinsStoredTitle"] = "fluentBuyCoinsStoredTitle";
|
|
329
|
+
ContentVirtual["fluentChangePackMessage"] = "fluentChangePackMessage";
|
|
330
|
+
ContentVirtual["fluentChangePackTitle"] = "fluentChangePackTitle";
|
|
331
|
+
ContentVirtual["fluentDepositAmountAboveLimit"] = "fluentDepositAmountAboveLimit";
|
|
332
|
+
ContentVirtual["fluentDepositAmountBelowLimit"] = "fluentDepositAmountBelowLimit";
|
|
333
|
+
ContentVirtual["fluentDepositCVCNotRequired"] = "fluentDepositCvcNotRequired";
|
|
334
|
+
ContentVirtual["fluentDepositCVCRequired"] = "fluentDepositCvcRequired";
|
|
335
|
+
ContentVirtual["fluentDepositMessage"] = "fluentDepositMessage";
|
|
336
|
+
ContentVirtual["fluentDepositTitle"] = "fluentDepositTitle";
|
|
337
|
+
ContentVirtual["fluentDepositTitleAmountBad"] = "fluentDepositTitleAmountBad";
|
|
338
|
+
ContentVirtual["fluentDepositTitleAmountGood"] = "fluentDepositTitleAmountGood";
|
|
339
|
+
ContentVirtual["fluentDetailCard"] = "fluentDetailCard";
|
|
340
|
+
ContentVirtual["fluentDetailExternal"] = "fluentDetailExternal";
|
|
341
|
+
ContentVirtual["fluentDetailTitle"] = "fluentDetailTitle";
|
|
342
|
+
ContentVirtual["fluentKycLimitNearlyReachedMessage"] = "fluentKycLimitNearlyReachedMessage";
|
|
343
|
+
ContentVirtual["fluentKycLimitReachedMessage"] = "fluentKycLimitReachedMessage";
|
|
344
|
+
ContentVirtual["fluentMaxAmountWithdrawal"] = "fluentMaxAmountWithdrawal";
|
|
345
|
+
ContentVirtual["fluentMethodCompletePurchaseCustomAmountMessage"] = "fluentMethodCompletePurchaseCustomAmountMessage";
|
|
346
|
+
ContentVirtual["fluentMethodCompletePurchasePackMessage"] = "fluentMethodCompletePurchasePackMessage";
|
|
347
|
+
ContentVirtual["fluentMethodCompletePurchaseTitle"] = "fluentMethodCompletePurchaseTitle";
|
|
348
|
+
ContentVirtual["fluentNoWithdrawableBalanceMessage"] = "fluentNoWithdrawableBalanceMessage";
|
|
349
|
+
ContentVirtual["fluentNoWithdrawableBalanceTitle"] = "fluentNoWithdrawableBalanceTitle";
|
|
350
|
+
ContentVirtual["fluentOnePendingWithdrawalOnlyMessage"] = "fluentOnePendingWithdrawalOnlyMessage";
|
|
351
|
+
ContentVirtual["fluentPendingWithdrawalsMessage"] = "fluentPendingWithdrawalsMessage";
|
|
352
|
+
ContentVirtual["fluentPendingWithdrawalsTitle"] = "fluentPendingWithdrawalsTitle";
|
|
353
|
+
ContentVirtual["fluentVerificationRequiredTitle"] = "fluentVerificationRequiredTitle";
|
|
354
|
+
ContentVirtual["fluentVerifyCta"] = "fluentVerifyCta";
|
|
355
|
+
ContentVirtual["fluentWithdrawalAmountAboveLimit"] = "fluentWithdrawalAmountAboveLimit";
|
|
356
|
+
ContentVirtual["fluentWithdrawalAmountBelowLimit"] = "fluentWithdrawalAmountBelowLimit";
|
|
357
|
+
ContentVirtual["fluentWithdrawalAmountError"] = "fluentWithdrawalAmountError";
|
|
358
|
+
ContentVirtual["fluentWithdrawalAmountGoodMessage"] = "fluentWithdrawalAmountGoodMessage";
|
|
359
|
+
ContentVirtual["fluentWithdrawalFiatAmountGoodMessage"] = "fluentWithdrawalFiatAmountGoodMessage";
|
|
360
|
+
ContentVirtual["fluentWithdrawalAmountGoodTitle"] = "fluentWithdrawalAmountGoodTitle";
|
|
361
|
+
ContentVirtual["fluentWithdrawalAmountMessage"] = "fluentWithdrawalAmountMessage";
|
|
362
|
+
ContentVirtual["fluentWithdrawalAmountTitle"] = "fluentWithdrawalAmountTitle";
|
|
363
|
+
ContentVirtual["fluentWithdrawalDetailDefaultMessage"] = "fluentWithdrawalDetailDefaultMessage";
|
|
364
|
+
ContentVirtual["fluentWithdrawalDetailMessage"] = "fluentWithdrawalDetailMessage";
|
|
365
|
+
ContentVirtual["fluentWithdrawalDetailTitle"] = "fluentWithdrawalDetailTitle";
|
|
366
|
+
ContentVirtual["fluentWithdrawalSummaryMessage"] = "fluentWithdrawalSummaryMessage";
|
|
367
|
+
ContentVirtual["fluentWithdrawalSummaryTitle"] = "fluentWithdrawalSummaryTitle";
|
|
368
|
+
ContentVirtual["goBackModalContent"] = "goBackModalContent";
|
|
369
|
+
ContentVirtual["goBackModalTitle"] = "goBackModalTitle";
|
|
370
|
+
ContentVirtual["johnDoe"] = "johnDoe";
|
|
371
|
+
ContentVirtual["labelButtonCancelAllWithdrawals"] = "labelButtonCancelAllWithdrawals";
|
|
372
|
+
ContentVirtual["labelDeposit"] = "labelDeposit";
|
|
373
|
+
ContentVirtual["labelInfoIcon"] = "labelInfoIcon";
|
|
374
|
+
ContentVirtual["labelWithdraw"] = "labelWithdraw";
|
|
375
|
+
ContentVirtual["landscapeWarning"] = "landscapeWarning";
|
|
376
|
+
ContentVirtual["lockedBalanceTitle"] = "lockedBalanceTitle";
|
|
377
|
+
ContentVirtual["lockedInfoModalContent"] = "lockedInfoModalContent";
|
|
378
|
+
ContentVirtual["lockedInfoModalTitle"] = "lockedInfoModalTitle";
|
|
379
|
+
ContentVirtual["maxAmount"] = "maxAmount";
|
|
380
|
+
ContentVirtual["methodLimitExceededPromptBody"] = "methodLimitExceededPromptBody";
|
|
381
|
+
ContentVirtual["methodLimitExceededPromptOptionDismiss"] = "methodLimitExceededPromptOptionDismiss";
|
|
382
|
+
ContentVirtual["methodLimitExceededPromptOptionEdit"] = "methodLimitExceededPromptOptionEdit";
|
|
383
|
+
ContentVirtual["methodLimitExceededPromptTitle"] = "methodLimitExceededPromptTitle";
|
|
384
|
+
ContentVirtual["minAmount"] = "minAmount";
|
|
385
|
+
ContentVirtual["mmYy"] = "mmYy";
|
|
386
|
+
ContentVirtual["modalFooterCta"] = "modalFooterCta";
|
|
387
|
+
ContentVirtual["modifyAmount"] = "modifyAmount";
|
|
388
|
+
ContentVirtual["moreMethodsLabel"] = "moreMethodsLabel";
|
|
389
|
+
ContentVirtual["nameOnCard"] = "nameOnCard";
|
|
390
|
+
ContentVirtual["negativePromptModalContent"] = "negativePromptModalContent";
|
|
391
|
+
ContentVirtual["newMethod"] = "newMethod";
|
|
392
|
+
ContentVirtual["noPaymentMethodsAvailableMessage"] = "noPaymentMethodsAvailableMessage";
|
|
393
|
+
ContentVirtual["noPaymentMethodsAvailableTitle"] = "noPaymentMethodsAvailableTitle";
|
|
394
|
+
ContentVirtual["noWithdrawalMethodsAvailable"] = "noWithdrawalMethodsAvailable";
|
|
395
|
+
ContentVirtual["orChooseAPackDivider"] = "orChooseAPackDivider";
|
|
396
|
+
ContentVirtual["otherCategoryLabel"] = "otherCategoryLabel";
|
|
397
|
+
ContentVirtual["packSelectionLabel"] = "packSelectionLabel";
|
|
398
|
+
ContentVirtual["paymentMethodInfoModalTitle"] = "paymentMethodInfoModalTitle";
|
|
399
|
+
ContentVirtual["paymentMethodsTitle"] = "paymentMethodsTitle";
|
|
400
|
+
ContentVirtual["pendingTransactionMessage"] = "pendingTransactionMessage";
|
|
401
|
+
ContentVirtual["pendingTransactionTitle"] = "pendingTransactionTitle";
|
|
402
|
+
ContentVirtual["pendingWithdrawalsLinkLabel"] = "pendingWithdrawalsLinkLabel";
|
|
403
|
+
ContentVirtual["phoneNumber"] = "phoneNumber";
|
|
404
|
+
ContentVirtual["phonePrefix"] = "phonePrefix";
|
|
405
|
+
ContentVirtual["positivePromptModalContent"] = "positivePromptModalContent";
|
|
406
|
+
ContentVirtual["promptLabelNegative"] = "promptLabelNegative";
|
|
407
|
+
ContentVirtual["promptLabelPositive"] = "promptLabelPositive";
|
|
408
|
+
ContentVirtual["quickBuyAuthorisationTitle"] = "quickBuyAuthorisationTitle";
|
|
409
|
+
ContentVirtual["quickBuyPaymentMethodDetailsTitle"] = "quickBuyPaymentMethodDetailsTitle";
|
|
410
|
+
ContentVirtual["quickBuyPaymentMethodTitle"] = "quickBuyPaymentMethodTitle";
|
|
411
|
+
ContentVirtual["quickBuyTransactionStatusTitleError"] = "quickBuyTransactionStatusTitleError";
|
|
412
|
+
ContentVirtual["quickBuyTransactionStatusTitleSuccess"] = "quickBuyTransactionStatusTitleSuccess";
|
|
413
|
+
ContentVirtual["quickDepositTitle"] = "quickDepositTitle";
|
|
414
|
+
ContentVirtual["regularPacksDivider"] = "regularPacksDivider";
|
|
415
|
+
ContentVirtual["specialPackDivider"] = "specialPackDivider";
|
|
416
|
+
ContentVirtual["sslTitle"] = "sslTitle";
|
|
417
|
+
ContentVirtual["stickyUpsellClaimButtonText"] = "stickyUpsellClaimButtonText";
|
|
418
|
+
ContentVirtual["storedMethods"] = "storedMethods";
|
|
419
|
+
ContentVirtual["successDepositTitle"] = "successDepositTitle";
|
|
420
|
+
ContentVirtual["successPlayButton"] = "successPlayButton";
|
|
421
|
+
ContentVirtual["successWithdrawalTitle"] = "successWithdrawalTitle";
|
|
422
|
+
ContentVirtual["summaryDepositTitle"] = "summaryDepositTitle";
|
|
423
|
+
ContentVirtual["summaryEditLabel"] = "summaryEditLabel";
|
|
424
|
+
ContentVirtual["summaryWithdrawalCurrencyTitle"] = "summaryWithdrawalCurrencyTitle";
|
|
425
|
+
ContentVirtual["summaryWithdrawalTitle"] = "summaryWithdrawalTitle";
|
|
426
|
+
ContentVirtual["totalAmountMessage"] = "totalAmountMessage";
|
|
427
|
+
ContentVirtual["transactionInfo"] = "transactionInfo";
|
|
428
|
+
ContentVirtual["transactionLoaderMessage"] = "transactionLoaderMessage";
|
|
429
|
+
ContentVirtual["transactionLoaderTitle"] = "transactionLoaderTitle";
|
|
430
|
+
ContentVirtual["transactionSplitVirtualCoin"] = "transactionSplitVirtualCoin";
|
|
431
|
+
ContentVirtual["transactionStatusFailure"] = "transactionStatusFailure";
|
|
432
|
+
ContentVirtual["transactionStatusSuccess"] = "transactionStatusSuccess";
|
|
433
|
+
ContentVirtual["updateAvailableCta"] = "updateAvailableCta";
|
|
434
|
+
ContentVirtual["updateAvailableMessage"] = "updateAvailableMessage";
|
|
435
|
+
ContentVirtual["updateAvailableTitle"] = "updateAvailableTitle";
|
|
436
|
+
ContentVirtual["upsellCarouselSpecialOfferDivider"] = "upsellCarouselSpecialOfferDivider";
|
|
437
|
+
ContentVirtual["upsellClaimedButtonText"] = "upsellClaimedButtonText";
|
|
438
|
+
ContentVirtual["upsellTimerPaused"] = "upsellTimerPaused";
|
|
439
|
+
ContentVirtual["userCloseBrowserTabPromptMessage"] = "userCloseBrowserTabPromptMessage";
|
|
440
|
+
ContentVirtual["verificationScreenCtaLabel"] = "verificationScreenCtaLabel";
|
|
441
|
+
ContentVirtual["verificationScreenMessage"] = "verificationScreenMessage";
|
|
442
|
+
ContentVirtual["verificationScreenTitle"] = "verificationScreenTitle";
|
|
443
|
+
ContentVirtual["viewAllPacksCta"] = "viewAllPacksCta";
|
|
444
|
+
ContentVirtual["withdrawalAmountLeftoverAfterFees"] = "withdrawalAmountLeftoverAfterFees";
|
|
445
|
+
ContentVirtual["withdrawalApproved"] = "withdrawalApproved";
|
|
446
|
+
ContentVirtual["withdrawalCancelLabel"] = "withdrawalCancelLabel";
|
|
447
|
+
ContentVirtual["withdrawalCancelModalButtonNegative"] = "withdrawalCancelModalButtonNegative";
|
|
448
|
+
ContentVirtual["withdrawalCancelModalButtonPositive"] = "withdrawalCancelModalButtonPositive";
|
|
449
|
+
ContentVirtual["withdrawalCancelModalContent"] = "withdrawalCancelModalContent";
|
|
450
|
+
ContentVirtual["withdrawalCancelModalTitle"] = "withdrawalCancelModalTitle";
|
|
451
|
+
ContentVirtual["withdrawalCtaLabel"] = "withdrawalCtaLabel";
|
|
452
|
+
ContentVirtual["withdrawalInfoModalContent"] = "withdrawalInfoModalContent";
|
|
453
|
+
ContentVirtual["withdrawalInfoModalTitle"] = "withdrawalInfoModalTitle";
|
|
454
|
+
ContentVirtual["withdrawalListTitle"] = "withdrawalListTitle";
|
|
455
|
+
ContentVirtual["withdrawalProcessing"] = "withdrawalProcessing";
|
|
456
|
+
ContentVirtual["withdrawalRemainingBalance"] = "withdrawalRemainingBalance";
|
|
457
|
+
ContentVirtual["withdrawalRequestDate"] = "withdrawalRequestDate";
|
|
458
|
+
ContentVirtual["withdrawalRequested"] = "withdrawalRequested";
|
|
459
|
+
ContentVirtual["withdrawalTitle"] = "withdrawalTitle";
|
|
460
|
+
ContentVirtual["withdrawalTransactionIdLabel"] = "withdrawalTransactionIdLabel";
|
|
461
|
+
ContentVirtual["withMethod"] = "withMethod";
|
|
462
|
+
})(ContentVirtual || (ContentVirtual = {}));
|
package/lib/wallet.d.ts
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { TransactionOptions } from './transactions.js';
|
|
2
|
+
import type { UserData } from './user.js';
|
|
3
|
+
export declare enum Integration {
|
|
4
|
+
LEFT = "LEFT",
|
|
5
|
+
CENTER = "CENTER",
|
|
6
|
+
RIGHT = "RIGHT",
|
|
7
|
+
INLINE = "INLINE"
|
|
8
|
+
}
|
|
9
|
+
export interface Viewport {
|
|
10
|
+
innerWidth: number;
|
|
11
|
+
innerHeight: number;
|
|
12
|
+
}
|
|
13
|
+
export interface WalletRequestBody {
|
|
14
|
+
payload?: object | string;
|
|
15
|
+
payloadOptions?: TransactionOptions;
|
|
16
|
+
}
|
|
17
|
+
export interface WalletInitParams {
|
|
18
|
+
country: string;
|
|
19
|
+
ipAddress: string;
|
|
20
|
+
locale: string;
|
|
21
|
+
currency: string;
|
|
22
|
+
operatorId: number;
|
|
23
|
+
sessionId: string;
|
|
24
|
+
userId: string | number;
|
|
25
|
+
userAgent: string;
|
|
26
|
+
viewport: Viewport;
|
|
27
|
+
userData?: UserData;
|
|
28
|
+
timestamp: string;
|
|
29
|
+
buildDate: string;
|
|
30
|
+
hostSiteUrl: string;
|
|
31
|
+
virtual: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface WalletConfig {
|
|
34
|
+
allowCustomAmount: boolean;
|
|
35
|
+
autofillCreditCardName: boolean;
|
|
36
|
+
balanceDisplayed: boolean;
|
|
37
|
+
banner?: Banner;
|
|
38
|
+
bonusOutlined: boolean;
|
|
39
|
+
campaign?: Campaign;
|
|
40
|
+
cardHolderNameRegex: string | null;
|
|
41
|
+
contactSupportEnabled: boolean;
|
|
42
|
+
contactSupportLink: string;
|
|
43
|
+
contentText: Record<string, string>;
|
|
44
|
+
expressFlowEnabled: boolean;
|
|
45
|
+
defaultDepositAmount: number;
|
|
46
|
+
fullListOfDepositMethodsDisplayed: boolean;
|
|
47
|
+
hideMinMaxEnabled: boolean;
|
|
48
|
+
integration: Integration;
|
|
49
|
+
kycDepositLimit: number | null;
|
|
50
|
+
manualBonusCodesEnabled?: boolean;
|
|
51
|
+
pendingWithdrawalsReminder: {
|
|
52
|
+
threshold: number;
|
|
53
|
+
userResponseRequired: boolean;
|
|
54
|
+
};
|
|
55
|
+
successScreen: {
|
|
56
|
+
promotion: Promotion | null;
|
|
57
|
+
};
|
|
58
|
+
suggestedDepositAmounts: number[];
|
|
59
|
+
theme: Record<string, string>;
|
|
60
|
+
transactionToggleDisplayed: boolean;
|
|
61
|
+
withdrawalInFiatCurrency: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface Promotion {
|
|
64
|
+
title: string;
|
|
65
|
+
description: string;
|
|
66
|
+
tag: string;
|
|
67
|
+
ctaLinkLabel: string;
|
|
68
|
+
ctaLinkUrl: string;
|
|
69
|
+
thumbnail: string;
|
|
70
|
+
}
|
|
71
|
+
export interface Banner {
|
|
72
|
+
title: string;
|
|
73
|
+
body: string;
|
|
74
|
+
ctaLabel: string;
|
|
75
|
+
iconUrl: string;
|
|
76
|
+
}
|
|
77
|
+
export interface CampaignChatIcons {
|
|
78
|
+
amount?: string;
|
|
79
|
+
bonus?: string;
|
|
80
|
+
paymentMethod?: string;
|
|
81
|
+
paymentDetails?: string;
|
|
82
|
+
securePayment?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface Campaign {
|
|
85
|
+
enableSuccessAnimation: boolean;
|
|
86
|
+
customChatIcons?: CampaignChatIcons;
|
|
87
|
+
}
|
|
88
|
+
export interface DepositAmountsSettings {
|
|
89
|
+
id?: string;
|
|
90
|
+
defaultDepositAmount: number;
|
|
91
|
+
suggestedDepositAmounts: number[];
|
|
92
|
+
}
|
package/lib/wallet.js
ADDED
package/package.json
CHANGED
package/src/bonus.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface AvailableBonusWithPaymentMethods {
|
|
2
|
+
code: string;
|
|
3
|
+
paymentMethodFilter?: {
|
|
4
|
+
applyTo?: BonusPaymentMethod[];
|
|
5
|
+
excludeFrom?: BonusPaymentMethod[];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface BonusPaymentMethod {
|
|
10
|
+
providerType: string;
|
|
11
|
+
service?: string;
|
|
12
|
+
}
|