Subversion Repositories SmartDukaan

Rev

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

Rev 7371 Rev 7386
Line 1656... Line 1656...
1656
     - endDate
1656
     - endDate
1657
     - statuses
1657
     - statuses
1658
    """
1658
    """
1659
    pass
1659
    pass
1660
 
1660
 
1661
  def getStoreOrderAdvanceInvoice(self, orderId):
1661
  def getStoreOrderAdvanceInvoice(self, orderId, storeId):
1662
    """
1662
    """
1663
    Parameters:
1663
    Parameters:
1664
     - orderId
1664
     - orderId
-
 
1665
     - storeId
1665
    """
1666
    """
1666
    pass
1667
    pass
1667
 
1668
 
1668
  def addFrc(self, circleId, operatorId, denomination, maxDiscount):
1669
  def addFrc(self, circleId, operatorId, denomination, maxDiscount):
1669
    """
1670
    """
Line 1682... Line 1683...
1682
     - operatorId
1683
     - operatorId
1683
     - series
1684
     - series
1684
    """
1685
    """
1685
    pass
1686
    pass
1686
 
1687
 
-
 
1688
  def saveStoreOrderDetail(self, storeOrderDetail):
-
 
1689
    """
-
 
1690
    Parameters:
-
 
1691
     - storeOrderDetail
-
 
1692
    """
-
 
1693
    pass
-
 
1694
 
-
 
1695
  def getStoreOrderDetail(self, orderId, storeId):
-
 
1696
    """
-
 
1697
    Parameters:
-
 
1698
     - orderId
-
 
1699
     - storeId
-
 
1700
    """
-
 
1701
    pass
-
 
1702
 
-
 
1703
  def getAllEdcBanks(self, ):
-
 
1704
    pass
-
 
1705
 
1687
 
1706
 
1688
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1707
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1689
  def __init__(self, iprot, oprot=None):
1708
  def __init__(self, iprot, oprot=None):
1690
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1709
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1691
 
1710
 
Line 7664... Line 7683...
7664
    self._iprot.readMessageEnd()
7683
    self._iprot.readMessageEnd()
7665
    if result.success is not None:
7684
    if result.success is not None:
7666
      return result.success
7685
      return result.success
7667
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForStore failed: unknown result");
7686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForStore failed: unknown result");
7668
 
7687
 
7669
  def getStoreOrderAdvanceInvoice(self, orderId):
7688
  def getStoreOrderAdvanceInvoice(self, orderId, storeId):
7670
    """
7689
    """
7671
    Parameters:
7690
    Parameters:
7672
     - orderId
7691
     - orderId
-
 
7692
     - storeId
7673
    """
7693
    """
7674
    self.send_getStoreOrderAdvanceInvoice(orderId)
7694
    self.send_getStoreOrderAdvanceInvoice(orderId, storeId)
7675
    return self.recv_getStoreOrderAdvanceInvoice()
7695
    return self.recv_getStoreOrderAdvanceInvoice()
7676
 
7696
 
7677
  def send_getStoreOrderAdvanceInvoice(self, orderId):
7697
  def send_getStoreOrderAdvanceInvoice(self, orderId, storeId):
7678
    self._oprot.writeMessageBegin('getStoreOrderAdvanceInvoice', TMessageType.CALL, self._seqid)
7698
    self._oprot.writeMessageBegin('getStoreOrderAdvanceInvoice', TMessageType.CALL, self._seqid)
7679
    args = getStoreOrderAdvanceInvoice_args()
7699
    args = getStoreOrderAdvanceInvoice_args()
7680
    args.orderId = orderId
7700
    args.orderId = orderId
-
 
7701
    args.storeId = storeId
7681
    args.write(self._oprot)
7702
    args.write(self._oprot)
7682
    self._oprot.writeMessageEnd()
7703
    self._oprot.writeMessageEnd()
7683
    self._oprot.trans.flush()
7704
    self._oprot.trans.flush()
7684
 
7705
 
7685
  def recv_getStoreOrderAdvanceInvoice(self, ):
