Subversion Repositories SmartDukaan

Rev

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

Rev 8303 Rev 8488
Line 1894... Line 1894...
1894
    Parameters:
1894
    Parameters:
1895
     - item_id
1895
     - item_id
1896
    """
1896
    """
1897
    pass
1897
    pass
1898
 
1898
 
-
 
1899
  def createSnapdealOrder(self, snapdealOrder):
-
 
1900
    """
-
 
1901
    Parameters:
-
 
1902
     - snapdealOrder
-
 
1903
    """
-
 
1904
    pass
-
 
1905
 
-
 
1906
  def getSnapdealOrder(self, orderId, referenceCode, subrderId):
-
 
1907
    """
-
 
1908
    Parameters:
-
 
1909
     - orderId
-
 
1910
     - referenceCode
-
 
1911
     - subrderId
-
 
1912
    """
-
 
1913
    pass
-
 
1914
 
-
 
1915
  def snapdealOrderExists(self, subOrderId):
-
 
1916
    """
-
 
1917
    Parameters:
-
 
1918
     - subOrderId
-
 
1919
    """
-
 
1920
    pass
-
 
1921
 
1899
 
1922
 
1900
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1923
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1901
  def __init__(self, iprot, oprot=None):
1924
  def __init__(self, iprot, oprot=None):
1902
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1925
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1903
 
1926
 
Line 8870... Line 8893...
8870
    self._iprot.readMessageEnd()
8893
    self._iprot.readMessageEnd()
8871
    if result.success is not None:
8894
    if result.success is not None:
8872
      return result.success
8895
      return result.success
8873
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaSalesLatestSnapshotForItem failed: unknown result");
8896
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaSalesLatestSnapshotForItem failed: unknown result");
8874
 
8897
 
-
 
8898
  def createSnapdealOrder(self, snapdealOrder):
-
 
8899
    """
-
 
8900
    Parameters:
-
 
8901
     - snapdealOrder
-
 
8902
    """
-
 
8903
    self.send_createSnapdealOrder(snapdealOrder)
-
 
8904
    self.recv_createSnapdealOrder()
-
 
8905
 
-
 
8906
  def send_createSnapdealOrder(self, snapdealOrder):
-
 
8907
    self._oprot.writeMessageBegin('createSnapdealOrder', TMessageType.CALL, self._seqid)
-
 
8908
    args = createSnapdealOrder_args()
-
 
8909
    args.snapdealOrder = snapdealOrder
-
 
8910
    args.write(self._oprot)
-
 
8911
    self._oprot.writeMessageEnd()
-
 
8912
    self._oprot.trans.flush()
-
 
8913
 
-
 
8914
  def recv_createSnapdealOrder(self, ):
-
 
8915
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
8916
    if mtype == TMessageType.EXCEPTION:
-
 
8917
      x = TApplicationException()
-
 
8918
      x.read(self._iprot)
-
 
8919
      self._iprot.readMessageEnd()
-
 
8920
      raise x
-
 
8921
    result = createSnapdealOrder_result()
-
 
8922
    result.read(self._iprot)
-
 
8923
    self._iprot.readMessageEnd()
-
 
8924
    return
-
 
8925
 
-
 
8926
  def getSnapdealOrder(self, orderId, referenceCode, subrderId):
-
 
8927
    """
-
 
8928
    Parameters:
-
 
8929
     - orderId
-
 
8930
     - referenceCode
-
 
8931
     - subrderId
-
 
8932
    """
-
 
8933
    self.send_getSnapdealOrder(orderId, referenceCode, subrderId)
-
 
8934
    return self.recv_getSnapdealOrder()
-
 
8935
 
-
 
8936
  def send_getSnapdealOrder(self, orderId, referenceCode, subrderId):
-
 
8937
    self._oprot.writeMessageBegin('getSnapdealOrder', TMessageType.CALL, self._seqid)
-
 
8938
    args = getSnapdealOrder_args()
-
 
8939
    args.orderId = orderId
-
 
8940
    args.referenceCode = referenceCode
-
 
8941
    args.subrderId = subrderId
-
 
8942
    args.write(self._oprot)
-
 
8943
    self._oprot.writeMessageEnd()
-
 
8944
    self._oprot.trans.flush()
-
 
8945
 
-
 
8946
  def recv_getSnapdealOrder(self, ):
-
 
8947
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
8948
    if mtype == TMessageType.EXCEPTION:
