Subversion Repositories SmartDukaan

Rev

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

Rev 5481 Rev 5527
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, selfPickup):
58
  def changeTransactionStatus(self, transactionId, status, description, pickUp, orderType):
59
    """
59
    """
60
    Parameters:
60
    Parameters:
61
     - transactionId
61
     - transactionId
62
     - status
62
     - status
63
     - description
63
     - description
64
     - selfPickup
64
     - pickUp
-
 
65
     - orderType
65
    """
66
    """
66
    pass
67
    pass
67
 
68
 
68
  def enqueueTransactionInfoEmail(self, transactionId):
69
  def enqueueTransactionInfoEmail(self, transactionId):
69
    """
70
    """
Line 1177... Line 1178...
1177
     - minOrderId
1178
     - minOrderId
1178
     - maxOrderId
1179
     - maxOrderId
1179
    """
1180
    """
1180
    pass
1181
    pass
1181
 
1182
 
-
 
1183
  def getAllAttributesForOrderId(self, orderId):
-
 
1184
    """
-
 
1185
    gets all attributes for a given orderId
-
 
1186
 
-
 
1187
    Parameters:
-
 
1188
     - orderId
-
 
1189
    """
-
 
1190
    pass
-
 
1191
 
-
 
1192
  def setOrderAttributeForTransaction(self, transactionId, attribute):
-
 
1193
    """
-
 
1194
    sets attributes for all orders in a transaction
-
 
1195
 
-
 
1196
    Parameters:
-
 
1197
     - transactionId
-
 
1198
     - attribute
-
 
1199
    """
-
 
1200
    pass
-
 
1201
 
1182
 
1202
 
1183
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1203
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1184
  def __init__(self, iprot, oprot=None):
1204
  def __init__(self, iprot, oprot=None):
1185
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1205
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1186
 
1206
 
Line 1348... Line 1368...
1348
      return result.success
1368
      return result.success
1349
    if result.ex is not None:
1369
    if result.ex is not None:
1350
      raise result.ex
1370
      raise result.ex
1351
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
1371
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
1352
 
1372
 
1353
  def changeTransactionStatus(self, transactionId, status, description, selfPickup):
1373
  def changeTransactionStatus(self, transactionId, status, description, pickUp, orderType):
1354
    """
1374
    """
1355
    Parameters:
1375
    Parameters:
1356
     - transactionId
1376
     - transactionId
1357
     - status
1377
     - status
1358
     - description
1378
     - description
1359
     - selfPickup
1379
     - pickUp
-
 
1380
     - orderType
1360
    """
1381
    """
1361
    self.send_changeTransactionStatus(transactionId, status, description, selfPickup)
1382
    self.send_changeTransactionStatus(transactionId, status, description, pickUp, orderType)
1362
    return self.recv_changeTransactionStatus()
1383
    return self.recv_changeTransactionStatus()
1363
 
1384
 
1364
  def send_changeTransactionStatus(self, transactionId, status, description, selfPickup):
1385
  def send_changeTransactionStatus(self, transactionId, status, description, pickUp, orderType):
1365
    self._oprot.writeMessageBegin('changeTransactionStatus', TMessageType.CALL, self._seqid)
1386
    self._oprot.writeMessageBegin('changeTransactionStatus', TMessageType.CALL, self._seqid)
1366
    args = changeTransactionStatus_args()
1387
    args = changeTransactionStatus_args()
1367
    args.transactionId = transactionId
1388
    args.transactionId = transactionId
1368
    args.status = status
1389
    args.status = status
1369
    args.description = description
1390
    args.description = description
1370
    args.selfPickup = selfPickup
1391
    args.pickUp = pickUp
-
 
1392
    args.orderType = orderType
1371
    args.write(self._oprot)
1393
    args.write(self._oprot)
1372
    self._oprot.writeMessageEnd()
1394
    self._oprot.writeMessageEnd()
1373
    self._oprot.trans.flush()