7706
  def recv_getStoreOrderAdvanceInvoice(self, ):
Line 7764... Line 7785...
7764
    self._iprot.readMessageEnd()
7785
    self._iprot.readMessageEnd()
7765
    if result.success is not None:
7786
    if result.success is not None:
7766
      return result.success
7787
      return result.success
7767
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSeries failed: unknown result");
7788
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSeries failed: unknown result");
7768
 
7789
 
-
 
7790
  def saveStoreOrderDetail(self, storeOrderDetail):
-
 
7791
    """
-
 
7792
    Parameters:
-
 
7793
     - storeOrderDetail
-
 
7794
    """
-
 
7795
    self.send_saveStoreOrderDetail(storeOrderDetail)
-
 
7796
    return self.recv_saveStoreOrderDetail()
-
 
7797
 
-
 
7798
  def send_saveStoreOrderDetail(self, storeOrderDetail):
-
 
7799
    self._oprot.writeMessageBegin('saveStoreOrderDetail', TMessageType.CALL, self._seqid)
-
 
7800
    args = saveStoreOrderDetail_args()
-
 
7801
    args.storeOrderDetail = storeOrderDetail
-
 
7802
    args.write(self._oprot)
-
 
7803
    self._oprot.writeMessageEnd()
-
 
7804
    self._oprot.trans.flush()
-
 
7805
 
-
 
7806
  def recv_saveStoreOrderDetail(self, ):
-
 
7807
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7808
    if mtype == TMessageType.EXCEPTION:
-
 
7809
      x = TApplicationException()
-
 
7810
      x.read(self._iprot)
-
 
7811
      self._iprot.readMessageEnd()
-
 
7812
      raise x
-
 
7813
    result = saveStoreOrderDetail_result()
-
 
7814
    result.read(self._iprot)
-
 
7815
    self._iprot.readMessageEnd()
-
 
7816
    if result.success is not None:
-
 
7817
      return result.success
-
 
7818
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveStoreOrderDetail failed: unknown result");
-
 
7819
 
-
 
7820
  def getStoreOrderDetail(self, orderId, storeId):
-
 
7821
    """
-
 
7822
    Parameters:
-
 
7823
     - orderId
-
 
7824
     - storeId
-
 
7825
    """
-
 
7826
    self.send_getStoreOrderDetail(orderId, storeId)
-
 
7827
    return self.recv_getStoreOrderDetail()
-
 
7828
 
-
 
7829
  def send_getStoreOrderDetail(self, orderId, storeId):
-
 
7830
    self._oprot.writeMessageBegin('getStoreOrderDetail', TMessageType.CALL, self._seqid)
-
 
7831
    args = getStoreOrderDetail_args()
-
 
7832
    args.orderId = orderId
-
 
7833
    args.storeId = storeId
-
 
7834
    args.write(self._oprot)
-
 
7835
    self._oprot.writeMessageEnd()
-
 
7836
    self._oprot.trans.flush()
-
 
7837
 
-
 
7838
  def recv_getStoreOrderDetail(self, ):
-
 
7839
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7840
    if mtype == TMessageType.EXCEPTION:
-
 
7841
      x = TApplicationException()
-
 
7842
      x.read(self._iprot)
-
 
7843
      self._iprot.readMessageEnd()
-
 
7844
      raise x
-
 
7845
    result = getStoreOrderDetail_result()
-
 
7846
    result.read(self._iprot)
-
 
7847
    self._iprot.readMessageEnd()
-
 
7848
    if result.success is not None:
-
 
7849
      return result.success
-
 
7850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStoreOrderDetail failed: unknown result");
-
 
7851
 
-
 
7852
  def getAllEdcBanks(self, ):
-
 
7853
    self.send_getAllEdcBanks()
-
 
7854
    return self.recv_getAllEdcBanks()
-
 
7855
 
-
 
7856
  def send_getAllEdcBanks(self, ):
-
 
7857
    self._oprot.writeMessageBegin('getAllEdcBanks', TMessageType.CALL, self._seqid)
-
 
7858
    args = getAllEdcBanks_args()
-
 
7859
    args.write(self._oprot)
