Subversion Repositories SmartDukaan

Rev

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

Rev 23121 Rev 23218
Line 272... Line 272...
272
     - logisticsTxnId
272
     - logisticsTxnId
273
     - name
273
     - name
274
    """
274
    """
275
    pass
275
    pass
276
 
276
 
-
 
277
  def pushCourierDetailsForEcomExpress(self, logisticsTransactionIds):
-
 
278
    """
-
 
279
    Parameters:
-
 
280
     - logisticsTransactionIds
-
 
281
    """
-
 
282
    pass
-
 
283
 
277
 
284
 
278
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
285
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
279
  def __init__(self, iprot, oprot=None):
286
  def __init__(self, iprot, oprot=None):
280
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
287
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
281
 
288
 
Line 1214... Line 1221...
1214
      return result.success
1221
      return result.success
1215
    if result.se is not None:
1222
    if result.se is not None:
1216
      raise result.se
1223
      raise result.se
1217
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBluedartAttributesForLogisticsTxnId failed: unknown result");
1224
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBluedartAttributesForLogisticsTxnId failed: unknown result");
1218
 
1225
 
-
 
1226
  def pushCourierDetailsForEcomExpress(self, logisticsTransactionIds):
-
 
1227
    """
-
 
1228
    Parameters:
-
 
1229
     - logisticsTransactionIds
-
 
1230
    """
-
 
1231
    self.send_pushCourierDetailsForEcomExpress(logisticsTransactionIds)
-
 
1232
    return self.recv_pushCourierDetailsForEcomExpress()
-
 
1233
 
-
 
1234
  def send_pushCourierDetailsForEcomExpress(self, logisticsTransactionIds):
-
 
1235
    self._oprot.writeMessageBegin('pushCourierDetailsForEcomExpress', TMessageType.CALL, self._seqid)
-
 
1236
    args = pushCourierDetailsForEcomExpress_args()
-
 
1237
    args.logisticsTransactionIds = logisticsTransactionIds
-
 
1238
    args.write(self._oprot)
-
 
1239
    self._oprot.writeMessageEnd()
-
 
1240
    self._oprot.trans.flush()
-
 
1241
 
-
 
1242
  def recv_pushCourierDetailsForEcomExpress(self, ):
-
 
1243
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1244
    if mtype == TMessageType.EXCEPTION:
-
 
1245
      x = TApplicationException()
-
 
1246
      x.read(self._iprot)
-
 
1247
      self._iprot.readMessageEnd()
-
 
1248
      raise x
-
 
1249
    result = pushCourierDetailsForEcomExpress_result()
-
 
1250
    result.read(self._iprot)
-
 
1251
    self._iprot.readMessageEnd()
-
 
1252
    if result.success is not None:
-
 
1253
      return result.success
-
 
1254
    raise TApplicationException(TApplicationException.MISSING_RESULT, "pushCourierDetailsForEcomExpress failed: unknown result");
-
 
1255
 
1219
 
1256
 
1220
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1257
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1221
  def __init__(self, handler):
1258
  def __init__(self, handler):
1222
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1259
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1223
    self._processMap["getProvider"] = Processor.process_getProvider
1260
    self._processMap["getProvider"] = Processor.process_getProvider
Line 1245... Line 1282...
1245
    self._processMap["getNewEmptyAwb"] = Processor.process_getNewEmptyAwb
1282
    self._processMap["getNewEmptyAwb"] = Processor.process_getNewEmptyAwb
1246
    self._processMap["getProviderLimitDetailsForPincode"] = Processor.process_getProviderLimitDetailsForPincode
1283
    self._processMap["getProviderLimitDetailsForPincode"] = Processor.process_getProviderLimitDetailsForPincode
1247
    self._processMap["getLocationInfoMap"] = Processor.process_getLocationInfoMap
1284
    self._processMap["getLocationInfoMap"] = Processor.process_getLocationInfoMap
1248
    self._processMap["getCostingAndDeliveryEstimateForPincode"] = Processor.process_getCostingAndDeliveryEstimateForPincode
1285
    self._processMap["getCostingAndDeliveryEstimateForPincode"] = Processor.process_getCostingAndDeliveryEstimateForPincode
