Subversion Repositories SmartDukaan

Rev

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

Rev 13276 Rev 13691
Line 2187... Line 2187...
2187
     - transactionId
2187
     - transactionId
2188
     - shipementSeq
2188
     - shipementSeq
2189
    """
2189
    """
2190
    pass
2190
    pass
2191
 
2191
 
-
 
2192
  def createHomeShopOrder(self, snapdealOrder):
-
 
2193
    """
-
 
2194
    Parameters:
-
 
2195
     - snapdealOrder
-
 
2196
    """
-
 
2197
    pass
-
 
2198
 
-
 
2199
  def getHomeShopOrder(self, orderId, hsOrderNo, hsSubOrderNo):
-
 
2200
    """
-
 
2201
    Parameters:
-
 
2202
     - orderId
-
 
2203
     - hsOrderNo
-
 
2204
     - hsSubOrderNo
-
 
2205
    """
-
 
2206
    pass
-
 
2207
 
-
 
2208
  def homeShopOrderExists(self, hsOrderNo, hsSubOrderNo):
-
 
2209
    """
-
 
2210
    Parameters:
-
 
2211
     - hsOrderNo
-
 
2212
     - hsSubOrderNo
-
 
2213
    """
-
 
2214
    pass
-
 
2215
 
2192
 
2216
 
2193
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2217
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2194
  def __init__(self, iprot, oprot=None):
2218
  def __init__(self, iprot, oprot=None):
2195
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2219
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2196
 
2220
 
Line 10353... Line 10377...
10353
      return result.success
10377
      return result.success
10354
    if result.ex is not None:
10378
    if result.ex is not None:
10355
      raise result.ex
10379
      raise result.ex
10356
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInvoiceFormatLogisticsTxnId failed: unknown result");
10380
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInvoiceFormatLogisticsTxnId failed: unknown result");
10357
 
10381
 
-
 
10382
  def createHomeShopOrder(self, snapdealOrder):
-
 
10383
    """
-
 
10384
    Parameters:
-
 
10385
     - snapdealOrder
-
 
10386
    """
-
 
10387
    self.send_createHomeShopOrder(snapdealOrder)
-
 
10388
    self.recv_createHomeShopOrder()
-
 
10389
 
-
 
10390
  def send_createHomeShopOrder(self, snapdealOrder):
-
 
10391
    self._oprot.writeMessageBegin('createHomeShopOrder', TMessageType.CALL, self._seqid)
-
 
10392
    args = createHomeShopOrder_args()
-
 
10393
    args.snapdealOrder = snapdealOrder
-
 
10394
    args.write(self._oprot)
-
 
10395
    self._oprot.writeMessageEnd()
-
 
10396
    self._oprot.trans.flush()
-
 
10397
 
-
 
10398
  def recv_createHomeShopOrder(self, ):
-
 
10399
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
10400
    if mtype == TMessageType.EXCEPTION:
-
 
10401
      x = TApplicationException()
-
 
10402
      x.read(self._iprot)
-
 
10403
      self._iprot.readMessageEnd()
-
 
10404
      raise x
-
 
10405
    result = createHomeShopOrder_result()
-
 
10406
    result.read(self._iprot)
-
 
10407
    self._iprot.readMessageEnd()
-
 
10408
    return
-
 
10409
 
-
 
10410
  def getHomeShopOrder(self, orderId, hsOrderNo, hsSubOrderNo):
-
 
10411
    """
-
 
10412
    Parameters:
-
 
10413
     - orderId
-
 
10414
     - hsOrderNo
-
 
10415
     - hsSubOrderNo
-
 
10416
    """
-
 
10417
    self.send_getHomeShopOrder(orderId, hsOrderNo, hsSubOrderNo)
-
 
10418
    return self.recv_getHomeShopOrder()
-
 
10419
 
-
 
10420
  def send_getHomeShopOrder(self, orderId, hsOrderNo, hsSubOrderNo):
-
 
10421
    self._oprot.writeMessageBegin('getHomeShopOrder', TMessageType.CALL, self._seqid)
-
 
