Subversion Repositories SmartDukaan

Rev

Rev 7808 | Rev 9840 | 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 = (
2910
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
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):
2932
            _elem33 = iprot.readI64();
2933
            self.success.append(_elem33)
4934 amit.gupta 2934
          iprot.readListEnd()
2935
        else:
2936
          iprot.skip(ftype)
2937
      elif fid == 1:
2938
        if ftype == TType.STRUCT:
2939
          self.se = LogisticsServiceException()
2940
          self.se.read(iprot)
2941
        else:
2942
          iprot.skip(ftype)
2943
      else:
2944
        iprot.skip(ftype)
2945
      iprot.readFieldEnd()
2946
    iprot.readStructEnd()
2947
 
2948
  def write(self, oprot):
2949
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2950
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2951
      return
2952
    oprot.writeStructBegin('getEntityLogisticsEstimation_result')
2953
    if self.success is not None:
2954
      oprot.writeFieldBegin('success', TType.LIST, 0)
2955
      oprot.writeListBegin(TType.I64, len(self.success))
7792 anupam.sin 2956
      for iter34 in self.success:
2957
        oprot.writeI64(iter34)
4934 amit.gupta 2958
      oprot.writeListEnd()
2959
      oprot.writeFieldEnd()
2960
    if self.se is not None:
2961
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2962
      self.se.write(oprot)
2963
      oprot.writeFieldEnd()
2964
    oprot.writeFieldStop()
2965
    oprot.writeStructEnd()
2966
 
2967
  def validate(self):
2968
    return
2969
 
2970
 
2971
  def __repr__(self):
2972
    L = ['%s=%r' % (key, value)
2973
      for key, value in self.__dict__.iteritems()]
2974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2975
 
2976
  def __eq__(self, other):
2977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2978
 
2979
  def __ne__(self, other):
2980
    return not (self == other)
5527 anupam.sin 2981
 
2982
class getProviderForPickupType_args:
2983
  """
2984
  Attributes:
2985
   - pickUp
2986
  """
2987
 
2988
  thrift_spec = (
2989
    None, # 0
2990
    (1, TType.I64, 'pickUp', None, None, ), # 1
2991
  )
2992
 
2993
  def __init__(self, pickUp=None,):
2994
    self.pickUp = pickUp
2995
 
2996
  def read(self, iprot):
2997
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2998
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2999
      return
3000
    iprot.readStructBegin()
3001
    while True:
3002
      (fname, ftype, fid) = iprot.readFieldBegin()
3003
      if ftype == TType.STOP:
3004
        break
3005
      if fid == 1:
3006
        if ftype == TType.I64:
3007
          self.pickUp = iprot.readI64();
3008
        else:
3009
          iprot.skip(ftype)
3010
      else:
3011
        iprot.skip(ftype)
3012
      iprot.readFieldEnd()
3013
    iprot.readStructEnd()
3014
 
3015
  def write(self, oprot):
3016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3018
      return
3019
    oprot.writeStructBegin('getProviderForPickupType_args')
3020
    if self.pickUp is not None:
3021
      oprot.writeFieldBegin('pickUp', TType.I64, 1)
3022
      oprot.writeI64(self.pickUp)
3023
      oprot.writeFieldEnd()
3024
    oprot.writeFieldStop()
3025
    oprot.writeStructEnd()
3026
 
3027
  def validate(self):
3028
    return
3029
 
3030
 
3031
  def __repr__(self):
3032
    L = ['%s=%r' % (key, value)
3033
      for key, value in self.__dict__.iteritems()]
3034
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3035
 
3036
  def __eq__(self, other):
3037
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3038
 
3039
  def __ne__(self, other):
3040
    return not (self == other)
3041
 
3042
class getProviderForPickupType_result:
3043
  """
3044
  Attributes:
3045
   - success
3046
  """
3047
 
3048
  thrift_spec = (
3049
    (0, TType.I64, 'success', None, None, ), # 0
3050
  )
3051
 
3052
  def __init__(self, success=None,):
3053
    self.success = success
3054
 
3055
  def read(self, iprot):
3056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3058
      return
3059
    iprot.readStructBegin()
3060
    while True:
3061
      (fname, ftype, fid) = iprot.readFieldBegin()
3062
      if ftype == TType.STOP:
3063
        break
3064
      if fid == 0:
3065
        if ftype == TType.I64:
3066
          self.success = iprot.readI64();
3067
        else:
3068
          iprot.skip(ftype)
3069
      else:
3070
        iprot.skip(ftype)
3071
      iprot.readFieldEnd()
3072
    iprot.readStructEnd()
3073
 
3074
  def write(self, oprot):
3075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3077
      return
3078
    oprot.writeStructBegin('getProviderForPickupType_result')
3079
    if self.success is not None:
3080
      oprot.writeFieldBegin('success', TType.I64, 0)
3081
      oprot.writeI64(self.success)
3082
      oprot.writeFieldEnd()
3083
    oprot.writeFieldStop()
3084
    oprot.writeStructEnd()
3085
 
3086
  def validate(self):
3087
    return
3088
 
3089
 
3090
  def __repr__(self):