-
 
7860
    self._oprot.writeMessageEnd()
-
 
7861
    self._oprot.trans.flush()
-
 
7862
 
-
 
7863
  def recv_getAllEdcBanks(self, ):
-
 
7864
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7865
    if mtype == TMessageType.EXCEPTION:
-
 
7866
      x = TApplicationException()
-
 
7867
      x.read(self._iprot)
-
 
7868
      self._iprot.readMessageEnd()
-
 
7869
      raise x
-
 
7870
    result = getAllEdcBanks_result()
-
 
7871
    result.read(self._iprot)
-
 
7872
    self._iprot.readMessageEnd()
-
 
7873
    if result.success is not None:
-
 
7874
      return result.success
-
 
7875
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEdcBanks failed: unknown result");
-
 
7876
 
7769
 
7877
 
7770
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7878
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7771
  def __init__(self, handler):
7879
  def __init__(self, handler):
7772
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7880
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7773
    self._processMap["createTransaction"] = Processor.process_createTransaction
7881
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 7947... Line 8055...
7947
    self._processMap["getAmazonOrder"] = Processor.process_getAmazonOrder
8055
    self._processMap["getAmazonOrder"] = Processor.process_getAmazonOrder
7948
    self._processMap["getOrdersForStore"] = Processor.process_getOrdersForStore
8056
    self._processMap["getOrdersForStore"] = Processor.process_getOrdersForStore
7949
    self._processMap["getStoreOrderAdvanceInvoice"] = Processor.process_getStoreOrderAdvanceInvoice
8057
    self._processMap["getStoreOrderAdvanceInvoice"] = Processor.process_getStoreOrderAdvanceInvoice
7950
    self._processMap["addFrc"] = Processor.process_addFrc
8058
    self._processMap["addFrc"] = Processor.process_addFrc
7951
    self._processMap["addSeries"] = Processor.process_addSeries
8059
    self._processMap["addSeries"] = Processor.process_addSeries
-
 
8060
    self._processMap["saveStoreOrderDetail"] = Processor.process_saveStoreOrderDetail
-
 
8061
    self._processMap["getStoreOrderDetail"] = Processor.process_getStoreOrderDetail
-
 
8062
    self._processMap["getAllEdcBanks"] = Processor.process_getAllEdcBanks
7952
 
8063
 
7953
  def process(self, iprot, oprot):
8064
  def process(self, iprot, oprot):
7954
    (name, type, seqid) = iprot.readMessageBegin()
8065
    (name, type, seqid) = iprot.readMessageBegin()
7955
    if name not in self._processMap:
8066
    if name not in self._processMap:
7956
      iprot.skip(TType.STRUCT)
8067
      iprot.skip(TType.STRUCT)
Line 10198... Line 10309...
10198
  def process_getStoreOrderAdvanceInvoice(self, seqid, iprot, oprot):
10309
  def process_getStoreOrderAdvanceInvoice(self, seqid, iprot, oprot):
10199
    args = getStoreOrderAdvanceInvoice_args()
10310
    args = getStoreOrderAdvanceInvoice_args()
10200
    args.read(iprot)
10311
    args.read(iprot)
10201
    iprot.readMessageEnd()
10312
    iprot.readMessageEnd()
10202
    result = getStoreOrderAdvanceInvoice_result()
10313
    result = getStoreOrderAdvanceInvoice_result()
10203
    result.success = self._handler.getStoreOrderAdvanceInvoice(args.orderId)
10314
    result.success = self._handler.getStoreOrderAdvanceInvoice(args.orderId, args.storeId)
10204
    oprot.writeMessageBegin("getStoreOrderAdvanceInvoice", TMessageType.REPLY, seqid)
10315
    oprot.writeMessageBegin("getStoreOrderAdvanceInvoice", TMessageType.REPLY, seqid)
10205
    result.write(oprot)
10316
    result.write(oprot)
10206
    oprot.writeMessageEnd()
10317
    oprot.writeMessageEnd()
10207
    oprot.trans.flush()
10318
    oprot.trans.flush()
10208
 
10319
 