1249
    self._processMap["getBluedartAttributesForLogisticsTxnId"] = Processor.process_getBluedartAttributesForLogisticsTxnId
1286
    self._processMap["getBluedartAttributesForLogisticsTxnId"] = Processor.process_getBluedartAttributesForLogisticsTxnId
-
 
1287
    self._processMap["pushCourierDetailsForEcomExpress"] = Processor.process_pushCourierDetailsForEcomExpress
1250
 
1288
 
1251
  def process(self, iprot, oprot):
1289
  def process(self, iprot, oprot):
1252
    (name, type, seqid) = iprot.readMessageBegin()
1290
    (name, type, seqid) = iprot.readMessageBegin()
1253
    if name not in self._processMap:
1291
    if name not in self._processMap:
1254
      iprot.skip(TType.STRUCT)
1292
      iprot.skip(TType.STRUCT)
Line 1600... Line 1638...
1600
    oprot.writeMessageBegin("getBluedartAttributesForLogisticsTxnId", TMessageType.REPLY, seqid)
1638
    oprot.writeMessageBegin("getBluedartAttributesForLogisticsTxnId", TMessageType.REPLY, seqid)
1601
    result.write(oprot)
1639
    result.write(oprot)
1602
    oprot.writeMessageEnd()
1640
    oprot.writeMessageEnd()
1603
    oprot.trans.flush()
1641
    oprot.trans.flush()
1604
 
1642
 
-
 
1643
  def process_pushCourierDetailsForEcomExpress(self, seqid, iprot, oprot):
-
 
1644
    args = pushCourierDetailsForEcomExpress_args()
-
 
1645
    args.read(iprot)
-
 
1646
    iprot.readMessageEnd()
-
 
1647
    result = pushCourierDetailsForEcomExpress_result()
-
 
1648
    result.success = self._handler.pushCourierDetailsForEcomExpress(args.logisticsTransactionIds)
-
 
1649
    oprot.writeMessageBegin("pushCourierDetailsForEcomExpress", TMessageType.REPLY, seqid)
-
 
1650
    result.write(oprot)
-
 
1651
    oprot.writeMessageEnd()
-
 
1652
    oprot.trans.flush()
-
 
1653
 
1605
 
1654
 
1606
# HELPER FUNCTIONS AND STRUCTURES
1655
# HELPER FUNCTIONS AND STRUCTURES
1607
 
1656
 
1608
class getProvider_args:
1657
class getProvider_args:
1609
  """
1658
  """
Line 5487... Line 5536...
5487
      oprot.writeFieldEnd()
5536
      oprot.writeFieldEnd()
5488
    oprot.writeFieldStop()
5537
    oprot.writeFieldStop()
5489
    oprot.writeStructEnd()
5538
    oprot.writeStructEnd()
5490
 
5539
 
5491
  def validate(self):
5540
  def validate(self):
-
 
5541
    return
-
 
5542
 
-
 
5543
 
-
 
5544
  def __repr__(self):
-
 
5545
    L = ['%s=%r' % (key, value)
-
 
5546
      for key, value in self.__dict__.iteritems()]
-
 
5547
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5548
 
-
 
5549
  def __eq__(self, other):
-
 
5550
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5551
 
-
 
5552
  def __ne__(self, other):
-
 
5553
    return not (self == other)
-
 
5554
 
-
 
5555
class pushCourierDetailsForEcomExpress_args:
-
 
5556
  """
-
 
5557
  Attributes:
-
 
5558
   - logisticsTransactionIds
-
 
5559
  """
-
 
5560
 
-
 
5561
  thrift_spec = (
-
 
5562
    None, # 0
-
 
5563
    (1, TType.LIST, 'logisticsTransactionIds', (TType.STRING,None), None, ), # 1
-
 
5564
  )
-
 
5565
 
-
 
5566
  def __init__(self, logisticsTransactionIds=None,):
-
 
5567
    self.logisticsTransactionIds = logisticsTransactionIds
-
 
5568
 
-
 
5569
  def read(self, iprot):
-
 
5570
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5571
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5572
      return
