Subversion Repositories SmartDukaan

Rev

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

Rev 2599 Rev 2613
Line 403... Line 403...
403
    pass
403
    pass
404
 
404
 
405
  def validateDoa(self, orderId, isValid):
405
  def validateDoa(self, orderId, isValid):
406
    """
406
    """
407
    Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
407
    Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
408
    the order state is changed to DOA_PENDING.
408
    the order state is changed to DOA_CERT_VALID.
409
    If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
409
    If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
410
    If the order is in any other state, it returns false.
410
    If the order is in any other state, it returns false.
411
    Throws an exception if the order with the given id couldn't be found.
411
    Throws an exception if the order with the given id couldn't be found.
412
    
412
    
413
    Parameters:
413
    Parameters:
Line 1840... Line 1840...
1840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "acceptDoa failed: unknown result");
1840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "acceptDoa failed: unknown result");
1841
 
1841
 
1842
  def validateDoa(self, orderId, isValid):
1842
  def validateDoa(self, orderId, isValid):
1843
    """
1843
    """
1844
    Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
1844
    Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
1845
    the order state is changed to DOA_PENDING.
1845
    the order state is changed to DOA_CERT_VALID.
1846
    If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
1846
    If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
1847
    If the order is in any other state, it returns false.
1847
    If the order is in any other state, it returns false.
1848
    Throws an exception if the order with the given id couldn't be found.
1848
    Throws an exception if the order with the given id couldn't be found.
1849
    
1849
    
1850
    Parameters:
1850
    Parameters: