Subversion Repositories SmartDukaan

Rev

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

Rev 12895 Rev 13146
Line 190... Line 190...
190
     - cod
190
     - cod
191
     - otgAvailable
191
     - otgAvailable
192
    """
192
    """
193
    pass
193
    pass
194
 
194
 
195
  def addNewAwbs(self, providerId, cod, awbs):
195
  def addNewAwbs(self, providerId, cod, awbs, awbUsedFor):
196
    """
196
    """
197
    Parameters:
197
    Parameters:
198
     - providerId
198
     - providerId
199
     - cod
199
     - cod
200
     - awbs
200
     - awbs
-
 
201
     - awbUsedFor
201
    """
202
    """
202
    pass
203
    pass
203
 
204
 
204
  def runLogisticsLocationInfoUpdate(self, logisticsLocationInfoList, runCompleteUpdate):
205
  def runLogisticsLocationInfoUpdate(self, logisticsLocationInfoList, runCompleteUpdate):
205
    """
206
    """
Line 223... Line 224...
223
     - pincode
224
     - pincode
224
     - whLocation
225
     - whLocation
225
    """
226
    """
226
    pass
227
    pass
227
 
228
 
-
 
229
  def getNewEmptyAwb(self, providerId, type, orderQuantity):
-
 
230
    """
-
 
231
    Parameters:
-
 
232
     - providerId
-
 
233
     - type
-
 
234
     - orderQuantity
-
 
235
    """
-
 
236
    pass
-
 
237
 
-
 
238
  def getProviderLimitDetailsForPincode(self, providerId, pincode):
-
 
239
    """
-
 
240
    Parameters:
-
 
241
     - providerId
-
 
242
     - pincode
-
 
243
    """
-
 
244
    pass
-
 
245
 
228
 
246
 
229
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
247
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
230
  def __init__(self, iprot, oprot=None):
248
  def __init__(self, iprot, oprot=None):
231
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
249
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
232
 
250
 
Line 853... Line 871...
853
    result = updatePincode_result()
871
    result = updatePincode_result()
854
    result.read(self._iprot)
872
    result.read(self._iprot)
855
    self._iprot.readMessageEnd()
873
    self._iprot.readMessageEnd()
856
    return
874
    return
857
 
875
 
858
  def addNewAwbs(self, providerId, cod, awbs):
876
  def addNewAwbs(self, providerId, cod, awbs, awbUsedFor):
859
    """
877
    """
860
    Parameters:
878
    Parameters:
861
     - providerId
879
     - providerId
862
     - cod
880
     - cod
863
     - awbs
881
     - awbs
-
 
882
     - awbUsedFor
864
    """
883
    """
865
    self.send_addNewAwbs(providerId, cod, awbs)
884
    self.send_addNewAwbs(providerId, cod, awbs, awbUsedFor)
866
    return self.recv_addNewAwbs()
885
    return self.recv_addNewAwbs()
867
 
886
 
868
  def send_addNewAwbs(self, providerId, cod, awbs):
887
  def send_addNewAwbs(self, providerId, cod, awbs, awbUsedFor):
869
    self._oprot.writeMessageBegin('addNewAwbs', TMessageType.CALL, self._seqid)
888
    self._oprot.writeMessageBegin('addNewAwbs', TMessageType.CALL, self._seqid)
870
    args = addNewAwbs_args()
889
    args = addNewAwbs_args()
871
    args.providerId = providerId
890
    args.providerId = providerId
872
    args.cod = cod
891
    args.cod = cod
873
    args.awbs = awbs
892
    args.awbs = awbs
-
 
893
    args.awbUsedFor = awbUsedFor
874
    args.write(self._oprot)
894
    args.write(self._oprot)
875
    self._oprot.writeMessageEnd()
895
    self._oprot.writeMessageEnd()
876
    self._oprot.trans.flush()
896
    self._oprot.trans.flush()
877
 
897
 
878
  def recv_addNewAwbs(self, ):
898
  def recv_addNewAwbs(self, ):
Line 981... Line 1001...
981
    self._iprot.readMessageEnd()
1001
    self._iprot.readMessageEnd()
982
    if result.success is not None:
1002
    if result.success is not None:
983
      return result.success
1003
      return result.success
984
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
1004
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
985
 
1005
 
-
 
1006
  def getNewEmptyAwb(self, providerId, type, orderQuantity):
-
 
1007
    """
-
 
1008
    Parameters:
-
 
1009
     - providerId
-
 
1010
     - type
-
 
1011
     - orderQuantity
-
 
1012
    """
-
 
1013
    self.send_getNewEmptyAwb(providerId, type, orderQuantity)
-
 
1014
    return self.recv_getNewEmptyAwb()
-
 
1015
 
-
 
1016
  def send_getNewEmptyAwb(self, providerId, type, orderQuantity):
-
 
1017
    self._oprot.writeMessageBegin('getNewEmptyAwb', TMessageType.CALL, self._seqid)
-
 
1018
    args = getNewEmptyAwb_args()
-
 
1019
    args.providerId = providerId
-
 
1020
    args.type = type
-
 
1021
    args.orderQuantity = orderQuantity
-
 
1022
    args.write(self._oprot)
-
 
1023
    self._oprot.writeMessageEnd()
-
 
1024
    self._oprot.trans.flush()
-
 
1025
 
-
 
1026
  def recv_getNewEmptyAwb(self, ):
-
 
1027
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1028
    if mtype == TMessageType.EXCEPTION:
-
 
1029
      x = TApplicationException()
-
 
1030
      x.read(self._iprot)
-
 
1031
      self._iprot.readMessageEnd()
-
 
1032
      raise x
-
 
1033
    result = getNewEmptyAwb_result()
-
 
1034
    result.read(self._iprot)
-
 
1035
    self._iprot.readMessageEnd()
-
 
1036
    if result.success is not None:
-
 
1037
      return result.success
-
 
1038
    if result.se is not None:
-
 
1039
      raise result.se
-
 
1040
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNewEmptyAwb failed: unknown result");
-
 
1041
 
-
 
1042
  def getProviderLimitDetailsForPincode(self, providerId, pincode):
-
 
1043
    """
-
 
1044
    Parameters:
-
 
1045
     - providerId
-
 
1046
     - pincode
-
 
1047
    """
-
 
1048
    self.send_getProviderLimitDetailsForPincode(providerId, pincode)
-
 
1049
    return self.recv_getProviderLimitDetailsForPincode()
-
 
1050
 
-
 
1051
  def send_getProviderLimitDetailsForPincode(self, providerId, pincode):
-
 
1052
    self._oprot.writeMessageBegin('getProviderLimitDetailsForPincode', TMessageType.CALL, self._seqid)
-
 
1053
    args = getProviderLimitDetailsForPincode_args()
-
 
1054
    args.providerId = providerId
-
 
1055
    args.pincode = pincode
-
 
1056
    args.write(self._oprot)
-
 
1057
    self._oprot.writeMessageEnd()
-
 
1058
    self._oprot.trans.flush()
-
 
1059
 
-
 
1060
  def recv_getProviderLimitDetailsForPincode(self, ):
-
 
1061
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1062
    if mtype == TMessageType.EXCEPTION:
-
 
1063
      x = TApplicationException()
-
 
1064
      x.read(self._iprot)
-
 
1065
      self._iprot.readMessageEnd()
-
 
1066
      raise x
-
 
1067
    result = getProviderLimitDetailsForPincode_result()
-
 
1068
    result.read(self._iprot)
-
 
1069
    self._iprot.readMessageEnd()
-
 
1070
    if result.success is not None:
-
 
1071
      return result.success
-
 
1072
    if result.se is not None:
-
 
1073
      raise result.se
-
 
1074
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProviderLimitDetailsForPincode failed: unknown result");
-
 
1075
 
986
 
1076
 
987
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1077
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
988
  def __init__(self, handler):
1078
  def __init__(self, handler):
989
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1079
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
990
    self._processMap["getProvider"] = Processor.process_getProvider
1080
    self._processMap["getProvider"] = Processor.process_getProvider
Line 1007... Line 1097...
1007
    self._processMap["updatePincode"] = Processor.process_updatePincode
1097
    self._processMap["updatePincode"] = Processor.process_updatePincode
1008
    self._processMap["addNewAwbs"] = Processor.process_addNewAwbs
1098
    self._processMap["addNewAwbs"] = Processor.process_addNewAwbs
1009
    self._processMap["runLogisticsLocationInfoUpdate"] = Processor.process_runLogisticsLocationInfoUpdate
1099
    self._processMap["runLogisticsLocationInfoUpdate"] = Processor.process_runLogisticsLocationInfoUpdate