-
 
8949
      x = TApplicationException()
-
 
8950
      x.read(self._iprot)
-
 
8951
      self._iprot.readMessageEnd()
-
 
8952
      raise x
-
 
8953
    result = getSnapdealOrder_result()
-
 
8954
    result.read(self._iprot)
-
 
8955
    self._iprot.readMessageEnd()
-
 
8956
    if result.success is not None:
-
 
8957
      return result.success
-
 
8958
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealOrder failed: unknown result");
-
 
8959
 
-
 
8960
  def snapdealOrderExists(self, subOrderId):
-
 
8961
    """
-
 
8962
    Parameters:
-
 
8963
     - subOrderId
-
 
8964
    """
-
 
8965
    self.send_snapdealOrderExists(subOrderId)
-
 
8966
    return self.recv_snapdealOrderExists()
-
 
8967
 
-
 
8968
  def send_snapdealOrderExists(self, subOrderId):
-
 
8969
    self._oprot.writeMessageBegin('snapdealOrderExists', TMessageType.CALL, self._seqid)
-
 
8970
    args = snapdealOrderExists_args()
-
 
8971
    args.subOrderId = subOrderId
-
 
8972
    args.write(self._oprot)
-
 
8973
    self._oprot.writeMessageEnd()
-
 
8974
    self._oprot.trans.flush()
-
 
8975
 
-
 
8976
  def recv_snapdealOrderExists(self, ):
-
 
8977
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
8978
    if mtype == TMessageType.EXCEPTION:
-
 
8979
      x = TApplicationException()
-
 
8980
      x.read(self._iprot)
-
 
8981
      self._iprot.readMessageEnd()
-
 
8982
      raise x
-
 
8983
    result = snapdealOrderExists_result()
-
 
8984
    result.read(self._iprot)
-
 
8985
    self._iprot.readMessageEnd()
-
 
8986
    if result.success is not None:
-
 
8987
      return result.success
-
 
8988
    raise TApplicationException(TApplicationException.MISSING_RESULT, "snapdealOrderExists failed: unknown result");
-
 
8989
 
8875
 
8990
 
8876
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
8991
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
8877
  def __init__(self, handler):
8992
  def __init__(self, handler):
8878
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
8993
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
8879
    self._processMap["createTransaction"] = Processor.process_createTransaction
8994
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 9082... Line 9197...
9082
    self._processMap["updateOrderForEbay"] = Processor.process_updateOrderForEbay
9197
    self._processMap["updateOrderForEbay"] = Processor.process_updateOrderForEbay
9083
    self._processMap["splitEbayOrder"] = Processor.process_splitEbayOrder
9198
    self._processMap["splitEbayOrder"] = Processor.process_splitEbayOrder
9084
    self._processMap["addOrUpdateAmazonFbaSalesSnapshot"] = Processor.process_addOrUpdateAmazonFbaSalesSnapshot
9199
    self._processMap["addOrUpdateAmazonFbaSalesSnapshot"] = Processor.process_addOrUpdateAmazonFbaSalesSnapshot
9085
    self._processMap["getAmazonFbaSalesSnapshotForDays"] = Processor.process_getAmazonFbaSalesSnapshotForDays
9200
    self._processMap["getAmazonFbaSalesSnapshotForDays"] = Processor.process_getAmazonFbaSalesSnapshotForDays
9086
    self._processMap["getAmazonFbaSalesLatestSnapshotForItem"] = Processor.process_getAmazonFbaSalesLatestSnapshotForItem
9201
    self._processMap["getAmazonFbaSalesLatestSnapshotForItem"] = Processor.process_getAmazonFbaSalesLatestSnapshotForItem
-
 
9202
    self._processMap["createSnapdealOrder"] = Processor.process_createSnapdealOrder
-
 
9203
    self._processMap["getSnapdealOrder"] = Processor.process_getSnapdealOrder
-
 
9204
    self._processMap["snapdealOrderExists"] = Processor.process_snapdealOrderExists
9087
 
9205
 
9088
  def process(self, iprot, oprot):
9206
  def process(self, iprot, oprot):
9089
    (name, type, seqid) = iprot.readMessageBegin()
9207
    (name, type, seqid) = iprot.readMessageBegin()
9090
    if name not in self._processMap:
9208
    if name not in self._processMap:
9091
      iprot.skip(TType.STRUCT)
9209
      iprot.skip(TType.STRUCT)