Line 10226... Line 10337...
10226
    oprot.writeMessageBegin("addSeries", TMessageType.REPLY, seqid)
10337
    oprot.writeMessageBegin("addSeries", TMessageType.REPLY, seqid)
10227
    result.write(oprot)
10338
    result.write(oprot)
10228
    oprot.writeMessageEnd()
10339
    oprot.writeMessageEnd()
10229
    oprot.trans.flush()
10340
    oprot.trans.flush()
10230
 
10341
 
-
 
10342
  def process_saveStoreOrderDetail(self, seqid, iprot, oprot):
-
 
10343
    args = saveStoreOrderDetail_args()
-
 
10344
    args.read(iprot)
-
 
10345
    iprot.readMessageEnd()
-
 
10346
    result = saveStoreOrderDetail_result()
-
 
10347
    result.success = self._handler.saveStoreOrderDetail(args.storeOrderDetail)
-
 
10348
    oprot.writeMessageBegin("saveStoreOrderDetail", TMessageType.REPLY, seqid)
-
 
10349
    result.write(oprot)
-
 
10350
    oprot.writeMessageEnd()
-
 
10351
    oprot.trans.flush()
-
 
10352
 
-
 
10353
  def process_getStoreOrderDetail(self, seqid, iprot, oprot):
-
 
10354
    args = getStoreOrderDetail_args()
-
 
10355
    args.read(iprot)
-
 
10356
    iprot.readMessageEnd()
-
 
10357
    result = getStoreOrderDetail_result()
-
 
10358
    result.success = self._handler.getStoreOrderDetail(args.orderId, args.storeId)
-
 
10359
    oprot.writeMessageBegin("getStoreOrderDetail", TMessageType.REPLY, seqid)
-
 
10360
    result.write(oprot)
-
 
10361
    oprot.writeMessageEnd()
-
 
10362
    oprot.trans.flush()
-
 
10363
 
-
 
10364
  def process_getAllEdcBanks(self, seqid, iprot, oprot):
-
 
10365
    args = getAllEdcBanks_args()
-
 
10366
    args.read(iprot)
-
 
10367
    iprot.readMessageEnd()
-
 
10368
    result = getAllEdcBanks_result()
-
 
10369
    result.success = self._handler.getAllEdcBanks()
-
 
10370
    oprot.writeMessageBegin("getAllEdcBanks", TMessageType.REPLY, seqid)
-
 
10371
    result.write(oprot)
-
 
10372
    oprot.writeMessageEnd()
-
 
10373
    oprot.trans.flush()
-
 
10374
 
10231
 
10375
 
10232
# HELPER FUNCTIONS AND STRUCTURES
10376
# HELPER FUNCTIONS AND STRUCTURES
10233
 
10377
 
10234
class createTransaction_args:
10378
class createTransaction_args:
10235
  """
10379
  """
Line 34770... Line 34914...
34770
 
34914
 
34771
class getStoreOrderAdvanceInvoice_args:
34915
class getStoreOrderAdvanceInvoice_args:
34772
  """
34916
  """
34773
  Attributes:
34917
  Attributes:
34774
   - orderId
34918
   - orderId
-
 
34919
   - storeId
34775
  """
34920
  """
34776
 
34921
 
34777
  thrift_spec = (
34922
  thrift_spec = (
34778
    None, # 0
34923
    None, # 0
34779
    (1, TType.I64, 'orderId', None, None, ), # 1
34924
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
34925
    (2, TType.I64, 'storeId', None, None, ), # 2
34780
  )
34926
  )
34781
 
34927
 
34782
  def __init__(self, orderId=None,):
34928
  def __init__(self, orderId=None, storeId=None,):
34783
    self.orderId = orderId
34929
    self.orderId = orderId
-
 
34930
    self.storeId = storeId
34784
 
34931
 
34785
  def read(self, iprot):
34932
  def read(self, iprot):
34786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
34933
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
34787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
34934
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
34788
      return
34935
      return
Line 34794... Line 34941...
34794
      if fid == 1:
34941
      if fid == 1:
34795
        if ftype == TType.I64:
