Subversion Repositories SmartDukaan

Rev

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