Line 11686... Line 11804...
11686
    oprot.writeMessageBegin("getAmazonFbaSalesLatestSnapshotForItem", TMessageType.REPLY, seqid)
11804
    oprot.writeMessageBegin("getAmazonFbaSalesLatestSnapshotForItem", TMessageType.REPLY, seqid)
11687
    result.write(oprot)
11805
    result.write(oprot)
11688
    oprot.writeMessageEnd()
11806
    oprot.writeMessageEnd()
11689
    oprot.trans.flush()
11807
    oprot.trans.flush()
11690
 
11808
 
-
 
11809
  def process_createSnapdealOrder(self, seqid, iprot, oprot):
-
 
11810
    args = createSnapdealOrder_args()
-
 
11811
    args.read(iprot)
-
 
11812
    iprot.readMessageEnd()
-
 
11813
    result = createSnapdealOrder_result()
-
 
11814
    self._handler.createSnapdealOrder(args.snapdealOrder)
-
 
11815
    oprot.writeMessageBegin("createSnapdealOrder", TMessageType.REPLY, seqid)
-
 
11816
    result.write(oprot)
-
 
11817
    oprot.writeMessageEnd()
-
 
11818
    oprot.trans.flush()
-
 
11819
 
-
 
11820
  def process_getSnapdealOrder(self, seqid, iprot, oprot):
-
 
11821
    args = getSnapdealOrder_args()
-
 
11822
    args.read(iprot)
-
 
11823
    iprot.readMessageEnd()
-
 
11824
    result = getSnapdealOrder_result()
-
 
11825
    result.success = self._handler.getSnapdealOrder(args.orderId, args.referenceCode, args.subrderId)
-
 
11826
    oprot.writeMessageBegin("getSnapdealOrder", TMessageType.REPLY, seqid)
-
 
11827
    result.write(oprot)
-
 
11828
    oprot.writeMessageEnd()
-
 
11829
    oprot.trans.flush()
-
 
11830
 
-
 
11831
  def process_snapdealOrderExists(self, seqid, iprot, oprot):
-
 
11832
    args = snapdealOrderExists_args()
-
 
11833
    args.read(iprot)
-
 
11834
    iprot.readMessageEnd()
-
 
11835
    result = snapdealOrderExists_result()
-
 
11836
    result.success = self._handler.snapdealOrderExists(args.subOrderId)
-
 
11837
    oprot.writeMessageBegin("snapdealOrderExists", TMessageType.REPLY, seqid)
-
 
11838
    result.write(oprot)
-
 
11839
    oprot.writeMessageEnd()
-
 
11840
    oprot.trans.flush()
-
 
11841
 
11691
 
11842
 
11692
# HELPER FUNCTIONS AND STRUCTURES
11843
# HELPER FUNCTIONS AND STRUCTURES
11693
 
11844
 
11694
class createTransaction_args:
11845
class createTransaction_args:
11695
  """
11846
  """
Line 40387... Line 40538...
40387
      oprot.writeFieldEnd()
40538
      oprot.writeFieldEnd()
40388
    oprot.writeFieldStop()
40539
    oprot.writeFieldStop()
40389
    oprot.writeStructEnd()
40540
    oprot.writeStructEnd()
40390
 
40541
 
40391
  def validate(self):
40542
  def validate(self):
-
 
40543
    return
-
 
40544
 
-
 
40545
 
-
 
40546
  def __repr__(self):
-
 
40547
    L = ['%s=%r' % (key, value)
-
 
40548
      for key, value in self.__dict__.iteritems()]
-
 
40549
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40550
 
-
 
40551
  def __eq__(self, other):
-
 
40552
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40553
 
-
 
40554
  def __ne__(self, other):
-
 
40555
    return not (self == other)
-
 
40556
 
-
 
40557
class createSnapdealOrder_args:
-
 
40558
  """
-
 
40559
  Attributes:
-
 
40560
   - snapdealOrder
-
 
40561
  """
-
 
40562
 
-
 
40563
  thrift_spec = (
-
 
40564
    None, # 0
-
 
40565
    (1, TType.STRUCT, 'snapdealOrder', (SnapdealOrder, SnapdealOrder.thrift_spec), None, ), # 1
-
 
40566
  )
-
 
40567
 
-
 
40568
  def __init__(self, snapdealOrder=None,):
-
 
40569
    self.snapdealOrder = snapdealOrder
-
 