34942
        if ftype == TType.I64:
34796
          self.orderId = iprot.readI64();
34943
          self.orderId = iprot.readI64();
34797
        else:
34944
        else:
34798
          iprot.skip(ftype)
34945
          iprot.skip(ftype)
-
 
34946
      elif fid == 2:
-
 
34947
        if ftype == TType.I64:
-
 
34948
          self.storeId = iprot.readI64();
-
 
34949
        else:
-
 
34950
          iprot.skip(ftype)
34799
      else:
34951
      else:
34800
        iprot.skip(ftype)
34952
        iprot.skip(ftype)
34801
      iprot.readFieldEnd()
34953
      iprot.readFieldEnd()
34802
    iprot.readStructEnd()
34954
    iprot.readStructEnd()
34803
 
34955
 
Line 34808... Line 34960...
34808
    oprot.writeStructBegin('getStoreOrderAdvanceInvoice_args')
34960
    oprot.writeStructBegin('getStoreOrderAdvanceInvoice_args')
34809
    if self.orderId is not None:
34961
    if self.orderId is not None:
34810
      oprot.writeFieldBegin('orderId', TType.I64, 1)
34962
      oprot.writeFieldBegin('orderId', TType.I64, 1)
34811
      oprot.writeI64(self.orderId)
34963
      oprot.writeI64(self.orderId)
34812
      oprot.writeFieldEnd()
34964
      oprot.writeFieldEnd()
-
 
34965
    if self.storeId is not None:
-
 
34966
      oprot.writeFieldBegin('storeId', TType.I64, 2)
-
 
34967
      oprot.writeI64(self.storeId)
-
 
34968
      oprot.writeFieldEnd()
34813
    oprot.writeFieldStop()
34969
    oprot.writeFieldStop()
34814
    oprot.writeStructEnd()
34970
    oprot.writeStructEnd()
34815
 
34971
 
34816
  def validate(self):
34972
  def validate(self):
34817
    return
34973
    return
Line 35169... Line 35325...
35169
      oprot.writeFieldEnd()
35325
      oprot.writeFieldEnd()
35170
    oprot.writeFieldStop()
35326
    oprot.writeFieldStop()
35171
    oprot.writeStructEnd()
35327
    oprot.writeStructEnd()
35172
 
35328
 
35173
  def validate(self):
35329
  def validate(self):
-
 
35330
    return
-
 
35331
 
-
 
35332
 
-
 
35333
  def __repr__(self):
-
 
35334
    L = ['%s=%r' % (key, value)
-
 
35335
      for key, value in self.__dict__.iteritems()]
-
 
35336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
35337
 
-
 
35338
  def __eq__(self, other):
-
 
35339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
35340
 
-
 
35341
  def __ne__(self, other):
-
 
35342
    return not (self == other)
-
 
35343
 
-
 
35344
class saveStoreOrderDetail_args:
-
 
35345
  """
-
 
35346
  Attributes:
-
 
35347
   - storeOrderDetail
-
 
35348
  """
-
 
35349
 
-
 
35350
  thrift_spec = (
-
 
35351
    None, # 0
-
 
35352
    (1, TType.STRUCT, 'storeOrderDetail', (StoreOrderDetail, StoreOrderDetail.thrift_spec), None, ), # 1
-
 
35353
  )
-
 
35354
 
-
 
35355
  def __init__(self, storeOrderDetail=None,):
-
 
35356
    self.storeOrderDetail = storeOrderDetail
-
 
35357
 
-
 
35358
  def read(self, iprot):
-
 
35359
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
35360
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
35361
      return
-
 
35362
    iprot.readStructBegin()
-
 
35363
    while True:
-
 
35364
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
35365
      if ftype == TType.STOP:
-
 
35366
        break
-
 
35367
      if fid == 1:
-
 
35368
        if ftype == TType.STRUCT:
-
 
35369
          self.storeOrderDetail = StoreOrderDetail()
-
 
35370
          self.storeOrderDetail.read(iprot)
-
 
35371
        else:
-
 
35372
          iprot.skip(ftype)