3091
    L = ['%s=%r' % (key, value)
3092
      for key, value in self.__dict__.iteritems()]
3093
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3094
 
3095
  def __eq__(self, other):
3096
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3097
 
3098
  def __ne__(self, other):
3099
    return not (self == other)
5553 rajveer 3100
 
3101
class getAllPickupStores_args:
3102
 
3103
  thrift_spec = (
3104
  )
3105
 
3106
  def read(self, iprot):
3107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3109
      return
3110
    iprot.readStructBegin()
3111
    while True:
3112
      (fname, ftype, fid) = iprot.readFieldBegin()
3113
      if ftype == TType.STOP:
3114
        break
3115
      else:
3116
        iprot.skip(ftype)
3117
      iprot.readFieldEnd()
3118
    iprot.readStructEnd()
3119
 
3120
  def write(self, oprot):
3121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3123
      return
3124
    oprot.writeStructBegin('getAllPickupStores_args')
3125
    oprot.writeFieldStop()
3126
    oprot.writeStructEnd()
3127
 
3128
  def validate(self):
3129
    return
3130
 
3131
 
3132
  def __repr__(self):
3133
    L = ['%s=%r' % (key, value)
3134
      for key, value in self.__dict__.iteritems()]
3135
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3136
 
3137
  def __eq__(self, other):
3138
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3139
 
3140
  def __ne__(self, other):
3141
    return not (self == other)
3142
 
3143
class getAllPickupStores_result:
3144
  """
3145
  Attributes:
3146
   - success
3147
  """
3148
 
3149
  thrift_spec = (
3150
    (0, TType.LIST, 'success', (TType.STRUCT,(PickupStore, PickupStore.thrift_spec)), None, ), # 0
3151
  )
3152
 
3153
  def __init__(self, success=None,):
3154
    self.success = success
3155
 
3156
  def read(self, iprot):
3157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3159
      return
3160
    iprot.readStructBegin()
3161
    while True:
3162
      (fname, ftype, fid) = iprot.readFieldBegin()
3163
      if ftype == TType.STOP:
3164
        break
3165
      if fid == 0:
3166
        if ftype == TType.LIST:
3167
          self.success = []
7792 anupam.sin 3168
          (_etype38, _size35) = iprot.readListBegin()
3169
          for _i39 in xrange(_size35):
3170
            _elem40 = PickupStore()
3171
            _elem40.read(iprot)
3172
            self.success.append(_elem40)
5553 rajveer 3173
          iprot.readListEnd()
3174
        else:
3175
          iprot.skip(ftype)
3176
      else:
3177
        iprot.skip(ftype)
3178
      iprot.readFieldEnd()
3179
    iprot.readStructEnd()
3180
 
3181
  def write(self, oprot):
3182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3184
      return
3185
    oprot.writeStructBegin('getAllPickupStores_result')
3186
    if self.success is not None:
3187
      oprot.writeFieldBegin('success', TType.LIST, 0)
3188
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7792 anupam.sin 3189
      for iter41 in self.success:
3190
        iter41.write(oprot)
5553 rajveer 3191
      oprot.writeListEnd()
3192
      oprot.writeFieldEnd()
3193
    oprot.writeFieldStop()
3194
    oprot.writeStructEnd()
3195
 
3196
  def validate(self):
3197
    return
3198
 
3199
 
3200
  def __repr__(self):
3201
    L = ['%s=%r' % (key, value)
3202
      for key, value in self.__dict__.iteritems()]
3203
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3204
 
3205
  def __eq__(self, other):
3206
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3207
 
3208
  def __ne__(self, other):
3209
    return not (self == other)
3210
 
3211
class getPickupStore_args:
3212
  """
3213
  Attributes:
3214
   - storeId
3215
  """
3216
 
3217
  thrift_spec = (
3218
    None, # 0
3219
    (1, TType.I64, 'storeId', None, None, ), # 1
3220
  )
3221
 
3222
  def __init__(self, storeId=None,):
3223
    self.storeId = storeId
3224
 
3225
  def read(self, iprot):
3226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3228
      return
3229
    iprot.readStructBegin()
3230
    while True:
3231
      (fname, ftype, fid) = iprot.readFieldBegin()
3232
      if ftype == TType.STOP:
3233
        break
3234
      if fid == 1:
3235
        if ftype == TType.I64:
3236
          self.storeId = iprot.readI64();
3237
        else:
3238
          iprot.skip(ftype)
3239
      else:
3240
        iprot.skip(ftype)
3241
      iprot.readFieldEnd()
3242
    iprot.readStructEnd()
3243
 
3244
  def write(self, oprot):
3245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3247
      return
3248
    oprot.writeStructBegin('getPickupStore_args')
3249
    if self.storeId is not None:
3250
      oprot.writeFieldBegin('storeId', TType.I64, 1)
3251
      oprot.writeI64(self.storeId)
3252
      oprot.writeFieldEnd()
3253
    oprot.writeFieldStop()
3254
    oprot.writeStructEnd()
3255
 
3256
  def validate(self):
3257
    return
3258
 
3259
 
3260
  def __repr__(self):
3261
    L = ['%s=%r' % (key, value)
3262
      for key, value in self.__dict__.iteritems()]
