Subversion Repositories SmartDukaan

Rev

Rev 7567 | Rev 7787 | 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
 
7256 rajveer 48
  def getLogisticsEstimationForStore(self, itemId, destination_pin, type):
49
    """
50
    Parameters:
51
     - itemId
52
     - destination_pin
53
     - type
54
    """
55
    pass
56
 
5767 rajveer 57
  def getLogisticsInfo(self, destination_pincode, item_id, type, pickUp):
472 rajveer 58
    """
647 chandransh 59
    Same as above excpet that an airway bill number is also allocated and returned.
3431 rajveer 60
 
472 rajveer 61
    Parameters:
647 chandransh 62
     - destination_pincode
63
     - item_id
3044 chandransh 64
     - type
5767 rajveer 65
     - pickUp
472 rajveer 66
    """
67
    pass
68
 
5247 rajveer 69
  def getEmptyAWB(self, providerId, type):
412 ashish 70
    """
647 chandransh 71
    Returns an unused AWB number for the given provider.
3431 rajveer 72
 
412 ashish 73
    Parameters:
647 chandransh 74
     - providerId
5247 rajveer 75
     - type
412 ashish 76
    """
77
    pass
78
 
6643 rajveer 79
  def getShipmentInfo(self, awbNumber, providerId):
412 ashish 80
    """
647 chandransh 81
    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 82
 
412 ashish 83
    Parameters:
6643 rajveer 84
     - awbNumber
647 chandransh 85
     - providerId
412 ashish 86
    """
87
    pass
88
 
6643 rajveer 89
  def storeShipmentInfo(self, update):
90
    """
91
    Store the update for the given AWB number and provider id.
92
 
93
    Parameters:
94
     - update
95
    """
96
    pass
97
 
732 chandransh 98
  def getDestinationCode(self, providerId, pinCode):
99
    """
100
    Returns the short three letter code of a pincode for the given provider.
101
       Raises an exception if the pin code is not serviced by the given provider.
3431 rajveer 102
 
732 chandransh 103
    Parameters:
104
     - providerId
105
     - pinCode
106
    """
107
    pass
412 ashish 108
 
3103 chandransh 109
  def getFreeAwbCount(self, providerId, type):
1137 chandransh 110
    """
3103 chandransh 111
    Returns the number of unused AWB numbers for the given provider of the given type
3431 rajveer 112
 
1137 chandransh 113
    Parameters:
114
     - providerId
3103 chandransh 115
     - type
1137 chandransh 116
    """
117
    pass
732 chandransh 118
 
1730 ankur.sing 119
  def getHolidays(self, fromDate, toDate):
120
    """
121
    Returns list of Holiday dates between fromDate and toDate (both inclusive)
122
    fromDate should be passed as milliseconds corresponding to the start of the day.
123
    If fromDate is passed as -1, fromDate is not considered for filtering
124
    If toDate is passed as -1, toDate is not considered for filtering
3431 rajveer 125
 
1730 ankur.sing 126
    Parameters:
127
     - fromDate
128
     - toDate
129
    """
130
    pass
1137 chandransh 131
 
4934 amit.gupta 132
  def getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
133
    """
134
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
135
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
136
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 137
 
4934 amit.gupta 138
    Parameters:
139
     - catalogItemId
140
     - destination_pin
141
     - type
142
    """
143
    pass
144
 
5527 anupam.sin 145
  def getProviderForPickupType(self, pickUp):
146
    """
147
    Returns the id for a given pickUpType
4934 amit.gupta 148
 
5527 anupam.sin 149
    Parameters:
150
     - pickUp
151
    """
152
    pass
153
 
5553 rajveer 154
  def getAllPickupStores(self, ):
155
    pass
5527 anupam.sin 156
 
5553 rajveer 157
  def getPickupStore(self, storeId):
158
    """
159
    Parameters:
160
     - storeId
161
    """
162
    pass
163
 
5719 rajveer 164
  def getPickupStoreByHotspotId(self, hotspotId):
165
    """
166
    Parameters:
167
     - hotspotId
168
    """
169
    pass
5553 rajveer 170
 
6524 rajveer 171
  def addPincode(self, providerId, pincode, destCode, exp, cod, stationType, otgAvailable):
6322 amar.kumar 172
    """
173
    Parameters:
174
     - providerId
175
     - pincode
176
     - destCode
177
     - exp
178
     - cod
179
     - stationType
6524 rajveer 180
     - otgAvailable
6322 amar.kumar 181
    """
182
    pass
5719 rajveer 183
 
6524 rajveer 184
  def updatePincode(self, providerId, pincode, exp, cod, otgAvailable):
6322 amar.kumar 185
    """
186
    Parameters:
187
     - providerId
188
     - pincode
189
     - exp
190
     - cod
6524 rajveer 191
     - otgAvailable
6322 amar.kumar 192
    """
193
    pass
194
 
7567 rajveer 195
  def addNewAwbs(self, providerId, cod, awbs):
196
    """
197
    Parameters:
198
     - providerId
199
     - cod
200
     - awbs
201
    """
202
    pass
6322 amar.kumar 203
 
7738 manish.sha 204
  def getServiceableLocationAsPerProviderIdAndPincode(self, providerId, pincode):
205
    """
206
    Returns true when record exist in the Serviceablelocationdetails DB Table otherwise return false.
7567 rajveer 207
 
7738 manish.sha 208
    Parameters:
209
     - providerId
210
     - pincode
211
    """
212
    pass
213
 
214
  def runCompleteUpdateForPincode(self, ):
215
    pass
216
 
217
 
3376 rajveer 218
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
412 ashish 219
  def __init__(self, iprot, oprot=None):
3376 rajveer 220
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
412 ashish 221
 
669 chandransh 222
  def getProvider(self, providerId):
223
    """
224
    Returns a provider for a given provider ID. Throws an exception if none found.
3431 rajveer 225
 
669 chandransh 226
    Parameters:
227
     - providerId
228
    """
229
    self.send_getProvider(providerId)
230
    return self.recv_getProvider()
231
 
232
  def send_getProvider(self, providerId):
233
    self._oprot.writeMessageBegin('getProvider', TMessageType.CALL, self._seqid)
234
    args = getProvider_args()
235
    args.providerId = providerId
236
    args.write(self._oprot)
237
    self._oprot.writeMessageEnd()
238
    self._oprot.trans.flush()
239
 
240
  def recv_getProvider(self, ):
241
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
242
    if mtype == TMessageType.EXCEPTION:
243
      x = TApplicationException()
244
      x.read(self._iprot)
245
      self._iprot.readMessageEnd()
246
      raise x
247
    result = getProvider_result()
248
    result.read(self._iprot)
249
    self._iprot.readMessageEnd()
3431 rajveer 250
    if result.success is not None:
669 chandransh 251
      return result.success
3431 rajveer 252
    if result.lse is not None:
669 chandransh 253
      raise result.lse
254
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
255
 
675 chandransh 256
  def getAllProviders(self, ):
257
    """
258
    Returns a list containing all the providers.
259
    """
260
    self.send_getAllProviders()
261
    return self.recv_getAllProviders()
262
 
263
  def send_getAllProviders(self, ):
264
    self._oprot.writeMessageBegin('getAllProviders', TMessageType.CALL, self._seqid)
265
    args = getAllProviders_args()
266
    args.write(self._oprot)
267
    self._oprot.writeMessageEnd()
268
    self._oprot.trans.flush()
269
 
270
  def recv_getAllProviders(self, ):
271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
272
    if mtype == TMessageType.EXCEPTION:
273
      x = TApplicationException()
274
      x.read(self._iprot)
275
      self._iprot.readMessageEnd()
276
      raise x
277
    result = getAllProviders_result()
278
    result.read(self._iprot)
279
    self._iprot.readMessageEnd()
3431 rajveer 280
    if result.success is not None:
675 chandransh 281
      return result.success
3431 rajveer 282
    if result.lse is not None:
675 chandransh 283
      raise result.lse
284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
285
 
4630 mandeep.dh 286
  def getLogisticsEstimation(self, itemId, destination_pin, type):
483 rajveer 287
    """
647 chandransh 288
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
289
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
290
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 291
 
483 rajveer 292
    Parameters:
647 chandransh 293
     - itemId
294
     - destination_pin
4630 mandeep.dh 295
     - type
483 rajveer 296
    """
4630 mandeep.dh 297
    self.send_getLogisticsEstimation(itemId, destination_pin, type)
647 chandransh 298
    return self.recv_getLogisticsEstimation()
483 rajveer 299
 
4630 mandeep.dh 300
  def send_getLogisticsEstimation(self, itemId, destination_pin, type):
647 chandransh 301
    self._oprot.writeMessageBegin('getLogisticsEstimation', TMessageType.CALL, self._seqid)
302
    args = getLogisticsEstimation_args()
303
    args.itemId = itemId
304
    args.destination_pin = destination_pin
4630 mandeep.dh 305
    args.type = type
483 rajveer 306
    args.write(self._oprot)
307
    self._oprot.writeMessageEnd()
308
    self._oprot.trans.flush()
309
 
647 chandransh 310
  def recv_getLogisticsEstimation(self, ):
483 rajveer 311
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
312
    if mtype == TMessageType.EXCEPTION:
313
      x = TApplicationException()
314
      x.read(self._iprot)
315
      self._iprot.readMessageEnd()
316
      raise x
647 chandransh 317
    result = getLogisticsEstimation_result()
483 rajveer 318
    result.read(self._iprot)
319
    self._iprot.readMessageEnd()
3431 rajveer 320
    if result.success is not None:
483 rajveer 321
      return result.success
3431 rajveer 322
    if result.se is not None:
483 rajveer 323
      raise result.se
647 chandransh 324
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
483 rajveer 325
 
7256 rajveer 326
  def getLogisticsEstimationForStore(self, itemId, destination_pin, type):
327
    """
328
    Parameters:
329
     - itemId
330
     - destination_pin
331
     - type
332
    """
333
    self.send_getLogisticsEstimationForStore(itemId, destination_pin, type)
334
    return self.recv_getLogisticsEstimationForStore()
335
 
336
  def send_getLogisticsEstimationForStore(self, itemId, destination_pin, type):
337
    self._oprot.writeMessageBegin('getLogisticsEstimationForStore', TMessageType.CALL, self._seqid)
338
    args = getLogisticsEstimationForStore_args()
339
    args.itemId = itemId
340
    args.destination_pin = destination_pin
341
    args.type = type
342
    args.write(self._oprot)
343
    self._oprot.writeMessageEnd()
344
    self._oprot.trans.flush()
345
 
346
  def recv_getLogisticsEstimationForStore(self, ):
347
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
348
    if mtype == TMessageType.EXCEPTION:
349
      x = TApplicationException()
350
      x.read(self._iprot)
351
      self._iprot.readMessageEnd()
352
      raise x
353
    result = getLogisticsEstimationForStore_result()
354
    result.read(self._iprot)
355
    self._iprot.readMessageEnd()
356
    if result.success is not None:
357
      return result.success
358
    if result.se is not None:
359
      raise result.se
360
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
361
 
5767 rajveer 362
  def getLogisticsInfo(self, destination_pincode, item_id, type, pickUp):
472 rajveer 363
    """
647 chandransh 364
    Same as above excpet that an airway bill number is also allocated and returned.
3431 rajveer 365
 
472 rajveer 366
    Parameters:
647 chandransh 367
     - destination_pincode
368
     - item_id
3044 chandransh 369
     - type
5767 rajveer 370
     - pickUp
472 rajveer 371
    """
5767 rajveer 372
    self.send_getLogisticsInfo(destination_pincode, item_id, type, pickUp)
647 chandransh 373
    return self.recv_getLogisticsInfo()
472 rajveer 374
 
5767 rajveer 375
  def send_getLogisticsInfo(self, destination_pincode, item_id, type, pickUp):
647 chandransh 376
    self._oprot.writeMessageBegin('getLogisticsInfo', TMessageType.CALL, self._seqid)
377
    args = getLogisticsInfo_args()
378
    args.destination_pincode = destination_pincode
379
    args.item_id = item_id
3044 chandransh 380
    args.type = type
5767 rajveer 381
    args.pickUp = pickUp
472 rajveer 382
    args.write(self._oprot)
383
    self._oprot.writeMessageEnd()
384
    self._oprot.trans.flush()
385
 
647 chandransh 386
  def recv_getLogisticsInfo(self, ):
472 rajveer 387
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
388
    if mtype == TMessageType.EXCEPTION:
389
      x = TApplicationException()
390
      x.read(self._iprot)
391
      self._iprot.readMessageEnd()
392
      raise x
647 chandransh 393
    result = getLogisticsInfo_result()
472 rajveer 394
    result.read(self._iprot)
395
    self._iprot.readMessageEnd()
3431 rajveer 396
    if result.success is not None:
472 rajveer 397
      return result.success
3431 rajveer 398
    if result.se is not None:
472 rajveer 399
      raise result.se
647 chandransh 400
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
472 rajveer 401
 
5247 rajveer 402
  def getEmptyAWB(self, providerId, type):
412 ashish 403
    """
647 chandransh 404
    Returns an unused AWB number for the given provider.
3431 rajveer 405
 
412 ashish 406
    Parameters:
647 chandransh 407
     - providerId
5247 rajveer 408
     - type
412 ashish 409
    """
5247 rajveer 410
    self.send_getEmptyAWB(providerId, type)
412 ashish 411
    return self.recv_getEmptyAWB()
412
 
5247 rajveer 413
  def send_getEmptyAWB(self, providerId, type):
412 ashish 414
    self._oprot.writeMessageBegin('getEmptyAWB', TMessageType.CALL, self._seqid)
415
    args = getEmptyAWB_args()
647 chandransh 416
    args.providerId = providerId
5247 rajveer 417
    args.type = type
412 ashish 418
    args.write(self._oprot)
419
    self._oprot.writeMessageEnd()
420
    self._oprot.trans.flush()
421
 
422
  def recv_getEmptyAWB(self, ):
423
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
424
    if mtype == TMessageType.EXCEPTION:
425
      x = TApplicationException()
426
      x.read(self._iprot)
427
      self._iprot.readMessageEnd()
428
      raise x
429
    result = getEmptyAWB_result()
430
    result.read(self._iprot)
431
    self._iprot.readMessageEnd()
3431 rajveer 432
    if result.success is not None:
412 ashish 433
      return result.success
3431 rajveer 434
    if result.se is not None:
647 chandransh 435
      raise result.se
412 ashish 436
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
437
 
6643 rajveer 438
  def getShipmentInfo(self, awbNumber, providerId):
412 ashish 439
    """
647 chandransh 440
    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 441
 
412 ashish 442
    Parameters:
6643 rajveer 443
     - awbNumber
647 chandransh 444
     - providerId
412 ashish 445
    """
6643 rajveer 446
    self.send_getShipmentInfo(awbNumber, providerId)
412 ashish 447
    return self.recv_getShipmentInfo()
448
 
6643 rajveer 449
  def send_getShipmentInfo(self, awbNumber, providerId):
412 ashish 450
    self._oprot.writeMessageBegin('getShipmentInfo', TMessageType.CALL, self._seqid)
451
    args = getShipmentInfo_args()
6643 rajveer 452
    args.awbNumber = awbNumber
647 chandransh 453
    args.providerId = providerId
412 ashish 454
    args.write(self._oprot)
455
    self._oprot.writeMessageEnd()
456
    self._oprot.trans.flush()
457
 
458
  def recv_getShipmentInfo(self, ):
459
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
460
    if mtype == TMessageType.EXCEPTION:
461
      x = TApplicationException()
462
      x.read(self._iprot)
463
      self._iprot.readMessageEnd()
464
      raise x
465
    result = getShipmentInfo_result()
466
    result.read(self._iprot)
467
    self._iprot.readMessageEnd()
3431 rajveer 468
    if result.success is not None:
412 ashish 469
      return result.success
3431 rajveer 470
    if result.se is not None:
647 chandransh 471
      raise result.se
412 ashish 472
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
473
 
6643 rajveer 474
  def storeShipmentInfo(self, update):
475
    """
476
    Store the update for the given AWB number and provider id.
477
 
478
    Parameters:
479
     - update
480
    """
481
    self.send_storeShipmentInfo(update)
482
    self.recv_storeShipmentInfo()
483
 
484
  def send_storeShipmentInfo(self, update):
485
    self._oprot.writeMessageBegin('storeShipmentInfo', TMessageType.CALL, self._seqid)
486
    args = storeShipmentInfo_args()
487
    args.update = update
488
    args.write(self._oprot)
489
    self._oprot.writeMessageEnd()
490
    self._oprot.trans.flush()
491
 
492
  def recv_storeShipmentInfo(self, ):
493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
494
    if mtype == TMessageType.EXCEPTION:
495
      x = TApplicationException()
496
      x.read(self._iprot)
497
      self._iprot.readMessageEnd()
498
      raise x
499
    result = storeShipmentInfo_result()
500
    result.read(self._iprot)
501
    self._iprot.readMessageEnd()
502
    if result.se is not None:
503
      raise result.se
504
    return
505
 
732 chandransh 506
  def getDestinationCode(self, providerId, pinCode):
507
    """
508
    Returns the short three letter code of a pincode for the given provider.
509
       Raises an exception if the pin code is not serviced by the given provider.
3431 rajveer 510
 
732 chandransh 511
    Parameters:
512
     - providerId
513
     - pinCode
514
    """
515
    self.send_getDestinationCode(providerId, pinCode)
516
    return self.recv_getDestinationCode()
412 ashish 517
 
732 chandransh 518
  def send_getDestinationCode(self, providerId, pinCode):