10422
    args = getHomeShopOrder_args()
-
 
10423
    args.orderId = orderId
-
 
10424
    args.hsOrderNo = hsOrderNo
-
 
10425
    args.hsSubOrderNo = hsSubOrderNo
-
 
10426
    args.write(self._oprot)
-
 
10427
    self._oprot.writeMessageEnd()
-
 
10428
    self._oprot.trans.flush()
-
 
10429
 
-
 
10430
  def recv_getHomeShopOrder(self, ):
-
 
10431
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
10432
    if mtype == TMessageType.EXCEPTION:
-
 
10433
      x = TApplicationException()
-
 
10434
      x.read(self._iprot)
-
 
10435
      self._iprot.readMessageEnd()
-
 
10436
      raise x
-
 
10437
    result = getHomeShopOrder_result()
-
 
10438
    result.read(self._iprot)
-
 
10439
    self._iprot.readMessageEnd()
-
 
10440
    if result.success is not None:
-
 
10441
      return result.success
-
 
10442
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHomeShopOrder failed: unknown result");
-
 
10443
 
-
 
10444
  def homeShopOrderExists(self, hsOrderNo, hsSubOrderNo):
-
 
10445
    """
-
 
10446
    Parameters:
-
 
10447
     - hsOrderNo
-
 
10448
     - hsSubOrderNo
-
 
10449
    """
-
 
10450
    self.send_homeShopOrderExists(hsOrderNo, hsSubOrderNo)
-
 
10451
    return self.recv_homeShopOrderExists()
-
 
10452
 
-
 
10453
  def send_homeShopOrderExists(self, hsOrderNo, hsSubOrderNo):
-
 
10454
    self._oprot.writeMessageBegin('homeShopOrderExists', TMessageType.CALL, self._seqid)
-
 
10455
    args = homeShopOrderExists_args()
-
 
10456
    args.hsOrderNo = hsOrderNo
-
 
10457
    args.hsSubOrderNo = hsSubOrderNo
-
 
10458
    args.write(self._oprot)
-
 
10459
    self._oprot.writeMessageEnd()
-
 
10460
    self._oprot.trans.flush()
-
 
10461
 
-
 
10462
  def recv_homeShopOrderExists(self, ):
-
 
10463
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
10464
    if mtype == TMessageType.EXCEPTION:
-
 
10465
      x = TApplicationException()
-
 
10466
      x.read(self._iprot)
-
 
10467
      self._iprot.readMessageEnd()
-
 
10468
      raise x
-
 
10469
    result = homeShopOrderExists_result()
-
 
10470
    result.read(self._iprot)
-
 
10471
    self._iprot.readMessageEnd()
-
 
10472
    if result.success is not None:
-
 
10473
      return result.success
-
 
10474
    raise TApplicationException(TApplicationException.MISSING_RESULT, "homeShopOrderExists failed: unknown result");
-
 
10475
 
10358
 
10476
 
10359
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
10477
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
10360
  def __init__(self, handler):
10478
  def __init__(self, handler):
10361
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
10479
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
10362
    self._processMap["createTransaction"] = Processor.process_createTransaction
10480
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 10602... Line 10720...
10602
    self._processMap["getFlipkartFaSalesSnapshotBySkuAndSaleDate"] = Processor.process_getFlipkartFaSalesSnapshotBySkuAndSaleDate
10720
    self._processMap["getFlipkartFaSalesSnapshotBySkuAndSaleDate"] = Processor.process_getFlipkartFaSalesSnapshotBySkuAndSaleDate
10603
    self._processMap["acceptPackageOrders"] = Processor.process_acceptPackageOrders
10721
    self._processMap["acceptPackageOrders"] = Processor.process_acceptPackageOrders
10604
    self._processMap["getGroupOrdersByLogisticsTxnId"] = Processor.process_getGroupOrdersByLogisticsTxnId
10722
    self._processMap["getGroupOrdersByLogisticsTxnId"] = Processor.process_getGroupOrdersByLogisticsTxnId
10605
    self._processMap["addBillingDetailsForGrouppedOrders"] = Processor.process_addBillingDetailsForGrouppedOrders
