Subversion Repositories SmartDukaan

Rev

Rev 5767 | Rev 6524 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
412 ashish 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
412 ashish 3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
3376 rajveer 8
import shop2020.thriftpy.generic.GenericService
412 ashish 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
412 ashish 13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
3376 rajveer 19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
669 chandransh 20
  def getProvider(self, providerId):
21
    """
22
    Returns a provider for a given provider ID. Throws an exception if none found.
3431 rajveer 23
 
669 chandransh 24
    Parameters:
25
     - providerId
26
    """
27
    pass
28
 
675 chandransh 29
  def getAllProviders(self, ):
30
    """
31
    Returns a list containing all the providers.
32
    """
33
    pass
34
 
4630 mandeep.dh 35
  def getLogisticsEstimation(self, itemId, destination_pin, type):
483 rajveer 36
    """
647 chandransh 37
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
38
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
39
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 40
 
483 rajveer 41
    Parameters:
647 chandransh 42
     - itemId
43
     - destination_pin
4630 mandeep.dh 44
     - type
483 rajveer 45
    """
46
    pass
47
 
5767 rajveer 48
  def getLogisticsInfo(self, destination_pincode, item_id, type, pickUp):
472 rajveer 49
    """
647 chandransh 50
    Same as above excpet that an airway bill number is also allocated and returned.
3431 rajveer 51
 
472 rajveer 52
    Parameters:
647 chandransh 53
     - destination_pincode
54
     - item_id
3044 chandransh 55
     - type
5767 rajveer 56
     - pickUp
472 rajveer 57
    """
58
    pass
59
 
5247 rajveer 60
  def getEmptyAWB(self, providerId, type):
412 ashish 61
    """
647 chandransh 62
    Returns an unused AWB number for the given provider.
3431 rajveer 63
 
412 ashish 64
    Parameters:
647 chandransh 65
     - providerId
5247 rajveer 66
     - type
412 ashish 67
    """
68
    pass
69
 
647 chandransh 70
  def getShipmentInfo(self, awb, providerId):
412 ashish 71
    """
647 chandransh 72
    Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
3431 rajveer 73
 
412 ashish 74
    Parameters:
75
     - awb
647 chandransh 76
     - providerId
412 ashish 77
    """
78
    pass
79
 
732 chandransh 80
  def getDestinationCode(self, providerId, pinCode):
81
    """
82
    Returns the short three letter code of a pincode for the given provider.
83
       Raises an exception if the pin code is not serviced by the given provider.
3431 rajveer 84
 
732 chandransh 85
    Parameters:
86
     - providerId
87
     - pinCode
88
    """
89
    pass
412 ashish 90
 
3103 chandransh 91
  def getFreeAwbCount(self, providerId, type):
1137 chandransh 92
    """
3103 chandransh 93
    Returns the number of unused AWB numbers for the given provider of the given type
3431 rajveer 94
 
1137 chandransh 95
    Parameters:
96
     - providerId
3103 chandransh 97
     - type
1137 chandransh 98
    """
99
    pass
732 chandransh 100
 
1730 ankur.sing 101
  def getHolidays(self, fromDate, toDate):
102
    """
103
    Returns list of Holiday dates between fromDate and toDate (both inclusive)
104
    fromDate should be passed as milliseconds corresponding to the start of the day.
105
    If fromDate is passed as -1, fromDate is not considered for filtering
106
    If toDate is passed as -1, toDate is not considered for filtering
3431 rajveer 107
 
1730 ankur.sing 108
    Parameters:
109
     - fromDate
110
     - toDate
111
    """
112
    pass
1137 chandransh 113
 
4934 amit.gupta 114
  def getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
115
    """
116
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
117
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
118
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 119
 
4934 amit.gupta 120
    Parameters:
121
     - catalogItemId
122
     - destination_pin
123
     - type
124
    """
125
    pass
126
 
5527 anupam.sin 127
  def getProviderForPickupType(self, pickUp):
128
    """
129
    Returns the id for a given pickUpType
4934 amit.gupta 130
 
5527 anupam.sin 131
    Parameters:
132
     - pickUp
133
    """
134
    pass
135
 
5553 rajveer 136
  def getAllPickupStores(self, ):
137
    pass
5527 anupam.sin 138
 
5553 rajveer 139
  def getPickupStore(self, storeId):
140
    """
141
    Parameters:
142
     - storeId
143
    """
144
    pass
145
 
5719 rajveer 146
  def getPickupStoreByHotspotId(self, hotspotId):
147
    """
148
    Parameters:
149
     - hotspotId
150
    """
151
    pass
5553 rajveer 152
 
6322 amar.kumar 153
  def addPincode(self, providerId, pincode, destCode, exp, cod, stationType):
154
    """
155
    Parameters:
156
     - providerId
157
     - pincode
158
     - destCode
159
     - exp
160
     - cod
161
     - stationType
162
    """
163
    pass
5719 rajveer 164
 
6322 amar.kumar 165
  def updatePincode(self, providerId, pincode, exp, cod):
166
    """
167
    Parameters:
168
     - providerId
169
     - pincode
170
     - exp
171
     - cod
172
    """
173
    pass
174
 
175
 
3376 rajveer 176
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
412 ashish 177
  def __init__(self, iprot, oprot=None):
3376 rajveer 178
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
412 ashish 179
 
669 chandransh 180
  def getProvider(self, providerId):
181
    """
182
    Returns a provider for a given provider ID. Throws an exception if none found.
3431 rajveer 183
 
669 chandransh 184
    Parameters:
185
     - providerId
186
    """
187
    self.send_getProvider(providerId)
188
    return self.recv_getProvider()
189
 
190
  def send_getProvider(self, providerId):
191
    self._oprot.writeMessageBegin('getProvider', TMessageType.CALL, self._seqid)
192
    args = getProvider_args()
193
    args.providerId = providerId
194
    args.write(self._oprot)
195
    self._oprot.writeMessageEnd()
196
    self._oprot.trans.flush()
197
 
198
  def recv_getProvider(self, ):
199
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
200
    if mtype == TMessageType.EXCEPTION:
201
      x = TApplicationException()
202
      x.read(self._iprot)
203
      self._iprot.readMessageEnd()
204
      raise x
205
    result = getProvider_result()
206
    result.read(self._iprot)
207
    self._iprot.readMessageEnd()
3431 rajveer 208
    if result.success is not None:
669 chandransh 209
      return result.success
3431 rajveer 210
    if result.lse is not None:
669 chandransh 211
      raise result.lse
212
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
213
 
675 chandransh 214
  def getAllProviders(self, ):
215
    """
216
    Returns a list containing all the providers.
217
    """
218
    self.send_getAllProviders()
219
    return self.recv_getAllProviders()
220
 
221
  def send_getAllProviders(self, ):
222
    self._oprot.writeMessageBegin('getAllProviders', TMessageType.CALL, self._seqid)
223
    args = getAllProviders_args()
224
    args.write(self._oprot)
225
    self._oprot.writeMessageEnd()
226
    self._oprot.trans.flush()
227
 
228
  def recv_getAllProviders(self, ):
229
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
230
    if mtype == TMessageType.EXCEPTION:
231
      x = TApplicationException()
232
      x.read(self._iprot)
233
      self._iprot.readMessageEnd()
234
      raise x
235
    result = getAllProviders_result()
236
    result.read(self._iprot)
237
    self._iprot.readMessageEnd()
3431 rajveer 238
    if result.success is not None:
675 chandransh 239
      return result.success
3431 rajveer 240
    if result.lse is not None:
675 chandransh 241
      raise result.lse
242
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
243
 
4630 mandeep.dh 244
  def getLogisticsEstimation(self, itemId, destination_pin, type):
483 rajveer 245
    """
647 chandransh 246
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
247
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
248
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 249
 
483 rajveer 250
    Parameters:
647 chandransh 251
     - itemId
252
     - destination_pin
4630 mandeep.dh 253
     - type
483 rajveer 254
    """
4630 mandeep.dh 255
    self.send_getLogisticsEstimation(itemId, destination_pin, type)
647 chandransh 256
    return self.recv_getLogisticsEstimation()
483 rajveer 257
 
4630 mandeep.dh 258
  def send_getLogisticsEstimation(self, itemId, destination_pin, type):
647 chandransh 259
    self._oprot.writeMessageBegin('getLogisticsEstimation', TMessageType.CALL, self._seqid)
260
    args = getLogisticsEstimation_args()
261
    args.itemId = itemId
262
    args.destination_pin = destination_pin
4630 mandeep.dh 263
    args.type = type
483 rajveer 264
    args.write(self._oprot)
265
    self._oprot.writeMessageEnd()
266
    self._oprot.trans.flush()
267
 
647 chandransh 268
  def recv_getLogisticsEstimation(self, ):
483 rajveer 269
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
270
    if mtype == TMessageType.EXCEPTION:
271
      x = TApplicationException()
272
      x.read(self._iprot)
273
      self._iprot.readMessageEnd()
274
      raise x
647 chandransh 275
    result = getLogisticsEstimation_result()
483 rajveer 276
    result.read(self._iprot)
277
    self._iprot.readMessageEnd()
3431 rajveer 278
    if result.success is not None:
483 rajveer 279
      return result.success
3431 rajveer 280
    if result.se is not None:
483 rajveer 281
      raise result.se
647 chandransh 282
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
483 rajveer 283
 
5767 rajveer 284
  def getLogisticsInfo(self, destination_pincode, item_id, type, pickUp):
472 rajveer 285
    """
647 chandransh 286
    Same as above excpet that an airway bill number is also allocated and returned.
3431 rajveer 287
 
472 rajveer 288
    Parameters:
647 chandransh 289
     - destination_pincode
290
     - item_id
3044 chandransh 291
     - type
5767 rajveer 292
     - pickUp
472 rajveer 293
    """
5767 rajveer 294
    self.send_getLogisticsInfo(destination_pincode, item_id, type, pickUp)
647 chandransh 295
    return self.recv_getLogisticsInfo()
472 rajveer 296
 
5767 rajveer 297
  def send_getLogisticsInfo(self, destination_pincode, item_id, type, pickUp):
647 chandransh 298
    self._oprot.writeMessageBegin('getLogisticsInfo', TMessageType.CALL, self._seqid)
299
    args = getLogisticsInfo_args()
300
    args.destination_pincode = destination_pincode
301
    args.item_id = item_id
3044 chandransh 302
    args.type = type
5767 rajveer 303
    args.pickUp = pickUp
472 rajveer 304
    args.write(self._oprot)
305
    self._oprot.writeMessageEnd()
306
    self._oprot.trans.flush()
307
 
647 chandransh 308
  def recv_getLogisticsInfo(self, ):
472 rajveer 309
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
310
    if mtype == TMessageType.EXCEPTION:
311
      x = TApplicationException()
312
      x.read(self._iprot)
313
      self._iprot.readMessageEnd()
314
      raise x
647 chandransh 315
    result = getLogisticsInfo_result()
472 rajveer 316
    result.read(self._iprot)
317
    self._iprot.readMessageEnd()
3431 rajveer 318
    if result.success is not None:
472 rajveer 319
      return result.success
3431 rajveer 320
    if result.se is not None:
472 rajveer 321
      raise result.se
647 chandransh 322
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
472 rajveer 323
 
5247 rajveer 324
  def getEmptyAWB(self, providerId, type):
412 ashish 325
    """
647 chandransh 326
    Returns an unused AWB number for the given provider.
3431 rajveer 327
 
412 ashish 328
    Parameters:
647 chandransh 329
     - providerId
5247 rajveer 330
     - type
412 ashish 331
    """
5247 rajveer 332
    self.send_getEmptyAWB(providerId, type)
412 ashish 333
    return self.recv_getEmptyAWB()
334
 
5247 rajveer 335
  def send_getEmptyAWB(self, providerId, type):
412 ashish 336
    self._oprot.writeMessageBegin('getEmptyAWB', TMessageType.CALL, self._seqid)
337
    args = getEmptyAWB_args()
647 chandransh 338
    args.providerId = providerId
5247 rajveer 339
    args.type = type
412 ashish 340
    args.write(self._oprot)
341
    self._oprot.writeMessageEnd()
342
    self._oprot.trans.flush()
343
 
344
  def recv_getEmptyAWB(self, ):
345
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
346
    if mtype == TMessageType.EXCEPTION:
347
      x = TApplicationException()
348
      x.read(self._iprot)
349
      self._iprot.readMessageEnd()
350
      raise x
351
    result = getEmptyAWB_result()
352
    result.read(self._iprot)
353
    self._iprot.readMessageEnd()
3431 rajveer 354
    if result.success is not None:
412 ashish 355
      return result.success
3431 rajveer 356
    if result.se is not None:
647 chandransh 357
      raise result.se
412 ashish 358
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
359
 
647 chandransh 360
  def getShipmentInfo(self, awb, providerId):
412 ashish 361
    """
647 chandransh 362
    Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
3431 rajveer 363
 
412 ashish 364
    Parameters:
365
     - awb
647 chandransh 366
     - providerId
412 ashish 367
    """
647 chandransh 368
    self.send_getShipmentInfo(awb, providerId)
412 ashish 369
    return self.recv_getShipmentInfo()
370
 
647 chandransh 371
  def send_getShipmentInfo(self, awb, providerId):
412 ashish 372
    self._oprot.writeMessageBegin('getShipmentInfo', TMessageType.CALL, self._seqid)
373
    args = getShipmentInfo_args()
374
    args.awb = awb
647 chandransh 375
    args.providerId = providerId
412 ashish 376
    args.write(self._oprot)
377
    self._oprot.writeMessageEnd()
378
    self._oprot.trans.flush()
379
 
380
  def recv_getShipmentInfo(self, ):
381
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
382
    if mtype == TMessageType.EXCEPTION:
