Subversion Repositories SmartDukaan

Rev

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

Rev 7607 Rev 7645
Line 877... Line 877...
877
        try:
877
        try:
878
            return mark_order_doa_request_received(orderId)
878
            return mark_order_doa_request_received(orderId)
879
        finally:
879
        finally:
880
            close_session()
880
            close_session()
881
 
881
 
882
    def markOrderDoaRequestAuthorized(self, orderId, isAuthorized):
882
    def markOrderDoaRequestAuthorized(self, orderId, isAuthorized,  fromStore, isReship):
883
        """
883
        """
884
        CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED
884
        CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED
885
        to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
885
        to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
886
    
886
    
887
        Parameters:
887
        Parameters:
888
         - orderId
888
         - orderId
889
         - isAuthorized
889
         - isAuthorized
890
        """
890
        """
891
        try:
891
        try:
892
            return mark_order_doa_request_authorized(orderId, isAuthorized)
892
            return mark_order_doa_request_authorized(orderId, isAuthorized, fromStore, isReship)
893
        finally:
893
        finally:
894
            close_session()
894
            close_session()
895
 
895
 
896
    def markOrderReturnRequestReceived(self, orderId):
896
    def markOrderReturnRequestReceived(self, orderId):
897
        """
897
        """
Line 903... Line 903...
903
        try:
903
        try:
904
            return mark_order_return_request_received(orderId)
904
            return mark_order_return_request_received(orderId)
905
        finally:
905
        finally:
906
            close_session()
906
            close_session()
907
 
907
 
908
    def markOrderReturnRequestAuthorized(self, orderId, isAuthorized):
908
    def markOrderReturnRequestAuthorized(self, orderId, isAuthorized, fromStore, isReship):
909
        """
909
        """
910
        CRM person can authorize or deny the request reised by customer. If he authorizes order will change from RET_REQUEST_RECEIVED
910
        CRM person can authorize or deny the request reised by customer. If he authorizes order will change from RET_REQUEST_RECEIVED
911
        to RET_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
911
        to RET_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
912
    
912
    
913
        Parameters:
913
        Parameters:
914
         - orderId
914
         - orderId
915
         - isAuthorized
915
         - isAuthorized
916
        """
916
        """
917
        try:
917
        try:
918
            return mark_order_return_request_authorized(orderId, isAuthorized)
918
            return mark_order_return_request_authorized(orderId, isAuthorized, fromStore, isReship)
919
        finally:
919
        finally:
920
            close_session()
920
            close_session()
921
 
921
 
922
    def requestPickupNumber(self, orderId, providerId):
922
    def requestPickupNumber(self, orderId, providerId):
923
        """
923
        """
Line 2194... Line 2194...
2194
            orders = get_orders_by_mobile_number(mobileNumber)
2194
            orders = get_orders_by_mobile_number(mobileNumber)
2195
            return [to_t_order(order) for order in orders]
2195
            return [to_t_order(order) for order in orders]
2196
        finally:
2196
        finally:
2197
            self.closeSession()
2197
            self.closeSession()
2198
        
2198
        
2199
    def getOrdersByAmazonOrderItemCode(self, amazonId):
2199
    def getOrdersByAmazonOrderCode(self, amazonId):
2200
        try:
2200
        try:
2201
            orders = get_orders_by_amazon_id(amazonId)
2201
            orders = get_orders_by_amazon_id(amazonId)
2202
            return [to_t_order(order) for order in orders]
2202
            return [to_t_order(order) for order in orders]
2203
        finally:
2203
        finally:
2204
            self.closeSession()
2204
            self.closeSession()