1010
    self._processMap["adjustDeliveryDays"] = Processor.process_adjustDeliveryDays
1100
    self._processMap["adjustDeliveryDays"] = Processor.process_adjustDeliveryDays
1011
    self._processMap["getFirstDeliveryEstimateForWhLocation"] = Processor.process_getFirstDeliveryEstimateForWhLocation
1101
    self._processMap["getFirstDeliveryEstimateForWhLocation"] = Processor.process_getFirstDeliveryEstimateForWhLocation
-
 
1102
    self._processMap["getNewEmptyAwb"] = Processor.process_getNewEmptyAwb
-
 
1103
    self._processMap["getProviderLimitDetailsForPincode"] = Processor.process_getProviderLimitDetailsForPincode
1012
 
1104
 
1013
  def process(self, iprot, oprot):
1105
  def process(self, iprot, oprot):
1014
    (name, type, seqid) = iprot.readMessageBegin()
1106
    (name, type, seqid) = iprot.readMessageBegin()
1015
    if name not in self._processMap:
1107
    if name not in self._processMap:
1016
      iprot.skip(TType.STRUCT)
1108
      iprot.skip(TType.STRUCT)
Line 1256... Line 1348...
1256
  def process_addNewAwbs(self, seqid, iprot, oprot):
1348
  def process_addNewAwbs(self, seqid, iprot, oprot):
1257
    args = addNewAwbs_args()
1349
    args = addNewAwbs_args()
1258
    args.read(iprot)
1350
    args.read(iprot)
1259
    iprot.readMessageEnd()
1351
    iprot.readMessageEnd()
1260
    result = addNewAwbs_result()
1352
    result = addNewAwbs_result()
1261
    result.success = self._handler.addNewAwbs(args.providerId, args.cod, args.awbs)
1353
    result.success = self._handler.addNewAwbs(args.providerId, args.cod, args.awbs, args.awbUsedFor)
1262
    oprot.writeMessageBegin("addNewAwbs", TMessageType.REPLY, seqid)
1354
    oprot.writeMessageBegin("addNewAwbs", TMessageType.REPLY, seqid)
1263
    result.write(oprot)
1355
    result.write(oprot)
1264
    oprot.writeMessageEnd()
1356
    oprot.writeMessageEnd()
1265
    oprot.trans.flush()
1357
    oprot.trans.flush()
1266
 
1358
 
Line 1295... Line 1387...
1295
    oprot.writeMessageBegin("getFirstDeliveryEstimateForWhLocation", TMessageType.REPLY, seqid)
1387
    oprot.writeMessageBegin("getFirstDeliveryEstimateForWhLocation", TMessageType.REPLY, seqid)
1296
    result.write(oprot)
1388
    result.write(oprot)
1297
    oprot.writeMessageEnd()
1389
    oprot.writeMessageEnd()
1298
    oprot.trans.flush()
1390
    oprot.trans.flush()
1299
 
1391
 
-
 
1392
  def process_getNewEmptyAwb(self, seqid, iprot, oprot):
-
 
1393
    args = getNewEmptyAwb_args()
-
 
1394
    args.read(iprot)
-
 
1395
    iprot.readMessageEnd()
-
 
1396
    result = getNewEmptyAwb_result()
-
 
1397
    try:
-
 
1398
      result.success = self._handler.getNewEmptyAwb(args.providerId, args.type, args.orderQuantity)
-
 
1399
    except LogisticsServiceException, se:
-
 
1400
      result.se = se
-
 
1401
    oprot.writeMessageBegin("getNewEmptyAwb", TMessageType.REPLY, seqid)
-
 
1402
    result.write(oprot)
-
 
1403
    oprot.writeMessageEnd()
-
 
1404
    oprot.trans.flush()
-
 
1405
 
-
 
1406
  def process_getProviderLimitDetailsForPincode(self, seqid, iprot, oprot):
-
 
1407
    args = getProviderLimitDetailsForPincode_args()
-
 
1408
    args.read(iprot)
-
 
1409
    iprot.readMessageEnd()
-
 
1410
    result = getProviderLimitDetailsForPincode_result()
-
 
1411
    try:
-
 
1412
      result.success = self._handler.getProviderLimitDetailsForPincode(args.providerId, args.pincode)
-
 
1413
    except LogisticsServiceException, se:
