Subversion Repositories SmartDukaan

Rev

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

Rev 7285 Rev 7293
Line 53... Line 53...
53
    Parameters:
53
    Parameters:
54
     - transactionId
54
     - transactionId
55
    """
55
    """
56
    pass
56
    pass
57
 
57
 
58
  def changeTransactionStatus(self, transactionId, status, description, pickUp, orderType):
58
  def changeTransactionStatus(self, transactionId, status, description, pickUp, orderType, source):
59
    """
59
    """
60
    Parameters:
60
    Parameters:
61
     - transactionId
61
     - transactionId
62
     - status
62
     - status
63
     - description
63
     - description
64
     - pickUp
64
     - pickUp
65
     - orderType
65
     - orderType
-
 
66
     - source
66
    """
67
    """
67
    pass
68
    pass
68
 
69
 
69
  def enqueueTransactionInfoEmail(self, transactionId):
70
  def enqueueTransactionInfoEmail(self, transactionId):
70
    """
71
    """
Line 1766... Line 1767...
1766
      return result.success
1767
      return result.success
1767
    if result.ex is not None:
1768
    if result.ex is not None:
1768
      raise result.ex
1769
      raise result.ex
1769
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
1770
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
1770
 
1771
 
1771
  def changeTransactionStatus(self, transactionId, status, description, pickUp, orderType):
1772
  def changeTransactionStatus(self, transactionId, status, description, pickUp, orderType, source):
1772
    """
1773
    """
1773
    Parameters:
1774
    Parameters:
1774
     - transactionId
1775
     - transactionId
1775
     - status
1776
     - status
1776
     - description
1777
     - description
1777
     - pickUp
1778
     - pickUp
1778
     - orderType
1779
     - orderType
-
 
1780
     - source
1779
    """
1781
    """
1780
    self.send_changeTransactionStatus(transactionId, status, description, pickUp, orderType)
1782
    self.send_changeTransactionStatus(transactionId, status, description, pickUp, orderType, source)
1781
    return self.recv_changeTransactionStatus()
1783
    return self.recv_changeTransactionStatus()
1782
 
1784
 
1783
  def send_changeTransactionStatus(self, transactionId, status, description, pickUp, orderType):
1785
  def send_changeTransactionStatus(self, transactionId, status, description, pickUp, orderType, source):
1784
    self._oprot.writeMessageBegin('changeTransactionStatus', TMessageType.CALL, self._seqid)
1786
    self._oprot.writeMessageBegin('changeTransactionStatus', TMessageType.CALL, self._seqid)
1785
    args = changeTransactionStatus_args()
1787
    args = changeTransactionStatus_args()
1786
    args.transactionId = transactionId
1788
    args.transactionId = transactionId
1787
    args.status = status
1789
    args.status = status
1788
    args.description = description
1790
    args.description = description
1789
    args.pickUp = pickUp
1791
    args.pickUp = pickUp
1790
    args.orderType = orderType
1792
    args.orderType = orderType
-
 
1793
    args.source = source
1791
    args.write(self._oprot)
1794
    args.write(self._oprot)
1792
    self._oprot.writeMessageEnd()
1795
    self._oprot.writeMessageEnd()
1793
    self._oprot.trans.flush()
1796
    self._oprot.trans.flush()
1794
 
1797
 
1795
  def recv_changeTransactionStatus(self, ):
1798
  def recv_changeTransactionStatus(self, ):
Line 7570... Line 7573...
7570
    args = changeTransactionStatus_args()
7573
    args = changeTransactionStatus_args()
7571
    args.read(iprot)
7574
    args.read(iprot)
7572
    iprot.readMessageEnd()
7575
    iprot.readMessageEnd()
7573
    result = changeTransactionStatus_result()
7576
    result = changeTransactionStatus_result()
7574
    try:
7577
    try:
7575
      result.success = self._handler.changeTransactionStatus(args.transactionId, args.status, args.description, args.pickUp, args.orderType)
7578
      result.success = self._handler.changeTransactionStatus(args.transactionId, args.status, args.description, args.pickUp, args.orderType, args.source)
7576
    except TransactionServiceException, ex:
7579
    except TransactionServiceException, ex:
7577
      result.ex = ex
7580
      result.ex = ex
7578
    oprot.writeMessageBegin("changeTransactionStatus", TMessageType.REPLY, seqid)
