Subversion Repositories SmartDukaan

Rev

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

Rev 12589 Rev 12614
Line 1738... Line 1738...
1738
     - startDate
1738
     - startDate
1739
     - endDate
1739
     - endDate
1740
    """
1740
    """
1741
    pass
1741
    pass
1742
 
1742
 
1743
  def getAmazonOrdersToAcknowledge(self, ):
1743
  def getAmazonOrdersToAcknowledge(self, source):
-
 
1744
    """
-
 
1745
    Parameters:
-
 
1746
     - source
-
 
1747
    """
1744
    pass
1748
    pass
1745
 
1749
 
1746
  def changeAmazonOrderStatus(self, amazonOrderCode, status):
1750
  def changeAmazonOrderStatus(self, amazonOrderCode, status):
1747
    """
1751
    """
1748
    Parameters:
1752
    Parameters:
Line 2068... Line 2072...
2068
    pass
2072
    pass
2069
 
2073
 
2070
  def getVerificationPendingOrdersFK(self, ):
2074
  def getVerificationPendingOrdersFK(self, ):
2071
    pass
2075
    pass
2072
 
2076
 
-
 
2077
  def getFAOrderByFkOrderId(self, fkOrderId):
-
 
2078
    """
-
 
2079
    Parameters:
-
 
2080
     - fkOrderId
-
 
2081
    """
-
 
2082
    pass
-
 
2083
 
-
 
2084
  def getAllFAOrdersList(self, ):
-
 
2085
    pass
-
 
2086
 
-
 
2087
  def addUpdateFaOrdersBulk(self, faOrdersList):
-
 
2088
    """
-
 
2089
    Parameters:
-
 
2090
     - faOrdersList
-
 
2091
    """
-
 
2092
    pass
-
 
2093
 
2073
 
2094
 
2074
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2095
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2075
  def __init__(self, iprot, oprot=None):
2096
  def __init__(self, iprot, oprot=None):
2076
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2097
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2077
 
2098
 
Line 8382... Line 8403...
8382
    self._iprot.readMessageEnd()
8403
    self._iprot.readMessageEnd()
8383
    if result.success is not None:
8404
    if result.success is not None:
8384
      return result.success
8405
      return result.success
8385
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCollectionsForStore failed: unknown result");
8406
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCollectionsForStore failed: unknown result");
8386
 
8407
 
8387
  def getAmazonOrdersToAcknowledge(self, ):
8408
  def getAmazonOrdersToAcknowledge(self, source):
-
 
8409
    """
-
 
8410
    Parameters:
-
 
8411
     - source
-
 
8412
    """
8388
    self.send_getAmazonOrdersToAcknowledge()
8413
    self.send_getAmazonOrdersToAcknowledge(source)
8389
    return self.recv_getAmazonOrdersToAcknowledge()
8414
    return self.recv_getAmazonOrdersToAcknowledge()
8390
 
8415
 
8391
  def send_getAmazonOrdersToAcknowledge(self, ):
8416
  def send_getAmazonOrdersToAcknowledge(self, source):
8392
    self._oprot.writeMessageBegin('getAmazonOrdersToAcknowledge', TMessageType.CALL, self._seqid)
8417
    self._oprot.writeMessageBegin('getAmazonOrdersToAcknowledge', TMessageType.CALL, self._seqid)
8393
    args = getAmazonOrdersToAcknowledge_args()
8418
    args = getAmazonOrdersToAcknowledge_args()
-
 
8419
    args.source = source
8394
    args.write(self._oprot)
8420
    args.write(self._oprot)
8395
    self._oprot.writeMessageEnd()
8421
    self._oprot.writeMessageEnd()
8396
    self._oprot.trans.flush()
8422
    self._oprot.trans.flush()
8397
 
8423
 
8398
  def recv_getAmazonOrdersToAcknowledge(self, ):
8424
  def recv_getAmazonOrdersToAcknowledge(self, ):
Line 9763... Line 9789...
9763
      return result.success
9789
      return result.success
9764
    if result.ex is not None:
9790
    if result.ex is not None:
9765
      raise result.ex
9791
      raise result.ex
9766
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVerificationPendingOrdersFK failed: unknown result");
9792
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVerificationPendingOrdersFK failed: unknown result");
9767
 
9793
 
-
 
