Subversion Repositories SmartDukaan

Rev

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

Rev 11896 Rev 12103
Line 2022... Line 2022...
2022
    Parameters:
2022
    Parameters:
2023
     - transactionId
2023
     - transactionId
2024
    """
2024
    """
2025
    pass
2025
    pass
2026
 
2026
 
-
 
2027
  def changeEasyshipMfnOrderTxnStatus(self, transactionId, status, description, pickUp, orderType, source, shipTimestamp, deliveryTimeStamp):
-
 
2028
    """
-
 
2029
    Parameters:
-
 
2030
     - transactionId
-
 
2031
     - status
-
 
2032
     - description
-
 
2033
     - pickUp
-
 
2034
     - orderType
-
 
2035
     - source
-
 
2036
     - shipTimestamp
-
 
2037
     - deliveryTimeStamp
-
 
2038
    """
-
 
2039
    pass
-
 
2040
 
-
 
2041
  def updateAmazonFbaOrdersReturns(self, fbaOrderReturns):
-
 
2042
    """
-
 
2043
    Parameters:
-
 
2044
     - fbaOrderReturns
-
 
2045
    """
-
 
2046
    pass
-
 
2047
 
-
 
2048
  def getAllAmazonFbaOrderReturnsByCurrentTime(self, insertionTimestamp):
-
 
2049
    """
-
 
2050
    Parameters:
-
 
2051
     - insertionTimestamp
-
 
2052
    """
-
 
2053
    pass
-
 
2054
 
-
 
2055
  def getTotalSaleReturnsFbaSkusCurentTime(self, insertionTimestamp):
-
 
2056
    """
-
 
2057
    Parameters:
-
 
2058
     - insertionTimestamp
-
 
2059
    """
-
 
2060
    pass
-
 
2061
 
2027
 
2062
 
2028
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2063
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2029
  def __init__(self, iprot, oprot=None):
2064
  def __init__(self, iprot, oprot=None):
2030
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2065
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2031
 
2066
 
Line 9518... Line 9553...
9518
    self._iprot.readMessageEnd()
9553
    self._iprot.readMessageEnd()
9519
    if result.success is not None:
9554
    if result.success is not None:
9520
      return result.success
9555
      return result.success
9521
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isPrivateDealTransaction failed: unknown result");
9556
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isPrivateDealTransaction failed: unknown result");
9522
 
9557
 
-
 
9558
  def changeEasyshipMfnOrderTxnStatus(self, transactionId, status, description, pickUp, orderType, source, shipTimestamp, deliveryTimeStamp):
-
 
9559
    """
-
 
9560
    Parameters:
-
 
9561
     - transactionId
-
 
9562
     - status
-
 
9563
     - description
-
 
9564
     - pickUp
-
 
9565
     - orderType
-
 
9566
     - source
-
 
9567
     - shipTimestamp
-
 
9568
     - deliveryTimeStamp
-
 
9569
    """
-
 
9570
    self.send_changeEasyshipMfnOrderTxnStatus(transactionId, status, description, pickUp, orderType, source, shipTimestamp, deliveryTimeStamp)
-
 
9571
    return self.recv_changeEasyshipMfnOrderTxnStatus()
-
 
9572
 
-
 
9573
  def send_changeEasyshipMfnOrderTxnStatus(self, transactionId, status, description, pickUp, orderType, source, shipTimestamp, deliveryTimeStamp):
-
 
9574
    self._oprot.writeMessageBegin('changeEasyshipMfnOrderTxnStatus', TMessageType.CALL, self._seqid)
-
 
9575
    args = changeEasyshipMfnOrderTxnStatus_args()
-
 
9576
    args.transactionId = transactionId
-
 
9577
    args.status = status
-
 
9578
    args.description = description
-
 
9579
    args.pickUp = pickUp
-
 
9580
    args.orderType = orderType
-
 
9581
    args.source = source
-
 
9582
    args.shipTimestamp = shipTimestamp
-
 
9583
    args.deliveryTimeStamp = deliveryTimeStamp
-
 
9584
    args.write(self._oprot)
-
 
9585
    self._oprot.writeMessageEnd()
-
 
9586
    self._oprot.trans.flush()
-
 
9587
 
-
 
9588
  def recv_changeEasyshipMfnOrderTxnStatus(self, ):
-
 
9589
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
9590
    if mtype == TMessageType.EXCEPTION:
-
 
9591
      x = TApplicationException()
-
 
9592
      x.read(self._iprot)
-
 
9593
      self._iprot.readMessageEnd()
-
 
9594
      raise x
-
 
9595
    result = changeEasyshipMfnOrderTxnStatus_result()
-
 
9596
    result.read(self._iprot)
-
 
9597
    self._iprot.readMessageEnd()
-
 
9598
    if result.success is not None:
-
 
9599
      return result.success
-
 
9600
    if result.ex is not None:
-
 
9601
      raise result.ex
-
 
9602
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeEasyshipMfnOrderTxnStatus failed: unknown result");
-
 
9603
 
-
 
9604
  def updateAmazonFbaOrdersReturns(self, fbaOrderReturns):
-
 
9605
    """
-
 
9606
    Parameters:
-
 
9607
     - fbaOrderReturns
-
 
9608
    """
-
 
9609
    self.send_updateAmazonFbaOrdersReturns(fbaOrderReturns)
-
 
9610
    self.recv_updateAmazonFbaOrdersReturns()
-
 
9611
 
-
 
9612
  def send_updateAmazonFbaOrdersReturns(self, fbaOrderReturns):
-
 
9613
    self._oprot.writeMessageBegin('updateAmazonFbaOrdersReturns', TMessageType.CALL, self._seqid)
-
 
9614
    args = updateAmazonFbaOrdersReturns_args()