40570
 
-
 
40571
  def read(self, iprot):
-
 
40572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40574
      return
-
 
40575
    iprot.readStructBegin()
-
 
40576
    while True:
-
 
40577
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40578
      if ftype == TType.STOP:
-
 
40579
        break
-
 
40580
      if fid == 1:
-
 
40581
        if ftype == TType.STRUCT:
-
 
40582
          self.snapdealOrder = SnapdealOrder()
-
 
40583
          self.snapdealOrder.read(iprot)
-
 
40584
        else:
-
 
40585
          iprot.skip(ftype)
-
 
40586
      else:
-
 
40587
        iprot.skip(ftype)
-
 
40588
      iprot.readFieldEnd()
-
 
40589
    iprot.readStructEnd()
-
 
40590
 
-
 
40591
  def write(self, oprot):
-
 
40592
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
40593
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
40594
      return
-
 
40595
    oprot.writeStructBegin('createSnapdealOrder_args')
-
 
40596
    if self.snapdealOrder is not None:
-
 
40597
      oprot.writeFieldBegin('snapdealOrder', TType.STRUCT, 1)
-
 
40598
      self.snapdealOrder.write(oprot)
-
 
40599
      oprot.writeFieldEnd()
-
 
40600
    oprot.writeFieldStop()
-
 
40601
    oprot.writeStructEnd()
-
 
40602
 
-
 
40603
  def validate(self):
-
 
40604
    return
-
 
40605
 
-
 
40606
 
-
 
40607
  def __repr__(self):
-
 
40608
    L = ['%s=%r' % (key, value)
-
 
40609
      for key, value in self.__dict__.iteritems()]
-
 
40610
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40611
 
-
 
40612
  def __eq__(self, other):
-
 
40613
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40614
 
-
 
40615
  def __ne__(self, other):
-
 
40616
    return not (self == other)
-
 
40617
 
-
 
40618
class createSnapdealOrder_result:
-
 
40619
 
-
 
40620
  thrift_spec = (
-
 
40621
  )
-
 
40622
 
-
 
40623
  def read(self, iprot):
-
 
40624
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40625
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40626
      return
-
 
40627
    iprot.readStructBegin()
-
 
40628
    while True:
-
 
40629
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40630
      if ftype == TType.STOP:
-
 
40631
        break
-
 
40632
      else:
-
 
40633
        iprot.skip(ftype)
-
 
40634
      iprot.readFieldEnd()
-
 
40635
    iprot.readStructEnd()
-
 
40636
 
-
 
40637
  def write(self, oprot):
-
 
40638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
40639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
40640
      return
-
 
40641
    oprot.writeStructBegin('createSnapdealOrder_result')
-
 
40642
    oprot.writeFieldStop()
-
 
40643
    oprot.writeStructEnd()
-
 
40644
 
-
 
40645
  def validate(self):
-
 
40646
    return
-
 
40647
 
-
 
40648
 
-
 
40649
  def __repr__(self):
-
 
40650
    L = ['%s=%r' % (key, value)
-
 
40651
      for key, value in self.__dict__.iteritems()]
-
 
40652
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40653
 
-
 
40654
  def __eq__(self, other):
-
 
40655
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40656
 
-
 
40657
  def __ne__(self, other):
-
 
40658
    return not (self == other)
-
 
40659
 
-
 
40660
class getSnapdealOrder_args:
-
 
40661
  """
-
 
40662
  Attributes:
-
 
40663
   - orderId
-
 
40664
   - referenceCode
-
 
40665
   - subrderId
-
 
40666
  """
-
 
40667
 
-
 
40668
  thrift_spec = (
-
 
40669
    None, # 0
-
 
40670
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
40671
    (2, TType.STRING, 'referenceCode', None, None, ), # 2
-
 
40672
    (3, TType.I64, 'subrderId', None, None, ), # 3
-
 
40673
  )
-
 
40674
 
-
 
40675
  def __init__(self, orderId=None, referenceCode=None, subrderId=None,):
-
 
40676
    self.orderId = orderId
-
 
40677
    self.referenceCode = referenceCode
-
 
40678
    self.subrderId = subrderId
-
 
40679
 
-
 
40680
  def read(self, iprot):
-
 
40681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40683
      return
-
 
40684
    iprot.readStructBegin()
-
 
40685
    while True:
-
 
40686
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40687
      if ftype == TType.STOP:
-
 
40688
        break