-
 
35373
      else:
-
 
35374
        iprot.skip(ftype)
-
 
35375
      iprot.readFieldEnd()
-
 
35376
    iprot.readStructEnd()
-
 
35377
 
-
 
35378
  def write(self, oprot):
-
 
35379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
35380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
35381
      return
-
 
35382
    oprot.writeStructBegin('saveStoreOrderDetail_args')
-
 
35383
    if self.storeOrderDetail is not None:
-
 
35384
      oprot.writeFieldBegin('storeOrderDetail', TType.STRUCT, 1)
-
 
35385
      self.storeOrderDetail.write(oprot)
-
 
35386
      oprot.writeFieldEnd()
-
 
35387
    oprot.writeFieldStop()
-
 
35388
    oprot.writeStructEnd()
-
 
35389
 
-
 
35390
  def validate(self):
-
 
35391
    return
-
 
35392
 
-
 
35393
 
-
 
35394
  def __repr__(self):
-
 
35395
    L = ['%s=%r' % (key, value)
-
 
35396
      for key, value in self.__dict__.iteritems()]
-
 
35397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
35398
 
-
 
35399
  def __eq__(self, other):
-
 
35400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
35401
 
-
 
35402
  def __ne__(self, other):
-
 
35403
    return not (self == other)
-
 
35404
 
-
 
35405
class saveStoreOrderDetail_result:
-
 
35406
  """
-
 
35407
  Attributes:
-
 
35408
   - success
-
 
35409
  """
-
 
35410
 
-
 
35411
  thrift_spec = (
-
 
35412
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
35413
  )
-
 
35414
 
-
 
35415
  def __init__(self, success=None,):
-
 
35416
    self.success = success
-
 
35417
 
-
 
35418
  def read(self, iprot):
-
 
35419
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
35420
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
35421
      return
-
 
35422
    iprot.readStructBegin()
-
 
35423
    while True:
-
 
35424
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
35425
      if ftype == TType.STOP:
-
 
35426
        break
-
 
35427
      if fid == 0:
-
 
35428
        if ftype == TType.BOOL:
-
 
35429
          self.success = iprot.readBool();
-
 
35430
        else:
-
 
35431
          iprot.skip(ftype)
-
 
35432
      else:
-
 
35433
        iprot.skip(ftype)
-
 
35434
      iprot.readFieldEnd()
-
 
35435
    iprot.readStructEnd()
-
 
35436
 
-
 
35437
  def write(self, oprot):
-
 
35438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
35439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
35440
      return
-
 
35441
    oprot.writeStructBegin('saveStoreOrderDetail_result')
-
 
35442
    if self.success is not None:
-
 
35443
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
35444
      oprot.writeBool(self.success)
-
 
35445
      oprot.writeFieldEnd()
-
 
35446
    oprot.writeFieldStop()
-
 
35447
    oprot.writeStructEnd()
-
 
35448
 
-
 
35449
  def validate(self):
-
 
35450
    return
-
 
35451
 
-
 
35452
 
-
 
35453
  def __repr__(self):
-
 
35454
    L = ['%s=%r' % (key, value)
-
 
35455
      for key, value in self.__dict__.iteritems()]
-
 
35456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
35457
 
-
 
35458
  def __eq__(self, other):
-
 
35459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
35460
 
-
 
35461
  def __ne__(self, other):
-
 
35462
    return not (self == other)
-
 
35463
 
-
 
35464
class getStoreOrderDetail_args:
-
 
35465
  """
-
 
35466
  Attributes:
-
 
35467
   - orderId
-
 
35468
   - storeId
-
 
35469
  """
-
 
35470
 
-
 
35471
  thrift_spec = (
-
 
35472
    None, # 0
-
 
35473
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
35474
    (2, TType.I64, 'storeId', None, None, ), # 2
-
 
35475
  )
-
 
35476
 
-
 
35477
  def __init__(self, orderId=None, storeId=None,):
-
 
35478
    self.orderId = orderId
-
 
35479
    self.storeId = storeId
-
 
35480
 
-
 
35481
  def read(self, iprot):