9794
  def getFAOrderByFkOrderId(self, fkOrderId):
-
 
9795
    """
-
 
9796
    Parameters:
-
 
9797
     - fkOrderId
-
 
9798
    """
-
 
9799
    self.send_getFAOrderByFkOrderId(fkOrderId)
-
 
9800
    return self.recv_getFAOrderByFkOrderId()
-
 
9801
 
-
 
9802
  def send_getFAOrderByFkOrderId(self, fkOrderId):
-
 
9803
    self._oprot.writeMessageBegin('getFAOrderByFkOrderId', TMessageType.CALL, self._seqid)
-
 
9804
    args = getFAOrderByFkOrderId_args()
-
 
9805
    args.fkOrderId = fkOrderId
-
 
9806
    args.write(self._oprot)
-
 
9807
    self._oprot.writeMessageEnd()
-
 
9808
    self._oprot.trans.flush()
-
 
9809
 
-
 
9810
  def recv_getFAOrderByFkOrderId(self, ):
-
 
9811
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
9812
    if mtype == TMessageType.EXCEPTION:
-
 
9813
      x = TApplicationException()
-
 
9814
      x.read(self._iprot)
-
 
9815
      self._iprot.readMessageEnd()
-
 
9816
      raise x
-
 
9817
    result = getFAOrderByFkOrderId_result()
-
 
9818
    result.read(self._iprot)
-
 
9819
    self._iprot.readMessageEnd()
-
 
9820
    if result.success is not None:
-
 
9821
      return result.success
-
 
9822
    if result.ex is not None:
-
 
9823
      raise result.ex
-
 
9824
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFAOrderByFkOrderId failed: unknown result");
-
 
9825
 
-
 
9826
  def getAllFAOrdersList(self, ):
-
 
9827
    self.send_getAllFAOrdersList()
-
 
9828
    return self.recv_getAllFAOrdersList()
-
 
9829
 
-
 
9830
  def send_getAllFAOrdersList(self, ):
-
 
9831
    self._oprot.writeMessageBegin('getAllFAOrdersList', TMessageType.CALL, self._seqid)
-
 
9832
    args = getAllFAOrdersList_args()
-
 
9833
    args.write(self._oprot)
-
 
9834
    self._oprot.writeMessageEnd()
-
 
9835
    self._oprot.trans.flush()
-
 
9836
 
-
 
9837
  def recv_getAllFAOrdersList(self, ):
-
 
9838
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
9839
    if mtype == TMessageType.EXCEPTION:
-
 
9840
      x = TApplicationException()
-
 
9841
      x.read(self._iprot)
-
 
9842
      self._iprot.readMessageEnd()
-
 
9843
      raise x
-
 
9844
    result = getAllFAOrdersList_result()
-
 
9845
    result.read(self._iprot)
-
 
9846
    self._iprot.readMessageEnd()
-
 
9847
    if result.success is not None:
-
 
9848
      return result.success
-
 
9849
    if result.ex is not None:
-
 
9850
      raise result.ex
-
 
9851
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFAOrdersList failed: unknown result");
-
 
9852
 
-
 
9853
  def addUpdateFaOrdersBulk(self, faOrdersList):
-
 
9854
    """
-
 
9855
    Parameters:
-
 
9856
     - faOrdersList
-
 
9857
    """
-
 
9858
    self.send_addUpdateFaOrdersBulk(faOrdersList)
-
 
9859
    self.recv_addUpdateFaOrdersBulk()
-
 
9860
 
-
 
9861
  def send_addUpdateFaOrdersBulk(self, faOrdersList):
-
 
9862
    self._oprot.writeMessageBegin('addUpdateFaOrdersBulk', TMessageType.CALL, self._seqid)
-
 
9863
    args = addUpdateFaOrdersBulk_args()
-
 
9864
    args.faOrdersList = faOrdersList
-
 
9865
    args.write(self._oprot)
-
 
9866
    self._oprot.writeMessageEnd()
-
 
9867
    self._oprot.trans.flush()
-
 
9868
 
-
 
9869
  def recv_addUpdateFaOrdersBulk(self, ):
-
 
9870
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
9871
    if mtype == TMessageType.EXCEPTION:
-
 
9872
      x = TApplicationException()
-
 
9873
      x.read(self._iprot)
-
 