-
 
9615
    args.fbaOrderReturns = fbaOrderReturns
-
 
9616
    args.write(self._oprot)
-
 
9617
    self._oprot.writeMessageEnd()
-
 
9618
    self._oprot.trans.flush()
-
 
9619
 
-
 
9620
  def recv_updateAmazonFbaOrdersReturns(self, ):
-
 
9621
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
9622
    if mtype == TMessageType.EXCEPTION:
-
 
9623
      x = TApplicationException()
-
 
9624
      x.read(self._iprot)
-
 
9625
      self._iprot.readMessageEnd()
-
 
9626
      raise x
-
 
9627
    result = updateAmazonFbaOrdersReturns_result()
-
 
9628
    result.read(self._iprot)
-
 
9629
    self._iprot.readMessageEnd()
-
 
9630
    if result.ex is not None:
-
 
9631
      raise result.ex
-
 
9632
    return
-
 
9633
 
-
 
9634
  def getAllAmazonFbaOrderReturnsByCurrentTime(self, insertionTimestamp):
-
 
9635
    """
-
 
9636
    Parameters:
-
 
9637
     - insertionTimestamp
-
 
9638
    """
-
 
9639
    self.send_getAllAmazonFbaOrderReturnsByCurrentTime(insertionTimestamp)
-
 
9640
    return self.recv_getAllAmazonFbaOrderReturnsByCurrentTime()
-
 
9641
 
-
 
9642
  def send_getAllAmazonFbaOrderReturnsByCurrentTime(self, insertionTimestamp):
-
 
9643
    self._oprot.writeMessageBegin('getAllAmazonFbaOrderReturnsByCurrentTime', TMessageType.CALL, self._seqid)
-
 
9644
    args = getAllAmazonFbaOrderReturnsByCurrentTime_args()
-
 
9645
    args.insertionTimestamp = insertionTimestamp
-
 
9646
    args.write(self._oprot)
-
 
9647
    self._oprot.writeMessageEnd()
-
 
9648
    self._oprot.trans.flush()
-
 
9649
 
-
 
9650
  def recv_getAllAmazonFbaOrderReturnsByCurrentTime(self, ):
-
 
9651
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
9652
    if mtype == TMessageType.EXCEPTION:
-
 
9653
      x = TApplicationException()
-
 
9654
      x.read(self._iprot)
-
 
9655
      self._iprot.readMessageEnd()
-
 
9656
      raise x
-
 
9657
    result = getAllAmazonFbaOrderReturnsByCurrentTime_result()
-
 
9658
    result.read(self._iprot)
-
 
9659
    self._iprot.readMessageEnd()
-
 
9660
    if result.success is not None:
-
 
9661
      return result.success
-
 
9662
    if result.ex is not None:
-
 
9663
      raise result.ex
-
 
9664
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaOrderReturnsByCurrentTime failed: unknown result");
-
 
9665
 
-
 
9666
  def getTotalSaleReturnsFbaSkusCurentTime(self, insertionTimestamp):
-
 
9667
    """
-
 
9668
    Parameters:
-
 
9669
     - insertionTimestamp
-
 
9670
    """
-
 
9671
    self.send_getTotalSaleReturnsFbaSkusCurentTime(insertionTimestamp)
-
 
9672
    return self.recv_getTotalSaleReturnsFbaSkusCurentTime()
-
 
9673
 
-
 
9674
  def send_getTotalSaleReturnsFbaSkusCurentTime(self, insertionTimestamp):
-
 
9675
    self._oprot.writeMessageBegin('getTotalSaleReturnsFbaSkusCurentTime', TMessageType.CALL, self._seqid)
-
 
9676
    args = getTotalSaleReturnsFbaSkusCurentTime_args()
-
 
9677
    args.insertionTimestamp = insertionTimestamp
-
 
9678
    args.write(self._oprot)
-
 
9679
    self._oprot.writeMessageEnd()
-
 
9680
    self._oprot.trans.flush()
-
 
9681
 
-
 
9682
  def recv_getTotalSaleReturnsFbaSkusCurentTime(self, ):
-
 
9683
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
9684
    if mtype == TMessageType.EXCEPTION:
-
 
9685
      x = TApplicationException()
-
 
9686
      x.read(self._iprot)
-
 
9687
      self._iprot.readMessageEnd()
-
 
9688
      raise x
-
 
9689
    result = getTotalSaleReturnsFbaSkusCurentTime_result()
-
 
9690
    result.read(self._iprot)
-
 
9691
    self._iprot.readMessageEnd()
-
 
9692
    if result.success is not None:
-
 
9693
      return result.success
-
 
9694
    if result.ex is not None:
-
 
9695
      raise result.ex
-
 
9696
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTotalSaleReturnsFbaSkusCurentTime failed: unknown result");
-
 
9697
 
9523
 
9698
 
9524
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
9699
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
9525
  def __init__(self, handler):
9700
  def __init__(self, handler):
9526
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
9701
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
9527
    self._processMap["createTransaction"] = Processor.process_createTransaction
9702
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 9747... Line 9922...
9747
    self._processMap["updateSnapdealOrdersStatus"] = Processor.process_updateSnapdealOrdersStatus
9922
    self._processMap["updateSnapdealOrdersStatus"] = Processor.process_updateSnapdealOrdersStatus
9748
    self._processMap["updateFlipkartOrdersStatus"] = Processor.process_updateFlipkartOrdersStatus
9923
    self._processMap["updateFlipkartOrdersStatus"] = Processor.process_updateFlipkartOrdersStatus
9749
    self._processMap["bulkAddOrUpdateAmazonFbaSalesSnapshot"] = Processor.process_bulkAddOrUpdateAmazonFbaSalesSnapshot