-
 
35482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
35483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
35484
      return
-
 
35485
    iprot.readStructBegin()
-
 
35486
    while True:
-
 
35487
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
35488
      if ftype == TType.STOP:
-
 
35489
        break
-
 
35490
      if fid == 1:
-
 
35491
        if ftype == TType.I64:
-
 
35492
          self.orderId = iprot.readI64();
-
 
35493
        else:
-
 
35494
          iprot.skip(ftype)
-
 
35495
      elif fid == 2:
-
 
35496
        if ftype == TType.I64:
-
 
35497
          self.storeId = iprot.readI64();
-
 
35498
        else:
-
 
35499
          iprot.skip(ftype)
-
 
35500
      else:
-
 
35501
        iprot.skip(ftype)
-
 
35502
      iprot.readFieldEnd()
-
 
35503
    iprot.readStructEnd()
-
 
35504
 
-
 
35505
  def write(self, oprot):
-
 
35506
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
35507
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
35508
      return
-
 
35509
    oprot.writeStructBegin('getStoreOrderDetail_args')
-
 
35510
    if self.orderId is not None:
-
 
35511
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
35512
      oprot.writeI64(self.orderId)
-
 
35513
      oprot.writeFieldEnd()
-
 
35514
    if self.storeId is not None:
-
 
35515
      oprot.writeFieldBegin('storeId', TType.I64, 2)
-
 
35516
      oprot.writeI64(self.storeId)
-
 
35517
      oprot.writeFieldEnd()
-
 
35518
    oprot.writeFieldStop()
-
 
35519
    oprot.writeStructEnd()
-
 
35520
 
-
 
35521
  def validate(self):
-
 
35522
    return
-
 
35523
 
-
 
35524
 
-
 
35525
  def __repr__(self):
-
 
35526
    L = ['%s=%r' % (key, value)
-
 
35527
      for key, value in self.__dict__.iteritems()]
-
 
35528
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
35529
 
-
 
35530
  def __eq__(self, other):
-
 
35531
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
35532
 
-
 
35533
  def __ne__(self, other):
-
 
35534
    return not (self == other)
-
 
35535
 
-
 
35536
class getStoreOrderDetail_result:
-
 
35537
  """
-
 
35538
  Attributes:
-
 
35539
   - success
-
 
35540
  """
-
 
35541
 
-
 
35542
  thrift_spec = (
-
 
35543
    (0, TType.STRUCT, 'success', (StoreOrderDetail, StoreOrderDetail.thrift_spec), None, ), # 0
-
 
35544
  )
-
 
35545
 
-
 
35546
  def __init__(self, success=None,):
-
 
35547
    self.success = success
-
 
35548
 
-
 
35549
  def read(self, iprot):
-
 
35550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
35551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
35552
      return
-
 
35553
    iprot.readStructBegin()
-
 
35554
    while True:
-
 
35555
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
35556
      if ftype == TType.STOP:
-
 
35557
        break
-
 
35558
      if fid == 0:
-
 
35559
        if ftype == TType.STRUCT:
-
 
35560
          self.success = StoreOrderDetail()
-
 
35561
          self.success.read(iprot)
-
 
35562
        else:
-
 
35563
          iprot.skip(ftype)
-
 
35564
      else:
-
 
35565
        iprot.skip(ftype)
-
 
35566
      iprot.readFieldEnd()
-
 
35567
    iprot.readStructEnd()
-
 
35568
 
-
 
35569
  def write(self, oprot):
-
 
35570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
35571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
35572
      return
-
 
35573
    oprot.writeStructBegin('getStoreOrderDetail_result')
-
 
35574
    if self.success is not None:
-
 
35575
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
35576
      self.success.write(oprot)
-
 
35577
      oprot.writeFieldEnd()
-
 
35578
    oprot.writeFieldStop()
-
 
35579
    oprot.writeStructEnd()
-
 
35580
 
-
 
35581
  def validate(self):
-
 
35582
    return
-
 
35583
 
-
 
35584
 
-
 
35585
  def __repr__(self):
-
 