-
 
40689
      if fid == 1:
-
 
40690
        if ftype == TType.I64:
-
 
40691
          self.orderId = iprot.readI64();
-
 
40692
        else:
-
 
40693
          iprot.skip(ftype)
-
 
40694
      elif fid == 2:
-
 
40695
        if ftype == TType.STRING:
-
 
40696
          self.referenceCode = iprot.readString();
-
 
40697
        else:
-
 
40698
          iprot.skip(ftype)
-
 
40699
      elif fid == 3:
-
 
40700
        if ftype == TType.I64:
-
 
40701
          self.subrderId = iprot.readI64();
-
 
40702
        else:
-
 
40703
          iprot.skip(ftype)
-
 
40704
      else:
-
 
40705
        iprot.skip(ftype)
-
 
40706
      iprot.readFieldEnd()
-
 
40707
    iprot.readStructEnd()
-
 
40708
 
-
 
40709
  def write(self, oprot):
-
 
40710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
40711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
40712
      return
-
 
40713
    oprot.writeStructBegin('getSnapdealOrder_args')
-
 
40714
    if self.orderId is not None:
-
 
40715
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
40716
      oprot.writeI64(self.orderId)
-
 
40717
      oprot.writeFieldEnd()
-
 
40718
    if self.referenceCode is not None:
-
 
40719
      oprot.writeFieldBegin('referenceCode', TType.STRING, 2)
-
 
40720
      oprot.writeString(self.referenceCode)
-
 
40721
      oprot.writeFieldEnd()
-
 
40722
    if self.subrderId is not None:
-
 
40723
      oprot.writeFieldBegin('subrderId', TType.I64, 3)
-
 
40724
      oprot.writeI64(self.subrderId)
-
 
40725
      oprot.writeFieldEnd()
-
 
40726
    oprot.writeFieldStop()
-
 
40727
    oprot.writeStructEnd()
-
 
40728
 
-
 
40729
  def validate(self):
-
 
40730
    return
-
 
40731
 
-
 
40732
 
-
 
40733
  def __repr__(self):
-
 
40734
    L = ['%s=%r' % (key, value)
-
 
40735
      for key, value in self.__dict__.iteritems()]
-
 
40736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40737
 
-
 
40738
  def __eq__(self, other):
-
 
40739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40740
 
-
 
40741
  def __ne__(self, other):
-
 
40742
    return not (self == other)
-
 
40743
 
-
 
40744
class getSnapdealOrder_result:
-
 
40745
  """
-
 
40746
  Attributes:
-
 
40747
   - success
-
 
40748
  """
-
 
40749
 
-
 
40750
  thrift_spec = (
-
 
40751
    (0, TType.STRUCT, 'success', (SnapdealOrder, SnapdealOrder.thrift_spec), None, ), # 0
-
 
40752
  )
-
 
40753
 
-
 
40754
  def __init__(self, success=None,):
-
 
40755
    self.success = success
-
 
40756
 
-
 
40757
  def read(self, iprot):
-
 
40758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40760
      return
-
 
40761
    iprot.readStructBegin()
-
 
40762
    while True:
-
 
40763
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40764
      if ftype == TType.STOP:
-
 
40765
        break
-
 
40766
      if fid == 0:
-
 
40767
        if ftype == TType.STRUCT:
-
 
40768
          self.success = SnapdealOrder()
-
 
40769
          self.success.read(iprot)
-
 
40770
        else:
-
 
40771
          iprot.skip(ftype)
-
 
40772
      else:
-
 
40773
        iprot.skip(ftype)
-
 
40774
      iprot.readFieldEnd()
-
 
40775
    iprot.readStructEnd()
-
 
40776
 
-
 
40777
  def write(self, oprot):
-
 
40778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
40779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
40780
      return
-
 
40781
    oprot.writeStructBegin('getSnapdealOrder_result')
-
 
40782
    if self.success is not None:
-
 
40783
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
40784
      self.success.write(oprot)
-
 
40785
      oprot.writeFieldEnd()
-
 
40786
    oprot.writeFieldStop()
-
 
40787
    oprot.writeStructEnd()
-
 
40788
 
-
 
40789
  def validate(self):
-
 
40790
    return
-
 
40791
 
-
 
40792
 
-
 
40793
  def __repr__(self):
-
 
40794
    L = ['%s=%r' % (key, value)
-
 
40795
      for key, value in self.__dict__.iteritems()]