-
 
1414
      result.se = se
-
 
1415
    oprot.writeMessageBegin("getProviderLimitDetailsForPincode", TMessageType.REPLY, seqid)
-
 
1416
    result.write(oprot)
-
 
1417
    oprot.writeMessageEnd()
-
 
1418
    oprot.trans.flush()
-
 
1419
 
1300
 
1420
 
1301
# HELPER FUNCTIONS AND STRUCTURES
1421
# HELPER FUNCTIONS AND STRUCTURES
1302
 
1422
 
1303
class getProvider_args:
1423
class getProvider_args:
1304
  """
1424
  """
Line 3829... Line 3949...
3829
  """
3949
  """
3830
  Attributes:
3950
  Attributes:
3831
   - providerId
3951
   - providerId
3832
   - cod
3952
   - cod
3833
   - awbs
3953
   - awbs
-
 
3954
   - awbUsedFor
3834
  """
3955
  """
3835
 
3956
 
3836
  thrift_spec = (
3957
  thrift_spec = (
3837
    None, # 0
3958
    None, # 0
3838
    (1, TType.I64, 'providerId', None, None, ), # 1
3959
    (1, TType.I64, 'providerId', None, None, ), # 1
3839
    (2, TType.BOOL, 'cod', None, None, ), # 2
3960
    (2, TType.BOOL, 'cod', None, None, ), # 2
3840
    (3, TType.LIST, 'awbs', (TType.STRING,None), None, ), # 3
3961
    (3, TType.LIST, 'awbs', (TType.STRING,None), None, ), # 3
-
 
3962
    (4, TType.I64, 'awbUsedFor', None, None, ), # 4
3841
  )
3963
  )
3842
 
3964
 
3843
  def __init__(self, providerId=None, cod=None, awbs=None,):
3965
  def __init__(self, providerId=None, cod=None, awbs=None, awbUsedFor=None,):
3844
    self.providerId = providerId
3966
    self.providerId = providerId
3845
    self.cod = cod
3967
    self.cod = cod
3846
    self.awbs = awbs
3968
    self.awbs = awbs
-
 
3969
    self.awbUsedFor = awbUsedFor
3847
 
3970
 
3848
  def read(self, iprot):
3971
  def read(self, iprot):
3849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3972
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3973
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3851
      return
3974
      return
Line 3872... Line 3995...
3872
            _elem47 = iprot.readString();
3995
            _elem47 = iprot.readString();
3873
            self.awbs.append(_elem47)
3996
            self.awbs.append(_elem47)
3874
          iprot.readListEnd()
3997
          iprot.readListEnd()
3875
        else:
3998
        else:
3876
          iprot.skip(ftype)
3999
          iprot.skip(ftype)
-
 
4000
      elif fid == 4:
-
 
4001
        if ftype == TType.I64:
-
 
4002
          self.awbUsedFor = iprot.readI64();
-
 
4003
        else:
-
 
4004
          iprot.skip(ftype)
3877
      else:
4005
      else:
3878
        iprot.skip(ftype)
4006
        iprot.skip(ftype)
3879
      iprot.readFieldEnd()
4007
      iprot.readFieldEnd()
3880
    iprot.readStructEnd()
4008
    iprot.readStructEnd()
3881
 
4009
 
Line 3897... Line 4025...
3897
      oprot.writeListBegin(TType.STRING, len(self.awbs))
4025
      oprot.writeListBegin(TType.STRING, len(self.awbs))
3898
      for iter48 in self.awbs:
4026
      for iter48 in self.awbs:
3899
        oprot.writeString(iter48)
4027
        oprot.writeString(iter48)
3900
      oprot.writeListEnd()
4028
      oprot.writeListEnd()
3901
      oprot.writeFieldEnd()
4029
      oprot.writeFieldEnd()
-
 
4030
    if self.awbUsedFor is not None:
-
 
4031
      oprot.writeFieldBegin('awbUsedFor', TType.I64, 4)
-
 
4032
      oprot.writeI64(self.awbUsedFor)
-
 
4033
      oprot.writeFieldEnd()
3902
    oprot.writeFieldStop()
4034
    oprot.writeFieldStop()
3903
    oprot.writeStructEnd()
4035
    oprot.writeStructEnd()
3904
 
4036
 
3905
  def validate(self):
4037
  def validate(self):
3906
    return
4038
    return
