@soltech/fluid-common 1.15.0 → 1.16.0-sc25233.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/flows.d.ts +92 -0
- package/lib/flows.js +3 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/package.json +5 -2
- package/.claude/settings.local.json +0 -12
- package/.editorconfig +0 -21
- package/.eslintignore +0 -2
- package/.eslintrc +0 -11
- package/.gitattributes +0 -2
- package/.greptile/config.json +0 -13
- package/.husky/pre-commit +0 -3
- package/.nvmrc +0 -2
- package/AGENTS.md +0 -5
- package/CLAUDE.md +0 -78
- package/src/bonus.ts +0 -12
- package/src/index.ts +0 -7
- package/src/payment-methods.ts +0 -165
- package/src/tracking.ts +0 -26
- package/src/transactions.ts +0 -179
- package/src/user.ts +0 -23
- package/src/wallet-config-keys.ts +0 -472
- package/src/wallet.ts +0 -114
- package/tsconfig.json +0 -23
package/lib/flows.d.ts
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare const FLOW_SCHEMA_VERSION = 1;
|
|
2
|
+
export declare const FLOW_TRANSACTIONS: readonly ["deposit", "withdrawal", "quickDeposit", "inlineQuickDeposit", "*"];
|
|
3
|
+
export type FlowTransaction = typeof FLOW_TRANSACTIONS[number];
|
|
4
|
+
export declare const FLOW_ELEMENTS: readonly ["widget", "virtual", "inline"];
|
|
5
|
+
export type FlowElement = typeof FLOW_ELEMENTS[number];
|
|
6
|
+
export type HeaderTitleKind = 'CONTENT_KEY' | 'METHOD_NAME' | 'TRANSACTION_STATUS';
|
|
7
|
+
export interface ViewChrome {
|
|
8
|
+
header: {
|
|
9
|
+
titleType: HeaderTitleKind;
|
|
10
|
+
titleKey?: string;
|
|
11
|
+
subtitleKey?: string;
|
|
12
|
+
transactionToggleReplacesTitle?: boolean;
|
|
13
|
+
};
|
|
14
|
+
footer?: {
|
|
15
|
+
sticky: boolean;
|
|
16
|
+
ctaForNewMethod?: string;
|
|
17
|
+
ctaForStoredMethod?: string;
|
|
18
|
+
ctaForNewMethodAmongStored?: string;
|
|
19
|
+
ctaForFailure?: string;
|
|
20
|
+
};
|
|
21
|
+
hasForm?: boolean;
|
|
22
|
+
noBack?: boolean;
|
|
23
|
+
abortNeedsConfirmation?: boolean;
|
|
24
|
+
abortShowsAbandonModal?: boolean;
|
|
25
|
+
showRefreshWarning?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface ViewChromeOverride extends Omit<Partial<ViewChrome>, 'header' | 'footer'> {
|
|
28
|
+
header?: Partial<ViewChrome['header']>;
|
|
29
|
+
footer?: Partial<NonNullable<ViewChrome['footer']>>;
|
|
30
|
+
}
|
|
31
|
+
export interface StepGuards {
|
|
32
|
+
conditions: {
|
|
33
|
+
condition: string;
|
|
34
|
+
handler: string;
|
|
35
|
+
}[];
|
|
36
|
+
alternativeCta: string;
|
|
37
|
+
}
|
|
38
|
+
export interface StepEntry {
|
|
39
|
+
id: string;
|
|
40
|
+
view: string;
|
|
41
|
+
features?: string[];
|
|
42
|
+
validity?: string;
|
|
43
|
+
autoEnter?: string;
|
|
44
|
+
advance?: string;
|
|
45
|
+
guards?: StepGuards;
|
|
46
|
+
chrome?: ViewChromeOverride;
|
|
47
|
+
}
|
|
48
|
+
export interface FlowDefinition {
|
|
49
|
+
id?: string;
|
|
50
|
+
slug: string;
|
|
51
|
+
entry: {
|
|
52
|
+
transaction: FlowTransaction;
|
|
53
|
+
element: FlowElement;
|
|
54
|
+
};
|
|
55
|
+
when?: string[];
|
|
56
|
+
setup?: string;
|
|
57
|
+
steps: StepEntry[];
|
|
58
|
+
}
|
|
59
|
+
export interface FlowSet {
|
|
60
|
+
schemaVersion: typeof FLOW_SCHEMA_VERSION;
|
|
61
|
+
catalogueVersion: string;
|
|
62
|
+
flows: FlowDefinition[];
|
|
63
|
+
}
|
|
64
|
+
export interface StepCatalogueEntry {
|
|
65
|
+
requires: string[];
|
|
66
|
+
terminal: boolean;
|
|
67
|
+
views: string[];
|
|
68
|
+
}
|
|
69
|
+
export interface ViewCatalogueEntry {
|
|
70
|
+
chrome: ViewChrome;
|
|
71
|
+
provides: string[];
|
|
72
|
+
features?: {
|
|
73
|
+
accepts: string[];
|
|
74
|
+
required: string[];
|
|
75
|
+
defaultOrder: string[];
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export interface Catalogue {
|
|
79
|
+
catalogueVersion: string;
|
|
80
|
+
steps: Record<string, StepCatalogueEntry>;
|
|
81
|
+
views: Record<string, ViewCatalogueEntry>;
|
|
82
|
+
features: Record<string, {
|
|
83
|
+
provides: string[];
|
|
84
|
+
}>;
|
|
85
|
+
predicates: Record<string, {
|
|
86
|
+
needs: string[];
|
|
87
|
+
}>;
|
|
88
|
+
handlers: Record<string, {
|
|
89
|
+
provides: string[];
|
|
90
|
+
}>;
|
|
91
|
+
selectionFacts: string[];
|
|
92
|
+
}
|
package/lib/flows.js
ADDED
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soltech/fluid-common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0-sc25233.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Fluid frontend, API and AI common interfaces & enums",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
|
-
"types
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib"
|
|
10
|
+
],
|
|
8
11
|
"scripts": {
|
|
9
12
|
"dev": "tsc --watch",
|
|
10
13
|
"build": "tsc",
|
package/.editorconfig
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# EditorConfig is awesome: https://EditorConfig.org
|
|
2
|
-
|
|
3
|
-
# top-most EditorConfig file
|
|
4
|
-
root = true
|
|
5
|
-
|
|
6
|
-
# Unix-style newlines with a newline ending every file
|
|
7
|
-
[*]
|
|
8
|
-
charset = utf-8
|
|
9
|
-
indent_style = tab
|
|
10
|
-
indent_size = 4
|
|
11
|
-
end_of_line = lf
|
|
12
|
-
max_line_length = 140
|
|
13
|
-
insert_final_newline = true
|
|
14
|
-
trim_trailing_whitespace = true
|
|
15
|
-
|
|
16
|
-
[*.md]
|
|
17
|
-
trim_trailing_whitespace = false
|
|
18
|
-
max_line_length = off
|
|
19
|
-
|
|
20
|
-
[{package.json,package-lock.json}]
|
|
21
|
-
max_line_length = off
|
package/.eslintignore
DELETED
package/.eslintrc
DELETED
package/.gitattributes
DELETED
package/.greptile/config.json
DELETED
package/.husky/pre-commit
DELETED
package/.nvmrc
DELETED
package/AGENTS.md
DELETED
package/CLAUDE.md
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# CLAUDE.md – Instructions for AI Coding Agents
|
|
2
|
-
|
|
3
|
-
Read this entire file before every task.
|
|
4
|
-
|
|
5
|
-
## Agent Rules & Safety
|
|
6
|
-
- Never edit any files when the current git branch is `main` — always work on a feature branch. Run `git branch --show-current` to confirm before making any changes.
|
|
7
|
-
- Never touch `.env*`, `certs/` or any file containing secrets/credentials.
|
|
8
|
-
- Never introduce new dependencies without asking first.
|
|
9
|
-
- Never rewrite large parts of the codebase unless explicitly requested.
|
|
10
|
-
- Never put Shortcut ticket numbers (`sc-XXXXX` or bare story IDs) in code or test files — use descriptive names/comments instead. Ticket links belong only in PR descriptions and branch names, never in source. Some older tests embed IDs in `describe` blocks; do not copy that pattern.
|
|
11
|
-
- Keep comments to only what is necessary — comment the *why* behind non-obvious decisions, not the *what* of self-explanatory code. Don't narrate obvious operations, restate the code in prose, or leave placeholder/TODO noise. Prefer clear names over explanatory comments.
|
|
12
|
-
- Always propose changes as diffs or small file edits and get approval before applying.
|
|
13
|
-
- If unsure about architecture, style, or impact, ask before coding.
|
|
14
|
-
|
|
15
|
-
## Project Overview & Architecture
|
|
16
|
-
- TypeScript-only package containing shared interfaces and enums used by both `fluid-widget` (frontend) and `fluid-api` (API/middleware).
|
|
17
|
-
- Source of truth is the domain modules in `src/` (`wallet`, `wallet-config-keys`, `payment-methods`, `transactions`, `user`, `bonus`, `tracking`). `src/index.ts` only re-exports them — add a new type to the module it belongs to, never to `index.ts`.
|
|
18
|
-
- Build output is generated in `lib/` and must not be edited by hand.
|
|
19
|
-
|
|
20
|
-
## Build, Dev & Validation
|
|
21
|
-
- Build: `npm run build`
|
|
22
|
-
- Lint: `npm run lint`
|
|
23
|
-
- Publish: see Publishing Flow below
|
|
24
|
-
|
|
25
|
-
### Developing against a consumer
|
|
26
|
-
|
|
27
|
-
`fluid-api` and `fluid-widget` import the built `lib/`, never `src/`. To test a change without publishing:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npm run build && npm link # here
|
|
31
|
-
cd ../fluid-api && npm link @soltech/fluid-common # and in each consumer
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Two things fail silently, with no error in either repo:
|
|
35
|
-
|
|
36
|
-
- **`lib/` goes stale.** Consumers read `lib/`, so an edit to `src/` is invisible until it is rebuilt. Keep `npm run dev` (`tsc --watch`) running while you work, or rebuild by hand after every change.
|
|
37
|
-
- **`npm install` in a consumer drops the link.** It replaces the symlink with the registry copy, so the consumer quietly falls back to the published version. Re-link after any install. `ls -l <consumer>/node_modules/@soltech/fluid-common` tells you which you have: a symlink, or a real directory.
|
|
38
|
-
|
|
39
|
-
### Publishing Flow
|
|
40
|
-
The correct sequence before publishing a new version:
|
|
41
|
-
1. Make all code changes in `src/`.
|
|
42
|
-
2. Bump `version` in `package.json`.
|
|
43
|
-
3. Run `npm i` (updates `package-lock.json`).
|
|
44
|
-
4. Commit all changes (`src/`, `package.json`, `package-lock.json`).
|
|
45
|
-
5. Push the commit: `git push`.
|
|
46
|
-
6. Publish to npm: `npm publish`. Its `prepublishOnly` script rebuilds `lib/` first, so the package never ships stale compiled output.
|
|
47
|
-
|
|
48
|
-
Do **not** use `npm run pub` as a single command — it pushes *after* publishing, which means npm gets the package before git has a clean commit.
|
|
49
|
-
|
|
50
|
-
Consumers must pin an **exact** version (`"1.10.0"`), never a caret range (`"^1.10.0"`). Branch-specific prereleases are common here, so a range can pull in a version the consumer was never tested against.
|
|
51
|
-
|
|
52
|
-
Before final proposal on code changes:
|
|
53
|
-
1. Run `npm run lint`.
|
|
54
|
-
2. Run `npm run build`.
|
|
55
|
-
3. If you did not run them, say so.
|
|
56
|
-
|
|
57
|
-
## Coding Style & Conventions
|
|
58
|
-
- Follow `.editorconfig` (tabs, max line length 140).
|
|
59
|
-
- Follow ESLint config `@soltech`.
|
|
60
|
-
|
|
61
|
-
## Testing
|
|
62
|
-
- There is no testing in this repo.
|
|
63
|
-
|
|
64
|
-
## Versioning
|
|
65
|
-
- When changes are meant for release, bump `package.json` version per README guidance.
|
|
66
|
-
|
|
67
|
-
## Pull Requests
|
|
68
|
-
|
|
69
|
-
When creating PRs, always include a Shortcut ticket reference in the PR body using the `[sc-NNNNN]` format so it automatically links to the ticket:
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
[sc-17649](https://app.shortcut.com/soltech/story/17649/ticket-title-slug)
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### PR description scope
|
|
76
|
-
|
|
77
|
-
- The PR description must reflect **all changes in the branch**, not just the most recent commit. Run `git log main..HEAD` and review the full diff before writing or updating the description.
|
|
78
|
-
- When a ticket spans multiple repos (e.g. a type/enum change here in `fluid-common` that also requires updates in `fluid-api`, `fluid-widget`, or `fluid-payments`), list the related repos and their PRs in the description so reviewers have the full picture. Name each repo, briefly describe what changed, and cross-link the corresponding PRs.
|
package/src/bonus.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
package/src/index.ts
DELETED
package/src/payment-methods.ts
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import type { WindowRedirectType } from './transactions.js';
|
|
2
|
-
|
|
3
|
-
export enum PaymentType {
|
|
4
|
-
APPLE_PAY = 'ApplePay',
|
|
5
|
-
BANK_TRANSFER = 'BankTransfer',
|
|
6
|
-
CREDIT_CARD = 'CreditCard',
|
|
7
|
-
CRYPTO = 'Crypto',
|
|
8
|
-
EWALLET = 'EWallet',
|
|
9
|
-
VOUCHER = 'Voucher'
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type TransactionStatusSource = 'gateway' | 'fluid';
|
|
13
|
-
|
|
14
|
-
export interface TransactionStatusCheck {
|
|
15
|
-
url: string;
|
|
16
|
-
intervalSeconds: number;
|
|
17
|
-
source?: TransactionStatusSource;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface AllPaymentMethods {
|
|
21
|
-
recentPaymentMethods: RecentMethod[];
|
|
22
|
-
paymentMethods: PaymentMethod[];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface AllPaymentMethodsByTransactionType {
|
|
26
|
-
deposit: AllPaymentMethods,
|
|
27
|
-
withdrawal: AllPaymentMethods
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface PaymentMethod {
|
|
31
|
-
id: string;
|
|
32
|
-
name: string;
|
|
33
|
-
paymentGatewayId: string;
|
|
34
|
-
description: string;
|
|
35
|
-
termsAndConditions: string;
|
|
36
|
-
logo: PaymentMethodLogo;
|
|
37
|
-
logoLight?: PaymentMethodLogo;
|
|
38
|
-
minAmount: number;
|
|
39
|
-
maxAmount: number;
|
|
40
|
-
info: string;
|
|
41
|
-
paymentType: PaymentType;
|
|
42
|
-
inputFields?: InputField[];
|
|
43
|
-
storedMethodInputFields?: InputField[];
|
|
44
|
-
bonusCodes?: string[];
|
|
45
|
-
instructions?: string;
|
|
46
|
-
withdrawalInstructions?: string;
|
|
47
|
-
fees?: PaymentMethodFees;
|
|
48
|
-
windowRedirectType?: WindowRedirectType;
|
|
49
|
-
voucherAmounts?: number[];
|
|
50
|
-
depositHandledByHostSite?: boolean;
|
|
51
|
-
withdrawalHandledByHostSite?: boolean;
|
|
52
|
-
transactionStatusCheck?: TransactionStatusCheck;
|
|
53
|
-
finalTransactionResultCheckEnabled?: boolean;
|
|
54
|
-
encryptionSettings?: EncryptionSettings;
|
|
55
|
-
hostedFields?: HostedFieldsSettings;
|
|
56
|
-
deviceProtection?: DeviceProtectionSettings;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/** Its presence is also how the client decides the gateway behind this method profiles at all. */
|
|
60
|
-
export interface DeviceProtectionSettings {
|
|
61
|
-
merchantId: string;
|
|
62
|
-
env: string;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface EncryptionSettings {
|
|
66
|
-
encryptionType: EncryptionType;
|
|
67
|
-
expiryDateEncryptionMode: ExpiryDateEncryptionMode;
|
|
68
|
-
encryptCardholderName: boolean;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export type HostedFieldsSettings = CardValuesSettings | CardTokenSettings;
|
|
72
|
-
|
|
73
|
-
interface HostedFieldsBase {
|
|
74
|
-
// Its presence is also how the client decides a method uses hosted fields at all.
|
|
75
|
-
url: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface CardValuesSettings extends HostedFieldsBase {
|
|
79
|
-
// Absent selects this protocol, so responses composed before the field existed keep working.
|
|
80
|
-
protocol?: HostedFieldsProtocol.CARD_VALUES;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export interface CardTokenSettings extends HostedFieldsBase {
|
|
84
|
-
protocol: HostedFieldsProtocol.CARD_TOKEN;
|
|
85
|
-
params: CardTokenParams;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface CardTokenParams {
|
|
89
|
-
merchantId: string;
|
|
90
|
-
env: string;
|
|
91
|
-
// Set only on a stored method, whose fields re-verify a card rather than collect a new one.
|
|
92
|
-
token?: string;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Which message contract the client must speak to the hosted fields, not which gateway
|
|
96
|
-
// is behind them — the gateway's identity stays server-side.
|
|
97
|
-
export enum HostedFieldsProtocol {
|
|
98
|
-
CARD_VALUES = 'CardValues',
|
|
99
|
-
CARD_TOKEN = 'CardToken'
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export enum EncryptionType {
|
|
103
|
-
NO_ENCRYPTION = 'NO_ENCRYPTION',
|
|
104
|
-
RSA_PKCS1 = 'RSA_PKCS1', // RSA with PKCS#1 v1.5 padding (jsencrypt default)
|
|
105
|
-
RSA_OAEP = 'RSA_OAEP', // RSA with OAEP padding (crypto/Web Crypto)
|
|
106
|
-
SHA384_SIGNATURE = 'SHA384_SIGNATURE' // SHA-384-based signature (headers)
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export enum ExpiryDateEncryptionMode {
|
|
110
|
-
NONE = 'NONE',
|
|
111
|
-
SEPARATE_FIELDS = 'SEPARATE_FIELDS',
|
|
112
|
-
SINGLE_FIELD = 'SINGLE_FIELD'
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export type PaymentMethodFees = {
|
|
116
|
-
fixed?: number;
|
|
117
|
-
percentage?: number;
|
|
118
|
-
applyToRange?: {
|
|
119
|
-
min?: number;
|
|
120
|
-
max?: number;
|
|
121
|
-
}
|
|
122
|
-
}[];
|
|
123
|
-
|
|
124
|
-
export interface PaymentMethodLogo {
|
|
125
|
-
height: number;
|
|
126
|
-
url: string;
|
|
127
|
-
width: number;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export interface InputField {
|
|
131
|
-
paramName: string;
|
|
132
|
-
format: string;
|
|
133
|
-
text: string;
|
|
134
|
-
placeholderText: string;
|
|
135
|
-
errorText: string;
|
|
136
|
-
optional: boolean;
|
|
137
|
-
options: InputFieldOption[];
|
|
138
|
-
prefillKey?: string;
|
|
139
|
-
removePrefixPlusSign?: boolean;
|
|
140
|
-
relatesTo?: string;
|
|
141
|
-
showForValues?: string[];
|
|
142
|
-
isPassword?: boolean;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export interface InputFieldOption {
|
|
146
|
-
label: string;
|
|
147
|
-
code: string;
|
|
148
|
-
relatesTo?: string;
|
|
149
|
-
showForValues?: string[];
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export enum RecentMethodMaskedAccountFormat {
|
|
153
|
-
DEFAULT = 'Default',
|
|
154
|
-
LAST_8_DIGITS = 'Last8Digits',
|
|
155
|
-
FULL_VALUE = 'FullValue',
|
|
156
|
-
NOTHING = 'Nothing'
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface RecentMethod extends PaymentMethod {
|
|
160
|
-
accountId: string;
|
|
161
|
-
maskedAccount: string;
|
|
162
|
-
lastSuccess?: string;
|
|
163
|
-
expiryDate?: string;
|
|
164
|
-
maskedAccountFormat?: RecentMethodMaskedAccountFormat;
|
|
165
|
-
}
|
package/src/tracking.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface TrackingEvent {
|
|
2
|
-
eventId: string;
|
|
3
|
-
data: object;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface TrackingEventData {
|
|
7
|
-
id: string;
|
|
8
|
-
event: string;
|
|
9
|
-
operatorId?: string;
|
|
10
|
-
timestamp?: string | number | Date;
|
|
11
|
-
activityId?: string;
|
|
12
|
-
originalActivityId?: string;
|
|
13
|
-
bonusesOffered?: boolean;
|
|
14
|
-
country?: string;
|
|
15
|
-
sessionId?: string;
|
|
16
|
-
userAgent?: string;
|
|
17
|
-
userId?: string;
|
|
18
|
-
|
|
19
|
-
[key: string]: unknown;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type TrackingEventDataEnvelope = {
|
|
23
|
-
id: string;
|
|
24
|
-
environment: 'production' | 'staging' | 'demo';
|
|
25
|
-
body: TrackingEventData;
|
|
26
|
-
};
|
package/src/transactions.ts
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import type { UserData } from './user.js';
|
|
2
|
-
|
|
3
|
-
export enum WindowRedirectType {
|
|
4
|
-
POPUP_WINDOW = 'popupWindow',
|
|
5
|
-
BROWSER_TAB = 'browserTab',
|
|
6
|
-
NONE = 'none'
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface TransactionParams {
|
|
10
|
-
accountId?: string;
|
|
11
|
-
amount: number;
|
|
12
|
-
paymentMethodId: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/** Not on `TransactionParams`: `DynamicTransactionParams` adds an index signature this fails. */
|
|
16
|
-
export interface GatewayProtectionParams {
|
|
17
|
-
protectionHeaders?: Record<string, string>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface CreditcardTransactionParams extends TransactionParams, GatewayProtectionParams {
|
|
21
|
-
cardHolder?: string;
|
|
22
|
-
cardNumber?: string;
|
|
23
|
-
cvc: string;
|
|
24
|
-
expiryMonth?: string;
|
|
25
|
-
expiryYear?: string;
|
|
26
|
-
expiryDate?: string;
|
|
27
|
-
cardToken?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface ApplePayTransactionParams extends TransactionParams, GatewayProtectionParams {
|
|
31
|
-
/** The authorised `ApplePayPaymentToken`, serialised, opaque to everything but the gateway. */
|
|
32
|
-
token: string;
|
|
33
|
-
billingContact?: ApplePayContact;
|
|
34
|
-
/** Apple returns the payer's email here, not on the billing contact. */
|
|
35
|
-
shippingContact?: ApplePayContact;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* What the cashier needs to open the sheet. Every field describes the merchant, not the payer —
|
|
40
|
-
* `countryCode` included, which is what Apple asks for here.
|
|
41
|
-
*/
|
|
42
|
-
export interface ApplePayParams {
|
|
43
|
-
countryCode: string;
|
|
44
|
-
companyName: string;
|
|
45
|
-
supportedNetworks: string[];
|
|
46
|
-
/** Apple's `ApplePayMerchantCapability` values; a DOM type neither server can name. */
|
|
47
|
-
merchantCapabilities: string[];
|
|
48
|
-
merchantIdentifier?: string;
|
|
49
|
-
requiresContactDetails: boolean;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Apple's own `ApplePayPaymentContact` shape, carried through unchanged: a gateway that wants
|
|
54
|
-
* it expects the field names Apple uses. Only present when the method asks the sheet for it.
|
|
55
|
-
*/
|
|
56
|
-
export interface ApplePayContact {
|
|
57
|
-
addressLines?: string[];
|
|
58
|
-
administrativeArea?: string;
|
|
59
|
-
country?: string;
|
|
60
|
-
countryCode?: string;
|
|
61
|
-
emailAddress?: string;
|
|
62
|
-
familyName?: string;
|
|
63
|
-
givenName?: string;
|
|
64
|
-
locality?: string;
|
|
65
|
-
phoneNumber?: string;
|
|
66
|
-
postalCode?: string;
|
|
67
|
-
subAdministrativeArea?: string;
|
|
68
|
-
subLocality?: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/** The request that concludes a deposit the payer had to act on away from the cashier, a 3DS challenge being the case that needs it. */
|
|
72
|
-
export interface DepositContinuationParams {
|
|
73
|
-
paymentMethodId: string;
|
|
74
|
-
/** Ours, identifying the purchase across both charge attempts. */
|
|
75
|
-
transactionId: string;
|
|
76
|
-
/** The gateway's, identifying the challenge the payer completed. */
|
|
77
|
-
threeDsTransactionId: string;
|
|
78
|
-
cardToken: string;
|
|
79
|
-
expiryMonth?: string;
|
|
80
|
-
expiryYear?: string;
|
|
81
|
-
protectionHeaders?: Record<string, string>;
|
|
82
|
-
/** A credential: carried on the challenge and handed back, never logged. */
|
|
83
|
-
sessionKey?: string;
|
|
84
|
-
/** The stored method the purchase began on, so the concluding charge keeps its endpoint. */
|
|
85
|
-
accountId?: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Transaction params for any payment method whose payload is keyed dynamically by
|
|
90
|
-
* CMS-defined input fields (bank transfer, crypto, e-wallet, voucher).
|
|
91
|
-
* Field keys typically come from `PaymentMethod.inputFields[].paramName`.
|
|
92
|
-
*/
|
|
93
|
-
export interface DynamicTransactionParams extends TransactionParams {
|
|
94
|
-
[key: string]: string | number | undefined;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface TransactionOptions {
|
|
98
|
-
bonusCode?: string;
|
|
99
|
-
activityId?: string;
|
|
100
|
-
originalActivityId?: string;
|
|
101
|
-
userData?: UserData;
|
|
102
|
-
trackingData?: object;
|
|
103
|
-
transactionAttributes?: Record<string, string>;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface TransactionResult {
|
|
107
|
-
error?: ProviderTransactionError;
|
|
108
|
-
redirectOutput?: RedirectOutput;
|
|
109
|
-
state: TransactionState;
|
|
110
|
-
statusCode: string;
|
|
111
|
-
transactionId: string;
|
|
112
|
-
pspStatusCode?: string;
|
|
113
|
-
details?: Record<string, unknown>;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export interface RedirectOutput {
|
|
117
|
-
container: RedirectContainer;
|
|
118
|
-
height?: number;
|
|
119
|
-
html?: string;
|
|
120
|
-
method?: HttpVerb;
|
|
121
|
-
parameters?: Record<string, string>;
|
|
122
|
-
sizeUnit?: string;
|
|
123
|
-
url: string;
|
|
124
|
-
width?: number;
|
|
125
|
-
purpose?: RedirectPurpose;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export type RedirectContainer = 'iframe' | 'window' | 'redirect';
|
|
129
|
-
|
|
130
|
-
export enum RedirectPurpose {
|
|
131
|
-
BANK_LINKING = 'BANK_LINKING'
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export enum TransactionState {
|
|
135
|
-
SUCCESS = 'SUCCESS',
|
|
136
|
-
FAIL = 'FAIL',
|
|
137
|
-
PROCESSING = 'PROCESSING',
|
|
138
|
-
WAITING_APPROVAL = 'WAITING_APPROVAL',
|
|
139
|
-
WAITING_INPUT = 'WAITING_INPUT',
|
|
140
|
-
CANCELLED = 'CANCELLED'
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface ProviderTransactionError {
|
|
144
|
-
action: Action;
|
|
145
|
-
code: string;
|
|
146
|
-
providerCode: string;
|
|
147
|
-
text: string;
|
|
148
|
-
textTitle: string;
|
|
149
|
-
iconSelection: string;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export enum HttpVerb {
|
|
153
|
-
DELETE = 'DELETE',
|
|
154
|
-
GET = 'GET',
|
|
155
|
-
POST = 'POST',
|
|
156
|
-
PUT = 'PUT'
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export enum Action {
|
|
160
|
-
RESTART_PRESERVING_DETAILS = 'RESTART_PRESERVING_DETAILS',
|
|
161
|
-
RESTART_CLEARING_DETAILS = 'RESTART_CLEARING_DETAILS',
|
|
162
|
-
SHOW_DETAILS_STEP_PRESERVING_DETAILS = 'SHOW_DETAILS_STEP_PRESERVING_DETAILS',
|
|
163
|
-
SHOW_DETAILS_STEP_CLEARING_DETAILS = 'SHOW_DETAILS_STEP_CLEARING_DETAILS',
|
|
164
|
-
SHOW_CVC_EDIT = 'SHOW_CVC_EDIT',
|
|
165
|
-
DISMISS = 'DISMISS'
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export interface PendingWithdrawal {
|
|
169
|
-
amount: string;
|
|
170
|
-
creationDate: string;
|
|
171
|
-
state: WithdrawalState;
|
|
172
|
-
transactionId: string;
|
|
173
|
-
paymentGatewayId: string;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export enum WithdrawalState {
|
|
177
|
-
REQUESTED = 'REQUESTED',
|
|
178
|
-
PROCESSING = 'PROCESSING'
|
|
179
|
-
}
|
package/src/user.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export enum KycStatus {
|
|
2
|
-
VERIFIED = 'verified',
|
|
3
|
-
UNVERIFIED = 'unverified',
|
|
4
|
-
PROCESSING = 'processing'
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface UserData {
|
|
8
|
-
fullName?: string;
|
|
9
|
-
age?: number;
|
|
10
|
-
dayOfMonth?: number;
|
|
11
|
-
dayOfWeek?: string;
|
|
12
|
-
depositLimit?: number;
|
|
13
|
-
minimumDeposit?: number;
|
|
14
|
-
maximumDeposit?: number;
|
|
15
|
-
previousDeposit?: number;
|
|
16
|
-
timeOfDay?: string;
|
|
17
|
-
lifetimeDeposit?: number;
|
|
18
|
-
depositCount?: number;
|
|
19
|
-
daysSinceRegistration?: number;
|
|
20
|
-
kycStatus?: KycStatus;
|
|
21
|
-
affiliateId?: string;
|
|
22
|
-
tags?: string[];
|
|
23
|
-
}
|
|
@@ -1,472 +0,0 @@
|
|
|
1
|
-
export enum ContentType {
|
|
2
|
-
PLAIN_TEXT = 'PLAIN_TEXT',
|
|
3
|
-
HTML = 'HTML'
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export enum TraitType {
|
|
7
|
-
COLOR = 'COLOR',
|
|
8
|
-
IMAGE = 'IMAGE',
|
|
9
|
-
TEXT = 'TEXT',
|
|
10
|
-
SOUND = 'SOUND'
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface WalletConfigParams {
|
|
14
|
-
contentText: Record<string, ContentType>,
|
|
15
|
-
theme: Record<string, TraitType>
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// The keys fluid-api accepts for WalletConfigParams. Removing a member is a breaking API change:
|
|
19
|
-
// widgets are cached on operator sites, so an older one may still request it.
|
|
20
|
-
export enum Trait {
|
|
21
|
-
buttonGradientDirection = 'buttonGradientDirection',
|
|
22
|
-
buttonStyle = 'buttonStyle',
|
|
23
|
-
bonusImagePlaceholder = 'bonusImagePlaceholder',
|
|
24
|
-
colorAlert = 'colorAlert',
|
|
25
|
-
colorBackgroundBase = 'colorBackgroundBase',
|
|
26
|
-
colorBackgroundZero = 'colorBackgroundZero',
|
|
27
|
-
colorBorder = 'colorBorder',
|
|
28
|
-
colorButtonBase = 'colorButtonBase',
|
|
29
|
-
colorButtonBaseStop = 'colorButtonBaseStop',
|
|
30
|
-
colorButtonHover = 'colorButtonHover',
|
|
31
|
-
colorButtonHoverStop = 'colorButtonHoverStop',
|
|
32
|
-
colorButtonGhostText = 'colorButtonGhostText',
|
|
33
|
-
colorButtonText = 'colorButtonText',
|
|
34
|
-
colorCardGradiantEnd = 'colorCardGradiantEnd',
|
|
35
|
-
colorCardGradiantStart = 'colorCardGradiantStart',
|
|
36
|
-
colorDivider = 'colorDivider',
|
|
37
|
-
colorError = 'colorError',
|
|
38
|
-
colorIcon = 'colorIcon',
|
|
39
|
-
colorInfo = 'colorInfo',
|
|
40
|
-
colorInputBase = 'colorInputBase',
|
|
41
|
-
colorInputBorder = 'colorInputBorder',
|
|
42
|
-
colorInputIcon = 'colorInputIcon',
|
|
43
|
-
colorOverlay = 'colorOverlay',
|
|
44
|
-
colorPillBase = 'colorPillBase',
|
|
45
|
-
colorPillBaseActive = 'colorPillBaseActive',
|
|
46
|
-
colorPillText = 'colorPillText',
|
|
47
|
-
colorPillTextActive = 'colorPillTextActive',
|
|
48
|
-
colorPrimary = 'colorPrimary',
|
|
49
|
-
colorProgressBarBase = 'colorProgressBarBase',
|
|
50
|
-
colorProgressBarEnd = 'colorProgressBarEnd',
|
|
51
|
-
colorProgressBarStart = 'colorProgressBarStart',
|
|
52
|
-
colorSuccess = 'colorSuccess',
|
|
53
|
-
colorTextAmount = 'colorTextAmount',
|
|
54
|
-
colorTextDisabled = 'colorTextDisabled',
|
|
55
|
-
colorTextPrimary = 'colorTextPrimary',
|
|
56
|
-
colorTextSecondary = 'colorTextSecondary',
|
|
57
|
-
fontWeightMedium = 'fontWeightMedium',
|
|
58
|
-
fontWeightSemiBold = 'fontWeightSemiBold',
|
|
59
|
-
fontWeightBold = 'fontWeightBold',
|
|
60
|
-
inlineQuickDepositBorderRadius = 'inlineQuickDepositBorderRadius',
|
|
61
|
-
inputFieldRadius = 'inputFieldRadius',
|
|
62
|
-
stepAmount = 'stepAmount',
|
|
63
|
-
stepBonus = 'stepBonus',
|
|
64
|
-
stepCheckingDetails = 'stepCheckingDetails',
|
|
65
|
-
stepPaymentMethod = 'stepPaymentMethod',
|
|
66
|
-
stepSecure = 'stepSecure',
|
|
67
|
-
successSound = 'successSound',
|
|
68
|
-
depositCurrencyIcon = 'depositCurrencyIcon',
|
|
69
|
-
withdrawalCurrencyIcon = 'withdrawalCurrencyIcon'
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export enum Content {
|
|
73
|
-
abandonDepositModalContinueButton = 'abandonDepositModalContinueButton',
|
|
74
|
-
abandonDepositModalMessage = 'abandonDepositModalMessage',
|
|
75
|
-
abandonDepositModalNegativeButton = 'abandonDepositModalNegativeButton',
|
|
76
|
-
abandonDepositModalPositiveButton = 'abandonDepositModalPositiveButton',
|
|
77
|
-
abandonDepositModalTitle = 'abandonDepositModalTitle',
|
|
78
|
-
acceptNoBonusAndContinue = 'acceptNoBonusAndContinue',
|
|
79
|
-
amountPlaceholderLabel = 'amountPlaceholderLabel',
|
|
80
|
-
authorisationTitle = 'authorisationTitle',
|
|
81
|
-
backLabel = 'backLabel',
|
|
82
|
-
bankLinkingFrameTitle = 'bankLinkingFrameTitle',
|
|
83
|
-
bonus = 'bonus',
|
|
84
|
-
bonusCodeInputPlaceholder = 'bonusCodeInputPlaceholder',
|
|
85
|
-
bonusCodeMessage = 'bonusCodeMessage',
|
|
86
|
-
bonusMaximumDepositUpTo = 'bonusMaximumDepositUpTo',
|
|
87
|
-
bonusMinimumDepositFrom = 'bonusMinimumDepositFrom',
|
|
88
|
-
bonusModalTitle = 'bonusModalTitle',
|
|
89
|
-
bonusNotAvailableForPaymentMethod = 'bonusNotAvailableForPaymentMethod',
|
|
90
|
-
cancelWithdrawalsSuccess = 'cancelWithdrawalsSuccess',
|
|
91
|
-
cancelWithdrawalSuccess = 'cancelWithdrawalSuccess',
|
|
92
|
-
cardDetailsGenericError = 'cardDetailsGenericError',
|
|
93
|
-
cardInformation = 'cardInformation',
|
|
94
|
-
cardNumber = 'cardNumber',
|
|
95
|
-
closeLabel = 'closeLabel',
|
|
96
|
-
closingPromptContent = 'closingPromptContent',
|
|
97
|
-
closingPromptTitle = 'closingPromptTitle',
|
|
98
|
-
completeTransactionDepositInfo = 'completeTransactionDepositInfo',
|
|
99
|
-
completeTransactionDepositSummary = 'completeTransactionDepositSummary',
|
|
100
|
-
completeTransactionDepositTitle = 'completeTransactionDepositTitle',
|
|
101
|
-
completeTransactionWithdrawalInfo = 'completeTransactionWithdrawalInfo',
|
|
102
|
-
completeTransactionWithdrawalSummary = 'completeTransactionWithdrawalSummary',
|
|
103
|
-
completeTransactionWithdrawalTitle = 'completeTransactionWithdrawalTitle',
|
|
104
|
-
confirmationWithdrawingLabel = 'confirmationWithdrawingLabel',
|
|
105
|
-
continueCtaLabel = 'continueCtaLabel',
|
|
106
|
-
creditDebit = 'creditDebit',
|
|
107
|
-
cvc = 'cvc',
|
|
108
|
-
cvcTooltipLabel = 'cvcTooltipLabel',
|
|
109
|
-
depositAmountWithoutFee = 'depositAmountWithoutFee',
|
|
110
|
-
depositCtaLabel = 'depositCtaLabel',
|
|
111
|
-
depositTitle = 'depositTitle',
|
|
112
|
-
errorDepositAnotherMethodMessage = 'errorDepositAnotherMethodMessage',
|
|
113
|
-
errorDepositContactSupportMessage = 'errorDepositContactSupportMessage',
|
|
114
|
-
errorDepositCtaMessage = 'errorDepositCtaMessage',
|
|
115
|
-
errorDepositMessage = 'errorDepositMessage',
|
|
116
|
-
errorDepositTitle = 'errorDepositTitle',
|
|
117
|
-
errorDepositTooltip = 'errorDepositTooltip',
|
|
118
|
-
errorDepositTooltipCopied = 'errorDepositTooltipCopied',
|
|
119
|
-
errorVoucherAmountsOutsideLimits = 'errorVoucherAmountsOutsideLimits',
|
|
120
|
-
feeInfo = 'feeInfo',
|
|
121
|
-
feeLabel = 'feeLabel',
|
|
122
|
-
feeInfoWithinRange = 'feeInfoWithinRange',
|
|
123
|
-
feeInfoAboveMin = 'feeInfoAboveMin',
|
|
124
|
-
feeInfoBelowMax = 'feeInfoBelowMax',
|
|
125
|
-
fluentAmountEditMessage = 'fluentAmountEditMessage',
|
|
126
|
-
fluentAmountEditTitle = 'fluentAmountEditTitle',
|
|
127
|
-
fluentBonusClaimInfo = 'fluentBonusClaimInfo',
|
|
128
|
-
fluentBonusEditMessage = 'fluentBonusEditMessage',
|
|
129
|
-
fluentBonusEditTitle = 'fluentBonusEditTitle',
|
|
130
|
-
fluentBonusFullClaimMessage = 'fluentBonusFullClaimMessage',
|
|
131
|
-
fluentBonusFullClaimTitle = 'fluentBonusFullClaimTitle',
|
|
132
|
-
fluentBonusMaximumAmountExceededMessage = 'fluentBonusMaximumAmountExceededMessage',
|
|
133
|
-
fluentBonusMaximumAmountExceededTitle = 'fluentBonusMaximumAmountExceededTitle',
|
|
134
|
-
fluentBonusMessage = 'fluentBonusMessage',
|
|
135
|
-
fluentBonusMinimumAmountForThisBonusMessage = 'fluentBonusMinimumAmountForThisBonusMessage',
|
|
136
|
-
fluentBonusMinimumAmountNotMetMessage = 'fluentBonusMinimumAmountNotMetMessage',
|
|
137
|
-
fluentBonusMinimumAmountNotMetTitle = 'fluentBonusMinimumAmountNotMetTitle',
|
|
138
|
-
fluentBonusTeaserDismissedMessage = 'fluentBonusTeaserDismissedMessage',
|
|
139
|
-
fluentBonusTeaserDismissedTitle = 'fluentBonusTeaserDismissedTitle',
|
|
140
|
-
fluentBonusTeaserMessage = 'fluentBonusTeaserMessage',
|
|
141
|
-
fluentBonusTitle = 'fluentBonusTitle',
|
|
142
|
-
fluentBonusWithNoMaxSelectedMessage = 'fluentBonusWithNoMaxSelectedMessage',
|
|
143
|
-
fluentBonusWithNoMaxSelectedTitle = 'fluentBonusWithNoMaxSelectedTitle',
|
|
144
|
-
fluentDepositAmountAboveBonusMaxDepositLimit = 'fluentDepositAmountAboveBonusMaxDepositLimit',
|
|
145
|
-
fluentDepositAmountAboveLimit = 'fluentDepositAmountAboveLimit',
|
|
146
|
-
fluentDepositAmountAboveResponsibleGamingLimit = 'fluentDepositAmountAboveResponsibleGamingLimit',
|
|
147
|
-
fluentDepositAmountBelowLimit = 'fluentDepositAmountBelowLimit',
|
|
148
|
-
fluentDepositCVCNotRequired = 'fluentDepositCvcNotRequired',
|
|
149
|
-
fluentDepositCVCRequired = 'fluentDepositCvcRequired',
|
|
150
|
-
fluentDepositMessage = 'fluentDepositMessage',
|
|
151
|
-
fluentDepositTitle = 'fluentDepositTitle',
|
|
152
|
-
fluentDepositTitleAmountBad = 'fluentDepositTitleAmountBad',
|
|
153
|
-
fluentDepositTitleAmountGood = 'fluentDepositTitleAmountGood',
|
|
154
|
-
fluentDetailCard = 'fluentDetailCard',
|
|
155
|
-
fluentDetailExternal = 'fluentDetailExternal',
|
|
156
|
-
fluentDetailTitle = 'fluentDetailTitle',
|
|
157
|
-
fluentForfeitBonusNoticeMessage = 'fluentForfeitBonusNoticeMessage',
|
|
158
|
-
fluentForfeitBonusNoticeTitle = 'fluentForfeitBonusNoticeTitle',
|
|
159
|
-
fluentKycLimitNearlyReachedMessage = 'fluentKycLimitNearlyReachedMessage',
|
|
160
|
-
fluentKycLimitReachedMessage = 'fluentKycLimitReachedMessage',
|
|
161
|
-
fluentMaxAmountWithdrawal = 'fluentMaxAmountWithdrawal',
|
|
162
|
-
fluentMethodMessage = 'fluentMethodMessage',
|
|
163
|
-
fluentMethodTitle = 'fluentMethodTitle',
|
|
164
|
-
fluentNoWithdrawableBalanceMessage = 'fluentNoWithdrawableBalanceMessage',
|
|
165
|
-
fluentNoWithdrawableBalanceTitle = 'fluentNoWithdrawableBalanceTitle',
|
|
166
|
-
fluentOnePendingWithdrawalOnlyMessage = 'fluentOnePendingWithdrawalOnlyMessage',
|
|
167
|
-
fluentPendingWithdrawalsMessage = 'fluentPendingWithdrawalsMessage',
|
|
168
|
-
fluentPendingWithdrawalsTitle = 'fluentPendingWithdrawalsTitle',
|
|
169
|
-
fluentRgLimitReachedMessage = 'fluentRgLimitReachedMessage',
|
|
170
|
-
fluentRgLimitReachedTitle = 'fluentRgLimitReachedTitle',
|
|
171
|
-
fluentVerificationRequiredTitle = 'fluentVerificationRequiredTitle',
|
|
172
|
-
fluentVerifyCta = 'fluentVerifyCta',
|
|
173
|
-
fluentWithdrawalAmountAboveLimit = 'fluentWithdrawalAmountAboveLimit',
|
|
174
|
-
fluentWithdrawalAmountBelowLimit = 'fluentWithdrawalAmountBelowLimit',
|
|
175
|
-
fluentWithdrawalAmountError = 'fluentWithdrawalAmountError',
|
|
176
|
-
fluentWithdrawalAmountGoodTitle = 'fluentWithdrawalAmountGoodTitle',
|
|
177
|
-
fluentWithdrawalAmountMessage = 'fluentWithdrawalAmountMessage',
|
|
178
|
-
fluentWithdrawalAmountTitle = 'fluentWithdrawalAmountTitle',
|
|
179
|
-
fluentWithdrawalDetailDefaultMessage = 'fluentWithdrawalDetailDefaultMessage',
|
|
180
|
-
fluentWithdrawalDetailMessage = 'fluentWithdrawalDetailMessage',
|
|
181
|
-
fluentWithdrawalDetailTitle = 'fluentWithdrawalDetailTitle',
|
|
182
|
-
fluentWithdrawalSummaryMessage = 'fluentWithdrawalSummaryMessage',
|
|
183
|
-
fluentWithdrawalSummaryTitle = 'fluentWithdrawalSummaryTitle',
|
|
184
|
-
goBackModalContent = 'goBackModalContent',
|
|
185
|
-
goBackModalTitle = 'goBackModalTitle',
|
|
186
|
-
johnDoe = 'johnDoe',
|
|
187
|
-
labelButtonCancelAllWithdrawals = 'labelButtonCancelAllWithdrawals',
|
|
188
|
-
labelDeposit = 'labelDeposit',
|
|
189
|
-
labelInfoIcon = 'labelInfoIcon',
|
|
190
|
-
labelWithdraw = 'labelWithdraw',
|
|
191
|
-
landscapeWarning = 'landscapeWarning',
|
|
192
|
-
lockedBalanceTitle = 'lockedBalanceTitle',
|
|
193
|
-
lockedInfoModalContent = 'lockedInfoModalContent',
|
|
194
|
-
lockedInfoModalTitle = 'lockedInfoModalTitle',
|
|
195
|
-
manualBonusCodeApply = 'manualBonusCodeApply',
|
|
196
|
-
manualBonusCodeError = 'manualBonusCodeError',
|
|
197
|
-
manualBonusCodeLabel = 'manualBonusCodeLabel',
|
|
198
|
-
manualBonusCodeRemove = 'manualBonusCodeRemove',
|
|
199
|
-
manualBonusCodeValidated = 'manualBonusCodeValidated',
|
|
200
|
-
manualBonusCodeValidatedNotOptedIn = 'manualBonusCodeValidatedNotOptedIn',
|
|
201
|
-
maxAmount = 'maxAmount',
|
|
202
|
-
methodLimitExceededPromptBody = 'methodLimitExceededPromptBody',
|
|
203
|
-
methodLimitExceededPromptOptionDismiss = 'methodLimitExceededPromptOptionDismiss',
|
|
204
|
-
methodLimitExceededPromptOptionEdit = 'methodLimitExceededPromptOptionEdit',
|
|
205
|
-
methodLimitExceededPromptTitle = 'methodLimitExceededPromptTitle',
|
|
206
|
-
minAmount = 'minAmount',
|
|
207
|
-
mmYy = 'mmYy',
|
|
208
|
-
mmYyyy = 'mmYyyy',
|
|
209
|
-
modalFooterCta = 'modalFooterCta',
|
|
210
|
-
modifyAmount = 'modifyAmount',
|
|
211
|
-
modifyBonus = 'modifyBonus',
|
|
212
|
-
moreMethodsLabel = 'moreMethodsLabel',
|
|
213
|
-
nameOnCard = 'nameOnCard',
|
|
214
|
-
negativePromptModalContent = 'negativePromptModalContent',
|
|
215
|
-
newMethod = 'newMethod',
|
|
216
|
-
noBonusAvailableMessage = 'noBonusAvailableMessage',
|
|
217
|
-
noBonusAvailableTitle = 'noBonusAvailableTitle',
|
|
218
|
-
noBonusMessage = 'noBonusMessage',
|
|
219
|
-
noBonusSelected = 'noBonusSelected',
|
|
220
|
-
noBonusTitle = 'noBonusTitle',
|
|
221
|
-
noPaymentMethodsAvailableMessage = 'noPaymentMethodsAvailableMessage',
|
|
222
|
-
noPaymentMethodsAvailableTitle = 'noPaymentMethodsAvailableTitle',
|
|
223
|
-
noWithdrawalMethodsAvailable = 'noWithdrawalMethodsAvailable',
|
|
224
|
-
pendingTransactionTitle = 'pendingTransactionTitle',
|
|
225
|
-
pendingTransactionMessage = 'pendingTransactionMessage',
|
|
226
|
-
paymentMethodInfoModalTitle = 'paymentMethodInfoModalTitle',
|
|
227
|
-
paymentMethodsTitle = 'paymentMethodsTitle',
|
|
228
|
-
pendingWithdrawalsLinkLabel = 'pendingWithdrawalsLinkLabel',
|
|
229
|
-
phoneNumber = 'phoneNumber',
|
|
230
|
-
phonePrefix = 'phonePrefix',
|
|
231
|
-
positivePromptModalContent = 'positivePromptModalContent',
|
|
232
|
-
promptLabelNegative = 'promptLabelNegative',
|
|
233
|
-
promptLabelPositive = 'promptLabelPositive',
|
|
234
|
-
quickDepositTitle = 'quickDepositTitle',
|
|
235
|
-
selectAnotherPaymentMethodWithBonus = 'selectAnotherPaymentMethodWithBonus',
|
|
236
|
-
selectedBonusNotAvailable = 'selectedBonusNotAvailable',
|
|
237
|
-
sslTitle = 'sslTitle',
|
|
238
|
-
storedMethods = 'storedMethods',
|
|
239
|
-
successDepositTitle = 'successDepositTitle',
|
|
240
|
-
successPlayButton = 'successPlayButton',
|
|
241
|
-
successWithdrawalTitle = 'successWithdrawalTitle',
|
|
242
|
-
summaryDepositTitle = 'summaryDepositTitle',
|
|
243
|
-
summaryEditLabel = 'summaryEditLabel',
|
|
244
|
-
summaryWithdrawalTitle = 'summaryWithdrawalTitle',
|
|
245
|
-
totalAmountMessage = 'totalAmountMessage',
|
|
246
|
-
transactionInfo = 'transactionInfo',
|
|
247
|
-
transactionLoaderMessage = 'transactionLoaderMessage',
|
|
248
|
-
transactionLoaderTitle = 'transactionLoaderTitle',
|
|
249
|
-
transactionSplit = 'transactionSplit',
|
|
250
|
-
transactionSplitBonus = 'transactionSplitBonus',
|
|
251
|
-
transactionStatusFailure = 'transactionStatusFailure',
|
|
252
|
-
transactionStatusSuccess = 'transactionStatusSuccess',
|
|
253
|
-
turnedOverTitle = 'turnedOverTitle',
|
|
254
|
-
unavailableBonusModalBody = 'unavailableBonusModalBody',
|
|
255
|
-
unavailableBonusModalTitle = 'unavailableBonusModalTitle',
|
|
256
|
-
updateAvailableCta = 'updateAvailableCta',
|
|
257
|
-
updateAvailableMessage = 'updateAvailableMessage',
|
|
258
|
-
updateAvailableTitle = 'updateAvailableTitle',
|
|
259
|
-
userCloseBrowserTabPromptMessage = 'userCloseBrowserTabPromptMessage',
|
|
260
|
-
verificationScreenCtaLabel = 'verificationScreenCtaLabel',
|
|
261
|
-
verificationScreenMessage = 'verificationScreenMessage',
|
|
262
|
-
verificationScreenTitle = 'verificationScreenTitle',
|
|
263
|
-
withdrawalAmountLeftoverAfterFees = 'withdrawalAmountLeftoverAfterFees',
|
|
264
|
-
withdrawalApproved = 'withdrawalApproved',
|
|
265
|
-
withdrawalCancelLabel = 'withdrawalCancelLabel',
|
|
266
|
-
withdrawalCancelModalButtonNegative = 'withdrawalCancelModalButtonNegative',
|
|
267
|
-
withdrawalCancelModalButtonPositive = 'withdrawalCancelModalButtonPositive',
|
|
268
|
-
withdrawalCancelModalContent = 'withdrawalCancelModalContent',
|
|
269
|
-
withdrawalCancelModalTitle = 'withdrawalCancelModalTitle',
|
|
270
|
-
withdrawalCtaLabel = 'withdrawalCtaLabel',
|
|
271
|
-
withdrawalInfoModalContent = 'withdrawalInfoModalContent',
|
|
272
|
-
withdrawalInfoModalTitle = 'withdrawalInfoModalTitle',
|
|
273
|
-
withdrawalListTitle = 'withdrawalListTitle',
|
|
274
|
-
withdrawalProcessing = 'withdrawalProcessing',
|
|
275
|
-
withdrawalRemainingBalance = 'withdrawalRemainingBalance',
|
|
276
|
-
withdrawalRequestDate = 'withdrawalRequestDate',
|
|
277
|
-
withdrawalRequested = 'withdrawalRequested',
|
|
278
|
-
withdrawalTitle = 'withdrawalTitle',
|
|
279
|
-
withdrawalTransactionIdLabel = 'withdrawalTransactionIdLabel',
|
|
280
|
-
withdrawal2faHeaderTitle = 'withdrawal2faHeaderTitle',
|
|
281
|
-
withdrawal2faTitle = 'withdrawal2faTitle',
|
|
282
|
-
withdrawal2faBody = 'withdrawal2faBody',
|
|
283
|
-
withdrawal2faLabel = 'withdrawal2faLabel',
|
|
284
|
-
withdrawal2faPlaceholder = 'withdrawal2faPlaceholder',
|
|
285
|
-
withdrawal2faVerifyButton = 'withdrawal2faVerifyButton',
|
|
286
|
-
withdrawal2faInvalidCode = 'withdrawal2faInvalidCode',
|
|
287
|
-
withdrawal2faRateLimited = 'withdrawal2faRateLimited',
|
|
288
|
-
withMethod = 'withMethod'
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
export enum ContentVirtual {
|
|
292
|
-
abandonDepositModalMessage = 'abandonDepositModalMessage',
|
|
293
|
-
abandonDepositModalNegativeButton = 'abandonDepositModalNegativeButton',
|
|
294
|
-
abandonDepositModalPositiveButton = 'abandonDepositModalPositiveButton',
|
|
295
|
-
abandonDepositModalTitle = 'abandonDepositModalTitle',
|
|
296
|
-
authorisationTitle = 'authorisationTitle',
|
|
297
|
-
backLabel = 'backLabel',
|
|
298
|
-
bankLinkingFrameTitle = 'bankLinkingFrameTitle',
|
|
299
|
-
cancelWithdrawalsSuccess = 'cancelWithdrawalsSuccess',
|
|
300
|
-
cancelWithdrawalSuccess = 'cancelWithdrawalSuccess',
|
|
301
|
-
cardDetailsGenericError = 'cardDetailsGenericError',
|
|
302
|
-
cardInformation = 'cardInformation',
|
|
303
|
-
cardNumber = 'cardNumber',
|
|
304
|
-
closeLabel = 'closeLabel',
|
|
305
|
-
closingPromptContent = 'closingPromptContent',
|
|
306
|
-
closingPromptTitle = 'closingPromptTitle',
|
|
307
|
-
completeTransactionDepositInfo = 'completeTransactionDepositInfo',
|
|
308
|
-
completeTransactionDepositSummary = 'completeTransactionDepositSummary',
|
|
309
|
-
completeTransactionDepositTitle = 'completeTransactionDepositTitle',
|
|
310
|
-
completeTransactionWithdrawalInfo = 'completeTransactionWithdrawalInfo',
|
|
311
|
-
completeTransactionWithdrawalSummary = 'completeTransactionWithdrawalSummary',
|
|
312
|
-
completeTransactionWithdrawalTitle = 'completeTransactionWithdrawalTitle',
|
|
313
|
-
confirmationWithdrawingLabel = 'confirmationWithdrawingLabel',
|
|
314
|
-
continueCtaLabel = 'continueCtaLabel',
|
|
315
|
-
creditDebit = 'creditDebit',
|
|
316
|
-
customAmountLabel = 'customAmountLabel',
|
|
317
|
-
cvc = 'cvc',
|
|
318
|
-
cvcTooltipLabel = 'cvcTooltipLabel',
|
|
319
|
-
depositAmountWithoutFee = 'depositAmountWithoutFee',
|
|
320
|
-
depositCtaLabel = 'depositCtaLabel',
|
|
321
|
-
depositTitle = 'depositTitle',
|
|
322
|
-
errorDepositAnotherMethodMessage = 'errorDepositAnotherMethodMessage',
|
|
323
|
-
errorDepositContactSupportMessage = 'errorDepositContactSupportMessage',
|
|
324
|
-
errorDepositCtaMessage = 'errorDepositCtaMessage',
|
|
325
|
-
errorDepositMessage = 'errorDepositMessage',
|
|
326
|
-
errorDepositTitle = 'errorDepositTitle',
|
|
327
|
-
errorDepositTooltip = 'errorDepositTooltip',
|
|
328
|
-
errorDepositTooltipCopied = 'errorDepositTooltipCopied',
|
|
329
|
-
errorVoucherAmountsOutsideLimits = 'errorVoucherAmountsOutsideLimits',
|
|
330
|
-
featuredLabel = 'featuredLabel',
|
|
331
|
-
feeInfo = 'feeInfo',
|
|
332
|
-
feeInfoAboveMin = 'feeInfoAboveMin',
|
|
333
|
-
feeInfoBelowMax = 'feeInfoBelowMax',
|
|
334
|
-
feeInfoWithinRange = 'feeInfoWithinRange',
|
|
335
|
-
feeLabel = 'feeLabel',
|
|
336
|
-
fluentBuyCoinsCustomAmountGoodMessage = 'fluentBuyCoinsCustomAmountGoodMessage',
|
|
337
|
-
fluentBuyCoinsPackSelectedGoodMessage = 'fluentBuyCoinsPackSelectedGoodMessage',
|
|
338
|
-
fluentBuyCoinsPackSelectedGoodTitle = 'fluentBuyCoinsPackSelectedGoodTitle',
|
|
339
|
-
fluentBuyCoinsStoredTitle = 'fluentBuyCoinsStoredTitle',
|
|
340
|
-
fluentChangePackMessage = 'fluentChangePackMessage',
|
|
341
|
-
fluentChangePackTitle = 'fluentChangePackTitle',
|
|
342
|
-
fluentDepositAmountAboveLimit = 'fluentDepositAmountAboveLimit',
|
|
343
|
-
fluentDepositAmountBelowLimit = 'fluentDepositAmountBelowLimit',
|
|
344
|
-
fluentDepositCVCNotRequired = 'fluentDepositCvcNotRequired',
|
|
345
|
-
fluentDepositCVCRequired = 'fluentDepositCvcRequired',
|
|
346
|
-
fluentDepositMessage = 'fluentDepositMessage',
|
|
347
|
-
fluentDepositTitle = 'fluentDepositTitle',
|
|
348
|
-
fluentDepositTitleAmountBad = 'fluentDepositTitleAmountBad',
|
|
349
|
-
fluentDepositTitleAmountGood = 'fluentDepositTitleAmountGood',
|
|
350
|
-
fluentDetailCard = 'fluentDetailCard',
|
|
351
|
-
fluentDetailExternal = 'fluentDetailExternal',
|
|
352
|
-
fluentDetailTitle = 'fluentDetailTitle',
|
|
353
|
-
fluentKycLimitNearlyReachedMessage = 'fluentKycLimitNearlyReachedMessage',
|
|
354
|
-
fluentKycLimitReachedMessage = 'fluentKycLimitReachedMessage',
|
|
355
|
-
fluentMaxAmountWithdrawal = 'fluentMaxAmountWithdrawal',
|
|
356
|
-
fluentMethodCompletePurchaseCustomAmountMessage = 'fluentMethodCompletePurchaseCustomAmountMessage',
|
|
357
|
-
fluentMethodCompletePurchasePackMessage = 'fluentMethodCompletePurchasePackMessage',
|
|
358
|
-
fluentMethodCompletePurchaseTitle = 'fluentMethodCompletePurchaseTitle',
|
|
359
|
-
fluentNoWithdrawableBalanceMessage = 'fluentNoWithdrawableBalanceMessage',
|
|
360
|
-
fluentNoWithdrawableBalanceTitle = 'fluentNoWithdrawableBalanceTitle',
|
|
361
|
-
fluentOnePendingWithdrawalOnlyMessage = 'fluentOnePendingWithdrawalOnlyMessage',
|
|
362
|
-
fluentPendingWithdrawalsMessage = 'fluentPendingWithdrawalsMessage',
|
|
363
|
-
fluentPendingWithdrawalsTitle = 'fluentPendingWithdrawalsTitle',
|
|
364
|
-
fluentVerificationRequiredTitle = 'fluentVerificationRequiredTitle',
|
|
365
|
-
fluentVerifyCta = 'fluentVerifyCta',
|
|
366
|
-
fluentWithdrawalAmountAboveLimit = 'fluentWithdrawalAmountAboveLimit',
|
|
367
|
-
fluentWithdrawalAmountBelowLimit = 'fluentWithdrawalAmountBelowLimit',
|
|
368
|
-
fluentWithdrawalAmountError = 'fluentWithdrawalAmountError',
|
|
369
|
-
fluentWithdrawalAmountGoodMessage = 'fluentWithdrawalAmountGoodMessage',
|
|
370
|
-
fluentWithdrawalFiatAmountGoodMessage = 'fluentWithdrawalFiatAmountGoodMessage',
|
|
371
|
-
fluentWithdrawalAmountGoodTitle = 'fluentWithdrawalAmountGoodTitle',
|
|
372
|
-
fluentWithdrawalAmountMessage = 'fluentWithdrawalAmountMessage',
|
|
373
|
-
fluentWithdrawalAmountTitle = 'fluentWithdrawalAmountTitle',
|
|
374
|
-
fluentWithdrawalDetailDefaultMessage = 'fluentWithdrawalDetailDefaultMessage',
|
|
375
|
-
fluentWithdrawalDetailMessage = 'fluentWithdrawalDetailMessage',
|
|
376
|
-
fluentWithdrawalDetailTitle = 'fluentWithdrawalDetailTitle',
|
|
377
|
-
fluentWithdrawalSummaryMessage = 'fluentWithdrawalSummaryMessage',
|
|
378
|
-
fluentWithdrawalSummaryTitle = 'fluentWithdrawalSummaryTitle',
|
|
379
|
-
goBackModalContent = 'goBackModalContent',
|
|
380
|
-
goBackModalTitle = 'goBackModalTitle',
|
|
381
|
-
johnDoe = 'johnDoe',
|
|
382
|
-
labelButtonCancelAllWithdrawals = 'labelButtonCancelAllWithdrawals',
|
|
383
|
-
labelDeposit = 'labelDeposit',
|
|
384
|
-
labelInfoIcon = 'labelInfoIcon',
|
|
385
|
-
labelWithdraw = 'labelWithdraw',
|
|
386
|
-
landscapeWarning = 'landscapeWarning',
|
|
387
|
-
lockedBalanceTitle = 'lockedBalanceTitle',
|
|
388
|
-
lockedInfoModalContent = 'lockedInfoModalContent',
|
|
389
|
-
lockedInfoModalTitle = 'lockedInfoModalTitle',
|
|
390
|
-
maxAmount = 'maxAmount',
|
|
391
|
-
methodLimitExceededPromptBody = 'methodLimitExceededPromptBody',
|
|
392
|
-
methodLimitExceededPromptOptionDismiss = 'methodLimitExceededPromptOptionDismiss',
|
|
393
|
-
methodLimitExceededPromptOptionEdit = 'methodLimitExceededPromptOptionEdit',
|
|
394
|
-
methodLimitExceededPromptTitle = 'methodLimitExceededPromptTitle',
|
|
395
|
-
minAmount = 'minAmount',
|
|
396
|
-
mmYy = 'mmYy',
|
|
397
|
-
modalFooterCta = 'modalFooterCta',
|
|
398
|
-
modifyAmount = 'modifyAmount',
|
|
399
|
-
moreMethodsLabel = 'moreMethodsLabel',
|
|
400
|
-
nameOnCard = 'nameOnCard',
|
|
401
|
-
negativePromptModalContent = 'negativePromptModalContent',
|
|
402
|
-
newMethod = 'newMethod',
|
|
403
|
-
noPaymentMethodsAvailableMessage = 'noPaymentMethodsAvailableMessage',
|
|
404
|
-
noPaymentMethodsAvailableTitle = 'noPaymentMethodsAvailableTitle',
|
|
405
|
-
noWithdrawalMethodsAvailable = 'noWithdrawalMethodsAvailable',
|
|
406
|
-
orChooseAPackDivider = 'orChooseAPackDivider',
|
|
407
|
-
otherCategoryLabel = 'otherCategoryLabel',
|
|
408
|
-
packSelectionLabel = 'packSelectionLabel',
|
|
409
|
-
paymentMethodInfoModalTitle = 'paymentMethodInfoModalTitle',
|
|
410
|
-
paymentMethodsTitle = 'paymentMethodsTitle',
|
|
411
|
-
pendingTransactionMessage = 'pendingTransactionMessage',
|
|
412
|
-
pendingTransactionTitle = 'pendingTransactionTitle',
|
|
413
|
-
pendingWithdrawalsLinkLabel = 'pendingWithdrawalsLinkLabel',
|
|
414
|
-
phoneNumber = 'phoneNumber',
|
|
415
|
-
phonePrefix = 'phonePrefix',
|
|
416
|
-
positivePromptModalContent = 'positivePromptModalContent',
|
|
417
|
-
promptLabelNegative = 'promptLabelNegative',
|
|
418
|
-
promptLabelPositive = 'promptLabelPositive',
|
|
419
|
-
quickBuyAuthorisationTitle = 'quickBuyAuthorisationTitle',
|
|
420
|
-
quickBuyPaymentMethodDetailsTitle = 'quickBuyPaymentMethodDetailsTitle',
|
|
421
|
-
quickBuyPaymentMethodTitle = 'quickBuyPaymentMethodTitle',
|
|
422
|
-
quickBuyTransactionStatusTitleError = 'quickBuyTransactionStatusTitleError',
|
|
423
|
-
quickBuyTransactionStatusTitleSuccess = 'quickBuyTransactionStatusTitleSuccess',
|
|
424
|
-
quickDepositTitle = 'quickDepositTitle',
|
|
425
|
-
regularPacksDivider = 'regularPacksDivider',
|
|
426
|
-
specialPackDivider = 'specialPackDivider',
|
|
427
|
-
sslTitle = 'sslTitle',
|
|
428
|
-
stickyUpsellClaimButtonText = 'stickyUpsellClaimButtonText',
|
|
429
|
-
storedMethods = 'storedMethods',
|
|
430
|
-
successDepositTitle = 'successDepositTitle',
|
|
431
|
-
successPlayButton = 'successPlayButton',
|
|
432
|
-
successWithdrawalTitle = 'successWithdrawalTitle',
|
|
433
|
-
summaryDepositTitle = 'summaryDepositTitle',
|
|
434
|
-
summaryEditLabel = 'summaryEditLabel',
|
|
435
|
-
summaryWithdrawalTitle = 'summaryWithdrawalTitle',
|
|
436
|
-
totalAmountMessage = 'totalAmountMessage',
|
|
437
|
-
transactionInfo = 'transactionInfo',
|
|
438
|
-
transactionLoaderMessage = 'transactionLoaderMessage',
|
|
439
|
-
transactionLoaderTitle = 'transactionLoaderTitle',
|
|
440
|
-
transactionSplitVirtualCoin = 'transactionSplitVirtualCoin',
|
|
441
|
-
transactionStatusFailure = 'transactionStatusFailure',
|
|
442
|
-
transactionStatusSuccess = 'transactionStatusSuccess',
|
|
443
|
-
updateAvailableCta = 'updateAvailableCta',
|
|
444
|
-
updateAvailableMessage = 'updateAvailableMessage',
|
|
445
|
-
updateAvailableTitle = 'updateAvailableTitle',
|
|
446
|
-
upsellCarouselSpecialOfferDivider = 'upsellCarouselSpecialOfferDivider',
|
|
447
|
-
upsellClaimedButtonText = 'upsellClaimedButtonText',
|
|
448
|
-
upsellTimerPaused = 'upsellTimerPaused',
|
|
449
|
-
userCloseBrowserTabPromptMessage = 'userCloseBrowserTabPromptMessage',
|
|
450
|
-
verificationScreenCtaLabel = 'verificationScreenCtaLabel',
|
|
451
|
-
verificationScreenMessage = 'verificationScreenMessage',
|
|
452
|
-
verificationScreenTitle = 'verificationScreenTitle',
|
|
453
|
-
viewAllPacksCta = 'viewAllPacksCta',
|
|
454
|
-
withdrawalAmountLeftoverAfterFees = 'withdrawalAmountLeftoverAfterFees',
|
|
455
|
-
withdrawalApproved = 'withdrawalApproved',
|
|
456
|
-
withdrawalCancelLabel = 'withdrawalCancelLabel',
|
|
457
|
-
withdrawalCancelModalButtonNegative = 'withdrawalCancelModalButtonNegative',
|
|
458
|
-
withdrawalCancelModalButtonPositive = 'withdrawalCancelModalButtonPositive',
|
|
459
|
-
withdrawalCancelModalContent = 'withdrawalCancelModalContent',
|
|
460
|
-
withdrawalCancelModalTitle = 'withdrawalCancelModalTitle',
|
|
461
|
-
withdrawalCtaLabel = 'withdrawalCtaLabel',
|
|
462
|
-
withdrawalInfoModalContent = 'withdrawalInfoModalContent',
|
|
463
|
-
withdrawalInfoModalTitle = 'withdrawalInfoModalTitle',
|
|
464
|
-
withdrawalListTitle = 'withdrawalListTitle',
|
|
465
|
-
withdrawalProcessing = 'withdrawalProcessing',
|
|
466
|
-
withdrawalRemainingBalance = 'withdrawalRemainingBalance',
|
|
467
|
-
withdrawalRequestDate = 'withdrawalRequestDate',
|
|
468
|
-
withdrawalRequested = 'withdrawalRequested',
|
|
469
|
-
withdrawalTitle = 'withdrawalTitle',
|
|
470
|
-
withdrawalTransactionIdLabel = 'withdrawalTransactionIdLabel',
|
|
471
|
-
withMethod = 'withMethod'
|
|
472
|
-
}
|
package/src/wallet.ts
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import type { TransactionOptions } from './transactions.js';
|
|
2
|
-
import type { UserData } from './user.js';
|
|
3
|
-
|
|
4
|
-
export enum Integration {
|
|
5
|
-
LEFT = 'LEFT',
|
|
6
|
-
CENTER = 'CENTER',
|
|
7
|
-
RIGHT = 'RIGHT',
|
|
8
|
-
INLINE = 'INLINE'
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface Viewport {
|
|
12
|
-
innerWidth: number;
|
|
13
|
-
innerHeight: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ScreenDimensions {
|
|
17
|
-
height: number;
|
|
18
|
-
width: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface BrowserInfo {
|
|
22
|
-
userAgent: string;
|
|
23
|
-
acceptHeader: string;
|
|
24
|
-
javaEnabled: boolean;
|
|
25
|
-
colorDepth: number;
|
|
26
|
-
screen: ScreenDimensions;
|
|
27
|
-
viewport: Viewport;
|
|
28
|
-
timezoneOffset: number;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface WalletRequestBody {
|
|
32
|
-
payload?: object | string;
|
|
33
|
-
payloadOptions?: TransactionOptions;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface WalletInitParams {
|
|
37
|
-
country: string;
|
|
38
|
-
ipAddress: string;
|
|
39
|
-
locale: string;
|
|
40
|
-
currency: string,
|
|
41
|
-
operatorId: number;
|
|
42
|
-
sessionId: string;
|
|
43
|
-
userId: string | number;
|
|
44
|
-
/** @deprecated Use browserInfo.userAgent instead */
|
|
45
|
-
userAgent: string;
|
|
46
|
-
/** @deprecated Use browserInfo.viewport instead */
|
|
47
|
-
viewport: Viewport;
|
|
48
|
-
browserInfo?: BrowserInfo;
|
|
49
|
-
userData?: UserData;
|
|
50
|
-
timestamp: string;
|
|
51
|
-
buildDate: string;
|
|
52
|
-
hostSiteUrl: string;
|
|
53
|
-
virtual: boolean;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface WalletConfig {
|
|
57
|
-
allowCustomAmount: boolean;
|
|
58
|
-
autofillCreditCardName: boolean;
|
|
59
|
-
balanceDisplayed: boolean;
|
|
60
|
-
bonusOutlined: boolean;
|
|
61
|
-
campaign?: Campaign;
|
|
62
|
-
cardHolderNameRegex: string | null;
|
|
63
|
-
contactSupportEnabled: boolean;
|
|
64
|
-
contactSupportLink: string;
|
|
65
|
-
contentText: Record<string, string>;
|
|
66
|
-
expressFlowEnabled: boolean;
|
|
67
|
-
defaultDepositAmount: number;
|
|
68
|
-
depositAbandonModalEnabled: boolean;
|
|
69
|
-
fullListOfDepositMethodsDisplayed: boolean;
|
|
70
|
-
hideMinMaxEnabled: boolean;
|
|
71
|
-
integration: Integration;
|
|
72
|
-
kycDepositLimit: number | null;
|
|
73
|
-
manualBonusCodesEnabled?: boolean;
|
|
74
|
-
pendingWithdrawalsReminder: {
|
|
75
|
-
threshold: number;
|
|
76
|
-
userResponseRequired: boolean;
|
|
77
|
-
};
|
|
78
|
-
successScreen: {
|
|
79
|
-
promotion: Promotion | null;
|
|
80
|
-
};
|
|
81
|
-
suggestedDepositAmounts: number[];
|
|
82
|
-
theme: Record<string, string>;
|
|
83
|
-
transactionToggleDisplayed: boolean;
|
|
84
|
-
withdrawalInFiatCurrency: boolean;
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface Promotion {
|
|
89
|
-
title: string;
|
|
90
|
-
description: string;
|
|
91
|
-
tag: string;
|
|
92
|
-
ctaLinkLabel: string;
|
|
93
|
-
ctaLinkUrl: string;
|
|
94
|
-
thumbnail: string;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface CampaignChatIcons {
|
|
98
|
-
amount?: string;
|
|
99
|
-
bonus?: string;
|
|
100
|
-
paymentMethod?: string;
|
|
101
|
-
paymentDetails?: string;
|
|
102
|
-
securePayment?: string;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface Campaign {
|
|
106
|
-
enableSuccessAnimation: boolean;
|
|
107
|
-
customChatIcons?: CampaignChatIcons;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface DepositAmountsSettings {
|
|
111
|
-
id?: string;
|
|
112
|
-
defaultDepositAmount: number;
|
|
113
|
-
suggestedDepositAmounts: number[];
|
|
114
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"outDir": "./lib",
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"strict": true,
|
|
6
|
-
"target": "ESNext",
|
|
7
|
-
"module": "NodeNext",
|
|
8
|
-
"moduleResolution": "NodeNext",
|
|
9
|
-
"useDefineForClassFields": true,
|
|
10
|
-
"lib": [
|
|
11
|
-
"DOM",
|
|
12
|
-
"ES2020",
|
|
13
|
-
],
|
|
14
|
-
"baseUrl": ".",
|
|
15
|
-
"allowJs": true,
|
|
16
|
-
"checkJs": true,
|
|
17
|
-
"esModuleInterop": true,
|
|
18
|
-
},
|
|
19
|
-
"include": [
|
|
20
|
-
"src/**/*.d.ts",
|
|
21
|
-
"src/**/*",
|
|
22
|
-
]
|
|
23
|
-
}
|