3263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3264
 
3265
  def __eq__(self, other):
3266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3267
 
3268
  def __ne__(self, other):
3269
    return not (self == other)
3270
 
3271
class getPickupStore_result:
3272
  """
3273
  Attributes:
3274
   - success
3275
  """
3276
 
3277
  thrift_spec = (
3278
    (0, TType.STRUCT, 'success', (PickupStore, PickupStore.thrift_spec), None, ), # 0
3279
  )
3280
 
3281
  def __init__(self, success=None,):
3282
    self.success = success
3283
 
3284
  def read(self, iprot):
3285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3287
      return
3288
    iprot.readStructBegin()
3289
    while True:
3290
      (fname, ftype, fid) = iprot.readFieldBegin()
3291
      if ftype == TType.STOP:
3292
        break
3293
      if fid == 0:
3294
        if ftype == TType.STRUCT:
3295
          self.success = PickupStore()
3296
          self.success.read(iprot)
3297
        else:
3298
          iprot.skip(ftype)
3299
      else:
3300
        iprot.skip(ftype)
3301
      iprot.readFieldEnd()
3302
    iprot.readStructEnd()
3303
 
3304
  def write(self, oprot):
3305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3307
      return
3308
    oprot.writeStructBegin('getPickupStore_result')
3309
    if self.success is not None:
3310
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3311
      self.success.write(oprot)
3312
      oprot.writeFieldEnd()
3313
    oprot.writeFieldStop()
3314
    oprot.writeStructEnd()
3315
 
3316
  def validate(self):
3317
    return
3318
 
3319
 
3320
  def __repr__(self):
3321
    L = ['%s=%r' % (key, value)
3322
      for key, value in self.__dict__.iteritems()]
3323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3324
 
3325
  def __eq__(self, other):
3326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3327
 
3328
  def __ne__(self, other):
3329
    return not (self == other)
5719 rajveer 3330
 
3331
class getPickupStoreByHotspotId_args:
3332
  """
3333
  Attributes:
3334
   - hotspotId
3335
  """
3336
 
3337
  thrift_spec = (
3338
    None, # 0
3339
    (1, TType.STRING, 'hotspotId', None, None, ), # 1
3340
  )
3341
 
3342
  def __init__(self, hotspotId=None,):
3343
    self.hotspotId = hotspotId
3344
 
3345
  def read(self, iprot):
3346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3348
      return
3349
    iprot.readStructBegin()
3350
    while True:
3351
      (fname, ftype, fid) = iprot.readFieldBegin()
3352
      if ftype == TType.STOP:
3353
        break
3354
      if fid == 1:
3355
        if ftype == TType.STRING:
3356
          self.hotspotId = iprot.readString();
3357
        else:
3358
          iprot.skip(ftype)
3359
      else:
3360
        iprot.skip(ftype)
3361
      iprot.readFieldEnd()
3362
    iprot.readStructEnd()
3363
 
3364
  def write(self, oprot):
3365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3367
      return
3368
    oprot.writeStructBegin('getPickupStoreByHotspotId_args')
3369
    if self.hotspotId is not None:
3370
      oprot.writeFieldBegin('hotspotId', TType.STRING, 1)
3371
      oprot.writeString(self.hotspotId)
3372
      oprot.writeFieldEnd()
3373
    oprot.writeFieldStop()
3374
    oprot.writeStructEnd()
3375
 
3376
  def validate(self):
3377
    return
3378
 
3379
 
3380
  def __repr__(self):
3381
    L = ['%s=%r' % (key, value)
3382
      for key, value in self.__dict__.iteritems()]
3383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3384
 
3385
  def __eq__(self, other):
3386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3387
 
3388
  def __ne__(self, other):
3389
    return not (self == other)
3390
 
3391
class getPickupStoreByHotspotId_result:
3392
  """
3393
  Attributes:
3394
   - success
3395
  """
3396
 
3397
  thrift_spec = (
3398
    (0, TType.STRUCT, 'success', (PickupStore, PickupStore.thrift_spec), None, ), # 0
3399
  )
3400
 
3401
  def __init__(self, success=None,):
3402
    self.success = success
3403
 
3404
  def read(self, iprot):
3405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3407
      return
3408
    iprot.readStructBegin()
3409
    while True:
3410
      (fname, ftype, fid) = iprot.readFieldBegin()
3411
      if ftype == TType.STOP:
3412
        break
3413
      if fid == 0:
3414
        if ftype == TType.STRUCT:
3415
          self.success = PickupStore()
3416
          self.success.read(iprot)
3417
        else:
3418
          iprot.skip(ftype)
3419
      else:
3420
        iprot.skip(ftype)
3421
      iprot.readFieldEnd()
3422
    iprot.readStructEnd()
3423
 
3424
  def write(self, oprot):
3425
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3426
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3427
      return
3428
    oprot.writeStructBegin('getPickupStoreByHotspotId_result')
3429
    if self.success is not None:
3430
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3431
      self.success.write(oprot)
3432
      oprot.writeFieldEnd()
3433
    oprot.writeFieldStop()
3434
    oprot.writeStructEnd()
3435
 
3436
  def validate(self):
3437
    return
3438
 
3439
 