1395
    self._oprot.trans.flush()
1374
 
1396
 
1375
  def recv_changeTransactionStatus(self, ):
1397
  def recv_changeTransactionStatus(self, ):
Line 5222... Line 5244...
5222
    self._iprot.readMessageEnd()
5244
    self._iprot.readMessageEnd()
5223
    if result.success is not None:
5245
    if result.success is not None:
5224
      return result.success
5246
      return result.success
5225
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVerificationAgents failed: unknown result");
5247
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVerificationAgents failed: unknown result");
5226
 
5248
 
-
 
5249
  def getAllAttributesForOrderId(self, orderId):
-
 
5250
    """
-
 
5251
    gets all attributes for a given orderId
-
 
5252
 
-
 
5253
    Parameters:
-
 
5254
     - orderId
-
 
5255
    """
-
 
5256
    self.send_getAllAttributesForOrderId(orderId)
-
 
5257
    return self.recv_getAllAttributesForOrderId()
-
 
5258
 
-
 
5259
  def send_getAllAttributesForOrderId(self, orderId):
-
 
5260
    self._oprot.writeMessageBegin('getAllAttributesForOrderId', TMessageType.CALL, self._seqid)
-
 
5261
    args = getAllAttributesForOrderId_args()
-
 
5262
    args.orderId = orderId
-
 
5263
    args.write(self._oprot)
-
 
5264
    self._oprot.writeMessageEnd()
-
 
5265
    self._oprot.trans.flush()
-
 
5266
 
-
 
5267
  def recv_getAllAttributesForOrderId(self, ):
-
 
5268
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
5269
    if mtype == TMessageType.EXCEPTION:
-
 
5270
      x = TApplicationException()
-
 
5271
      x.read(self._iprot)
-
 
5272
      self._iprot.readMessageEnd()
-
 
5273
      raise x
-
 
5274
    result = getAllAttributesForOrderId_result()
-
 
5275
    result.read(self._iprot)
-
 
5276
    self._iprot.readMessageEnd()
-
 
5277
    if result.success is not None:
-
 
5278
      return result.success
-
 
5279
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAttributesForOrderId failed: unknown result");
-
 
5280
 
-
 
5281
  def setOrderAttributeForTransaction(self, transactionId, attribute):
-
 
5282
    """
-
 
5283
    sets attributes for all orders in a transaction
-
 
5284
 
-
 
5285
    Parameters:
-
 
5286
     - transactionId
-
 
5287
     - attribute
-
 
5288
    """
-
 
5289
    self.send_setOrderAttributeForTransaction(transactionId, attribute)
-
 
5290
    self.recv_setOrderAttributeForTransaction()
-
 
5291
 
-
 
5292
  def send_setOrderAttributeForTransaction(self, transactionId, attribute):
-
 
5293
    self._oprot.writeMessageBegin('setOrderAttributeForTransaction', TMessageType.CALL, self._seqid)
-
 
5294
    args = setOrderAttributeForTransaction_args()
-
 
5295
    args.transactionId = transactionId
-
 
5296
    args.attribute = attribute
-
 
5297
    args.write(self._oprot)
-
 
5298
    self._oprot.writeMessageEnd()
-
 
5299
    self._oprot.trans.flush()
-
 
5300
 
-
 
5301
  def recv_setOrderAttributeForTransaction(self, ):
-
 
5302
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
5303
    if mtype == TMessageType.EXCEPTION:
-
 
5304
      x = TApplicationException()
-
 
5305
      x.read(self._iprot)
-
 
5306
      self._iprot.readMessageEnd()
-
 
5307
      raise x
-
 
5308
    result = setOrderAttributeForTransaction_result()
-
 
5309
    result.read(self._iprot)
-
 
5310
    self._iprot.readMessageEnd()
-
 
5311
    return
-
 
5312
 
5227
 
5313
 
5228
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5314
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
5229
  def __init__(self, handler):