519
    self._oprot.writeMessageBegin('getDestinationCode', TMessageType.CALL, self._seqid)
520
    args = getDestinationCode_args()
521
    args.providerId = providerId
522
    args.pinCode = pinCode
523
    args.write(self._oprot)
524
    self._oprot.writeMessageEnd()
525
    self._oprot.trans.flush()
526
 
527
  def recv_getDestinationCode(self, ):
528
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
529
    if mtype == TMessageType.EXCEPTION:
530
      x = TApplicationException()
531
      x.read(self._iprot)
532
      self._iprot.readMessageEnd()
533
      raise x
534
    result = getDestinationCode_result()
535
    result.read(self._iprot)
536
    self._iprot.readMessageEnd()
3431 rajveer 537
    if result.success is not None:
732 chandransh 538
      return result.success
3431 rajveer 539
    if result.se is not None:
732 chandransh 540
      raise result.se
541
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
542
 
3103 chandransh 543
  def getFreeAwbCount(self, providerId, type):
1137 chandransh 544
    """
3103 chandransh 545
    Returns the number of unused AWB numbers for the given provider of the given type
3431 rajveer 546
 
1137 chandransh 547
    Parameters:
548
     - providerId
3103 chandransh 549
     - type
1137 chandransh 550
    """
3103 chandransh 551
    self.send_getFreeAwbCount(providerId, type)
1137 chandransh 552
    return self.recv_getFreeAwbCount()
732 chandransh 553
 
3103 chandransh 554
  def send_getFreeAwbCount(self, providerId, type):
1137 chandransh 555
    self._oprot.writeMessageBegin('getFreeAwbCount', TMessageType.CALL, self._seqid)
556
    args = getFreeAwbCount_args()
557
    args.providerId = providerId
3103 chandransh 558
    args.type = type
1137 chandransh 559
    args.write(self._oprot)
560
    self._oprot.writeMessageEnd()
561
    self._oprot.trans.flush()
562
 
563
  def recv_getFreeAwbCount(self, ):
564
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
565
    if mtype == TMessageType.EXCEPTION:
566
      x = TApplicationException()
567
      x.read(self._iprot)
568
      self._iprot.readMessageEnd()
569
      raise x
570
    result = getFreeAwbCount_result()
571
    result.read(self._iprot)
572
    self._iprot.readMessageEnd()
3431 rajveer 573
    if result.success is not None:
1137 chandransh 574
      return result.success
575
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
576
 
1730 ankur.sing 577
  def getHolidays(self, fromDate, toDate):
578
    """
579
    Returns list of Holiday dates between fromDate and toDate (both inclusive)
580
    fromDate should be passed as milliseconds corresponding to the start of the day.
581
    If fromDate is passed as -1, fromDate is not considered for filtering
582
    If toDate is passed as -1, toDate is not considered for filtering
3431 rajveer 583
 
1730 ankur.sing 584
    Parameters:
585
     - fromDate
586
     - toDate
587
    """
588
    self.send_getHolidays(fromDate, toDate)
589
    return self.recv_getHolidays()
1137 chandransh 590
 
1730 ankur.sing 591
  def send_getHolidays(self, fromDate, toDate):
592
    self._oprot.writeMessageBegin('getHolidays', TMessageType.CALL, self._seqid)
593
    args = getHolidays_args()
594
    args.fromDate = fromDate
595
    args.toDate = toDate
596
    args.write(self._oprot)
597
    self._oprot.writeMessageEnd()
598
    self._oprot.trans.flush()
599
 
600
  def recv_getHolidays(self, ):
601
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
602
    if mtype == TMessageType.EXCEPTION:
603
      x = TApplicationException()
604
      x.read(self._iprot)
605
      self._iprot.readMessageEnd()
606
      raise x
607
    result = getHolidays_result()
608
    result.read(self._iprot)
609
    self._iprot.readMessageEnd()
3431 rajveer 610
    if result.success is not None:
1730 ankur.sing 611
      return result.success
612
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
613
 
4934 amit.gupta 614
  def getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
615
    """
616
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
617
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
618
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 619
 
4934 amit.gupta 620
    Parameters:
621
     - catalogItemId
622
     - destination_pin
623
     - type
624
    """
625
    self.send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type)
626
    return self.recv_getEntityLogisticsEstimation()
627
 
628
  def send_getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
629
    self._oprot.writeMessageBegin('getEntityLogisticsEstimation', TMessageType.CALL, self._seqid)
630
    args = getEntityLogisticsEstimation_args()
631
    args.catalogItemId = catalogItemId
632
    args.destination_pin = destination_pin
633
    args.type = type
634
    args.write(self._oprot)
635
    self._oprot.writeMessageEnd()
636
    self._oprot.trans.flush()
637
 
638
  def recv_getEntityLogisticsEstimation(self, ):
639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
640
    if mtype == TMessageType.EXCEPTION:
641
      x = TApplicationException()
642
      x.read(self._iprot)
643
      self._iprot.readMessageEnd()
644
      raise x
645
    result = getEntityLogisticsEstimation_result()
646
    result.read(self._iprot)
647
    self._iprot.readMessageEnd()
648
    if result.success is not None:
649
      return result.success
650
    if result.se is not None:
651
      raise result.se
652
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
653
 
5527 anupam.sin 654
  def getProviderForPickupType(self, pickUp):
655
    """
656
    Returns the id for a given pickUpType
4934 amit.gupta 657
 
5527 anupam.sin 658
    Parameters:
659
     - pickUp
660
    """
661
    self.send_getProviderForPickupType(pickUp)
662
    return self.recv_getProviderForPickupType()
663
 
664
  def send_getProviderForPickupType(self, pickUp):
665
    self._oprot.writeMessageBegin('getProviderForPickupType', TMessageType.CALL, self._seqid)
666
    args = getProviderForPickupType_args()
667
    args.pickUp = pickUp
668
    args.write(self._oprot)
669
    self._oprot.writeMessageEnd()
670
    self._oprot.trans.flush()
671
 
672
  def recv_getProviderForPickupType(self, ):
673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
674
    if mtype == TMessageType.EXCEPTION:
675
      x = TApplicationException()
676
      x.read(self._iprot)
677
      self._iprot.readMessageEnd()
678
      raise x
679
    result = getProviderForPickupType_result()
680
    result.read(self._iprot)
681
    self._iprot.readMessageEnd()
682
    if result.success is not None:
683
      return result.success
684
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
685
 
5553 rajveer 686
  def getAllPickupStores(self, ):
687
    self.send_getAllPickupStores()
688
    return self.recv_getAllPickupStores()
5527 anupam.sin 689
 
5553 rajveer 690
  def send_getAllPickupStores(self, ):
691
    self._oprot.writeMessageBegin('getAllPickupStores', TMessageType.CALL, self._seqid)
692
    args = getAllPickupStores_args()
693
    args.write(self._oprot)
694
    self._oprot.writeMessageEnd()
695
    self._oprot.trans.flush()
696
 
697
  def recv_getAllPickupStores(self, ):
698
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
699
    if mtype == TMessageType.EXCEPTION:
700
      x = TApplicationException()
701
      x.read(self._iprot)
702
      self._iprot.readMessageEnd()
703
      raise x
704
    result = getAllPickupStores_result()
705
    result.read(self._iprot)
706
    self._iprot.readMessageEnd()
707
    if result.success is not None:
708
      return result.success
709
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
710
 
711
  def getPickupStore(self, storeId):
712
    """
713
    Parameters:
714
     - storeId
715
    """
716
    self.send_getPickupStore(storeId)
717
    return self.recv_getPickupStore()
718
 
719
  def send_getPickupStore(self, storeId):
720
    self._oprot.writeMessageBegin('getPickupStore', TMessageType.CALL, self._seqid)
721
    args = getPickupStore_args()
722
    args.storeId = storeId
723
    args.write(self._oprot)
724
    self._oprot.writeMessageEnd()
725
    self._oprot.trans.flush()
726
 
727
  def recv_getPickupStore(self, ):
728
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
729
    if mtype == TMessageType.EXCEPTION:
730
      x = TApplicationException()
731
      x.read(self._iprot)
732
      self._iprot.readMessageEnd()
733
      raise x
734
    result = getPickupStore_result()
735
    result.read(self._iprot)
736
    self._iprot.readMessageEnd()
737
    if result.success is not None:
738
      return result.success
739
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
740
 
5719 rajveer 741
  def getPickupStoreByHotspotId(self, hotspotId):
742
    """
743
    Parameters:
744
     - hotspotId
745
    """
746
    self.send_getPickupStoreByHotspotId(hotspotId)
747
    return self.recv_getPickupStoreByHotspotId()
5553 rajveer 748
 
5719 rajveer 749
  def send_getPickupStoreByHotspotId(self, hotspotId):
750
    self._oprot.writeMessageBegin('getPickupStoreByHotspotId', TMessageType.CALL, self._seqid)
751
    args = getPickupStoreByHotspotId_args()
752
    args.hotspotId = hotspotId
753
    args.write(self._oprot)
754
    self._oprot.writeMessageEnd()
755
    self._oprot.trans.flush()
756
 
757
  def recv_getPickupStoreByHotspotId(self, ):
758
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
759
    if mtype == TMessageType.EXCEPTION:
760
      x = TApplicationException()
761
      x.read(self._iprot)
762
      self._iprot.readMessageEnd()
763
      raise x
764
    result = getPickupStoreByHotspotId_result()
765
    result.read(self._iprot)
766
    self._iprot.readMessageEnd()
767
    if result.success is not None:
768
      return result.success
769
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
770
 
6524 rajveer 771
  def addPincode(self, providerId, pincode, destCode, exp, cod, stationType, otgAvailable):
6322 amar.kumar 772
    """
773
    Parameters:
774
     - providerId
775
     - pincode
776
     - destCode
777
     - exp
778
     - cod
779
     - stationType
6524 rajveer 780
     - otgAvailable
6322 amar.kumar 781
    """
6524 rajveer 782
    self.send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable)
6322 amar.kumar 783
    self.recv_addPincode()
5719 rajveer 784
 
6524 rajveer 785
  def send_addPincode(self, providerId, pincode, destCode, exp, cod, stationType, otgAvailable):
6322 amar.kumar 786
    self._oprot.writeMessageBegin('addPincode', TMessageType.CALL, self._seqid)
787
    args = addPincode_args()
788
    args.providerId = providerId
789
    args.pincode = pincode
790
    args.destCode = destCode
791
    args.exp = exp
792
    args.cod = cod
793
    args.stationType = stationType
6524 rajveer 794
    args.otgAvailable = otgAvailable
6322 amar.kumar 795
    args.write(self._oprot)
796
    self._oprot.writeMessageEnd()
797
    self._oprot.trans.flush()
798
 
799
  def recv_addPincode(self, ):
800
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
801
    if mtype == TMessageType.EXCEPTION:
802
      x = TApplicationException()
803
      x.read(self._iprot)
804
      self._iprot.readMessageEnd()
805
      raise x
806
    result = addPincode_result()
807
    result.read(self._iprot)
808
    self._iprot.readMessageEnd()
809
    return
810
 
6524 rajveer 811
  def updatePincode(self, providerId, pincode, exp, cod, otgAvailable):
6322 amar.kumar 812
    """
813
    Parameters:
814
     - providerId
815
     - pincode
816
     - exp
817
     - cod
6524 rajveer 818
     - otgAvailable
6322 amar.kumar 819
    """
6524 rajveer 820
    self.send_updatePincode(providerId, pincode, exp, cod, otgAvailable)
6322 amar.kumar 821
    self.recv_updatePincode()
822
 
6524 rajveer 823
  def send_updatePincode(self, providerId, pincode, exp, cod, otgAvailable):
6322 amar.kumar 824
    self._oprot.writeMessageBegin('updatePincode', TMessageType.CALL, self._seqid)
825
    args = updatePincode_args()
826
    args.providerId = providerId
827
    args.pincode = pincode
828
    args.exp = exp
829
    args.cod = cod
6524 rajveer 830
    args.otgAvailable = otgAvailable
6322 amar.kumar 831
    args.write(self._oprot)
832
    self._oprot.writeMessageEnd()
833
    self._oprot.trans.flush()
834
 
835
  def recv_updatePincode(self, ):
836
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
837
    if mtype == TMessageType.EXCEPTION:
838
      x = TApplicationException()
839
      x.read(self._iprot)
840
      self._iprot.readMessageEnd()
841
      raise x
842
    result = updatePincode_result()
843
    result.read(self._iprot)
844
    self._iprot.readMessageEnd()
845
    return
846
 
7567 rajveer 847
  def addNewAwbs(self, providerId, cod, awbs):
848
    """
849
    Parameters:
850
     - providerId
851
     - cod
852
     - awbs
853
    """
854
    self.send_addNewAwbs(providerId, cod, awbs)
855
    return self.recv_addNewAwbs()
6322 amar.kumar 856
 
7567 rajveer 857
  def send_addNewAwbs(self, providerId, cod, awbs):
858
    self._oprot.writeMessageBegin('addNewAwbs', TMessageType.CALL, self._seqid)
859
    args = addNewAwbs_args()
860
    args.providerId = providerId
861
    args.cod = cod
862
    args.awbs = awbs
863
    args.write(self._oprot)
864
    self._oprot.writeMessageEnd()
865
    self._oprot.trans.flush()
866
 
867
  def recv_addNewAwbs(self, ):
868
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
869
    if mtype == TMessageType.EXCEPTION:
870
      x = TApplicationException()
871
      x.read(self._iprot)
872
      self._iprot.readMessageEnd()
873
      raise x
874
    result = addNewAwbs_result()
875
    result.read(self._iprot)
876
    self._iprot.readMessageEnd()
877
    if result.success is not None:
878
      return result.success
879
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
880
 
7738 manish.sha 881
  def getServiceableLocationAsPerProviderIdAndPincode(self, providerId, pincode):
882
    """
883
    Returns true when record exist in the Serviceablelocationdetails DB Table otherwise return false.
7567 rajveer 884
 
7738 manish.sha 885
    Parameters:
886
     - providerId
887
     - pincode
888
    """
889
    self.send_getServiceableLocationAsPerProviderIdAndPincode(providerId, pincode)
890
    return self.recv_getServiceableLocationAsPerProviderIdAndPincode()
891
 
892
  def send_getServiceableLocationAsPerProviderIdAndPincode(self, providerId, pincode):
893
    self._oprot.writeMessageBegin('getServiceableLocationAsPerProviderIdAndPincode', TMessageType.CALL, self._seqid)
894
    args = getServiceableLocationAsPerProviderIdAndPincode_args()
895
    args.providerId = providerId
896
    args.pincode = pincode
897
    args.write(self._oprot)
898
    self._oprot.writeMessageEnd()
899
    self._oprot.trans.flush()
900
 
901
  def recv_getServiceableLocationAsPerProviderIdAndPincode(self, ):
902
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
903
    if mtype == TMessageType.EXCEPTION:
904
      x = TApplicationException()
905
      x.read(self._iprot)
906
      self._iprot.readMessageEnd()
907
      raise x
908
    result = getServiceableLocationAsPerProviderIdAndPincode_result()
909
    result.read(self._iprot)
910
    self._iprot.readMessageEnd()
911
    if result.success is not None:
912
      return result.success
913
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getServiceableLocationAsPerProviderIdAndPincode failed: unknown result");
914
 
915
  def runCompleteUpdateForPincode(self, ):
916
    self.send_runCompleteUpdateForPincode()
917
    self.recv_runCompleteUpdateForPincode()
918
 
919
  def send_runCompleteUpdateForPincode(self, ):
920
    self._oprot.writeMessageBegin('runCompleteUpdateForPincode', TMessageType.CALL, self._seqid)
921
    args = runCompleteUpdateForPincode_args()
922
    args.write(self._oprot)
923
    self._oprot.writeMessageEnd()
924
    self._oprot.trans.flush()
925
 
926
  def recv_runCompleteUpdateForPincode(self, ):
927
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
928
    if mtype == TMessageType.EXCEPTION:
929
      x = TApplicationException()
930
      x.read(self._iprot)
931
      self._iprot.readMessageEnd()
932
      raise x
933
    result = runCompleteUpdateForPincode_result()
934
    result.read(self._iprot)
935
    self._iprot.readMessageEnd()
936
    return
937
 
938
 
3376 rajveer 939
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
412 ashish 940
  def __init__(self, handler):
3376 rajveer 941
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
669 chandransh 942
    self._processMap["getProvider"] = Processor.process_getProvider
675 chandransh 943
    self._processMap["getAllProviders"] = Processor.process_getAllProviders
647 chandransh 944
    self._processMap["getLogisticsEstimation"] = Processor.process_getLogisticsEstimation
7256 rajveer 945
    self._processMap["getLogisticsEstimationForStore"] = Processor.process_getLogisticsEstimationForStore
483 rajveer 946
    self._processMap["getLogisticsInfo"] = Processor.process_getLogisticsInfo
412 ashish 947
    self._processMap["getEmptyAWB"] = Processor.process_getEmptyAWB
948
    self._processMap["getShipmentInfo"] = Processor.process_getShipmentInfo
6643 rajveer 949
    self._processMap["storeShipmentInfo"] = Processor.process_storeShipmentInfo
732 chandransh 950
    self._processMap["getDestinationCode"] = Processor.process_getDestinationCode
1137 chandransh 951
    self._processMap["getFreeAwbCount"] = Processor.process_getFreeAwbCount
1730 ankur.sing 952
    self._processMap["getHolidays"] = Processor.process_getHolidays
4934 amit.gupta 953
    self._processMap["getEntityLogisticsEstimation"] = Processor.process_getEntityLogisticsEstimation
