Subversion Repositories SmartDukaan

Rev

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

Rev 20739 Rev 20744
Line 2681... Line 2681...
2681
    Parameters:
2681
    Parameters:
2682
     - shipmentDelayDetail
2682
     - shipmentDelayDetail
2683
    """
2683
    """
2684
    pass
2684
    pass
2685
 
2685
 
-
 
2686
  def getCostDetailForLogisticsTxnId(self, logisticsTxnId):
-
 
2687
    """
-
 
2688
    Parameters:
-
 
2689
     - logisticsTxnId
-
 
2690
    """
-
 
2691
    pass
-
 
2692
 
2686
 
2693
 
2687
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2694
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2688
  def __init__(self, iprot, oprot=None):
2695
  def __init__(self, iprot, oprot=None):
2689
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2696
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2690
 
2697
 
Line 12846... Line 12853...
12846
    self._iprot.readMessageEnd()
12853
    self._iprot.readMessageEnd()
12847
    if result.success is not None:
12854
    if result.success is not None:
12848
      return result.success
12855
      return result.success
12849
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addShipmentDelay failed: unknown result");
12856
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addShipmentDelay failed: unknown result");
12850
 
12857
 
-
 
12858
  def getCostDetailForLogisticsTxnId(self, logisticsTxnId):
-
 
12859
    """
-
 
12860
    Parameters:
-
 
12861
     - logisticsTxnId
-
 
12862
    """
-
 
12863
    self.send_getCostDetailForLogisticsTxnId(logisticsTxnId)
-
 
12864
    return self.recv_getCostDetailForLogisticsTxnId()
-
 
12865
 
-
 
12866
  def send_getCostDetailForLogisticsTxnId(self, logisticsTxnId):
-
 
12867
    self._oprot.writeMessageBegin('getCostDetailForLogisticsTxnId', TMessageType.CALL, self._seqid)
-
 
12868
    args = getCostDetailForLogisticsTxnId_args()
-
 
12869
    args.logisticsTxnId = logisticsTxnId
-
 
12870
    args.write(self._oprot)
-
 
12871
    self._oprot.writeMessageEnd()
-
 
12872
    self._oprot.trans.flush()
-
 
12873
 
-
 
12874
  def recv_getCostDetailForLogisticsTxnId(self, ):
-
 
12875
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
12876
    if mtype == TMessageType.EXCEPTION:
-
 
12877
      x = TApplicationException()
-
 
12878
      x.read(self._iprot)
-
 
12879
      self._iprot.readMessageEnd()
-
 
12880
      raise x
-
 
12881
    result = getCostDetailForLogisticsTxnId_result()
-
 
12882
    result.read(self._iprot)
-
 
12883
    self._iprot.readMessageEnd()
-
 
12884
    if result.success is not None:
-
 
12885
      return result.success
-
 
12886
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostDetailForLogisticsTxnId failed: unknown result");
-
 
12887
 
12851
 
12888
 
12852
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12889
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12853
  def __init__(self, handler):
12890
  def __init__(self, handler):
12854
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12891
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12855
    self._processMap["createTransaction"] = Processor.process_createTransaction
12892
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 13156... Line 13193...
13156
    self._processMap["getReturnPickupRequest"] = Processor.process_getReturnPickupRequest
13193
    self._processMap["getReturnPickupRequest"] = Processor.process_getReturnPickupRequest
13157
    self._processMap["splitReturnOrderInfo"] = Processor.process_splitReturnOrderInfo
13194
    self._processMap["splitReturnOrderInfo"] = Processor.process_splitReturnOrderInfo
13158
    self._processMap["deleteReturnOrder"] = Processor.process_deleteReturnOrder
13195
    self._processMap["deleteReturnOrder"] = Processor.process_deleteReturnOrder
13159
    self._processMap["refundReturnOrder"] = Processor.process_refundReturnOrder