Line 4345... Line 4477...
4345
      oprot.writeFieldEnd()
4477
      oprot.writeFieldEnd()
4346
    oprot.writeFieldStop()
4478
    oprot.writeFieldStop()
4347
    oprot.writeStructEnd()
4479
    oprot.writeStructEnd()
4348
 
4480
 
4349
  def validate(self):
4481
  def validate(self):
-
 
4482
    return
-
 
4483
 
-
 
4484
 
-
 
4485
  def __repr__(self):
-
 
4486
    L = ['%s=%r' % (key, value)
-
 
4487
      for key, value in self.__dict__.iteritems()]
-
 
4488
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4489
 
-
 
4490
  def __eq__(self, other):
-
 
4491
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4492
 
-
 
4493
  def __ne__(self, other):
-
 
4494
    return not (self == other)
-
 
4495
 
-
 
4496
class getNewEmptyAwb_args:
-
 
4497
  """
-
 
4498
  Attributes:
-
 
4499
   - providerId
-
 
4500
   - type
-
 
4501
   - orderQuantity
-
 
4502
  """
-
 
4503
 
-
 
4504
  thrift_spec = (
-
 
4505
    None, # 0
-
 
4506
    (1, TType.I64, 'providerId', None, None, ), # 1
-
 
4507
    (2, TType.I32, 'type', None, None, ), # 2
-
 
4508
    (3, TType.I64, 'orderQuantity', None, None, ), # 3
-
 
4509
  )
-
 
4510
 
-
 
4511
  def __init__(self, providerId=None, type=None, orderQuantity=None,):
-
 
4512
    self.providerId = providerId
-
 
4513
    self.type = type
-
 
4514
    self.orderQuantity = orderQuantity
-
 
4515
 
-
 
4516
  def read(self, iprot):
-
 
4517
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4518
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4519
      return
-
 
4520
    iprot.readStructBegin()
-
 
4521
    while True:
-
 
4522
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4523
      if ftype == TType.STOP:
-
 
4524
        break
-
 
4525
      if fid == 1:
-
 
4526
        if ftype == TType.I64:
-
 
4527
          self.providerId = iprot.readI64();
-
 
4528
        else:
-
 
4529
          iprot.skip(ftype)
-
 
4530
      elif fid == 2:
-
 
4531
        if ftype == TType.I32:
-
 
4532
          self.type = iprot.readI32();
-
 
4533
        else:
-
 
4534
          iprot.skip(ftype)
-
 
4535
      elif fid == 3:
-
 
4536
        if ftype == TType.I64:
-
 
4537
          self.orderQuantity = iprot.readI64();
-
 
4538
        else:
-
 
4539
          iprot.skip(ftype)
-
 
4540
      else:
-
 
4541
        iprot.skip(ftype)
-
 
4542
      iprot.readFieldEnd()
-
 
4543
    iprot.readStructEnd()
-
 
4544
 
-
 
4545
  def write(self, oprot):
-
 
4546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4548
      return
-
 
4549
    oprot.writeStructBegin('getNewEmptyAwb_args')
-
 
4550
    if self.providerId is not None:
-
 
4551
      oprot.writeFieldBegin('providerId', TType.I64, 1)
-
 
4552
      oprot.writeI64(self.providerId)
-
 
4553
      oprot.writeFieldEnd()
-
 
4554
    if self.type is not None:
-
 
4555
      oprot.writeFieldBegin('type', TType.I32, 2)
-
 
4556
      oprot.writeI32(self.type)
-
 
4557
      oprot.writeFieldEnd()
-
 
4558
    if self.orderQuantity is not None:
-
 
4559
      oprot.writeFieldBegin('orderQuantity', TType.I64, 3)
-
 
4560
      oprot.writeI64(self.orderQuantity)
-
 
4561
      oprot.writeFieldEnd()
-
 
4562
    oprot.writeFieldStop()
-
 
4563
    oprot.writeStructEnd()
-
 
4564
 
-
 
4565
  def validate(self):
-
 
4566
    return
-
 
4567
 
-
 
4568
 
-
 
4569
  def __repr__(self):
-
 
4570
    L = ['%s=%r' % (key, value)
-
 
4571
      for key, value in self.__dict__.iteritems()]
-
 
4572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4573
 
-
 
4574
  def __eq__(self, other):
-
 
4575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4576
 
-
 
4577
  def __ne__(self, other):
