Subversion Repositories SmartDukaan

Rev

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

Rev 5386 Rev 5387
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):
58
  def changeTransactionStatus(self, transactionId, status, description, selfPickup):
59
    """
59
    """
60
    Parameters:
60
    Parameters:
61
     - transactionId
61
     - transactionId
62
     - status
62
     - status
63
     - description
63
     - description
-
 
64
     - selfPickup
64
    """
65
    """
65
    pass
66
    pass
66
 
67
 
67
  def enqueueTransactionInfoEmail(self, transactionId):
68
  def enqueueTransactionInfoEmail(self, transactionId):
68
    """
69
    """
Line 1322... Line 1323...
1322
      return result.success
1323
      return result.success
1323
    if result.ex is not None:
1324
    if result.ex is not None:
1324
      raise result.ex
1325
      raise result.ex
1325
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
1326
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
1326
 
1327
 
1327
  def changeTransactionStatus(self, transactionId, status, description):
1328
  def changeTransactionStatus(self, transactionId, status, description, selfPickup):
1328
    """
1329
    """
1329
    Parameters:
1330
    Parameters:
1330
     - transactionId
1331
     - transactionId
1331
     - status
1332
     - status
1332
     - description
1333
     - description
-
 
1334
     - selfPickup
1333
    """
1335
    """
1334
    self.send_changeTransactionStatus(transactionId, status, description)
1336
    self.send_changeTransactionStatus(transactionId, status, description, selfPickup)
1335
    return self.recv_changeTransactionStatus()
1337
    return self.recv_changeTransactionStatus()
1336
 
1338
 
1337
  def send_changeTransactionStatus(self, transactionId, status, description):
1339
  def send_changeTransactionStatus(self, transactionId, status, description, selfPickup):
1338
    self._oprot.writeMessageBegin('changeTransactionStatus', TMessageType.CALL, self._seqid)
1340
    self._oprot.writeMessageBegin('changeTransactionStatus', TMessageType.CALL, self._seqid)
1339
    args = changeTransactionStatus_args()
1341
    args = changeTransactionStatus_args()
1340
    args.transactionId = transactionId
1342
    args.transactionId = transactionId
1341
    args.status = status
1343
    args.status = status
1342
    args.description = description
1344
    args.description = description
-
 
1345
    args.selfPickup = selfPickup
1343
    args.write(self._oprot)
1346
    args.write(self._oprot)
1344
    self._oprot.writeMessageEnd()
1347
    self._oprot.writeMessageEnd()
1345
    self._oprot.trans.flush()
1348
    self._oprot.trans.flush()
1346
 
1349
 
1347
  def recv_changeTransactionStatus(self, ):
1350
  def recv_changeTransactionStatus(self, ):
Line 5326... Line 5329...
5326
    args = changeTransactionStatus_args()
5329
    args = changeTransactionStatus_args()
5327
    args.read(iprot)
5330
    args.read(iprot)
5328
    iprot.readMessageEnd()
5331
    iprot.readMessageEnd()
5329
    result = changeTransactionStatus_result()
5332
    result = changeTransactionStatus_result()
5330
    try:
5333
    try:
5331
      result.success = self._handler.changeTransactionStatus(args.transactionId, args.status, args.description)
5334
      result.success = self._handler.changeTransactionStatus(args.transactionId, args.status, args.description, args.selfPickup)
5332
    except TransactionServiceException, ex:
5335
    except TransactionServiceException, ex:
5333
      result.ex = ex
5336
      result.ex = ex
5334
    oprot.writeMessageBegin("changeTransactionStatus", TMessageType.REPLY, seqid)
5337
    oprot.writeMessageBegin("changeTransactionStatus", TMessageType.REPLY, seqid)
5335
    result.write(oprot)
5338
    result.write(oprot)
5336
    oprot.writeMessageEnd()
5339
    oprot.writeMessageEnd()
Line 7485... Line 7488...
7485
  """
7488
  """
7486
  Attributes:
7489
  Attributes:
7487
   - transactionId
7490
   - transactionId
7488
   - status
7491
   - status
7489
   - description
7492
   - description
-
 
7493
   - selfPickup
7490
  """
7494
  """
7491
 
7495
 
7492
  thrift_spec = (
7496
  thrift_spec = (
7493
    None, # 0
7497
    None, # 0
7494
    (1, TType.I64, 'transactionId', None, None, ), # 1
7498
    (1, TType.I64, 'transactionId', None, None, ), # 1
7495
    (2, TType.I32, 'status', None, None, ), # 2
7499
    (2, TType.I32, 'status', None, None, ), # 2
7496
    (3, TType.STRING, 'description', None, None, ), # 3
7500
    (3, TType.STRING, 'description', None, None, ), # 3
-
 
7501
    (4, TType.BOOL, 'selfPickup', None, None, ), # 4
7497
  )
7502
  )
7498
 
7503
 
7499
  def __init__(self, transactionId=None, status=None, description=None,):
7504
  def __init__(self, transactionId=None, status=None, description=None, selfPickup=None,):
7500
    self.transactionId = transactionId
7505
    self.transactionId = transactionId
7501
    self.status = status
7506
    self.status = status
7502
    self.description = description
7507
    self.description = description
-
 
7508
    self.selfPickup = selfPickup
7503
 
7509
 
7504
  def read(self, iprot):
7510
  def read(self, iprot):
7505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7507
      return
7513
      return
Line 7523... Line 7529...
7523
      elif fid == 3:
7529
      elif fid == 3:
7524
        if ftype == TType.STRING:
7530
        if ftype == TType.STRING:
7525
          self.description = iprot.readString();
7531
          self.description = iprot.readString();
7526
        else:
7532
        else:
7527
          iprot.skip(ftype)
7533
          iprot.skip(ftype)
-
 
7534
      elif fid == 4:
-
 
7535
        if ftype == TType.BOOL:
-
 
7536
          self.selfPickup = iprot.readBool();
-
 
7537
        else:
-
 
7538
          iprot.skip(ftype)
7528
      else:
7539
      else:
7529
        iprot.skip(ftype)
7540
        iprot.skip(ftype)
7530
      iprot.readFieldEnd()
7541
      iprot.readFieldEnd()
7531
    iprot.readStructEnd()
7542
    iprot.readStructEnd()
7532
 
7543
 
Line 7545... Line 7556...
7545
      oprot.writeFieldEnd()
7556
      oprot.writeFieldEnd()
7546
    if self.description is not None:
7557
    if self.description is not None:
7547
      oprot.writeFieldBegin('description', TType.STRING, 3)
7558
      oprot.writeFieldBegin('description', TType.STRING, 3)
7548
      oprot.writeString(self.description)
7559
      oprot.writeString(self.description)
7549
      oprot.writeFieldEnd()
7560
      oprot.writeFieldEnd()
-
 
7561
    if self.selfPickup is not None:
-
 
7562
      oprot.writeFieldBegin('selfPickup', TType.BOOL, 4)
-
 
7563
      oprot.writeBool(self.selfPickup)
-
 
7564
      oprot.writeFieldEnd()
7550
    oprot.writeFieldStop()
7565
    oprot.writeFieldStop()
7551
    oprot.writeStructEnd()
7566
    oprot.writeStructEnd()
7552
 
7567
 
7553
  def validate(self):
7568
  def validate(self):
7554
    return
7569
    return