Subversion Repositories SmartDukaan

Rev

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