| Line 23... |
Line 23... |
| 23 |
add_address_to_cart, commit_cart,\
|
23 |
add_address_to_cart, commit_cart,\
|
| 24 |
validate_cart, merge_cart, delete_item_from_cart, check_out, reset_cart,\
|
24 |
validate_cart, merge_cart, delete_item_from_cart, check_out, reset_cart,\
|
| 25 |
apply_coupon_to_cart, remove_coupon, get_carts_with_coupon_count,\
|
25 |
apply_coupon_to_cart, remove_coupon, get_carts_with_coupon_count,\
|
| 26 |
delete_discounts_from_cart, save_discounts, show_cod_option,\
|
26 |
delete_discounts_from_cart, save_discounts, show_cod_option,\
|
| 27 |
insure_item, cancel_insurance, store_insurance_specific_details,\
|
27 |
insure_item, cancel_insurance, store_insurance_specific_details,\
|
| 28 |
is_insurance_detail_present, add_store_to_cart, is_product_added_to_cart
|
28 |
is_insurance_detail_present, add_store_to_cart, get_products_added_to_cart
|
| 29 |
|
29 |
|
| 30 |
from shop2020.model.v1.user.impl.Converters import to_t_user, to_t_cart, to_t_address, to_t_user_communication,\
|
30 |
from shop2020.model.v1.user.impl.Converters import to_t_user, to_t_cart, to_t_address, to_t_user_communication,\
|
| 31 |
to_t_master_affiliate, to_t_affiliate, to_t_tracker, to_t_track_log
|
31 |
to_t_master_affiliate, to_t_affiliate, to_t_tracker, to_t_track_log
|
| 32 |
|
32 |
|
| 33 |
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
|
33 |
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
|
| Line 800... |
Line 800... |
| 800 |
try:
|
800 |
try:
|
| 801 |
return get_user_emails(to_py_date(startDate), to_py_date(endDate))
|
801 |
return get_user_emails(to_py_date(startDate), to_py_date(endDate))
|
| 802 |
finally:
|
802 |
finally:
|
| 803 |
self.closeSession()
|
803 |
self.closeSession()
|
| 804 |
|
804 |
|
| 805 |
def isProductAddedToCart(self, item_id, startDate, endDate):
|
805 |
def getProductsAddedToCart(self, startDate, endDate):
|
| 806 |
"""
|
806 |
"""
|
| 807 |
Returns whether product is added to cart from startDate to endDate
|
807 |
Returns list of products added to cart from startDate to endDate
|
| 808 |
"""
|
808 |
"""
|
| 809 |
try:
|
809 |
try:
|
| 810 |
return is_product_added_to_cart(item_id, startDate, endDate)
|
810 |
return get_products_added_to_cart(startDate, endDate)
|
| 811 |
finally:
|
811 |
finally:
|
| 812 |
self.closeSession()
|
812 |
self.closeSession()
|
| 813 |
|
813 |
|
| 814 |
|
814 |
|
| 815 |
def insureItem(self, itemId, cartId, toInsure, insurerType):
|
815 |
def insureItem(self, itemId, cartId, toInsure, insurerType):
|