9924
    self._processMap["bulkAddOrUpdateAmazonFbaSalesSnapshot"] = Processor.process_bulkAddOrUpdateAmazonFbaSalesSnapshot
9750
    self._processMap["getCreatedOrdersForFlipkart"] = Processor.process_getCreatedOrdersForFlipkart
9925
    self._processMap["getCreatedOrdersForFlipkart"] = Processor.process_getCreatedOrdersForFlipkart
9751
    self._processMap["isPrivateDealTransaction"] = Processor.process_isPrivateDealTransaction
9926
    self._processMap["isPrivateDealTransaction"] = Processor.process_isPrivateDealTransaction
-
 
9927
    self._processMap["changeEasyshipMfnOrderTxnStatus"] = Processor.process_changeEasyshipMfnOrderTxnStatus
-
 
9928
    self._processMap["updateAmazonFbaOrdersReturns"] = Processor.process_updateAmazonFbaOrdersReturns
-
 
9929
    self._processMap["getAllAmazonFbaOrderReturnsByCurrentTime"] = Processor.process_getAllAmazonFbaOrderReturnsByCurrentTime
-
 
9930
    self._processMap["getTotalSaleReturnsFbaSkusCurentTime"] = Processor.process_getTotalSaleReturnsFbaSkusCurentTime
9752
 
9931
 
9753
  def process(self, iprot, oprot):
9932
  def process(self, iprot, oprot):
9754
    (name, type, seqid) = iprot.readMessageBegin()
9933
    (name, type, seqid) = iprot.readMessageBegin()
9755
    if name not in self._processMap:
9934
    if name not in self._processMap:
9756
      iprot.skip(TType.STRUCT)
9935
      iprot.skip(TType.STRUCT)
Line 12547... Line 12726...
12547
    oprot.writeMessageBegin("isPrivateDealTransaction", TMessageType.REPLY, seqid)
12726
    oprot.writeMessageBegin("isPrivateDealTransaction", TMessageType.REPLY, seqid)
12548
    result.write(oprot)
12727
    result.write(oprot)
12549
    oprot.writeMessageEnd()
12728
    oprot.writeMessageEnd()
12550
    oprot.trans.flush()
12729
    oprot.trans.flush()
12551
 
12730
 
-
 
12731
  def process_changeEasyshipMfnOrderTxnStatus(self, seqid, iprot, oprot):
-
 
12732
    args = changeEasyshipMfnOrderTxnStatus_args()
-
 
12733
    args.read(iprot)
-
 
12734
    iprot.readMessageEnd()
-
 
12735
    result = changeEasyshipMfnOrderTxnStatus_result()
-
 
12736
    try:
-
 
12737
      result.success = self._handler.changeEasyshipMfnOrderTxnStatus(args.transactionId, args.status, args.description, args.pickUp, args.orderType, args.source, args.shipTimestamp, args.deliveryTimeStamp)
-
 
12738
    except TransactionServiceException, ex:
-
 
12739
      result.ex = ex
-
 
12740
    oprot.writeMessageBegin("changeEasyshipMfnOrderTxnStatus", TMessageType.REPLY, seqid)
-
 
12741
    result.write(oprot)
-
 
12742
    oprot.writeMessageEnd()
-
 
12743
    oprot.trans.flush()
-
 
12744
 
-
 
12745
  def process_updateAmazonFbaOrdersReturns(self, seqid, iprot, oprot):
-
 
12746
    args = updateAmazonFbaOrdersReturns_args()
-
 
12747
    args.read(iprot)
-
 
12748
    iprot.readMessageEnd()
-
 
12749
    result = updateAmazonFbaOrdersReturns_result()
-
 
12750
    try:
-
 
12751
      self._handler.updateAmazonFbaOrdersReturns(args.fbaOrderReturns)
-
 
12752
    except TransactionServiceException, ex:
-
 
12753
      result.ex = ex
-
 
12754
    oprot.writeMessageBegin("updateAmazonFbaOrdersReturns", TMessageType.REPLY, seqid)
-
 
12755
    result.write(oprot)
-
 
12756
    oprot.writeMessageEnd()
-
 
12757
    oprot.trans.flush()
-
 
12758
 
-
 
12759
  def process_getAllAmazonFbaOrderReturnsByCurrentTime(self, seqid, iprot, oprot):
-
 
12760
    args = getAllAmazonFbaOrderReturnsByCurrentTime_args()
-
 
12761
    args.read(iprot)
-
 
12762
    iprot.readMessageEnd()
-
 
12763
    result = getAllAmazonFbaOrderReturnsByCurrentTime_result()
-
 
12764
    try:
-
 
12765
      result.success = self._handler.getAllAmazonFbaOrderReturnsByCurrentTime(args.insertionTimestamp)
-
 
12766
    except TransactionServiceException, ex:
-
 
12767
      result.ex = ex
-
 
12768
    oprot.writeMessageBegin("getAllAmazonFbaOrderReturnsByCurrentTime", TMessageType.REPLY, seqid)
-
 
12769
    result.write(oprot)
-
 
12770
    oprot.writeMessageEnd()
-
 
12771
    oprot.trans.flush()
-
 
12772
 
-
 
12773
  def process_getTotalSaleReturnsFbaSkusCurentTime(self, seqid, iprot, oprot):
-
 
12774
    args = getTotalSaleReturnsFbaSkusCurentTime_args()
-
 
12775
    args.read(iprot)
-
 
12776
    iprot.readMessageEnd()
-
 
12777
    result = getTotalSaleReturnsFbaSkusCurentTime_result()
-
 
12778
    try:
-
 
12779
      result.success = self._handler.getTotalSaleReturnsFbaSkusCurentTime(args.insertionTimestamp)
-
 
