Subversion Repositories SmartDukaan

Rev

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

Rev 12396 Rev 12589
Line 2065... Line 2065...
2065
    Parameters:
2065
    Parameters:
2066
     - insertionTimestamp
2066
     - insertionTimestamp
2067
    """
2067
    """
2068
    pass
2068
    pass
2069
 
2069
 
-
 
2070
  def getVerificationPendingOrdersFK(self, ):
-
 
2071
    pass
-
 
2072
 
2070
 
2073
 
2071
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2074
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2072
  def __init__(self, iprot, oprot=None):
2075
  def __init__(self, iprot, oprot=None):
2073
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2076
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2074
 
2077
 
Line 9733... Line 9736...
9733
      return result.success
9736
      return result.success
9734
    if result.ex is not None:
9737
    if result.ex is not None:
9735
      raise result.ex
9738
      raise result.ex
9736
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTotalSaleReturnsFbaSkusCurentTime failed: unknown result");
9739
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTotalSaleReturnsFbaSkusCurentTime failed: unknown result");
9737
 
9740
 
-
 
9741
  def getVerificationPendingOrdersFK(self, ):
-
 
9742
    self.send_getVerificationPendingOrdersFK()
-
 
9743
    return self.recv_getVerificationPendingOrdersFK()
-
 
9744
 
-
 
9745
  def send_getVerificationPendingOrdersFK(self, ):
-
 
9746
    self._oprot.writeMessageBegin('getVerificationPendingOrdersFK', TMessageType.CALL, self._seqid)
-
 
9747
    args = getVerificationPendingOrdersFK_args()
-
 
9748
    args.write(self._oprot)
-
 
9749
    self._oprot.writeMessageEnd()
-
 
9750
    self._oprot.trans.flush()
-
 
9751
 
-
 
9752
  def recv_getVerificationPendingOrdersFK(self, ):
-
 
9753
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
9754
    if mtype == TMessageType.EXCEPTION:
-
 
9755
      x = TApplicationException()
-
 
9756
      x.read(self._iprot)
-
 
9757
      self._iprot.readMessageEnd()
-
 
9758
      raise x
-
 
9759
    result = getVerificationPendingOrdersFK_result()
-
 
9760
    result.read(self._iprot)
-
 
9761
    self._iprot.readMessageEnd()
-
 
9762
    if result.success is not None:
-
 
9763
      return result.success
-
 
9764
    if result.ex is not None:
-
 
9765
      raise result.ex
-
 
9766
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVerificationPendingOrdersFK failed: unknown result");
-
 
9767
 
9738
 
9768
 
9739
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
9769
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
9740
  def __init__(self, handler):
9770
  def __init__(self, handler):
9741
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
9771
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
9742
    self._processMap["createTransaction"] = Processor.process_createTransaction
9772
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 9967... Line 9997...
9967
    self._processMap["getAmazonFbaSalesLatestSnapshotForItemLocationWise"] = Processor.process_getAmazonFbaSalesLatestSnapshotForItemLocationWise
9997
    self._processMap["getAmazonFbaSalesLatestSnapshotForItemLocationWise"] = Processor.process_getAmazonFbaSalesLatestSnapshotForItemLocationWise
9968
    self._processMap["changeEasyshipMfnOrderTxnStatus"] = Processor.process_changeEasyshipMfnOrderTxnStatus
9998
    self._processMap["changeEasyshipMfnOrderTxnStatus"] = Processor.process_changeEasyshipMfnOrderTxnStatus
9969
    self._processMap["updateAmazonFbaOrdersReturns"] = Processor.process_updateAmazonFbaOrdersReturns
9999
    self._processMap["updateAmazonFbaOrdersReturns"] = Processor.process_updateAmazonFbaOrdersReturns
9970
    self._processMap["getAllAmazonFbaOrderReturnsByCurrentTime"] = Processor.process_getAllAmazonFbaOrderReturnsByCurrentTime