383
      x = TApplicationException()
384
      x.read(self._iprot)
385
      self._iprot.readMessageEnd()
386
      raise x
387
    result = getShipmentInfo_result()
388
    result.read(self._iprot)
389
    self._iprot.readMessageEnd()
3431 rajveer 390
    if result.success is not None:
412 ashish 391
      return result.success
3431 rajveer 392
    if result.se is not None:
647 chandransh 393
      raise result.se
412 ashish 394
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
395
 
732 chandransh 396
  def getDestinationCode(self, providerId, pinCode):
397
    """
398
    Returns the short three letter code of a pincode for the given provider.
399
       Raises an exception if the pin code is not serviced by the given provider.
3431 rajveer 400
 
732 chandransh 401
    Parameters:
402
     - providerId
403
     - pinCode
404
    """
405
    self.send_getDestinationCode(providerId, pinCode)
406
    return self.recv_getDestinationCode()
412 ashish 407
 
732 chandransh 408
  def send_getDestinationCode(self, providerId, pinCode):
409
    self._oprot.writeMessageBegin('getDestinationCode', TMessageType.CALL, self._seqid)
410
    args = getDestinationCode_args()
411
    args.providerId = providerId
412
    args.pinCode = pinCode
413
    args.write(self._oprot)
414
    self._oprot.writeMessageEnd()
415
    self._oprot.trans.flush()
416
 
417
  def recv_getDestinationCode(self, ):
418
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
419
    if mtype == TMessageType.EXCEPTION:
420
      x = TApplicationException()
421
      x.read(self._iprot)
422
      self._iprot.readMessageEnd()
423
      raise x
424
    result = getDestinationCode_result()
425
    result.read(self._iprot)
426
    self._iprot.readMessageEnd()
3431 rajveer 427
    if result.success is not None:
732 chandransh 428
      return result.success
3431 rajveer 429
    if result.se is not None:
732 chandransh 430
      raise result.se
431
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
432
 
3103 chandransh 433
  def getFreeAwbCount(self, providerId, type):
1137 chandransh 434
    """
3103 chandransh 435
    Returns the number of unused AWB numbers for the given provider of the given type
3431 rajveer 436
 
1137 chandransh 437
    Parameters:
438
     - providerId
3103 chandransh 439
     - type
1137 chandransh 440
    """
3103 chandransh 441
    self.send_getFreeAwbCount(providerId, type)
1137 chandransh 442
    return self.recv_getFreeAwbCount()
732 chandransh 443
 
3103 chandransh 444
  def send_getFreeAwbCount(self, providerId, type):
1137 chandransh 445
    self._oprot.writeMessageBegin('getFreeAwbCount', TMessageType.CALL, self._seqid)
446
    args = getFreeAwbCount_args()
447
    args.providerId = providerId
3103 chandransh 448
    args.type = type
1137 chandransh 449
    args.write(self._oprot)
450
    self._oprot.writeMessageEnd()
451
    self._oprot.trans.flush()
452
 
453
  def recv_getFreeAwbCount(self, ):
454
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
455
    if mtype == TMessageType.EXCEPTION:
456
      x = TApplicationException()
457
      x.read(self._iprot)
458
      self._iprot.readMessageEnd()
459
      raise x
460
    result = getFreeAwbCount_result()
461
    result.read(self._iprot)
462
    self._iprot.readMessageEnd()
3431 rajveer 463
    if result.success is not None:
1137 chandransh 464
      return result.success
465
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
466
 
1730 ankur.sing 467
  def getHolidays(self, fromDate, toDate):
468
    """
469
    Returns list of Holiday dates between fromDate and toDate (both inclusive)
470
    fromDate should be passed as milliseconds corresponding to the start of the day.
471
    If fromDate is passed as -1, fromDate is not considered for filtering
472
    If toDate is passed as -1, toDate is not considered for filtering
3431 rajveer 473
 
1730 ankur.sing 474
    Parameters:
475
     - fromDate
476
     - toDate
477
    """
478
    self.send_getHolidays(fromDate, toDate)
479
    return self.recv_getHolidays()
1137 chandransh 480
 
1730 ankur.sing 481
  def send_getHolidays(self, fromDate, toDate):
482
    self._oprot.writeMessageBegin('getHolidays', TMessageType.CALL, self._seqid)
483
    args = getHolidays_args()
484
    args.fromDate = fromDate
485
    args.toDate = toDate
486
    args.write(self._oprot)
487
    self._oprot.writeMessageEnd()
488
    self._oprot.trans.flush()
489
 
490
  def recv_getHolidays(self, ):
491
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
492
    if mtype == TMessageType.EXCEPTION:
493
      x = TApplicationException()
494
      x.read(self._iprot)
495
      self._iprot.readMessageEnd()
496
      raise x
497
    result = getHolidays_result()
498
    result.read(self._iprot)
499
    self._iprot.readMessageEnd()
3431 rajveer 500
    if result.success is not None:
1730 ankur.sing 501
      return result.success
502
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
503
 
4934 amit.gupta 504
  def getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
505
    """
506
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
507
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
508
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 509
 
4934 amit.gupta 510
    Parameters:
511
     - catalogItemId
512
     - destination_pin
513
     - type
514
    """
515
    self.send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type)
516
    return self.recv_getEntityLogisticsEstimation()
517
 
518
  def send_getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
519
    self._oprot.writeMessageBegin('getEntityLogisticsEstimation', TMessageType.CALL, self._seqid)
520
    args = getEntityLogisticsEstimation_args()
521
    args.catalogItemId = catalogItemId
522
    args.destination_pin = destination_pin
523
    args.type = type
524
    args.write(self._oprot)
525
    self._oprot.writeMessageEnd()
526
    self._oprot.trans.flush()
527
 
528
  def recv_getEntityLogisticsEstimation(self, ):
529
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
530
    if mtype == TMessageType.EXCEPTION:
531
      x = TApplicationException()
532
      x.read(self._iprot)
533
      self._iprot.readMessageEnd()
534
      raise x
535
    result = getEntityLogisticsEstimation_result()
536
    result.read(self._iprot)
537
    self._iprot.readMessageEnd()
538
    if result.success is not None:
539
      return result.success
540
    if result.se is not None:
541
      raise result.se
542
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
543
 
5527 anupam.sin 544
  def getProviderForPickupType(self, pickUp):
545
    """
546
    Returns the id for a given pickUpType
4934 amit.gupta 547
 
5527 anupam.sin 548
    Parameters:
549
     - pickUp
550
    """
551
    self.send_getProviderForPickupType(pickUp)
552
    return self.recv_getProviderForPickupType()
553
 
554
  def send_getProviderForPickupType(self, pickUp):
555
    self._oprot.writeMessageBegin('getProviderForPickupType', TMessageType.CALL, self._seqid)
556
    args = getProviderForPickupType_args()
557
    args.pickUp = pickUp
558
    args.write(self._oprot)
559
    self._oprot.writeMessageEnd()
560
    self._oprot.trans.flush()
561
 
562
  def recv_getProviderForPickupType(self, ):
563
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
564
    if mtype == TMessageType.EXCEPTION:
565
      x = TApplicationException()
566
      x.read(self._iprot)
567
      self._iprot.readMessageEnd()
568
      raise x
569
    result = getProviderForPickupType_result()
570
    result.read(self._iprot)
571
    self._iprot.readMessageEnd()
572
    if result.success is not None:
573
      return result.success
574
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
575
 
5553 rajveer 576
  def getAllPickupStores(self, ):
577
    self.send_getAllPickupStores()
578
    return self.recv_getAllPickupStores()
5527 anupam.sin 579
 
5553 rajveer 580
  def send_getAllPickupStores(self, ):
581
    self._oprot.writeMessageBegin('getAllPickupStores', TMessageType.CALL, self._seqid)
582
    args = getAllPickupStores_args()
583
    args.write(self._oprot)
584
    self._oprot.writeMessageEnd()
585
    self._oprot.trans.flush()
586
 
587
  def recv_getAllPickupStores(self, ):
588
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
589
    if mtype == TMessageType.EXCEPTION:
590
      x = TApplicationException()
591
      x.read(self._iprot)
592
      self._iprot.readMessageEnd()
593
      raise x
594
    result = getAllPickupStores_result()
595
    result.read(self._iprot)
596
    self._iprot.readMessageEnd()
597
    if result.success is not None:
598
      return result.success
599
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
600
 
601
  def getPickupStore(self, storeId):
602
    """
603
    Parameters:
604
     - storeId
605
    """
606
    self.send_getPickupStore(storeId)
607
    return self.recv_getPickupStore()
608
 
609
  def send_getPickupStore(self, storeId):
610
    self._oprot.writeMessageBegin('getPickupStore', TMessageType.CALL, self._seqid)
611
    args = getPickupStore_args()
612
    args.storeId = storeId
613
    args.write(self._oprot)
614
    self._oprot.writeMessageEnd()
615
    self._oprot.trans.flush()
616
 
617
  def recv_getPickupStore(self, ):
618
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
619
    if mtype == TMessageType.EXCEPTION:
620
      x = TApplicationException()
621
      x.read(self._iprot)
622
      self._iprot.readMessageEnd()
623
      raise x
624
    result = getPickupStore_result()
625
    result.read(self._iprot)
626
    self._iprot.readMessageEnd()
627
    if result.success is not None:
628
      return result.success
629
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
630
 
5719 rajveer 631
  def getPickupStoreByHotspotId(self, hotspotId):
632
    """
633
    Parameters:
634
     - hotspotId
635
    """
636
    self.send_getPickupStoreByHotspotId(hotspotId)
637
    return self.recv_getPickupStoreByHotspotId()
5553 rajveer 638
 
5719 rajveer 639
  def send_getPickupStoreByHotspotId(self, hotspotId):
640
    self._oprot.writeMessageBegin('getPickupStoreByHotspotId', TMessageType.CALL, self._seqid)
641
    args = getPickupStoreByHotspotId_args()
642
    args.hotspotId = hotspotId
643
    args.write(self._oprot)
644
    self._oprot.writeMessageEnd()
645
    self._oprot.trans.flush()
646
 
647
  def recv_getPickupStoreByHotspotId(self, ):
648
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
649
    if mtype == TMessageType.EXCEPTION:
650
      x = TApplicationException()
651
      x.read(self._iprot)
652
      self._iprot.readMessageEnd()
653
      raise x
654
    result = getPickupStoreByHotspotId_result()
655
    result.read(self._iprot)
656
    self._iprot.readMessageEnd()
657
    if result.success is not None:
658
      return result.success
659
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
660
 
6322 amar.kumar 661
  def addPincode(self, providerId, pincode, destCode, exp, cod, stationType):
662
    """
663
    Parameters:
664
     - providerId
665
     - pincode
666
     - destCode
667
     - exp
668
     - cod
669
     - stationType
670
    """
671
    self.send_addPincode(providerId, pincode, destCode, exp, cod, stationType)
672
    self.recv_addPincode()
5719 rajveer 673
 
6322 amar.kumar 674
  def send_addPincode(self, providerId, pincode, destCode, exp, cod, stationType):
675
    self._oprot.writeMessageBegin('addPincode', TMessageType.CALL, self._seqid)
676
    args = addPincode_args()
677
    args.providerId = providerId
678
    args.pincode = pincode
679
    args.destCode = destCode
680
    args.exp = exp
681
    args.cod = cod
682
    args.stationType = stationType
683
    args.write(self._oprot)
684
    self._oprot.writeMessageEnd()
685
    self._oprot.trans.flush()
686
 
687
  def recv_addPincode(self, ):
688
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
689
    if mtype == TMessageType.EXCEPTION:
690
      x = TApplicationException()
691
      x.read(self._iprot)
692
      self._iprot.readMessageEnd()
693
      raise x
694
    result = addPincode_result()
695
    result.read(self._iprot)
696
    self._iprot.readMessageEnd()
697
    return
698
 
699
  def updatePincode(self, providerId, pincode, exp, cod):
700
    """
701
    Parameters:
702
     - providerId
703
     - pincode
704
     - exp
705
     - cod
706
    """
707
    self.send_updatePincode(providerId, pincode, exp, cod)
708
    self.recv_updatePincode()
709
 
710
  def send_updatePincode(self, providerId, pincode, exp, cod):
711
    self._oprot.writeMessageBegin('updatePincode', TMessageType.CALL, self._seqid)
712
    args = updatePincode_args()
713
    args.providerId = providerId
714
    args.pincode = pincode
715
    args.exp = exp
716
    args.cod = cod
717
    args.write(self._oprot)
718
    self._oprot.writeMessageEnd()
719
    self._oprot.trans.flush()
720
 
721
  def recv_updatePincode(self, ):
722
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
723
    if mtype == TMessageType.EXCEPTION:
724
      x = TApplicationException()
725
      x.read(self._iprot)
726
      self._iprot.readMessageEnd()
727
      raise x
728
    result = updatePincode_result()
729
    result.read(self._iprot)
730
    self._iprot.readMessageEnd()
731
    return
732
 
733
 
3376 rajveer 734
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
412 ashish 735
  def __init__(self, handler):
3376 rajveer 736
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
669 chandransh 737
    self._processMap["getProvider"] = Processor.process_getProvider
675 chandransh 738
    self._processMap["getAllProviders"] = Processor.process_getAllProviders
647 chandransh 739
    self._processMap["getLogisticsEstimation"] = Processor.process_getLogisticsEstimation
483 rajveer 740
    self._processMap["getLogisticsInfo"] = Processor.process_getLogisticsInfo
412 ashish 741
    self._processMap["getEmptyAWB"] = Processor.process_getEmptyAWB
742
    self._processMap["getShipmentInfo"] = Processor.process_getShipmentInfo
732 chandransh 743
    self._processMap["getDestinationCode"] = Processor.process_getDestinationCode
