-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathNoCodesConfig.ts
More file actions
30 lines (27 loc) · 1020 Bytes
/
NoCodesConfig.ts
File metadata and controls
30 lines (27 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import type { NoCodesListener } from './dto/NoCodesListener';
import type { PurchaseDelegate } from './dto/PurchaseDelegate';
import type { NoCodesTheme } from './dto/enums';
class NoCodesConfig {
readonly projectKey: string;
readonly noCodesListener: NoCodesListener | undefined;
readonly purchaseDelegate: PurchaseDelegate | undefined;
readonly proxyUrl: string | undefined;
readonly locale: string | undefined;
readonly theme: NoCodesTheme | undefined;
constructor(
projectKey: string,
noCodesListener: NoCodesListener | undefined = undefined,
purchaseDelegate: PurchaseDelegate | undefined = undefined,
proxyUrl: string | undefined = undefined,
locale: string | undefined = undefined,
theme: NoCodesTheme | undefined = undefined
) {
this.projectKey = projectKey;
this.noCodesListener = noCodesListener;
this.purchaseDelegate = purchaseDelegate;
this.proxyUrl = proxyUrl;
this.locale = locale;
this.theme = theme;
}
}
export default NoCodesConfig;