10000
    self._processMap["getAllAmazonFbaOrderReturnsByCurrentTime"] = Processor.process_getAllAmazonFbaOrderReturnsByCurrentTime
9971
    self._processMap["getTotalSaleReturnsFbaSkusCurentTime"] = Processor.process_getTotalSaleReturnsFbaSkusCurentTime
10001
    self._processMap["getTotalSaleReturnsFbaSkusCurentTime"] = Processor.process_getTotalSaleReturnsFbaSkusCurentTime
-
 
10002
    self._processMap["getVerificationPendingOrdersFK"] = Processor.process_getVerificationPendingOrdersFK
9972
 
10003
 
9973
  def process(self, iprot, oprot):
10004
  def process(self, iprot, oprot):
9974
    (name, type, seqid) = iprot.readMessageBegin()
10005
    (name, type, seqid) = iprot.readMessageBegin()
9975
    if name not in self._processMap:
10006
    if name not in self._processMap:
9976
      iprot.skip(TType.STRUCT)
10007
      iprot.skip(TType.STRUCT)
Line 12834... Line 12865...
12834
    oprot.writeMessageBegin("getTotalSaleReturnsFbaSkusCurentTime", TMessageType.REPLY, seqid)
12865
    oprot.writeMessageBegin("getTotalSaleReturnsFbaSkusCurentTime", TMessageType.REPLY, seqid)
12835
    result.write(oprot)
12866
    result.write(oprot)
12836
    oprot.writeMessageEnd()
12867
    oprot.writeMessageEnd()
12837
    oprot.trans.flush()
12868
    oprot.trans.flush()
12838
 
12869
 
-
 
12870
  def process_getVerificationPendingOrdersFK(self, seqid, iprot, oprot):
-
 
12871
    args = getVerificationPendingOrdersFK_args()
-
 
12872
    args.read(iprot)
-
 
12873
    iprot.readMessageEnd()
-
 
12874
    result = getVerificationPendingOrdersFK_result()
-
 
12875
    try:
-
 
12876
      result.success = self._handler.getVerificationPendingOrdersFK()
-
 
12877
    except TransactionServiceException, ex:
-
 
12878
      result.ex = ex
-
 
12879
    oprot.writeMessageBegin("getVerificationPendingOrdersFK", TMessageType.REPLY, seqid)
-
 
12880
    result.write(oprot)
-
 
12881
    oprot.writeMessageEnd()
-
 
12882
    oprot.trans.flush()
-
 
12883
 
12839
 
12884
 
12840
# HELPER FUNCTIONS AND STRUCTURES
12885
# HELPER FUNCTIONS AND STRUCTURES
12841
 
12886
 
12842
class createTransaction_args:
12887
class createTransaction_args:
12843
  """
12888
  """
Line 44455... Line 44500...
44455
      oprot.writeFieldEnd()
44500
      oprot.writeFieldEnd()
44456
    if self.ex is not None:
44501
    if self.ex is not None:
44457
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
44502
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
44458
      self.ex.write(oprot)
44503
      self.ex.write(oprot)
44459
      oprot.writeFieldEnd()
44504
      oprot.writeFieldEnd()
-
 
44505
    oprot.writeFieldStop()
-
 
44506
    oprot.writeStructEnd()
-
 
44507
 
-
 
44508
  def validate(self):
-
 
44509
    return
-
 
44510
 
-
 
44511
 
-
 
44512
  def __repr__(self):
-
 
44513
    L = ['%s=%r' % (key, value)
-
 
44514
      for key, value in self.__dict__.iteritems()]
-
 
44515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
44516
 
-
 
44517
  def __eq__(self, other):
-
 
44518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
44519
 
-
 
44520
  def __ne__(self, other):
-
 
44521
    return not (self == other)
-
 
44522
 
-
 
44523
class getVerificationPendingOrdersFK_args:
-
 
44524
 
-
 
44525
  thrift_spec = (
-
 
44526
  )
-
 
44527
 
-
 
44528
  def read(self, iprot):
-
 
44529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
44530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
44531
      return
-
 