5527 anupam.sin 954
    self._processMap["getProviderForPickupType"] = Processor.process_getProviderForPickupType
5553 rajveer 955
    self._processMap["getAllPickupStores"] = Processor.process_getAllPickupStores
956
    self._processMap["getPickupStore"] = Processor.process_getPickupStore
5719 rajveer 957
    self._processMap["getPickupStoreByHotspotId"] = Processor.process_getPickupStoreByHotspotId
6322 amar.kumar 958
    self._processMap["addPincode"] = Processor.process_addPincode
959
    self._processMap["updatePincode"] = Processor.process_updatePincode
7567 rajveer 960
    self._processMap["addNewAwbs"] = Processor.process_addNewAwbs
7738 manish.sha 961
    self._processMap["getServiceableLocationAsPerProviderIdAndPincode"] = Processor.process_getServiceableLocationAsPerProviderIdAndPincode
962
    self._processMap["runCompleteUpdateForPincode"] = Processor.process_runCompleteUpdateForPincode
412 ashish 963
 
964
  def process(self, iprot, oprot):
965
    (name, type, seqid) = iprot.readMessageBegin()
966
    if name not in self._processMap:
967
      iprot.skip(TType.STRUCT)
968
      iprot.readMessageEnd()
969
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
970
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
971
      x.write(oprot)
972
      oprot.writeMessageEnd()
973
      oprot.trans.flush()
974
      return
975
    else:
976
      self._processMap[name](self, seqid, iprot, oprot)
977
    return True
978
 
669 chandransh 979
  def process_getProvider(self, seqid, iprot, oprot):
980
    args = getProvider_args()
981
    args.read(iprot)
982
    iprot.readMessageEnd()
983
    result = getProvider_result()
984
    try:
985
      result.success = self._handler.getProvider(args.providerId)
986
    except LogisticsServiceException, lse:
987
      result.lse = lse
988
    oprot.writeMessageBegin("getProvider", TMessageType.REPLY, seqid)
989
    result.write(oprot)
990
    oprot.writeMessageEnd()
991
    oprot.trans.flush()
992
 
675 chandransh 993
  def process_getAllProviders(self, seqid, iprot, oprot):
994
    args = getAllProviders_args()
995
    args.read(iprot)
996
    iprot.readMessageEnd()
997
    result = getAllProviders_result()
998
    try:
999
      result.success = self._handler.getAllProviders()
1000
    except LogisticsServiceException, lse:
1001
      result.lse = lse
1002
    oprot.writeMessageBegin("getAllProviders", TMessageType.REPLY, seqid)
1003
    result.write(oprot)
1004
    oprot.writeMessageEnd()
1005
    oprot.trans.flush()
1006
 
647 chandransh 1007
  def process_getLogisticsEstimation(self, seqid, iprot, oprot):
1008
    args = getLogisticsEstimation_args()
483 rajveer 1009
    args.read(iprot)
1010
    iprot.readMessageEnd()
647 chandransh 1011
    result = getLogisticsEstimation_result()
483 rajveer 1012
    try:
4630 mandeep.dh 1013
      result.success = self._handler.getLogisticsEstimation(args.itemId, args.destination_pin, args.type)
483 rajveer 1014
    except LogisticsServiceException, se:
1015
      result.se = se
647 chandransh 1016
    oprot.writeMessageBegin("getLogisticsEstimation", TMessageType.REPLY, seqid)
483 rajveer 1017
    result.write(oprot)
1018
    oprot.writeMessageEnd()
1019
    oprot.trans.flush()
1020
 
7256 rajveer 1021
  def process_getLogisticsEstimationForStore(self, seqid, iprot, oprot):
1022
    args = getLogisticsEstimationForStore_args()
1023
    args.read(iprot)
1024
    iprot.readMessageEnd()
1025
    result = getLogisticsEstimationForStore_result()
1026
    try:
1027
      result.success = self._handler.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type)
1028
    except LogisticsServiceException, se:
1029
      result.se = se
1030
    oprot.writeMessageBegin("getLogisticsEstimationForStore", TMessageType.REPLY, seqid)
1031
    result.write(oprot)
1032
    oprot.writeMessageEnd()
1033
    oprot.trans.flush()
1034
 
647 chandransh 1035
  def process_getLogisticsInfo(self, seqid, iprot, oprot):
1036
    args = getLogisticsInfo_args()
472 rajveer 1037
    args.read(iprot)
1038
    iprot.readMessageEnd()
647 chandransh 1039
    result = getLogisticsInfo_result()
472 rajveer 1040
    try:
5767 rajveer 1041
      result.success = self._handler.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp)
472 rajveer 1042
    except LogisticsServiceException, se:
1043
      result.se = se
647 chandransh 1044
    oprot.writeMessageBegin("getLogisticsInfo", TMessageType.REPLY, seqid)
472 rajveer 1045
    result.write(oprot)
1046
    oprot.writeMessageEnd()
1047
    oprot.trans.flush()
1048
 
412 ashish 1049
  def process_getEmptyAWB(self, seqid, iprot, oprot):
1050
    args = getEmptyAWB_args()
1051
    args.read(iprot)
1052
    iprot.readMessageEnd()
1053
    result = getEmptyAWB_result()
647 chandransh 1054
    try:
5247 rajveer 1055
      result.success = self._handler.getEmptyAWB(args.providerId, args.type)
647 chandransh 1056
    except LogisticsServiceException, se:
1057
      result.se = se
412 ashish 1058
    oprot.writeMessageBegin("getEmptyAWB", TMessageType.REPLY, seqid)
1059
    result.write(oprot)
1060
    oprot.writeMessageEnd()
1061
    oprot.trans.flush()
1062
 
1063
  def process_getShipmentInfo(self, seqid, iprot, oprot):
1064
    args = getShipmentInfo_args()
1065
    args.read(iprot)
1066
    iprot.readMessageEnd()
1067
    result = getShipmentInfo_result()
647 chandransh 1068
    try:
6643 rajveer 1069
      result.success = self._handler.getShipmentInfo(args.awbNumber, args.providerId)
647 chandransh 1070
    except LogisticsServiceException, se:
1071
      result.se = se
412 ashish 1072
    oprot.writeMessageBegin("getShipmentInfo", TMessageType.REPLY, seqid)
1073
    result.write(oprot)
1074
    oprot.writeMessageEnd()
1075
    oprot.trans.flush()
1076
 
6643 rajveer 1077
  def process_storeShipmentInfo(self, seqid, iprot, oprot):
1078
    args = storeShipmentInfo_args()
1079
    args.read(iprot)
1080
    iprot.readMessageEnd()
1081
    result = storeShipmentInfo_result()
1082
    try:
1083
      self._handler.storeShipmentInfo(args.update)
1084
    except LogisticsServiceException, se:
1085
      result.se = se
1086
    oprot.writeMessageBegin("storeShipmentInfo", TMessageType.REPLY, seqid)
1087
    result.write(oprot)
1088
    oprot.writeMessageEnd()
1089
    oprot.trans.flush()
1090
 
732 chandransh 1091
  def process_getDestinationCode(self, seqid, iprot, oprot):
1092
    args = getDestinationCode_args()
1093
    args.read(iprot)
1094
    iprot.readMessageEnd()
1095
    result = getDestinationCode_result()
1096
    try:
1097
      result.success = self._handler.getDestinationCode(args.providerId, args.pinCode)
1098
    except LogisticsServiceException, se:
1099
      result.se = se
1100
    oprot.writeMessageBegin("getDestinationCode", TMessageType.REPLY, seqid)
1101
    result.write(oprot)
1102
    oprot.writeMessageEnd()
1103
    oprot.trans.flush()
412 ashish 1104
 
1137 chandransh 1105
  def process_getFreeAwbCount(self, seqid, iprot, oprot):
1106
    args = getFreeAwbCount_args()
1107
    args.read(iprot)
1108
    iprot.readMessageEnd()
1109
    result = getFreeAwbCount_result()
3103 chandransh 1110
    result.success = self._handler.getFreeAwbCount(args.providerId, args.type)
1137 chandransh 1111
    oprot.writeMessageBegin("getFreeAwbCount", TMessageType.REPLY, seqid)
1112
    result.write(oprot)
1113
    oprot.writeMessageEnd()
1114
    oprot.trans.flush()
732 chandransh 1115
 
1730 ankur.sing 1116
  def process_getHolidays(self, seqid, iprot, oprot):
1117
    args = getHolidays_args()
1118
    args.read(iprot)
1119
    iprot.readMessageEnd()
1120
    result = getHolidays_result()
1121
    result.success = self._handler.getHolidays(args.fromDate, args.toDate)
1122
    oprot.writeMessageBegin("getHolidays", TMessageType.REPLY, seqid)
1123
    result.write(oprot)
1124
    oprot.writeMessageEnd()
1125
    oprot.trans.flush()
1137 chandransh 1126
 
4934 amit.gupta 1127
  def process_getEntityLogisticsEstimation(self, seqid, iprot, oprot):
1128
    args = getEntityLogisticsEstimation_args()
1129
    args.read(iprot)
1130
    iprot.readMessageEnd()
1131
    result = getEntityLogisticsEstimation_result()
1132
    try:
1133
      result.success = self._handler.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type)
1134
    except LogisticsServiceException, se:
1135
      result.se = se
1136
    oprot.writeMessageBegin("getEntityLogisticsEstimation", TMessageType.REPLY, seqid)
1137
    result.write(oprot)
1138
    oprot.writeMessageEnd()
1139
    oprot.trans.flush()
1730 ankur.sing 1140
 
5527 anupam.sin 1141
  def process_getProviderForPickupType(self, seqid, iprot, oprot):
1142
    args = getProviderForPickupType_args()
1143
    args.read(iprot)
1144
    iprot.readMessageEnd()
1145
    result = getProviderForPickupType_result()
1146
    result.success = self._handler.getProviderForPickupType(args.pickUp)
1147
    oprot.writeMessageBegin("getProviderForPickupType", TMessageType.REPLY, seqid)
1148
    result.write(oprot)
1149
    oprot.writeMessageEnd()
1150
    oprot.trans.flush()
4934 amit.gupta 1151
 
5553 rajveer 1152
  def process_getAllPickupStores(self, seqid, iprot, oprot):
1153
    args = getAllPickupStores_args()
1154
    args.read(iprot)
1155
    iprot.readMessageEnd()
1156
    result = getAllPickupStores_result()
1157
    result.success = self._handler.getAllPickupStores()
1158
    oprot.writeMessageBegin("getAllPickupStores", TMessageType.REPLY, seqid)
1159
    result.write(oprot)
1160
    oprot.writeMessageEnd()
1161
    oprot.trans.flush()
5527 anupam.sin 1162
 
5553 rajveer 1163
  def process_getPickupStore(self, seqid, iprot, oprot):
1164
    args = getPickupStore_args()
1165
    args.read(iprot)
1166
    iprot.readMessageEnd()
1167
    result = getPickupStore_result()
1168
    result.success = self._handler.getPickupStore(args.storeId)
1169
    oprot.writeMessageBegin("getPickupStore", TMessageType.REPLY, seqid)
1170
    result.write(oprot)
1171
    oprot.writeMessageEnd()
1172
    oprot.trans.flush()
1173
 
5719 rajveer 1174
  def process_getPickupStoreByHotspotId(self, seqid, iprot, oprot):
1175
    args = getPickupStoreByHotspotId_args()
1176
    args.read(iprot)
1177
    iprot.readMessageEnd()
1178
    result = getPickupStoreByHotspotId_result()
1179
    result.success = self._handler.getPickupStoreByHotspotId(args.hotspotId)
1180
    oprot.writeMessageBegin("getPickupStoreByHotspotId", TMessageType.REPLY, seqid)
1181
    result.write(oprot)
1182
    oprot.writeMessageEnd()
1183
    oprot.trans.flush()
5553 rajveer 1184
 
6322 amar.kumar 1185
  def process_addPincode(self, seqid, iprot, oprot):
1186
    args = addPincode_args()
1187
    args.read(iprot)
1188
    iprot.readMessageEnd()
1189
    result = addPincode_result()
6524 rajveer 1190
    self._handler.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable)
6322 amar.kumar 1191
    oprot.writeMessageBegin("addPincode", TMessageType.REPLY, seqid)
1192
    result.write(oprot)
1193
    oprot.writeMessageEnd()
1194
    oprot.trans.flush()
5719 rajveer 1195
 
6322 amar.kumar 1196
  def process_updatePincode(self, seqid, iprot, oprot):
1197
    args = updatePincode_args()
1198
    args.read(iprot)
1199
    iprot.readMessageEnd()
1200
    result = updatePincode_result()
6524 rajveer 1201
    self._handler.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable)
6322 amar.kumar 1202
    oprot.writeMessageBegin("updatePincode", TMessageType.REPLY, seqid)
1203
    result.write(oprot)
1204
    oprot.writeMessageEnd()
1205
    oprot.trans.flush()
1206
 
7567 rajveer 1207
  def process_addNewAwbs(self, seqid, iprot, oprot):
1208
    args = addNewAwbs_args()
1209
    args.read(iprot)
1210
    iprot.readMessageEnd()
1211
    result = addNewAwbs_result()
1212
    result.success = self._handler.addNewAwbs(args.providerId, args.cod, args.awbs)
1213
    oprot.writeMessageBegin("addNewAwbs", TMessageType.REPLY, seqid)
1214
    result.write(oprot)
1215
    oprot.writeMessageEnd()
1216
    oprot.trans.flush()
6322 amar.kumar 1217
 
7738 manish.sha 1218
  def process_getServiceableLocationAsPerProviderIdAndPincode(self, seqid, iprot, oprot):
1219
    args = getServiceableLocationAsPerProviderIdAndPincode_args()
1220
    args.read(iprot)
1221
    iprot.readMessageEnd()
1222
    result = getServiceableLocationAsPerProviderIdAndPincode_result()
1223
    result.success = self._handler.getServiceableLocationAsPerProviderIdAndPincode(args.providerId, args.pincode)
1224
    oprot.writeMessageBegin("getServiceableLocationAsPerProviderIdAndPincode", TMessageType.REPLY, seqid)
1225
    result.write(oprot)
1226
    oprot.writeMessageEnd()
1227
    oprot.trans.flush()
7567 rajveer 1228
 
7738 manish.sha 1229
  def process_runCompleteUpdateForPincode(self, seqid, iprot, oprot):
1230
    args = runCompleteUpdateForPincode_args()
1231
    args.read(iprot)
1232
    iprot.readMessageEnd()
1233
    result = runCompleteUpdateForPincode_result()
1234
    self._handler.runCompleteUpdateForPincode()
1235
    oprot.writeMessageBegin("runCompleteUpdateForPincode", TMessageType.REPLY, seqid)
1236
    result.write(oprot)
1237
    oprot.writeMessageEnd()
1238
    oprot.trans.flush()
1239
 
1240
 
412 ashish 1241
# HELPER FUNCTIONS AND STRUCTURES
1242
 
669 chandransh 1243
class getProvider_args:
1244
  """
1245
  Attributes:
1246
   - providerId
1247
  """
1248
 
1249
  thrift_spec = (
1250
    None, # 0
1251
    (1, TType.I64, 'providerId', None, None, ), # 1
1252
  )
1253
 
1254
  def __init__(self, providerId=None,):
1255
    self.providerId = providerId
1256
 
1257
  def read(self, iprot):
1258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1260
      return
1261
    iprot.readStructBegin()
1262
    while True:
1263
      (fname, ftype, fid) = iprot.readFieldBegin()
1264
      if ftype == TType.STOP:
1265
        break
1266
      if fid == 1:
1267
        if ftype == TType.I64:
1268
          self.providerId = iprot.readI64();
1269
        else:
1270
          iprot.skip(ftype)
1271
      else:
1272
        iprot.skip(ftype)
1273
      iprot.readFieldEnd()
1274
    iprot.readStructEnd()
1275
 
1276
  def write(self, oprot):
1277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1279
      return
1280
    oprot.writeStructBegin('getProvider_args')
3431 rajveer 1281
    if self.providerId is not None:
669 chandransh 1282
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1283
      oprot.writeI64(self.providerId)
1284
      oprot.writeFieldEnd()
1285
    oprot.writeFieldStop()
1286
    oprot.writeStructEnd()
1287
 
3431 rajveer 1288
  def validate(self):
1289
    return
1290
 
1291
 
669 chandransh 1292
  def __repr__(self):
1293
    L = ['%s=%r' % (key, value)
1294
      for key, value in self.__dict__.iteritems()]
1295
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1296
 
1297
  def __eq__(self, other):
1298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1299
 
1300
  def __ne__(self, other):
1301
    return not (self == other)
1302
 
1303
class getProvider_result:
1304
  """
1305
  Attributes:
1306
   - success
1307
   - lse
1308
  """
1309
 