-
 
4578
    return not (self == other)
-
 
4579
 
-
 
4580
class getNewEmptyAwb_result:
-
 
4581
  """
-
 
4582
  Attributes:
-
 
4583
   - success
-
 
4584
   - se
-
 
4585
  """
-
 
4586
 
-
 
4587
  thrift_spec = (
-
 
4588
    (0, TType.STRING, 'success', None, None, ), # 0
-
 
4589
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
-
 
4590
  )
-
 
4591
 
-
 
4592
  def __init__(self, success=None, se=None,):
-
 
4593
    self.success = success
-
 
4594
    self.se = se
-
 
4595
 
-
 
4596
  def read(self, iprot):
-
 
4597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4599
      return
-
 
4600
    iprot.readStructBegin()
-
 
4601
    while True:
-
 
4602
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4603
      if ftype == TType.STOP:
-
 
4604
        break
-
 
4605
      if fid == 0:
-
 
4606
        if ftype == TType.STRING:
-
 
4607
          self.success = iprot.readString();
-
 
4608
        else:
-
 
4609
          iprot.skip(ftype)
-
 
4610
      elif fid == 1:
-
 
4611
        if ftype == TType.STRUCT:
-
 
4612
          self.se = LogisticsServiceException()
-
 
4613
          self.se.read(iprot)
-
 
4614
        else:
-
 
4615
          iprot.skip(ftype)
-
 
4616
      else:
-
 
4617
        iprot.skip(ftype)
-
 
4618
      iprot.readFieldEnd()
-
 
4619
    iprot.readStructEnd()
-
 
4620
 
-
 
4621
  def write(self, oprot):
-
 
4622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4624
      return
-
 
4625
    oprot.writeStructBegin('getNewEmptyAwb_result')
-
 
4626
    if self.success is not None:
-
 
4627
      oprot.writeFieldBegin('success', TType.STRING, 0)
-
 
4628
      oprot.writeString(self.success)
-
 
4629
      oprot.writeFieldEnd()
-
 
4630
    if self.se is not None:
-
 
4631
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
-
 
4632
      self.se.write(oprot)
-
 
4633
      oprot.writeFieldEnd()
-
 
4634
    oprot.writeFieldStop()
-
 
4635
    oprot.writeStructEnd()
-
 
4636
 
-
 
4637
  def validate(self):
-
 
4638
    return
-
 
4639
 
-
 
4640
 
-
 
4641
  def __repr__(self):
-
 
4642
    L = ['%s=%r' % (key, value)
-
 
4643
      for key, value in self.__dict__.iteritems()]
-
 
4644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4645
 
-
 
4646
  def __eq__(self, other):
-
 
4647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4648
 
-
 
4649
  def __ne__(self, other):
-
 
4650
    return not (self == other)
-
 
4651
 
-
 
4652
class getProviderLimitDetailsForPincode_args:
-
 
4653
  """
-
 
4654
  Attributes:
-
 
4655
   - providerId
-
 
4656
   - pincode
-
 
4657
  """
-
 
4658
 
-
 
4659
  thrift_spec = (
-
 
4660
    None, # 0
-
 
4661
    (1, TType.I64, 'providerId', None, None, ), # 1
-
 
4662
    (2, TType.STRING, 'pincode', None, None, ), # 2
-
 
4663
  )
-
 
4664
 
-
 
4665
  def __init__(self, providerId=None, pincode=None,):
-
 
4666
    self.providerId = providerId
-
 
4667
    self.pincode = pincode
-
 
4668
 
-
 
4669
  def read(self, iprot):
-
 
4670
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4671
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4672
      return
-
 
4673
    iprot.readStructBegin()
-
 
4674
    while True:
-
 
4675
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4676
      if ftype == TType.STOP:
-
 
4677
        break
-
 
4678
      if fid == 1:
-
 
4679
        if ftype == TType.I64:
-
 
4680
          self.providerId = iprot.readI64();
-
 
4681
        else:
-
 
4682
          iprot.skip(ftype)
-
 
4683
      elif fid == 2:
-
 
4684
        if ftype == TType.STRING:
-
 
4685
          self.pincode = iprot.readString();
-
 
4686
        else:
-
 
4687
          iprot.skip(ftype)
-
 
4688
      else:
-
 
4689
        iprot.skip(ftype)
-
 
4690
      iprot.readFieldEnd()