10723
    self._processMap["addBillingDetailsForGrouppedOrders"] = Processor.process_addBillingDetailsForGrouppedOrders
10606
    self._processMap["getInvoiceFormatLogisticsTxnId"] = Processor.process_getInvoiceFormatLogisticsTxnId
10724
    self._processMap["getInvoiceFormatLogisticsTxnId"] = Processor.process_getInvoiceFormatLogisticsTxnId
-
 
10725
    self._processMap["createHomeShopOrder"] = Processor.process_createHomeShopOrder
-
 
10726
    self._processMap["getHomeShopOrder"] = Processor.process_getHomeShopOrder
-
 
10727
    self._processMap["homeShopOrderExists"] = Processor.process_homeShopOrderExists
10607
 
10728
 
10608
  def process(self, iprot, oprot):
10729
  def process(self, iprot, oprot):
10609
    (name, type, seqid) = iprot.readMessageBegin()
10730
    (name, type, seqid) = iprot.readMessageBegin()
10610
    if name not in self._processMap:
10731
    if name not in self._processMap:
10611
      iprot.skip(TType.STRUCT)
10732
      iprot.skip(TType.STRUCT)
Line 13664... Line 13785...
13664
    oprot.writeMessageBegin("getInvoiceFormatLogisticsTxnId", TMessageType.REPLY, seqid)
13785
    oprot.writeMessageBegin("getInvoiceFormatLogisticsTxnId", TMessageType.REPLY, seqid)
13665
    result.write(oprot)
13786
    result.write(oprot)
13666
    oprot.writeMessageEnd()
13787
    oprot.writeMessageEnd()
13667
    oprot.trans.flush()
13788
    oprot.trans.flush()
13668
 
13789
 
-
 
13790
  def process_createHomeShopOrder(self, seqid, iprot, oprot):
-
 
13791
    args = createHomeShopOrder_args()
-
 
13792
    args.read(iprot)
-
 
13793
    iprot.readMessageEnd()
-
 
13794
    result = createHomeShopOrder_result()
-
 
13795
    self._handler.createHomeShopOrder(args.snapdealOrder)
-
 
13796
    oprot.writeMessageBegin("createHomeShopOrder", TMessageType.REPLY, seqid)
-
 
13797
    result.write(oprot)
-
 
13798
    oprot.writeMessageEnd()
-
 
13799
    oprot.trans.flush()
-
 
13800
 
-
 
13801
  def process_getHomeShopOrder(self, seqid, iprot, oprot):
-
 
13802
    args = getHomeShopOrder_args()
-
 
13803
    args.read(iprot)
-
 
13804
    iprot.readMessageEnd()
-
 
13805
    result = getHomeShopOrder_result()
-
 
13806
    result.success = self._handler.getHomeShopOrder(args.orderId, args.hsOrderNo, args.hsSubOrderNo)
-
 
13807
    oprot.writeMessageBegin("getHomeShopOrder", TMessageType.REPLY, seqid)
-
 
13808
    result.write(oprot)
-
 
13809
    oprot.writeMessageEnd()
-
 
13810
    oprot.trans.flush()
-
 
13811
 
-
 
13812
  def process_homeShopOrderExists(self, seqid, iprot, oprot):
-
 
13813
    args = homeShopOrderExists_args()
-
 
13814
    args.read(iprot)
-
 
13815
    iprot.readMessageEnd()
-
 
13816
    result = homeShopOrderExists_result()
-
 
13817
    result.success = self._handler.homeShopOrderExists(args.hsOrderNo, args.hsSubOrderNo)
-
 
13818
    oprot.writeMessageBegin("homeShopOrderExists", TMessageType.REPLY, seqid)
-
 
13819
    result.write(oprot)
-
 
13820
    oprot.writeMessageEnd()
-
 
13821
    oprot.trans.flush()
-
 
13822
 
13669
 
13823
 
13670
# HELPER FUNCTIONS AND STRUCTURES
13824
# HELPER FUNCTIONS AND STRUCTURES
13671
 