44532
    iprot.readStructBegin()
-
 
44533
    while True:
-
 
44534
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
44535
      if ftype == TType.STOP:
-
 
44536
        break
-
 
44537
      else:
-
 
44538
        iprot.skip(ftype)
-
 
44539
      iprot.readFieldEnd()
-
 
44540
    iprot.readStructEnd()
-
 
44541
 
-
 
44542
  def write(self, oprot):
-
 
44543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
44544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
44545
      return
-
 
44546
    oprot.writeStructBegin('getVerificationPendingOrdersFK_args')
-
 
44547
    oprot.writeFieldStop()
-
 
44548
    oprot.writeStructEnd()
-
 
44549
 
-
 
44550
  def validate(self):
-
 
44551
    return
-
 
44552
 
-
 
44553
 
-
 
44554
  def __repr__(self):
-
 
44555
    L = ['%s=%r' % (key, value)
-
 
44556
      for key, value in self.__dict__.iteritems()]
-
 
44557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
44558
 
-
 
44559
  def __eq__(self, other):
-
 
44560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
44561
 
-
 
44562
  def __ne__(self, other):
-
 
44563
    return not (self == other)
-
 
44564
 
-
 
44565
class getVerificationPendingOrdersFK_result:
-
 
44566
  """
-
 
44567
  Attributes:
-
 
44568
   - success
-
 
44569
   - ex
-
 
44570
  """
-
 
44571
 
-
 
44572
  thrift_spec = (
-
 
44573
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartOrder, FlipkartOrder.thrift_spec)), None, ), # 0
-
 
44574
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
44575
  )
-
 
44576
 
-
 
44577
  def __init__(self, success=None, ex=None,):
-
 
44578
    self.success = success
-
 
44579
    self.ex = ex
-
 
44580
 
-
 
44581
  def read(self, iprot):
-
 
44582
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
44583
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
44584
      return
-
 
44585
    iprot.readStructBegin()
-
 
44586
    while True:
-
 
44587
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
44588
      if ftype == TType.STOP:
-
 
44589
        break
-
 
44590
      if fid == 0:
-
 
44591
        if ftype == TType.LIST:
-
 
44592
          self.success = []
-
 
44593
          (_etype1020, _size1017) = iprot.readListBegin()
-
 
44594
          for _i1021 in xrange(_size1017):
-
 
44595
            _elem1022 = FlipkartOrder()
-
 
44596
            _elem1022.read(iprot)
-
 
44597
            self.success.append(_elem1022)
-
 
44598
          iprot.readListEnd()
-
 
44599
        else:
-
 
44600
          iprot.skip(ftype)
-
 
44601
      elif fid == 1:
-
 
44602
        if ftype == TType.STRUCT:
-
 
44603
          self.ex = TransactionServiceException()
-
 
44604
          self.ex.read(iprot)
-
 
44605
        else:
-
 
44606
          iprot.skip(ftype)
-
 
44607
      else:
-
 
44608
        iprot.skip(ftype)
-
 
44609
      iprot.readFieldEnd()
-
 
44610
    iprot.readStructEnd()
-
 
44611
 
-
 
44612
  def write(self, oprot):
-
 
44613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
44614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
44615
      return
-
 
44616
    oprot.writeStructBegin('getVerificationPendingOrdersFK_result')
-
 
44617
    if self.success is not None:
-
 
44618
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
44619
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
44620
      for iter1023 in self.success:
-
 
44621
        iter1023.write(oprot)
-
 
44622
      oprot.writeListEnd()
-
 
44623
      oprot.writeFieldEnd()
-
 
44624
    if self.ex is not None:
-
 
44625
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
44626
      self.ex.write(oprot)
-
 
44627
      oprot.writeFieldEnd()
44460
    oprot.writeFieldStop()
44628
    oprot.writeFieldStop()
44461
    oprot.writeStructEnd()
44629
    oprot.writeStructEnd()
44462
 
44630
 
44463
  def validate(self):
44631
  def validate(self):
44464
    return
44632
    return