-
 
40796
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40797
 
-
 
40798
  def __eq__(self, other):
-
 
40799
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40800
 
-
 
40801
  def __ne__(self, other):
-
 
40802
    return not (self == other)
-
 
40803
 
-
 
40804
class snapdealOrderExists_args:
-
 
40805
  """
-
 
40806
  Attributes:
-
 
40807
   - subOrderId
-
 
40808
  """
-
 
40809
 
-
 
40810
  thrift_spec = (
-
 
40811
    None, # 0
-
 
40812
    (1, TType.I64, 'subOrderId', None, None, ), # 1
-
 
40813
  )
-
 
40814
 
-
 
40815
  def __init__(self, subOrderId=None,):
-
 
40816
    self.subOrderId = subOrderId
-
 
40817
 
-
 
40818
  def read(self, iprot):
-
 
40819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40821
      return
-
 
40822
    iprot.readStructBegin()
-
 
40823
    while True:
-
 
40824
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40825
      if ftype == TType.STOP:
-
 
40826
        break
-
 
40827
      if fid == 1:
-
 
40828
        if ftype == TType.I64:
-
 
40829
          self.subOrderId = iprot.readI64();
-
 
40830
        else:
-
 
40831
          iprot.skip(ftype)
-
 
40832
      else:
-
 
40833
        iprot.skip(ftype)
-
 
40834
      iprot.readFieldEnd()
-
 
40835
    iprot.readStructEnd()
-
 
40836
 
-
 
40837
  def write(self, oprot):
-
 
40838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
40839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
40840
      return
-
 
40841
    oprot.writeStructBegin('snapdealOrderExists_args')
-
 
40842
    if self.subOrderId is not None:
-
 
40843
      oprot.writeFieldBegin('subOrderId', TType.I64, 1)
-
 
40844
      oprot.writeI64(self.subOrderId)
-
 
40845
      oprot.writeFieldEnd()
-
 
40846
    oprot.writeFieldStop()
-
 
40847
    oprot.writeStructEnd()
-
 
40848
 
-
 
40849
  def validate(self):
-
 
40850
    return
-
 
40851
 
-
 
40852
 
-
 
40853
  def __repr__(self):
-
 
40854
    L = ['%s=%r' % (key, value)
-
 
40855
      for key, value in self.__dict__.iteritems()]
-
 
40856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
40857
 
-
 
40858
  def __eq__(self, other):
-
 
40859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
40860
 
-
 
40861
  def __ne__(self, other):
-
 
40862
    return not (self == other)
-
 
40863
 
-
 
40864
class snapdealOrderExists_result:
-
 
40865
  """
-
 
40866
  Attributes:
-
 
40867
   - success
-
 
40868
  """
-
 
40869
 
-
 
40870
  thrift_spec = (
-
 
40871
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
40872
  )
-
 
40873
 
-
 
40874
  def __init__(self, success=None,):
-
 
40875
    self.success = success
-
 
40876
 
-
 
40877
  def read(self, iprot):
-
 
40878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
40879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
40880
      return
-
 
40881
    iprot.readStructBegin()
-
 
40882
    while True:
-
 
40883
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
40884
      if ftype == TType.STOP:
-
 
40885
        break
-
 
40886
      if fid == 0:
-
 
40887
        if ftype == TType.BOOL:
-
 
40888
          self.success = iprot.readBool();
-
 
40889
        else:
-
 
40890
          iprot.skip(ftype)
-
 
40891
      else:
-
 
40892
        iprot.skip(ftype)
-
 
40893
      iprot.readFieldEnd()
-
 
40894
    iprot.readStructEnd()
-
 
40895
 
-
 
40896
  def write(self, oprot):
-
 
40897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
40898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
40899
      return
-
 
40900
    oprot.writeStructBegin('snapdealOrderExists_result')
-
 
40901
    if self.success is not None:
-
 
40902
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
40903
      oprot.writeBool(self.success)
-
 
40904
      oprot.writeFieldEnd()
-
 
40905
    oprot.writeFieldStop()
-
 
40906
    oprot.writeStructEnd()
-
 
40907
 
-
 
40908
  def validate(self):
40392
    return
40909
    return
40393
 
40910
 
40394
 
40911
 
40395
  def __repr__(self):
40912
  def __repr__(self):
40396
    L = ['%s=%r' % (key, value)
40913
    L = ['%s=%r' % (key, value)