5315
  def __init__(self, handler):
5230
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5316
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
5231
    self._processMap["createTransaction"] = Processor.process_createTransaction
5317
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 5341... Line 5427...
5341
    self._processMap["updateCODAgent"] = Processor.process_updateCODAgent
5427
    self._processMap["updateCODAgent"] = Processor.process_updateCODAgent
5342
    self._processMap["updateOrderAsPaidToVendor"] = Processor.process_updateOrderAsPaidToVendor
5428
    self._processMap["updateOrderAsPaidToVendor"] = Processor.process_updateOrderAsPaidToVendor
5343
    self._processMap["updateOrderOnlyAsPaidToVendor"] = Processor.process_updateOrderOnlyAsPaidToVendor
5429
    self._processMap["updateOrderOnlyAsPaidToVendor"] = Processor.process_updateOrderOnlyAsPaidToVendor
5344
    self._processMap["getRefundedOrdersMarkedPaid"] = Processor.process_getRefundedOrdersMarkedPaid
5430
    self._processMap["getRefundedOrdersMarkedPaid"] = Processor.process_getRefundedOrdersMarkedPaid
5345
    self._processMap["getAllVerificationAgents"] = Processor.process_getAllVerificationAgents
5431
    self._processMap["getAllVerificationAgents"] = Processor.process_getAllVerificationAgents
-
 
5432
    self._processMap["getAllAttributesForOrderId"] = Processor.process_getAllAttributesForOrderId
-
 
5433
    self._processMap["setOrderAttributeForTransaction"] = Processor.process_setOrderAttributeForTransaction
5346
 
5434
 
5347
  def process(self, iprot, oprot):
5435
  def process(self, iprot, oprot):
5348
    (name, type, seqid) = iprot.readMessageBegin()
5436
    (name, type, seqid) = iprot.readMessageBegin()
5349
    if name not in self._processMap:
5437
    if name not in self._processMap:
5350
      iprot.skip(TType.STRUCT)
5438
      iprot.skip(TType.STRUCT)
Line 5433... Line 5521...
5433
    args = changeTransactionStatus_args()
5521
    args = changeTransactionStatus_args()
5434
    args.read(iprot)
5522
    args.read(iprot)
5435
    iprot.readMessageEnd()
5523
    iprot.readMessageEnd()
5436
    result = changeTransactionStatus_result()
5524
    result = changeTransactionStatus_result()
5437
    try:
5525
    try:
5438
      result.success = self._handler.changeTransactionStatus(args.transactionId, args.status, args.description, args.selfPickup)
5526
      result.success = self._handler.changeTransactionStatus(args.transactionId, args.status, args.description, args.pickUp, args.orderType)
5439
    except TransactionServiceException, ex:
5527
    except TransactionServiceException, ex:
5440
      result.ex = ex
5528
      result.ex = ex
5441
    oprot.writeMessageBegin("changeTransactionStatus", TMessageType.REPLY, seqid)
5529
    oprot.writeMessageBegin("changeTransactionStatus", TMessageType.REPLY, seqid)
5442
    result.write(oprot)
5530
    result.write(oprot)
5443
    oprot.writeMessageEnd()
5531
    oprot.writeMessageEnd()
Line 6889... Line 6977...
6889
    oprot.writeMessageBegin("getAllVerificationAgents", TMessageType.REPLY, seqid)
6977
    oprot.writeMessageBegin("getAllVerificationAgents", TMessageType.REPLY, seqid)
6890
    result.write(oprot)
6978
    result.write(oprot)
6891
    oprot.writeMessageEnd()
6979
    oprot.writeMessageEnd()
6892
    oprot.trans.flush()
6980
    oprot.trans.flush()
6893
 
6981
 
-
 
6982
  def process_getAllAttributesForOrderId(self, seqid, iprot, oprot):
-
 
6983
    args = getAllAttributesForOrderId_args()
-
 