3440
  def __repr__(self):
3441
    L = ['%s=%r' % (key, value)
3442
      for key, value in self.__dict__.iteritems()]
3443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3444
 
3445
  def __eq__(self, other):
3446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3447
 
3448
  def __ne__(self, other):
3449
    return not (self == other)
6322 amar.kumar 3450
 
3451
class addPincode_args:
3452
  """
3453
  Attributes:
3454
   - providerId
3455
   - pincode
3456
   - destCode
3457
   - exp
3458
   - cod
3459
   - stationType
6524 rajveer 3460
   - otgAvailable
6322 amar.kumar 3461
  """
3462
 
3463
  thrift_spec = (
3464
    None, # 0
3465
    (1, TType.I64, 'providerId', None, None, ), # 1
3466
    (2, TType.STRING, 'pincode', None, None, ), # 2
3467
    (3, TType.STRING, 'destCode', None, None, ), # 3
3468
    (4, TType.BOOL, 'exp', None, None, ), # 4
3469
    (5, TType.BOOL, 'cod', None, None, ), # 5
3470
    (6, TType.I32, 'stationType', None, None, ), # 6
6524 rajveer 3471
    (7, TType.BOOL, 'otgAvailable', None, None, ), # 7
6322 amar.kumar 3472
  )
3473
 
6524 rajveer 3474
  def __init__(self, providerId=None, pincode=None, destCode=None, exp=None, cod=None, stationType=None, otgAvailable=None,):
6322 amar.kumar 3475
    self.providerId = providerId
3476
    self.pincode = pincode
3477
    self.destCode = destCode
3478
    self.exp = exp
3479
    self.cod = cod
3480
    self.stationType = stationType
6524 rajveer 3481
    self.otgAvailable = otgAvailable
6322 amar.kumar 3482
 
3483
  def read(self, iprot):
3484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3486
      return
3487
    iprot.readStructBegin()
3488
    while True:
3489
      (fname, ftype, fid) = iprot.readFieldBegin()
3490
      if ftype == TType.STOP:
3491
        break
3492
      if fid == 1:
3493
        if ftype == TType.I64:
3494
          self.providerId = iprot.readI64();
3495
        else:
3496
          iprot.skip(ftype)
3497
      elif fid == 2:
3498
        if ftype == TType.STRING:
3499
          self.pincode = iprot.readString();
3500
        else:
3501
          iprot.skip(ftype)
3502
      elif fid == 3:
3503
        if ftype == TType.STRING:
3504
          self.destCode = iprot.readString();
3505
        else:
3506
          iprot.skip(ftype)
3507
      elif fid == 4:
3508
        if ftype == TType.BOOL:
3509
          self.exp = iprot.readBool();
3510
        else:
3511
          iprot.skip(ftype)
3512
      elif fid == 5:
3513
        if ftype == TType.BOOL:
3514
          self.cod = iprot.readBool();
3515
        else:
3516
          iprot.skip(ftype)
3517
      elif fid == 6:
3518
        if ftype == TType.I32:
3519
          self.stationType = iprot.readI32();
3520
        else:
3521
          iprot.skip(ftype)
6524 rajveer 3522
      elif fid == 7:
3523
        if ftype == TType.BOOL:
3524
          self.otgAvailable = iprot.readBool();
3525
        else:
3526
          iprot.skip(ftype)
6322 amar.kumar 3527
      else:
3528
        iprot.skip(ftype)
3529
      iprot.readFieldEnd()
3530
    iprot.readStructEnd()
3531
 
3532
  def write(self, oprot):
3533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3535
      return
3536
    oprot.writeStructBegin('addPincode_args')
3537
    if self.providerId is not None:
3538
      oprot.writeFieldBegin('providerId', TType.I64, 1)
3539
      oprot.writeI64(self.providerId)
3540
      oprot.writeFieldEnd()
3541
    if self.pincode is not None:
3542
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
3543
      oprot.writeString(self.pincode)
3544
      oprot.writeFieldEnd()
3545
    if self.destCode is not None:
3546
      oprot.writeFieldBegin('destCode', TType.STRING, 3)
3547
      oprot.writeString(self.destCode)
3548
      oprot.writeFieldEnd()
3549
    if self.exp is not None:
3550
      oprot.writeFieldBegin('exp', TType.BOOL, 4)
3551
      oprot.writeBool(self.exp)
3552
      oprot.writeFieldEnd()
3553
    if self.cod is not None:
3554
      oprot.writeFieldBegin('cod', TType.BOOL, 5)
3555
      oprot.writeBool(self.cod)
3556
      oprot.writeFieldEnd()
3557
    if self.stationType is not None:
3558
      oprot.writeFieldBegin('stationType', TType.I32, 6)
3559
      oprot.writeI32(self.stationType)
3560
      oprot.writeFieldEnd()
6524 rajveer 3561
    if self.otgAvailable is not None:
3562
      oprot.writeFieldBegin('otgAvailable', TType.BOOL, 7)
3563
      oprot.writeBool(self.otgAvailable)
3564
      oprot.writeFieldEnd()
6322 amar.kumar 3565
    oprot.writeFieldStop()
3566
    oprot.writeStructEnd()