1137 chandransh 744
    self._processMap["getFreeAwbCount"] = Processor.process_getFreeAwbCount
1730 ankur.sing 745
    self._processMap["getHolidays"] = Processor.process_getHolidays
4934 amit.gupta 746
    self._processMap["getEntityLogisticsEstimation"] = Processor.process_getEntityLogisticsEstimation
5527 anupam.sin 747
    self._processMap["getProviderForPickupType"] = Processor.process_getProviderForPickupType
5553 rajveer 748
    self._processMap["getAllPickupStores"] = Processor.process_getAllPickupStores
749
    self._processMap["getPickupStore"] = Processor.process_getPickupStore
5719 rajveer 750
    self._processMap["getPickupStoreByHotspotId"] = Processor.process_getPickupStoreByHotspotId
6322 amar.kumar 751
    self._processMap["addPincode"] = Processor.process_addPincode
752
    self._processMap["updatePincode"] = Processor.process_updatePincode
412 ashish 753
 
754
  def process(self, iprot, oprot):
755
    (name, type, seqid) = iprot.readMessageBegin()
756
    if name not in self._processMap:
757
      iprot.skip(TType.STRUCT)
758
      iprot.readMessageEnd()
759
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
760
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
761
      x.write(oprot)
762
      oprot.writeMessageEnd()
763
      oprot.trans.flush()
764
      return
765
    else:
766
      self._processMap[name](self, seqid, iprot, oprot)
767
    return True
768
 
669 chandransh 769
  def process_getProvider(self, seqid, iprot, oprot):
770
    args = getProvider_args()
771
    args.read(iprot)
772
    iprot.readMessageEnd()
773
    result = getProvider_result()
774
    try:
775
      result.success = self._handler.getProvider(args.providerId)
776
    except LogisticsServiceException, lse:
777
      result.lse = lse
778
    oprot.writeMessageBegin("getProvider", TMessageType.REPLY, seqid)
779
    result.write(oprot)
780
    oprot.writeMessageEnd()
781
    oprot.trans.flush()
782
 
675 chandransh 783
  def process_getAllProviders(self, seqid, iprot, oprot):
784
    args = getAllProviders_args()
785
    args.read(iprot)
786
    iprot.readMessageEnd()
787
    result = getAllProviders_result()
788
    try:
789
      result.success = self._handler.getAllProviders()
790
    except LogisticsServiceException, lse:
791
      result.lse = lse
792
    oprot.writeMessageBegin("getAllProviders", TMessageType.REPLY, seqid)
793
    result.write(oprot)
794
    oprot.writeMessageEnd()
795
    oprot.trans.flush()
796
 
647 chandransh 797
  def process_getLogisticsEstimation(self, seqid, iprot, oprot):
798
    args = getLogisticsEstimation_args()
483 rajveer 799
    args.read(iprot)
800
    iprot.readMessageEnd()
647 chandransh 801
    result = getLogisticsEstimation_result()
483 rajveer 802
    try:
4630 mandeep.dh 803
      result.success = self._handler.getLogisticsEstimation(args.itemId, args.destination_pin, args.type)
483 rajveer 804
    except LogisticsServiceException, se:
805
      result.se = se
647 chandransh 806
    oprot.writeMessageBegin("getLogisticsEstimation", TMessageType.REPLY, seqid)
483 rajveer 807
    result.write(oprot)
808
    oprot.writeMessageEnd()
809
    oprot.trans.flush()
810
 
647 chandransh 811
  def process_getLogisticsInfo(self, seqid, iprot, oprot):
812
    args = getLogisticsInfo_args()
472 rajveer 813
    args.read(iprot)
814
    iprot.readMessageEnd()
647 chandransh 815
    result = getLogisticsInfo_result()
472 rajveer 816
    try:
5767 rajveer 817
      result.success = self._handler.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp)
472 rajveer 818
    except LogisticsServiceException, se:
819
      result.se = se
647 chandransh 820
    oprot.writeMessageBegin("getLogisticsInfo", TMessageType.REPLY, seqid)
472 rajveer 821
    result.write(oprot)
822
    oprot.writeMessageEnd()
823
    oprot.trans.flush()
824
 
412 ashish 825
  def process_getEmptyAWB(self, seqid, iprot, oprot):
826
    args = getEmptyAWB_args()
827
    args.read(iprot)
828
    iprot.readMessageEnd()
829
    result = getEmptyAWB_result()
647 chandransh 830
    try:
5247 rajveer 831
      result.success = self._handler.getEmptyAWB(args.providerId, args.type)
647 chandransh 832
    except LogisticsServiceException, se:
833
      result.se = se
412 ashish 834
    oprot.writeMessageBegin("getEmptyAWB", TMessageType.REPLY, seqid)
835
    result.write(oprot)
836
    oprot.writeMessageEnd()
837
    oprot.trans.flush()
838
 
839
  def process_getShipmentInfo(self, seqid, iprot, oprot):
840
    args = getShipmentInfo_args()
841
    args.read(iprot)
842
    iprot.readMessageEnd()
843
    result = getShipmentInfo_result()
647 chandransh 844
    try:
845
      result.success = self._handler.getShipmentInfo(args.awb, args.providerId)
846
    except LogisticsServiceException, se:
847
      result.se = se
412 ashish 848
    oprot.writeMessageBegin("getShipmentInfo", TMessageType.REPLY, seqid)
849
    result.write(oprot)
850
    oprot.writeMessageEnd()
851
    oprot.trans.flush()
852
 
732 chandransh 853
  def process_getDestinationCode(self, seqid, iprot, oprot):
854
    args = getDestinationCode_args()
855
    args.read(iprot)
856
    iprot.readMessageEnd()
857
    result = getDestinationCode_result()
858
    try:
859
      result.success = self._handler.getDestinationCode(args.providerId, args.pinCode)
860
    except LogisticsServiceException, se:
861
      result.se = se
862
    oprot.writeMessageBegin("getDestinationCode", TMessageType.REPLY, seqid)
863
    result.write(oprot)
864
    oprot.writeMessageEnd()
865
    oprot.trans.flush()
412 ashish 866
 
1137 chandransh 867
  def process_getFreeAwbCount(self, seqid, iprot, oprot):
868
    args = getFreeAwbCount_args()
869
    args.read(iprot)
870
    iprot.readMessageEnd()
871
    result = getFreeAwbCount_result()
3103 chandransh 872
    result.success = self._handler.getFreeAwbCount(args.providerId, args.type)
1137 chandransh 873
    oprot.writeMessageBegin("getFreeAwbCount", TMessageType.REPLY, seqid)
874
    result.write(oprot)
875
    oprot.writeMessageEnd()
876
    oprot.trans.flush()
732 chandransh 877
 
1730 ankur.sing 878
  def process_getHolidays(self, seqid, iprot, oprot):
879
    args = getHolidays_args()
880
    args.read(iprot)
881
    iprot.readMessageEnd()
882
    result = getHolidays_result()
883
    result.success = self._handler.getHolidays(args.fromDate, args.toDate)
884
    oprot.writeMessageBegin("getHolidays", TMessageType.REPLY, seqid)
885
    result.write(oprot)
886
    oprot.writeMessageEnd()
887
    oprot.trans.flush()
1137 chandransh 888
 
4934 amit.gupta 889
  def process_getEntityLogisticsEstimation(self, seqid, iprot, oprot):
890
    args = getEntityLogisticsEstimation_args()
891
    args.read(iprot)
892
    iprot.readMessageEnd()
893
    result = getEntityLogisticsEstimation_result()
894
    try:
895
      result.success = self._handler.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type)
896
    except LogisticsServiceException, se:
897
      result.se = se
898
    oprot.writeMessageBegin("getEntityLogisticsEstimation", TMessageType.REPLY, seqid)
899
    result.write(oprot)
900
    oprot.writeMessageEnd()
901
    oprot.trans.flush()
1730 ankur.sing 902
 
5527 anupam.sin 903
  def process_getProviderForPickupType(self, seqid, iprot, oprot):
904
    args = getProviderForPickupType_args()
905
    args.read(iprot)
906
    iprot.readMessageEnd()
907
    result = getProviderForPickupType_result()
908
    result.success = self._handler.getProviderForPickupType(args.pickUp)
909
    oprot.writeMessageBegin("getProviderForPickupType", TMessageType.REPLY, seqid)
910
    result.write(oprot)
911
    oprot.writeMessageEnd()
912
    oprot.trans.flush()
4934 amit.gupta 913
 
5553 rajveer 914
  def process_getAllPickupStores(self, seqid, iprot, oprot):
915
    args = getAllPickupStores_args()
916
    args.read(iprot)
917
    iprot.readMessageEnd()
918
    result = getAllPickupStores_result()
919
    result.success = self._handler.getAllPickupStores()
920
    oprot.writeMessageBegin("getAllPickupStores", TMessageType.REPLY, seqid)
921
    result.write(oprot)
922
    oprot.writeMessageEnd()
923
    oprot.trans.flush()
5527 anupam.sin 924
 
5553 rajveer 925
  def process_getPickupStore(self, seqid, iprot, oprot):
926
    args = getPickupStore_args()
927
    args.read(iprot)
928
    iprot.readMessageEnd()
929
    result = getPickupStore_result()
930
    result.success = self._handler.getPickupStore(args.storeId)
931
    oprot.writeMessageBegin("getPickupStore", TMessageType.REPLY, seqid)
932
    result.write(oprot)
933
    oprot.writeMessageEnd()
934
    oprot.trans.flush()
935
 
5719 rajveer 936
  def process_getPickupStoreByHotspotId(self, seqid, iprot, oprot):
937
    args = getPickupStoreByHotspotId_args()
938
    args.read(iprot)
939
    iprot.readMessageEnd()
940
    result = getPickupStoreByHotspotId_result()
941
    result.success = self._handler.getPickupStoreByHotspotId(args.hotspotId)
942
    oprot.writeMessageBegin("getPickupStoreByHotspotId", TMessageType.REPLY, seqid)
943
    result.write(oprot)
944
    oprot.writeMessageEnd()
945
    oprot.trans.flush()
5553 rajveer 946
 
6322 amar.kumar 947
  def process_addPincode(self, seqid, iprot, oprot):
948
    args = addPincode_args()
949
    args.read(iprot)
950
    iprot.readMessageEnd()
951
    result = addPincode_result()
952
    self._handler.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType)
953
    oprot.writeMessageBegin("addPincode", TMessageType.REPLY, seqid)
954
    result.write(oprot)
955
    oprot.writeMessageEnd()
956
    oprot.trans.flush()
5719 rajveer 957
 
6322 amar.kumar 958
  def process_updatePincode(self, seqid, iprot, oprot):
959
    args = updatePincode_args()
960
    args.read(iprot)
961
    iprot.readMessageEnd()
962
    result = updatePincode_result()
963
    self._handler.updatePincode(args.providerId, args.pincode, args.exp, args.cod)
964
    oprot.writeMessageBegin("updatePincode", TMessageType.REPLY, seqid)
965
    result.write(oprot)
966
    oprot.writeMessageEnd()
967
    oprot.trans.flush()
968
 
969
 
412 ashish 970
# HELPER FUNCTIONS AND STRUCTURES
971
 
669 chandransh 972
class getProvider_args:
973
  """
974
  Attributes:
975
   - providerId
976
  """
977
 
978
  thrift_spec = (
979
    None, # 0
980
    (1, TType.I64, 'providerId', None, None, ), # 1
981
  )
982
 
983
  def __init__(self, providerId=None,):
984
    self.providerId = providerId
985
 
986
  def read(self, iprot):
987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
989
      return
990
    iprot.readStructBegin()
991
    while True:
992
      (fname, ftype, fid) = iprot.readFieldBegin()
993
      if ftype == TType.STOP:
994
        break
995
      if fid == 1:
996
        if ftype == TType.I64:
997
          self.providerId = iprot.readI64();
998
        else:
999
          iprot.skip(ftype)
1000
      else:
1001
        iprot.skip(ftype)
1002
      iprot.readFieldEnd()
1003
    iprot.readStructEnd()
1004
 
1005
  def write(self, oprot):
1006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1008
      return
1009
    oprot.writeStructBegin('getProvider_args')
3431 rajveer 1010
    if self.providerId is not None:
669 chandransh 1011
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1012
      oprot.writeI64(self.providerId)
1013
      oprot.writeFieldEnd()
1014
    oprot.writeFieldStop()
1015
    oprot.writeStructEnd()
1016
 
3431 rajveer 1017
  def validate(self):
1018
    return
1019
 
1020
 
669 chandransh 1021
  def __repr__(self):
1022
    L = ['%s=%r' % (key, value)
1023
      for key, value in self.__dict__.iteritems()]
1024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1025
 
1026
  def __eq__(self, other):
1027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1028
 
1029
  def __ne__(self, other):
1030
    return not (self == other)
1031
 
1032
class getProvider_result:
1033
  """
1034
  Attributes:
1035
   - success
1036
   - lse
1037
  """
1038
 