9874
      self._iprot.readMessageEnd()
-
 
9875
      raise x
-
 
9876
    result = addUpdateFaOrdersBulk_result()
-
 
9877
    result.read(self._iprot)
-
 
9878
    self._iprot.readMessageEnd()
-
 
9879
    if result.ex is not None:
-
 
9880
      raise result.ex
-
 
9881
    return
-
 
9882
 
9768
 
9883
 
9769
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
9884
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
9770
  def __init__(self, handler):
9885
  def __init__(self, handler):
9771
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
9886
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
9772
    self._processMap["createTransaction"] = Processor.process_createTransaction
9887
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 9998... Line 10113...
9998
    self._processMap["changeEasyshipMfnOrderTxnStatus"] = Processor.process_changeEasyshipMfnOrderTxnStatus
10113
    self._processMap["changeEasyshipMfnOrderTxnStatus"] = Processor.process_changeEasyshipMfnOrderTxnStatus
9999
    self._processMap["updateAmazonFbaOrdersReturns"] = Processor.process_updateAmazonFbaOrdersReturns
10114
    self._processMap["updateAmazonFbaOrdersReturns"] = Processor.process_updateAmazonFbaOrdersReturns
10000
    self._processMap["getAllAmazonFbaOrderReturnsByCurrentTime"] = Processor.process_getAllAmazonFbaOrderReturnsByCurrentTime
10115
    self._processMap["getAllAmazonFbaOrderReturnsByCurrentTime"] = Processor.process_getAllAmazonFbaOrderReturnsByCurrentTime
10001
    self._processMap["getTotalSaleReturnsFbaSkusCurentTime"] = Processor.process_getTotalSaleReturnsFbaSkusCurentTime
10116
    self._processMap["getTotalSaleReturnsFbaSkusCurentTime"] = Processor.process_getTotalSaleReturnsFbaSkusCurentTime
10002
    self._processMap["getVerificationPendingOrdersFK"] = Processor.process_getVerificationPendingOrdersFK
10117
    self._processMap["getVerificationPendingOrdersFK"] = Processor.process_getVerificationPendingOrdersFK
-
 
10118
    self._processMap["getFAOrderByFkOrderId"] = Processor.process_getFAOrderByFkOrderId
-
 
10119
    self._processMap["getAllFAOrdersList"] = Processor.process_getAllFAOrdersList
-
 
10120
    self._processMap["addUpdateFaOrdersBulk"] = Processor.process_addUpdateFaOrdersBulk
10003
 
10121
 
10004
  def process(self, iprot, oprot):
10122
  def process(self, iprot, oprot):
10005
    (name, type, seqid) = iprot.readMessageBegin()
10123
    (name, type, seqid) = iprot.readMessageBegin()
10006
    if name not in self._processMap:
10124
    if name not in self._processMap:
10007
      iprot.skip(TType.STRUCT)
10125
      iprot.skip(TType.STRUCT)
Line 12362... Line 12480...
12362
  def process_getAmazonOrdersToAcknowledge(self, seqid, iprot, oprot):
12480
  def process_getAmazonOrdersToAcknowledge(self, seqid, iprot, oprot):
12363
    args = getAmazonOrdersToAcknowledge_args()
12481
    args = getAmazonOrdersToAcknowledge_args()
12364
    args.read(iprot)
12482
    args.read(iprot)
12365
    iprot.readMessageEnd()
12483
    iprot.readMessageEnd()
12366
    result = getAmazonOrdersToAcknowledge_result()
12484
    result = getAmazonOrdersToAcknowledge_result()
12367
    result.success = self._handler.getAmazonOrdersToAcknowledge()
12485
    result.success = self._handler.getAmazonOrdersToAcknowledge(args.source)
12368
    oprot.writeMessageBegin("getAmazonOrdersToAcknowledge", TMessageType.REPLY, seqid)
12486
    oprot.writeMessageBegin("getAmazonOrdersToAcknowledge", TMessageType.REPLY, seqid)
12369
    result.write(oprot)
12487
    result.write(oprot)
12370
    oprot.writeMessageEnd()
12488
    oprot.writeMessageEnd()
12371
    oprot.trans.flush()
12489
    oprot.trans.flush()
12372
 
12490
 