-
 
4691
    iprot.readStructEnd()
-
 
4692
 
-
 
4693
  def write(self, oprot):
-
 
4694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4696
      return
-
 
4697
    oprot.writeStructBegin('getProviderLimitDetailsForPincode_args')
-
 
4698
    if self.providerId is not None:
-
 
4699
      oprot.writeFieldBegin('providerId', TType.I64, 1)
-
 
4700
      oprot.writeI64(self.providerId)
-
 
4701
      oprot.writeFieldEnd()
-
 
4702
    if self.pincode is not None:
-
 
4703
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
-
 
4704
      oprot.writeString(self.pincode)
-
 
4705
      oprot.writeFieldEnd()
-
 
4706
    oprot.writeFieldStop()
-
 
4707
    oprot.writeStructEnd()
-
 
4708
 
-
 
4709
  def validate(self):
-
 
4710
    return
-
 
4711
 
-
 
4712
 
-
 
4713
  def __repr__(self):
-
 
4714
    L = ['%s=%r' % (key, value)
-
 
4715
      for key, value in self.__dict__.iteritems()]
-
 
4716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4717
 
-
 
4718
  def __eq__(self, other):
-
 
4719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4720
 
-
 
4721
  def __ne__(self, other):
-
 
4722
    return not (self == other)
-
 
4723
 
-
 
4724
class getProviderLimitDetailsForPincode_result:
-
 
4725
  """
-
 
4726
  Attributes:
-
 
4727
   - success
-
 
4728
   - se
-
 
4729
  """
-
 
4730
 
-
 
4731
  thrift_spec = (
-
 
4732
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0
-
 
4733
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
-
 
4734
  )
-
 
4735
 
-
 
4736
  def __init__(self, success=None, se=None,):
-
 
4737
    self.success = success
-
 
4738
    self.se = se
-
 
4739
 
-
 
4740
  def read(self, iprot):
-
 
4741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4743
      return
-
 
4744
    iprot.readStructBegin()
-
 
4745
    while True:
-
 
4746
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4747
      if ftype == TType.STOP:
-
 
4748
        break
-
 
4749
      if fid == 0:
-
 
4750
        if ftype == TType.MAP:
-
 
4751
          self.success = {}
-
 
4752
          (_ktype57, _vtype58, _size56 ) = iprot.readMapBegin() 
-
 
4753
          for _i60 in xrange(_size56):
-
 
4754
            _key61 = iprot.readString();
-
 
4755
            _val62 = iprot.readString();
-
 
4756
            self.success[_key61] = _val62
-
 
4757
          iprot.readMapEnd()
-
 
4758
        else:
-
 
4759
          iprot.skip(ftype)
-
 
4760
      elif fid == 1:
-
 
4761
        if ftype == TType.STRUCT:
-
 
4762
          self.se = LogisticsServiceException()
-
 
4763
          self.se.read(iprot)
-
 
4764
        else:
-
 
4765
          iprot.skip(ftype)
-
 
4766
      else:
-
 
4767
        iprot.skip(ftype)
-
 
4768
      iprot.readFieldEnd()
-
 
4769
    iprot.readStructEnd()
-
 
4770
 
-
 
4771
  def write(self, oprot):
-
 
4772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4774
      return
-
 
4775
    oprot.writeStructBegin('getProviderLimitDetailsForPincode_result')
-
 
4776
    if self.success is not None:
-
 
4777
      oprot.writeFieldBegin('success', TType.MAP, 0)
-
 
4778
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
-
 
4779
      for kiter63,viter64 in self.success.items():
-
 
4780
        oprot.writeString(kiter63)
-
 
4781
        oprot.writeString(viter64)
-
 
4782
      oprot.writeMapEnd()
-
 
4783
      oprot.writeFieldEnd()
-
 
4784
    if self.se is not None:
-
 
4785
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
-
 
4786
      self.se.write(oprot)
-
 
4787
      oprot.writeFieldEnd()
-
 
4788
    oprot.writeFieldStop()
-
 
4789
    oprot.writeStructEnd()
-
 
4790
 
-
 
4791
  def validate(self):
4350
    return
4792
    return
4351
 
4793
 
4352
 
4794
 
4353
  def __repr__(self):
4795
  def __repr__(self):
4354
    L = ['%s=%r' % (key, value)
4796
    L = ['%s=%r' % (key, value)