13825
 
13672
class createTransaction_args:
13826
class createTransaction_args:
13673
  """
13827
  """
Line 47509... Line 47663...
47509
      oprot.writeFieldEnd()
47663
      oprot.writeFieldEnd()
47510
    oprot.writeFieldStop()
47664
    oprot.writeFieldStop()
47511
    oprot.writeStructEnd()
47665
    oprot.writeStructEnd()
47512
 
47666
 
47513
  def validate(self):
47667
  def validate(self):
-
 
47668
    return
-
 
47669
 
-
 
47670
 
-
 
47671
  def __repr__(self):
-
 
47672
    L = ['%s=%r' % (key, value)
-
 
47673
      for key, value in self.__dict__.iteritems()]
-
 
47674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
47675
 
-
 
47676
  def __eq__(self, other):
-
 
47677
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
47678
 
-
 
47679
  def __ne__(self, other):
-
 
47680
    return not (self == other)
-
 
47681
 
-
 
47682
class createHomeShopOrder_args:
-
 
47683
  """
-
 
47684
  Attributes:
-
 
47685
   - snapdealOrder
-
 
47686
  """
-
 
47687
 
-
 
47688
  thrift_spec = (
-
 
47689
    None, # 0
-
 
47690
    (1, TType.STRUCT, 'snapdealOrder', (HsOrder, HsOrder.thrift_spec), None, ), # 1
-
 
47691
  )
-
 
47692
 
-
 
47693
  def __init__(self, snapdealOrder=None,):
-
 
47694
    self.snapdealOrder = snapdealOrder
-
 
47695
 
-
 
47696
  def read(self, iprot):
-
 
47697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
47698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
47699
      return
-
 
47700
    iprot.readStructBegin()
-
 
47701
    while True:
-
 
47702
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
47703
      if ftype == TType.STOP:
-
 
47704
        break
-
 
47705
      if fid == 1:
-
 
47706
        if ftype == TType.STRUCT:
-
 
47707
          self.snapdealOrder = HsOrder()
-
 
47708
          self.snapdealOrder.read(iprot)
-
 
47709
        else:
-
 
47710
          iprot.skip(ftype)
-
 
47711
      else:
-
 
47712
        iprot.skip(ftype)
-
 
47713
      iprot.readFieldEnd()
-
 
47714
    iprot.readStructEnd()
-
 
47715
 
-
 
47716
  def write(self, oprot):
-
 
47717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
47718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
47719
      return
-
 
47720
    oprot.writeStructBegin('createHomeShopOrder_args')
-
 
47721
    if self.snapdealOrder is not None:
-
 
47722
      oprot.writeFieldBegin('snapdealOrder', TType.STRUCT, 1)
-
 
47723
      self.snapdealOrder.write(oprot)
-
 
47724
      oprot.writeFieldEnd()
-
 
47725
    oprot.writeFieldStop()
-
 
47726
    oprot.writeStructEnd()
-
 
47727
 
-
 
47728
  def validate(self):
-
 
47729
    return
-
 
47730
 
-
 
47731
 
-
 
47732
  def __repr__(self):
-
 
47733
    L = ['%s=%r' % (key, value)
-
 
47734
      for key, value in self.__dict__.iteritems()]
-
 
47735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
47736
 
-
 
47737
  def __eq__(self, other):
-
 
47738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
47739
 
-
 
47740
  def __ne__(self, other):
-
 
47741
    return not (self == other)
-
 
47742
 
-
 
47743
class createHomeShopOrder_result:
-
 
47744
 
-
 
47745
  thrift_spec = (
-
 
47746
  )
-
 
47747
 
-
 
47748
  def read(self, iprot):
-
 
47749
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
47750
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
47751
      return
-
 
47752
    iprot.readStructBegin()
-
 
47753
    while True:
-
 
47754
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
47755
      if ftype == TType.STOP:
-
 
47756
        break
-
 
47757
      else:
-
 
47758
        iprot.skip(ftype)
-
 
47759
      iprot.readFieldEnd()
-
 
47760
    iprot.readStructEnd()
-
 
