Subversion Repositories SmartDukaan

Rev

Rev 4323 | Rev 5326 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4323 Rev 4668
Line 20... Line 20...
20
    get_cart_by_id, get_cart_by_user_id_and_status, get_carts_by_status,\
20
    get_cart_by_id, get_cart_by_user_id_and_status, get_carts_by_status,\
21
    get_carts_between, change_cart_status, add_item_to_cart,\
21
    get_carts_between, change_cart_status, add_item_to_cart,\
22
    change_item_status, add_address_to_cart, commit_cart,\
22
    change_item_status, add_address_to_cart, commit_cart,\
23
    validate_cart, merge_cart, delete_item_from_cart, check_out, reset_cart,\
23
    validate_cart, merge_cart, delete_item_from_cart, check_out, reset_cart,\
24
    apply_coupon_to_cart, remove_coupon, get_carts_with_coupon_count,\
24
    apply_coupon_to_cart, remove_coupon, get_carts_with_coupon_count,\
25
    delete_discounts_from_cart, save_discounts
25
    delete_discounts_from_cart, save_discounts, show_cod_option
26
from shop2020.model.v1.user.impl.Converters import to_t_user, to_t_user_state, to_t_cart, to_t_address, to_t_user_communication,\
26
from shop2020.model.v1.user.impl.Converters import to_t_user, to_t_user_state, to_t_cart, to_t_address, to_t_user_communication,\
27
     to_t_master_affiliate, to_t_affiliate, to_t_tracker, to_t_track_log,\
27
     to_t_master_affiliate, to_t_affiliate, to_t_tracker, to_t_track_log,\
28
    to_t_user_note
28
    to_t_user_note
29
 
29
 
30
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
30
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
Line 855... Line 855...
855
        try:
855
        try:
856
            return save_discounts(discounts)
856
            return save_discounts(discounts)
857
        finally:
857
        finally:
858
            self.closeSession()
858
            self.closeSession()
859
 
859
 
-
 
860
    def showCODOption(self, cartId, sourceId, pincode):
-
 
861
        '''
-
 
862
        Parameters:
-
 
863
         - cartId
-
 
864
         - pincode
-
 
865
        '''
-
 
866
        try:
-
 
867
            return show_cod_option(cartId, sourceId, pincode)
-
 
868
        finally:
-
 
869
            self.closeSession()
-
 
870
    
860
    def closeSession(self, ):
871
    def closeSession(self, ):
861
        CartDataAccessors.close_session()
872
        CartDataAccessors.close_session()
862
        UserDataAccessors.close_session()
873
        UserDataAccessors.close_session()
863
 
874
 
864
    def isAlive(self, ):
875
    def isAlive(self, ):