35586
    L = ['%s=%r' % (key, value)
-
 
35587
      for key, value in self.__dict__.iteritems()]
-
 
35588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
35589
 
-
 
35590
  def __eq__(self, other):
-
 
35591
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
35592
 
-
 
35593
  def __ne__(self, other):
-
 
35594
    return not (self == other)
-
 
35595
 
-
 
35596
class getAllEdcBanks_args:
-
 
35597
 
-
 
35598
  thrift_spec = (
-
 
35599
  )
-
 
35600
 
-
 
35601
  def read(self, iprot):
-
 
35602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
35603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
35604
      return
-
 
35605
    iprot.readStructBegin()
-
 
35606
    while True:
-
 
35607
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
35608
      if ftype == TType.STOP:
-
 
35609
        break
-
 
35610
      else:
-
 
35611
        iprot.skip(ftype)
-
 
35612
      iprot.readFieldEnd()
-
 
35613
    iprot.readStructEnd()
-
 
35614
 
-
 
35615
  def write(self, oprot):
-
 
35616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
35617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
35618
      return
-
 
35619
    oprot.writeStructBegin('getAllEdcBanks_args')
-
 
35620
    oprot.writeFieldStop()
-
 
35621
    oprot.writeStructEnd()
-
 
35622
 
-
 
35623
  def validate(self):
-
 
35624
    return
-
 
35625
 
-
 
35626
 
-
 
35627
  def __repr__(self):
-
 
35628
    L = ['%s=%r' % (key, value)
-
 
35629
      for key, value in self.__dict__.iteritems()]
-
 
35630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
35631
 
-
 
35632
  def __eq__(self, other):
-
 
35633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
35634
 
-
 
35635
  def __ne__(self, other):
-
 
35636
    return not (self == other)
-
 
35637
 
-
 
35638
class getAllEdcBanks_result:
-
 
35639
  """
-
 
35640
  Attributes:
-
 
35641
   - success
-
 
35642
  """
-
 
35643
 
-
 
35644
  thrift_spec = (
-
 
35645
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
-
 
35646
  )
-
 
35647
 
-
 
35648
  def __init__(self, success=None,):
-
 
35649
    self.success = success
-
 
35650
 
-
 
35651
  def read(self, iprot):
-
 
35652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
35653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
35654
      return
-
 
35655
    iprot.readStructBegin()
-
 
35656
    while True:
-
 
35657
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
35658
      if ftype == TType.STOP:
-
 
35659
        break
-
 
35660
      if fid == 0:
-
 
35661
        if ftype == TType.LIST:
-
 
35662
          self.success = []
-
 
35663
          (_etype810, _size807) = iprot.readListBegin()
-
 
35664
          for _i811 in xrange(_size807):
-
 
35665
            _elem812 = iprot.readString();
-
 
35666
            self.success.append(_elem812)
-
 
35667
          iprot.readListEnd()
-
 
35668
        else:
-
 
35669
          iprot.skip(ftype)
-
 
35670
      else:
-
 
35671
        iprot.skip(ftype)
-
 
35672
      iprot.readFieldEnd()
-
 
35673
    iprot.readStructEnd()
-
 
35674
 
-
 
35675
  def write(self, oprot):
-
 
35676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
35677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
35678
      return
-
 
35679
    oprot.writeStructBegin('getAllEdcBanks_result')
-
 
35680
    if self.success is not None:
-
 
35681
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
35682
      oprot.writeListBegin(TType.STRING, len(self.success))
-
 
35683
      for iter813 in self.success:
-
 
35684
        oprot.writeString(iter813)
-
 
35685
      oprot.writeListEnd()
-
 
35686
      oprot.writeFieldEnd()
-
 
35687
    oprot.writeFieldStop()
-
 
35688
    oprot.writeStructEnd()
-
 
35689
 
-
 
35690
  def validate(self):
35174
    return
35691
    return
35175
 
35692
 
35176
 
35693
 
35177
  def __repr__(self):
35694
  def __repr__(self):
35178
    L = ['%s=%r' % (key, value)
35695
    L = ['%s=%r' % (key, value)