3567
 
3568
  def validate(self):
3569
    return
3570
 
3571
 
3572
  def __repr__(self):
3573
    L = ['%s=%r' % (key, value)
3574
      for key, value in self.__dict__.iteritems()]
3575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3576
 
3577
  def __eq__(self, other):
3578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3579
 
3580
  def __ne__(self, other):
3581
    return not (self == other)
3582
 
3583
class addPincode_result:
3584
 
3585
  thrift_spec = (
3586
  )
3587
 
3588
  def read(self, iprot):
3589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3591
      return
3592
    iprot.readStructBegin()
3593
    while True:
3594
      (fname, ftype, fid) = iprot.readFieldBegin()
3595
      if ftype == TType.STOP:
3596
        break
3597
      else:
3598
        iprot.skip(ftype)
3599
      iprot.readFieldEnd()
3600
    iprot.readStructEnd()
3601
 
3602
  def write(self, oprot):
3603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3605
      return
3606
    oprot.writeStructBegin('addPincode_result')
3607
    oprot.writeFieldStop()
3608
    oprot.writeStructEnd()
3609
 
3610
  def validate(self):
3611
    return
3612
 
3613
 
3614
  def __repr__(self):
3615
    L = ['%s=%r' % (key, value)
3616
      for key, value in self.__dict__.iteritems()]
3617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3618
 
3619
  def __eq__(self, other):
3620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3621
 
3622
  def __ne__(self, other):
3623
    return not (self == other)
3624
 
3625
class updatePincode_args:
3626
  """
3627
  Attributes:
3628
   - providerId
3629
   - pincode
3630
   - exp
3631
   - cod
6524 rajveer 3632
   - otgAvailable
6322 amar.kumar 3633
  """
3634
 
3635
  thrift_spec = (
3636
    None, # 0
3637
    (1, TType.I64, 'providerId', None, None, ), # 1
3638
    (2, TType.STRING, 'pincode', None, None, ), # 2
3639
    (3, TType.BOOL, 'exp', None, None, ), # 3
3640
    (4, TType.BOOL, 'cod', None, None, ), # 4
6524 rajveer 3641
    (5, TType.BOOL, 'otgAvailable', None, None, ), # 5
6322 amar.kumar 3642
  )
3643
 
6524 rajveer 3644
  def __init__(self, providerId=None, pincode=None, exp=None, cod=None, otgAvailable=None,):
6322 amar.kumar 3645
    self.providerId = providerId
3646
    self.pincode = pincode
3647
    self.exp = exp
3648
    self.cod = cod
6524 rajveer 3649
    self.otgAvailable = otgAvailable
6322 amar.kumar 3650
 
3651
  def read(self, iprot):
3652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3654
      return
3655
    iprot.readStructBegin()
3656
    while True:
3657
      (fname, ftype, fid) = iprot.readFieldBegin()
3658
      if ftype == TType.STOP:
3659
        break
3660
      if fid == 1:
3661
        if ftype == TType.I64:
3662
          self.providerId = iprot.readI64();
3663
        else:
3664
          iprot.skip(ftype)
3665
      elif fid == 2:
3666
        if ftype == TType.STRING:
3667
          self.pincode = iprot.readString();
3668
        else:
3669
          iprot.skip(ftype)
3670
      elif fid == 3:
3671
        if ftype == TType.BOOL:
3672
          self.exp = iprot.readBool();
3673
        else:
3674
          iprot.skip(ftype)
3675
      elif fid == 4:
3676
        if ftype == TType.BOOL:
3677
          self.cod = iprot.readBool();
3678
        else:
3679
          iprot.skip(ftype)
6524 rajveer 3680
      elif fid == 5:
3681
        if ftype == TType.BOOL:
3682
          self.otgAvailable = iprot.readBool();
3683
        else:
3684
          iprot.skip(ftype)
6322 amar.kumar 3685
      else:
3686
        iprot.skip(ftype)
3687
      iprot.readFieldEnd()
3688
    iprot.readStructEnd()
3689
 
3690
  def write(self, oprot):
3691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3693
      return
3694
    oprot.writeStructBegin('updatePincode_args')
3695
    if self.providerId is not None:
3696
      oprot.writeFieldBegin('providerId', TType.I64, 1)
3697
      oprot.writeI64(self.providerId)
3698
      oprot.writeFieldEnd()
3699
    if self.pincode is not None:
3700
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
3701
      oprot.writeString(self.pincode)
3702
      oprot.writeFieldEnd()
3703
    if self.exp is not None:
3704
      oprot.writeFieldBegin('exp', TType.BOOL, 3)
3705
      oprot.writeBool(self.exp)
3706
      oprot.writeFieldEnd()
3707
    if self.cod is not None:
3708
      oprot.writeFieldBegin('cod', TType.BOOL, 4)
3709
      oprot.writeBool(self.cod)
3710
      oprot.writeFieldEnd()
6524 rajveer 3711
    if self.otgAvailable is not None:
3712
      oprot.writeFieldBegin('otgAvailable', TType.BOOL, 5)
3713
      oprot.writeBool(self.otgAvailable)
3714
      oprot.writeFieldEnd()