Line 12879... Line 12997...
12879
    oprot.writeMessageBegin("getVerificationPendingOrdersFK", TMessageType.REPLY, seqid)
12997
    oprot.writeMessageBegin("getVerificationPendingOrdersFK", TMessageType.REPLY, seqid)
12880
    result.write(oprot)
12998
    result.write(oprot)
12881
    oprot.writeMessageEnd()
12999
    oprot.writeMessageEnd()
12882
    oprot.trans.flush()
13000
    oprot.trans.flush()
12883
 
13001
 
-
 
13002
  def process_getFAOrderByFkOrderId(self, seqid, iprot, oprot):
-
 
13003
    args = getFAOrderByFkOrderId_args()
-
 
13004
    args.read(iprot)
-
 
13005
    iprot.readMessageEnd()
-
 
13006
    result = getFAOrderByFkOrderId_result()
-
 
13007
    try:
-
 
13008
      result.success = self._handler.getFAOrderByFkOrderId(args.fkOrderId)
-
 
13009
    except TransactionServiceException, ex:
-
 
13010
      result.ex = ex
-
 
13011
    oprot.writeMessageBegin("getFAOrderByFkOrderId", TMessageType.REPLY, seqid)
-
 
13012
    result.write(oprot)
-
 
13013
    oprot.writeMessageEnd()
-
 
13014
    oprot.trans.flush()
-
 
13015
 
-
 
13016
  def process_getAllFAOrdersList(self, seqid, iprot, oprot):
-
 
13017
    args = getAllFAOrdersList_args()
-
 
13018
    args.read(iprot)
-
 
13019
    iprot.readMessageEnd()
-
 
13020
    result = getAllFAOrdersList_result()
-
 
13021
    try:
-
 
13022
      result.success = self._handler.getAllFAOrdersList()
-
 
13023
    except TransactionServiceException, ex:
-
 
13024
      result.ex = ex
-
 
13025
    oprot.writeMessageBegin("getAllFAOrdersList", TMessageType.REPLY, seqid)
-
 
13026
    result.write(oprot)
-
 
13027
    oprot.writeMessageEnd()
-
 
13028
    oprot.trans.flush()
-
 
13029
 
-
 
13030
  def process_addUpdateFaOrdersBulk(self, seqid, iprot, oprot):
-
 
13031
    args = addUpdateFaOrdersBulk_args()
-
 
13032
    args.read(iprot)
-
 
13033
    iprot.readMessageEnd()
-
 
13034
    result = addUpdateFaOrdersBulk_result()
-
 
13035
    try:
-
 
13036
      self._handler.addUpdateFaOrdersBulk(args.faOrdersList)
-
 
13037
    except TransactionServiceException, ex:
-
 
13038
      result.ex = ex
-
 
13039
    oprot.writeMessageBegin("addUpdateFaOrdersBulk", TMessageType.REPLY, seqid)
-
 
13040
    result.write(oprot)
-
 
13041
    oprot.writeMessageEnd()
-
 
13042
    oprot.trans.flush()
-
 
13043
 
12884
 
13044
 
12885
# HELPER FUNCTIONS AND STRUCTURES
13045
# HELPER FUNCTIONS AND STRUCTURES
12886
 
13046
 
12887
class createTransaction_args:
13047
class createTransaction_args:
12888
  """
13048
  """
Line 38856... Line 39016...
38856
 
39016
 
38857
  def __ne__(self, other):
39017
  def __ne__(self, other):
38858
    return not (self == other)
39018
    return not (self == other)
38859
 
39019
 
38860
class getAmazonOrdersToAcknowledge_args:
39020
class getAmazonOrdersToAcknowledge_args:
-
 
39021
  """
-
 
39022
  Attributes:
-
 
39023
   - source
-
 
39024
  """
38861
 
39025
 
38862
  thrift_spec = (
39026
  thrift_spec = (
-
 
39027
    None, # 0
-
 
39028
    (1, TType.I32, 'source', None, None, ), # 1
38863
  )
39029
  )
38864
 
39030
 
-
 
39031
  def __init__(self, source=None,):
-
 
39032
    self.source = source
-
 
39033
 
38865
  def read(self, iprot):
39034
  def read(self, iprot):
38866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
39035
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
38867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
39036
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
38868
      return
39037
      return
38869
    iprot.readStructBegin()