6984
    args.read(iprot)
-
 
6985
    iprot.readMessageEnd()
-
 
6986
    result = getAllAttributesForOrderId_result()
-
 
6987
    result.success = self._handler.getAllAttributesForOrderId(args.orderId)
-
 
6988
    oprot.writeMessageBegin("getAllAttributesForOrderId", TMessageType.REPLY, seqid)
-
 
6989
    result.write(oprot)
-
 
6990
    oprot.writeMessageEnd()
-
 
6991
    oprot.trans.flush()
-
 
6992
 
-
 
6993
  def process_setOrderAttributeForTransaction(self, seqid, iprot, oprot):
-
 
6994
    args = setOrderAttributeForTransaction_args()
-
 
6995
    args.read(iprot)
-
 
6996
    iprot.readMessageEnd()
-
 
6997
    result = setOrderAttributeForTransaction_result()
-
 
6998
    self._handler.setOrderAttributeForTransaction(args.transactionId, args.attribute)
-
 
6999
    oprot.writeMessageBegin("setOrderAttributeForTransaction", TMessageType.REPLY, seqid)
-
 
7000
    result.write(oprot)
-
 
7001
    oprot.writeMessageEnd()
-
 
7002
    oprot.trans.flush()
-
 
7003
 
6894
 
7004
 
6895
# HELPER FUNCTIONS AND STRUCTURES
7005
# HELPER FUNCTIONS AND STRUCTURES
6896
 
7006
 
6897
class createTransaction_args:
7007
class createTransaction_args:
6898
  """
7008
  """
Line 7614... Line 7724...
7614
  """
7724
  """
7615
  Attributes:
7725
  Attributes:
7616
   - transactionId
7726
   - transactionId
7617
   - status
7727
   - status
7618
   - description
7728
   - description
7619
   - selfPickup
7729
   - pickUp
-
 
7730
   - orderType
7620
  """
7731
  """
7621
 
7732
 
7622
  thrift_spec = (
7733
  thrift_spec = (
7623
    None, # 0
7734
    None, # 0
7624
    (1, TType.I64, 'transactionId', None, None, ), # 1
7735
    (1, TType.I64, 'transactionId', None, None, ), # 1
7625
    (2, TType.I32, 'status', None, None, ), # 2
7736
    (2, TType.I32, 'status', None, None, ), # 2
7626
    (3, TType.STRING, 'description', None, None, ), # 3
7737
    (3, TType.STRING, 'description', None, None, ), # 3
7627
    (4, TType.BOOL, 'selfPickup', None, None, ), # 4
7738
    (4, TType.I64, 'pickUp', None, None, ), # 4
-
 
7739
    (5, TType.I32, 'orderType', None, None, ), # 5
7628
  )
7740
  )
7629
 
7741
 
7630
  def __init__(self, transactionId=None, status=None, description=None, selfPickup=None,):
7742
  def __init__(self, transactionId=None, status=None, description=None, pickUp=None, orderType=None,):
7631
    self.transactionId = transactionId
7743
    self.transactionId = transactionId
7632
    self.status = status
7744
    self.status = status
7633
    self.description = description
7745
    self.description = description
7634
    self.selfPickup = selfPickup
7746
    self.pickUp = pickUp
-
 
7747
    self.orderType = orderType
7635
 
7748
 
7636
  def read(self, iprot):
7749
  def read(self, iprot):
7637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7639
      return
7752
      return
Line 7656... Line 7769...
7656
        if ftype == TType.STRING:
7769
        if ftype == TType.STRING:
7657
          self.description = iprot.readString();
7770
          self.description = iprot.readString();
7658
        else:
7771
        else:
7659
          iprot.skip(ftype)
7772
          iprot.skip(ftype)
7660
      elif fid == 4:
7773
      elif fid == 4:
7661
        if ftype == TType.BOOL:
7774
        if ftype == TType.I64:
7662
          self.selfPickup = iprot.readBool();