7581
    oprot.writeMessageBegin("changeTransactionStatus", TMessageType.REPLY, seqid)
7579
    result.write(oprot)
7582
    result.write(oprot)
7580
    oprot.writeMessageEnd()
7583
    oprot.writeMessageEnd()
Line 10352... Line 10355...
10352
   - transactionId
10355
   - transactionId
10353
   - status
10356
   - status
10354
   - description
10357
   - description
10355
   - pickUp
10358
   - pickUp
10356
   - orderType
10359
   - orderType
-
 
10360
   - source
10357
  """
10361
  """
10358
 
10362
 
10359
  thrift_spec = (
10363
  thrift_spec = (
10360
    None, # 0
10364
    None, # 0
10361
    (1, TType.I64, 'transactionId', None, None, ), # 1
10365
    (1, TType.I64, 'transactionId', None, None, ), # 1
10362
    (2, TType.I32, 'status', None, None, ), # 2
10366
    (2, TType.I32, 'status', None, None, ), # 2
10363
    (3, TType.STRING, 'description', None, None, ), # 3
10367
    (3, TType.STRING, 'description', None, None, ), # 3
10364
    (4, TType.I64, 'pickUp', None, None, ), # 4
10368
    (4, TType.I64, 'pickUp', None, None, ), # 4
10365
    (5, TType.I32, 'orderType', None, None, ), # 5
10369
    (5, TType.I32, 'orderType', None, None, ), # 5
-
 
10370
    (6, TType.I32, 'source', None, None, ), # 6
10366
  )
10371
  )
10367
 
10372
 
10368
  def __init__(self, transactionId=None, status=None, description=None, pickUp=None, orderType=None,):
10373
  def __init__(self, transactionId=None, status=None, description=None, pickUp=None, orderType=None, source=None,):
10369
    self.transactionId = transactionId
10374
    self.transactionId = transactionId
10370
    self.status = status
10375
    self.status = status
10371
    self.description = description
10376
    self.description = description
10372
    self.pickUp = pickUp
10377
    self.pickUp = pickUp
10373
    self.orderType = orderType
10378
    self.orderType = orderType
-
 
10379
    self.source = source
10374
 
10380
 
10375
  def read(self, iprot):
10381
  def read(self, iprot):
10376
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10377
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10378
      return
10384
      return
Line 10404... Line 10410...
10404
      elif fid == 5:
10410
      elif fid == 5:
10405
        if ftype == TType.I32:
10411
        if ftype == TType.I32:
10406
          self.orderType = iprot.readI32();
10412
          self.orderType = iprot.readI32();
10407
        else:
10413
        else:
10408
          iprot.skip(ftype)
10414
          iprot.skip(ftype)
-
 
10415
      elif fid == 6:
-
 
10416
        if ftype == TType.I32:
-
 
10417
          self.source = iprot.readI32();
-
 
10418
        else:
-
 
10419
          iprot.skip(ftype)
10409
      else:
10420
      else:
10410
        iprot.skip(ftype)
10421
        iprot.skip(ftype)
10411
      iprot.readFieldEnd()
10422
      iprot.readFieldEnd()
10412
    iprot.readStructEnd()
10423
    iprot.readStructEnd()
10413
 
10424
 
Line 10434... Line 10445...
10434
      oprot.writeFieldEnd()
10445
      oprot.writeFieldEnd()
10435
    if self.orderType is not None:
10446
    if self.orderType is not None:
10436
      oprot.writeFieldBegin('orderType', TType.I32, 5)
10447
      oprot.writeFieldBegin('orderType', TType.I32, 5)
10437
      oprot.writeI32(self.orderType)
10448
      oprot.writeI32(self.orderType)
10438
      oprot.writeFieldEnd()
10449
      oprot.writeFieldEnd()
-
 
10450
    if self.source is not None:
-
 
10451
      oprot.writeFieldBegin('source', TType.I32, 6)
-
 
10452
      oprot.writeI32(self.source)
-
 
10453
      oprot.writeFieldEnd()
10439
    oprot.writeFieldStop()
10454
    oprot.writeFieldStop()
10440
    oprot.writeStructEnd()
10455
    oprot.writeStructEnd()
10441
 
10456
 
10442
  def validate(self):
10457
  def validate(self):
10443
    return
10458
    return