39038
    iprot.readStructBegin()
38870
    while True:
39039
    while True:
38871
      (fname, ftype, fid) = iprot.readFieldBegin()
39040
      (fname, ftype, fid) = iprot.readFieldBegin()
38872
      if ftype == TType.STOP:
39041
      if ftype == TType.STOP:
38873
        break
39042
        break
-
 
39043
      if fid == 1:
-
 
39044
        if ftype == TType.I32:
-
 
39045
          self.source = iprot.readI32();
-
 
39046
        else:
-
 
39047
          iprot.skip(ftype)
38874
      else:
39048
      else:
38875
        iprot.skip(ftype)
39049
        iprot.skip(ftype)
38876
      iprot.readFieldEnd()
39050
      iprot.readFieldEnd()
38877
    iprot.readStructEnd()
39051
    iprot.readStructEnd()
38878
 
39052
 
38879
  def write(self, oprot):
39053
  def write(self, oprot):
38880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
39054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
38881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
39055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
38882
      return
39056
      return
38883
    oprot.writeStructBegin('getAmazonOrdersToAcknowledge_args')
39057
    oprot.writeStructBegin('getAmazonOrdersToAcknowledge_args')
-
 
39058
    if self.source is not None:
-
 
39059
      oprot.writeFieldBegin('source', TType.I32, 1)
-
 
39060
      oprot.writeI32(self.source)
-
 
39061
      oprot.writeFieldEnd()
38884
    oprot.writeFieldStop()
39062
    oprot.writeFieldStop()
38885
    oprot.writeStructEnd()
39063
    oprot.writeStructEnd()
38886
 
39064
 
38887
  def validate(self):
39065
  def validate(self):
38888
    return
39066
    return
Line 44624... Line 44802...
44624
    if self.ex is not None:
44802
    if self.ex is not None:
44625
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
44803
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
44626
      self.ex.write(oprot)
44804
      self.ex.write(oprot)
44627
      oprot.writeFieldEnd()
44805
      oprot.writeFieldEnd()
44628
    oprot.writeFieldStop()
44806
    oprot.writeFieldStop()
-
 
44807
    oprot.writeStructEnd()
-
 
44808
 
-
 
44809
  def validate(self):
-
 
44810
    return
-
 
44811
 
-
 
44812
 
-
 
44813
  def __repr__(self):
-
 
44814
    L = ['%s=%r' % (key, value)
-
 
44815
      for key, value in self.__dict__.iteritems()]
-
 
44816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
44817
 
-
 
44818
  def __eq__(self, other):
-
 
44819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
44820
 
-
 
44821
  def __ne__(self, other):
-
 
44822
    return not (self == other)
-
 
44823
 
-
 
44824
class getFAOrderByFkOrderId_args:
-
 
44825
  """
-
 
44826
  Attributes:
-
 
44827
   - fkOrderId
-
 
44828
  """
-
 
44829
 
-
 
44830
  thrift_spec = (
-
 
44831
    None, # 0
-
 
44832
    (1, TType.STRING, 'fkOrderId', None, None, ), # 1
-
 
44833
  )
-
 
44834
 
-
 
44835
  def __init__(self, fkOrderId=None,):
-
 
44836
    self.fkOrderId = fkOrderId
-
 
44837
 
-
 
44838
  def read(self, iprot):
-
 
44839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
44840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
44841
      return
-
 
44842
    iprot.readStructBegin()
-
 
44843
    while True:
-
 
44844
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
44845
      if ftype == TType.STOP:
-
 
44846
        break
-
 
44847
      if fid == 1:
-
 
44848
        if ftype == TType.STRING:
-
 
44849
          self.fkOrderId = iprot.readString();
-
 
44850
        else:
-
 
44851
          iprot.skip(ftype)
-
 
44852
      else:
-
 
44853
        iprot.skip(ftype)
-
 
44854
      iprot.readFieldEnd()
-
 
44855
    iprot.readStructEnd()
-
 
44856
 
-
 
44857
  def write(self, oprot):
-
 
44858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
44859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
44860
      return
-
 
44861
    oprot.writeStructBegin('getFAOrderByFkOrderId_args')
-
 
44862
    if self.fkOrderId is not None:
-
 
44863
      oprot.writeFieldBegin('fkOrderId', TType.STRING, 1)
-
 