12780
    except TransactionServiceException, ex:
-
 
12781
      result.ex = ex
-
 
12782
    oprot.writeMessageBegin("getTotalSaleReturnsFbaSkusCurentTime", TMessageType.REPLY, seqid)
-
 
12783
    result.write(oprot)
-
 
12784
    oprot.writeMessageEnd()
-
 
12785
    oprot.trans.flush()
-
 
12786
 
12552
 
12787
 
12553
# HELPER FUNCTIONS AND STRUCTURES
12788
# HELPER FUNCTIONS AND STRUCTURES
12554
 
12789
 
12555
class createTransaction_args:
12790
class createTransaction_args:
12556
  """
12791
  """
Line 43401... Line 43636...
43401
      oprot.writeFieldEnd()
43636
      oprot.writeFieldEnd()
43402
    oprot.writeFieldStop()
43637
    oprot.writeFieldStop()
43403
    oprot.writeStructEnd()
43638
    oprot.writeStructEnd()
43404
 
43639
 
43405
  def validate(self):
43640
  def validate(self):
-
 
43641
    return
-
 
43642
 
-
 
43643
 
-
 
43644
  def __repr__(self):
-
 
43645
    L = ['%s=%r' % (key, value)
-
 
43646
      for key, value in self.__dict__.iteritems()]
-
 
43647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
43648
 
-
 
43649
  def __eq__(self, other):
-
 
43650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
43651
 
-
 
43652
  def __ne__(self, other):
-
 
43653
    return not (self == other)
-
 
43654
 
-
 
43655
class changeEasyshipMfnOrderTxnStatus_args:
-
 
43656
  """
-
 
43657
  Attributes:
-
 
43658
   - transactionId
-
 
43659
   - status
-
 
43660
   - description
-
 
43661
   - pickUp
-
 
43662
   - orderType
-
 
43663
   - source
-
 
43664
   - shipTimestamp
-
 
43665
   - deliveryTimeStamp
-
 
43666
  """
-
 
43667
 
-
 
43668
  thrift_spec = (
-
 
43669
    None, # 0
-
 
43670
    (1, TType.I64, 'transactionId', None, None, ), # 1
-
 
43671
    (2, TType.I32, 'status', None, None, ), # 2
-
 
43672
    (3, TType.STRING, 'description', None, None, ), # 3
-
 
43673
    (4, TType.I64, 'pickUp', None, None, ), # 4
-
 
43674
    (5, TType.I32, 'orderType', None, None, ), # 5
-
 
43675
    (6, TType.I32, 'source', None, None, ), # 6
-
 
43676
    (7, TType.I64, 'shipTimestamp', None, None, ), # 7
-
 
43677
    (8, TType.I64, 'deliveryTimeStamp', None, None, ), # 8
-
 
43678
  )
-
 
43679
 
-
 
43680
  def __init__(self, transactionId=None, status=None, description=None, pickUp=None, orderType=None, source=None, shipTimestamp=None, deliveryTimeStamp=None,):
-
 
43681
    self.transactionId = transactionId
-
 
43682
    self.status = status
-
 
43683
    self.description = description
-
 
43684
    self.pickUp = pickUp
-
 
43685
    self.orderType = orderType
-
 
43686
    self.source = source
-
 
43687
    self.shipTimestamp = shipTimestamp
-
 
43688
    self.deliveryTimeStamp = deliveryTimeStamp
-
 
43689
 
-
 
43690
  def read(self, iprot):
-
 
43691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
43692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
43693
      return
-
 
43694
    iprot.readStructBegin()
-
 
43695
    while True:
-
 
43696
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
43697
      if ftype == TType.STOP:
-
 
43698
        break
-
 
43699
      if fid == 1:
-
 
43700
        if ftype == TType.I64:
-
 
43701
          self.transactionId = iprot.readI64();
-
 
43702
        else:
-
 
43703
          iprot.skip(ftype)
-
 
43704
      elif fid == 2:
-
 
43705
        if ftype == TType.I32:
-
 
43706
          self.status = iprot.readI32();
-
 
43707
        else:
-
 
43708
          iprot.skip(ftype)
-
 
43709
      elif fid == 3:
-
 
43710
        if ftype == TType.STRING:
-
 
43711
          self.description = iprot.readString();
-
 
43712
        else:
-
 
43713
          iprot.skip(ftype)
-
 
43714
      elif fid == 4:
-
 
43715
        if ftype == TType.I64:
-
 
43716
          self.pickUp = iprot.readI64();
-
 
43717
        else:
-
 
43718
          iprot.skip(ftype)
-
 
43719
      elif fid == 5:
-
 
43720
        if ftype == TType.I32:
-
 
43721
          self.orderType = iprot.readI32();
-
 
43722
        else:
-
 
43723
          iprot.skip(ftype)
-
 
43724
      elif fid == 6:
-
 
43725
        if ftype == TType.I32:
-
 
43726
          self.source = iprot.readI32();
-
 
43727
        else:
-
 
43728
          iprot.skip(ftype)
-
 
43729
      elif fid == 7:
-
 
43730
        if ftype == TType.I64:
-
 
43731
          self.shipTimestamp = iprot.readI64();
-
 
43732
        else:
-
 
43733
          iprot.skip(ftype)
-
 
43734
      elif fid == 8:
-
 
43735
        if ftype == TType.I64:
-
 
43736
          self.deliveryTimeStamp = iprot.readI64();
-
 
43737
        else:
-
 
43738
          iprot.skip(ftype)
-
 
43739
      else:
-
 
43740
        iprot.skip(ftype)
-
 
43741
      iprot.readFieldEnd()
-
 
43742
    iprot.readStructEnd()
-
 
43743
 
-
 
43744
  def write(self, oprot):