6322 amar.kumar 3715
    oprot.writeFieldStop()
3716
    oprot.writeStructEnd()
3717
 
3718
  def validate(self):
3719
    return
3720
 
3721
 
3722
  def __repr__(self):
3723
    L = ['%s=%r' % (key, value)
3724
      for key, value in self.__dict__.iteritems()]
3725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3726
 
3727
  def __eq__(self, other):
3728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3729
 
3730
  def __ne__(self, other):
3731
    return not (self == other)
3732
 
3733
class updatePincode_result:
3734
 
3735
  thrift_spec = (
3736
  )
3737
 
3738
  def read(self, iprot):
3739
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3740
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3741
      return
3742
    iprot.readStructBegin()
3743
    while True:
3744
      (fname, ftype, fid) = iprot.readFieldBegin()
3745
      if ftype == TType.STOP:
3746
        break
3747
      else:
3748
        iprot.skip(ftype)
3749
      iprot.readFieldEnd()
3750
    iprot.readStructEnd()
3751
 
3752
  def write(self, oprot):
3753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3755
      return
3756
    oprot.writeStructBegin('updatePincode_result')
3757
    oprot.writeFieldStop()
3758
    oprot.writeStructEnd()
3759
 
3760
  def validate(self):
3761
    return
3762
 
3763
 
3764
  def __repr__(self):
3765
    L = ['%s=%r' % (key, value)
3766
      for key, value in self.__dict__.iteritems()]
3767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3768
 
3769
  def __eq__(self, other):
3770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3771
 
3772
  def __ne__(self, other):
3773
    return not (self == other)
7567 rajveer 3774
 
3775
class addNewAwbs_args:
3776
  """
3777
  Attributes:
3778
   - providerId
3779
   - cod
3780
   - awbs
3781
  """
3782
 
3783
  thrift_spec = (
3784
    None, # 0
3785
    (1, TType.I64, 'providerId', None, None, ), # 1
3786
    (2, TType.BOOL, 'cod', None, None, ), # 2
3787
    (3, TType.LIST, 'awbs', (TType.STRING,None), None, ), # 3
3788
  )
3789
 
3790
  def __init__(self, providerId=None, cod=None, awbs=None,):
3791
    self.providerId = providerId
3792
    self.cod = cod
3793
    self.awbs = awbs
3794
 
3795
  def read(self, iprot):
3796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3798
      return
3799
    iprot.readStructBegin()
3800
    while True:
3801
      (fname, ftype, fid) = iprot.readFieldBegin()
3802
      if ftype == TType.STOP:
3803
        break
3804
      if fid == 1:
3805
        if ftype == TType.I64:
3806
          self.providerId = iprot.readI64();
3807
        else:
3808
          iprot.skip(ftype)
3809
      elif fid == 2:
3810
        if ftype == TType.BOOL:
3811
          self.cod = iprot.readBool();
3812
        else:
3813
          iprot.skip(ftype)
3814
      elif fid == 3:
3815
        if ftype == TType.LIST:
3816
          self.awbs = []
7792 anupam.sin 3817
          (_etype45, _size42) = iprot.readListBegin()
3818
          for _i46 in xrange(_size42):
3819
            _elem47 = iprot.readString();
3820
            self.awbs.append(_elem47)
7567 rajveer 3821
          iprot.readListEnd()
3822
        else:
3823
          iprot.skip(ftype)
3824
      else:
3825
        iprot.skip(ftype)
3826
      iprot.readFieldEnd()
3827
    iprot.readStructEnd()
3828
 
3829
  def write(self, oprot):
3830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3832
      return
3833
    oprot.writeStructBegin('addNewAwbs_args')
3834
    if self.providerId is not None:
3835
      oprot.writeFieldBegin('providerId', TType.I64, 1)
3836
      oprot.writeI64(self.providerId)
3837
      oprot.writeFieldEnd()
3838
    if self.cod is not None:
3839
      oprot.writeFieldBegin('cod', TType.BOOL, 2)
3840
      oprot.writeBool(self.cod)
3841
      oprot.writeFieldEnd()
3842
    if self.awbs is not None:
3843
      oprot.writeFieldBegin('awbs', TType.LIST, 3)
3844
      oprot.writeListBegin(TType.STRING, len(self.awbs))
7792 anupam.sin 3845
      for iter48 in self.awbs:
3846
        oprot.writeString(iter48)
7567 rajveer 3847
      oprot.writeListEnd()
3848
      oprot.writeFieldEnd()
3849
    oprot.writeFieldStop()
3850
    oprot.writeStructEnd()
3851
 
3852
  def validate(self):
3853
    return
3854
 
3855
 
3856
  def __repr__(self):
3857
    L = ['%s=%r' % (key, value)
3858
      for key, value in self.__dict__.iteritems()]
3859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3860
 
3861
  def __eq__(self, other):
3862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3863
 
3864
  def __ne__(self, other):
3865
    return not (self == other)
3866
 
3867
class addNewAwbs_result:
3868
  """
3869
  Attributes:
3870
   - success
3871
  """
3872
 
3873
  thrift_spec = (
3874
    (0, TType.BOOL, 'success', None, None, ), # 0
3875
  )
3876
 