-
 
5573
    iprot.readStructBegin()
-
 
5574
    while True:
-
 
5575
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5576
      if ftype == TType.STOP:
-
 
5577
        break
-
 
5578
      if fid == 1:
-
 
5579
        if ftype == TType.LIST:
-
 
5580
          self.logisticsTransactionIds = []
-
 
5581
          (_etype93, _size90) = iprot.readListBegin()
-
 
5582
          for _i94 in xrange(_size90):
-
 
5583
            _elem95 = iprot.readString();
-
 
5584
            self.logisticsTransactionIds.append(_elem95)
-
 
5585
          iprot.readListEnd()
-
 
5586
        else:
-
 
5587
          iprot.skip(ftype)
-
 
5588
      else:
-
 
5589
        iprot.skip(ftype)
-
 
5590
      iprot.readFieldEnd()
-
 
5591
    iprot.readStructEnd()
-
 
5592
 
-
 
5593
  def write(self, oprot):
-
 
5594
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5595
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5596
      return
-
 
5597
    oprot.writeStructBegin('pushCourierDetailsForEcomExpress_args')
-
 
5598
    if self.logisticsTransactionIds is not None:
-
 
5599
      oprot.writeFieldBegin('logisticsTransactionIds', TType.LIST, 1)
-
 
5600
      oprot.writeListBegin(TType.STRING, len(self.logisticsTransactionIds))
-
 
5601
      for iter96 in self.logisticsTransactionIds:
-
 
5602
        oprot.writeString(iter96)
-
 
5603
      oprot.writeListEnd()
-
 
5604
      oprot.writeFieldEnd()
-
 
5605
    oprot.writeFieldStop()
-
 
5606
    oprot.writeStructEnd()
-
 
5607
 
-
 
5608
  def validate(self):
-
 
5609
    return
-
 
5610
 
-
 
5611
 
-
 
5612
  def __repr__(self):
-
 
5613
    L = ['%s=%r' % (key, value)
-
 
5614
      for key, value in self.__dict__.iteritems()]
-
 
5615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5616
 
-
 
5617
  def __eq__(self, other):
-
 
5618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5619
 
-
 
5620
  def __ne__(self, other):
-
 
5621
    return not (self == other)
-
 
5622
 
-
 
5623
class pushCourierDetailsForEcomExpress_result:
-
 
5624
  """
-
 
5625
  Attributes:
-
 
5626
   - success
-
 
5627
  """
-
 
5628
 
-
 
5629
  thrift_spec = (
-
 
5630
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
5631
  )
-
 
5632
 
-
 
5633
  def __init__(self, success=None,):
-
 
5634
    self.success = success
-
 
5635
 
-
 
5636
  def read(self, iprot):
-
 
5637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5639
      return
-
 
5640
    iprot.readStructBegin()
-
 
5641
    while True:
-
 
5642
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5643
      if ftype == TType.STOP:
-
 
5644
        break
-
 
5645
      if fid == 0:
-
 
5646
        if ftype == TType.BOOL:
-
 
5647
          self.success = iprot.readBool();
-
 
5648
        else:
-
 
5649
          iprot.skip(ftype)
-
 
5650
      else:
-
 
5651
        iprot.skip(ftype)
-
 
5652
      iprot.readFieldEnd()
-
 
5653
    iprot.readStructEnd()
-
 
5654
 
-
 
5655
  def write(self, oprot):
-
 
5656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5658
      return
-
 
5659
    oprot.writeStructBegin('pushCourierDetailsForEcomExpress_result')
-
 
5660
    if self.success is not None:
-
 
5661
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
5662
      oprot.writeBool(self.success)
-
 
5663
      oprot.writeFieldEnd()
-
 
5664
    oprot.writeFieldStop()
-
 
5665
    oprot.writeStructEnd()
-
 
5666
 
-
 
5667
  def validate(self):
5492
    return
5668
    return
5493
 
5669
 
5494
 
5670
 
5495
  def __repr__(self):
5671
  def __repr__(self):
5496
    L = ['%s=%r' % (key, value)
5672
    L = ['%s=%r' % (key, value)