-
 
43745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
43746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
43747
      return
-
 
43748
    oprot.writeStructBegin('changeEasyshipMfnOrderTxnStatus_args')
-
 
43749
    if self.transactionId is not None:
-
 
43750
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
-
 
43751
      oprot.writeI64(self.transactionId)
-
 
43752
      oprot.writeFieldEnd()
-
 
43753
    if self.status is not None:
-
 
43754
      oprot.writeFieldBegin('status', TType.I32, 2)
-
 
43755
      oprot.writeI32(self.status)
-
 
43756
      oprot.writeFieldEnd()
-
 
43757
    if self.description is not None:
-
 
43758
      oprot.writeFieldBegin('description', TType.STRING, 3)
-
 
43759
      oprot.writeString(self.description)
-
 
43760
      oprot.writeFieldEnd()
-
 
43761
    if self.pickUp is not None:
-
 
43762
      oprot.writeFieldBegin('pickUp', TType.I64, 4)
-
 
43763
      oprot.writeI64(self.pickUp)
-
 
43764
      oprot.writeFieldEnd()
-
 
43765
    if self.orderType is not None:
-
 
43766
      oprot.writeFieldBegin('orderType', TType.I32, 5)
-
 
43767
      oprot.writeI32(self.orderType)
-
 
43768
      oprot.writeFieldEnd()
-
 
43769
    if self.source is not None:
-
 
43770
      oprot.writeFieldBegin('source', TType.I32, 6)
-
 
43771
      oprot.writeI32(self.source)
-
 
43772
      oprot.writeFieldEnd()
-
 
43773
    if self.shipTimestamp is not None:
-
 
43774
      oprot.writeFieldBegin('shipTimestamp', TType.I64, 7)
-
 
43775
      oprot.writeI64(self.shipTimestamp)
-
 
43776
      oprot.writeFieldEnd()
-
 
43777
    if self.deliveryTimeStamp is not None:
-
 
43778
      oprot.writeFieldBegin('deliveryTimeStamp', TType.I64, 8)
-
 
43779
      oprot.writeI64(self.deliveryTimeStamp)
-
 
43780
      oprot.writeFieldEnd()
-
 
43781
    oprot.writeFieldStop()
-
 
43782
    oprot.writeStructEnd()
-
 
43783
 
-
 
43784
  def validate(self):
-
 
43785
    return
-
 
43786
 
-
 
43787
 
-
 
43788
  def __repr__(self):
-
 
43789
    L = ['%s=%r' % (key, value)
-
 
43790
      for key, value in self.__dict__.iteritems()]
-
 
43791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
43792
 
-
 
43793
  def __eq__(self, other):
-
 
43794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
43795
 
-
 
43796
  def __ne__(self, other):
-
 
43797
    return not (self == other)
-
 
43798
 
-
 
43799
class changeEasyshipMfnOrderTxnStatus_result:
-
 
43800
  """
-
 
43801
  Attributes:
-
 
43802
   - success
-
 
43803
   - ex
-
 
43804
  """
-
 
43805
 
-
 
43806
  thrift_spec = (
-
 
43807
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
43808
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
43809
  )
-
 
43810
 
-
 
43811
  def __init__(self, success=None, ex=None,):
-
 
43812
    self.success = success
-
 
43813
    self.ex = ex
-
 
43814
 
-
 
43815
  def read(self, iprot):
-
 
43816
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
43817
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
43818
      return
-
 
43819
    iprot.readStructBegin()
-
 
43820
    while True:
-
 
43821
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
43822
      if ftype == TType.STOP:
-
 
43823
        break
-
 
43824
      if fid == 0:
-
 
43825
        if ftype == TType.BOOL:
-
 
43826
          self.success = iprot.readBool();
-
 
43827
        else:
-
 
43828
          iprot.skip(ftype)
-
 
43829
      elif fid == 1:
-
 
43830
        if ftype == TType.STRUCT:
-
 
43831
          self.ex = TransactionServiceException()
-
 
43832
          self.ex.read(iprot)
-
 
43833
        else:
-
 
43834
          iprot.skip(ftype)
-
 
43835
      else:
-
 
43836
        iprot.skip(ftype)
-
 
43837
      iprot.readFieldEnd()
-
 
43838
    iprot.readStructEnd()
-
 
43839
 
-
 
43840
  def write(self, oprot):
-
 
43841
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
43842
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
43843
      return
-
 
43844
    oprot.writeStructBegin('changeEasyshipMfnOrderTxnStatus_result')
-
 
43845
    if self.success is not None:
-
 
43846
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
43847
      oprot.writeBool(self.success)
-
 
43848
      oprot.writeFieldEnd()
-
 
43849
    if self.ex is not None:
-
 
43850
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
43851
      self.ex.write(oprot)
-
 
43852
      oprot.writeFieldEnd()
-
 
43853
    oprot.writeFieldStop()
-
 
43854
    oprot.writeStructEnd()
-
 
43855
 
-
 
43856
  def validate(self):
-
 
43857
    return
-
 
43858
 
-
 
43859
 
-
 
43860
  def __repr__(self):
-
 
43861
    L = ['%s=%r' % (key, value)
-
 
43862
      for key, value in self.__dict__.iteritems()]
-
 
43863
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
43864
 
-
 
43865
  def __eq__(self, other):
-
 
43866
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
43867
 
-
 
43868
  def __ne__(self, other):
-
 
43869
    return not (self == other)
-
 
43870
 
-
 
43871
class updateAmazonFbaOrdersReturns_args:
-
 
43872
  """
-
 
43873
  Attributes:
-
 
43874
   - fbaOrderReturns
-
 
43875
  """
-
 
43876
 
-
 