3877
  def __init__(self, success=None,):
3878
    self.success = success
3879
 
3880
  def read(self, iprot):
3881
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3882
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3883
      return
3884
    iprot.readStructBegin()
3885
    while True:
3886
      (fname, ftype, fid) = iprot.readFieldBegin()
3887
      if ftype == TType.STOP:
3888
        break
3889
      if fid == 0:
3890
        if ftype == TType.BOOL:
3891
          self.success = iprot.readBool();
3892
        else:
3893
          iprot.skip(ftype)
3894
      else:
3895
        iprot.skip(ftype)
3896
      iprot.readFieldEnd()
3897
    iprot.readStructEnd()
3898
 
3899
  def write(self, oprot):
3900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3902
      return
3903
    oprot.writeStructBegin('addNewAwbs_result')
3904
    if self.success is not None:
3905
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3906
      oprot.writeBool(self.success)
3907
      oprot.writeFieldEnd()
3908
    oprot.writeFieldStop()
3909
    oprot.writeStructEnd()
3910
 
3911
  def validate(self):
3912
    return
3913
 
3914
 
3915
  def __repr__(self):
3916
    L = ['%s=%r' % (key, value)
3917
      for key, value in self.__dict__.iteritems()]
3918
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3919
 
3920
  def __eq__(self, other):
3921
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3922
 
3923
  def __ne__(self, other):
3924
    return not (self == other)
7738 manish.sha 3925
 
7787 manish.sha 3926
class runLogisticsLocationInfoUpdate_args:
7738 manish.sha 3927
  """
3928
  Attributes:
7787 manish.sha 3929
   - logisticsLocationInfoList
3930
   - runCompleteUpdate
7738 manish.sha 3931
  """
3932
 
3933
  thrift_spec = (
3934
    None, # 0
7787 manish.sha 3935
    (1, TType.LIST, 'logisticsLocationInfoList', (TType.STRUCT,(LogisticsLocationInfo, LogisticsLocationInfo.thrift_spec)), None, ), # 1
3936
    (2, TType.BOOL, 'runCompleteUpdate', None, None, ), # 2
7738 manish.sha 3937
  )
3938
 
7787 manish.sha 3939
  def __init__(self, logisticsLocationInfoList=None, runCompleteUpdate=None,):
3940
    self.logisticsLocationInfoList = logisticsLocationInfoList
3941
    self.runCompleteUpdate = runCompleteUpdate
7738 manish.sha 3942
 
3943
  def read(self, iprot):
3944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3946
      return
3947
    iprot.readStructBegin()
3948
    while True:
3949
      (fname, ftype, fid) = iprot.readFieldBegin()
3950
      if ftype == TType.STOP:
3951
        break
3952
      if fid == 1:
7787 manish.sha 3953
        if ftype == TType.LIST:
3954
          self.logisticsLocationInfoList = []
7808 anupam.sin 3955
          (_etype52, _size49) = iprot.readListBegin()
3956
          for _i53 in xrange(_size49):
3957
            _elem54 = LogisticsLocationInfo()
3958
            _elem54.read(iprot)
3959
            self.logisticsLocationInfoList.append(_elem54)
7787 manish.sha 3960
          iprot.readListEnd()
7738 manish.sha 3961
        else:
3962
          iprot.skip(ftype)
3963
      elif fid == 2:
7787 manish.sha 3964
        if ftype == TType.BOOL:
3965
          self.runCompleteUpdate = iprot.readBool();
7738 manish.sha 3966
        else:
3967
          iprot.skip(ftype)
3968
      else:
3969
        iprot.skip(ftype)
3970
      iprot.readFieldEnd()
3971
    iprot.readStructEnd()
3972
 
3973
  def write(self, oprot):
3974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3976
      return
7787 manish.sha 3977
    oprot.writeStructBegin('runLogisticsLocationInfoUpdate_args')
3978
    if self.logisticsLocationInfoList is not None:
3979
      oprot.writeFieldBegin('logisticsLocationInfoList', TType.LIST, 1)
3980
      oprot.writeListBegin(TType.STRUCT, len(self.logisticsLocationInfoList))
7808 anupam.sin 3981
      for iter55 in self.logisticsLocationInfoList:
3982
        iter55.write(oprot)
7787 manish.sha 3983
      oprot.writeListEnd()
7738 manish.sha 3984
      oprot.writeFieldEnd()
7787 manish.sha 3985
    if self.runCompleteUpdate is not None:
3986
      oprot.writeFieldBegin('runCompleteUpdate', TType.BOOL, 2)
3987
      oprot.writeBool(self.runCompleteUpdate)
7738 manish.sha 3988
      oprot.writeFieldEnd()
3989
    oprot.writeFieldStop()
3990
    oprot.writeStructEnd()
3991
 
3992
  def validate(self):
3993
    return
3994
 
3995
 
3996
  def __repr__(self):
3997
    L = ['%s=%r' % (key, value)
3998
      for key, value in self.__dict__.iteritems()]
3999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4000
 
4001
  def __eq__(self, other):
4002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4003
 
4004
  def __ne__(self, other):
4005
    return not (self == other)
4006
 
