Subversion Repositories SmartDukaan

Rev

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

Rev 19817 Rev 19832
Line 334... Line 334...
334
    Parameters:
334
    Parameters:
335
     - orderId
335
     - orderId
336
    """
336
    """
337
    pass
337
    pass
338
 
338
 
-
 
339
  def unacceptOrder(self, orderId):
-
 
340
    """
-
 
341
    Parameters:
-
 
342
     - orderId
-
 
343
    """
-
 
344
    pass
-
 
345
 
339
  def addBillingDetails(self, orderId, invoice_number, serialNumber, itemNumber, freebieWarehouseId, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize):
346
  def addBillingDetails(self, orderId, invoice_number, serialNumber, itemNumber, freebieWarehouseId, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize):
340
    """
347
    """
341
    Add billing details such as the bill number and the biller to the Order.
348
    Add billing details such as the bill number and the biller to the Order.
342
    Adds jacket number, item number and Serial no. to the order. Doesn't update
349
    Adds jacket number, item number and Serial no. to the order. Doesn't update
343
    the IMEI no. if a -1 is supplied.
350
    the IMEI no. if a -1 is supplied.
Line 2596... Line 2603...
2596
    Parameters:
2603
    Parameters:
2597
     - returnPickupId
2604
     - returnPickupId
2598
    """
2605
    """
2599
    pass
2606
    pass
2600
 
2607
 
-
 
2608
  def getPendingStoreOrders(self, storeId):
-
 
2609
    """
-
 
2610
    Parameters:
-
 
2611
     - storeId
-
 
2612
    """
-
 
2613
    pass
-
 
2614
 
2601
 
2615
 
2602
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2616
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2603
  def __init__(self, iprot, oprot=None):
2617
  def __init__(self, iprot, oprot=None):
2604
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2618
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2605
 
2619
 
Line 3785... Line 3799...
3785
      return result.success
3799
      return result.success
3786
    if result.ex is not None:
3800
    if result.ex is not None:
3787
      raise result.ex
3801
      raise result.ex