13196
    self._processMap["refundReturnOrder"] = Processor.process_refundReturnOrder
13160
    self._processMap["addShipmentDelay"] = Processor.process_addShipmentDelay
13197
    self._processMap["addShipmentDelay"] = Processor.process_addShipmentDelay
-
 
13198
    self._processMap["getCostDetailForLogisticsTxnId"] = Processor.process_getCostDetailForLogisticsTxnId
13161
 
13199
 
13162
  def process(self, iprot, oprot):
13200
  def process(self, iprot, oprot):
13163
    (name, type, seqid) = iprot.readMessageBegin()
13201
    (name, type, seqid) = iprot.readMessageBegin()
13164
    if name not in self._processMap:
13202
    if name not in self._processMap:
13165
      iprot.skip(TType.STRUCT)
13203
      iprot.skip(TType.STRUCT)
Line 16955... Line 16993...
16955
    oprot.writeMessageBegin("addShipmentDelay", TMessageType.REPLY, seqid)
16993
    oprot.writeMessageBegin("addShipmentDelay", TMessageType.REPLY, seqid)
16956
    result.write(oprot)
16994
    result.write(oprot)
16957
    oprot.writeMessageEnd()
16995
    oprot.writeMessageEnd()
16958
    oprot.trans.flush()
16996
    oprot.trans.flush()
16959
 
16997
 
-
 
16998
  def process_getCostDetailForLogisticsTxnId(self, seqid, iprot, oprot):
-
 
16999
    args = getCostDetailForLogisticsTxnId_args()
-
 
17000
    args.read(iprot)
-
 
17001
    iprot.readMessageEnd()
-
 
17002
    result = getCostDetailForLogisticsTxnId_result()
-
 
17003
    result.success = self._handler.getCostDetailForLogisticsTxnId(args.logisticsTxnId)
-
 
17004
    oprot.writeMessageBegin("getCostDetailForLogisticsTxnId", TMessageType.REPLY, seqid)
-
 
17005
    result.write(oprot)
-
 
17006
    oprot.writeMessageEnd()
-
 
17007
    oprot.trans.flush()
-
 
17008
 
16960
 
17009
 
16961
# HELPER FUNCTIONS AND STRUCTURES
17010
# HELPER FUNCTIONS AND STRUCTURES
16962
 
17011
 
16963
class createTransaction_args:
17012
class createTransaction_args:
16964
  """
17013
  """
Line 59483... Line 59532...
59483
      oprot.writeFieldEnd()
59532
      oprot.writeFieldEnd()
59484
    oprot.writeFieldStop()
59533
    oprot.writeFieldStop()
59485
    oprot.writeStructEnd()
59534
    oprot.writeStructEnd()
59486
 
59535
 
59487
  def validate(self):
59536
  def validate(self):
-
 
59537
    return
-
 
59538
 
-
 
59539
 
-
 
59540
  def __repr__(self):
-
 
59541
    L = ['%s=%r' % (key, value)
-
 
59542
      for key, value in self.__dict__.iteritems()]
-
 
59543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
59544
 
-
 
59545
  def __eq__(self, other):
-
 
59546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
59547
 
-
 
59548
  def __ne__(self, other):
-
 
59549
    return not (self == other)
-
 
59550
 
-
 
59551
class getCostDetailForLogisticsTxnId_args:
-
 
59552
  """
-
 
59553
  Attributes:
-
 
59554
   - logisticsTxnId
-
 
59555
  """
-
 
59556
 
-
 
59557
  thrift_spec = (
-
 
59558
    None, # 0
-
 
59559
    (1, TType.STRING, 'logisticsTxnId', None, None, ), # 1
-
 
59560
  )
-
 
59561
 
-
 
59562
  def __init__(self, logisticsTxnId=None,):
-
 
59563
    self.logisticsTxnId = logisticsTxnId
-
 
59564
 
-
 
59565
  def read(self, iprot):
-
 