47761
 
-
 
47762
  def write(self, oprot):
-
 
47763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
47764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
47765
      return
-
 
47766
    oprot.writeStructBegin('createHomeShopOrder_result')
-
 
47767
    oprot.writeFieldStop()
-
 
47768
    oprot.writeStructEnd()
-
 
47769
 
-
 
47770
  def validate(self):
-
 
47771
    return
-
 
47772
 
-
 
47773
 
-
 
47774
  def __repr__(self):
-
 
47775
    L = ['%s=%r' % (key, value)
-
 
47776
      for key, value in self.__dict__.iteritems()]
-
 
47777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
47778
 
-
 
47779
  def __eq__(self, other):
-
 
47780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
47781
 
-
 
47782
  def __ne__(self, other):
-
 
47783
    return not (self == other)
-
 
47784
 
-
 
47785
class getHomeShopOrder_args:
-
 
47786
  """
-
 
47787
  Attributes:
-
 
47788
   - orderId
-
 
47789
   - hsOrderNo
-
 
47790
   - hsSubOrderNo
-
 
47791
  """
-
 
47792
 
-
 
47793
  thrift_spec = (
-
 
47794
    None, # 0
-
 
47795
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
47796
    (2, TType.STRING, 'hsOrderNo', None, None, ), # 2
-
 
47797
    (3, TType.STRING, 'hsSubOrderNo', None, None, ), # 3
-
 
47798
  )
-
 
47799
 
-
 
47800
  def __init__(self, orderId=None, hsOrderNo=None, hsSubOrderNo=None,):
-
 
47801
    self.orderId = orderId
-
 
47802
    self.hsOrderNo = hsOrderNo
-
 
47803
    self.hsSubOrderNo = hsSubOrderNo
-
 
47804
 
-
 
47805
  def read(self, iprot):
-
 
47806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
47807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
47808
      return
-
 
47809
    iprot.readStructBegin()
-
 
47810
    while True:
-
 
47811
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
47812
      if ftype == TType.STOP:
-
 
47813
        break
-
 
47814
      if fid == 1:
-
 
47815
        if ftype == TType.I64:
-
 
47816
          self.orderId = iprot.readI64();
-
 
47817
        else:
-
 
47818
          iprot.skip(ftype)
-
 
47819
      elif fid == 2:
-
 
47820
        if ftype == TType.STRING:
-
 
47821
          self.hsOrderNo = iprot.readString();
-
 
47822
        else:
-
 
47823
          iprot.skip(ftype)
-
 
47824
      elif fid == 3:
-
 
47825
        if ftype == TType.STRING:
-
 
47826
          self.hsSubOrderNo = iprot.readString();
-
 
47827
        else:
-
 
47828
          iprot.skip(ftype)
-
 
47829
      else:
-
 
47830
        iprot.skip(ftype)
-
 
47831
      iprot.readFieldEnd()
-
 
47832
    iprot.readStructEnd()
-
 
47833
 
-
 
47834
  def write(self, oprot):
-
 
47835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
47836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
47837
      return
-
 
47838
    oprot.writeStructBegin('getHomeShopOrder_args')
-
 
47839
    if self.orderId is not None:
-
 
47840
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
47841
      oprot.writeI64(self.orderId)
-
 
47842
      oprot.writeFieldEnd()
-
 
47843
    if self.hsOrderNo is not None:
-
 
47844
      oprot.writeFieldBegin('hsOrderNo', TType.STRING, 2)
-
 
47845
      oprot.writeString(self.hsOrderNo)
-
 
47846
      oprot.writeFieldEnd()
-
 
47847
    if self.hsSubOrderNo is not None:
-
 
47848
      oprot.writeFieldBegin('hsSubOrderNo', TType.STRING, 3)
-
 
47849
      oprot.writeString(self.hsSubOrderNo)
-
 
47850
      oprot.writeFieldEnd()
-
 
47851
    oprot.writeFieldStop()
-
 
47852
    oprot.writeStructEnd()
-
 
47853
 
-
 
47854
  def validate(self):
-
 
47855
    return
