Subversion Repositories SmartDukaan

Rev

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

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