43877
  thrift_spec = (
-
 
43878
    None, # 0
-
 
43879
    (1, TType.LIST, 'fbaOrderReturns', (TType.STRUCT,(AmazonFbaOrderReturns, AmazonFbaOrderReturns.thrift_spec)), None, ), # 1
-
 
43880
  )
-
 
43881
 
-
 
43882
  def __init__(self, fbaOrderReturns=None,):
-
 
43883
    self.fbaOrderReturns = fbaOrderReturns
-
 
43884
 
-
 
43885
  def read(self, iprot):
-
 
43886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
43887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
43888
      return
-
 
43889
    iprot.readStructBegin()
-
 
43890
    while True:
-
 
43891
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
43892
      if ftype == TType.STOP:
-
 
43893
        break
-
 
43894
      if fid == 1:
-
 
43895
        if ftype == TType.LIST:
-
 
43896
          self.fbaOrderReturns = []
-
 
43897
          (_etype988, _size985) = iprot.readListBegin()
-
 
43898
          for _i989 in xrange(_size985):
-
 
43899
            _elem990 = AmazonFbaOrderReturns()
-
 
43900
            _elem990.read(iprot)
-
 
43901
            self.fbaOrderReturns.append(_elem990)
-
 
43902
          iprot.readListEnd()
-
 
43903
        else:
-
 
43904
          iprot.skip(ftype)
-
 
43905
      else:
-
 
43906
        iprot.skip(ftype)
-
 
43907
      iprot.readFieldEnd()
-
 
43908
    iprot.readStructEnd()
-
 
43909
 
-
 
43910
  def write(self, oprot):
-
 
43911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
43912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
43913
      return
-
 
43914
    oprot.writeStructBegin('updateAmazonFbaOrdersReturns_args')
-
 
43915
    if self.fbaOrderReturns is not None:
-
 
43916
      oprot.writeFieldBegin('fbaOrderReturns', TType.LIST, 1)
-
 
43917
      oprot.writeListBegin(TType.STRUCT, len(self.fbaOrderReturns))
-
 
43918
      for iter991 in self.fbaOrderReturns:
-
 
43919
        iter991.write(oprot)
-
 
43920
      oprot.writeListEnd()
-
 
43921
      oprot.writeFieldEnd()
-
 
43922
    oprot.writeFieldStop()
-
 
43923
    oprot.writeStructEnd()
-
 
43924
 
-
 
43925
  def validate(self):
-
 
43926
    return
-
 
43927
 
-
 
43928
 
-
 
43929
  def __repr__(self):
-
 
43930
    L = ['%s=%r' % (key, value)
-
 
43931
      for key, value in self.__dict__.iteritems()]
-
 
43932
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
43933
 
-
 
43934
  def __eq__(self, other):
-
 
43935
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
43936
 
-
 
43937
  def __ne__(self, other):
-
 
43938
    return not (self == other)
-
 
43939
 
-
 
43940
class updateAmazonFbaOrdersReturns_result:
-
 
43941
  """
-
 
43942
  Attributes:
-
 
43943
   - ex
-
 
43944
  """
-
 
43945
 
-
 
43946
  thrift_spec = (
-
 
43947
    None, # 0
-
 
43948
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
43949
  )
-
 
43950
 
-
 
43951
  def __init__(self, ex=None,):
-
 
43952
    self.ex = ex
-
 
43953
 
-
 
43954
  def read(self, iprot):
-
 
43955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
43956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
43957
      return
-
 
43958
    iprot.readStructBegin()
-
 
43959
    while True:
-
 
43960
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
43961
      if ftype == TType.STOP:
-
 
43962
        break
-
 
43963
      if fid == 1:
-
 
43964
        if ftype == TType.STRUCT:
-
 
43965
          self.ex = TransactionServiceException()
-
 
43966
          self.ex.read(iprot)
-
 
43967
        else:
-
 
43968
          iprot.skip(ftype)
-
 
43969
      else:
-
 
43970
        iprot.skip(ftype)
-
 
43971
      iprot.readFieldEnd()
-
 
43972
    iprot.readStructEnd()
-
 
43973
 
-
 
43974
  def write(self, oprot):
-
 
43975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
43976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
43977
      return
-
 
43978
    oprot.writeStructBegin('updateAmazonFbaOrdersReturns_result')
-
 
43979
    if self.ex is not None:
-
 
43980
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
43981
      self.ex.write(oprot)
-
 
43982
      oprot.writeFieldEnd()
-
 
43983
    oprot.writeFieldStop()
-
 
43984
    oprot.writeStructEnd()
-
 
43985
 
-
 
43986
  def validate(self):
-
 
43987
    return
-
 
43988
 
-
 
43989
 
-
 
43990
  def __repr__(self):
-
 
43991
    L = ['%s=%r' % (key, value)
-
 
43992
      for key, value in self.__dict__.iteritems()]
-
 
43993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
43994
 
-
 
43995
  def __eq__(self, other):
-
 
43996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
43997
 
-
 
43998
  def __ne__(self, other):
-
 
43999
    return not (self == other)
-
 
44000
 
-
 
44001
class getAllAmazonFbaOrderReturnsByCurrentTime_args:
-
 
44002
  """
-
 
44003
  Attributes:
-
 
44004
   - insertionTimestamp
-
 
44005
  """
-
 
44006
 
-
 
44007
  thrift_spec = (
-
 
44008
    None, # 0
-
 
44009
    (1, TType.I64, 'insertionTimestamp', None, None, ), # 1
-
 
44010
  )
-
 
44011
 
-
 
44012
  def __init__(self, insertionTimestamp=None,):
-
 
44013
    self.insertionTimestamp = insertionTimestamp
-
 
44014
 
-
 
44015
  def read(self, iprot):
-
 