-
 
47856
 
-
 
47857
 
-
 
47858
  def __repr__(self):
-
 
47859
    L = ['%s=%r' % (key, value)
-
 
47860
      for key, value in self.__dict__.iteritems()]
-
 
47861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
47862
 
-
 
47863
  def __eq__(self, other):
-
 
47864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
47865
 
-
 
47866
  def __ne__(self, other):
-
 
47867
    return not (self == other)
-
 
47868
 
-
 
47869
class getHomeShopOrder_result:
-
 
47870
  """
-
 
47871
  Attributes:
-
 
47872
   - success
-
 
47873
  """
-
 
47874
 
-
 
47875
  thrift_spec = (
-
 
47876
    (0, TType.LIST, 'success', (TType.STRUCT,(HsOrder, HsOrder.thrift_spec)), None, ), # 0
-
 
47877
  )
-
 
47878
 
-
 
47879
  def __init__(self, success=None,):
-
 
47880
    self.success = success
-
 
47881
 
-
 
47882
  def read(self, iprot):
-
 
47883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
47884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
47885
      return
-
 
47886
    iprot.readStructBegin()
-
 
47887
    while True:
-
 
47888
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
47889
      if ftype == TType.STOP:
-
 
47890
        break
-
 
47891
      if fid == 0:
-
 
47892
        if ftype == TType.LIST:
-
 
47893
          self.success = []
-
 
47894
          (_etype1138, _size1135) = iprot.readListBegin()
-
 
47895
          for _i1139 in xrange(_size1135):
-
 
47896
            _elem1140 = HsOrder()
-
 
47897
            _elem1140.read(iprot)
-
 
47898
            self.success.append(_elem1140)
-
 
47899
          iprot.readListEnd()
-
 
47900
        else:
-
 
47901
          iprot.skip(ftype)
-
 
47902
      else:
-
 
47903
        iprot.skip(ftype)
-
 
47904
      iprot.readFieldEnd()
-
 
47905
    iprot.readStructEnd()
-
 
47906
 
-
 
47907
  def write(self, oprot):
-
 
47908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
47909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
47910
      return
-
 
47911
    oprot.writeStructBegin('getHomeShopOrder_result')
-
 
47912
    if self.success is not None:
-
 
47913
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
47914
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
47915
      for iter1141 in self.success:
-
 
47916
        iter1141.write(oprot)
-
 
47917
      oprot.writeListEnd()
-
 
47918
      oprot.writeFieldEnd()
-
 
47919
    oprot.writeFieldStop()
-
 
47920
    oprot.writeStructEnd()
-
 
47921
 
-
 
47922
  def validate(self):
-
 
47923
    return
-
 
47924
 
-
 
47925
 
-
 
47926
  def __repr__(self):
-
 
47927
    L = ['%s=%r' % (key, value)
-
 
47928
      for key, value in self.__dict__.iteritems()]
-
 
47929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
47930
 
-
 
47931
  def __eq__(self, other):
-
 
47932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
47933
 
-
 
47934
  def __ne__(self, other):
-
 
47935
    return not (self == other)
-
 
47936
 
-
 
47937
class homeShopOrderExists_args:
-
 
47938
  """
-
 
47939
  Attributes:
-
 
47940
   - hsOrderNo
-
 
47941
   - hsSubOrderNo
-
 
47942
  """
-
 
47943
 
-
 
47944
  thrift_spec = (
-
 
47945
    None, # 0
-
 
47946
    (1, TType.STRING, 'hsOrderNo', None, None, ), # 1
-
 
47947
    (2, TType.STRING, 'hsSubOrderNo', None, None, ), # 2
-
 
47948
  )
-
 
47949
 
-
 
47950
  def __init__(self, hsOrderNo=None, hsSubOrderNo=None,):
-
 
47951
    self.hsOrderNo = hsOrderNo
-
 
47952
    self.hsSubOrderNo = hsSubOrderNo
-
 
47953
 
-
 
47954
  def read(self, iprot):
-
 
47955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
47956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
47957
      return
-
 
47958
    iprot.readStructBegin()
