Subversion Repositories SmartDukaan

Rev

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

Rev 2591 Rev 2599
Line 540... Line 540...
540
        finally:
540
        finally:
541
            close_session()    
541
            close_session()    
542
    
542
    
543
    def acceptDoa(self, orderId):
543
    def acceptDoa(self, orderId):
544
        """
544
        """
545
        If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RETURNED and returns true.
545
        If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
546
        If the order is in any other state, it returns false.
546
        If the order is in any other state, it returns false.
547
        Throws an exception if the order with the given id couldn't be found.
547
        Throws an exception if the order with the given id couldn't be found.
548
        
548
        
549
        Parameters:
549
        Parameters:
550
         - orderId
550
         - orderId
Line 554... Line 554...
554
        finally:
554
        finally:
555
            close_session()
555
            close_session()
556
 
556
 
557
    def validateDoa(self, orderId, isValid):
557
    def validateDoa(self, orderId, isValid):
558
        """
558
        """
559
        Used to validate the DOA certificate for an order in the DOA_RETURNED state. If the certificate is valid,
559
        Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
560
        the order state is changed to DOA_PENDING.
560
        the order state is changed to DOA_PENDING.
561
        If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
561
        If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
562
        If the order is in any other state, it returns false.
562
        If the order is in any other state, it returns false.
563
        Throws an exception if the order with the given id couldn't be found.
563
        Throws an exception if the order with the given id couldn't be found.
564
        
564