shop.py
4.65 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
from floraconcierge.shortcuts import get_apiclient
def get_categories_list(parent_id=None):
return get_apiclient().services.shop.get_categories_list(
parent_id=parent_id)
def get_category_by_id(id):
return get_apiclient().services.shop.get_category_by_id(id)
def get_currencies_list(order_id=None):
return get_apiclient().services.shop.get_currencies_list(order_id=order_id)
def get_currency_by_id(id, order_id=None):
return get_apiclient().services.shop.get_currency_by_id(
id,
order_id=order_id)
def get_gallery():
return get_apiclient().services.shop.get_gallery()
def calculate_order(postObject):
return get_apiclient().services.shop.calculate_order(postObject)
def get_order_by_id(id):
return get_apiclient().services.shop.get_order_by_id(id)
def get_last_delivered():
return get_apiclient().services.shop.get_last_delivered()
def get_user_orders(is_draft=None):
return get_apiclient().services.shop.get_user_orders(is_draft=is_draft)
def get_order_reasons_text_by_id(id):
return get_apiclient().services.shop.get_order_reasons_text_by_id(id)
def get_order_reasons_texts(parent_id=None):
return get_apiclient().services.shop.get_order_reasons_texts(
parent_id=parent_id)
def get_order_reason_by_id(id):
return get_apiclient().services.shop.get_order_reason_by_id(id)
def get_order_reasons():
return get_apiclient().services.shop.get_order_reasons()
def get_order_status(id):
return get_apiclient().services.shop.get_order_status(id)
def submit_order_phone(postObject):
return get_apiclient().services.shop.submit_order_phone(postObject)
def submit_order_request(postObject):
return get_apiclient().services.shop.submit_order_request(postObject)
def submit_order(postObject):
return get_apiclient().services.shop.submit_order(postObject)
def submit_order_ticket(id, key, message):
return get_apiclient().services.shop.submit_order_ticket(id, key, message)
def get_order_tickets(id, key):
return get_apiclient().services.shop.get_order_tickets(id, key)
def get_payment_system_by_id(id):
return get_apiclient().services.shop.get_payment_system_by_id(id)
def get_payment_systems_list():
return get_apiclient().services.shop.get_payment_systems_list()
def get_product_by_id(id):
return get_apiclient().services.shop.get_product_by_id(id)
def get_products_of_day():
return get_apiclient().services.shop.get_products_of_day()
def get_featured_products(city_id=None, country_id=None, product_of_day=None):
return get_apiclient().services.shop.get_featured_products(
city_id=city_id,
country_id=country_id,
product_of_day=product_of_day)
def lookup_products(postObject):
return get_apiclient().services.shop.lookup_products(postObject)
def get_parent_product_by_id(id):
return get_apiclient().services.shop.get_parent_product_by_id(id)
def search_products(query):
return get_apiclient().services.shop.search_products(query)
def get_products_list(
category=None,
products=None,
ingredient=None,
random=None):
return get_apiclient().services.shop.get_products_list(
category=category,
products=products,
ingredient=ingredient,
random=random)
def check_promo_code(code):
return get_apiclient().services.shop.check_promo_code(code)
def get_review_by_id(id):
return get_apiclient().services.shop.get_review_by_id(id)
def get_reviews_random(count=None):
return get_apiclient().services.shop.get_reviews_random(count=count)
def submit_review(postObject):
return get_apiclient().services.shop.submit_review(postObject)
def get_reviews_totals():
return get_apiclient().services.shop.get_reviews_totals()
def get_reviews(
limit=None,
offset=None,
product_id=None,
after_id=None,
before_id=None,
city_id=None,
country_id=None,
year=None,
category=None):
return get_apiclient().services.shop.get_reviews(
limit=limit,
offset=offset,
product_id=product_id,
after_id=after_id,
before_id=before_id,
city_id=city_id,
country_id=country_id,
year=year,
category=category)
def get_cash_salons_cities(country_id):
return get_apiclient().services.shop.get_cash_salons_cities(country_id)
def get_cash_salons_countries():
return get_apiclient().services.shop.get_cash_salons_countries()
def get_cash_salons_by_id(salon_id):
return get_apiclient().services.shop.get_cash_salons_by_id(salon_id)
def get_cash_salons_by_city(city_id):
return get_apiclient().services.shop.get_cash_salons_by_city(city_id)