44016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
44017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
44018
      return
-
 
44019
    iprot.readStructBegin()
-
 
44020
    while True:
-
 
44021
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
44022
      if ftype == TType.STOP:
-
 
44023
        break
-
 
44024
      if fid == 1:
-
 
44025
        if ftype == TType.I64:
-
 
44026
          self.insertionTimestamp = iprot.readI64();
-
 
44027
        else:
-
 
44028
          iprot.skip(ftype)
-
 
44029
      else:
-
 
44030
        iprot.skip(ftype)
-
 
44031
      iprot.readFieldEnd()
-
 
44032
    iprot.readStructEnd()
-
 
44033
 
-
 
44034
  def write(self, oprot):
-
 
44035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
44036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
44037
      return
-
 
44038
    oprot.writeStructBegin('getAllAmazonFbaOrderReturnsByCurrentTime_args')
-
 
44039
    if self.insertionTimestamp is not None:
-
 
44040
      oprot.writeFieldBegin('insertionTimestamp', TType.I64, 1)
-
 
44041
      oprot.writeI64(self.insertionTimestamp)
-
 
44042
      oprot.writeFieldEnd()
-
 
44043
    oprot.writeFieldStop()
-
 
44044
    oprot.writeStructEnd()
-
 
44045
 
-
 
44046
  def validate(self):
-
 
44047
    return
-
 
44048
 
-
 
44049
 
-
 
44050
  def __repr__(self):
-
 
44051
    L = ['%s=%r' % (key, value)
-
 
44052
      for key, value in self.__dict__.iteritems()]
-
 
44053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
44054
 
-
 
44055
  def __eq__(self, other):
-
 
44056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
44057
 
-
 
44058
  def __ne__(self, other):
-
 
44059
    return not (self == other)
-
 
44060
 
-
 
44061
class getAllAmazonFbaOrderReturnsByCurrentTime_result:
-
 
44062
  """
-
 
44063
  Attributes:
-
 
44064
   - success
-
 
44065
   - ex
-
 
44066
  """
-
 
44067
 
-
 
44068
  thrift_spec = (
-
 
44069
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaOrderReturns, AmazonFbaOrderReturns.thrift_spec)), None, ), # 0
-
 
44070
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
44071
  )
-
 
44072
 
-
 
44073
  def __init__(self, success=None, ex=None,):
-
 
44074
    self.success = success
-
 
44075
    self.ex = ex
-
 
44076
 
-
 
44077
  def read(self, iprot):
-
 
44078
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
44079
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
44080
      return
-
 
44081
    iprot.readStructBegin()
-
 
44082
    while True:
-
 
44083
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
44084
      if ftype == TType.STOP:
-
 
44085
        break
-
 
44086
      if fid == 0:
-
 
44087
        if ftype == TType.LIST:
-
 
44088
          self.success = []
-
 
44089
          (_etype995, _size992) = iprot.readListBegin()
-
 
44090
          for _i996 in xrange(_size992):
-
 
44091
            _elem997 = AmazonFbaOrderReturns()
-
 
44092
            _elem997.read(iprot)
-
 
44093
            self.success.append(_elem997)
-
 
44094
          iprot.readListEnd()
-
 
44095
        else:
-
 
44096
          iprot.skip(ftype)
-
 
44097
      elif fid == 1:
-
 
44098
        if ftype == TType.STRUCT:
-
 
44099
          self.ex = TransactionServiceException()
-
 
44100
          self.ex.read(iprot)
-
 
44101
        else:
-
 
44102
          iprot.skip(ftype)
-
 
44103
      else:
-
 
44104
        iprot.skip(ftype)
-
 
44105
      iprot.readFieldEnd()
-
 
44106
    iprot.readStructEnd()
-
 
44107
 
-
 
44108
  def write(self, oprot):
-
 
44109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
44110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
44111
      return
-
 
44112
    oprot.writeStructBegin('getAllAmazonFbaOrderReturnsByCurrentTime_result')
-
 
44113
    if self.success is not None:
-
 
44114
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
44115
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
44116
      for iter998 in self.success:
-
 
44117
        iter998.write(oprot)
-
 
44118
      oprot.writeListEnd()
-
 
44119
      oprot.writeFieldEnd()
-
 
44120
    if self.ex is not None:
-
 
44121
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
44122
      self.ex.write(oprot)
-
 
44123
      oprot.writeFieldEnd()
-
 
44124
    oprot.writeFieldStop()
-
 
44125
    oprot.writeStructEnd()
-
 
44126
 
-
 
44127
  def validate(self):
-
 
44128
    return
-
 
44129
 
-
 
44130
 
-
 
44131
  def __repr__(self):
-
 
44132
    L = ['%s=%r' % (key, value)
-
 
44133
      for key, value in self.__dict__.iteritems()]
-
 
44134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
44135
 
-
 
44136
  def __eq__(self, other):
-
 
44137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
44138
 
-
 
44139
  def __ne__(self, other):
-
 
44140
    return not (self == other)
-
 
44141
 
-
 
44142
class getTotalSaleReturnsFbaSkusCurentTime_args:
-
 
44143
  """
-
 
44144
  Attributes:
-
 
44145
   - insertionTimestamp
-
 
44146
  """
-
 
44147
 
-
 
44148
  thrift_spec = (
-
 
44149
    None, # 0
-
 
44150
    (1, TType.I64, 'insertionTimestamp', None, None, ), # 1
-
 
44151
  )
-
 
44152
 
-
 
44153
  def __init__(self, insertionTimestamp=None,):
-
 
44154
    self.insertionTimestamp = insertionTimestamp
-
 
44155
 
-
 
44156
  def read(self, iprot):
-
 
44157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
44158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
44159
      return
-
 
