-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshop.d.ts
125 lines (110 loc) · 2.49 KB
/
shop.d.ts
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
interface Discount {
code: string
percent_off: number
products: Array<string>
}
interface Voucher {
code: string
quantity: number
product: string
}
interface Order {
product: string
quantity: number
price: number
currency: string
nick: string
method: 'stripe' |
'paybylink_transfer' | 'paybylink_sms' |
'microsms_transfer' | 'microsms_sms' |
'hotpay_psc' | 'hotpay_transfer' |
'cashbill' |
'paypal' |
'icehost' |
'chunkserve'
timestamp: number
approved?: boolean
customer?: string
}
interface Product {
icon: string
name: string
description?: string
price: number
server: string
commands: string
adjustable: boolean
sms?: boolean
sms_number?: number
id: string
}
interface Server {
id: string
name: string
ip: string
icon: string
commands: boolean
}
interface Shop {
// general
baseURL: string
customer: string
currency: string
type: string
name?: string
description?: string
template?: string
icon?: string
// lists
products: Array<Product>
servers: Array<Server>
orders: Array<Order>
discounts: Array<Discount>
vouchers: Array<Voucher>
// paybylink
paybylink_userid?: string
paybylink_transfer?: boolean
paybylink_transfer_hash?: string
paybylink_transfer_shopid?: number
paybylink_sms?: boolean
paybylink_sms_serviceid?: number
paybylink_sms_text?: string
paybylink_paysafecard?: boolean
paybylink_paysafecard_shopid?: number
paybylink_paysafecard_hash?: string
// hotpay
hotpay_psc?: boolean
hotpay_psc_secret?: number
hotpay_psc_password?: string
hotpay_transfer?: boolean
hotpay_transfer_secret?: number
hotpay_transfer_password?: string
// microsms
microsms_userid?: string
microsms_transfer?: boolean
microsms_transfer_hash?: string
microsms_transfer_shopid?: number
microsms_sms?: boolean
microsms_sms_serviceid?: number
microsms_sms_text?: string
// cashbill
cashbill_userid?: string
cashbill_secret?: string
// paypal
paypal_clientid?: string
paypal_secret?: string
// icehost
icehost_key?: string
// chunkserve
chunkserve_key?: string
// social
discord?: boolean
discord_url?: string
facebook?: boolean
facebook_url?: string
tiktok?: boolean
tiktok_url?: string
// webhook
webhook_discord?: boolean
webhook_discord_url?: string
}