1039
  thrift_spec = (
1040
    (0, TType.STRUCT, 'success', (Provider, Provider.thrift_spec), None, ), # 0
1041
    (1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1042
  )
1043
 
1044
  def __init__(self, success=None, lse=None,):
1045
    self.success = success
1046
    self.lse = lse
1047
 
1048
  def read(self, iprot):
1049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1051
      return
1052
    iprot.readStructBegin()
1053
    while True:
1054
      (fname, ftype, fid) = iprot.readFieldBegin()
1055
      if ftype == TType.STOP:
1056
        break
1057
      if fid == 0:
1058
        if ftype == TType.STRUCT:
1059
          self.success = Provider()
1060
          self.success.read(iprot)
1061
        else:
1062
          iprot.skip(ftype)
1063
      elif fid == 1:
1064
        if ftype == TType.STRUCT:
1065
          self.lse = LogisticsServiceException()
1066
          self.lse.read(iprot)
1067
        else:
1068
          iprot.skip(ftype)
1069
      else:
1070
        iprot.skip(ftype)
1071
      iprot.readFieldEnd()
1072
    iprot.readStructEnd()
1073
 
1074
  def write(self, oprot):
1075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1077
      return
1078
    oprot.writeStructBegin('getProvider_result')
3431 rajveer 1079
    if self.success is not None:
669 chandransh 1080
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1081
      self.success.write(oprot)
1082
      oprot.writeFieldEnd()
3431 rajveer 1083
    if self.lse is not None:
669 chandransh 1084
      oprot.writeFieldBegin('lse', TType.STRUCT, 1)
1085
      self.lse.write(oprot)
1086
      oprot.writeFieldEnd()
1087
    oprot.writeFieldStop()
1088
    oprot.writeStructEnd()
1089
 
3431 rajveer 1090
  def validate(self):
1091
    return
1092
 
1093
 
669 chandransh 1094
  def __repr__(self):
1095
    L = ['%s=%r' % (key, value)
1096
      for key, value in self.__dict__.iteritems()]
1097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1098
 
1099
  def __eq__(self, other):
1100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1101
 
1102
  def __ne__(self, other):
1103
    return not (self == other)
1104
 
675 chandransh 1105
class getAllProviders_args:
1106
 
1107
  thrift_spec = (
1108
  )
1109
 
1110
  def read(self, iprot):
1111
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1112
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1113
      return
1114
    iprot.readStructBegin()
1115
    while True:
1116
      (fname, ftype, fid) = iprot.readFieldBegin()
1117
      if ftype == TType.STOP:
1118
        break
1119
      else:
1120
        iprot.skip(ftype)
1121
      iprot.readFieldEnd()
1122
    iprot.readStructEnd()
1123
 
1124
  def write(self, oprot):
1125
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1126
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1127
      return
1128
    oprot.writeStructBegin('getAllProviders_args')
1129
    oprot.writeFieldStop()
1130
    oprot.writeStructEnd()
1131
 
3431 rajveer 1132
  def validate(self):
1133
    return
1134
 
1135
 
675 chandransh 1136
  def __repr__(self):
1137
    L = ['%s=%r' % (key, value)
1138
      for key, value in self.__dict__.iteritems()]
1139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1140
 
1141
  def __eq__(self, other):
1142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1143
 
1144
  def __ne__(self, other):
1145
    return not (self == other)
1146
 
1147
class getAllProviders_result:
1148
  """
1149
  Attributes:
1150
   - success
1151
   - lse
1152
  """
1153
 
1154
  thrift_spec = (
1155
    (0, TType.LIST, 'success', (TType.STRUCT,(Provider, Provider.thrift_spec)), None, ), # 0
1156
    (1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1157
  )
1158
 
1159
  def __init__(self, success=None, lse=None,):
1160
    self.success = success
1161
    self.lse = lse
1162
 
1163
  def read(self, iprot):
1164
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1165
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1166
      return
1167
    iprot.readStructBegin()
1168
    while True:
1169
      (fname, ftype, fid) = iprot.readFieldBegin()
1170
      if ftype == TType.STOP:
1171
        break
1172
      if fid == 0:
1173
        if ftype == TType.LIST:
1174
          self.success = []
3044 chandransh 1175
          (_etype12, _size9) = iprot.readListBegin()
1176
          for _i13 in xrange(_size9):
1177
            _elem14 = Provider()
1178
            _elem14.read(iprot)
1179
            self.success.append(_elem14)
675 chandransh 1180
          iprot.readListEnd()
1181
        else:
1182
          iprot.skip(ftype)
1183
      elif fid == 1:
1184
        if ftype == TType.STRUCT:
1185
          self.lse = LogisticsServiceException()
1186
          self.lse.read(iprot)
1187
        else:
1188
          iprot.skip(ftype)
1189
      else:
1190
        iprot.skip(ftype)
1191
      iprot.readFieldEnd()
1192
    iprot.readStructEnd()
1193
 
1194
  def write(self, oprot):
1195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1197
      return
1198
    oprot.writeStructBegin('getAllProviders_result')
3431 rajveer 1199
    if self.success is not None:
675 chandransh 1200
      oprot.writeFieldBegin('success', TType.LIST, 0)
1201
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3044 chandransh 1202
      for iter15 in self.success:
1203
        iter15.write(oprot)
675 chandransh 1204
      oprot.writeListEnd()
1205
      oprot.writeFieldEnd()
3431 rajveer 1206
    if self.lse is not None:
675 chandransh 1207
      oprot.writeFieldBegin('lse', TType.STRUCT, 1)
1208
      self.lse.write(oprot)
1209
      oprot.writeFieldEnd()
1210
    oprot.writeFieldStop()
1211
    oprot.writeStructEnd()
1212
 
3431 rajveer 1213
  def validate(self):
1214
    return
1215
 
1216
 
675 chandransh 1217
  def __repr__(self):
1218
    L = ['%s=%r' % (key, value)
1219
      for key, value in self.__dict__.iteritems()]
1220
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1221
 
1222
  def __eq__(self, other):
1223
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1224
 
1225
  def __ne__(self, other):
1226
    return not (self == other)
1227
 
647 chandransh 1228
class getLogisticsEstimation_args:
483 rajveer 1229
  """
1230
  Attributes:
647 chandransh 1231
   - itemId
1232
   - destination_pin
4630 mandeep.dh 1233
   - type
483 rajveer 1234
  """
1235
 
1236
  thrift_spec = (
1237
    None, # 0
647 chandransh 1238
    (1, TType.I64, 'itemId', None, None, ), # 1
1239
    (2, TType.STRING, 'destination_pin', None, None, ), # 2
4630 mandeep.dh 1240
    (3, TType.I32, 'type', None, None, ), # 3
483 rajveer 1241
  )
1242
 
4630 mandeep.dh 1243
  def __init__(self, itemId=None, destination_pin=None, type=None,):
647 chandransh 1244
    self.itemId = itemId
1245
    self.destination_pin = destination_pin
4630 mandeep.dh 1246
    self.type = type
483 rajveer 1247
 
1248
  def read(self, iprot):
1249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1251
      return
1252
    iprot.readStructBegin()
1253
    while True:
1254
      (fname, ftype, fid) = iprot.readFieldBegin()
1255
      if ftype == TType.STOP:
1256
        break
1257
      if fid == 1:
647 chandransh 1258
        if ftype == TType.I64:
1259
          self.itemId = iprot.readI64();
483 rajveer 1260
        else:
1261
          iprot.skip(ftype)
1262
      elif fid == 2:
1263
        if ftype == TType.STRING:
647 chandransh 1264
          self.destination_pin = iprot.readString();
483 rajveer 1265
        else:
1266
          iprot.skip(ftype)
4630 mandeep.dh 1267
      elif fid == 3:
1268
        if ftype == TType.I32:
1269
          self.type = iprot.readI32();
1270
        else:
1271
          iprot.skip(ftype)
483 rajveer 1272
      else:
1273
        iprot.skip(ftype)
1274
      iprot.readFieldEnd()
1275
    iprot.readStructEnd()
1276
 
1277
  def write(self, oprot):
1278
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1279
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1280
      return
647 chandransh 1281
    oprot.writeStructBegin('getLogisticsEstimation_args')
3431 rajveer 1282
    if self.itemId is not None:
647 chandransh 1283
      oprot.writeFieldBegin('itemId', TType.I64, 1)
1284
      oprot.writeI64(self.itemId)
483 rajveer 1285
      oprot.writeFieldEnd()
3431 rajveer 1286
    if self.destination_pin is not None:
647 chandransh 1287
      oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
1288
      oprot.writeString(self.destination_pin)
483 rajveer 1289
      oprot.writeFieldEnd()
4630 mandeep.dh 1290
    if self.type is not None:
1291
      oprot.writeFieldBegin('type', TType.I32, 3)
1292
      oprot.writeI32(self.type)
1293
      oprot.writeFieldEnd()
483 rajveer 1294
    oprot.writeFieldStop()
1295
    oprot.writeStructEnd()
1296
 
3431 rajveer 1297
  def validate(self):
1298
    return
1299
 
1300
 
483 rajveer 1301
  def __repr__(self):
1302
    L = ['%s=%r' % (key, value)
1303
      for key, value in self.__dict__.iteritems()]
1304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1305
 
1306
  def __eq__(self, other):
1307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1308
 
1309
  def __ne__(self, other):
1310
    return not (self == other)
1311
 
647 chandransh 1312
class getLogisticsEstimation_result:
483 rajveer 1313
  """
1314
  Attributes:
1315
   - success
1316
   - se
1317
  """
1318
 
1319
  thrift_spec = (
1320
    (0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
1321
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1322
  )
1323
 
1324
  def __init__(self, success=None, se=None,):
1325
    self.success = success
1326
    self.se = se
1327
 
1328
  def read(self, iprot):
1329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1331
      return
1332
    iprot.readStructBegin()
1333
    while True:
1334
      (fname, ftype, fid) = iprot.readFieldBegin()
1335
      if ftype == TType.STOP:
1336
        break
1337
      if fid == 0:
1338
        if ftype == TType.STRUCT:
1339
          self.success = LogisticsInfo()
1340
          self.success.read(iprot)
1341
        else:
1342
          iprot.skip(ftype)
1343
      elif fid == 1:
1344
        if ftype == TType.STRUCT:
1345
          self.se = LogisticsServiceException()
1346
          self.se.read(iprot)
1347
        else:
1348
          iprot.skip(ftype)
1349
      else:
1350
        iprot.skip(ftype)
1351
      iprot.readFieldEnd()
1352
    iprot.readStructEnd()
1353
 
1354
  def write(self, oprot):
1355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1357
      return
647 chandransh 1358
    oprot.writeStructBegin('getLogisticsEstimation_result')
3431 rajveer 1359
    if self.success is not None:
483 rajveer 1360
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1361
      self.success.write(oprot)
1362
      oprot.writeFieldEnd()
3431 rajveer 1363
    if self.se is not None:
483 rajveer 1364
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1365
      self.se.write(oprot)
1366
      oprot.writeFieldEnd()
1367
    oprot.writeFieldStop()
1368
    oprot.writeStructEnd()
1369
 
3431 rajveer 1370
  def validate(self):
1371
    return
1372
 
1373
 
483 rajveer 1374
  def __repr__(self):
1375
    L = ['%s=%r' % (key, value)
1376
      for key, value in self.__dict__.iteritems()]
1377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1378
 
1379
  def __eq__(self, other):
1380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1381
 
1382
  def __ne__(self, other):
1383
    return not (self == other)
1384
 
647 chandransh 1385
class getLogisticsInfo_args:
472 rajveer 1386
  """
1387
  Attributes:
647 chandransh 1388
   - destination_pincode
1389
   - item_id
3044 chandransh 1390
   - type
5767 rajveer 1391
   - pickUp
472 rajveer 1392
  """
1393
 
1394
  thrift_spec = (
1395
    None, # 0
647 chandransh 1396
    (1, TType.STRING, 'destination_pincode', None, None, ), # 1
716 rajveer 1397
    (2, TType.I64, 'item_id', None, None, ), # 2
3044 chandransh 1398
    (3, TType.I32, 'type', None, None, ), # 3
5767 rajveer 1399
    (4, TType.I32, 'pickUp', None, None, ), # 4
472 rajveer 1400
  )
1401
 
5767 rajveer 1402
  def __init__(self, destination_pincode=None, item_id=None, type=None, pickUp=None,):
647 chandransh 1403
    self.destination_pincode = destination_pincode
1404
    self.item_id = item_id
3044 chandransh 1405
    self.type = type
5767 rajveer 1406
    self.pickUp = pickUp
472 rajveer 1407
 
1408
  def read(self, iprot):
1409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1411
      return
1412
    iprot.readStructBegin()
1413
    while True:
1414
      (fname, ftype, fid) = iprot.readFieldBegin()
1415
      if ftype == TType.STOP:
1416
        break
1417
      if fid == 1:
647 chandransh 1418
        if ftype == TType.STRING:
1419
          self.destination_pincode = iprot.readString();
472 rajveer 1420
        else:
1421
          iprot.skip(ftype)
1422
      elif fid == 2:
716 rajveer 1423
        if ftype == TType.I64:
1424
          self.item_id = iprot.readI64();
472 rajveer 1425
        else:
1426
          iprot.skip(ftype)
3044 chandransh 1427
      elif fid == 3:
1428
        if ftype == TType.I32:
1429
          self.type = iprot.readI32();
1430
        else:
1431
          iprot.skip(ftype)
5767 rajveer 1432
      elif fid == 4:
1433
        if ftype == TType.I32:
1434
          self.pickUp = iprot.readI32();
1435
        else:
1436
          iprot.skip(ftype)
472 rajveer 1437
      else:
1438
        iprot.skip(ftype)
1439
      iprot.readFieldEnd()
1440
    iprot.readStructEnd()
1441
 
1442
  def write(self, oprot):
1443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1445
      return
647 chandransh 1446
    oprot.writeStructBegin('getLogisticsInfo_args')
3431 rajveer 1447
    if self.destination_pincode is not None:
647 chandransh 1448
      oprot.writeFieldBegin('destination_pincode', TType.STRING, 1)
1449
      oprot.writeString(self.destination_pincode)
472 rajveer 1450
      oprot.writeFieldEnd()
3431 rajveer 1451
    if self.item_id is not None:
716 rajveer 1452
      oprot.writeFieldBegin('item_id', TType.I64, 2)
1453
      oprot.writeI64(self.item_id)
472 rajveer 1454
      oprot.writeFieldEnd()
3431 rajveer 1455
    if self.type is not None:
3044 chandransh 1456
      oprot.writeFieldBegin('type', TType.I32, 3)
1457
      oprot.writeI32(self.type)
1458
      oprot.writeFieldEnd()
5767 rajveer 1459
    if self.pickUp is not None:
1460
      oprot.writeFieldBegin('pickUp', TType.I32, 4)
1461
      oprot.writeI32(self.pickUp)
1462
      oprot.writeFieldEnd()
472 rajveer 1463
    oprot.writeFieldStop()
1464
    oprot.writeStructEnd()
1465
 
3431 rajveer 1466
  def validate(self):
1467
    return
1468
 
1469
 
472 rajveer 1470
  def __repr__(self):
1471
    L = ['%s=%r' % (key, value)
1472
      for key, value in self.__dict__.iteritems()]
1473
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1474
 
1475
  def __eq__(self, other):
1476
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1477
 
1478
  def __ne__(self, other):
1479
    return not (self == other)
1480
 
647 chandransh 1481
class getLogisticsInfo_result:
472 rajveer 1482
  """
1483
  Attributes:
1484
   - success
1485
   - se
1486
  """
1487
 
1488
  thrift_spec = (
644 chandransh 1489
    (0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
472 rajveer 1490
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1491
  )
1492
 
1493
  def __init__(self, success=None, se=None,):
1494
    self.success = success
1495
    self.se = se
1496
 
1497
  def read(self, iprot):
1498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1500
      return
1501
    iprot.readStructBegin()
1502
    while True:
1503
      (fname, ftype, fid) = iprot.readFieldBegin()
1504
      if ftype == TType.STOP:
1505
        break
1506
      if fid == 0:
1507
        if ftype == TType.STRUCT:
644 chandransh 1508
          self.success = LogisticsInfo()
472 rajveer 1509
          self.success.read(iprot)
1510
        else:
1511
          iprot.skip(ftype)
1512
      elif fid == 1:
1513
        if ftype == TType.STRUCT:
1514
          self.se = LogisticsServiceException()
1515
          self.se.read(iprot)
1516
        else:
1517
          iprot.skip(ftype)
1518
      else:
1519
        iprot.skip(ftype)
1520
      iprot.readFieldEnd()
1521
    iprot.readStructEnd()
1522
 
1523
  def write(self, oprot):
1524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1526
      return
647 chandransh 1527
    oprot.writeStructBegin('getLogisticsInfo_result')
3431 rajveer 1528
    if self.success is not None:
472 rajveer 1529
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1530
      self.success.write(oprot)
1531
      oprot.writeFieldEnd()
3431 rajveer 1532
    if self.se is not None:
472 rajveer 1533
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1534
      self.se.write(oprot)
1535
      oprot.writeFieldEnd()
1536
    oprot.writeFieldStop()
1537
    oprot.writeStructEnd()
1538
 
3431 rajveer 1539
  def validate(self):
1540
    return
1541
 
1542
 
472 rajveer 1543
  def __repr__(self):
1544
    L = ['%s=%r' % (key, value)
1545
      for key, value in self.__dict__.iteritems()]
1546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1547
 
1548
  def __eq__(self, other):
1549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1550
 
1551
  def __ne__(self, other):
1552
    return not (self == other)
1553
 
412 ashish 1554
class getEmptyAWB_args:
1555
  """
1556
  Attributes:
647 chandransh 1557
   - providerId
5247 rajveer 1558
   - type
412 ashish 1559
  """
1560
 
5247 rajveer 1561
  thrift_spec = None
1562
  def __init__(self, providerId=None, type=None,):
647 chandransh 1563
    self.providerId = providerId
5247 rajveer 1564
    self.type = type
412 ashish 1565
 
1566
  def read(self, iprot):
1567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1569
      return
1570
    iprot.readStructBegin()
1571
    while True:
1572
      (fname, ftype, fid) = iprot.readFieldBegin()
1573
      if ftype == TType.STOP:
1574
        break
1575
      if fid == 1:
1576
        if ftype == TType.I64:
647 chandransh 1577
          self.providerId = iprot.readI64();
412 ashish 1578
        else:
1579
          iprot.skip(ftype)
5247 rajveer 1580
      elif fid == -1:
1581
        if ftype == TType.I32:
1582
          self.type = iprot.readI32();
1583
        else:
1584
          iprot.skip(ftype)
412 ashish 1585
      else:
1586
        iprot.skip(ftype)
1587
      iprot.readFieldEnd()
1588
    iprot.readStructEnd()
1589
 
1590
  def write(self, oprot):
1591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1593
      return
1594
    oprot.writeStructBegin('getEmptyAWB_args')
5247 rajveer 1595
    if self.type is not None:
1596
      oprot.writeFieldBegin('type', TType.I32, -1)
1597
      oprot.writeI32(self.type)
1598
      oprot.writeFieldEnd()
3431 rajveer 1599
    if self.providerId is not None:
647 chandransh 1600
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1601
      oprot.writeI64(self.providerId)
412 ashish 1602
      oprot.writeFieldEnd()
1603
    oprot.writeFieldStop()
1604
    oprot.writeStructEnd()
1605
 
3431 rajveer 1606
  def validate(self):
1607
    return
1608
 
1609
 
412 ashish 1610
  def __repr__(self):
1611
    L = ['%s=%r' % (key, value)
1612
      for key, value in self.__dict__.iteritems()]
1613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1614
 
1615
  def __eq__(self, other):
1616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1617
 
1618
  def __ne__(self, other):
1619
    return not (self == other)
1620
 
1621
class getEmptyAWB_result:
1622
  """
1623
  Attributes:
1624
   - success
647 chandransh 1625
   - se
412 ashish 1626
  """
1627
 
1628
  thrift_spec = (
1629
    (0, TType.STRING, 'success', None, None, ), # 0
647 chandransh 1630
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
412 ashish 1631
  )
1632
 
647 chandransh 1633
  def __init__(self, success=None, se=None,):
412 ashish 1634
    self.success = success
647 chandransh 1635
    self.se = se
412 ashish 1636
 
1637
  def read(self, iprot):
1638
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1639
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1640
      return
1641
    iprot.readStructBegin()
1642
    while True:
1643
      (fname, ftype, fid) = iprot.readFieldBegin()
1644
      if ftype == TType.STOP:
1645
        break
1646
      if fid == 0:
1647
        if ftype == TType.STRING:
1648
          self.success = iprot.readString();
1649
        else:
1650
          iprot.skip(ftype)
647 chandransh 1651
      elif fid == 1:
1652
        if ftype == TType.STRUCT:
1653
          self.se = LogisticsServiceException()
1654
          self.se.read(iprot)
1655
        else:
1656
          iprot.skip(ftype)
412 ashish 1657
      else:
1658
        iprot.skip(ftype)
1659
      iprot.readFieldEnd()
1660
    iprot.readStructEnd()
1661
 
1662
  def write(self, oprot):
1663
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1664
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1665
      return
1666
    oprot.writeStructBegin('getEmptyAWB_result')
3431 rajveer 1667
    if self.success is not None:
412 ashish 1668
      oprot.writeFieldBegin('success', TType.STRING, 0)
1669
      oprot.writeString(self.success)
1670
      oprot.writeFieldEnd()
3431 rajveer 1671
    if self.se is not None:
647 chandransh 1672
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1673
      self.se.write(oprot)
1674
      oprot.writeFieldEnd()
412 ashish 1675
    oprot.writeFieldStop()
1676
    oprot.writeStructEnd()
1677
 
3431 rajveer 1678
  def validate(self):
1679
    return
1680
 
1681
 
412 ashish 1682
  def __repr__(self):
1683
    L = ['%s=%r' % (key, value)
1684
      for key, value in self.__dict__.iteritems()]
1685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1686
 
1687
  def __eq__(self, other):
1688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1689
 
1690
  def __ne__(self, other):
1691
    return not (self == other)
1692
 
1693
class getShipmentInfo_args:
1694
  """
1695
  Attributes:
1696
   - awb
647 chandransh 1697
   - providerId
412 ashish 1698
  """
1699
 
1700
  thrift_spec = (
1701
    None, # 0
1702
    (1, TType.STRING, 'awb', None, None, ), # 1
647 chandransh 1703
    (2, TType.I64, 'providerId', None, None, ), # 2
412 ashish 1704
  )
1705
 
647 chandransh 1706
  def __init__(self, awb=None, providerId=None,):
412 ashish 1707
    self.awb = awb
647 chandransh 1708
    self.providerId = providerId
412 ashish 1709
 
1710
  def read(self, iprot):
1711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1713
      return
1714
    iprot.readStructBegin()
1715
    while True:
1716
      (fname, ftype, fid) = iprot.readFieldBegin()
1717
      if ftype == TType.STOP:
1718
        break
1719
      if fid == 1:
1720
        if ftype == TType.STRING:
1721
          self.awb = iprot.readString();
1722
        else:
1723
          iprot.skip(ftype)
647 chandransh 1724
      elif fid == 2:
1725
        if ftype == TType.I64:
1726
          self.providerId = iprot.readI64();
1727
        else:
1728
          iprot.skip(ftype)
412 ashish 1729
      else:
1730
        iprot.skip(ftype)
1731
      iprot.readFieldEnd()
1732
    iprot.readStructEnd()
1733
 
1734
  def write(self, oprot):
1735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1737
      return
1738
    oprot.writeStructBegin('getShipmentInfo_args')
3431 rajveer 1739
    if self.awb is not None:
412 ashish 1740
      oprot.writeFieldBegin('awb', TType.STRING, 1)
1741
      oprot.writeString(self.awb)
1742
      oprot.writeFieldEnd()
3431 rajveer 1743
    if self.providerId is not None:
647 chandransh 1744
      oprot.writeFieldBegin('providerId', TType.I64, 2)
1745
      oprot.writeI64(self.providerId)
1746
      oprot.writeFieldEnd()
412 ashish 1747
    oprot.writeFieldStop()
1748
    oprot.writeStructEnd()
1749
 
3431 rajveer 1750
  def validate(self):
1751
    return
1752
 
1753
 
412 ashish 1754
  def __repr__(self):
1755
    L = ['%s=%r' % (key, value)
1756
      for key, value in self.__dict__.iteritems()]
1757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1758
 
1759
  def __eq__(self, other):
1760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1761
 
1762
  def __ne__(self, other):
1763
    return not (self == other)
1764
 
1765
class getShipmentInfo_result:
1766
  """
1767
  Attributes:
1768
   - success
647 chandransh 1769
   - se
412 ashish 1770
  """
1771
 
1772
  thrift_spec = (
644 chandransh 1773
    (0, TType.LIST, 'success', (TType.STRUCT,(AwbUpdate, AwbUpdate.thrift_spec)), None, ), # 0
647 chandransh 1774
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
412 ashish 1775
  )
1776
 
647 chandransh 1777
  def __init__(self, success=None, se=None,):
412 ashish 1778
    self.success = success
647 chandransh 1779
    self.se = se
412 ashish 1780
 
1781
  def read(self, iprot):
1782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1784
      return
1785
    iprot.readStructBegin()
1786
    while True:
1787
      (fname, ftype, fid) = iprot.readFieldBegin()
1788
      if ftype == TType.STOP:
1789
        break
1790
      if fid == 0:
1791
        if ftype == TType.LIST:
1792
          self.success = []
3044 chandransh 1793
          (_etype19, _size16) = iprot.readListBegin()
1794
          for _i20 in xrange(_size16):
1795
            _elem21 = AwbUpdate()
1796
            _elem21.read(iprot)
1797
            self.success.append(_elem21)
412 ashish 1798
          iprot.readListEnd()
1799
        else:
1800
          iprot.skip(ftype)
647 chandransh 1801
      elif fid == 1:
1802
        if ftype == TType.STRUCT:
1803
          self.se = LogisticsServiceException()
1804
          self.se.read(iprot)
1805
        else:
1806
          iprot.skip(ftype)
412 ashish 1807
      else:
1808
        iprot.skip(ftype)
1809
      iprot.readFieldEnd()
1810
    iprot.readStructEnd()
1811
 
1812
  def write(self, oprot):
1813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1815
      return
644 chandransh 1816
    oprot.writeStructBegin('getShipmentInfo_result')
3431 rajveer 1817
    if self.success is not None:
412 ashish 1818
      oprot.writeFieldBegin('success', TType.LIST, 0)
1819
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3044 chandransh 1820
      for iter22 in self.success:
1821
        iter22.write(oprot)
412 ashish 1822
      oprot.writeListEnd()
1823
      oprot.writeFieldEnd()
3431 rajveer 1824
    if self.se is not None:
647 chandransh 1825
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1826
      self.se.write(oprot)
1827
      oprot.writeFieldEnd()
412 ashish 1828
    oprot.writeFieldStop()
1829
    oprot.writeStructEnd()
1830
 
3431 rajveer 1831
  def validate(self):
1832
    return
1833
 
1834
 
412 ashish 1835
  def __repr__(self):
1836
    L = ['%s=%r' % (key, value)
1837
      for key, value in self.__dict__.iteritems()]
1838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1839
 
1840
  def __eq__(self, other):
1841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1842
 
1843
  def __ne__(self, other):
1844
    return not (self == other)
1845
 
732 chandransh 1846
class getDestinationCode_args:
1847
  """
1848
  Attributes:
1849
   - providerId
1850
   - pinCode
1851
  """
412 ashish 1852
 
732 chandransh 1853
  thrift_spec = (
1854
    None, # 0
1855
    (1, TType.I64, 'providerId', None, None, ), # 1
1856
    (2, TType.STRING, 'pinCode', None, None, ), # 2
1857
  )
1858
 
1859
  def __init__(self, providerId=None, pinCode=None,):
1860
    self.providerId = providerId
1861
    self.pinCode = pinCode
1862
 
1863
  def read(self, iprot):
1864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1866
      return
1867
    iprot.readStructBegin()
1868
    while True:
1869
      (fname, ftype, fid) = iprot.readFieldBegin()
1870
      if ftype == TType.STOP:
1871
        break
1872
      if fid == 1:
1873
        if ftype == TType.I64:
1874
          self.providerId = iprot.readI64();
1875
        else:
1876
          iprot.skip(ftype)
1877
      elif fid == 2:
1878
        if ftype == TType.STRING:
1879
          self.pinCode = iprot.readString();
1880
        else:
1881
          iprot.skip(ftype)
1882
      else:
1883
        iprot.skip(ftype)
1884
      iprot.readFieldEnd()
1885
    iprot.readStructEnd()
1886
 
1887
  def write(self, oprot):
1888
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1889
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1890
      return
1891
    oprot.writeStructBegin('getDestinationCode_args')
3431 rajveer 1892
    if self.providerId is not None:
732 chandransh 1893
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1894
      oprot.writeI64(self.providerId)
1895
      oprot.writeFieldEnd()
3431 rajveer 1896
    if self.pinCode is not None:
732 chandransh 1897
      oprot.writeFieldBegin('pinCode', TType.STRING, 2)
1898
      oprot.writeString(self.pinCode)
1899
      oprot.writeFieldEnd()
1900
    oprot.writeFieldStop()
1901
    oprot.writeStructEnd()
1902
 
3431 rajveer 1903
  def validate(self):
1904
    return
1905
 
1906
 
732 chandransh 1907
  def __repr__(self):
1908
    L = ['%s=%r' % (key, value)
1909
      for key, value in self.__dict__.iteritems()]
1910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1911
 
1912
  def __eq__(self, other):
1913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1914
 
1915
  def __ne__(self, other):
1916
    return not (self == other)
1917
 
1918
class getDestinationCode_result:
1919
  """
1920
  Attributes:
1921
   - success
1922
   - se
1923
  """
1924
 
1925
  thrift_spec = (
1926
    (0, TType.STRING, 'success', None, None, ), # 0
1927
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1928
  )
1929
 
1930
  def __init__(self, success=None, se=None,):
1931
    self.success = success
1932
    self.se = se
1933
 
1934
  def read(self, iprot):
1935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1937
      return
1938
    iprot.readStructBegin()
1939
    while True:
1940
      (fname, ftype, fid) = iprot.readFieldBegin()
1941
      if ftype == TType.STOP:
1942
        break
1943
      if fid == 0:
1944
        if ftype == TType.STRING:
1945
          self.success = iprot.readString();
1946
        else:
1947
          iprot.skip(ftype)
1948
      elif fid == 1:
1949
        if ftype == TType.STRUCT:
1950
          self.se = LogisticsServiceException()
1951
          self.se.read(iprot)
1952
        else:
1953
          iprot.skip(ftype)
1954
      else:
1955
        iprot.skip(ftype)
1956
      iprot.readFieldEnd()
1957
    iprot.readStructEnd()
1958
 
1959
  def write(self, oprot):
1960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1961
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1962
      return
1963
    oprot.writeStructBegin('getDestinationCode_result')
3431 rajveer 1964
    if self.success is not None:
732 chandransh 1965
      oprot.writeFieldBegin('success', TType.STRING, 0)
1966
      oprot.writeString(self.success)
1967
      oprot.writeFieldEnd()
3431 rajveer 1968
    if self.se is not None:
732 chandransh 1969
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1970
      self.se.write(oprot)
1971
      oprot.writeFieldEnd()
1972
    oprot.writeFieldStop()
1973
    oprot.writeStructEnd()
1974
 
3431 rajveer 1975
  def validate(self):
1976
    return
1977
 
1978
 
732 chandransh 1979
  def __repr__(self):
1980
    L = ['%s=%r' % (key, value)
1981
      for key, value in self.__dict__.iteritems()]
1982
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1983
 
1984
  def __eq__(self, other):
1985
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1986
 
1987
  def __ne__(self, other):
1988
    return not (self == other)
1989
 
1137 chandransh 1990
class getFreeAwbCount_args:
1991
  """
1992
  Attributes:
1993
   - providerId
3103 chandransh 1994
   - type
1137 chandransh 1995
  """
732 chandransh 1996
 
1137 chandransh 1997
  thrift_spec = (
1998
    None, # 0
1999
    (1, TType.I64, 'providerId', None, None, ), # 1
3103 chandransh 2000
    (2, TType.STRING, 'type', None, None, ), # 2
1137 chandransh 2001
  )
2002
 
3103 chandransh 2003
  def __init__(self, providerId=None, type=None,):
1137 chandransh 2004
    self.providerId = providerId
3103 chandransh 2005
    self.type = type
1137 chandransh 2006
 
2007
  def read(self, iprot):
2008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2010
      return
2011
    iprot.readStructBegin()
2012
    while True:
2013
      (fname, ftype, fid) = iprot.readFieldBegin()
2014
      if ftype == TType.STOP:
2015
        break
2016
      if fid == 1:
2017
        if ftype == TType.I64:
2018
          self.providerId = iprot.readI64();
2019
        else:
2020
          iprot.skip(ftype)
3103 chandransh 2021
      elif fid == 2:
2022
        if ftype == TType.STRING:
2023
          self.type = iprot.readString();
2024
        else:
2025
          iprot.skip(ftype)
1137 chandransh 2026
      else:
2027
        iprot.skip(ftype)
2028
      iprot.readFieldEnd()
2029
    iprot.readStructEnd()
2030
 
2031
  def write(self, oprot):
2032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2034
      return
2035
    oprot.writeStructBegin('getFreeAwbCount_args')
3431 rajveer 2036
    if self.providerId is not None:
1137 chandransh 2037
      oprot.writeFieldBegin('providerId', TType.I64, 1)
2038
      oprot.writeI64(self.providerId)
2039
      oprot.writeFieldEnd()
3431 rajveer 2040
    if self.type is not None:
3103 chandransh 2041
      oprot.writeFieldBegin('type', TType.STRING, 2)
2042
      oprot.writeString(self.type)
2043
      oprot.writeFieldEnd()
1137 chandransh 2044
    oprot.writeFieldStop()
2045
    oprot.writeStructEnd()
2046
 
3431 rajveer 2047
  def validate(self):
2048
    return
2049
 
2050
 
1137 chandransh 2051
  def __repr__(self):
2052
    L = ['%s=%r' % (key, value)
2053
      for key, value in self.__dict__.iteritems()]
2054
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2055
 
2056
  def __eq__(self, other):
2057
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2058
 
2059
  def __ne__(self, other):
2060
    return not (self == other)
2061
 
2062
class getFreeAwbCount_result:
2063
  """
2064
  Attributes:
2065
   - success
2066
  """
2067
 
2068
  thrift_spec = (
2069
    (0, TType.I64, 'success', None, None, ), # 0
2070
  )
2071
 
2072
  def __init__(self, success=None,):
2073
    self.success = success
2074
 
2075
  def read(self, iprot):
2076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2078
      return
2079
    iprot.readStructBegin()
2080
    while True:
2081
      (fname, ftype, fid) = iprot.readFieldBegin()
2082
      if ftype == TType.STOP:
2083
        break
2084
      if fid == 0:
2085
        if ftype == TType.I64:
2086
          self.success = iprot.readI64();
2087
        else:
2088
          iprot.skip(ftype)
2089
      else:
2090
        iprot.skip(ftype)
2091
      iprot.readFieldEnd()
2092
    iprot.readStructEnd()
2093
 
2094
  def write(self, oprot):
2095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2097
      return
2098
    oprot.writeStructBegin('getFreeAwbCount_result')
3431 rajveer 2099
    if self.success is not None:
1137 chandransh 2100
      oprot.writeFieldBegin('success', TType.I64, 0)
2101
      oprot.writeI64(self.success)
2102
      oprot.writeFieldEnd()
2103
    oprot.writeFieldStop()
2104
    oprot.writeStructEnd()
2105
 
3431 rajveer 2106
  def validate(self):
2107
    return
2108
 
2109
 
1137 chandransh 2110
  def __repr__(self):
2111
    L = ['%s=%r' % (key, value)
2112
      for key, value in self.__dict__.iteritems()]
2113
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2114
 
2115
  def __eq__(self, other):
2116
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2117
 
2118
  def __ne__(self, other):
2119
    return not (self == other)
2120
 
1730 ankur.sing 2121
class getHolidays_args:
2122
  """
2123
  Attributes:
2124
   - fromDate
2125
   - toDate
2126
  """
1137 chandransh 2127
 
1730 ankur.sing 2128
  thrift_spec = (
2129
    None, # 0
2130
    (1, TType.I64, 'fromDate', None, None, ), # 1
2131
    (2, TType.I64, 'toDate', None, None, ), # 2
2132
  )
2133
 
2134
  def __init__(self, fromDate=None, toDate=None,):
2135
    self.fromDate = fromDate
2136
    self.toDate = toDate
2137
 
2138
  def read(self, iprot):
2139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2141
      return
2142
    iprot.readStructBegin()
2143
    while True:
2144
      (fname, ftype, fid) = iprot.readFieldBegin()
2145
      if ftype == TType.STOP:
2146
        break
2147
      if fid == 1:
2148
        if ftype == TType.I64:
2149
          self.fromDate = iprot.readI64();
2150
        else:
2151
          iprot.skip(ftype)
2152
      elif fid == 2:
2153
        if ftype == TType.I64:
2154
          self.toDate = iprot.readI64();
2155
        else:
2156
          iprot.skip(ftype)
2157
      else:
2158
        iprot.skip(ftype)
2159
      iprot.readFieldEnd()
2160
    iprot.readStructEnd()
2161
 
2162
  def write(self, oprot):
2163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2165
      return
2166
    oprot.writeStructBegin('getHolidays_args')
3431 rajveer 2167
    if self.fromDate is not None:
1730 ankur.sing 2168
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
2169
      oprot.writeI64(self.fromDate)
2170
      oprot.writeFieldEnd()
3431 rajveer 2171
    if self.toDate is not None:
1730 ankur.sing 2172
      oprot.writeFieldBegin('toDate', TType.I64, 2)
2173
      oprot.writeI64(self.toDate)
2174
      oprot.writeFieldEnd()
2175
    oprot.writeFieldStop()
2176
    oprot.writeStructEnd()
2177
 
3431 rajveer 2178
  def validate(self):
2179
    return
2180
 
2181
 
1730 ankur.sing 2182
  def __repr__(self):
2183
    L = ['%s=%r' % (key, value)
2184
      for key, value in self.__dict__.iteritems()]
2185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2186
 
2187
  def __eq__(self, other):
2188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2189
 
2190
  def __ne__(self, other):
2191
    return not (self == other)
2192
 
2193
class getHolidays_result:
2194
  """
2195
  Attributes:
2196
   - success
2197
  """
2198
 
2199
  thrift_spec = (
2200
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
2201
  )
2202
 
2203
  def __init__(self, success=None,):
2204
    self.success = success
2205
 
2206
  def read(self, iprot):
2207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2209
      return
2210
    iprot.readStructBegin()
2211
    while True:
2212
      (fname, ftype, fid) = iprot.readFieldBegin()
2213
      if ftype == TType.STOP:
2214
        break
2215
      if fid == 0:
2216
        if ftype == TType.LIST:
2217
          self.success = []
3044 chandransh 2218
          (_etype26, _size23) = iprot.readListBegin()
2219
          for _i27 in xrange(_size23):
2220
            _elem28 = iprot.readI64();
2221
            self.success.append(_elem28)
1730 ankur.sing 2222
          iprot.readListEnd()
2223
        else:
2224
          iprot.skip(ftype)
2225
      else:
2226
        iprot.skip(ftype)
2227
      iprot.readFieldEnd()
2228
    iprot.readStructEnd()
2229
 
2230
  def write(self, oprot):
2231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2233
      return
2234
    oprot.writeStructBegin('getHolidays_result')
3431 rajveer 2235
    if self.success is not None:
1730 ankur.sing 2236
      oprot.writeFieldBegin('success', TType.LIST, 0)
2237
      oprot.writeListBegin(TType.I64, len(self.success))
3044 chandransh 2238
      for iter29 in self.success:
2239
        oprot.writeI64(iter29)
1730 ankur.sing 2240
      oprot.writeListEnd()
2241
      oprot.writeFieldEnd()
2242
    oprot.writeFieldStop()
2243
    oprot.writeStructEnd()
2244
 
3431 rajveer 2245
  def validate(self):
2246
    return
2247
 
2248
 
1730 ankur.sing 2249
  def __repr__(self):
2250
    L = ['%s=%r' % (key, value)
2251
      for key, value in self.__dict__.iteritems()]
2252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2253
 
2254
  def __eq__(self, other):
2255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2256
 
2257
  def __ne__(self, other):
2258
    return not (self == other)
4934 amit.gupta 2259
 
2260
class getEntityLogisticsEstimation_args:
2261
  """
2262
  Attributes:
2263
   - catalogItemId
2264
   - destination_pin
2265
   - type
2266
  """
2267
 
2268
  thrift_spec = (
2269
    None, # 0
2270
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
2271
    (2, TType.STRING, 'destination_pin', None, None, ), # 2
2272
    (3, TType.I32, 'type', None, None, ), # 3
2273
  )
2274
 
2275
  def __init__(self, catalogItemId=None, destination_pin=None, type=None,):
2276
    self.catalogItemId = catalogItemId
2277
    self.destination_pin = destination_pin
2278
    self.type = type
2279
 
2280
  def read(self, iprot):
2281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2283
      return
2284
    iprot.readStructBegin()
2285
    while True:
2286
      (fname, ftype, fid) = iprot.readFieldBegin()
2287
      if ftype == TType.STOP:
2288
        break
2289
      if fid == 1:
2290
        if ftype == TType.I64:
2291
          self.catalogItemId = iprot.readI64();
2292
        else:
2293
          iprot.skip(ftype)
2294
      elif fid == 2:
2295
        if ftype == TType.STRING:
2296
          self.destination_pin = iprot.readString();
2297
        else:
2298
          iprot.skip(ftype)
2299
      elif fid == 3:
2300
        if ftype == TType.I32:
2301
          self.type = iprot.readI32();
2302
        else:
2303
          iprot.skip(ftype)
2304
      else:
2305
        iprot.skip(ftype)
2306
      iprot.readFieldEnd()
2307
    iprot.readStructEnd()
2308
 
2309
  def write(self, oprot):
2310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2312
      return
2313
    oprot.writeStructBegin('getEntityLogisticsEstimation_args')
2314
    if self.catalogItemId is not None:
2315
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
2316
      oprot.writeI64(self.catalogItemId)
2317
      oprot.writeFieldEnd()
2318
    if self.destination_pin is not None:
2319
      oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
2320
      oprot.writeString(self.destination_pin)
2321
      oprot.writeFieldEnd()
2322
    if self.type is not None:
2323
      oprot.writeFieldBegin('type', TType.I32, 3)
2324
      oprot.writeI32(self.type)
2325
      oprot.writeFieldEnd()
2326
    oprot.writeFieldStop()
2327
    oprot.writeStructEnd()
2328
 
2329
  def validate(self):
2330
    return
2331
 
2332
 
2333
  def __repr__(self):
2334
    L = ['%s=%r' % (key, value)
2335
      for key, value in self.__dict__.iteritems()]
2336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2337
 
2338
  def __eq__(self, other):
2339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2340
 
2341
  def __ne__(self, other):
2342
    return not (self == other)
2343
 
2344
class getEntityLogisticsEstimation_result:
2345
  """
2346
  Attributes:
2347
   - success
2348
   - se
2349
  """
2350
 
2351
  thrift_spec = (
2352
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
2353
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
2354
  )
2355
 
2356
  def __init__(self, success=None, se=None,):
2357
    self.success = success
2358
    self.se = se
2359
 
2360
  def read(self, iprot):
2361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2363
      return
2364
    iprot.readStructBegin()
2365
    while True:
2366
      (fname, ftype, fid) = iprot.readFieldBegin()
2367
      if ftype == TType.STOP:
2368
        break
2369
      if fid == 0:
2370
        if ftype == TType.LIST:
2371
          self.success = []
2372
          (_etype33, _size30) = iprot.readListBegin()
2373
          for _i34 in xrange(_size30):
2374
            _elem35 = iprot.readI64();
2375
            self.success.append(_elem35)
2376
          iprot.readListEnd()
2377
        else:
2378
          iprot.skip(ftype)
2379
      elif fid == 1:
2380
        if ftype == TType.STRUCT:
2381
          self.se = LogisticsServiceException()
2382
          self.se.read(iprot)
2383
        else:
2384
          iprot.skip(ftype)
2385
      else:
2386
        iprot.skip(ftype)
2387
      iprot.readFieldEnd()
2388
    iprot.readStructEnd()
2389
 
2390
  def write(self, oprot):
2391
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2392
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2393
      return
2394
    oprot.writeStructBegin('getEntityLogisticsEstimation_result')
2395
    if self.success is not None:
2396
      oprot.writeFieldBegin('success', TType.LIST, 0)
2397
      oprot.writeListBegin(TType.I64, len(self.success))
2398
      for iter36 in self.success:
2399
        oprot.writeI64(iter36)
2400
      oprot.writeListEnd()
2401
      oprot.writeFieldEnd()
2402
    if self.se is not None:
2403
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2404
      self.se.write(oprot)
2405
      oprot.writeFieldEnd()
2406
    oprot.writeFieldStop()
2407
    oprot.writeStructEnd()
2408
 
2409
  def validate(self):
2410
    return
2411
 
2412
 
2413
  def __repr__(self):
2414
    L = ['%s=%r' % (key, value)
2415
      for key, value in self.__dict__.iteritems()]
2416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2417
 
2418
  def __eq__(self, other):
2419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2420
 
2421
  def __ne__(self, other):
2422
    return not (self == other)
5527 anupam.sin 2423
 
2424
class getProviderForPickupType_args:
2425
  """
2426
  Attributes:
2427
   - pickUp
2428
  """
2429
 
2430
  thrift_spec = (
2431
    None, # 0
2432
    (1, TType.I64, 'pickUp', None, None, ), # 1
2433
  )
2434
 
2435
  def __init__(self, pickUp=None,):
2436
    self.pickUp = pickUp
2437
 
2438
  def read(self, iprot):
2439
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2440
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2441
      return
2442
    iprot.readStructBegin()
2443
    while True:
2444
      (fname, ftype, fid) = iprot.readFieldBegin()
2445
      if ftype == TType.STOP:
2446
        break
2447
      if fid == 1:
2448
        if ftype == TType.I64:
2449
          self.pickUp = iprot.readI64();
2450
        else:
2451
          iprot.skip(ftype)
2452
      else:
2453
        iprot.skip(ftype)
2454
      iprot.readFieldEnd()
2455
    iprot.readStructEnd()
2456
 
2457
  def write(self, oprot):
2458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2460
      return
2461
    oprot.writeStructBegin('getProviderForPickupType_args')
2462
    if self.pickUp is not None:
2463
      oprot.writeFieldBegin('pickUp', TType.I64, 1)
2464
      oprot.writeI64(self.pickUp)
2465
      oprot.writeFieldEnd()
2466
    oprot.writeFieldStop()
2467
    oprot.writeStructEnd()
2468
 
2469
  def validate(self):
2470
    return
2471
 
2472
 
2473
  def __repr__(self):
2474
    L = ['%s=%r' % (key, value)
2475
      for key, value in self.__dict__.iteritems()]
2476
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2477
 
2478
  def __eq__(self, other):
2479
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2480
 
2481
  def __ne__(self, other):
2482
    return not (self == other)
2483
 
2484
class getProviderForPickupType_result:
2485
  """
2486
  Attributes:
2487
   - success
2488
  """
2489
 
2490
  thrift_spec = (
2491
    (0, TType.I64, 'success', None, None, ), # 0
2492
  )
2493
 
2494
  def __init__(self, success=None,):
2495
    self.success = success
2496
 
2497
  def read(self, iprot):
2498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2500
      return
2501
    iprot.readStructBegin()
2502
    while True:
2503
      (fname, ftype, fid) = iprot.readFieldBegin()
2504
      if ftype == TType.STOP:
2505
        break
2506
      if fid == 0:
2507
        if ftype == TType.I64:
2508
          self.success = iprot.readI64();
2509
        else:
2510
          iprot.skip(ftype)
2511
      else:
2512
        iprot.skip(ftype)
2513
      iprot.readFieldEnd()
2514
    iprot.readStructEnd()
2515
 
2516
  def write(self, oprot):
2517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2519
      return
2520
    oprot.writeStructBegin('getProviderForPickupType_result')
2521
    if self.success is not None:
2522
      oprot.writeFieldBegin('success', TType.I64, 0)
2523
      oprot.writeI64(self.success)
2524
      oprot.writeFieldEnd()
2525
    oprot.writeFieldStop()
2526
    oprot.writeStructEnd()
2527
 
2528
  def validate(self):
2529
    return
2530
 
2531
 
2532
  def __repr__(self):
2533
    L = ['%s=%r' % (key, value)
2534
      for key, value in self.__dict__.iteritems()]
2535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2536
 
2537
  def __eq__(self, other):
2538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2539
 
2540
  def __ne__(self, other):
2541
    return not (self == other)
5553 rajveer 2542
 
2543
class getAllPickupStores_args:
2544
 
2545
  thrift_spec = (
2546
  )
2547
 
2548
  def read(self, iprot):
2549
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2550
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2551
      return
2552
    iprot.readStructBegin()
2553
    while True:
2554
      (fname, ftype, fid) = iprot.readFieldBegin()
2555
      if ftype == TType.STOP:
2556
        break
2557
      else:
2558
        iprot.skip(ftype)
2559
      iprot.readFieldEnd()
2560
    iprot.readStructEnd()
2561
 
2562
  def write(self, oprot):
2563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2565
      return
2566
    oprot.writeStructBegin('getAllPickupStores_args')
2567
    oprot.writeFieldStop()
2568
    oprot.writeStructEnd()
2569
 
2570
  def validate(self):
2571
    return
2572
 
2573
 
2574
  def __repr__(self):
2575
    L = ['%s=%r' % (key, value)
2576
      for key, value in self.__dict__.iteritems()]
2577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2578
 
2579
  def __eq__(self, other):
2580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2581
 
2582
  def __ne__(self, other):
2583
    return not (self == other)
2584
 
2585
class getAllPickupStores_result:
2586
  """
2587
  Attributes:
2588
   - success
2589
  """
2590
 
2591
  thrift_spec = (
2592
    (0, TType.LIST, 'success', (TType.STRUCT,(PickupStore, PickupStore.thrift_spec)), None, ), # 0
2593
  )
2594
 
2595
  def __init__(self, success=None,):
2596
    self.success = success
2597
 
2598
  def read(self, iprot):
2599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2601
      return
2602
    iprot.readStructBegin()
2603
    while True:
2604
      (fname, ftype, fid) = iprot.readFieldBegin()
2605
      if ftype == TType.STOP:
2606
        break
2607
      if fid == 0:
2608
        if ftype == TType.LIST:
2609
          self.success = []
2610
          (_etype40, _size37) = iprot.readListBegin()
2611
          for _i41 in xrange(_size37):
2612
            _elem42 = PickupStore()
2613
            _elem42.read(iprot)
2614
            self.success.append(_elem42)
2615
          iprot.readListEnd()
2616
        else:
2617
          iprot.skip(ftype)
2618
      else:
2619
        iprot.skip(ftype)
2620
      iprot.readFieldEnd()
2621
    iprot.readStructEnd()
2622
 
2623
  def write(self, oprot):
2624
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2625
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2626
      return
2627
    oprot.writeStructBegin('getAllPickupStores_result')
2628
    if self.success is not None:
2629
      oprot.writeFieldBegin('success', TType.LIST, 0)
2630
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2631
      for iter43 in self.success:
2632
        iter43.write(oprot)
2633
      oprot.writeListEnd()
2634
      oprot.writeFieldEnd()
2635
    oprot.writeFieldStop()
2636
    oprot.writeStructEnd()
2637
 
2638
  def validate(self):
2639
    return
2640
 
2641
 
2642
  def __repr__(self):
2643
    L = ['%s=%r' % (key, value)
2644
      for key, value in self.__dict__.iteritems()]
2645
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2646
 
2647
  def __eq__(self, other):
2648
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2649
 
2650
  def __ne__(self, other):
2651
    return not (self == other)
2652
 
2653
class getPickupStore_args:
2654
  """
2655
  Attributes:
2656
   - storeId
2657
  """
2658
 
2659
  thrift_spec = (
2660
    None, # 0
2661
    (1, TType.I64, 'storeId', None, None, ), # 1
2662
  )
2663
 
2664
  def __init__(self, storeId=None,):
2665
    self.storeId = storeId
2666
 
2667
  def read(self, iprot):
2668
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2669
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2670
      return
2671
    iprot.readStructBegin()
2672
    while True:
2673
      (fname, ftype, fid) = iprot.readFieldBegin()
2674
      if ftype == TType.STOP:
2675
        break
2676
      if fid == 1:
2677
        if ftype == TType.I64:
2678
          self.storeId = iprot.readI64();
2679
        else:
2680
          iprot.skip(ftype)
2681
      else:
2682
        iprot.skip(ftype)
2683
      iprot.readFieldEnd()
2684
    iprot.readStructEnd()
2685
 
2686
  def write(self, oprot):
2687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2689
      return
2690
    oprot.writeStructBegin('getPickupStore_args')
2691
    if self.storeId is not None:
2692
      oprot.writeFieldBegin('storeId', TType.I64, 1)
2693
      oprot.writeI64(self.storeId)
2694
      oprot.writeFieldEnd()
2695
    oprot.writeFieldStop()
2696
    oprot.writeStructEnd()
2697
 
2698
  def validate(self):
2699
    return
2700
 
2701
 
2702
  def __repr__(self):
2703
    L = ['%s=%r' % (key, value)
2704
      for key, value in self.__dict__.iteritems()]
2705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2706
 
2707
  def __eq__(self, other):
2708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2709
 
2710
  def __ne__(self, other):
2711
    return not (self == other)
2712
 
2713
class getPickupStore_result:
2714
  """
2715
  Attributes:
2716
   - success
2717
  """
2718
 
2719
  thrift_spec = (
2720
    (0, TType.STRUCT, 'success', (PickupStore, PickupStore.thrift_spec), None, ), # 0
2721
  )
2722
 
2723
  def __init__(self, success=None,):
2724
    self.success = success
2725
 
2726
  def read(self, iprot):
2727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2729
      return
2730
    iprot.readStructBegin()
2731
    while True:
2732
      (fname, ftype, fid) = iprot.readFieldBegin()
2733
      if ftype == TType.STOP:
2734
        break
2735
      if fid == 0:
2736
        if ftype == TType.STRUCT:
2737
          self.success = PickupStore()
2738
          self.success.read(iprot)
2739
        else:
2740
          iprot.skip(ftype)
2741
      else:
2742
        iprot.skip(ftype)
2743
      iprot.readFieldEnd()
2744
    iprot.readStructEnd()
2745
 
2746
  def write(self, oprot):
2747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2749
      return
2750
    oprot.writeStructBegin('getPickupStore_result')
2751
    if self.success is not None:
2752
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2753
      self.success.write(oprot)
2754
      oprot.writeFieldEnd()
2755
    oprot.writeFieldStop()
2756
    oprot.writeStructEnd()
2757
 
2758
  def validate(self):
2759
    return
2760
 
2761
 
2762
  def __repr__(self):
2763
    L = ['%s=%r' % (key, value)
2764
      for key, value in self.__dict__.iteritems()]
2765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2766
 
2767
  def __eq__(self, other):
2768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2769
 
2770
  def __ne__(self, other):
2771
    return not (self == other)
5719 rajveer 2772
 
2773
class getPickupStoreByHotspotId_args:
2774
  """
2775
  Attributes:
2776
   - hotspotId
2777
  """
2778
 
2779
  thrift_spec = (
2780
    None, # 0
2781
    (1, TType.STRING, 'hotspotId', None, None, ), # 1
2782
  )
2783
 
2784
  def __init__(self, hotspotId=None,):
2785
    self.hotspotId = hotspotId
2786
 
2787
  def read(self, iprot):
2788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2790
      return
2791
    iprot.readStructBegin()
2792
    while True:
2793
      (fname, ftype, fid) = iprot.readFieldBegin()
2794
      if ftype == TType.STOP:
2795
        break
2796
      if fid == 1:
2797
        if ftype == TType.STRING:
2798
          self.hotspotId = iprot.readString();
2799
        else:
2800
          iprot.skip(ftype)
2801
      else:
2802
        iprot.skip(ftype)
2803
      iprot.readFieldEnd()
2804
    iprot.readStructEnd()
2805
 
2806
  def write(self, oprot):
2807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2809
      return
2810
    oprot.writeStructBegin('getPickupStoreByHotspotId_args')
2811
    if self.hotspotId is not None:
2812
      oprot.writeFieldBegin('hotspotId', TType.STRING, 1)
2813
      oprot.writeString(self.hotspotId)
2814
      oprot.writeFieldEnd()
2815
    oprot.writeFieldStop()
2816
    oprot.writeStructEnd()
2817
 
2818
  def validate(self):
2819
    return
2820
 
2821
 
2822
  def __repr__(self):
2823
    L = ['%s=%r' % (key, value)
2824
      for key, value in self.__dict__.iteritems()]
2825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2826
 
2827
  def __eq__(self, other):
2828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2829
 
2830
  def __ne__(self, other):
2831
    return not (self == other)
2832
 
2833
class getPickupStoreByHotspotId_result:
2834
  """
2835
  Attributes:
2836
   - success
2837
  """
2838
 
2839
  thrift_spec = (
2840
    (0, TType.STRUCT, 'success', (PickupStore, PickupStore.thrift_spec), None, ), # 0
2841
  )
2842
 
2843
  def __init__(self, success=None,):
2844
    self.success = success
2845
 
2846
  def read(self, iprot):
2847
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2848
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2849
      return
2850
    iprot.readStructBegin()
2851
    while True:
2852
      (fname, ftype, fid) = iprot.readFieldBegin()
2853
      if ftype == TType.STOP:
2854
        break
2855
      if fid == 0:
2856
        if ftype == TType.STRUCT:
2857
          self.success = PickupStore()
2858
          self.success.read(iprot)
2859
        else:
2860
          iprot.skip(ftype)
2861
      else:
2862
        iprot.skip(ftype)
2863
      iprot.readFieldEnd()
2864
    iprot.readStructEnd()
2865
 
2866
  def write(self, oprot):
2867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2869
      return
2870
    oprot.writeStructBegin('getPickupStoreByHotspotId_result')
2871
    if self.success is not None:
2872
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2873
      self.success.write(oprot)
2874
      oprot.writeFieldEnd()
2875
    oprot.writeFieldStop()
2876
    oprot.writeStructEnd()
2877
 
2878
  def validate(self):
2879
    return
2880
 
2881
 
2882
  def __repr__(self):
2883
    L = ['%s=%r' % (key, value)
2884
      for key, value in self.__dict__.iteritems()]
2885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2886
 
2887
  def __eq__(self, other):
2888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2889
 
2890
  def __ne__(self, other):
2891
    return not (self == other)
6322 amar.kumar 2892
 
2893
class addPincode_args:
2894
  """
2895
  Attributes:
2896
   - providerId
2897
   - pincode
2898
   - destCode
2899
   - exp
2900
   - cod
2901
   - stationType
2902
  """
2903
 
2904
  thrift_spec = (
2905
    None, # 0
2906
    (1, TType.I64, 'providerId', None, None, ), # 1
2907
    (2, TType.STRING, 'pincode', None, None, ), # 2
2908
    (3, TType.STRING, 'destCode', None, None, ), # 3
2909
    (4, TType.BOOL, 'exp', None, None, ), # 4
2910
    (5, TType.BOOL, 'cod', None, None, ), # 5
2911
    (6, TType.I32, 'stationType', None, None, ), # 6
2912
  )
2913
 
2914
  def __init__(self, providerId=None, pincode=None, destCode=None, exp=None, cod=None, stationType=None,):
2915
    self.providerId = providerId
2916
    self.pincode = pincode
2917
    self.destCode = destCode
2918
    self.exp = exp
2919
    self.cod = cod
2920
    self.stationType = stationType
2921
 
2922
  def read(self, iprot):
2923
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2924
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2925
      return
2926
    iprot.readStructBegin()
2927
    while True:
2928
      (fname, ftype, fid) = iprot.readFieldBegin()
2929
      if ftype == TType.STOP:
2930
        break
2931
      if fid == 1:
2932
        if ftype == TType.I64:
2933
          self.providerId = iprot.readI64();
2934
        else:
2935
          iprot.skip(ftype)
2936
      elif fid == 2:
2937
        if ftype == TType.STRING:
2938
          self.pincode = iprot.readString();
2939
        else:
2940
          iprot.skip(ftype)
2941
      elif fid == 3:
2942
        if ftype == TType.STRING:
2943
          self.destCode = iprot.readString();
2944
        else:
2945
          iprot.skip(ftype)
2946
      elif fid == 4:
2947
        if ftype == TType.BOOL:
2948
          self.exp = iprot.readBool();
2949
        else:
2950
          iprot.skip(ftype)
2951
      elif fid == 5:
2952
        if ftype == TType.BOOL:
2953
          self.cod = iprot.readBool();
2954
        else:
2955
          iprot.skip(ftype)
2956
      elif fid == 6:
2957
        if ftype == TType.I32:
2958
          self.stationType = iprot.readI32();
2959
        else:
2960
          iprot.skip(ftype)
2961
      else:
2962
        iprot.skip(ftype)
2963
      iprot.readFieldEnd()
2964
    iprot.readStructEnd()
2965
 
2966
  def write(self, oprot):
2967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2969
      return
2970
    oprot.writeStructBegin('addPincode_args')
2971
    if self.providerId is not None:
2972
      oprot.writeFieldBegin('providerId', TType.I64, 1)
2973
      oprot.writeI64(self.providerId)
2974
      oprot.writeFieldEnd()
2975
    if self.pincode is not None:
2976
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
2977
      oprot.writeString(self.pincode)
2978
      oprot.writeFieldEnd()
2979
    if self.destCode is not None:
2980
      oprot.writeFieldBegin('destCode', TType.STRING, 3)
2981
      oprot.writeString(self.destCode)
2982
      oprot.writeFieldEnd()
2983
    if self.exp is not None:
2984
      oprot.writeFieldBegin('exp', TType.BOOL, 4)
2985
      oprot.writeBool(self.exp)
2986
      oprot.writeFieldEnd()
2987
    if self.cod is not None:
2988
      oprot.writeFieldBegin('cod', TType.BOOL, 5)
2989
      oprot.writeBool(self.cod)
2990
      oprot.writeFieldEnd()
2991
    if self.stationType is not None:
2992
      oprot.writeFieldBegin('stationType', TType.I32, 6)
2993
      oprot.writeI32(self.stationType)
2994
      oprot.writeFieldEnd()
2995
    oprot.writeFieldStop()
2996
    oprot.writeStructEnd()
2997
 
2998
  def validate(self):
2999
    return
3000
 
3001
 
3002
  def __repr__(self):
3003
    L = ['%s=%r' % (key, value)
3004
      for key, value in self.__dict__.iteritems()]
3005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3006
 
3007
  def __eq__(self, other):
3008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3009
 
3010
  def __ne__(self, other):
3011
    return not (self == other)
3012
 
3013
class addPincode_result:
3014
 
3015
  thrift_spec = (
3016
  )
3017
 
3018
  def read(self, iprot):
3019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3021
      return
3022
    iprot.readStructBegin()
3023
    while True:
3024
      (fname, ftype, fid) = iprot.readFieldBegin()
3025
      if ftype == TType.STOP:
3026
        break
3027
      else:
3028
        iprot.skip(ftype)
3029
      iprot.readFieldEnd()
3030
    iprot.readStructEnd()
3031
 
3032
  def write(self, oprot):
3033
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3034
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3035
      return
3036
    oprot.writeStructBegin('addPincode_result')
3037
    oprot.writeFieldStop()
3038
    oprot.writeStructEnd()
3039
 
3040
  def validate(self):
3041
    return
3042
 
3043
 
3044
  def __repr__(self):
3045
    L = ['%s=%r' % (key, value)
3046
      for key, value in self.__dict__.iteritems()]
3047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3048
 
3049
  def __eq__(self, other):
3050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3051
 
3052
  def __ne__(self, other):
3053
    return not (self == other)
3054
 
3055
class updatePincode_args:
3056
  """
3057
  Attributes:
3058
   - providerId
3059
   - pincode
3060
   - exp
3061
   - cod
3062
  """
3063
 
3064
  thrift_spec = (
3065
    None, # 0
3066
    (1, TType.I64, 'providerId', None, None, ), # 1
3067
    (2, TType.STRING, 'pincode', None, None, ), # 2
3068
    (3, TType.BOOL, 'exp', None, None, ), # 3
3069
    (4, TType.BOOL, 'cod', None, None, ), # 4
3070
  )
3071
 
3072
  def __init__(self, providerId=None, pincode=None, exp=None, cod=None,):
3073
    self.providerId = providerId
3074
    self.pincode = pincode
3075
    self.exp = exp
3076
    self.cod = cod
3077
 
3078
  def read(self, iprot):
3079
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3080
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3081
      return
3082
    iprot.readStructBegin()
3083
    while True:
3084
      (fname, ftype, fid) = iprot.readFieldBegin()
3085
      if ftype == TType.STOP:
3086
        break
3087
      if fid == 1:
3088
        if ftype == TType.I64:
3089
          self.providerId = iprot.readI64();
3090
        else:
3091
          iprot.skip(ftype)
3092
      elif fid == 2:
3093
        if ftype == TType.STRING:
3094
          self.pincode = iprot.readString();
3095
        else:
3096
          iprot.skip(ftype)
3097
      elif fid == 3:
3098
        if ftype == TType.BOOL:
3099
          self.exp = iprot.readBool();
3100
        else:
3101
          iprot.skip(ftype)
3102
      elif fid == 4:
3103
        if ftype == TType.BOOL:
3104
          self.cod = iprot.readBool();
3105
        else:
3106
          iprot.skip(ftype)
3107
      else:
3108
        iprot.skip(ftype)
3109
      iprot.readFieldEnd()
3110
    iprot.readStructEnd()
3111
 
3112
  def write(self, oprot):
3113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3115
      return
3116
    oprot.writeStructBegin('updatePincode_args')
3117
    if self.providerId is not None:
3118
      oprot.writeFieldBegin('providerId', TType.I64, 1)
3119
      oprot.writeI64(self.providerId)
3120
      oprot.writeFieldEnd()
3121
    if self.pincode is not None:
3122
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
3123
      oprot.writeString(self.pincode)
3124
      oprot.writeFieldEnd()
3125
    if self.exp is not None:
3126
      oprot.writeFieldBegin('exp', TType.BOOL, 3)
3127
      oprot.writeBool(self.exp)
3128
      oprot.writeFieldEnd()
3129
    if self.cod is not None:
3130
      oprot.writeFieldBegin('cod', TType.BOOL, 4)
3131
      oprot.writeBool(self.cod)
3132
      oprot.writeFieldEnd()
3133
    oprot.writeFieldStop()
3134
    oprot.writeStructEnd()
3135
 
3136
  def validate(self):
3137
    return
3138
 
3139
 
3140
  def __repr__(self):
3141
    L = ['%s=%r' % (key, value)
3142
      for key, value in self.__dict__.iteritems()]
3143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3144
 
3145
  def __eq__(self, other):
3146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3147
 
3148
  def __ne__(self, other):
3149
    return not (self == other)
3150
 
3151
class updatePincode_result:
3152
 
3153
  thrift_spec = (
3154
  )
3155
 
3156
  def read(self, iprot):
3157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3159
      return
3160
    iprot.readStructBegin()
3161
    while True:
3162
      (fname, ftype, fid) = iprot.readFieldBegin()
3163
      if ftype == TType.STOP:
3164
        break
3165
      else:
3166
        iprot.skip(ftype)
3167
      iprot.readFieldEnd()
3168
    iprot.readStructEnd()
3169
 
3170
  def write(self, oprot):
3171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3173
      return
3174
    oprot.writeStructBegin('updatePincode_result')
3175
    oprot.writeFieldStop()
3176
    oprot.writeStructEnd()
3177
 
3178
  def validate(self):
3179
    return
3180
 
3181
 
3182
  def __repr__(self):
3183
    L = ['%s=%r' % (key, value)
3184
      for key, value in self.__dict__.iteritems()]
3185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3186
 
3187
  def __eq__(self, other):
3188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3189
 
3190
  def __ne__(self, other):
3191
    return not (self == other)