-
 
47959
    while True:
-
 
47960
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
47961
      if ftype == TType.STOP:
-
 
47962
        break
-
 
47963
      if fid == 1:
-
 
47964
        if ftype == TType.STRING:
-
 
47965
          self.hsOrderNo = iprot.readString();
-
 
47966
        else:
-
 
47967
          iprot.skip(ftype)
-
 
47968
      elif fid == 2:
-
 
47969
        if ftype == TType.STRING:
-
 
47970
          self.hsSubOrderNo = iprot.readString();
-
 
47971
        else:
-
 
47972
          iprot.skip(ftype)
-
 
47973
      else:
-
 
47974
        iprot.skip(ftype)
-
 
47975
      iprot.readFieldEnd()
-
 
47976
    iprot.readStructEnd()
-
 
47977
 
-
 
47978
  def write(self, oprot):
-
 
47979
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
47980
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
47981
      return
-
 
47982
    oprot.writeStructBegin('homeShopOrderExists_args')
-
 
47983
    if self.hsOrderNo is not None:
-
 
47984
      oprot.writeFieldBegin('hsOrderNo', TType.STRING, 1)
-
 
47985
      oprot.writeString(self.hsOrderNo)
-
 
47986
      oprot.writeFieldEnd()
-
 
47987
    if self.hsSubOrderNo is not None:
-
 
47988
      oprot.writeFieldBegin('hsSubOrderNo', TType.STRING, 2)
-
 
47989
      oprot.writeString(self.hsSubOrderNo)
-
 
47990
      oprot.writeFieldEnd()
-
 
47991
    oprot.writeFieldStop()
-
 
47992
    oprot.writeStructEnd()
-
 
47993
 
-
 
47994
  def validate(self):
-
 
47995
    return
-
 
47996
 
-
 
47997
 
-
 
47998
  def __repr__(self):
-
 
47999
    L = ['%s=%r' % (key, value)
-
 
48000
      for key, value in self.__dict__.iteritems()]
-
 
48001
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
48002
 
-
 
48003
  def __eq__(self, other):
-
 
48004
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
48005
 
-
 
48006
  def __ne__(self, other):
-
 
48007
    return not (self == other)
-
 
48008
 
-
 
48009
class homeShopOrderExists_result:
-
 
48010
  """
-
 
48011
  Attributes:
-
 
48012
   - success
-
 
48013
  """
-
 
48014
 
-
 
48015
  thrift_spec = (
-
 
48016
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
48017
  )
-
 
48018
 
-
 
48019
  def __init__(self, success=None,):
-
 
48020
    self.success = success
-
 
48021
 
-
 
48022
  def read(self, iprot):
-
 
48023
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
48024
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
48025
      return
-
 
48026
    iprot.readStructBegin()
-
 
48027
    while True:
-
 
48028
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
48029
      if ftype == TType.STOP:
-
 
48030
        break
-
 
48031
      if fid == 0:
-
 
48032
        if ftype == TType.BOOL:
-
 
48033
          self.success = iprot.readBool();
-
 
48034
        else:
-
 
48035
          iprot.skip(ftype)
-
 
48036
      else:
-
 
48037
        iprot.skip(ftype)
-
 
48038
      iprot.readFieldEnd()
-
 
48039
    iprot.readStructEnd()
-
 
48040
 
-
 
48041
  def write(self, oprot):
-
 
48042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
48043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
48044
      return
-
 
48045
    oprot.writeStructBegin('homeShopOrderExists_result')
-
 
48046
    if self.success is not None:
-
 
48047
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
48048
      oprot.writeBool(self.success)
-
 
48049
      oprot.writeFieldEnd()
-
 
48050
    oprot.writeFieldStop()
-
 
48051
    oprot.writeStructEnd()
-
 
48052
 
-
 
48053
  def validate(self):
47514
    return
48054
    return
47515
 
48055
 
47516
 
48056
 
47517
  def __repr__(self):
48057
  def __repr__(self):
47518
    L = ['%s=%r' % (key, value)
48058
    L = ['%s=%r' % (key, value)