7775
          self.pickUp = iprot.readI64();
-
 
7776
        else:
-
 
7777
          iprot.skip(ftype)
-
 
7778
      elif fid == 5:
-
 
7779
        if ftype == TType.I32:
-
 
7780
          self.orderType = iprot.readI32();
7663
        else:
7781
        else:
7664
          iprot.skip(ftype)
7782
          iprot.skip(ftype)
7665
      else:
7783
      else:
7666
        iprot.skip(ftype)
7784
        iprot.skip(ftype)
7667
      iprot.readFieldEnd()
7785
      iprot.readFieldEnd()
Line 7682... Line 7800...
7682
      oprot.writeFieldEnd()
7800
      oprot.writeFieldEnd()
7683
    if self.description is not None:
7801
    if self.description is not None:
7684
      oprot.writeFieldBegin('description', TType.STRING, 3)
7802
      oprot.writeFieldBegin('description', TType.STRING, 3)
7685
      oprot.writeString(self.description)
7803
      oprot.writeString(self.description)
7686
      oprot.writeFieldEnd()
7804
      oprot.writeFieldEnd()
7687
    if self.selfPickup is not None:
7805
    if self.pickUp is not None:
7688
      oprot.writeFieldBegin('selfPickup', TType.BOOL, 4)
7806
      oprot.writeFieldBegin('pickUp', TType.I64, 4)
7689
      oprot.writeBool(self.selfPickup)
7807
      oprot.writeI64(self.pickUp)
-
 
7808
      oprot.writeFieldEnd()
-
 
7809
    if self.orderType is not None:
-
 
7810
      oprot.writeFieldBegin('orderType', TType.I32, 5)
-
 
7811
      oprot.writeI32(self.orderType)
7690
      oprot.writeFieldEnd()
7812
      oprot.writeFieldEnd()
7691
    oprot.writeFieldStop()
7813
    oprot.writeFieldStop()
7692
    oprot.writeStructEnd()
7814
    oprot.writeStructEnd()
7693
 
7815
 
7694
  def validate(self):
7816
  def validate(self):
Line 23314... Line 23436...
23314
    oprot.writeFieldStop()
23436
    oprot.writeFieldStop()
23315
    oprot.writeStructEnd()
23437
    oprot.writeStructEnd()
23316
 
23438
 
23317
  def validate(self):
23439
  def validate(self):
23318
    return
23440
    return
-
 
23441
 
-
 
23442
 
-
 
23443
  def __repr__(self):
-
 
23444
    L = ['%s=%r' % (key, value)
-
 
23445
      for key, value in self.__dict__.iteritems()]
-
 
23446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
23447
 
-
 
23448
  def __eq__(self, other):
-
 
23449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
23450
 
-
 
23451
  def __ne__(self, other):
-
 
23452
    return not (self == other)
-
 
23453
 
-
 
23454
class getAllAttributesForOrderId_args:
-
 
23455
  """
-
 
23456
  Attributes:
-
 
23457
   - orderId
-
 
23458
  """
-
 
23459
 
-
 
23460
  thrift_spec = (
-
 
23461
    None, # 0
-
 
23462
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
23463
  )
-
 
23464
 
-
 
23465
  def __init__(self, orderId=None,):
-
 
23466
    self.orderId = orderId
-
 
23467
 
-
 
23468
  def read(self, iprot):
-
 
23469
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
23470
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
23471
      return
-
 
23472
    iprot.readStructBegin()
-
 
23473
    while True:
-
 
23474
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
23475
      if ftype == TType.STOP:
-
 
23476
        break
-
 
23477
      if fid == 1:
-
 
23478
        if ftype == TType.I64:
-
 
23479
          self.orderId = iprot.readI64();
-
 
23480
        else:
-
 
23481
          iprot.skip(ftype)
-
 
23482
      else:
-
 
23483
        iprot.skip(ftype)
-
 