1310
  thrift_spec = (
1311
    (0, TType.STRUCT, 'success', (Provider, Provider.thrift_spec), None, ), # 0
1312
    (1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1313
  )
1314
 
1315
  def __init__(self, success=None, lse=None,):
1316
    self.success = success
1317
    self.lse = lse
1318
 
1319
  def read(self, iprot):
1320
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1321
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1322
      return
1323
    iprot.readStructBegin()
1324
    while True:
1325
      (fname, ftype, fid) = iprot.readFieldBegin()
1326
      if ftype == TType.STOP:
1327
        break
1328
      if fid == 0:
1329
        if ftype == TType.STRUCT:
1330
          self.success = Provider()
1331
          self.success.read(iprot)
1332
        else:
1333
          iprot.skip(ftype)
1334
      elif fid == 1:
1335
        if ftype == TType.STRUCT:
1336
          self.lse = LogisticsServiceException()
1337
          self.lse.read(iprot)
1338
        else:
1339
          iprot.skip(ftype)
1340
      else:
1341
        iprot.skip(ftype)
1342
      iprot.readFieldEnd()
1343
    iprot.readStructEnd()
1344
 
1345
  def write(self, oprot):
1346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1348
      return
1349
    oprot.writeStructBegin('getProvider_result')
3431 rajveer 1350
    if self.success is not None:
669 chandransh 1351
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1352
      self.success.write(oprot)
1353
      oprot.writeFieldEnd()
3431 rajveer 1354
    if self.lse is not None:
669 chandransh 1355
      oprot.writeFieldBegin('lse', TType.STRUCT, 1)
1356
      self.lse.write(oprot)
1357
      oprot.writeFieldEnd()
1358
    oprot.writeFieldStop()
1359
    oprot.writeStructEnd()
1360
 
3431 rajveer 1361
  def validate(self):
1362
    return
1363
 
1364
 
669 chandransh 1365
  def __repr__(self):
1366
    L = ['%s=%r' % (key, value)
1367
      for key, value in self.__dict__.iteritems()]
1368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1369
 
1370
  def __eq__(self, other):
1371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1372
 
1373
  def __ne__(self, other):
1374
    return not (self == other)
1375
 
675 chandransh 1376
class getAllProviders_args:
1377
 
1378
  thrift_spec = (
1379
  )
1380
 
1381
  def read(self, iprot):
1382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1384
      return
1385
    iprot.readStructBegin()
1386
    while True:
1387
      (fname, ftype, fid) = iprot.readFieldBegin()
1388
      if ftype == TType.STOP:
1389
        break
1390
      else:
1391
        iprot.skip(ftype)
1392
      iprot.readFieldEnd()
1393
    iprot.readStructEnd()
1394
 
1395
  def write(self, oprot):
1396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1398
      return
1399
    oprot.writeStructBegin('getAllProviders_args')
1400
    oprot.writeFieldStop()
1401
    oprot.writeStructEnd()
1402
 
3431 rajveer 1403
  def validate(self):
1404
    return
1405
 
1406
 
675 chandransh 1407
  def __repr__(self):
1408
    L = ['%s=%r' % (key, value)
1409
      for key, value in self.__dict__.iteritems()]
1410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1411
 
1412
  def __eq__(self, other):
1413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1414
 
1415
  def __ne__(self, other):
1416
    return not (self == other)
1417
 
1418
class getAllProviders_result:
1419
  """
1420
  Attributes:
1421
   - success
1422
   - lse
1423
  """
1424
 
1425
  thrift_spec = (
1426
    (0, TType.LIST, 'success', (TType.STRUCT,(Provider, Provider.thrift_spec)), None, ), # 0
1427
    (1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1428
  )
1429
 
1430
  def __init__(self, success=None, lse=None,):
1431
    self.success = success
1432
    self.lse = lse
1433
 
1434
  def read(self, iprot):
1435
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1436
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1437
      return
1438
    iprot.readStructBegin()
1439
    while True:
1440
      (fname, ftype, fid) = iprot.readFieldBegin()
1441
      if ftype == TType.STOP:
1442
        break
1443
      if fid == 0:
1444
        if ftype == TType.LIST:
1445
          self.success = []
3044 chandransh 1446
          (_etype12, _size9) = iprot.readListBegin()
1447
          for _i13 in xrange(_size9):
1448
            _elem14 = Provider()
1449
            _elem14.read(iprot)
1450
            self.success.append(_elem14)
675 chandransh 1451
          iprot.readListEnd()
1452
        else:
1453
          iprot.skip(ftype)
1454
      elif fid == 1:
1455
        if ftype == TType.STRUCT:
1456
          self.lse = LogisticsServiceException()
1457
          self.lse.read(iprot)
1458
        else:
1459
          iprot.skip(ftype)
1460
      else:
1461
        iprot.skip(ftype)
1462
      iprot.readFieldEnd()
1463
    iprot.readStructEnd()
1464
 
1465
  def write(self, oprot):
1466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1468
      return
1469
    oprot.writeStructBegin('getAllProviders_result')
3431 rajveer 1470
    if self.success is not None:
675 chandransh 1471
      oprot.writeFieldBegin('success', TType.LIST, 0)
1472
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3044 chandransh 1473
      for iter15 in self.success:
1474
        iter15.write(oprot)
675 chandransh 1475
      oprot.writeListEnd()
1476
      oprot.writeFieldEnd()
3431 rajveer 1477
    if self.lse is not None:
675 chandransh 1478
      oprot.writeFieldBegin('lse', TType.STRUCT, 1)
1479
      self.lse.write(oprot)
1480
      oprot.writeFieldEnd()
1481
    oprot.writeFieldStop()
1482
    oprot.writeStructEnd()
1483
 
3431 rajveer 1484
  def validate(self):
1485
    return
1486
 
1487
 
675 chandransh 1488
  def __repr__(self):
1489
    L = ['%s=%r' % (key, value)
1490
      for key, value in self.__dict__.iteritems()]
1491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1492
 
1493
  def __eq__(self, other):
1494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1495
 
1496
  def __ne__(self, other):
1497
    return not (self == other)
1498
 
647 chandransh 1499
class getLogisticsEstimation_args:
483 rajveer 1500
  """
1501
  Attributes:
647 chandransh 1502
   - itemId
1503
   - destination_pin
4630 mandeep.dh 1504
   - type
483 rajveer 1505
  """
1506
 
1507
  thrift_spec = (
1508
    None, # 0
647 chandransh 1509
    (1, TType.I64, 'itemId', None, None, ), # 1
1510
    (2, TType.STRING, 'destination_pin', None, None, ), # 2
4630 mandeep.dh 1511
    (3, TType.I32, 'type', None, None, ), # 3
483 rajveer 1512
  )
1513
 
4630 mandeep.dh 1514
  def __init__(self, itemId=None, destination_pin=None, type=None,):
647 chandransh 1515
    self.itemId = itemId
1516
    self.destination_pin = destination_pin
4630 mandeep.dh 1517
    self.type = type
483 rajveer 1518
 
1519
  def read(self, iprot):
1520
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1521
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1522
      return
1523
    iprot.readStructBegin()
1524
    while True:
1525
      (fname, ftype, fid) = iprot.readFieldBegin()
1526
      if ftype == TType.STOP:
1527
        break
1528
      if fid == 1:
647 chandransh 1529
        if ftype == TType.I64:
1530
          self.itemId = iprot.readI64();
483 rajveer 1531
        else:
1532
          iprot.skip(ftype)
1533
      elif fid == 2:
1534
        if ftype == TType.STRING:
647 chandransh 1535
          self.destination_pin = iprot.readString();
483 rajveer 1536
        else:
1537
          iprot.skip(ftype)
4630 mandeep.dh 1538
      elif fid == 3:
1539
        if ftype == TType.I32:
1540
          self.type = iprot.readI32();
1541
        else:
1542
          iprot.skip(ftype)
483 rajveer 1543
      else:
1544
        iprot.skip(ftype)
1545
      iprot.readFieldEnd()
1546
    iprot.readStructEnd()
1547
 
1548
  def write(self, oprot):
1549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1551
      return
647 chandransh 1552
    oprot.writeStructBegin('getLogisticsEstimation_args')
3431 rajveer 1553
    if self.itemId is not None:
647 chandransh 1554
      oprot.writeFieldBegin('itemId', TType.I64, 1)
1555
      oprot.writeI64(self.itemId)
483 rajveer 1556
      oprot.writeFieldEnd()
3431 rajveer 1557
    if self.destination_pin is not None:
647 chandransh 1558
      oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
1559
      oprot.writeString(self.destination_pin)
483 rajveer 1560
      oprot.writeFieldEnd()
4630 mandeep.dh 1561
    if self.type is not None:
1562
      oprot.writeFieldBegin('type', TType.I32, 3)
1563
      oprot.writeI32(self.type)
1564
      oprot.writeFieldEnd()
483 rajveer 1565
    oprot.writeFieldStop()
1566
    oprot.writeStructEnd()
1567
 
3431 rajveer 1568
  def validate(self):
1569
    return
1570
 
1571
 
483 rajveer 1572
  def __repr__(self):
1573
    L = ['%s=%r' % (key, value)
1574
      for key, value in self.__dict__.iteritems()]
1575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1576
 
1577
  def __eq__(self, other):
1578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1579
 
1580
  def __ne__(self, other):
1581
    return not (self == other)
1582
 
647 chandransh 1583
class getLogisticsEstimation_result:
483 rajveer 1584
  """
1585
  Attributes:
1586
   - success
1587
   - se
1588
  """
1589
 
1590
  thrift_spec = (
1591
    (0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
1592
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1593
  )
1594
 
1595
  def __init__(self, success=None, se=None,):
1596
    self.success = success
1597
    self.se = se
1598
 
1599
  def read(self, iprot):
1600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1602
      return
1603
    iprot.readStructBegin()
1604
    while True:
1605
      (fname, ftype, fid) = iprot.readFieldBegin()
1606
      if ftype == TType.STOP:
1607
        break
1608
      if fid == 0:
1609
        if ftype == TType.STRUCT:
1610
          self.success = LogisticsInfo()
1611
          self.success.read(iprot)
1612
        else:
1613
          iprot.skip(ftype)
1614
      elif fid == 1:
1615
        if ftype == TType.STRUCT:
1616
          self.se = LogisticsServiceException()
1617
          self.se.read(iprot)
1618
        else:
1619
          iprot.skip(ftype)
1620
      else:
1621
        iprot.skip(ftype)
1622
      iprot.readFieldEnd()
1623
    iprot.readStructEnd()
1624
 
1625
  def write(self, oprot):
1626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1628
      return
647 chandransh 1629
    oprot.writeStructBegin('getLogisticsEstimation_result')
3431 rajveer 1630
    if self.success is not None:
483 rajveer 1631
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1632
      self.success.write(oprot)
1633
      oprot.writeFieldEnd()
3431 rajveer 1634
    if self.se is not None:
483 rajveer 1635
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1636
      self.se.write(oprot)
1637
      oprot.writeFieldEnd()
1638
    oprot.writeFieldStop()
1639
    oprot.writeStructEnd()
1640
 
3431 rajveer 1641
  def validate(self):
1642
    return
1643
 
1644
 
483 rajveer 1645
  def __repr__(self):
1646
    L = ['%s=%r' % (key, value)
1647
      for key, value in self.__dict__.iteritems()]
1648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1649
 
1650
  def __eq__(self, other):
1651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1652
 
1653
  def __ne__(self, other):
1654
    return not (self == other)
1655
 
7256 rajveer 1656
class getLogisticsEstimationForStore_args:
1657
  """
1658
  Attributes:
1659
   - itemId
1660
   - destination_pin
1661
   - type
1662
  """
1663
 
1664
  thrift_spec = (
1665
    None, # 0
1666
    (1, TType.I64, 'itemId', None, None, ), # 1
1667
    (2, TType.STRING, 'destination_pin', None, None, ), # 2
1668
    (3, TType.I32, 'type', None, None, ), # 3
1669
  )
1670
 
1671
  def __init__(self, itemId=None, destination_pin=None, type=None,):
1672
    self.itemId = itemId
1673
    self.destination_pin = destination_pin
1674
    self.type = type
1675
 
1676
  def read(self, iprot):
1677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1679
      return
1680
    iprot.readStructBegin()
1681
    while True:
1682
      (fname, ftype, fid) = iprot.readFieldBegin()
1683
      if ftype == TType.STOP:
1684
        break
1685
      if fid == 1:
1686
        if ftype == TType.I64:
1687
          self.itemId = iprot.readI64();
1688
        else:
1689
          iprot.skip(ftype)
1690
      elif fid == 2:
1691
        if ftype == TType.STRING:
1692
          self.destination_pin = iprot.readString();
1693
        else:
1694
          iprot.skip(ftype)
1695
      elif fid == 3:
1696
        if ftype == TType.I32:
1697
          self.type = iprot.readI32();
1698
        else:
1699
          iprot.skip(ftype)
1700
      else:
1701
        iprot.skip(ftype)
1702
      iprot.readFieldEnd()
1703
    iprot.readStructEnd()
1704
 
1705
  def write(self, oprot):
1706
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1707
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1708
      return
1709
    oprot.writeStructBegin('getLogisticsEstimationForStore_args')
1710
    if self.itemId is not None:
1711
      oprot.writeFieldBegin('itemId', TType.I64, 1)
1712
      oprot.writeI64(self.itemId)
1713
      oprot.writeFieldEnd()
1714
    if self.destination_pin is not None:
1715
      oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
1716
      oprot.writeString(self.destination_pin)
1717
      oprot.writeFieldEnd()
1718
    if self.type is not None:
1719
      oprot.writeFieldBegin('type', TType.I32, 3)
1720
      oprot.writeI32(self.type)
1721
      oprot.writeFieldEnd()
1722
    oprot.writeFieldStop()
1723
    oprot.writeStructEnd()
1724
 
1725
  def validate(self):
1726
    return
1727
 
1728
 
1729
  def __repr__(self):
1730
    L = ['%s=%r' % (key, value)
1731
      for key, value in self.__dict__.iteritems()]
1732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1733
 
1734
  def __eq__(self, other):
1735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1736
 
1737
  def __ne__(self, other):
1738
    return not (self == other)
1739
 
1740
class getLogisticsEstimationForStore_result:
1741
  """
1742
  Attributes:
1743
   - success
1744
   - se
1745
  """
1746
 
1747
  thrift_spec = (
1748
    (0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
1749
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1750
  )
1751
 
1752
  def __init__(self, success=None, se=None,):
1753
    self.success = success
1754
    self.se = se
1755
 
1756
  def read(self, iprot):
1757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1759
      return
1760
    iprot.readStructBegin()
1761
    while True:
1762
      (fname, ftype, fid) = iprot.readFieldBegin()
1763
      if ftype == TType.STOP:
1764
        break
1765
      if fid == 0:
1766
        if ftype == TType.STRUCT:
1767
          self.success = LogisticsInfo()
1768
          self.success.read(iprot)
1769
        else:
1770
          iprot.skip(ftype)
1771
      elif fid == 1:
1772
        if ftype == TType.STRUCT:
1773
          self.se = LogisticsServiceException()
1774
          self.se.read(iprot)
1775
        else:
1776
          iprot.skip(ftype)
1777
      else:
1778
        iprot.skip(ftype)
1779
      iprot.readFieldEnd()
1780
    iprot.readStructEnd()
1781
 
1782
  def write(self, oprot):
1783
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1784
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1785
      return
1786
    oprot.writeStructBegin('getLogisticsEstimationForStore_result')
1787
    if self.success is not None:
1788
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1789
      self.success.write(oprot)
1790
      oprot.writeFieldEnd()
1791
    if self.se is not None:
1792
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1793
      self.se.write(oprot)
1794
      oprot.writeFieldEnd()
1795
    oprot.writeFieldStop()
1796
    oprot.writeStructEnd()
1797
 
1798
  def validate(self):
1799
    return
1800
 
1801
 
1802
  def __repr__(self):
1803
    L = ['%s=%r' % (key, value)
1804
      for key, value in self.__dict__.iteritems()]
1805
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1806
 
1807
  def __eq__(self, other):
1808
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1809
 
1810
  def __ne__(self, other):
1811
    return not (self == other)
1812
 
647 chandransh 1813
class getLogisticsInfo_args:
472 rajveer 1814
  """
1815
  Attributes:
647 chandransh 1816
   - destination_pincode
1817
   - item_id
3044 chandransh 1818
   - type
5767 rajveer 1819
   - pickUp
472 rajveer 1820
  """
1821
 
1822
  thrift_spec = (
1823
    None, # 0
647 chandransh 1824
    (1, TType.STRING, 'destination_pincode', None, None, ), # 1
716 rajveer 1825
    (2, TType.I64, 'item_id', None, None, ), # 2
3044 chandransh 1826
    (3, TType.I32, 'type', None, None, ), # 3
5767 rajveer 1827
    (4, TType.I32, 'pickUp', None, None, ), # 4
472 rajveer 1828
  )
1829
 
5767 rajveer 1830
  def __init__(self, destination_pincode=None, item_id=None, type=None, pickUp=None,):
647 chandransh 1831
    self.destination_pincode = destination_pincode
1832
    self.item_id = item_id
3044 chandransh 1833
    self.type = type
5767 rajveer 1834
    self.pickUp = pickUp
472 rajveer 1835
 
1836
  def read(self, iprot):
1837
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1838
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1839
      return
1840
    iprot.readStructBegin()
1841
    while True:
1842
      (fname, ftype, fid) = iprot.readFieldBegin()
1843
      if ftype == TType.STOP:
1844
        break
1845
      if fid == 1:
647 chandransh 1846
        if ftype == TType.STRING:
1847
          self.destination_pincode = iprot.readString();
472 rajveer 1848
        else:
1849
          iprot.skip(ftype)
1850
      elif fid == 2:
716 rajveer 1851
        if ftype == TType.I64:
1852
          self.item_id = iprot.readI64();
472 rajveer 1853
        else:
1854
          iprot.skip(ftype)
3044 chandransh 1855
      elif fid == 3:
1856
        if ftype == TType.I32:
1857
          self.type = iprot.readI32();
1858
        else:
1859
          iprot.skip(ftype)
5767 rajveer 1860
      elif fid == 4:
1861
        if ftype == TType.I32:
1862
          self.pickUp = iprot.readI32();
1863
        else:
1864
          iprot.skip(ftype)
472 rajveer 1865
      else:
1866
        iprot.skip(ftype)
1867
      iprot.readFieldEnd()
1868
    iprot.readStructEnd()
1869
 
1870
  def write(self, oprot):
1871
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1872
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1873
      return
647 chandransh 1874
    oprot.writeStructBegin('getLogisticsInfo_args')
3431 rajveer 1875
    if self.destination_pincode is not None:
647 chandransh 1876
      oprot.writeFieldBegin('destination_pincode', TType.STRING, 1)
1877
      oprot.writeString(self.destination_pincode)
472 rajveer 1878
      oprot.writeFieldEnd()
3431 rajveer 1879
    if self.item_id is not None:
716 rajveer 1880
      oprot.writeFieldBegin('item_id', TType.I64, 2)
1881
      oprot.writeI64(self.item_id)
472 rajveer 1882
      oprot.writeFieldEnd()
3431 rajveer 1883
    if self.type is not None:
3044 chandransh 1884
      oprot.writeFieldBegin('type', TType.I32, 3)
1885
      oprot.writeI32(self.type)
1886
      oprot.writeFieldEnd()
5767 rajveer 1887
    if self.pickUp is not None:
1888
      oprot.writeFieldBegin('pickUp', TType.I32, 4)
1889
      oprot.writeI32(self.pickUp)
1890
      oprot.writeFieldEnd()
472 rajveer 1891
    oprot.writeFieldStop()
1892
    oprot.writeStructEnd()
1893
 
3431 rajveer 1894
  def validate(self):
1895
    return
1896
 
1897
 
472 rajveer 1898
  def __repr__(self):
1899
    L = ['%s=%r' % (key, value)
1900
      for key, value in self.__dict__.iteritems()]
1901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1902
 
1903
  def __eq__(self, other):
1904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1905
 
1906
  def __ne__(self, other):
1907
    return not (self == other)
1908
 
647 chandransh 1909
class getLogisticsInfo_result:
472 rajveer 1910
  """
1911
  Attributes:
1912
   - success
1913
   - se
1914
  """
1915
 
1916
  thrift_spec = (
644 chandransh 1917
    (0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
472 rajveer 1918
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1919
  )
1920
 
1921
  def __init__(self, success=None, se=None,):
1922
    self.success = success
1923
    self.se = se
1924
 
1925
  def read(self, iprot):
1926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1928
      return
1929
    iprot.readStructBegin()
1930
    while True:
1931
      (fname, ftype, fid) = iprot.readFieldBegin()
1932
      if ftype == TType.STOP:
1933
        break
1934
      if fid == 0:
1935
        if ftype == TType.STRUCT:
644 chandransh 1936
          self.success = LogisticsInfo()
472 rajveer 1937
          self.success.read(iprot)
1938
        else:
1939
          iprot.skip(ftype)
1940
      elif fid == 1:
1941
        if ftype == TType.STRUCT:
1942
          self.se = LogisticsServiceException()
1943
          self.se.read(iprot)
1944
        else:
1945
          iprot.skip(ftype)
1946
      else:
1947
        iprot.skip(ftype)
1948
      iprot.readFieldEnd()
1949
    iprot.readStructEnd()
1950
 
1951
  def write(self, oprot):
1952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1954
      return
647 chandransh 1955
    oprot.writeStructBegin('getLogisticsInfo_result')
3431 rajveer 1956
    if self.success is not None:
472 rajveer 1957
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1958
      self.success.write(oprot)
1959
      oprot.writeFieldEnd()
3431 rajveer 1960
    if self.se is not None:
472 rajveer 1961
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1962
      self.se.write(oprot)
1963
      oprot.writeFieldEnd()
1964
    oprot.writeFieldStop()
1965
    oprot.writeStructEnd()
1966
 
3431 rajveer 1967
  def validate(self):
1968
    return
1969
 
1970
 
472 rajveer 1971
  def __repr__(self):
1972
    L = ['%s=%r' % (key, value)
1973
      for key, value in self.__dict__.iteritems()]
1974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1975
 
1976
  def __eq__(self, other):
1977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1978
 
1979
  def __ne__(self, other):
1980
    return not (self == other)
1981
 
412 ashish 1982
class getEmptyAWB_args:
1983
  """
1984
  Attributes:
647 chandransh 1985
   - providerId
5247 rajveer 1986
   - type
412 ashish 1987
  """
1988
 
5247 rajveer 1989
  thrift_spec = None
1990
  def __init__(self, providerId=None, type=None,):
647 chandransh 1991
    self.providerId = providerId
5247 rajveer 1992
    self.type = type
412 ashish 1993
 
1994
  def read(self, iprot):
1995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1997
      return
1998
    iprot.readStructBegin()
1999
    while True:
2000
      (fname, ftype, fid) = iprot.readFieldBegin()
2001
      if ftype == TType.STOP:
2002
        break
2003
      if fid == 1:
2004
        if ftype == TType.I64:
647 chandransh 2005
          self.providerId = iprot.readI64();
412 ashish 2006
        else:
2007
          iprot.skip(ftype)
5247 rajveer 2008
      elif fid == -1:
2009
        if ftype == TType.I32:
2010
          self.type = iprot.readI32();
2011
        else:
2012
          iprot.skip(ftype)
412 ashish 2013
      else:
2014
        iprot.skip(ftype)
2015
      iprot.readFieldEnd()
2016
    iprot.readStructEnd()
2017
 
2018
  def write(self, oprot):
2019
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2020
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2021
      return
2022
    oprot.writeStructBegin('getEmptyAWB_args')
5247 rajveer 2023
    if self.type is not None:
2024
      oprot.writeFieldBegin('type', TType.I32, -1)
2025
      oprot.writeI32(self.type)
2026
      oprot.writeFieldEnd()
3431 rajveer 2027
    if self.providerId is not None:
647 chandransh 2028
      oprot.writeFieldBegin('providerId', TType.I64, 1)
2029
      oprot.writeI64(self.providerId)
412 ashish 2030
      oprot.writeFieldEnd()
2031
    oprot.writeFieldStop()
2032
    oprot.writeStructEnd()
2033
 
3431 rajveer 2034
  def validate(self):
2035
    return
2036
 
2037
 
412 ashish 2038
  def __repr__(self):
2039
    L = ['%s=%r' % (key, value)
2040
      for key, value in self.__dict__.iteritems()]
2041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2042
 
2043
  def __eq__(self, other):
2044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2045
 
2046
  def __ne__(self, other):
2047
    return not (self == other)
2048
 
2049
class getEmptyAWB_result:
2050
  """
2051
  Attributes:
2052
   - success
647 chandransh 2053
   - se
412 ashish 2054
  """
2055
 
2056
  thrift_spec = (
2057
    (0, TType.STRING, 'success', None, None, ), # 0
647 chandransh 2058
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
412 ashish 2059
  )
2060
 
647 chandransh 2061
  def __init__(self, success=None, se=None,):
412 ashish 2062
    self.success = success
647 chandransh 2063
    self.se = se
412 ashish 2064
 
2065
  def read(self, iprot):
2066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2068
      return
2069
    iprot.readStructBegin()
2070
    while True:
2071
      (fname, ftype, fid) = iprot.readFieldBegin()
2072
      if ftype == TType.STOP:
2073
        break
2074
      if fid == 0:
2075
        if ftype == TType.STRING:
2076
          self.success = iprot.readString();
2077
        else:
2078
          iprot.skip(ftype)
647 chandransh 2079
      elif fid == 1:
2080
        if ftype == TType.STRUCT:
2081
          self.se = LogisticsServiceException()
2082
          self.se.read(iprot)
2083
        else:
2084
          iprot.skip(ftype)
412 ashish 2085
      else:
2086
        iprot.skip(ftype)
2087
      iprot.readFieldEnd()
2088
    iprot.readStructEnd()
2089
 
2090
  def write(self, oprot):
2091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2093
      return
2094
    oprot.writeStructBegin('getEmptyAWB_result')
3431 rajveer 2095
    if self.success is not None:
412 ashish 2096
      oprot.writeFieldBegin('success', TType.STRING, 0)
2097
      oprot.writeString(self.success)
2098
      oprot.writeFieldEnd()
3431 rajveer 2099
    if self.se is not None:
647 chandransh 2100
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2101
      self.se.write(oprot)
2102
      oprot.writeFieldEnd()
412 ashish 2103
    oprot.writeFieldStop()
2104
    oprot.writeStructEnd()
2105
 
3431 rajveer 2106
  def validate(self):
2107
    return
2108
 
2109
 
412 ashish 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
 
2121
class getShipmentInfo_args:
2122
  """
2123
  Attributes:
6643 rajveer 2124
   - awbNumber
647 chandransh 2125
   - providerId
412 ashish 2126
  """
2127
 
2128
  thrift_spec = (
2129
    None, # 0
6643 rajveer 2130
    (1, TType.STRING, 'awbNumber', None, None, ), # 1
647 chandransh 2131
    (2, TType.I64, 'providerId', None, None, ), # 2
412 ashish 2132
  )
2133
 
6643 rajveer 2134
  def __init__(self, awbNumber=None, providerId=None,):
2135
    self.awbNumber = awbNumber
647 chandransh 2136
    self.providerId = providerId
412 ashish 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.STRING:
6643 rajveer 2149
          self.awbNumber = iprot.readString();
412 ashish 2150
        else:
2151
          iprot.skip(ftype)
647 chandransh 2152
      elif fid == 2:
2153
        if ftype == TType.I64:
2154
          self.providerId = iprot.readI64();
2155
        else:
2156
          iprot.skip(ftype)
412 ashish 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('getShipmentInfo_args')
6643 rajveer 2167
    if self.awbNumber is not None:
2168
      oprot.writeFieldBegin('awbNumber', TType.STRING, 1)
2169
      oprot.writeString(self.awbNumber)
412 ashish 2170
      oprot.writeFieldEnd()
3431 rajveer 2171
    if self.providerId is not None:
647 chandransh 2172
      oprot.writeFieldBegin('providerId', TType.I64, 2)
2173
      oprot.writeI64(self.providerId)
2174
      oprot.writeFieldEnd()
412 ashish 2175
    oprot.writeFieldStop()
2176
    oprot.writeStructEnd()
2177
 
3431 rajveer 2178
  def validate(self):
2179
    return
2180
 
2181
 
412 ashish 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 getShipmentInfo_result:
2194
  """
2195
  Attributes:
2196
   - success
647 chandransh 2197
   - se
412 ashish 2198
  """
2199
 
2200
  thrift_spec = (
644 chandransh 2201
    (0, TType.LIST, 'success', (TType.STRUCT,(AwbUpdate, AwbUpdate.thrift_spec)), None, ), # 0
647 chandransh 2202
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
412 ashish 2203
  )
2204
 
647 chandransh 2205
  def __init__(self, success=None, se=None,):
412 ashish 2206
    self.success = success
647 chandransh 2207
    self.se = se
412 ashish 2208
 
2209
  def read(self, iprot):
2210
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2211
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2212
      return
2213
    iprot.readStructBegin()
2214
    while True:
2215
      (fname, ftype, fid) = iprot.readFieldBegin()
2216
      if ftype == TType.STOP:
2217
        break
2218
      if fid == 0:
2219
        if ftype == TType.LIST:
2220
          self.success = []
3044 chandransh 2221
          (_etype19, _size16) = iprot.readListBegin()
2222
          for _i20 in xrange(_size16):
2223
            _elem21 = AwbUpdate()
2224
            _elem21.read(iprot)
2225
            self.success.append(_elem21)
412 ashish 2226
          iprot.readListEnd()
2227
        else:
2228
          iprot.skip(ftype)
647 chandransh 2229
      elif fid == 1:
2230
        if ftype == TType.STRUCT:
2231
          self.se = LogisticsServiceException()
2232
          self.se.read(iprot)
2233
        else:
2234
          iprot.skip(ftype)
412 ashish 2235
      else:
2236
        iprot.skip(ftype)
2237
      iprot.readFieldEnd()
2238
    iprot.readStructEnd()
2239
 
2240
  def write(self, oprot):
2241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2243
      return
644 chandransh 2244
    oprot.writeStructBegin('getShipmentInfo_result')
3431 rajveer 2245
    if self.success is not None:
412 ashish 2246
      oprot.writeFieldBegin('success', TType.LIST, 0)
2247
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3044 chandransh 2248
      for iter22 in self.success:
2249
        iter22.write(oprot)
412 ashish 2250
      oprot.writeListEnd()
2251
      oprot.writeFieldEnd()
3431 rajveer 2252
    if self.se is not None:
647 chandransh 2253
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2254
      self.se.write(oprot)
2255
      oprot.writeFieldEnd()
412 ashish 2256
    oprot.writeFieldStop()
2257
    oprot.writeStructEnd()
2258
 
3431 rajveer 2259
  def validate(self):
2260
    return
2261
 
2262
 
412 ashish 2263
  def __repr__(self):
2264
    L = ['%s=%r' % (key, value)
2265
      for key, value in self.__dict__.iteritems()]
2266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2267
 
2268
  def __eq__(self, other):
2269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2270
 
2271
  def __ne__(self, other):
2272
    return not (self == other)
2273
 
6643 rajveer 2274
class storeShipmentInfo_args:
2275
  """
2276
  Attributes:
2277
   - update
2278
  """
2279
 
2280
  thrift_spec = (
2281
    None, # 0
2282
    (1, TType.STRUCT, 'update', (AwbUpdate, AwbUpdate.thrift_spec), None, ), # 1
2283
  )
2284
 
2285
  def __init__(self, update=None,):
2286
    self.update = update
2287
 
2288
  def read(self, iprot):
2289
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2290
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2291
      return
2292
    iprot.readStructBegin()
2293
    while True:
2294
      (fname, ftype, fid) = iprot.readFieldBegin()
2295
      if ftype == TType.STOP:
2296
        break
2297
      if fid == 1:
2298
        if ftype == TType.STRUCT:
2299
          self.update = AwbUpdate()
2300
          self.update.read(iprot)
2301
        else:
2302
          iprot.skip(ftype)
2303
      else:
2304
        iprot.skip(ftype)
2305
      iprot.readFieldEnd()
2306
    iprot.readStructEnd()
2307
 
2308
  def write(self, oprot):
2309
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2310
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2311
      return
2312
    oprot.writeStructBegin('storeShipmentInfo_args')
2313
    if self.update is not None:
2314
      oprot.writeFieldBegin('update', TType.STRUCT, 1)
2315
      self.update.write(oprot)
2316
      oprot.writeFieldEnd()
2317
    oprot.writeFieldStop()
2318
    oprot.writeStructEnd()
2319
 
2320
  def validate(self):
2321
    return
2322
 
2323
 
2324
  def __repr__(self):
2325
    L = ['%s=%r' % (key, value)
2326
      for key, value in self.__dict__.iteritems()]
2327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2328
 
2329
  def __eq__(self, other):
2330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2331
 
2332
  def __ne__(self, other):
2333
    return not (self == other)
2334
 
2335
class storeShipmentInfo_result:
2336
  """
2337
  Attributes:
2338
   - se
2339
  """
2340
 
2341
  thrift_spec = (
2342
    None, # 0
2343
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
2344
  )
2345
 
2346
  def __init__(self, se=None,):
2347
    self.se = se
2348
 
2349
  def read(self, iprot):
2350
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2351
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2352
      return
2353
    iprot.readStructBegin()
2354
    while True:
2355
      (fname, ftype, fid) = iprot.readFieldBegin()
2356
      if ftype == TType.STOP:
2357
        break
2358
      if fid == 1:
2359
        if ftype == TType.STRUCT:
2360
          self.se = LogisticsServiceException()
2361
          self.se.read(iprot)
2362
        else:
2363
          iprot.skip(ftype)
2364
      else:
2365
        iprot.skip(ftype)
2366
      iprot.readFieldEnd()
2367
    iprot.readStructEnd()
2368
 
2369
  def write(self, oprot):
2370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2372
      return
2373
    oprot.writeStructBegin('storeShipmentInfo_result')
2374
    if self.se is not None:
2375
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2376
      self.se.write(oprot)
2377
      oprot.writeFieldEnd()
2378
    oprot.writeFieldStop()
2379
    oprot.writeStructEnd()
2380
 
2381
  def validate(self):
2382
    return
2383
 
2384
 
2385
  def __repr__(self):
2386
    L = ['%s=%r' % (key, value)
2387
      for key, value in self.__dict__.iteritems()]
2388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2389
 
2390
  def __eq__(self, other):
2391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2392
 
2393
  def __ne__(self, other):
2394
    return not (self == other)
2395
 
732 chandransh 2396
class getDestinationCode_args:
2397
  """
2398
  Attributes:
2399
   - providerId
2400
   - pinCode
2401
  """
412 ashish 2402
 
732 chandransh 2403
  thrift_spec = (
2404
    None, # 0
2405
    (1, TType.I64, 'providerId', None, None, ), # 1
2406
    (2, TType.STRING, 'pinCode', None, None, ), # 2
2407
  )
2408
 
2409
  def __init__(self, providerId=None, pinCode=None,):
2410
    self.providerId = providerId
2411
    self.pinCode = pinCode
2412
 
2413
  def read(self, iprot):
2414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2416
      return
2417
    iprot.readStructBegin()
2418
    while True:
2419
      (fname, ftype, fid) = iprot.readFieldBegin()
2420
      if ftype == TType.STOP:
2421
        break
2422
      if fid == 1:
2423
        if ftype == TType.I64:
2424
          self.providerId = iprot.readI64();
2425
        else:
2426
          iprot.skip(ftype)
2427
      elif fid == 2:
2428
        if ftype == TType.STRING:
2429
          self.pinCode = iprot.readString();
2430
        else:
2431
          iprot.skip(ftype)
2432
      else:
2433
        iprot.skip(ftype)
2434
      iprot.readFieldEnd()
2435
    iprot.readStructEnd()
2436
 
2437
  def write(self, oprot):
2438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2440
      return
2441
    oprot.writeStructBegin('getDestinationCode_args')
3431 rajveer 2442
    if self.providerId is not None:
732 chandransh 2443
      oprot.writeFieldBegin('providerId', TType.I64, 1)
2444
      oprot.writeI64(self.providerId)
2445
      oprot.writeFieldEnd()
3431 rajveer 2446
    if self.pinCode is not None:
732 chandransh 2447
      oprot.writeFieldBegin('pinCode', TType.STRING, 2)
2448
      oprot.writeString(self.pinCode)
2449
      oprot.writeFieldEnd()
2450
    oprot.writeFieldStop()
2451
    oprot.writeStructEnd()
2452
 
3431 rajveer 2453
  def validate(self):
2454
    return
2455
 
2456
 
732 chandransh 2457
  def __repr__(self):
2458
    L = ['%s=%r' % (key, value)
2459
      for key, value in self.__dict__.iteritems()]
2460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2461
 
2462
  def __eq__(self, other):
2463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2464
 
2465
  def __ne__(self, other):
2466
    return not (self == other)
2467
 
2468
class getDestinationCode_result:
2469
  """
2470
  Attributes:
2471
   - success
2472
   - se
2473
  """
2474
 
2475
  thrift_spec = (
2476
    (0, TType.STRING, 'success', None, None, ), # 0
2477
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
2478
  )
2479
 
2480
  def __init__(self, success=None, se=None,):
2481
    self.success = success
2482
    self.se = se
2483
 
2484
  def read(self, iprot):
2485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2487
      return
2488
    iprot.readStructBegin()
2489
    while True:
2490
      (fname, ftype, fid) = iprot.readFieldBegin()
2491
      if ftype == TType.STOP:
2492
        break
2493
      if fid == 0:
2494
        if ftype == TType.STRING:
2495
          self.success = iprot.readString();
2496
        else:
2497
          iprot.skip(ftype)
2498
      elif fid == 1:
2499
        if ftype == TType.STRUCT:
2500
          self.se = LogisticsServiceException()
2501
          self.se.read(iprot)
2502
        else:
2503
          iprot.skip(ftype)
2504
      else:
2505
        iprot.skip(ftype)
2506
      iprot.readFieldEnd()
2507
    iprot.readStructEnd()
2508
 
2509
  def write(self, oprot):
2510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2512
      return
2513
    oprot.writeStructBegin('getDestinationCode_result')
3431 rajveer 2514
    if self.success is not None:
732 chandransh 2515
      oprot.writeFieldBegin('success', TType.STRING, 0)
2516
      oprot.writeString(self.success)
2517
      oprot.writeFieldEnd()
3431 rajveer 2518
    if self.se is not None:
732 chandransh 2519
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2520
      self.se.write(oprot)
2521
      oprot.writeFieldEnd()
2522
    oprot.writeFieldStop()
2523
    oprot.writeStructEnd()
2524
 
3431 rajveer 2525
  def validate(self):
2526
    return
2527
 
2528
 
732 chandransh 2529
  def __repr__(self):
2530
    L = ['%s=%r' % (key, value)
2531
      for key, value in self.__dict__.iteritems()]
2532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2533
 
2534
  def __eq__(self, other):
2535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2536
 
2537
  def __ne__(self, other):
2538
    return not (self == other)
2539
 
1137 chandransh 2540
class getFreeAwbCount_args:
2541
  """
2542
  Attributes:
2543
   - providerId
3103 chandransh 2544
   - type
1137 chandransh 2545
  """
732 chandransh 2546
 
1137 chandransh 2547
  thrift_spec = (
2548
    None, # 0
2549
    (1, TType.I64, 'providerId', None, None, ), # 1
3103 chandransh 2550
    (2, TType.STRING, 'type', None, None, ), # 2
1137 chandransh 2551
  )
2552
 
3103 chandransh 2553
  def __init__(self, providerId=None, type=None,):
1137 chandransh 2554
    self.providerId = providerId
3103 chandransh 2555
    self.type = type
1137 chandransh 2556
 
2557
  def read(self, iprot):
2558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2560
      return
2561
    iprot.readStructBegin()
2562
    while True:
2563
      (fname, ftype, fid) = iprot.readFieldBegin()
2564
      if ftype == TType.STOP:
2565
        break
2566
      if fid == 1:
2567
        if ftype == TType.I64:
2568
          self.providerId = iprot.readI64();
2569
        else:
2570
          iprot.skip(ftype)
3103 chandransh 2571
      elif fid == 2:
2572
        if ftype == TType.STRING:
2573
          self.type = iprot.readString();
2574
        else:
2575
          iprot.skip(ftype)
1137 chandransh 2576
      else:
2577
        iprot.skip(ftype)
2578
      iprot.readFieldEnd()
2579
    iprot.readStructEnd()
2580
 
2581
  def write(self, oprot):
2582
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2583
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2584
      return
2585
    oprot.writeStructBegin('getFreeAwbCount_args')
3431 rajveer 2586
    if self.providerId is not None:
1137 chandransh 2587
      oprot.writeFieldBegin('providerId', TType.I64, 1)
2588
      oprot.writeI64(self.providerId)
2589
      oprot.writeFieldEnd()
3431 rajveer 2590
    if self.type is not None:
3103 chandransh 2591
      oprot.writeFieldBegin('type', TType.STRING, 2)
2592
      oprot.writeString(self.type)
2593
      oprot.writeFieldEnd()
1137 chandransh 2594
    oprot.writeFieldStop()
2595
    oprot.writeStructEnd()
2596
 
3431 rajveer 2597
  def validate(self):
2598
    return
2599
 
2600
 
1137 chandransh 2601
  def __repr__(self):
2602
    L = ['%s=%r' % (key, value)
2603
      for key, value in self.__dict__.iteritems()]
2604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2605
 
2606
  def __eq__(self, other):
2607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2608
 
2609
  def __ne__(self, other):
2610
    return not (self == other)
2611
 
2612
class getFreeAwbCount_result:
2613
  """
2614
  Attributes:
2615
   - success
2616
  """
2617
 
2618
  thrift_spec = (
2619
    (0, TType.I64, 'success', None, None, ), # 0
2620
  )
2621
 
2622
  def __init__(self, success=None,):
2623
    self.success = success
2624
 
2625
  def read(self, iprot):
2626
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2627
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2628
      return
2629
    iprot.readStructBegin()
2630
    while True:
2631
      (fname, ftype, fid) = iprot.readFieldBegin()
2632
      if ftype == TType.STOP:
2633
        break
2634
      if fid == 0:
2635
        if ftype == TType.I64:
2636
          self.success = iprot.readI64();
2637
        else:
2638
          iprot.skip(ftype)
2639
      else:
2640
        iprot.skip(ftype)
2641
      iprot.readFieldEnd()
2642
    iprot.readStructEnd()
2643
 
2644
  def write(self, oprot):
2645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2647
      return
2648
    oprot.writeStructBegin('getFreeAwbCount_result')
3431 rajveer 2649
    if self.success is not None:
1137 chandransh 2650
      oprot.writeFieldBegin('success', TType.I64, 0)
2651
      oprot.writeI64(self.success)
2652
      oprot.writeFieldEnd()
2653
    oprot.writeFieldStop()
2654
    oprot.writeStructEnd()
2655
 
3431 rajveer 2656
  def validate(self):
2657
    return
2658
 
2659
 
1137 chandransh 2660
  def __repr__(self):
2661
    L = ['%s=%r' % (key, value)
2662
      for key, value in self.__dict__.iteritems()]
2663
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2664
 
2665
  def __eq__(self, other):
2666
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2667
 
2668
  def __ne__(self, other):
2669
    return not (self == other)
2670
 
1730 ankur.sing 2671
class getHolidays_args:
2672
  """
2673
  Attributes:
2674
   - fromDate
2675
   - toDate
2676
  """
1137 chandransh 2677
 
1730 ankur.sing 2678
  thrift_spec = (
2679
    None, # 0
2680
    (1, TType.I64, 'fromDate', None, None, ), # 1
2681
    (2, TType.I64, 'toDate', None, None, ), # 2
2682
  )
2683
 
2684
  def __init__(self, fromDate=None, toDate=None,):
2685
    self.fromDate = fromDate
2686
    self.toDate = toDate
2687
 
2688
  def read(self, iprot):
2689
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2690
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2691
      return
2692
    iprot.readStructBegin()
2693
    while True:
2694
      (fname, ftype, fid) = iprot.readFieldBegin()
2695
      if ftype == TType.STOP:
2696
        break
2697
      if fid == 1:
2698
        if ftype == TType.I64:
2699
          self.fromDate = iprot.readI64();
2700
        else:
2701
          iprot.skip(ftype)
2702
      elif fid == 2:
2703
        if ftype == TType.I64:
2704
          self.toDate = iprot.readI64();
2705
        else:
2706
          iprot.skip(ftype)
2707
      else:
2708
        iprot.skip(ftype)
2709
      iprot.readFieldEnd()
2710
    iprot.readStructEnd()
2711
 
2712
  def write(self, oprot):
2713
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2714
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2715
      return
2716
    oprot.writeStructBegin('getHolidays_args')
3431 rajveer 2717
    if self.fromDate is not None:
1730 ankur.sing 2718
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
2719
      oprot.writeI64(self.fromDate)
2720
      oprot.writeFieldEnd()
3431 rajveer 2721
    if self.toDate is not None:
1730 ankur.sing 2722
      oprot.writeFieldBegin('toDate', TType.I64, 2)
2723
      oprot.writeI64(self.toDate)
2724
      oprot.writeFieldEnd()
2725
    oprot.writeFieldStop()
2726
    oprot.writeStructEnd()
2727
 
3431 rajveer 2728
  def validate(self):
2729
    return
2730
 
2731
 
1730 ankur.sing 2732
  def __repr__(self):
2733
    L = ['%s=%r' % (key, value)
2734
      for key, value in self.__dict__.iteritems()]
2735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2736
 
2737
  def __eq__(self, other):
2738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2739
 
2740
  def __ne__(self, other):
2741
    return not (self == other)
2742
 
2743
class getHolidays_result:
2744
  """
2745
  Attributes:
2746
   - success
2747
  """
2748
 
2749
  thrift_spec = (
2750
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
2751
  )
2752
 
2753
  def __init__(self, success=None,):
2754
    self.success = success
2755
 
2756
  def read(self, iprot):
2757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2759
      return
2760
    iprot.readStructBegin()
2761
    while True:
2762
      (fname, ftype, fid) = iprot.readFieldBegin()
2763
      if ftype == TType.STOP:
2764
        break
2765
      if fid == 0:
2766
        if ftype == TType.LIST:
2767
          self.success = []
3044 chandransh 2768
          (_etype26, _size23) = iprot.readListBegin()
2769
          for _i27 in xrange(_size23):
2770
            _elem28 = iprot.readI64();
2771
            self.success.append(_elem28)
1730 ankur.sing 2772
          iprot.readListEnd()
2773
        else:
2774
          iprot.skip(ftype)
2775
      else:
2776
        iprot.skip(ftype)
2777
      iprot.readFieldEnd()
2778
    iprot.readStructEnd()
2779
 
2780
  def write(self, oprot):
2781
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2782
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2783
      return
2784
    oprot.writeStructBegin('getHolidays_result')
3431 rajveer 2785
    if self.success is not None:
1730 ankur.sing 2786
      oprot.writeFieldBegin('success', TType.LIST, 0)
2787
      oprot.writeListBegin(TType.I64, len(self.success))
3044 chandransh 2788
      for iter29 in self.success:
2789
        oprot.writeI64(iter29)
1730 ankur.sing 2790
      oprot.writeListEnd()
2791
      oprot.writeFieldEnd()
2792
    oprot.writeFieldStop()
2793
    oprot.writeStructEnd()
2794
 
3431 rajveer 2795
  def validate(self):
2796
    return
2797
 
2798
 
1730 ankur.sing 2799
  def __repr__(self):
2800
    L = ['%s=%r' % (key, value)
2801
      for key, value in self.__dict__.iteritems()]
2802
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2803
 
2804
  def __eq__(self, other):
2805
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2806
 
2807
  def __ne__(self, other):
2808
    return not (self == other)
4934 amit.gupta 2809
 
2810
class getEntityLogisticsEstimation_args:
2811
  """
2812
  Attributes:
2813
   - catalogItemId
2814
   - destination_pin
2815
   - type
2816
  """
2817
 
2818
  thrift_spec = (
2819
    None, # 0
2820
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
2821
    (2, TType.STRING, 'destination_pin', None, None, ), # 2
2822
    (3, TType.I32, 'type', None, None, ), # 3
2823
  )
2824
 
2825
  def __init__(self, catalogItemId=None, destination_pin=None, type=None,):
2826
    self.catalogItemId = catalogItemId
2827
    self.destination_pin = destination_pin
2828
    self.type = type
2829
 
2830
  def read(self, iprot):
2831
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2832
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2833
      return
2834
    iprot.readStructBegin()
2835
    while True:
2836
      (fname, ftype, fid) = iprot.readFieldBegin()
2837
      if ftype == TType.STOP:
2838
        break
2839
      if fid == 1:
2840
        if ftype == TType.I64:
2841
          self.catalogItemId = iprot.readI64();
2842
        else:
2843
          iprot.skip(ftype)
2844
      elif fid == 2:
2845
        if ftype == TType.STRING:
2846
          self.destination_pin = iprot.readString();
2847
        else:
2848
          iprot.skip(ftype)
2849
      elif fid == 3:
2850
        if ftype == TType.I32:
2851
          self.type = iprot.readI32();
2852
        else:
2853
          iprot.skip(ftype)
2854
      else:
2855
        iprot.skip(ftype)
2856
      iprot.readFieldEnd()
2857
    iprot.readStructEnd()
2858
 
2859
  def write(self, oprot):
2860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2862
      return
2863
    oprot.writeStructBegin('getEntityLogisticsEstimation_args')
2864
    if self.catalogItemId is not None:
2865
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
2866
      oprot.writeI64(self.catalogItemId)
2867
      oprot.writeFieldEnd()
2868
    if self.destination_pin is not None:
2869
      oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
2870
      oprot.writeString(self.destination_pin)
2871
      oprot.writeFieldEnd()
2872
    if self.type is not None:
2873
      oprot.writeFieldBegin('type', TType.I32, 3)
2874
      oprot.writeI32(self.type)
2875
      oprot.writeFieldEnd()
2876
    oprot.writeFieldStop()
2877
    oprot.writeStructEnd()
2878
 
2879
  def validate(self):
2880
    return
2881
 
2882
 
2883
  def __repr__(self):
2884
    L = ['%s=%r' % (key, value)
2885
      for key, value in self.__dict__.iteritems()]
2886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2887
 
2888
  def __eq__(self, other):
2889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2890
 
2891
  def __ne__(self, other):
2892
    return not (self == other)
2893
 
2894
class getEntityLogisticsEstimation_result:
2895
  """
2896
  Attributes:
2897
   - success
2898
   - se
2899
  """
2900
 
2901
  thrift_spec = (
2902
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
2903
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
2904
  )
2905
 
2906
  def __init__(self, success=None, se=None,):
2907
    self.success = success
2908
    self.se = se
2909
 
2910
  def read(self, iprot):
2911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2913
      return
2914
    iprot.readStructBegin()
2915
    while True:
2916
      (fname, ftype, fid) = iprot.readFieldBegin()
2917
      if ftype == TType.STOP:
2918
        break
2919
      if fid == 0:
2920
        if ftype == TType.LIST:
2921
          self.success = []
2922
          (_etype33, _size30) = iprot.readListBegin()
2923
          for _i34 in xrange(_size30):
2924
            _elem35 = iprot.readI64();
2925
            self.success.append(_elem35)
2926
          iprot.readListEnd()
2927
        else:
2928
          iprot.skip(ftype)
2929
      elif fid == 1:
2930
        if ftype == TType.STRUCT:
2931
          self.se = LogisticsServiceException()
2932
          self.se.read(iprot)
2933
        else:
2934
          iprot.skip(ftype)
2935
      else:
2936
        iprot.skip(ftype)
2937
      iprot.readFieldEnd()
2938
    iprot.readStructEnd()
2939
 
2940
  def write(self, oprot):
2941
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2942
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2943
      return
2944
    oprot.writeStructBegin('getEntityLogisticsEstimation_result')
2945
    if self.success is not None:
2946
      oprot.writeFieldBegin('success', TType.LIST, 0)
2947
      oprot.writeListBegin(TType.I64, len(self.success))
2948
      for iter36 in self.success:
2949
        oprot.writeI64(iter36)
2950
      oprot.writeListEnd()
2951
      oprot.writeFieldEnd()
2952
    if self.se is not None:
2953
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2954
      self.se.write(oprot)
2955
      oprot.writeFieldEnd()
2956
    oprot.writeFieldStop()
2957
    oprot.writeStructEnd()
2958
 
2959
  def validate(self):
2960
    return
2961
 
2962
 
2963
  def __repr__(self):
2964
    L = ['%s=%r' % (key, value)
2965
      for key, value in self.__dict__.iteritems()]
2966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2967
 
2968
  def __eq__(self, other):
2969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2970
 
2971
  def __ne__(self, other):
2972
    return not (self == other)
5527 anupam.sin 2973
 
2974
class getProviderForPickupType_args:
2975
  """
2976
  Attributes:
2977
   - pickUp
2978
  """
2979
 
2980
  thrift_spec = (
2981
    None, # 0
2982
    (1, TType.I64, 'pickUp', None, None, ), # 1
2983
  )
2984
 
2985
  def __init__(self, pickUp=None,):
2986
    self.pickUp = pickUp
2987
 
2988
  def read(self, iprot):
2989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2991
      return
2992
    iprot.readStructBegin()
2993
    while True:
2994
      (fname, ftype, fid) = iprot.readFieldBegin()
2995
      if ftype == TType.STOP:
2996
        break
2997
      if fid == 1:
2998
        if ftype == TType.I64:
2999
          self.pickUp = iprot.readI64();
3000
        else:
3001
          iprot.skip(ftype)
3002
      else:
3003
        iprot.skip(ftype)
3004
      iprot.readFieldEnd()
3005
    iprot.readStructEnd()
3006
 
3007
  def write(self, oprot):
3008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3010
      return
3011
    oprot.writeStructBegin('getProviderForPickupType_args')
3012
    if self.pickUp is not None:
3013
      oprot.writeFieldBegin('pickUp', TType.I64, 1)
3014
      oprot.writeI64(self.pickUp)
3015
      oprot.writeFieldEnd()
3016
    oprot.writeFieldStop()
3017
    oprot.writeStructEnd()
3018
 
3019
  def validate(self):
3020
    return
3021
 
3022
 
3023
  def __repr__(self):
3024
    L = ['%s=%r' % (key, value)
3025
      for key, value in self.__dict__.iteritems()]
3026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3027
 
3028
  def __eq__(self, other):
3029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3030
 
3031
  def __ne__(self, other):
3032
    return not (self == other)
3033
 
3034
class getProviderForPickupType_result:
3035
  """
3036
  Attributes:
3037
   - success
3038
  """
3039
 
3040
  thrift_spec = (
3041
    (0, TType.I64, 'success', None, None, ), # 0
3042
  )
3043
 
3044
  def __init__(self, success=None,):
3045
    self.success = success
3046
 
3047
  def read(self, iprot):
3048
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3049
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3050
      return
3051
    iprot.readStructBegin()
3052
    while True:
3053
      (fname, ftype, fid) = iprot.readFieldBegin()
3054
      if ftype == TType.STOP:
3055
        break
3056
      if fid == 0:
3057
        if ftype == TType.I64:
3058
          self.success = iprot.readI64();
3059
        else:
3060
          iprot.skip(ftype)
3061
      else:
3062
        iprot.skip(ftype)
3063
      iprot.readFieldEnd()
3064
    iprot.readStructEnd()
3065
 
3066
  def write(self, oprot):
3067
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3068
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3069
      return
3070
    oprot.writeStructBegin('getProviderForPickupType_result')
3071
    if self.success is not None:
3072
      oprot.writeFieldBegin('success', TType.I64, 0)
3073
      oprot.writeI64(self.success)
3074
      oprot.writeFieldEnd()
3075
    oprot.writeFieldStop()
3076
    oprot.writeStructEnd()
3077
 
3078
  def validate(self):
3079
    return
3080
 
3081
 
3082
  def __repr__(self):
3083
    L = ['%s=%r' % (key, value)
3084
      for key, value in self.__dict__.iteritems()]
3085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3086
 
3087
  def __eq__(self, other):
3088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3089
 
3090
  def __ne__(self, other):
3091
    return not (self == other)
5553 rajveer 3092
 
3093
class getAllPickupStores_args:
3094
 
3095
  thrift_spec = (
3096
  )
3097
 
3098
  def read(self, iprot):
3099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3101
      return
3102
    iprot.readStructBegin()
3103
    while True:
3104
      (fname, ftype, fid) = iprot.readFieldBegin()
3105
      if ftype == TType.STOP:
3106
        break
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('getAllPickupStores_args')
3117
    oprot.writeFieldStop()
3118
    oprot.writeStructEnd()
3119
 
3120
  def validate(self):
3121
    return
3122
 
3123
 
3124
  def __repr__(self):
3125
    L = ['%s=%r' % (key, value)
3126
      for key, value in self.__dict__.iteritems()]
3127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3128
 
3129
  def __eq__(self, other):
3130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3131
 
3132
  def __ne__(self, other):
3133
    return not (self == other)
3134
 
3135
class getAllPickupStores_result:
3136
  """
3137
  Attributes:
3138
   - success
3139
  """
3140
 
3141
  thrift_spec = (
3142
    (0, TType.LIST, 'success', (TType.STRUCT,(PickupStore, PickupStore.thrift_spec)), None, ), # 0
3143
  )
3144
 
3145
  def __init__(self, success=None,):
3146
    self.success = success
3147
 
3148
  def read(self, iprot):
3149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3151
      return
3152
    iprot.readStructBegin()
3153
    while True:
3154
      (fname, ftype, fid) = iprot.readFieldBegin()
3155
      if ftype == TType.STOP:
3156
        break
3157
      if fid == 0:
3158
        if ftype == TType.LIST:
3159
          self.success = []
3160
          (_etype40, _size37) = iprot.readListBegin()
3161
          for _i41 in xrange(_size37):
3162
            _elem42 = PickupStore()
3163
            _elem42.read(iprot)
3164
            self.success.append(_elem42)
3165
          iprot.readListEnd()
3166
        else:
3167
          iprot.skip(ftype)
3168
      else:
3169
        iprot.skip(ftype)
3170
      iprot.readFieldEnd()
3171
    iprot.readStructEnd()
3172
 
3173
  def write(self, oprot):
3174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3176
      return
3177
    oprot.writeStructBegin('getAllPickupStores_result')
3178
    if self.success is not None:
3179
      oprot.writeFieldBegin('success', TType.LIST, 0)
3180
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3181
      for iter43 in self.success:
3182
        iter43.write(oprot)
3183
      oprot.writeListEnd()
3184
      oprot.writeFieldEnd()
3185
    oprot.writeFieldStop()
3186
    oprot.writeStructEnd()
3187
 
3188
  def validate(self):
3189
    return
3190
 
3191
 
3192
  def __repr__(self):
3193
    L = ['%s=%r' % (key, value)
3194
      for key, value in self.__dict__.iteritems()]
3195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3196
 
3197
  def __eq__(self, other):
3198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3199
 
3200
  def __ne__(self, other):
3201
    return not (self == other)
3202
 
3203
class getPickupStore_args:
3204
  """
3205
  Attributes:
3206
   - storeId
3207
  """
3208
 
3209
  thrift_spec = (
3210
    None, # 0
3211
    (1, TType.I64, 'storeId', None, None, ), # 1
3212
  )
3213
 
3214
  def __init__(self, storeId=None,):
3215
    self.storeId = storeId
3216
 
3217
  def read(self, iprot):
3218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3220
      return
3221
    iprot.readStructBegin()
3222
    while True:
3223
      (fname, ftype, fid) = iprot.readFieldBegin()
3224
      if ftype == TType.STOP:
3225
        break
3226
      if fid == 1:
3227
        if ftype == TType.I64:
3228
          self.storeId = iprot.readI64();
3229
        else:
3230
          iprot.skip(ftype)
3231
      else:
3232
        iprot.skip(ftype)
3233
      iprot.readFieldEnd()
3234
    iprot.readStructEnd()
3235
 
3236
  def write(self, oprot):
3237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3239
      return
3240
    oprot.writeStructBegin('getPickupStore_args')
3241
    if self.storeId is not None:
3242
      oprot.writeFieldBegin('storeId', TType.I64, 1)
3243
      oprot.writeI64(self.storeId)
3244
      oprot.writeFieldEnd()
3245
    oprot.writeFieldStop()
3246
    oprot.writeStructEnd()
3247
 
3248
  def validate(self):
3249
    return
3250
 
3251
 
3252
  def __repr__(self):
3253
    L = ['%s=%r' % (key, value)
3254
      for key, value in self.__dict__.iteritems()]
3255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3256
 
3257
  def __eq__(self, other):
3258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3259
 
3260
  def __ne__(self, other):
3261
    return not (self == other)
3262
 
3263
class getPickupStore_result:
3264
  """
3265
  Attributes:
3266
   - success
3267
  """
3268
 
3269
  thrift_spec = (
3270
    (0, TType.STRUCT, 'success', (PickupStore, PickupStore.thrift_spec), None, ), # 0
3271
  )
3272
 
3273
  def __init__(self, success=None,):
3274
    self.success = success
3275
 
3276
  def read(self, iprot):
3277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3279
      return
3280
    iprot.readStructBegin()
3281
    while True:
3282
      (fname, ftype, fid) = iprot.readFieldBegin()
3283
      if ftype == TType.STOP:
3284
        break
3285
      if fid == 0:
3286
        if ftype == TType.STRUCT:
3287
          self.success = PickupStore()
3288
          self.success.read(iprot)
3289
        else:
3290
          iprot.skip(ftype)
3291
      else:
3292
        iprot.skip(ftype)
3293
      iprot.readFieldEnd()
3294
    iprot.readStructEnd()
3295
 
3296
  def write(self, oprot):
3297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3299
      return
3300
    oprot.writeStructBegin('getPickupStore_result')
3301
    if self.success is not None:
3302
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3303
      self.success.write(oprot)
3304
      oprot.writeFieldEnd()
3305
    oprot.writeFieldStop()
3306
    oprot.writeStructEnd()
3307
 
3308
  def validate(self):
3309
    return
3310
 
3311
 
3312
  def __repr__(self):
3313
    L = ['%s=%r' % (key, value)
3314
      for key, value in self.__dict__.iteritems()]
3315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3316
 
3317
  def __eq__(self, other):
3318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3319
 
3320
  def __ne__(self, other):
3321
    return not (self == other)
5719 rajveer 3322
 
3323
class getPickupStoreByHotspotId_args:
3324
  """
3325
  Attributes:
3326
   - hotspotId
3327
  """
3328
 
3329
  thrift_spec = (
3330
    None, # 0
3331
    (1, TType.STRING, 'hotspotId', None, None, ), # 1
3332
  )
3333
 
3334
  def __init__(self, hotspotId=None,):
3335
    self.hotspotId = hotspotId
3336
 
3337
  def read(self, iprot):
3338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3340
      return
3341
    iprot.readStructBegin()
3342
    while True:
3343
      (fname, ftype, fid) = iprot.readFieldBegin()
3344
      if ftype == TType.STOP:
3345
        break
3346
      if fid == 1:
3347
        if ftype == TType.STRING:
3348
          self.hotspotId = iprot.readString();
3349
        else:
3350
          iprot.skip(ftype)
3351
      else:
3352
        iprot.skip(ftype)
3353
      iprot.readFieldEnd()
3354
    iprot.readStructEnd()
3355
 
3356
  def write(self, oprot):
3357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3359
      return
3360
    oprot.writeStructBegin('getPickupStoreByHotspotId_args')
3361
    if self.hotspotId is not None:
3362
      oprot.writeFieldBegin('hotspotId', TType.STRING, 1)
3363
      oprot.writeString(self.hotspotId)
3364
      oprot.writeFieldEnd()
3365
    oprot.writeFieldStop()
3366
    oprot.writeStructEnd()
3367
 
3368
  def validate(self):
3369
    return
3370
 
3371
 
3372
  def __repr__(self):
3373
    L = ['%s=%r' % (key, value)
3374
      for key, value in self.__dict__.iteritems()]
3375
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3376
 
3377
  def __eq__(self, other):
3378
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3379
 
3380
  def __ne__(self, other):
3381
    return not (self == other)
3382
 
3383
class getPickupStoreByHotspotId_result:
3384
  """
3385
  Attributes:
3386
   - success
3387
  """
3388
 
3389
  thrift_spec = (
3390
    (0, TType.STRUCT, 'success', (PickupStore, PickupStore.thrift_spec), None, ), # 0
3391
  )
3392
 
3393
  def __init__(self, success=None,):
3394
    self.success = success
3395
 
3396
  def read(self, iprot):
3397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3399
      return
3400
    iprot.readStructBegin()
3401
    while True:
3402
      (fname, ftype, fid) = iprot.readFieldBegin()
3403
      if ftype == TType.STOP:
3404
        break
3405
      if fid == 0:
3406
        if ftype == TType.STRUCT:
3407
          self.success = PickupStore()
3408
          self.success.read(iprot)
3409
        else:
3410
          iprot.skip(ftype)
3411
      else:
3412
        iprot.skip(ftype)
3413
      iprot.readFieldEnd()
3414
    iprot.readStructEnd()
3415
 
3416
  def write(self, oprot):
3417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3419
      return
3420
    oprot.writeStructBegin('getPickupStoreByHotspotId_result')
3421
    if self.success is not None:
3422
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3423
      self.success.write(oprot)
3424
      oprot.writeFieldEnd()
3425
    oprot.writeFieldStop()
3426
    oprot.writeStructEnd()
3427
 
3428
  def validate(self):
3429
    return
3430
 
3431
 
3432
  def __repr__(self):
3433
    L = ['%s=%r' % (key, value)
3434
      for key, value in self.__dict__.iteritems()]
3435
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3436
 
3437
  def __eq__(self, other):
3438
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3439
 
3440
  def __ne__(self, other):
3441
    return not (self == other)
6322 amar.kumar 3442
 
3443
class addPincode_args:
3444
  """
3445
  Attributes:
3446
   - providerId
3447
   - pincode
3448
   - destCode
3449
   - exp
3450
   - cod
3451
   - stationType
6524 rajveer 3452
   - otgAvailable
6322 amar.kumar 3453
  """
3454
 
3455
  thrift_spec = (
3456
    None, # 0
3457
    (1, TType.I64, 'providerId', None, None, ), # 1
3458
    (2, TType.STRING, 'pincode', None, None, ), # 2
3459
    (3, TType.STRING, 'destCode', None, None, ), # 3
3460
    (4, TType.BOOL, 'exp', None, None, ), # 4
3461
    (5, TType.BOOL, 'cod', None, None, ), # 5
3462
    (6, TType.I32, 'stationType', None, None, ), # 6
6524 rajveer 3463
    (7, TType.BOOL, 'otgAvailable', None, None, ), # 7
6322 amar.kumar 3464
  )
3465
 
6524 rajveer 3466
  def __init__(self, providerId=None, pincode=None, destCode=None, exp=None, cod=None, stationType=None, otgAvailable=None,):
6322 amar.kumar 3467
    self.providerId = providerId
3468
    self.pincode = pincode
3469
    self.destCode = destCode
3470
    self.exp = exp
3471
    self.cod = cod
3472
    self.stationType = stationType
6524 rajveer 3473
    self.otgAvailable = otgAvailable
6322 amar.kumar 3474
 
3475
  def read(self, iprot):
3476
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3477
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3478
      return
3479
    iprot.readStructBegin()
3480
    while True:
3481
      (fname, ftype, fid) = iprot.readFieldBegin()
3482
      if ftype == TType.STOP:
3483
        break
3484
      if fid == 1:
3485
        if ftype == TType.I64:
3486
          self.providerId = iprot.readI64();
3487
        else:
3488
          iprot.skip(ftype)
3489
      elif fid == 2:
3490
        if ftype == TType.STRING:
3491
          self.pincode = iprot.readString();
3492
        else:
3493
          iprot.skip(ftype)
3494
      elif fid == 3:
3495
        if ftype == TType.STRING:
3496
          self.destCode = iprot.readString();
3497
        else:
3498
          iprot.skip(ftype)
3499
      elif fid == 4:
3500
        if ftype == TType.BOOL:
3501
          self.exp = iprot.readBool();
3502
        else:
3503
          iprot.skip(ftype)
3504
      elif fid == 5:
3505
        if ftype == TType.BOOL:
3506
          self.cod = iprot.readBool();
3507
        else:
3508
          iprot.skip(ftype)
3509
      elif fid == 6:
3510
        if ftype == TType.I32:
3511
          self.stationType = iprot.readI32();
3512
        else:
3513
          iprot.skip(ftype)
6524 rajveer 3514
      elif fid == 7:
3515
        if ftype == TType.BOOL:
3516
          self.otgAvailable = iprot.readBool();
3517
        else:
3518
          iprot.skip(ftype)
6322 amar.kumar 3519
      else:
3520
        iprot.skip(ftype)
3521
      iprot.readFieldEnd()
3522
    iprot.readStructEnd()
3523
 
3524
  def write(self, oprot):
3525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3527
      return
3528
    oprot.writeStructBegin('addPincode_args')
3529
    if self.providerId is not None:
3530
      oprot.writeFieldBegin('providerId', TType.I64, 1)
3531
      oprot.writeI64(self.providerId)
3532
      oprot.writeFieldEnd()
3533
    if self.pincode is not None:
3534
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
3535
      oprot.writeString(self.pincode)
3536
      oprot.writeFieldEnd()
3537
    if self.destCode is not None:
3538
      oprot.writeFieldBegin('destCode', TType.STRING, 3)
3539
      oprot.writeString(self.destCode)
3540
      oprot.writeFieldEnd()
3541
    if self.exp is not None:
3542
      oprot.writeFieldBegin('exp', TType.BOOL, 4)
3543
      oprot.writeBool(self.exp)
3544
      oprot.writeFieldEnd()
3545
    if self.cod is not None:
3546
      oprot.writeFieldBegin('cod', TType.BOOL, 5)
3547
      oprot.writeBool(self.cod)
3548
      oprot.writeFieldEnd()
3549
    if self.stationType is not None:
3550
      oprot.writeFieldBegin('stationType', TType.I32, 6)
3551
      oprot.writeI32(self.stationType)
3552
      oprot.writeFieldEnd()
6524 rajveer 3553
    if self.otgAvailable is not None:
3554
      oprot.writeFieldBegin('otgAvailable', TType.BOOL, 7)
3555
      oprot.writeBool(self.otgAvailable)
3556
      oprot.writeFieldEnd()
6322 amar.kumar 3557
    oprot.writeFieldStop()
3558
    oprot.writeStructEnd()
3559
 
3560
  def validate(self):
3561
    return
3562
 
3563
 
3564
  def __repr__(self):
3565
    L = ['%s=%r' % (key, value)
3566
      for key, value in self.__dict__.iteritems()]
3567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3568
 
3569
  def __eq__(self, other):
3570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3571
 
3572
  def __ne__(self, other):
3573
    return not (self == other)
3574
 
3575
class addPincode_result:
3576
 
3577
  thrift_spec = (
3578
  )
3579
 
3580
  def read(self, iprot):
3581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3583
      return
3584
    iprot.readStructBegin()
3585
    while True:
3586
      (fname, ftype, fid) = iprot.readFieldBegin()
3587
      if ftype == TType.STOP:
3588
        break
3589
      else:
3590
        iprot.skip(ftype)
3591
      iprot.readFieldEnd()
3592
    iprot.readStructEnd()
3593
 
3594
  def write(self, oprot):
3595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3597
      return
3598
    oprot.writeStructBegin('addPincode_result')
3599
    oprot.writeFieldStop()
3600
    oprot.writeStructEnd()
3601
 
3602
  def validate(self):
3603
    return
3604
 
3605
 
3606
  def __repr__(self):
3607
    L = ['%s=%r' % (key, value)
3608
      for key, value in self.__dict__.iteritems()]
3609
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3610
 
3611
  def __eq__(self, other):
3612
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3613
 
3614
  def __ne__(self, other):
3615
    return not (self == other)
3616
 
3617
class updatePincode_args:
3618
  """
3619
  Attributes:
3620
   - providerId
3621
   - pincode
3622
   - exp
3623
   - cod
6524 rajveer 3624
   - otgAvailable
6322 amar.kumar 3625
  """
3626
 
3627
  thrift_spec = (
3628
    None, # 0
3629
    (1, TType.I64, 'providerId', None, None, ), # 1
3630
    (2, TType.STRING, 'pincode', None, None, ), # 2
3631
    (3, TType.BOOL, 'exp', None, None, ), # 3
3632
    (4, TType.BOOL, 'cod', None, None, ), # 4
6524 rajveer 3633
    (5, TType.BOOL, 'otgAvailable', None, None, ), # 5
6322 amar.kumar 3634
  )
3635
 
6524 rajveer 3636
  def __init__(self, providerId=None, pincode=None, exp=None, cod=None, otgAvailable=None,):
6322 amar.kumar 3637
    self.providerId = providerId
3638
    self.pincode = pincode
3639
    self.exp = exp
3640
    self.cod = cod
6524 rajveer 3641
    self.otgAvailable = otgAvailable
6322 amar.kumar 3642
 
3643
  def read(self, iprot):
3644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3646
      return
3647
    iprot.readStructBegin()
3648
    while True:
3649
      (fname, ftype, fid) = iprot.readFieldBegin()
3650
      if ftype == TType.STOP:
3651
        break
3652
      if fid == 1:
3653
        if ftype == TType.I64:
3654
          self.providerId = iprot.readI64();
3655
        else:
3656
          iprot.skip(ftype)
3657
      elif fid == 2:
3658
        if ftype == TType.STRING:
3659
          self.pincode = iprot.readString();
3660
        else:
3661
          iprot.skip(ftype)
3662
      elif fid == 3:
3663
        if ftype == TType.BOOL:
3664
          self.exp = iprot.readBool();
3665
        else:
3666
          iprot.skip(ftype)
3667
      elif fid == 4:
3668
        if ftype == TType.BOOL:
3669
          self.cod = iprot.readBool();
3670
        else:
3671
          iprot.skip(ftype)
6524 rajveer 3672
      elif fid == 5:
3673
        if ftype == TType.BOOL:
3674
          self.otgAvailable = iprot.readBool();
3675
        else:
3676
          iprot.skip(ftype)
6322 amar.kumar 3677
      else:
3678
        iprot.skip(ftype)
3679
      iprot.readFieldEnd()
3680
    iprot.readStructEnd()
3681
 
3682
  def write(self, oprot):
3683
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3684
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3685
      return
3686
    oprot.writeStructBegin('updatePincode_args')
3687
    if self.providerId is not None:
3688
      oprot.writeFieldBegin('providerId', TType.I64, 1)
3689
      oprot.writeI64(self.providerId)
3690
      oprot.writeFieldEnd()
3691
    if self.pincode is not None:
3692
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
3693
      oprot.writeString(self.pincode)
3694
      oprot.writeFieldEnd()
3695
    if self.exp is not None:
3696
      oprot.writeFieldBegin('exp', TType.BOOL, 3)
3697
      oprot.writeBool(self.exp)
3698
      oprot.writeFieldEnd()
3699
    if self.cod is not None:
3700
      oprot.writeFieldBegin('cod', TType.BOOL, 4)
3701
      oprot.writeBool(self.cod)
3702
      oprot.writeFieldEnd()
6524 rajveer 3703
    if self.otgAvailable is not None:
3704
      oprot.writeFieldBegin('otgAvailable', TType.BOOL, 5)
3705
      oprot.writeBool(self.otgAvailable)
3706
      oprot.writeFieldEnd()
6322 amar.kumar 3707
    oprot.writeFieldStop()
3708
    oprot.writeStructEnd()
3709
 
3710
  def validate(self):
3711
    return
3712
 
3713
 
3714
  def __repr__(self):
3715
    L = ['%s=%r' % (key, value)
3716
      for key, value in self.__dict__.iteritems()]
3717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3718
 
3719
  def __eq__(self, other):
3720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3721
 
3722
  def __ne__(self, other):
3723
    return not (self == other)
3724
 
3725
class updatePincode_result:
3726
 
3727
  thrift_spec = (
3728
  )
3729
 
3730
  def read(self, iprot):
3731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3733
      return
3734
    iprot.readStructBegin()
3735
    while True:
3736
      (fname, ftype, fid) = iprot.readFieldBegin()
3737
      if ftype == TType.STOP:
3738
        break
3739
      else:
3740
        iprot.skip(ftype)
3741
      iprot.readFieldEnd()
3742
    iprot.readStructEnd()
3743
 
3744
  def write(self, oprot):
3745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3747
      return
3748
    oprot.writeStructBegin('updatePincode_result')
3749
    oprot.writeFieldStop()
3750
    oprot.writeStructEnd()
3751
 
3752
  def validate(self):
3753
    return
3754
 
3755
 
3756
  def __repr__(self):
3757
    L = ['%s=%r' % (key, value)
3758
      for key, value in self.__dict__.iteritems()]
3759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3760
 
3761
  def __eq__(self, other):
3762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3763
 
3764
  def __ne__(self, other):
3765
    return not (self == other)
7567 rajveer 3766
 
3767
class addNewAwbs_args:
3768
  """
3769
  Attributes:
3770
   - providerId
3771
   - cod
3772
   - awbs
3773
  """
3774
 
3775
  thrift_spec = (
3776
    None, # 0
3777
    (1, TType.I64, 'providerId', None, None, ), # 1
3778
    (2, TType.BOOL, 'cod', None, None, ), # 2
3779
    (3, TType.LIST, 'awbs', (TType.STRING,None), None, ), # 3
3780
  )
3781
 
3782
  def __init__(self, providerId=None, cod=None, awbs=None,):
3783
    self.providerId = providerId
3784
    self.cod = cod
3785
    self.awbs = awbs
3786
 
3787
  def read(self, iprot):
3788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3790
      return
3791
    iprot.readStructBegin()
3792
    while True:
3793
      (fname, ftype, fid) = iprot.readFieldBegin()
3794
      if ftype == TType.STOP:
3795
        break
3796
      if fid == 1:
3797
        if ftype == TType.I64:
3798
          self.providerId = iprot.readI64();
3799
        else:
3800
          iprot.skip(ftype)
3801
      elif fid == 2:
3802
        if ftype == TType.BOOL:
3803
          self.cod = iprot.readBool();
3804
        else:
3805
          iprot.skip(ftype)
3806
      elif fid == 3:
3807
        if ftype == TType.LIST:
3808
          self.awbs = []
3809
          (_etype47, _size44) = iprot.readListBegin()
3810
          for _i48 in xrange(_size44):
3811
            _elem49 = iprot.readString();
3812
            self.awbs.append(_elem49)
3813
          iprot.readListEnd()
3814
        else:
3815
          iprot.skip(ftype)
3816
      else:
3817
        iprot.skip(ftype)
3818
      iprot.readFieldEnd()
3819
    iprot.readStructEnd()
3820
 
3821
  def write(self, oprot):
3822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3824
      return
3825
    oprot.writeStructBegin('addNewAwbs_args')
3826
    if self.providerId is not None:
3827
      oprot.writeFieldBegin('providerId', TType.I64, 1)
3828
      oprot.writeI64(self.providerId)
3829
      oprot.writeFieldEnd()
3830
    if self.cod is not None:
3831
      oprot.writeFieldBegin('cod', TType.BOOL, 2)
3832
      oprot.writeBool(self.cod)
3833
      oprot.writeFieldEnd()
3834
    if self.awbs is not None:
3835
      oprot.writeFieldBegin('awbs', TType.LIST, 3)
3836
      oprot.writeListBegin(TType.STRING, len(self.awbs))
3837
      for iter50 in self.awbs:
3838
        oprot.writeString(iter50)
3839
      oprot.writeListEnd()
3840
      oprot.writeFieldEnd()
3841
    oprot.writeFieldStop()
3842
    oprot.writeStructEnd()
3843
 
3844
  def validate(self):
3845
    return
3846
 
3847
 
3848
  def __repr__(self):
3849
    L = ['%s=%r' % (key, value)
3850
      for key, value in self.__dict__.iteritems()]
3851
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3852
 
3853
  def __eq__(self, other):
3854
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3855
 
3856
  def __ne__(self, other):
3857
    return not (self == other)
3858
 
3859
class addNewAwbs_result:
3860
  """
3861
  Attributes:
3862
   - success
3863
  """
3864
 
3865
  thrift_spec = (
3866
    (0, TType.BOOL, 'success', None, None, ), # 0
3867
  )
3868
 
3869
  def __init__(self, success=None,):
3870
    self.success = success
3871
 
3872
  def read(self, iprot):
3873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3875
      return
3876
    iprot.readStructBegin()
3877
    while True:
3878
      (fname, ftype, fid) = iprot.readFieldBegin()
3879
      if ftype == TType.STOP:
3880
        break
3881
      if fid == 0:
3882
        if ftype == TType.BOOL:
3883
          self.success = iprot.readBool();
3884
        else:
3885
          iprot.skip(ftype)
3886
      else:
3887
        iprot.skip(ftype)
3888
      iprot.readFieldEnd()
3889
    iprot.readStructEnd()
3890
 
3891
  def write(self, oprot):
3892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3894
      return
3895
    oprot.writeStructBegin('addNewAwbs_result')
3896
    if self.success is not None:
3897
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3898
      oprot.writeBool(self.success)
3899
      oprot.writeFieldEnd()
3900
    oprot.writeFieldStop()
3901
    oprot.writeStructEnd()
3902
 
3903
  def validate(self):
3904
    return
3905
 
3906
 
3907
  def __repr__(self):
3908
    L = ['%s=%r' % (key, value)
3909
      for key, value in self.__dict__.iteritems()]
3910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3911
 
3912
  def __eq__(self, other):
3913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3914
 
3915
  def __ne__(self, other):
3916
    return not (self == other)
7738 manish.sha 3917
 
3918
class getServiceableLocationAsPerProviderIdAndPincode_args:
3919
  """
3920
  Attributes:
3921
   - providerId
3922
   - pincode
3923
  """
3924
 
3925
  thrift_spec = (
3926
    None, # 0
3927
    (1, TType.I64, 'providerId', None, None, ), # 1
3928
    (2, TType.STRING, 'pincode', None, None, ), # 2
3929
  )
3930
 
3931
  def __init__(self, providerId=None, pincode=None,):
3932
    self.providerId = providerId
3933
    self.pincode = pincode
3934
 
3935
  def read(self, iprot):
3936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3938
      return
3939
    iprot.readStructBegin()
3940
    while True:
3941
      (fname, ftype, fid) = iprot.readFieldBegin()
3942
      if ftype == TType.STOP:
3943
        break
3944
      if fid == 1:
3945
        if ftype == TType.I64:
3946
          self.providerId = iprot.readI64();
3947
        else:
3948
          iprot.skip(ftype)
3949
      elif fid == 2:
3950
        if ftype == TType.STRING:
3951
          self.pincode = iprot.readString();
3952
        else:
3953
          iprot.skip(ftype)
3954
      else:
3955
        iprot.skip(ftype)
3956
      iprot.readFieldEnd()
3957
    iprot.readStructEnd()
3958
 
3959
  def write(self, oprot):
3960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3961
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3962
      return
3963
    oprot.writeStructBegin('getServiceableLocationAsPerProviderIdAndPincode_args')
3964
    if self.providerId is not None:
3965
      oprot.writeFieldBegin('providerId', TType.I64, 1)
3966
      oprot.writeI64(self.providerId)
3967
      oprot.writeFieldEnd()
3968
    if self.pincode is not None:
3969
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
3970
      oprot.writeString(self.pincode)
3971
      oprot.writeFieldEnd()
3972
    oprot.writeFieldStop()
3973
    oprot.writeStructEnd()
3974
 
3975
  def validate(self):
3976
    return
3977
 
3978
 
3979
  def __repr__(self):
3980
    L = ['%s=%r' % (key, value)
3981
      for key, value in self.__dict__.iteritems()]
3982
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3983
 
3984
  def __eq__(self, other):
3985
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3986
 
3987
  def __ne__(self, other):
3988
    return not (self == other)
3989
 
3990
class getServiceableLocationAsPerProviderIdAndPincode_result:
3991
  """
3992
  Attributes:
3993
   - success
3994
  """
3995
 
3996
  thrift_spec = (
3997
    (0, TType.BOOL, 'success', None, None, ), # 0
3998
  )
3999
 
4000
  def __init__(self, success=None,):
4001
    self.success = success
4002
 
4003
  def read(self, iprot):
4004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4006
      return
4007
    iprot.readStructBegin()
4008
    while True:
4009
      (fname, ftype, fid) = iprot.readFieldBegin()
4010
      if ftype == TType.STOP:
4011
        break
4012
      if fid == 0:
4013
        if ftype == TType.BOOL:
4014
          self.success = iprot.readBool();
4015
        else:
4016
          iprot.skip(ftype)
4017
      else:
4018
        iprot.skip(ftype)
4019
      iprot.readFieldEnd()
4020
    iprot.readStructEnd()
4021
 
4022
  def write(self, oprot):
4023
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4024
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4025
      return
4026
    oprot.writeStructBegin('getServiceableLocationAsPerProviderIdAndPincode_result')
4027
    if self.success is not None:
4028
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4029
      oprot.writeBool(self.success)
4030
      oprot.writeFieldEnd()
4031
    oprot.writeFieldStop()
4032
    oprot.writeStructEnd()
4033
 
4034
  def validate(self):
4035
    return
4036
 
4037
 
4038
  def __repr__(self):
4039
    L = ['%s=%r' % (key, value)
4040
      for key, value in self.__dict__.iteritems()]
4041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4042
 
4043
  def __eq__(self, other):
4044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4045
 
4046
  def __ne__(self, other):
4047
    return not (self == other)
4048
 
4049
class runCompleteUpdateForPincode_args:
4050
 
4051
  thrift_spec = (
4052
  )
4053
 
4054
  def read(self, iprot):
4055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4057
      return
4058
    iprot.readStructBegin()
4059
    while True:
4060
      (fname, ftype, fid) = iprot.readFieldBegin()
4061
      if ftype == TType.STOP:
4062
        break
4063
      else:
4064
        iprot.skip(ftype)
4065
      iprot.readFieldEnd()
4066
    iprot.readStructEnd()
4067
 
4068
  def write(self, oprot):
4069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4071
      return
4072
    oprot.writeStructBegin('runCompleteUpdateForPincode_args')
4073
    oprot.writeFieldStop()
4074
    oprot.writeStructEnd()
4075
 
4076
  def validate(self):
4077
    return
4078
 
4079
 
4080
  def __repr__(self):
4081
    L = ['%s=%r' % (key, value)
4082
      for key, value in self.__dict__.iteritems()]
4083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4084
 
4085
  def __eq__(self, other):
4086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4087
 
4088
  def __ne__(self, other):
4089
    return not (self == other)
4090
 
4091
class runCompleteUpdateForPincode_result:
4092
 
4093
  thrift_spec = (
4094
  )
4095
 
4096
  def read(self, iprot):
4097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4099
      return
4100
    iprot.readStructBegin()
4101
    while True:
4102
      (fname, ftype, fid) = iprot.readFieldBegin()
4103
      if ftype == TType.STOP:
4104
        break
4105
      else:
4106
        iprot.skip(ftype)
4107
      iprot.readFieldEnd()
4108
    iprot.readStructEnd()
4109
 
4110
  def write(self, oprot):
4111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4113
      return
4114
    oprot.writeStructBegin('runCompleteUpdateForPincode_result')
4115
    oprot.writeFieldStop()
4116
    oprot.writeStructEnd()
4117
 
4118
  def validate(self):
4119
    return
4120
 
4121
 
4122
  def __repr__(self):
4123
    L = ['%s=%r' % (key, value)
4124
      for key, value in self.__dict__.iteritems()]
4125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4126
 
4127
  def __eq__(self, other):
4128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4129
 
4130
  def __ne__(self, other):
4131
    return not (self == other)