44160
    iprot.readStructBegin()
-
 
44161
    while True:
-
 
44162
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
44163
      if ftype == TType.STOP:
-
 
44164
        break
-
 
44165
      if fid == 1:
-
 
44166
        if ftype == TType.I64:
-
 
44167
          self.insertionTimestamp = iprot.readI64();
-
 
44168
        else:
-
 
44169
          iprot.skip(ftype)
-
 
44170
      else:
-
 
44171
        iprot.skip(ftype)
-
 
44172
      iprot.readFieldEnd()
-
 
44173
    iprot.readStructEnd()
-
 
44174
 
-
 
44175
  def write(self, oprot):
-
 
44176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
44177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
44178
      return
-
 
44179
    oprot.writeStructBegin('getTotalSaleReturnsFbaSkusCurentTime_args')
-
 
44180
    if self.insertionTimestamp is not None:
-
 
44181
      oprot.writeFieldBegin('insertionTimestamp', TType.I64, 1)
-
 
44182
      oprot.writeI64(self.insertionTimestamp)
-
 
44183
      oprot.writeFieldEnd()
-
 
44184
    oprot.writeFieldStop()
-
 
44185
    oprot.writeStructEnd()
-
 
44186
 
-
 
44187
  def validate(self):
-
 
44188
    return
-
 
44189
 
-
 
44190
 
-
 
44191
  def __repr__(self):
-
 
44192
    L = ['%s=%r' % (key, value)
-
 
44193
      for key, value in self.__dict__.iteritems()]
-
 
44194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
44195
 
-
 
44196
  def __eq__(self, other):
-
 
44197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
44198
 
-
 
44199
  def __ne__(self, other):
-
 
44200
    return not (self == other)
-
 
44201
 
-
 
44202
class getTotalSaleReturnsFbaSkusCurentTime_result:
-
 
44203
  """
-
 
44204
  Attributes:
-
 
44205
   - success
-
 
44206
   - ex
-
 
44207
  """
-
 
44208
 
-
 
44209
  thrift_spec = (
-
 
44210
    (0, TType.MAP, 'success', (TType.I64,None,TType.MAP,(TType.STRING,None,TType.I64,None)), None, ), # 0
-
 
44211
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
44212
  )
-
 
44213
 
-
 
44214
  def __init__(self, success=None, ex=None,):
-
 
44215
    self.success = success
-
 
44216
    self.ex = ex
-
 
44217
 
-
 
44218
  def read(self, iprot):
-
 
44219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
44220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
44221
      return
-
 
44222
    iprot.readStructBegin()
-
 
44223
    while True:
-
 
44224
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
44225
      if ftype == TType.STOP:
-
 
44226
        break
-
 
44227
      if fid == 0:
-
 
44228
        if ftype == TType.MAP:
-
 
44229
          self.success = {}
-
 
44230
          (_ktype1000, _vtype1001, _size999 ) = iprot.readMapBegin() 
-
 
44231
          for _i1003 in xrange(_size999):
-
 
44232
            _key1004 = iprot.readI64();
-
 
44233
            _val1005 = {}
-
 
44234
            (_ktype1007, _vtype1008, _size1006 ) = iprot.readMapBegin() 
-
 
44235
            for _i1010 in xrange(_size1006):
-
 
44236
              _key1011 = iprot.readString();
-
 
44237
              _val1012 = iprot.readI64();
-
 
44238
              _val1005[_key1011] = _val1012
-
 
44239
            iprot.readMapEnd()
-
 
44240
            self.success[_key1004] = _val1005
-
 
44241
          iprot.readMapEnd()
-
 
44242
        else:
-
 
44243
          iprot.skip(ftype)
-
 
44244
      elif fid == 1:
-
 
44245
        if ftype == TType.STRUCT:
-
 
44246
          self.ex = TransactionServiceException()
-
 
44247
          self.ex.read(iprot)
-
 
44248
        else:
-
 
44249
          iprot.skip(ftype)
-
 
44250
      else:
-
 
44251
        iprot.skip(ftype)
-
 
44252
      iprot.readFieldEnd()
-
 
44253
    iprot.readStructEnd()
-
 
44254
 
-
 
44255
  def write(self, oprot):
-
 
44256
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
44257
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
44258
      return
-
 
44259
    oprot.writeStructBegin('getTotalSaleReturnsFbaSkusCurentTime_result')
-
 
44260
    if self.success is not None:
-
 
44261
      oprot.writeFieldBegin('success', TType.MAP, 0)
-
 
44262
      oprot.writeMapBegin(TType.I64, TType.MAP, len(self.success))
-
 
44263
      for kiter1013,viter1014 in self.success.items():
-
 
44264
        oprot.writeI64(kiter1013)
-
 
44265
        oprot.writeMapBegin(TType.STRING, TType.I64, len(viter1014))
-
 
44266
        for kiter1015,viter1016 in viter1014.items():
-
 
44267
          oprot.writeString(kiter1015)
-
 
44268
          oprot.writeI64(viter1016)
-
 
44269
        oprot.writeMapEnd()
-
 
44270
      oprot.writeMapEnd()
-
 
44271
      oprot.writeFieldEnd()
-
 
44272
    if self.ex is not None:
-
 
44273
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
44274
      self.ex.write(oprot)
-
 
44275
      oprot.writeFieldEnd()
-
 
44276
    oprot.writeFieldStop()
-
 
44277
    oprot.writeStructEnd()
-
 
44278
 
-
 
44279
  def validate(self):
43406
    return
44280
    return
43407
 
44281
 
43408
 
44282
 
43409
  def __repr__(self):
44283
  def __repr__(self):
43410
    L = ['%s=%r' % (key, value)
44284
    L = ['%s=%r' % (key, value)