23484
      iprot.readFieldEnd()
-
 
23485
    iprot.readStructEnd()
-
 
23486
 
-
 
23487
  def write(self, oprot):
-
 
23488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
23489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
23490
      return
-
 
23491
    oprot.writeStructBegin('getAllAttributesForOrderId_args')
-
 
23492
    if self.orderId is not None:
-
 
23493
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
23494
      oprot.writeI64(self.orderId)
-
 
23495
      oprot.writeFieldEnd()
-
 
23496
    oprot.writeFieldStop()
-
 
23497
    oprot.writeStructEnd()
-
 
23498
 
-
 
23499
  def validate(self):
-
 
23500
    return
-
 
23501
 
-
 
23502
 
-
 
23503
  def __repr__(self):
-
 
23504
    L = ['%s=%r' % (key, value)
-
 
23505
      for key, value in self.__dict__.iteritems()]
-
 
23506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
23507
 
-
 
23508
  def __eq__(self, other):
-
 
23509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
23510
 
-
 
23511
  def __ne__(self, other):
-
 
23512
    return not (self == other)
-
 
23513
 
-
 
23514
class getAllAttributesForOrderId_result:
-
 
23515
  """
-
 
23516
  Attributes:
-
 
23517
   - success
-
 
23518
  """
-
 
23519
 
-
 
23520
  thrift_spec = (
-
 
23521
    (0, TType.LIST, 'success', (TType.STRUCT,(Attribute, Attribute.thrift_spec)), None, ), # 0
-
 
23522
  )
-
 
23523
 
-
 
23524
  def __init__(self, success=None,):
-
 
23525
    self.success = success
-
 
23526
 
-
 
23527
  def read(self, iprot):
-
 
23528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
23529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
23530
      return
-
 
23531
    iprot.readStructBegin()
-
 
23532
    while True:
-
 
23533
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
23534
      if ftype == TType.STOP:
-
 
23535
        break
-
 
23536
      if fid == 0:
-
 
23537
        if ftype == TType.LIST:
-
 
23538
          self.success = []
-
 
23539
          (_etype560, _size557) = iprot.readListBegin()
-
 
23540
          for _i561 in xrange(_size557):
-
 
23541
            _elem562 = Attribute()
-
 
23542
            _elem562.read(iprot)
-
 
23543
            self.success.append(_elem562)
-
 
23544
          iprot.readListEnd()
-
 
23545
        else:
-
 
23546
          iprot.skip(ftype)
-
 
23547
      else:
-
 
23548
        iprot.skip(ftype)
-
 
23549
      iprot.readFieldEnd()
-
 
23550
    iprot.readStructEnd()
-
 
23551
 
-
 
23552
  def write(self, oprot):
-
 
23553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
23554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
23555
      return
-
 
23556
    oprot.writeStructBegin('getAllAttributesForOrderId_result')
-
 
23557
    if self.success is not None:
-
 
23558
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
23559
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
23560
      for iter563 in self.success:
-
 
23561
        iter563.write(oprot)
-
 
23562
      oprot.writeListEnd()
-
 
23563
      oprot.writeFieldEnd()
-
 
23564
    oprot.writeFieldStop()
-
 
23565
    oprot.writeStructEnd()
-
 
23566
 
-
 
23567
  def validate(self):
-
 
23568
    return
-
 
23569
 
-
 
23570
 
-
 
23571
  def __repr__(self):
-
 
23572
    L = ['%s=%r' % (key, value)
-
 
23573
      for key, value in self.__dict__.iteritems()]
-
 
23574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
23575
 
-
 
23576
  def __eq__(self, other):
-
 
23577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
23578
 
-
 
23579
  def __ne__(self, other):
-
 
23580
    return not (self == other)
-
 
23581
 
-
 
23582
class setOrderAttributeForTransaction_args:
-
 
23583
  """
-
 
23584
  Attributes:
-
 
23585
   - transactionId
-
 
23586
   - attribute
-
 
23587
  """