59566
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
59567
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
59568
      return
-
 
59569
    iprot.readStructBegin()
-
 
59570
    while True:
-
 
59571
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
59572
      if ftype == TType.STOP:
-
 
59573
        break
-
 
59574
      if fid == 1:
-
 
59575
        if ftype == TType.STRING:
-
 
59576
          self.logisticsTxnId = iprot.readString();
-
 
59577
        else:
-
 
59578
          iprot.skip(ftype)
-
 
59579
      else:
-
 
59580
        iprot.skip(ftype)
-
 
59581
      iprot.readFieldEnd()
-
 
59582
    iprot.readStructEnd()
-
 
59583
 
-
 
59584
  def write(self, oprot):
-
 
59585
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
59586
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
59587
      return
-
 
59588
    oprot.writeStructBegin('getCostDetailForLogisticsTxnId_args')
-
 
59589
    if self.logisticsTxnId is not None:
-
 
59590
      oprot.writeFieldBegin('logisticsTxnId', TType.STRING, 1)
-
 
59591
      oprot.writeString(self.logisticsTxnId)
-
 
59592
      oprot.writeFieldEnd()
-
 
59593
    oprot.writeFieldStop()
-
 
59594
    oprot.writeStructEnd()
-
 
59595
 
-
 
59596
  def validate(self):
-
 
59597
    return
-
 
59598
 
-
 
59599
 
-
 
59600
  def __repr__(self):
-
 
59601
    L = ['%s=%r' % (key, value)
-
 
59602
      for key, value in self.__dict__.iteritems()]
-
 
59603
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
59604
 
-
 
59605
  def __eq__(self, other):
-
 
59606
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
59607
 
-
 
59608
  def __ne__(self, other):
-
 
59609
    return not (self == other)
-
 
59610
 
-
 
59611
class getCostDetailForLogisticsTxnId_result:
-
 
59612
  """
-
 
59613
  Attributes:
-
 
59614
   - success
-
 
59615
  """
-
 
59616
 
-
 
59617
  thrift_spec = (
-
 
59618
    (0, TType.STRUCT, 'success', (ShipmentLogisticsCostDetail, ShipmentLogisticsCostDetail.thrift_spec), None, ), # 0
-
 
59619
  )
-
 
59620
 
-
 
59621
  def __init__(self, success=None,):
-
 
59622
    self.success = success
-
 
59623
 
-
 
59624
  def read(self, iprot):
-
 
59625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
59626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
59627
      return
-
 
59628
    iprot.readStructBegin()
-
 
59629
    while True:
-
 
59630
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
59631
      if ftype == TType.STOP:
-
 
59632
        break
-
 
59633
      if fid == 0:
-
 
59634
        if ftype == TType.STRUCT:
-
 
59635
          self.success = ShipmentLogisticsCostDetail()
-
 
59636
          self.success.read(iprot)
-
 
59637
        else:
-
 
59638
          iprot.skip(ftype)
-
 
59639
      else:
-
 
59640
        iprot.skip(ftype)
-
 
59641
      iprot.readFieldEnd()
-
 
59642
    iprot.readStructEnd()
-
 
59643
 
-
 
59644
  def write(self, oprot):
-
 
59645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
59646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
59647
      return
-
 
59648
    oprot.writeStructBegin('getCostDetailForLogisticsTxnId_result')
-
 
59649
    if self.success is not None:
-
 
59650
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
59651
      self.success.write(oprot)
-
 
59652
      oprot.writeFieldEnd()
-
 
59653
    oprot.writeFieldStop()
-
 
59654
    oprot.writeStructEnd()
-
 
59655
 
-
 
59656
  def validate(self):
59488
    return
59657
    return
59489
 
59658
 
59490
 
59659
 
59491
  def __repr__(self):
59660
  def __repr__(self):
59492
    L = ['%s=%r' % (key, value)
59661
    L = ['%s=%r' % (key, value)