7787 manish.sha 4007
class runLogisticsLocationInfoUpdate_result:
7738 manish.sha 4008
 
4009
  thrift_spec = (
4010
  )
4011
 
4012
  def read(self, iprot):
4013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4015
      return
4016
    iprot.readStructBegin()
4017
    while True:
4018
      (fname, ftype, fid) = iprot.readFieldBegin()
4019
      if ftype == TType.STOP:
4020
        break
4021
      else:
4022
        iprot.skip(ftype)
4023
      iprot.readFieldEnd()
4024
    iprot.readStructEnd()
4025
 
4026
  def write(self, oprot):
4027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4029
      return
7787 manish.sha 4030
    oprot.writeStructBegin('runLogisticsLocationInfoUpdate_result')
7738 manish.sha 4031
    oprot.writeFieldStop()
4032
    oprot.writeStructEnd()
4033
 
4034
  def validate(self):
4035
    return
4036
 
4037
 
4038
  def __repr__(self):
4039
    L = ['%s=%r' % (key, value)
4040
      for key, value in self.__dict__.iteritems()]
4041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4042
 
4043
  def __eq__(self, other):
4044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4045
 
4046
  def __ne__(self, other):
4047
    return not (self == other)
7888 rajveer 4048
 
4049
class adjustDeliveryDays_args:
4050
  """
4051
  Attributes:
4052
   - startDate
4053
   - days
4054
  """
4055
 
4056
  thrift_spec = (
4057
    None, # 0
4058
    (1, TType.I64, 'startDate', None, None, ), # 1
4059
    (2, TType.I64, 'days', None, None, ), # 2
4060
  )
4061
 
4062
  def __init__(self, startDate=None, days=None,):
4063
    self.startDate = startDate
4064
    self.days = days
4065
 
4066
  def read(self, iprot):
4067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4069
      return
4070
    iprot.readStructBegin()
4071
    while True:
4072
      (fname, ftype, fid) = iprot.readFieldBegin()
4073
      if ftype == TType.STOP:
4074
        break
4075
      if fid == 1:
4076
        if ftype == TType.I64:
4077
          self.startDate = iprot.readI64();
4078
        else:
4079
          iprot.skip(ftype)
4080
      elif fid == 2:
4081
        if ftype == TType.I64:
4082
          self.days = iprot.readI64();
4083
        else:
4084
          iprot.skip(ftype)
4085
      else:
4086
        iprot.skip(ftype)
4087
      iprot.readFieldEnd()
4088
    iprot.readStructEnd()
4089
 
4090
  def write(self, oprot):
4091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4093
      return
4094
    oprot.writeStructBegin('adjustDeliveryDays_args')
4095
    if self.startDate is not None:
4096
      oprot.writeFieldBegin('startDate', TType.I64, 1)
4097
      oprot.writeI64(self.startDate)
4098
      oprot.writeFieldEnd()
4099
    if self.days is not None:
4100
      oprot.writeFieldBegin('days', TType.I64, 2)
4101
      oprot.writeI64(self.days)
4102
      oprot.writeFieldEnd()
4103
    oprot.writeFieldStop()
4104
    oprot.writeStructEnd()
4105
 
4106
  def validate(self):
4107
    return
4108
 
4109
 
4110
  def __repr__(self):
4111
    L = ['%s=%r' % (key, value)
4112
      for key, value in self.__dict__.iteritems()]
4113
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4114
 
4115
  def __eq__(self, other):
4116
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4117
 
4118
  def __ne__(self, other):
4119
    return not (self == other)
4120
 
4121
class adjustDeliveryDays_result:
4122
  """
4123
  Attributes:
4124
   - success
4125
  """
4126
 
4127
  thrift_spec = (
4128
    (0, TType.I64, 'success', None, None, ), # 0
4129
  )
4130
 
4131
  def __init__(self, success=None,):
4132
    self.success = success
4133
 
4134
  def read(self, iprot):
4135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4137
      return
4138
    iprot.readStructBegin()
4139
    while True:
4140
      (fname, ftype, fid) = iprot.readFieldBegin()
4141
      if ftype == TType.STOP:
4142
        break
4143
      if fid == 0:
4144
        if ftype == TType.I64:
4145
          self.success = iprot.readI64();
4146
        else:
4147
          iprot.skip(ftype)
4148
      else:
4149
        iprot.skip(ftype)
4150
      iprot.readFieldEnd()
4151
    iprot.readStructEnd()
4152
 
4153
  def write(self, oprot):
4154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4156
      return
4157
    oprot.writeStructBegin('adjustDeliveryDays_result')
4158
    if self.success is not None:
4159
      oprot.writeFieldBegin('success', TType.I64, 0)
4160
      oprot.writeI64(self.success)
4161
      oprot.writeFieldEnd()
4162
    oprot.writeFieldStop()
4163
    oprot.writeStructEnd()
4164
 
4165
  def validate(self):
4166
    return
4167
 
4168
 
4169
  def __repr__(self):
4170
    L = ['%s=%r' % (key, value)
4171
      for key, value in self.__dict__.iteritems()]
4172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4173
 
4174
  def __eq__(self, other):
4175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4176
 
4177
  def __ne__(self, other):
4178
    return not (self == other)