shop_system_models 0.0.1.dev26551__py3-none-any.whl
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.
- shop_system_models/__init__.py +5 -0
- shop_system_models/consts/__init__.py +0 -0
- shop_system_models/consts/country_codes.py +251 -0
- shop_system_models/consts/enums.py +56 -0
- shop_system_models/consts/messages/admin.py +199 -0
- shop_system_models/consts/messages/locales/en.json +43 -0
- shop_system_models/consts/messages/locales/ru.json +44 -0
- shop_system_models/consts/messages/mapping.py +22 -0
- shop_system_models/deployment_api/__init__.py +1 -0
- shop_system_models/deployment_api/request/authorization.py +1 -0
- shop_system_models/deployment_api/request/bot.py +11 -0
- shop_system_models/deployment_api/request/nocodb.py +14 -0
- shop_system_models/deployment_api/request/premium.py +15 -0
- shop_system_models/deployment_api/request/processes.py +14 -0
- shop_system_models/deployment_api/request/servers.py +0 -0
- shop_system_models/deployment_api/request/services.py +0 -0
- shop_system_models/deployment_api/shared.py +40 -0
- shop_system_models/deployment_api/users.py +45 -0
- shop_system_models/shop_api/__init__.py +6 -0
- shop_system_models/shop_api/bot/__init__.py +1 -0
- shop_system_models/shop_api/bot/request.py +49 -0
- shop_system_models/shop_api/bot/response.py +11 -0
- shop_system_models/shop_api/commands/__init__.py +1 -0
- shop_system_models/shop_api/commands/request.py +20 -0
- shop_system_models/shop_api/commands/response.py +5 -0
- shop_system_models/shop_api/links.py +36 -0
- shop_system_models/shop_api/processes/__init__.py +1 -0
- shop_system_models/shop_api/processes/request.py +38 -0
- shop_system_models/shop_api/processes/response.py +12 -0
- shop_system_models/shop_api/shared.py +20 -0
- shop_system_models/shop_api/shop/__init__.py +4 -0
- shop_system_models/shop_api/shop/request/__init__.py +13 -0
- shop_system_models/shop_api/shop/request/baskets.py +38 -0
- shop_system_models/shop_api/shop/request/categories.py +24 -0
- shop_system_models/shop_api/shop/request/coupons.py +43 -0
- shop_system_models/shop_api/shop/request/details.py +37 -0
- shop_system_models/shop_api/shop/request/orders.py +143 -0
- shop_system_models/shop_api/shop/request/payment_methods.py +17 -0
- shop_system_models/shop_api/shop/request/products.py +41 -0
- shop_system_models/shop_api/shop/request/review.py +12 -0
- shop_system_models/shop_api/shop/request/shop.py +27 -0
- shop_system_models/shop_api/shop/response/__init__.py +11 -0
- shop_system_models/shop_api/shop/response/basic.py +5 -0
- shop_system_models/shop_api/shop/response/baskets.py +36 -0
- shop_system_models/shop_api/shop/response/categories.py +31 -0
- shop_system_models/shop_api/shop/response/coupons.py +16 -0
- shop_system_models/shop_api/shop/response/extra_product_options.py +19 -0
- shop_system_models/shop_api/shop/response/initialization_data.py +21 -0
- shop_system_models/shop_api/shop/response/orders.py +22 -0
- shop_system_models/shop_api/shop/response/pagination.py +17 -0
- shop_system_models/shop_api/shop/response/payment_methods.py +12 -0
- shop_system_models/shop_api/shop/response/products.py +44 -0
- shop_system_models/shop_api/shop/response/review.py +14 -0
- shop_system_models/shop_api/shop/response/users.py +6 -0
- shop_system_models-0.0.1.dev26551.dist-info/METADATA +38 -0
- shop_system_models-0.0.1.dev26551.dist-info/RECORD +57 -0
- shop_system_models-0.0.1.dev26551.dist-info/WHEEL +4 -0
File without changes
|
@@ -0,0 +1,251 @@
|
|
1
|
+
ISO3166 = {
|
2
|
+
"AF": "AFGHANISTAN",
|
3
|
+
"AX": "ÅLAND ISLANDS",
|
4
|
+
"AL": "ALBANIA",
|
5
|
+
"DZ": "ALGERIA",
|
6
|
+
"AS": "AMERICAN SAMOA",
|
7
|
+
"AD": "ANDORRA",
|
8
|
+
"AO": "ANGOLA",
|
9
|
+
"AI": "ANGUILLA",
|
10
|
+
"AQ": "ANTARCTICA",
|
11
|
+
"AG": "ANTIGUA AND BARBUDA",
|
12
|
+
"AR": "ARGENTINA",
|
13
|
+
"AM": "ARMENIA",
|
14
|
+
"AW": "ARUBA",
|
15
|
+
"AU": "AUSTRALIA",
|
16
|
+
"AT": "AUSTRIA",
|
17
|
+
"AZ": "AZERBAIJAN",
|
18
|
+
"BS": "BAHAMAS",
|
19
|
+
"BH": "BAHRAIN",
|
20
|
+
"BD": "BANGLADESH",
|
21
|
+
"BB": "BARBADOS",
|
22
|
+
"BY": "BELARUS",
|
23
|
+
"BE": "BELGIUM",
|
24
|
+
"BZ": "BELIZE",
|
25
|
+
"BJ": "BENIN",
|
26
|
+
"BM": "BERMUDA",
|
27
|
+
"BT": "BHUTAN",
|
28
|
+
"BO": "BOLIVIA, PLURINATIONAL STATE OF",
|
29
|
+
"BQ": "BONAIRE, SINT EUSTATIUS AND SABA",
|
30
|
+
"BA": "BOSNIA AND HERZEGOVINA",
|
31
|
+
"BW": "BOTSWANA",
|
32
|
+
"BV": "BOUVET ISLAND",
|
33
|
+
"BR": "BRAZIL",
|
34
|
+
"IO": "BRITISH INDIAN OCEAN TERRITORY",
|
35
|
+
"BN": "BRUNEI DARUSSALAM",
|
36
|
+
"BG": "BULGARIA",
|
37
|
+
"BF": "BURKINA FASO",
|
38
|
+
"BI": "BURUNDI",
|
39
|
+
"KH": "CAMBODIA",
|
40
|
+
"CM": "CAMEROON",
|
41
|
+
"CA": "CANADA",
|
42
|
+
"CV": "CAPE VERDE",
|
43
|
+
"KY": "CAYMAN ISLANDS",
|
44
|
+
"CF": "CENTRAL AFRICAN REPUBLIC",
|
45
|
+
"TD": "CHAD",
|
46
|
+
"CL": "CHILE",
|
47
|
+
"CN": "CHINA",
|
48
|
+
"CX": "CHRISTMAS ISLAND",
|
49
|
+
"CC": "COCOS (KEELING) ISLANDS",
|
50
|
+
"CO": "COLOMBIA",
|
51
|
+
"KM": "COMOROS",
|
52
|
+
"CG": "CONGO",
|
53
|
+
"CD": "CONGO, THE DEMOCRATIC REPUBLIC OF THE",
|
54
|
+
"CK": "COOK ISLANDS",
|
55
|
+
"CR": "COSTA RICA",
|
56
|
+
"CI": "CÔTE D'IVOIRE",
|
57
|
+
"HR": "CROATIA",
|
58
|
+
"CU": "CUBA",
|
59
|
+
"CW": "CURAÇAO",
|
60
|
+
"CY": "CYPRUS",
|
61
|
+
"CZ": "CZECH REPUBLIC",
|
62
|
+
"DK": "DENMARK",
|
63
|
+
"DJ": "DJIBOUTI",
|
64
|
+
"DM": "DOMINICA",
|
65
|
+
"DO": "DOMINICAN REPUBLIC",
|
66
|
+
"EC": "ECUADOR",
|
67
|
+
"EG": "EGYPT",
|
68
|
+
"SV": "EL SALVADOR",
|
69
|
+
"GQ": "EQUATORIAL GUINEA",
|
70
|
+
"ER": "ERITREA",
|
71
|
+
"EE": "ESTONIA",
|
72
|
+
"ET": "ETHIOPIA",
|
73
|
+
"FK": "FALKLAND ISLANDS (MALVINAS)",
|
74
|
+
"FO": "FAROE ISLANDS",
|
75
|
+
"FJ": "FIJI",
|
76
|
+
"FI": "FINLAND",
|
77
|
+
"FR": "FRANCE",
|
78
|
+
"GF": "FRENCH GUIANA",
|
79
|
+
"PF": "FRENCH POLYNESIA",
|
80
|
+
"TF": "FRENCH SOUTHERN TERRITORIES",
|
81
|
+
"GA": "GABON",
|
82
|
+
"GM": "GAMBIA",
|
83
|
+
"GE": "GEORGIA",
|
84
|
+
"DE": "GERMANY",
|
85
|
+
"GH": "GHANA",
|
86
|
+
"GI": "GIBRALTAR",
|
87
|
+
"GR": "GREECE",
|
88
|
+
"GL": "GREENLAND",
|
89
|
+
"GD": "GRENADA",
|
90
|
+
"GP": "GUADELOUPE",
|
91
|
+
"GU": "GUAM",
|
92
|
+
"GT": "GUATEMALA",
|
93
|
+
"GG": "GUERNSEY",
|
94
|
+
"GN": "GUINEA",
|
95
|
+
"GW": "GUINEA-BISSAU",
|
96
|
+
"GY": "GUYANA",
|
97
|
+
"HT": "HAITI",
|
98
|
+
"HM": "HEARD ISLAND AND MCDONALD ISLANDS",
|
99
|
+
"VA": "HOLY SEE (VATICAN CITY STATE)",
|
100
|
+
"HN": "HONDURAS",
|
101
|
+
"HK": "HONG KONG",
|
102
|
+
"HU": "HUNGARY",
|
103
|
+
"IS": "ICELAND",
|
104
|
+
"IN": "INDIA",
|
105
|
+
"ID": "INDONESIA",
|
106
|
+
"IR": "IRAN, ISLAMIC REPUBLIC OF",
|
107
|
+
"IQ": "IRAQ",
|
108
|
+
"IE": "IRELAND",
|
109
|
+
"IM": "ISLE OF MAN",
|
110
|
+
"IL": "ISRAEL",
|
111
|
+
"IT": "ITALY",
|
112
|
+
"JM": "JAMAICA",
|
113
|
+
"JP": "JAPAN",
|
114
|
+
"JE": "JERSEY",
|
115
|
+
"JO": "JORDAN",
|
116
|
+
"KZ": "KAZAKHSTAN",
|
117
|
+
"KE": "KENYA",
|
118
|
+
"KI": "KIRIBATI",
|
119
|
+
"KP": "KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF",
|
120
|
+
"KR": "KOREA, REPUBLIC OF",
|
121
|
+
"KW": "KUWAIT",
|
122
|
+
"KG": "KYRGYZSTAN",
|
123
|
+
"LA": "LAO PEOPLE'S DEMOCRATIC REPUBLIC",
|
124
|
+
"LV": "LATVIA",
|
125
|
+
"LB": "LEBANON",
|
126
|
+
"LS": "LESOTHO",
|
127
|
+
"LR": "LIBERIA",
|
128
|
+
"LY": "LIBYAN ARAB JAMAHIRIYA",
|
129
|
+
"LI": "LIECHTENSTEIN",
|
130
|
+
"LT": "LITHUANIA",
|
131
|
+
"LU": "LUXEMBOURG",
|
132
|
+
"MO": "MACAO",
|
133
|
+
"MK": "MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF",
|
134
|
+
"MG": "MADAGASCAR",
|
135
|
+
"MW": "MALAWI",
|
136
|
+
"MY": "MALAYSIA",
|
137
|
+
"MV": "MALDIVES",
|
138
|
+
"ML": "MALI",
|
139
|
+
"MT": "MALTA",
|
140
|
+
"MH": "MARSHALL ISLANDS",
|
141
|
+
"MQ": "MARTINIQUE",
|
142
|
+
"MR": "MAURITANIA",
|
143
|
+
"MU": "MAURITIUS",
|
144
|
+
"YT": "MAYOTTE",
|
145
|
+
"MX": "MEXICO",
|
146
|
+
"FM": "MICRONESIA, FEDERATED STATES OF",
|
147
|
+
"MD": "MOLDOVA, REPUBLIC OF",
|
148
|
+
"MC": "MONACO",
|
149
|
+
"MN": "MONGOLIA",
|
150
|
+
"ME": "MONTENEGRO",
|
151
|
+
"MS": "MONTSERRAT",
|
152
|
+
"MA": "MOROCCO",
|
153
|
+
"MZ": "MOZAMBIQUE",
|
154
|
+
"MM": "MYANMAR",
|
155
|
+
"NA": "NAMIBIA",
|
156
|
+
"NR": "NAURU",
|
157
|
+
"NP": "NEPAL",
|
158
|
+
"NL": "NETHERLANDS",
|
159
|
+
"NC": "NEW CALEDONIA",
|
160
|
+
"NZ": "NEW ZEALAND",
|
161
|
+
"NI": "NICARAGUA",
|
162
|
+
"NE": "NIGER",
|
163
|
+
"NG": "NIGERIA",
|
164
|
+
"NU": "NIUE",
|
165
|
+
"NF": "NORFOLK ISLAND",
|
166
|
+
"MP": "NORTHERN MARIANA ISLANDS",
|
167
|
+
"NO": "NORWAY",
|
168
|
+
"OM": "OMAN",
|
169
|
+
"PK": "PAKISTAN",
|
170
|
+
"PW": "PALAU",
|
171
|
+
"PS": "PALESTINIAN TERRITORY, OCCUPIED",
|
172
|
+
"PA": "PANAMA",
|
173
|
+
"PG": "PAPUA NEW GUINEA",
|
174
|
+
"PY": "PARAGUAY",
|
175
|
+
"PE": "PERU",
|
176
|
+
"PH": "PHILIPPINES",
|
177
|
+
"PN": "PITCAIRN",
|
178
|
+
"PL": "POLAND",
|
179
|
+
"PT": "PORTUGAL",
|
180
|
+
"PR": "PUERTO RICO",
|
181
|
+
"QA": "QATAR",
|
182
|
+
"RE": "RÉUNION",
|
183
|
+
"RO": "ROMANIA",
|
184
|
+
"RU": "RUSSIAN FEDERATION",
|
185
|
+
"RW": "RWANDA",
|
186
|
+
"BL": "SAINT BARTHÉLEMY",
|
187
|
+
"SH": "SAINT HELENA, ASCENSION AND TRISTAN DA CUNHA",
|
188
|
+
"KN": "SAINT KITTS AND NEVIS",
|
189
|
+
"LC": "SAINT LUCIA",
|
190
|
+
"MF": "SAINT MARTIN (FRENCH PART)",
|
191
|
+
"PM": "SAINT PIERRE AND MIQUELON",
|
192
|
+
"VC": "SAINT VINCENT AND THE GRENADINES",
|
193
|
+
"WS": "SAMOA",
|
194
|
+
"SM": "SAN MARINO",
|
195
|
+
"ST": "SAO TOME AND PRINCIPE",
|
196
|
+
"SA": "SAUDI ARABIA",
|
197
|
+
"SN": "SENEGAL",
|
198
|
+
"RS": "SERBIA",
|
199
|
+
"SC": "SEYCHELLES",
|
200
|
+
"SL": "SIERRA LEONE",
|
201
|
+
"SG": "SINGAPORE",
|
202
|
+
"SX": "SINT MAARTEN (DUTCH PART)",
|
203
|
+
"SK": "SLOVAKIA",
|
204
|
+
"SI": "SLOVENIA",
|
205
|
+
"SB": "SOLOMON ISLANDS",
|
206
|
+
"SO": "SOMALIA",
|
207
|
+
"ZA": "SOUTH AFRICA",
|
208
|
+
"GS": "SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS",
|
209
|
+
"SS": "SOUTH SUDAN",
|
210
|
+
"ES": "SPAIN",
|
211
|
+
"LK": "SRI LANKA",
|
212
|
+
"SD": "SUDAN",
|
213
|
+
"SR": "SURINAME",
|
214
|
+
"SJ": "SVALBARD AND JAN MAYEN",
|
215
|
+
"SZ": "SWAZILAND",
|
216
|
+
"SE": "SWEDEN",
|
217
|
+
"CH": "SWITZERLAND",
|
218
|
+
"SY": "SYRIAN ARAB REPUBLIC",
|
219
|
+
"TW": "TAIWAN, PROVINCE OF CHINA",
|
220
|
+
"TJ": "TAJIKISTAN",
|
221
|
+
"TZ": "TANZANIA, UNITED REPUBLIC OF",
|
222
|
+
"TH": "THAILAND",
|
223
|
+
"TL": "TIMOR-LESTE",
|
224
|
+
"TG": "TOGO",
|
225
|
+
"TK": "TOKELAU",
|
226
|
+
"TO": "TONGA",
|
227
|
+
"TT": "TRINIDAD AND TOBAGO",
|
228
|
+
"TN": "TUNISIA",
|
229
|
+
"TR": "TURKEY",
|
230
|
+
"TM": "TURKMENISTAN",
|
231
|
+
"TC": "TURKS AND CAICOS ISLANDS",
|
232
|
+
"TV": "TUVALU",
|
233
|
+
"UG": "UGANDA",
|
234
|
+
"UA": "UKRAINE",
|
235
|
+
"AE": "UNITED ARAB EMIRATES",
|
236
|
+
"GB": "UNITED KINGDOM",
|
237
|
+
"US": "UNITED STATES",
|
238
|
+
"UM": "UNITED STATES MINOR OUTLYING ISLANDS",
|
239
|
+
"UY": "URUGUAY",
|
240
|
+
"UZ": "UZBEKISTAN",
|
241
|
+
"VU": "VANUATU",
|
242
|
+
"VE": "VENEZUELA, BOLIVARIAN REPUBLIC OF",
|
243
|
+
"VN": "VIET NAM",
|
244
|
+
"VG": "VIRGIN ISLANDS, BRITISH",
|
245
|
+
"VI": "VIRGIN ISLANDS, U.S.",
|
246
|
+
"WF": "WALLIS AND FUTUNA",
|
247
|
+
"EH": "WESTERN SAHARA",
|
248
|
+
"YE": "YEMEN",
|
249
|
+
"ZM": "ZAMBIA",
|
250
|
+
"ZW": "ZIMBABWE",
|
251
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
from pydantic.types import Enum
|
2
|
+
from enum import Enum
|
3
|
+
|
4
|
+
|
5
|
+
class OrderProcesses(str, Enum):
|
6
|
+
without_payment = "The-devs.Shop.CreateOrder"
|
7
|
+
tg_payment = "The-devs.Shop.MakeOrderWithTelegramPayments"
|
8
|
+
ton_payment = "The-devs.Shop.MakeOrderWithTONPayments"
|
9
|
+
life_pay = "The-devs.Shop.CreateLinkPaymentsOrder"
|
10
|
+
|
11
|
+
|
12
|
+
class PaymentTypes(str, Enum):
|
13
|
+
manual_payment_request = "ManualPaymentRequest"
|
14
|
+
external_card_payment_provider = "ExternalCardPaymentProvider"
|
15
|
+
crypto_ton = "CryptoTON"
|
16
|
+
xtr = "XTR"
|
17
|
+
life_pay = "LifePay"
|
18
|
+
yookassa = "yookassa"
|
19
|
+
tkassa = "tkassa"
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
class ShopStatuses(str, Enum):
|
24
|
+
deploying = 'deploying'
|
25
|
+
active = 'active'
|
26
|
+
unavailable = 'unavailable'
|
27
|
+
deleted = 'deleted'
|
28
|
+
|
29
|
+
|
30
|
+
class TaskStatuses(str, Enum):
|
31
|
+
pending = 'pending'
|
32
|
+
expired = 'expired'
|
33
|
+
completed = 'completed'
|
34
|
+
|
35
|
+
|
36
|
+
class ServiceNames(str, Enum):
|
37
|
+
bot = 'bot'
|
38
|
+
|
39
|
+
|
40
|
+
class UserRoles(str, Enum):
|
41
|
+
user = 'user'
|
42
|
+
admin = 'admin'
|
43
|
+
shop_admin = 'shop_admin'
|
44
|
+
shop_manager = 'shop_manager'
|
45
|
+
|
46
|
+
|
47
|
+
PAYMENTS_PROCESSES_MAPPING = {
|
48
|
+
PaymentTypes.manual_payment_request.value: OrderProcesses.without_payment.value,
|
49
|
+
PaymentTypes.external_card_payment_provider.value: OrderProcesses.tg_payment.value,
|
50
|
+
PaymentTypes.xtr.value: OrderProcesses.tg_payment.value,
|
51
|
+
PaymentTypes.crypto_ton.value: OrderProcesses.ton_payment.value,
|
52
|
+
PaymentTypes.life_pay.value: OrderProcesses.life_pay.value,
|
53
|
+
PaymentTypes.yookassa.value: OrderProcesses.life_pay.value,
|
54
|
+
PaymentTypes.tkassa.value: OrderProcesses.life_pay.value,
|
55
|
+
}
|
56
|
+
|
@@ -0,0 +1,199 @@
|
|
1
|
+
ADMIN_ORDER_CREATED_MESSAGE: dict[str, str] = {
|
2
|
+
"RU": "{user} создал заказ: {order_number}.\n\n"
|
3
|
+
"<b>{order_products}</b>\n"
|
4
|
+
"Тип доставки: {order_delivery_type}\n"
|
5
|
+
"Данные для доставки: <code>{order_delivery_info}</code>\n"
|
6
|
+
"Желаемая дата доставки: {order_date_from}\n"
|
7
|
+
"Телефон для связи: <code>{user_contact_number}</code>\n"
|
8
|
+
"Комментарий: <code>{order_comment}</code>\n\n"
|
9
|
+
"Сумма заказа: <b>{order_amount} {currency}</b>{payment_type_text}\n\n"
|
10
|
+
"Установите статус👇",
|
11
|
+
"EN": "{user} has created an order: {order_number}.\n\n"
|
12
|
+
"<b>{order_products}</b>\n"
|
13
|
+
"Delivery type: {order_delivery_type}\n"
|
14
|
+
"Delivery info: <code>{order_delivery_info}</code>\n"
|
15
|
+
"Desired delivery date: {order_date_from}\n"
|
16
|
+
"Contact phone number: <code>{user_contact_number}</code>\n"
|
17
|
+
"Comment: <code>{order_comment}</code>\n\n"
|
18
|
+
"Order amount: <b>{order_amount} {currency}</b>{payment_type_text}\n\n"
|
19
|
+
"Set the status👇",
|
20
|
+
}
|
21
|
+
|
22
|
+
ADMIN_ORDER_UPDATED_STATUS_MESSAGE: dict[str, str] = {
|
23
|
+
"RU": "Статус заказа {order_number} от {user} изменен.\n\n"
|
24
|
+
"<b>{order_products}</b>\n"
|
25
|
+
"Тип доставки: {order_delivery_type}\n"
|
26
|
+
"Данные для доставки: <code>{order_delivery_info}</code>\n"
|
27
|
+
"Желаемая дата доставки: {order_date_from}\n"
|
28
|
+
"Телефон для связи: <code>{user_contact_number}</code>\n"
|
29
|
+
"Комментарий: <code>{order_comment}</code>\n\n"
|
30
|
+
"Сумма заказа: <b>{order_amount} {currency}</b>{payment_type_text}\n"
|
31
|
+
"Обновленный статус: 👉 <b>{order_status}</b>",
|
32
|
+
"EN": "The status of the order {order_number} from {user} has been changed.\n\n"
|
33
|
+
"<b>{order_products}</b>\n"
|
34
|
+
"Delivery type: {order_delivery_type}\n"
|
35
|
+
"Delivery info: <code>{order_delivery_info}</code>\n"
|
36
|
+
"Desired delivery date: {order_date_from}\n"
|
37
|
+
"Contact phone number: <code>{user_contact_number}</code>\n"
|
38
|
+
"Comment: <code>{order_comment}</code>\n\n"
|
39
|
+
"Order amount: <b>{order_amount} {currency}</b>{payment_type_text}\n"
|
40
|
+
"Updated status: 👉 <b>{order_status}</b>",
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
DEFAULT_USER_STATUS_MESSAGES: dict[str, dict[str, str]] = {
|
45
|
+
"EN": {
|
46
|
+
"Not payed": """Order {order_number} created
|
47
|
+
{order_products}
|
48
|
+
|
49
|
+
Delivery type: {order_delivery_type}
|
50
|
+
Delivery info: {order_delivery_info}
|
51
|
+
Delivery Date: {order_date_from}
|
52
|
+
Comment: {order_comment}
|
53
|
+
Total Amount: {order_amount}
|
54
|
+
|
55
|
+
Status: Not paid""",
|
56
|
+
"Booking request": """Booking request {order_number} created
|
57
|
+
{order_products}
|
58
|
+
|
59
|
+
Delivery type: {order_delivery_type}
|
60
|
+
From date: {order_booking_details_from_date}
|
61
|
+
Till date: {order_booking_details_till_date}
|
62
|
+
Comment: {order_comment}
|
63
|
+
|
64
|
+
Status: Booking Requested""",
|
65
|
+
"Payed": """Order {order_number} updated
|
66
|
+
{order_products}
|
67
|
+
Delivery Type: {order_delivery_type}
|
68
|
+
Delivery Information: {order_delivery_info}
|
69
|
+
Desired Delivery Date: {order_date_from}
|
70
|
+
Comment: {order_comment}
|
71
|
+
Amount: {order_amount}
|
72
|
+
|
73
|
+
Status: Paid""",
|
74
|
+
"Preparing": """Order {order_number} updated
|
75
|
+
{order_products}
|
76
|
+
Delivery Type: {order_delivery_type}
|
77
|
+
Delivery Information: {order_delivery_info}
|
78
|
+
Desired Delivery Date: {order_date_from}
|
79
|
+
Comment: {order_comment}
|
80
|
+
Amount: {order_amount}
|
81
|
+
|
82
|
+
Status: Preparing""",
|
83
|
+
"On the way": """Order {order_number} updated
|
84
|
+
{order_products}
|
85
|
+
Delivery Type: {order_delivery_type}
|
86
|
+
Delivery Information: {order_delivery_info}
|
87
|
+
Desired Delivery Date: {order_date_from}
|
88
|
+
Comment: {order_comment}
|
89
|
+
Amount: {order_amount}
|
90
|
+
|
91
|
+
Status: On the way""",
|
92
|
+
"Delivered": """Order {order_number} updated
|
93
|
+
{order_products}
|
94
|
+
Delivery Type: {order_delivery_type}
|
95
|
+
Delivery Information: {order_delivery_info}
|
96
|
+
Desired Delivery Date: {order_date_from}
|
97
|
+
Comment: {order_comment}
|
98
|
+
Amount: {order_amount}
|
99
|
+
|
100
|
+
Status: Delivered""",
|
101
|
+
"Cancelled": """Order {order_number} updated
|
102
|
+
{order_products}
|
103
|
+
Delivery Type: {order_delivery_type}
|
104
|
+
Delivery Information: {order_delivery_info}
|
105
|
+
Desired Delivery Date: {order_date_from}
|
106
|
+
Comment: {order_comment}
|
107
|
+
Amount: {order_amount}
|
108
|
+
|
109
|
+
Status: Cancelled""",
|
110
|
+
"default": """Order {order_number} updated
|
111
|
+
{order_products}
|
112
|
+
Delivery Type: {order_delivery_type}
|
113
|
+
Delivery Information: {order_delivery_info}
|
114
|
+
Desired Delivery Date: {order_date_from}
|
115
|
+
Comment: {order_comment}
|
116
|
+
Amount: {order_amount}
|
117
|
+
|
118
|
+
Status: {status}""",
|
119
|
+
},
|
120
|
+
"RU": {
|
121
|
+
"Не оплачен": """Создан заказ {order_number}
|
122
|
+
{order_products}
|
123
|
+
|
124
|
+
Тип доставки: {order_delivery_type}
|
125
|
+
Данные для доставки: {order_delivery_info}
|
126
|
+
Желаемая дата доставки: {order_date_from}
|
127
|
+
Комментарий: {order_comment}
|
128
|
+
Сумма заказа: {order_amount}
|
129
|
+
|
130
|
+
Статус: Не оплачен""",
|
131
|
+
"Запрос Брони": """Бронь {order_number} создана
|
132
|
+
{order_products}
|
133
|
+
|
134
|
+
{order_booking_details_from_date} - {order_booking_details_till_date}
|
135
|
+
Комментарий: {order_comment}
|
136
|
+
|
137
|
+
Статус: Запрошена Бронь""",
|
138
|
+
"Оплачен": """Статус заказа {order_number} обновлен
|
139
|
+
{order_products}
|
140
|
+
|
141
|
+
Тип доставки: {order_delivery_type}
|
142
|
+
Данные для доставки: {order_delivery_info}
|
143
|
+
Желаемая дата доставки: {order_date_from}
|
144
|
+
Комментарий: {order_comment}
|
145
|
+
Сумма заказа: {order_amount}
|
146
|
+
|
147
|
+
Статус: Оплачен""",
|
148
|
+
"Собирается": """Статус заказа {order_number} обновлен
|
149
|
+
{order_products}
|
150
|
+
|
151
|
+
Тип доставки: {order_delivery_type}
|
152
|
+
Данные для доставки: {order_delivery_info}
|
153
|
+
Желаемая дата доставки: {order_date_from}
|
154
|
+
Комментарий: {order_comment}
|
155
|
+
Сумма заказа: {order_amount}
|
156
|
+
|
157
|
+
Статус: Собирается""",
|
158
|
+
"В пути": """Статус заказа {order_number} обновлен
|
159
|
+
{order_products}
|
160
|
+
|
161
|
+
Тип доставки: {order_delivery_type}
|
162
|
+
Данные для доставки: {order_delivery_info}
|
163
|
+
Желаемая дата доставки: {order_date_from}
|
164
|
+
Комментарий: {order_comment}
|
165
|
+
Сумма заказа: {order_amount}
|
166
|
+
|
167
|
+
Статус: В пути""",
|
168
|
+
"Доставлен": """Статус заказа {order_number} обновлен
|
169
|
+
{order_products}
|
170
|
+
|
171
|
+
Тип доставки: {order_delivery_type}
|
172
|
+
Данные для доставки: {order_delivery_info}
|
173
|
+
Желаемая дата доставки: {order_date_from}
|
174
|
+
Комментарий: {order_comment}
|
175
|
+
Сумма заказа: {order_amount}
|
176
|
+
|
177
|
+
Статус: Доставлен""",
|
178
|
+
"Отменен": """Статус заказа {order_number} обновлен
|
179
|
+
{order_products}
|
180
|
+
|
181
|
+
Тип доставки: {order_delivery_type}
|
182
|
+
Данные для доставки: {order_delivery_info}
|
183
|
+
Желаемая дата доставки: {order_date_from}
|
184
|
+
Комментарий: {order_comment}
|
185
|
+
Сумма заказа: {order_amount}
|
186
|
+
|
187
|
+
Статус: Отменен""",
|
188
|
+
"default": """Статус заказа {order_number} обновлен
|
189
|
+
{order_products}
|
190
|
+
|
191
|
+
Тип доставки: {order_delivery_type}
|
192
|
+
Данные для доставки: {order_delivery_info}
|
193
|
+
Желаемая дата доставки: {order_date_from}
|
194
|
+
Комментарий: {order_comment}
|
195
|
+
Сумма заказа: {order_amount}
|
196
|
+
|
197
|
+
Статус: {status}""",
|
198
|
+
},
|
199
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"admin_order_created": {
|
3
|
+
"text": "{user} has created an order: {order_number}.{user_contact_link}\n\n<b>{order_products}</b>{type_of_delivery}\nDelivery info: <code>{order_delivery_info}</code>\nDesired delivery date: {order_date_from}{user_contact_number}\nComment: <code>{order_comment}</code>\n\nOrder amount: <b>{order_amount} {currency}</b>{payment_type_text}\n\nSet the status👇"
|
4
|
+
},
|
5
|
+
"admin_booking_created": {
|
6
|
+
"text": "{user} requested booking: {order_number}.\n\n<b>{order_products}</b>\nComment: <code>{order_comment}</code>\n\nFrom date: {order_booking_details_from_date}\nTill date: {order_booking_details_till_date}\n\nSet the status👇"
|
7
|
+
},
|
8
|
+
"admin_order_updated": {
|
9
|
+
"text": "The status of the order {order_number} from {user} has been changed.\n\n<b>{order_products}</b>{type_of_delivery}\nDelivery info: <code>{order_delivery_info}</code>\nDesired delivery date: {order_date_from}{user_contact_number}\nComment: <code>{order_comment}</code>\n\nOrder amount: <b>{order_amount} {currency}</b>{payment_type_text}{user_contact_link}\nUpdated status: 👉 <b>{order_status}</b>"
|
10
|
+
},
|
11
|
+
"admin_booking_updated": {
|
12
|
+
"text": "The status of the booking {order_number} from {user} has been changed.\n\n<b>{order_products}</b>\nComment: <code>{order_comment}</code>\n\nFrom date: {order_booking_details_from_date}\nTill date: {order_booking_details_till_date}\n\nUpdated status: 👉 <b>{order_status}</b>"
|
13
|
+
},
|
14
|
+
"extra_admin_order_blobs": {
|
15
|
+
"type_of_delivery": "Delivery type: {order_delivery_type}",
|
16
|
+
"user_contact_number": "Phone: <code>{contact_number}</code>",
|
17
|
+
"user_contact_link": "📩 <a href='{user_thread_link}'>Chat with user</a>"
|
18
|
+
},
|
19
|
+
"payment_message": "Payment method: ",
|
20
|
+
"open_tg_payment_details_message": "Order payment is made by bank card using the telegram payment provider.",
|
21
|
+
"open_tg_stars_details_message": "Order payment is made using Telegram Stars",
|
22
|
+
"default_user_status_messages": {
|
23
|
+
"Not payed": "Order {order_number} created\n{order_products}\n\nDelivery type: {order_delivery_type}\nDelivery info: {order_delivery_info}\nDelivery Date: {order_date_from}\nComment: {order_comment}\nTotal Amount: {order_amount}\n\nStatus: Not paid",
|
24
|
+
"Payed": "Order {order_number} updated\n{order_products}\nDelivery Type: {order_delivery_type}\nDelivery Information: {order_delivery_info}\nDesired Delivery Date: {order_date_from}\nComment: {order_comment}\nAmount: {order_amount}\n\nStatus: Paid",
|
25
|
+
"Preparing": "Order {order_number} updated\n{order_products}\nDelivery Type: {order_delivery_type}\nDelivery Information: {order_delivery_info}\nDesired Delivery Date: {order_date_from}\nComment: {order_comment}\nAmount: {order_amount}\n\nStatus: Preparing",
|
26
|
+
"On the way": "Order {order_number} updated\n{order_products}\nDelivery Type: {order_delivery_type}\nDelivery Information: {order_delivery_info}\nDesired Delivery Date: {order_date_from}\nComment: {order_comment}\nAmount: {order_amount}\n\nStatus: On the way",
|
27
|
+
"Delivered": "Order {order_number} updated\n{order_products}\nDelivery Type: {order_delivery_type}\nDelivery Information: {order_delivery_info}\nDesired Delivery Date: {order_date_from}\nComment: {order_comment}\nAmount: {order_amount}\n\nStatus: Delivered",
|
28
|
+
"Cancelled": "Order {order_number} updated\n{order_products}\nDelivery Type: {order_delivery_type}\nDelivery Information: {order_delivery_info}\nDesired Delivery Date: {order_date_from}\nComment: {order_comment}\nAmount: {order_amount}\n\nStatus: Cancelled",
|
29
|
+
"Public notification": "Order {order_number} has been created.\n\n<b>Items: {order_products}</b>",
|
30
|
+
"default": "Order {order_number} updated\n{order_products}\nDelivery Type: {order_delivery_type}\nDelivery Information: {order_delivery_info}\nDesired Delivery Date: {order_date_from}\nComment: {order_comment}\nAmount: {order_amount}\n\nStatus: {status}"
|
31
|
+
},
|
32
|
+
"default_user_booking_status_messages": {
|
33
|
+
"Booking request": "Booking request {order_number} created\n{order_products}\n\nDelivery type: {order_delivery_type}\nFrom date: {order_booking_details_from_date}\nTill date: {order_booking_details_till_date}\nComment: {order_comment}\n\nStatus: Booking Requested",
|
34
|
+
"Approved": "Booking request {order_number} created\n{order_products}\n\nDelivery type: {order_delivery_type}\nFrom date: {order_booking_details_from_date}\nTill date: {order_booking_details_till_date}\nComment: {order_comment}\n\nStatus: Booking Approved",
|
35
|
+
"Cancelled": "Booking request {order_number} created\n{order_products}\n\nDelivery type: {order_delivery_type}\nFrom date: {order_booking_details_from_date}\nTill date: {order_booking_details_till_date}\nComment: {order_comment}\n\nStatus: Booking Cancelled",
|
36
|
+
"default": "Booking request {order_number} created\n{order_products}\n\nDelivery type: {order_delivery_type}\nFrom date: {order_booking_details_from_date}\nTill date: {order_booking_details_till_date}\nComment: {order_comment}\n\nStatus: {status}"
|
37
|
+
},
|
38
|
+
"default_user_payment_type_messages": {
|
39
|
+
"card": "Order payment is made by bank card using the telegram payment provider",
|
40
|
+
"tg_stars": "Order payment is made using Telegram Stars",
|
41
|
+
"tg_stars_item_title": "Order {order_number}"
|
42
|
+
}
|
43
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
{
|
2
|
+
"admin_order_created": {
|
3
|
+
"text": "{user} создал заказ: {order_number}.{user_contact_link}\n\n<b>{order_products}</b>{type_of_delivery}\nИнформация о доставке: <code>{order_delivery_info}</code>\nЖелаемая дата доставки: {order_date_from}{user_contact_number}\nКомментарий: <code>{order_comment}</code>\n\nСумма заказа: <b>{order_amount} {currency}</b>{payment_type_text}\n\nУстановите статус👇"
|
4
|
+
},
|
5
|
+
"admin_booking_created": {
|
6
|
+
"text": "{user} запросил бронирование: {order_number}.\n\n<b>{order_products}</b>\nКомментарий: <code>{order_comment}</code>\n\nС даты: {order_booking_details_from_date}\nПо дату: {order_booking_details_till_date}\n\nУстановите статус👇"
|
7
|
+
},
|
8
|
+
"admin_order_updated": {
|
9
|
+
"text": "Статус заказа {order_number} от {user} был изменен.\n\n<b>{order_products}</b>{type_of_delivery}\nИнформация о доставке: <code>{order_delivery_info}</code>\nЖелаемая дата доставки: {order_date_from}{user_contact_number}\nКомментарий: <code>{order_comment}</code>\n\nСумма заказа: <b>{order_amount} {currency}</b>{payment_type_text}{user_contact_link}\nОбновленный статус: 👉 <b>{order_status}</b>"
|
10
|
+
},
|
11
|
+
"admin_booking_updated": {
|
12
|
+
"text": "Статус бронирования {order_number} от {user} был изменен.\n\n<b>{order_products}</b>\nКомментарий: <code>{order_comment}</code>\n\nС даты: {order_booking_details_from_date}\nПо дату: {order_booking_details_till_date}\n\nОбновленный статус: 👉 <b>{order_status}</b>"
|
13
|
+
},
|
14
|
+
"extra_admin_order_blobs": {
|
15
|
+
"type_of_delivery": "Тип доставки: {order_delivery_type}",
|
16
|
+
"user_contact_number": "Контактный телефон: <code>{contact_number}</code>",
|
17
|
+
"user_contact_link": "📩 <a href='{user_thread_link}'>Чат с пользователем</a>"
|
18
|
+
},
|
19
|
+
"payment_message": "Способ оплаты: ",
|
20
|
+
"open_tg_payment_details_message": "Оплата заказа произведена банковской картой через платежного провайдера Telegram.",
|
21
|
+
"open_tg_stars_details_message": "Оплата заказа произведена с использованием Telegram Stars",
|
22
|
+
"default_user_status_messages": {
|
23
|
+
"Not payed": "Заказ {order_number} создан\n{order_products}\n\nТип доставки: {order_delivery_type}\nИнформация о доставке: {order_delivery_info}\nДата доставки: {order_date_from}\nКомментарий: {order_comment}\nИтоговая сумма: {order_amount}\n\nСтатус: Не оплачено",
|
24
|
+
"Payed": "Заказ {order_number} обновлен\n{order_products}\nТип доставки: {order_delivery_type}\nИнформация о доставке: {order_delivery_info}\nЖелаемая дата доставки: {order_date_from}\nКомментарий: {order_comment}\nСумма: {order_amount}\n\nСтатус: Оплачено",
|
25
|
+
"Preparing": "Заказ {order_number} обновлен\n{order_products}\nТип доставки: {order_delivery_type}\nИнформация о доставке: {order_delivery_info}\nЖелаемая дата доставки: {order_date_from}\nКомментарий: {order_comment}\nСумма: {order_amount}\n\nСтатус: В процессе подготовки",
|
26
|
+
"On the way": "Заказ {order_number} обновлен\n{order_products}\nТип доставки: {order_delivery_type}\nИнформация о доставке: {order_delivery_info}\nЖелаемая дата доставки: {order_date_from}\nКомментарий: {order_comment}\nСумма: {order_amount}\n\nСтатус: В пути",
|
27
|
+
"Delivered": "Заказ {order_number} обновлен\n{order_products}\nТип доставки: {order_delivery_type}\nИнформация о доставке: {order_delivery_info}\nЖелаемая дата доставки: {order_date_from}\nКомментарий: {order_comment}\nСумма: {order_amount}\n\nСтатус: Доставлен",
|
28
|
+
"Cancelled": "Заказ {order_number} обновлен\n{order_products}\nТип доставки: {order_delivery_type}\nИнформация о доставке: {order_delivery_info}\nЖелаемая дата доставки: {order_date_from}\nКомментарий: {order_comment}\nСумма: {order_amount}\n\nСтатус: Отменен",
|
29
|
+
"Public notification": "Заказ {order_number} создан.\n\n<b>{order_products}</b>",
|
30
|
+
"Публичное сообщение": "Заказ {order_number} создан.\n\n<b>{order_products}</b>",
|
31
|
+
"default": "Заказ {order_number} обновлен\n{order_products}\nТип доставки: {order_delivery_type}\nИнформация о доставке: {order_delivery_info}\nЖелаемая дата доставки: {order_date_from}\nКомментарий: {order_comment}\nСумма: {order_amount}\n\nСтатус: {status}"
|
32
|
+
},
|
33
|
+
"default_user_booking_status_messages": {
|
34
|
+
"Booking request": "Запрос на бронирование {order_number} создан\n{order_products}\n\nТип доставки: {order_delivery_type}\nС даты: {order_booking_details_from_date}\nПо дату: {order_booking_details_till_date}\nКомментарий: {order_comment}\n\nСтатус: Запрос на бронирование",
|
35
|
+
"Approved": "Запрос на бронирование {order_number} создан\n{order_products}\n\nТип доставки: {order_delivery_type}\nС даты: {order_booking_details_from_date}\nПо дату: {order_booking_details_till_date}\nКомментарий: {order_comment}\n\nСтатус: Бронирование одобрено",
|
36
|
+
"Cancelled": "Запрос на бронирование {order_number} создан\n{order_products}\n\nТип доставки: {order_delivery_type}\nС даты: {order_booking_details_from_date}\nПо дату: {order_booking_details_till_date}\nКомментарий: {order_comment}\n\nСтатус: Бронирование отменено",
|
37
|
+
"default": "Запрос на бронирование {order_number} создан\n{order_products}\n\nТип доставки: {order_delivery_type}\nС даты: {order_booking_details_from_date}\nПо дату: {order_booking_details_till_date}\nКомментарий: {order_comment}\n\nСтатус: {status}"
|
38
|
+
},
|
39
|
+
"default_user_payment_type_messages": {
|
40
|
+
"card": "Оплата заказа производится по банковской карте с помощью платежного провайдера телеграмма",
|
41
|
+
"tg_stars": "Order payment is made by bank card using the telegram payment provider",
|
42
|
+
"tg_stars_item_title": "Заказ {order_number}"
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
from shop_system_models.consts.messages.admin import (
|
2
|
+
ADMIN_ORDER_CREATED_MESSAGE,
|
3
|
+
ADMIN_ORDER_UPDATED_STATUS_MESSAGE,
|
4
|
+
)
|
5
|
+
from shop_system_models.shop_api.bot.request import MessagesType
|
6
|
+
|
7
|
+
ADMIN_MESSAGES = {
|
8
|
+
MessagesType.admin_order_created: ADMIN_ORDER_CREATED_MESSAGE,
|
9
|
+
MessagesType.admin_order_updated: ADMIN_ORDER_UPDATED_STATUS_MESSAGE,
|
10
|
+
}
|
11
|
+
|
12
|
+
PAYMENT_MESSAGE = {"RU": "Способ оплаты: ", "EN": "Payment method: "}
|
13
|
+
|
14
|
+
OPEN_TG_PAYMENT_DETAILS_MESSAGE = {
|
15
|
+
"RU": "Оплата заказа производится по банковской карте с помощью платежного провайдера телеграмма.",
|
16
|
+
"EN": "Order payment is made by bank card using the telegram payment provider.",
|
17
|
+
}
|
18
|
+
|
19
|
+
OPEN_TG_STARS_DETAILS_MESSAGE = {
|
20
|
+
"RU": "Оплата заказа производится с использованием Telegram Stars",
|
21
|
+
"EN": "Order payment is made using Telegram Stars",
|
22
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
# from shared import *
|
@@ -0,0 +1 @@
|
|
1
|
+
|