44864
      oprot.writeString(self.fkOrderId)
-
 
44865
      oprot.writeFieldEnd()
-
 
44866
    oprot.writeFieldStop()
-
 
44867
    oprot.writeStructEnd()
-
 
44868
 
-
 
44869
  def validate(self):
-
 
44870
    return
-
 
44871
 
-
 
44872
 
-
 
44873
  def __repr__(self):
-
 
44874
    L = ['%s=%r' % (key, value)
-
 
44875
      for key, value in self.__dict__.iteritems()]
-
 
44876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
44877
 
-
 
44878
  def __eq__(self, other):
-
 
44879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
44880
 
-
 
44881
  def __ne__(self, other):
-
 
44882
    return not (self == other)
-
 
44883
 
-
 
44884
class getFAOrderByFkOrderId_result:
-
 
44885
  """
-
 
44886
  Attributes:
-
 
44887
   - success
-
 
44888
   - ex
-
 
44889
  """
-
 
44890
 
-
 
44891
  thrift_spec = (
-
 
44892
    (0, TType.STRUCT, 'success', (FlipkartAdvantageOrder, FlipkartAdvantageOrder.thrift_spec), None, ), # 0
-
 
44893
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
44894
  )
-
 
44895
 
-
 
44896
  def __init__(self, success=None, ex=None,):
-
 
44897
    self.success = success
-
 
44898
    self.ex = ex
-
 
44899
 
-
 
44900
  def read(self, iprot):
-
 
44901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
44902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
44903
      return
-
 
44904
    iprot.readStructBegin()
-
 
44905
    while True:
-
 
44906
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
44907
      if ftype == TType.STOP:
-
 
44908
        break
-
 
44909
      if fid == 0:
-
 
44910
        if ftype == TType.STRUCT:
-
 
44911
          self.success = FlipkartAdvantageOrder()
-
 
44912
          self.success.read(iprot)
-
 
44913
        else:
-
 
44914
          iprot.skip(ftype)
-
 
44915
      elif fid == 1:
-
 
44916
        if ftype == TType.STRUCT:
-
 
44917
          self.ex = TransactionServiceException()
-
 
44918
          self.ex.read(iprot)
-
 
44919
        else:
-
 
44920
          iprot.skip(ftype)
-
 
44921
      else:
-
 
44922
        iprot.skip(ftype)
-
 
44923
      iprot.readFieldEnd()
-
 
44924
    iprot.readStructEnd()
-
 
44925
 
-
 
44926
  def write(self, oprot):
-
 
44927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
44928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
44929
      return
-
 
44930
    oprot.writeStructBegin('getFAOrderByFkOrderId_result')
-
 
44931
    if self.success is not None:
-
 
44932
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
44933
      self.success.write(oprot)
-
 
44934
      oprot.writeFieldEnd()
-
 
44935
    if self.ex is not None:
-
 
44936
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
44937
      self.ex.write(oprot)
-
 
44938
      oprot.writeFieldEnd()
-
 
44939
    oprot.writeFieldStop()
-
 
44940
    oprot.writeStructEnd()
-
 
44941
 
-
 
44942
  def validate(self):
-
 
44943
    return
-
 
44944
 
-
 
44945
 
-
 
44946
  def __repr__(self):
-
 
44947
    L = ['%s=%r' % (key, value)
-
 
44948
      for key, value in self.__dict__.iteritems()]
-
 
44949
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
44950
 
-
 
44951
  def __eq__(self, other):
-
 
44952
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
44953
 
-
 
44954
  def __ne__(self, other):
-
 
44955
    return not (self == other)
-
 
44956
 
-
 
44957
class getAllFAOrdersList_args:
-
 
44958
 
-
 
44959
  thrift_spec = (
-
 
44960
  )
-
 
44961
 
-
 
44962
  def read(self, iprot):
-
 
44963
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
44964
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
44965
      return
-
 
44966
    iprot.readStructBegin()
-
 
44967
    while True:
-
 
44968
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
44969
      if ftype == TType.STOP:
-
 
44970
        break
-
 
44971
      else:
-
 
44972
        iprot.skip(ftype)
-
 
44973
      iprot.readFieldEnd()
-
 
44974
    iprot.readStructEnd()
-
 
44975
 
-
 
44976
  def write(self, oprot):