-
 
23588
 
-
 
23589
  thrift_spec = None
-
 
23590
  def __init__(self, transactionId=None, attribute=None,):
-
 
23591
    self.transactionId = transactionId
-
 
23592
    self.attribute = attribute
-
 
23593
 
-
 
23594
  def read(self, iprot):
-
 
23595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
23596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
23597
      return
-
 
23598
    iprot.readStructBegin()
-
 
23599
    while True:
-
 
23600
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
23601
      if ftype == TType.STOP:
-
 
23602
        break
-
 
23603
      if fid == 1:
-
 
23604
        if ftype == TType.I64:
-
 
23605
          self.transactionId = iprot.readI64();
-
 
23606
        else:
-
 
23607
          iprot.skip(ftype)
-
 
23608
      elif fid == -1:
-
 
23609
        if ftype == TType.STRUCT:
-
 
23610
          self.attribute = Attribute()
-
 
23611
          self.attribute.read(iprot)
-
 
23612
        else:
-
 
23613
          iprot.skip(ftype)
-
 
23614
      else:
-
 
23615
        iprot.skip(ftype)
-
 
23616
      iprot.readFieldEnd()
-
 
23617
    iprot.readStructEnd()
-
 
23618
 
-
 
23619
  def write(self, oprot):
-
 
23620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
23621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
23622
      return
-
 
23623
    oprot.writeStructBegin('setOrderAttributeForTransaction_args')
-
 
23624
    if self.attribute is not None:
-
 
23625
      oprot.writeFieldBegin('attribute', TType.STRUCT, -1)
-
 
23626
      self.attribute.write(oprot)
-
 
23627
      oprot.writeFieldEnd()
-
 
23628
    if self.transactionId is not None:
-
 
23629
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
-
 
23630
      oprot.writeI64(self.transactionId)
-
 
23631
      oprot.writeFieldEnd()
-
 
23632
    oprot.writeFieldStop()
-
 
23633
    oprot.writeStructEnd()
-
 
23634
 
-
 
23635
  def validate(self):
-
 
23636
    return
-
 
23637
 
-
 
23638
 
-
 
23639
  def __repr__(self):
-
 
23640
    L = ['%s=%r' % (key, value)
-
 
23641
      for key, value in self.__dict__.iteritems()]
-
 
23642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
23643
 
-
 
23644
  def __eq__(self, other):
-
 
23645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
23646
 
-
 
23647
  def __ne__(self, other):
-
 
23648
    return not (self == other)
-
 
23649
 
-
 
23650
class setOrderAttributeForTransaction_result:
-
 
23651
 
-
 
23652
  thrift_spec = (
-
 
23653
  )
-
 
23654
 
-
 
23655
  def read(self, iprot):
-
 
23656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
23657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
23658
      return
-
 
23659
    iprot.readStructBegin()
-
 
23660
    while True:
-
 
23661
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
23662
      if ftype == TType.STOP:
-
 
23663
        break
-
 
23664
      else:
-
 
23665
        iprot.skip(ftype)
-
 
23666
      iprot.readFieldEnd()
-
 
23667
    iprot.readStructEnd()
-
 
23668
 
-
 
23669
  def write(self, oprot):
-
 
23670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
23671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
23672
      return
-
 
23673
    oprot.writeStructBegin('setOrderAttributeForTransaction_result')
-
 
23674
    oprot.writeFieldStop()
-
 
23675
    oprot.writeStructEnd()
-
 
23676
 
-
 
23677
  def validate(self):
-
 
23678
    return
23319
 
23679
 
23320
 
23680
 
23321
  def __repr__(self):
23681
  def __repr__(self):
23322
    L = ['%s=%r' % (key, value)
23682
    L = ['%s=%r' % (key, value)
23323
      for key, value in self.__dict__.iteritems()]
23683
      for key, value in self.__dict__.iteritems()]