3788
    raise TApplicationException(TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
3802
    raise TApplicationException(TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
3789
 
3803
 
-
 
3804
  def unacceptOrder(self, orderId):
-
 
3805
    """
-
 
3806
    Parameters:
-
 
3807
     - orderId
-
 
3808
    """
-
 
3809
    self.send_unacceptOrder(orderId)
-
 
3810
    return self.recv_unacceptOrder()
-
 
3811
 
-
 
3812
  def send_unacceptOrder(self, orderId):
-
 
3813
    self._oprot.writeMessageBegin('unacceptOrder', TMessageType.CALL, self._seqid)
-
 
3814
    args = unacceptOrder_args()
-
 
3815
    args.orderId = orderId
-
 
3816
    args.write(self._oprot)
-
 
3817
    self._oprot.writeMessageEnd()
-
 
3818
    self._oprot.trans.flush()
-
 
3819
 
-
 
3820
  def recv_unacceptOrder(self, ):
-
 
3821
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3822
    if mtype == TMessageType.EXCEPTION:
-
 
3823
      x = TApplicationException()
-
 
3824
      x.read(self._iprot)
-
 
3825
      self._iprot.readMessageEnd()
-
 
3826
      raise x
-
 
3827
    result = unacceptOrder_result()
-
 
3828
    result.read(self._iprot)
-
 
3829
    self._iprot.readMessageEnd()
-
 
3830
    if result.success is not None:
-
 
3831
      return result.success
-
 
3832
    raise TApplicationException(TApplicationException.MISSING_RESULT, "unacceptOrder failed: unknown result");
-
 
3833
 
3790
  def addBillingDetails(self, orderId, invoice_number, serialNumber, itemNumber, freebieWarehouseId, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize):
3834
  def addBillingDetails(self, orderId, invoice_number, serialNumber, itemNumber, freebieWarehouseId, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize):
3791
    """
3835
    """
3792
    Add billing details such as the bill number and the biller to the Order.
3836
    Add billing details such as the bill number and the biller to the Order.
3793
    Adds jacket number, item number and Serial no. to the order. Doesn't update
3837
    Adds jacket number, item number and Serial no. to the order. Doesn't update
3794
    the IMEI no. if a -1 is supplied.
3838
    the IMEI no. if a -1 is supplied.
Line 12415... Line 12459...
12415
    self._iprot.readMessageEnd()
12459
    self._iprot.readMessageEnd()
12416
    if result.success is not None:
12460
    if result.success is not None:
12417
      return result.success
12461
      return result.success
12418
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnPickupRequest failed: unknown result");
12462
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnPickupRequest failed: unknown result");
12419
 
12463
 
-
 
12464
  def getPendingStoreOrders(self, storeId):
-
 
12465
    """
-
 
12466
    Parameters:
-
 
12467
     - storeId
-
 
12468
    """
-
 
12469
    self.send_getPendingStoreOrders(storeId)
-
 
12470
    return self.recv_getPendingStoreOrders()
-
 
12471
 
-
 
12472
  def send_getPendingStoreOrders(self, storeId):
-
 
12473
    self._oprot.writeMessageBegin('getPendingStoreOrders', TMessageType.CALL, self._seqid)
-
 
12474
    args = getPendingStoreOrders_args()
-
 
12475
    args.storeId = storeId
-
 
12476
    args.write(self._oprot)
-
 
12477
    self._oprot.writeMessageEnd()
-
 
12478
    self._oprot.trans.flush()
-
 
12479
 
-
 
12480
  def recv_getPendingStoreOrders(self, ):
-
 
12481
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
12482
    if mtype == TMessageType.EXCEPTION:
-
 
12483
      x = TApplicationException()
-
 
12484
      x.read(self._iprot)
-
 
12485
      self._iprot.readMessageEnd()
-
 
12486
      raise x
-
 
12487
    result = getPendingStoreOrders_result()
-
 
12488
    result.read(self._iprot)
-
 
12489
    self._iprot.readMessageEnd()
-
 
12490
    if result.success is not None:
-
 
12491
      return result.success
-
 
12492
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingStoreOrders failed: unknown result");
-
 
12493
 
12420
 
12494
 
12421
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12495
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12422
  def __init__(self, handler):
12496
  def __init__(self, handler):
12423
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12497
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12424
    self._processMap["createTransaction"] = Processor.process_createTransaction
12498
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 12453... Line 12527...
12453
    self._processMap["getValidOrders"] = Processor.process_getValidOrders
12527
    self._processMap["getValidOrders"] = Processor.process_getValidOrders
12454
    self._processMap["batchOrders"] = Processor.process_batchOrders
12528
    self._processMap["batchOrders"] = Processor.process_batchOrders
12455
    self._processMap["markOrderAsOutOfStock"] = Processor.process_markOrderAsOutOfStock
12529
    self._processMap["markOrderAsOutOfStock"] = Processor.process_markOrderAsOutOfStock
12456
    self._processMap["verifyOrder"] = Processor.process_verifyOrder
12530
    self._processMap["verifyOrder"] = Processor.process_verifyOrder
12457
    self._processMap["acceptOrder"] = Processor.process_acceptOrder
12531
    self._processMap["acceptOrder"] = Processor.process_acceptOrder
-
 
12532
    self._processMap["unacceptOrder"] = Processor.process_unacceptOrder
12458
    self._processMap["addBillingDetails"] = Processor.process_addBillingDetails
12533
    self._processMap["addBillingDetails"] = Processor.process_addBillingDetails
12459
    self._processMap["addInvoiceNumber"] = Processor.process_addInvoiceNumber
12534
    self._processMap["addInvoiceNumber"] = Processor.process_addInvoiceNumber
12460
    self._processMap["markOrdersAsShippedFromWarehouse"] = Processor.process_markOrdersAsShippedFromWarehouse
12535
    self._processMap["markOrdersAsShippedFromWarehouse"] = Processor.process_markOrdersAsShippedFromWarehouse
12461
    self._processMap["markOrdersAsReturnedFromStore"] = Processor.process_markOrdersAsReturnedFromStore
12536
    self._processMap["markOrdersAsReturnedFromStore"] = Processor.process_markOrdersAsReturnedFromStore
12462
    self._processMap["markOrdersAsPickedUp"] = Processor.process_markOrdersAsPickedUp
12537
    self._processMap["markOrdersAsPickedUp"] = Processor.process_markOrdersAsPickedUp
Line 12714... Line 12789...
12714
    self._processMap["getEligibleOrdersForReturn"] = Processor.process_getEligibleOrdersForReturn
12789
    self._processMap["getEligibleOrdersForReturn"] = Processor.process_getEligibleOrdersForReturn
12715
    self._processMap["getEligibleReturnOrdersForPickup"] = Processor.process_getEligibleReturnOrdersForPickup
12790
    self._processMap["getEligibleReturnOrdersForPickup"] = Processor.process_getEligibleReturnOrdersForPickup
12716
    self._processMap["validateReturnTransaction"] = Processor.process_validateReturnTransaction
12791
    self._processMap["validateReturnTransaction"] = Processor.process_validateReturnTransaction
12717
    self._processMap["markReturnNotRequiredOrdersProcessed"] = Processor.process_markReturnNotRequiredOrdersProcessed
12792
    self._processMap["markReturnNotRequiredOrdersProcessed"] = Processor.process_markReturnNotRequiredOrdersProcessed
12718
    self._processMap["getReturnPickupRequest"] = Processor.process_getReturnPickupRequest
12793
    self._processMap["getReturnPickupRequest"] = Processor.process_getReturnPickupRequest
-
 
12794
    self._processMap["getPendingStoreOrders"] = Processor.process_getPendingStoreOrders
12719
 
12795
 
12720
  def process(self, iprot, oprot):
12796
  def process(self, iprot, oprot):
12721
    (name, type, seqid) = iprot.readMessageBegin()
12797
    (name, type, seqid) = iprot.readMessageBegin()
12722
    if name not in self._processMap:
12798
    if name not in self._processMap:
12723
      iprot.skip(TType.STRUCT)
12799
      iprot.skip(TType.STRUCT)
Line 13179... Line 13255...
13179
    oprot.writeMessageBegin("acceptOrder", TMessageType.REPLY, seqid)
13255
    oprot.writeMessageBegin("acceptOrder", TMessageType.REPLY, seqid)
13180
    result.write(oprot)
13256
    result.write(oprot)
13181
    oprot.writeMessageEnd()
13257
    oprot.writeMessageEnd()
13182
    oprot.trans.flush()
13258
    oprot.trans.flush()
13183
 
13259
 
-
 
13260
  def process_unacceptOrder(self, seqid, iprot, oprot):
-
 
13261
    args = unacceptOrder_args()
-
 
13262
    args.read(iprot)
-
 
13263
    iprot.readMessageEnd()
-
 
13264
    result = unacceptOrder_result()
-
 
13265
    result.success = self._handler.unacceptOrder(args.orderId)
-
 
13266
    oprot.writeMessageBegin("unacceptOrder", TMessageType.REPLY, seqid)
-
 
13267
    result.write(oprot)
-
 
13268
    oprot.writeMessageEnd()
-
 
13269
    oprot.trans.flush()
-
 
13270
 
13184
  def process_addBillingDetails(self, seqid, iprot, oprot):
13271
  def process_addBillingDetails(self, seqid, iprot, oprot):
13185
    args = addBillingDetails_args()
13272
    args = addBillingDetails_args()
13186
    args.read(iprot)
13273
    args.read(iprot)
13187
    iprot.readMessageEnd()
13274
    iprot.readMessageEnd()
13188
    result = addBillingDetails_result()
13275
    result = addBillingDetails_result()
Line 16392... Line 16479...
16392
    oprot.writeMessageBegin("getReturnPickupRequest", TMessageType.REPLY, seqid)
16479
    oprot.writeMessageBegin("getReturnPickupRequest", TMessageType.REPLY, seqid)
16393
    result.write(oprot)
16480
    result.write(oprot)
16394
    oprot.writeMessageEnd()
16481
    oprot.writeMessageEnd()
16395
    oprot.trans.flush()
16482
    oprot.trans.flush()
16396
 
16483
 
-
 
16484
  def process_getPendingStoreOrders(self, seqid, iprot, oprot):
-
 
16485
    args = getPendingStoreOrders_args()
-
 
16486
    args.read(iprot)
-
 
16487
    iprot.readMessageEnd()
-
 
16488
    result = getPendingStoreOrders_result()
-
 
16489
    result.success = self._handler.getPendingStoreOrders(args.storeId)
-
 
16490
    oprot.writeMessageBegin("getPendingStoreOrders", TMessageType.REPLY, seqid)
-
 
16491
    result.write(oprot)
-
 
16492
    oprot.writeMessageEnd()
-
 
16493
    oprot.trans.flush()
-
 
16494
 
16397
 
16495
 
16398
# HELPER FUNCTIONS AND STRUCTURES
16496
# HELPER FUNCTIONS AND STRUCTURES
16399
 
16497
 
16400
class createTransaction_args:
16498
class createTransaction_args:
16401
  """
16499
  """
Line 21361... Line 21459...
21361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21362
 
21460
 
21363
  def __ne__(self, other):
21461
  def __ne__(self, other):
21364
    return not (self == other)
21462
    return not (self == other)
21365
 
21463
 
-
 
21464
class unacceptOrder_args:
-
 
21465
  """
-
 
21466
  Attributes:
-
 
21467
   - orderId
-
 
21468
  """
-
 
21469
 
-
 
21470
  thrift_spec = (
-
 
21471
    None, # 0
-
 
21472
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
21473
  )
-
 
21474
 
-
 
21475
  def __init__(self, orderId=None,):
-
 
21476
    self.orderId = orderId
-
 
21477
 
-
 
21478
  def read(self, iprot):
-
 
21479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
21480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
21481
      return
-
 
21482
    iprot.readStructBegin()
-
 
21483
    while True:
-
 
21484
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
21485
      if ftype == TType.STOP:
-
 
21486
        break
-
 
21487
      if fid == 1:
-
 
21488
        if ftype == TType.I64:
-
 
21489
          self.orderId = iprot.readI64();
-
 
21490
        else:
-
 
21491
          iprot.skip(ftype)
-
 
21492
      else:
-
 
21493
        iprot.skip(ftype)
-
 
21494
      iprot.readFieldEnd()
-
 
21495
    iprot.readStructEnd()
-
 
21496
 
-
 
21497
  def write(self, oprot):
-
 
21498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
21499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
21500
      return
-
 
21501
    oprot.writeStructBegin('unacceptOrder_args')
-
 
21502
    if self.orderId is not None:
-
 
21503
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
21504
      oprot.writeI64(self.orderId)
-
 
21505
      oprot.writeFieldEnd()
-
 
21506
    oprot.writeFieldStop()
-
 
21507
    oprot.writeStructEnd()
-
 
21508
 
-
 
21509
  def validate(self):
-
 
21510
    return
-
 
21511
 
-
 
21512
 
-
 
21513
  def __repr__(self):
-
 
21514
    L = ['%s=%r' % (key, value)
-
 
21515
      for key, value in self.__dict__.iteritems()]
-
 
21516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
21517
 
-
 
21518
  def __eq__(self, other):
-
 
21519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
21520
 
-
 
21521
  def __ne__(self, other):
-
 
21522
    return not (self == other)
-
 
21523
 
-
 
21524
class unacceptOrder_result:
-
 
21525
  """
-
 
21526
  Attributes:
-
 
21527
   - success
-
 
21528
  """
-
 
21529
 
-
 
21530
  thrift_spec = (
-
 
21531
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
21532
  )
-
 
21533
 
-
 
21534
  def __init__(self, success=None,):
-
 
21535
    self.success = success
-
 
21536
 
-
 
21537
  def read(self, iprot):
-
 
21538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
21539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
21540
      return
-
 
21541
    iprot.readStructBegin()
-
 
21542
    while True:
-
 
21543
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
21544
      if ftype == TType.STOP:
-
 
21545
        break
-
 
21546
      if fid == 0:
-
 
21547
        if ftype == TType.BOOL:
-
 
21548
          self.success = iprot.readBool();
-
 
21549
        else:
-
 
21550
          iprot.skip(ftype)
-
 
21551
      else:
-
 
21552
        iprot.skip(ftype)
-
 
21553
      iprot.readFieldEnd()
-
 
21554
    iprot.readStructEnd()
-
 
21555
 
-
 
21556
  def write(self, oprot):
-
 
21557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
21558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
21559
      return
-
 
21560
    oprot.writeStructBegin('unacceptOrder_result')
-
 
21561
    if self.success is not None:
-
 
21562
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
21563
      oprot.writeBool(self.success)
-
 
21564
      oprot.writeFieldEnd()
-
 
21565
    oprot.writeFieldStop()
-
 
21566
    oprot.writeStructEnd()
-
 
21567
 
-
 
21568
  def validate(self):
-
 
21569
    return
-
 
21570
 
-
 
21571
 
-
 
21572
  def __repr__(self):
-
 
21573
    L = ['%s=%r' % (key, value)
-
 
21574
      for key, value in self.__dict__.iteritems()]
-
 
21575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
21576
 
-
 
21577
  def __eq__(self, other):
-
 
21578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
21579
 
-
 
21580
  def __ne__(self, other):
-
 
21581
    return not (self == other)
-
 
21582
 
21366
class addBillingDetails_args:
21583
class addBillingDetails_args:
21367
  """
21584
  """
21368
  Attributes:
21585
  Attributes:
21369
   - orderId
21586
   - orderId
21370
   - invoice_number
21587
   - invoice_number
Line 57455... Line 57672...
57455
      oprot.writeFieldEnd()
57672
      oprot.writeFieldEnd()
57456
    oprot.writeFieldStop()
57673
    oprot.writeFieldStop()
57457
    oprot.writeStructEnd()
57674
    oprot.writeStructEnd()
57458
 
57675
 
57459
  def validate(self):
57676
  def validate(self):
-
 
57677
    return
-
 
57678
 
-
 
57679
 
-
 
57680
  def __repr__(self):
-
 
57681
    L = ['%s=%r' % (key, value)
-
 
57682
      for key, value in self.__dict__.iteritems()]
-
 
57683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
57684
 
-
 
57685
  def __eq__(self, other):
-
 
57686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
57687
 
-
 
57688
  def __ne__(self, other):
-
 
57689
    return not (self == other)
-
 
57690
 
-
 
57691
class getPendingStoreOrders_args:
-
 
57692
  """
-
 
57693
  Attributes:
-
 
57694
   - storeId
-
 
57695
  """
-
 
57696
 
-
 
57697
  thrift_spec = (
-
 
57698
    None, # 0
-
 
57699
    (1, TType.I64, 'storeId', None, None, ), # 1
-
 
57700
  )
-
 
57701
 
-
 
57702
  def __init__(self, storeId=None,):
-
 
57703
    self.storeId = storeId
-
 
57704
 
-
 
57705
  def read(self, iprot):
-
 
57706
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
57707
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
57708
      return
-
 
57709
    iprot.readStructBegin()
-
 
57710
    while True:
-
 
57711
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
57712
      if ftype == TType.STOP:
-
 
57713
        break
-
 
57714
      if fid == 1:
-
 
57715
        if ftype == TType.I64:
-
 
57716
          self.storeId = iprot.readI64();
-
 
57717
        else:
-
 
57718
          iprot.skip(ftype)
-
 
57719
      else:
-
 
57720
        iprot.skip(ftype)
-
 
57721
      iprot.readFieldEnd()
-
 
57722
    iprot.readStructEnd()
-
 
57723
 
-
 
57724
  def write(self, oprot):
-
 
57725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
57726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
57727
      return
-
 
57728
    oprot.writeStructBegin('getPendingStoreOrders_args')
-
 
57729
    if self.storeId is not None:
-
 
57730
      oprot.writeFieldBegin('storeId', TType.I64, 1)
-
 
57731
      oprot.writeI64(self.storeId)
-
 
57732
      oprot.writeFieldEnd()
-
 
57733
    oprot.writeFieldStop()
-
 
57734
    oprot.writeStructEnd()
-
 
57735
 
-
 
57736
  def validate(self):
-
 
57737
    return
-
 
57738
 
-
 
57739
 
-
 
57740
  def __repr__(self):
-
 
57741
    L = ['%s=%r' % (key, value)
-
 
57742
      for key, value in self.__dict__.iteritems()]
-
 
57743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
57744
 
-
 
57745
  def __eq__(self, other):
-
 
57746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
57747
 
-
 
57748
  def __ne__(self, other):
-
 
57749
    return not (self == other)
-
 
57750
 
-
 
57751
class getPendingStoreOrders_result:
-
 
57752
  """
-
 
57753
  Attributes:
-
 
57754
   - success
-
 
57755
  """
-
 
57756
 
-
 
57757
  thrift_spec = (
-
 
57758
    (0, TType.LIST, 'success', (TType.STRUCT,(PendingStoreOrder, PendingStoreOrder.thrift_spec)), None, ), # 0
-
 
57759
  )
-
 
57760
 
-
 
57761
  def __init__(self, success=None,):
-
 
57762
    self.success = success
-
 
57763
 
-
 
57764
  def read(self, iprot):
-
 
57765
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
57766
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
57767
      return
-
 
57768
    iprot.readStructBegin()
-
 
57769
    while True:
-
 
57770
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
57771
      if ftype == TType.STOP:
-
 
57772
        break
-
 
57773
      if fid == 0:
-
 
57774
        if ftype == TType.LIST:
-
 
57775
          self.success = []
-
 
57776
          (_etype1463, _size1460) = iprot.readListBegin()
-
 
57777
          for _i1464 in xrange(_size1460):
-
 
57778
            _elem1465 = PendingStoreOrder()
-
 
57779
            _elem1465.read(iprot)
-
 
57780
            self.success.append(_elem1465)
-
 
57781
          iprot.readListEnd()
-
 
57782
        else:
-
 
57783
          iprot.skip(ftype)
-
 
57784
      else:
-
 
57785
        iprot.skip(ftype)
-
 
57786
      iprot.readFieldEnd()
-
 
57787
    iprot.readStructEnd()
-
 
57788
 
-
 
57789
  def write(self, oprot):
-
 
57790
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
57791
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
57792
      return
-
 
57793
    oprot.writeStructBegin('getPendingStoreOrders_result')
-
 
57794
    if self.success is not None:
-
 
57795
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
57796
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
57797
      for iter1466 in self.success:
-
 
57798
        iter1466.write(oprot)
-
 
57799
      oprot.writeListEnd()
-
 
57800
      oprot.writeFieldEnd()
-
 
57801
    oprot.writeFieldStop()
-
 
57802
    oprot.writeStructEnd()
-
 
57803
 
-
 
57804
  def validate(self):
57460
    return
57805
    return
57461
 
57806
 
57462
 
57807
 
57463
  def __repr__(self):
57808
  def __repr__(self):
57464
    L = ['%s=%r' % (key, value)
57809
    L = ['%s=%r' % (key, value)