-
 
44977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
44978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
44979
      return
-
 
44980
    oprot.writeStructBegin('getAllFAOrdersList_args')
-
 
44981
    oprot.writeFieldStop()
-
 
44982
    oprot.writeStructEnd()
-
 
44983
 
-
 
44984
  def validate(self):
-
 
44985
    return
-
 
44986
 
-
 
44987
 
-
 
44988
  def __repr__(self):
-
 
44989
    L = ['%s=%r' % (key, value)
-
 
44990
      for key, value in self.__dict__.iteritems()]
-
 
44991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
44992
 
-
 
44993
  def __eq__(self, other):
-
 
44994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
44995
 
-
 
44996
  def __ne__(self, other):
-
 
44997
    return not (self == other)
-
 
44998
 
-
 
44999
class getAllFAOrdersList_result:
-
 
45000
  """
-
 
45001
  Attributes:
-
 
45002
   - success
-
 
45003
   - ex
-
 
45004
  """
-
 
45005
 
-
 
45006
  thrift_spec = (
-
 
45007
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartAdvantageOrder, FlipkartAdvantageOrder.thrift_spec)), None, ), # 0
-
 
45008
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
45009
  )
-
 
45010
 
-
 
45011
  def __init__(self, success=None, ex=None,):
-
 
45012
    self.success = success
-
 
45013
    self.ex = ex
-
 
45014
 
-
 
45015
  def read(self, iprot):
-
 
45016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
45017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
45018
      return
-
 
45019
    iprot.readStructBegin()
-
 
45020
    while True:
-
 
45021
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
45022
      if ftype == TType.STOP:
-
 
45023
        break
-
 
45024
      if fid == 0:
-
 
45025
        if ftype == TType.LIST:
-
 
45026
          self.success = []
-
 
45027
          (_etype1027, _size1024) = iprot.readListBegin()
-
 
45028
          for _i1028 in xrange(_size1024):
-
 
45029
            _elem1029 = FlipkartAdvantageOrder()
-
 
45030
            _elem1029.read(iprot)
-
 
45031
            self.success.append(_elem1029)
-
 
45032
          iprot.readListEnd()
-
 
45033
        else:
-
 
45034
          iprot.skip(ftype)
-
 
45035
      elif fid == 1:
-
 
45036
        if ftype == TType.STRUCT:
-
 
45037
          self.ex = TransactionServiceException()
-
 
45038
          self.ex.read(iprot)
-
 
45039
        else:
-
 
45040
          iprot.skip(ftype)
-
 
45041
      else:
-
 
45042
        iprot.skip(ftype)
-
 
45043
      iprot.readFieldEnd()
-
 
45044
    iprot.readStructEnd()
-
 
45045
 
-
 
45046
  def write(self, oprot):
-
 
45047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
45048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
45049
      return
-
 
45050
    oprot.writeStructBegin('getAllFAOrdersList_result')
-
 
45051
    if self.success is not None:
-
 
45052
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
45053
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
45054
      for iter1030 in self.success:
-
 
45055
        iter1030.write(oprot)
-
 
45056
      oprot.writeListEnd()
-
 
45057
      oprot.writeFieldEnd()
-
 
45058
    if self.ex is not None:
-
 
45059
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
45060
      self.ex.write(oprot)
-
 
45061
      oprot.writeFieldEnd()
-
 
45062
    oprot.writeFieldStop()
-
 
45063
    oprot.writeStructEnd()
-
 
45064
 
-
 
45065
  def validate(self):
-
 
45066
    return
-
 
45067
 
-
 
45068
 
-
 
45069
  def __repr__(self):
-
 
45070
    L = ['%s=%r' % (key, value)
-
 
45071
      for key, value in self.__dict__.iteritems()]
-
 
45072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
45073
 
-
 
45074
  def __eq__(self, other):
-
 
45075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
45076
 
-
 
45077
  def __ne__(self, other):
-
 
45078
    return not (self == other)
-
 
45079
 
-
 
45080
class addUpdateFaOrdersBulk_args:
-
 
45081
  """
-
 
45082
  Attributes:
-
 
45083
   - faOrdersList
-
 
45084
  """
-
 
45085
 
-
 
45086
  thrift_spec = None
-
 
45087
  def __init__(self, faOrdersList=None,):
-
 
45088
    self.faOrdersList = faOrdersList
-
 
45089
 
-
 
45090
  def read(self, iprot):
-
 
45091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
45092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
45093
      return
-
 
45094
    iprot.readStructBegin()
-
 
45095
    while True:
-
 
45096
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
45097
      if ftype == TType.STOP:
-
 
45098
        break
-
 
45099
      if fid == -1:
-
 
45100
        if ftype == TType.LIST:
-
 
45101
          self.faOrdersList = []
-
 
45102
          (_etype1034, _size1031) = iprot.readListBegin()
-
 
45103
          for _i1035 in xrange(_size1031):
-
 
45104
            _elem1036 = FlipkartAdvantageOrder()
-
 
45105
            _elem1036.read(iprot)
-
 
45106
            self.faOrdersList.append(_elem1036)
-
 
45107
          iprot.readListEnd()
-
 
45108
        else:
-
 
45109
          iprot.skip(ftype)
-
 
45110
      else:
-
 
45111
        iprot.skip(ftype)
-
 
45112
      iprot.readFieldEnd()
-
 
45113
    iprot.readStructEnd()
-
 
45114
 
-
 
45115
  def write(self, oprot):
-
 
45116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
45117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
45118
      return
-
 
45119
    oprot.writeStructBegin('addUpdateFaOrdersBulk_args')
-
 
45120
    if self.faOrdersList is not None:
-
 
45121
      oprot.writeFieldBegin('faOrdersList', TType.LIST, -1)
-
 
45122
      oprot.writeListBegin(TType.STRUCT, len(self.faOrdersList))
-
 
45123
      for iter1037 in self.faOrdersList:
-
 
45124
        iter1037.write(oprot)
-
 
45125
      oprot.writeListEnd()
-
 
45126
      oprot.writeFieldEnd()
-
 
45127
    oprot.writeFieldStop()
-
 
45128
    oprot.writeStructEnd()
-
 
45129
 
-
 
45130
  def validate(self):
-
 
45131
    return
-
 
45132
 
-
 
45133
 
-
 
45134
  def __repr__(self):
-
 
45135
    L = ['%s=%r' % (key, value)
-
 
45136
      for key, value in self.__dict__.iteritems()]
-
 
45137
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
45138
 
-
 
45139
  def __eq__(self, other):
-
 
45140
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
45141
 
-
 
45142
  def __ne__(self, other):
-
 
45143
    return not (self == other)
-
 
45144
 
-
 
45145
class addUpdateFaOrdersBulk_result:
-
 
45146
  """
-
 
45147
  Attributes:
-
 
45148
   - ex
-
 
45149
  """
-
 
45150
 
-
 
45151
  thrift_spec = (
-
 
45152
    None, # 0
-
 
45153
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
45154
  )
-
 
45155
 
-
 
45156
  def __init__(self, ex=None,):
-
 
45157
    self.ex = ex
-
 
45158
 
-
 
45159
  def read(self, iprot):
-
 
45160
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
45161
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
45162
      return
-
 
45163
    iprot.readStructBegin()
-
 
45164
    while True:
-
 
45165
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
45166
      if ftype == TType.STOP:
-
 
45167
        break
-
 
45168
      if fid == 1:
-
 
45169
        if ftype == TType.STRUCT:
-
 
45170
          self.ex = TransactionServiceException()
-
 
45171
          self.ex.read(iprot)
-
 
45172
        else:
-
 
45173
          iprot.skip(ftype)
-
 
45174
      else:
-
 
45175
        iprot.skip(ftype)
-
 
45176
      iprot.readFieldEnd()
-
 
45177
    iprot.readStructEnd()
-
 
45178
 
-
 
45179
  def write(self, oprot):
-
 
45180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
45181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
45182
      return
-
 
45183
    oprot.writeStructBegin('addUpdateFaOrdersBulk_result')
-
 
45184
    if self.ex is not None:
-
 
45185
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
45186
      self.ex.write(oprot)
-
 
45187
      oprot.writeFieldEnd()
-
 
45188
    oprot.writeFieldStop()
44629
    oprot.writeStructEnd()
45189
    oprot.writeStructEnd()
44630
 
45190
 
44631
  def validate(self):
45191
  def validate(self):
44632
    return
45192
    return
44633
 
45193