Subversion Repositories SmartDukaan

Rev

Rev 5527 | Rev 5719 | 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
 
3044 chandransh 48
  def getLogisticsInfo(self, destination_pincode, item_id, type):
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
472 rajveer 56
    """
57
    pass
58
 
5247 rajveer 59
  def getEmptyAWB(self, providerId, type):
412 ashish 60
    """
647 chandransh 61
    Returns an unused AWB number for the given provider.
3431 rajveer 62
 
412 ashish 63
    Parameters:
647 chandransh 64
     - providerId
5247 rajveer 65
     - type
412 ashish 66
    """
67
    pass
68
 
647 chandransh 69
  def getShipmentInfo(self, awb, providerId):
412 ashish 70
    """
647 chandransh 71
    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 72
 
412 ashish 73
    Parameters:
74
     - awb
647 chandransh 75
     - providerId
412 ashish 76
    """
77
    pass
78
 
732 chandransh 79
  def getDestinationCode(self, providerId, pinCode):
80
    """
81
    Returns the short three letter code of a pincode for the given provider.
82
       Raises an exception if the pin code is not serviced by the given provider.
3431 rajveer 83
 
732 chandransh 84
    Parameters:
85
     - providerId
86
     - pinCode
87
    """
88
    pass
412 ashish 89
 
3103 chandransh 90
  def getFreeAwbCount(self, providerId, type):
1137 chandransh 91
    """
3103 chandransh 92
    Returns the number of unused AWB numbers for the given provider of the given type
3431 rajveer 93
 
1137 chandransh 94
    Parameters:
95
     - providerId
3103 chandransh 96
     - type
1137 chandransh 97
    """
98
    pass
732 chandransh 99
 
1730 ankur.sing 100
  def getHolidays(self, fromDate, toDate):
101
    """
102
    Returns list of Holiday dates between fromDate and toDate (both inclusive)
103
    fromDate should be passed as milliseconds corresponding to the start of the day.
104
    If fromDate is passed as -1, fromDate is not considered for filtering
105
    If toDate is passed as -1, toDate is not considered for filtering
3431 rajveer 106
 
1730 ankur.sing 107
    Parameters:
108
     - fromDate
109
     - toDate
110
    """
111
    pass
1137 chandransh 112
 
4934 amit.gupta 113
  def getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
114
    """
115
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
116
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
117
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 118
 
4934 amit.gupta 119
    Parameters:
120
     - catalogItemId
121
     - destination_pin
122
     - type
123
    """
124
    pass
125
 
5527 anupam.sin 126
  def getProviderForPickupType(self, pickUp):
127
    """
128
    Returns the id for a given pickUpType
4934 amit.gupta 129
 
5527 anupam.sin 130
    Parameters:
131
     - pickUp
132
    """
133
    pass
134
 
5553 rajveer 135
  def getAllPickupStores(self, ):
136
    pass
5527 anupam.sin 137
 
5553 rajveer 138
  def getPickupStore(self, storeId):
139
    """
140
    Parameters:
141
     - storeId
142
    """
143
    pass
144
 
145
 
3376 rajveer 146
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
412 ashish 147
  def __init__(self, iprot, oprot=None):
3376 rajveer 148
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
412 ashish 149
 
669 chandransh 150
  def getProvider(self, providerId):
151
    """
152
    Returns a provider for a given provider ID. Throws an exception if none found.
3431 rajveer 153
 
669 chandransh 154
    Parameters:
155
     - providerId
156
    """
157
    self.send_getProvider(providerId)
158
    return self.recv_getProvider()
159
 
160
  def send_getProvider(self, providerId):
161
    self._oprot.writeMessageBegin('getProvider', TMessageType.CALL, self._seqid)
162
    args = getProvider_args()
163
    args.providerId = providerId
164
    args.write(self._oprot)
165
    self._oprot.writeMessageEnd()
166
    self._oprot.trans.flush()
167
 
168
  def recv_getProvider(self, ):
169
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
170
    if mtype == TMessageType.EXCEPTION:
171
      x = TApplicationException()
172
      x.read(self._iprot)
173
      self._iprot.readMessageEnd()
174
      raise x
175
    result = getProvider_result()
176
    result.read(self._iprot)
177
    self._iprot.readMessageEnd()
3431 rajveer 178
    if result.success is not None:
669 chandransh 179
      return result.success
3431 rajveer 180
    if result.lse is not None:
669 chandransh 181
      raise result.lse
182
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
183
 
675 chandransh 184
  def getAllProviders(self, ):
185
    """
186
    Returns a list containing all the providers.
187
    """
188
    self.send_getAllProviders()
189
    return self.recv_getAllProviders()
190
 
191
  def send_getAllProviders(self, ):
192
    self._oprot.writeMessageBegin('getAllProviders', TMessageType.CALL, self._seqid)
193
    args = getAllProviders_args()
194
    args.write(self._oprot)
195
    self._oprot.writeMessageEnd()
196
    self._oprot.trans.flush()
197
 
198
  def recv_getAllProviders(self, ):
199
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
200
    if mtype == TMessageType.EXCEPTION:
201
      x = TApplicationException()
202
      x.read(self._iprot)
203
      self._iprot.readMessageEnd()
204
      raise x
205
    result = getAllProviders_result()
206
    result.read(self._iprot)
207
    self._iprot.readMessageEnd()
3431 rajveer 208
    if result.success is not None:
675 chandransh 209
      return result.success
3431 rajveer 210
    if result.lse is not None:
675 chandransh 211
      raise result.lse
212
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
213
 
4630 mandeep.dh 214
  def getLogisticsEstimation(self, itemId, destination_pin, type):
483 rajveer 215
    """
647 chandransh 216
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
217
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
218
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 219
 
483 rajveer 220
    Parameters:
647 chandransh 221
     - itemId
222
     - destination_pin
4630 mandeep.dh 223
     - type
483 rajveer 224
    """
4630 mandeep.dh 225
    self.send_getLogisticsEstimation(itemId, destination_pin, type)
647 chandransh 226
    return self.recv_getLogisticsEstimation()
483 rajveer 227
 
4630 mandeep.dh 228
  def send_getLogisticsEstimation(self, itemId, destination_pin, type):
647 chandransh 229
    self._oprot.writeMessageBegin('getLogisticsEstimation', TMessageType.CALL, self._seqid)
230
    args = getLogisticsEstimation_args()
231
    args.itemId = itemId
232
    args.destination_pin = destination_pin
4630 mandeep.dh 233
    args.type = type
483 rajveer 234
    args.write(self._oprot)
235
    self._oprot.writeMessageEnd()
236
    self._oprot.trans.flush()
237
 
647 chandransh 238
  def recv_getLogisticsEstimation(self, ):
483 rajveer 239
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
240
    if mtype == TMessageType.EXCEPTION:
241
      x = TApplicationException()
242
      x.read(self._iprot)
243
      self._iprot.readMessageEnd()
244
      raise x
647 chandransh 245
    result = getLogisticsEstimation_result()
483 rajveer 246
    result.read(self._iprot)
247
    self._iprot.readMessageEnd()
3431 rajveer 248
    if result.success is not None:
483 rajveer 249
      return result.success
3431 rajveer 250
    if result.se is not None:
483 rajveer 251
      raise result.se
647 chandransh 252
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
483 rajveer 253
 
3044 chandransh 254
  def getLogisticsInfo(self, destination_pincode, item_id, type):
472 rajveer 255
    """
647 chandransh 256
    Same as above excpet that an airway bill number is also allocated and returned.
3431 rajveer 257
 
472 rajveer 258
    Parameters:
647 chandransh 259
     - destination_pincode
260
     - item_id
3044 chandransh 261
     - type
472 rajveer 262
    """
3044 chandransh 263
    self.send_getLogisticsInfo(destination_pincode, item_id, type)
647 chandransh 264
    return self.recv_getLogisticsInfo()
472 rajveer 265
 
3044 chandransh 266
  def send_getLogisticsInfo(self, destination_pincode, item_id, type):
647 chandransh 267
    self._oprot.writeMessageBegin('getLogisticsInfo', TMessageType.CALL, self._seqid)
268
    args = getLogisticsInfo_args()
269
    args.destination_pincode = destination_pincode
270
    args.item_id = item_id
3044 chandransh 271
    args.type = type
472 rajveer 272
    args.write(self._oprot)
273
    self._oprot.writeMessageEnd()
274
    self._oprot.trans.flush()
275
 
647 chandransh 276
  def recv_getLogisticsInfo(self, ):
472 rajveer 277
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
278
    if mtype == TMessageType.EXCEPTION:
279
      x = TApplicationException()
280
      x.read(self._iprot)
281
      self._iprot.readMessageEnd()
282
      raise x
647 chandransh 283
    result = getLogisticsInfo_result()
472 rajveer 284
    result.read(self._iprot)
285
    self._iprot.readMessageEnd()
3431 rajveer 286
    if result.success is not None:
472 rajveer 287
      return result.success
3431 rajveer 288
    if result.se is not None:
472 rajveer 289
      raise result.se
647 chandransh 290
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
472 rajveer 291
 
5247 rajveer 292
  def getEmptyAWB(self, providerId, type):
412 ashish 293
    """
647 chandransh 294
    Returns an unused AWB number for the given provider.
3431 rajveer 295
 
412 ashish 296
    Parameters:
647 chandransh 297
     - providerId
5247 rajveer 298
     - type
412 ashish 299
    """
5247 rajveer 300
    self.send_getEmptyAWB(providerId, type)
412 ashish 301
    return self.recv_getEmptyAWB()
302
 
5247 rajveer 303
  def send_getEmptyAWB(self, providerId, type):
412 ashish 304
    self._oprot.writeMessageBegin('getEmptyAWB', TMessageType.CALL, self._seqid)
305
    args = getEmptyAWB_args()
647 chandransh 306
    args.providerId = providerId
5247 rajveer 307
    args.type = type
412 ashish 308
    args.write(self._oprot)
309
    self._oprot.writeMessageEnd()
310
    self._oprot.trans.flush()
311
 
312
  def recv_getEmptyAWB(self, ):
313
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
314
    if mtype == TMessageType.EXCEPTION:
315
      x = TApplicationException()
316
      x.read(self._iprot)
317
      self._iprot.readMessageEnd()
318
      raise x
319
    result = getEmptyAWB_result()
320
    result.read(self._iprot)
321
    self._iprot.readMessageEnd()
3431 rajveer 322
    if result.success is not None:
412 ashish 323
      return result.success
3431 rajveer 324
    if result.se is not None:
647 chandransh 325
      raise result.se
412 ashish 326
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
327
 
647 chandransh 328
  def getShipmentInfo(self, awb, providerId):
412 ashish 329
    """
647 chandransh 330
    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 331
 
412 ashish 332
    Parameters:
333
     - awb
647 chandransh 334
     - providerId
412 ashish 335
    """
647 chandransh 336
    self.send_getShipmentInfo(awb, providerId)
412 ashish 337
    return self.recv_getShipmentInfo()
338
 
647 chandransh 339
  def send_getShipmentInfo(self, awb, providerId):
412 ashish 340
    self._oprot.writeMessageBegin('getShipmentInfo', TMessageType.CALL, self._seqid)
341
    args = getShipmentInfo_args()
342
    args.awb = awb
647 chandransh 343
    args.providerId = providerId
412 ashish 344
    args.write(self._oprot)
345
    self._oprot.writeMessageEnd()
346
    self._oprot.trans.flush()
347
 
348
  def recv_getShipmentInfo(self, ):
349
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
350
    if mtype == TMessageType.EXCEPTION:
351
      x = TApplicationException()
352
      x.read(self._iprot)
353
      self._iprot.readMessageEnd()
354
      raise x
355
    result = getShipmentInfo_result()
356
    result.read(self._iprot)
357
    self._iprot.readMessageEnd()
3431 rajveer 358
    if result.success is not None:
412 ashish 359
      return result.success
3431 rajveer 360
    if result.se is not None:
647 chandransh 361
      raise result.se
412 ashish 362
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
363
 
732 chandransh 364
  def getDestinationCode(self, providerId, pinCode):
365
    """
366
    Returns the short three letter code of a pincode for the given provider.
367
       Raises an exception if the pin code is not serviced by the given provider.
3431 rajveer 368
 
732 chandransh 369
    Parameters:
370
     - providerId
371
     - pinCode
372
    """
373
    self.send_getDestinationCode(providerId, pinCode)
374
    return self.recv_getDestinationCode()
412 ashish 375
 
732 chandransh 376
  def send_getDestinationCode(self, providerId, pinCode):
377
    self._oprot.writeMessageBegin('getDestinationCode', TMessageType.CALL, self._seqid)
378
    args = getDestinationCode_args()
379
    args.providerId = providerId
380
    args.pinCode = pinCode
381
    args.write(self._oprot)
382
    self._oprot.writeMessageEnd()
383
    self._oprot.trans.flush()
384
 
385
  def recv_getDestinationCode(self, ):
386
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
387
    if mtype == TMessageType.EXCEPTION:
388
      x = TApplicationException()
389
      x.read(self._iprot)
390
      self._iprot.readMessageEnd()
391
      raise x
392
    result = getDestinationCode_result()
393
    result.read(self._iprot)
394
    self._iprot.readMessageEnd()
3431 rajveer 395
    if result.success is not None:
732 chandransh 396
      return result.success
3431 rajveer 397
    if result.se is not None:
732 chandransh 398
      raise result.se
399
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
400
 
3103 chandransh 401
  def getFreeAwbCount(self, providerId, type):
1137 chandransh 402
    """
3103 chandransh 403
    Returns the number of unused AWB numbers for the given provider of the given type
3431 rajveer 404
 
1137 chandransh 405
    Parameters:
406
     - providerId
3103 chandransh 407
     - type
1137 chandransh 408
    """
3103 chandransh 409
    self.send_getFreeAwbCount(providerId, type)
1137 chandransh 410
    return self.recv_getFreeAwbCount()
732 chandransh 411
 
3103 chandransh 412
  def send_getFreeAwbCount(self, providerId, type):
1137 chandransh 413
    self._oprot.writeMessageBegin('getFreeAwbCount', TMessageType.CALL, self._seqid)
414
    args = getFreeAwbCount_args()
415
    args.providerId = providerId
3103 chandransh 416
    args.type = type
1137 chandransh 417
    args.write(self._oprot)
418
    self._oprot.writeMessageEnd()
419
    self._oprot.trans.flush()
420
 
421
  def recv_getFreeAwbCount(self, ):
422
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
423
    if mtype == TMessageType.EXCEPTION:
424
      x = TApplicationException()
425
      x.read(self._iprot)
426
      self._iprot.readMessageEnd()
427
      raise x
428
    result = getFreeAwbCount_result()
429
    result.read(self._iprot)
430
    self._iprot.readMessageEnd()
3431 rajveer 431
    if result.success is not None:
1137 chandransh 432
      return result.success
433
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
434
 
1730 ankur.sing 435
  def getHolidays(self, fromDate, toDate):
436
    """
437
    Returns list of Holiday dates between fromDate and toDate (both inclusive)
438
    fromDate should be passed as milliseconds corresponding to the start of the day.
439
    If fromDate is passed as -1, fromDate is not considered for filtering
440
    If toDate is passed as -1, toDate is not considered for filtering
3431 rajveer 441
 
1730 ankur.sing 442
    Parameters:
443
     - fromDate
444
     - toDate
445
    """
446
    self.send_getHolidays(fromDate, toDate)
447
    return self.recv_getHolidays()
1137 chandransh 448
 
1730 ankur.sing 449
  def send_getHolidays(self, fromDate, toDate):
450
    self._oprot.writeMessageBegin('getHolidays', TMessageType.CALL, self._seqid)
451
    args = getHolidays_args()
452
    args.fromDate = fromDate
453
    args.toDate = toDate
454
    args.write(self._oprot)
455
    self._oprot.writeMessageEnd()
456
    self._oprot.trans.flush()
457
 
458
  def recv_getHolidays(self, ):
459
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
460
    if mtype == TMessageType.EXCEPTION:
461
      x = TApplicationException()
462
      x.read(self._iprot)
463
      self._iprot.readMessageEnd()
464
      raise x
465
    result = getHolidays_result()
466
    result.read(self._iprot)
467
    self._iprot.readMessageEnd()
3431 rajveer 468
    if result.success is not None:
1730 ankur.sing 469
      return result.success
470
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
471
 
4934 amit.gupta 472
  def getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
473
    """
474
    Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
475
    Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
476
    is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
3431 rajveer 477
 
4934 amit.gupta 478
    Parameters:
479
     - catalogItemId
480
     - destination_pin
481
     - type
482
    """
483
    self.send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type)
484
    return self.recv_getEntityLogisticsEstimation()
485
 
486
  def send_getEntityLogisticsEstimation(self, catalogItemId, destination_pin, type):
487
    self._oprot.writeMessageBegin('getEntityLogisticsEstimation', TMessageType.CALL, self._seqid)
488
    args = getEntityLogisticsEstimation_args()
489
    args.catalogItemId = catalogItemId
490
    args.destination_pin = destination_pin
491
    args.type = type
492
    args.write(self._oprot)
493
    self._oprot.writeMessageEnd()
494
    self._oprot.trans.flush()
495
 
496
  def recv_getEntityLogisticsEstimation(self, ):
497
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
498
    if mtype == TMessageType.EXCEPTION:
499
      x = TApplicationException()
500
      x.read(self._iprot)
501
      self._iprot.readMessageEnd()
502
      raise x
503
    result = getEntityLogisticsEstimation_result()
504
    result.read(self._iprot)
505
    self._iprot.readMessageEnd()
506
    if result.success is not None:
507
      return result.success
508
    if result.se is not None:
509
      raise result.se
510
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
511
 
5527 anupam.sin 512
  def getProviderForPickupType(self, pickUp):
513
    """
514
    Returns the id for a given pickUpType
4934 amit.gupta 515
 
5527 anupam.sin 516
    Parameters:
517
     - pickUp
518
    """
519
    self.send_getProviderForPickupType(pickUp)
520
    return self.recv_getProviderForPickupType()
521
 
522
  def send_getProviderForPickupType(self, pickUp):
523
    self._oprot.writeMessageBegin('getProviderForPickupType', TMessageType.CALL, self._seqid)
524
    args = getProviderForPickupType_args()
525
    args.pickUp = pickUp
526
    args.write(self._oprot)
527
    self._oprot.writeMessageEnd()
528
    self._oprot.trans.flush()
529
 
530
  def recv_getProviderForPickupType(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 = getProviderForPickupType_result()
538
    result.read(self._iprot)
539
    self._iprot.readMessageEnd()
540
    if result.success is not None:
541
      return result.success
542
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
543
 
5553 rajveer 544
  def getAllPickupStores(self, ):
545
    self.send_getAllPickupStores()
546
    return self.recv_getAllPickupStores()
5527 anupam.sin 547
 
5553 rajveer 548
  def send_getAllPickupStores(self, ):
549
    self._oprot.writeMessageBegin('getAllPickupStores', TMessageType.CALL, self._seqid)
550
    args = getAllPickupStores_args()
551
    args.write(self._oprot)
552
    self._oprot.writeMessageEnd()
553
    self._oprot.trans.flush()
554
 
555
  def recv_getAllPickupStores(self, ):
556
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
557
    if mtype == TMessageType.EXCEPTION:
558
      x = TApplicationException()
559
      x.read(self._iprot)
560
      self._iprot.readMessageEnd()
561
      raise x
562
    result = getAllPickupStores_result()
563
    result.read(self._iprot)
564
    self._iprot.readMessageEnd()
565
    if result.success is not None:
566
      return result.success
567
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
568
 
569
  def getPickupStore(self, storeId):
570
    """
571
    Parameters:
572
     - storeId
573
    """
574
    self.send_getPickupStore(storeId)
575
    return self.recv_getPickupStore()
576
 
577
  def send_getPickupStore(self, storeId):
578
    self._oprot.writeMessageBegin('getPickupStore', TMessageType.CALL, self._seqid)
579
    args = getPickupStore_args()
580
    args.storeId = storeId
581
    args.write(self._oprot)
582
    self._oprot.writeMessageEnd()
583
    self._oprot.trans.flush()
584
 
585
  def recv_getPickupStore(self, ):
586
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
587
    if mtype == TMessageType.EXCEPTION:
588
      x = TApplicationException()
589
      x.read(self._iprot)
590
      self._iprot.readMessageEnd()
591
      raise x
592
    result = getPickupStore_result()
593
    result.read(self._iprot)
594
    self._iprot.readMessageEnd()
595
    if result.success is not None:
596
      return result.success
597
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
598
 
599
 
3376 rajveer 600
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
412 ashish 601
  def __init__(self, handler):
3376 rajveer 602
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
669 chandransh 603
    self._processMap["getProvider"] = Processor.process_getProvider
675 chandransh 604
    self._processMap["getAllProviders"] = Processor.process_getAllProviders
647 chandransh 605
    self._processMap["getLogisticsEstimation"] = Processor.process_getLogisticsEstimation
483 rajveer 606
    self._processMap["getLogisticsInfo"] = Processor.process_getLogisticsInfo
412 ashish 607
    self._processMap["getEmptyAWB"] = Processor.process_getEmptyAWB
608
    self._processMap["getShipmentInfo"] = Processor.process_getShipmentInfo
732 chandransh 609
    self._processMap["getDestinationCode"] = Processor.process_getDestinationCode
1137 chandransh 610
    self._processMap["getFreeAwbCount"] = Processor.process_getFreeAwbCount
1730 ankur.sing 611
    self._processMap["getHolidays"] = Processor.process_getHolidays
4934 amit.gupta 612
    self._processMap["getEntityLogisticsEstimation"] = Processor.process_getEntityLogisticsEstimation
5527 anupam.sin 613
    self._processMap["getProviderForPickupType"] = Processor.process_getProviderForPickupType
5553 rajveer 614
    self._processMap["getAllPickupStores"] = Processor.process_getAllPickupStores
615
    self._processMap["getPickupStore"] = Processor.process_getPickupStore
412 ashish 616
 
617
  def process(self, iprot, oprot):
618
    (name, type, seqid) = iprot.readMessageBegin()
619
    if name not in self._processMap:
620
      iprot.skip(TType.STRUCT)
621
      iprot.readMessageEnd()
622
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
623
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
624
      x.write(oprot)
625
      oprot.writeMessageEnd()
626
      oprot.trans.flush()
627
      return
628
    else:
629
      self._processMap[name](self, seqid, iprot, oprot)
630
    return True
631
 
669 chandransh 632
  def process_getProvider(self, seqid, iprot, oprot):
633
    args = getProvider_args()
634
    args.read(iprot)
635
    iprot.readMessageEnd()
636
    result = getProvider_result()
637
    try:
638
      result.success = self._handler.getProvider(args.providerId)
639
    except LogisticsServiceException, lse:
640
      result.lse = lse
641
    oprot.writeMessageBegin("getProvider", TMessageType.REPLY, seqid)
642
    result.write(oprot)
643
    oprot.writeMessageEnd()
644
    oprot.trans.flush()
645
 
675 chandransh 646
  def process_getAllProviders(self, seqid, iprot, oprot):
647
    args = getAllProviders_args()
648
    args.read(iprot)
649
    iprot.readMessageEnd()
650
    result = getAllProviders_result()
651
    try:
652
      result.success = self._handler.getAllProviders()
653
    except LogisticsServiceException, lse:
654
      result.lse = lse
655
    oprot.writeMessageBegin("getAllProviders", TMessageType.REPLY, seqid)
656
    result.write(oprot)
657
    oprot.writeMessageEnd()
658
    oprot.trans.flush()
659
 
647 chandransh 660
  def process_getLogisticsEstimation(self, seqid, iprot, oprot):
661
    args = getLogisticsEstimation_args()
483 rajveer 662
    args.read(iprot)
663
    iprot.readMessageEnd()
647 chandransh 664
    result = getLogisticsEstimation_result()
483 rajveer 665
    try:
4630 mandeep.dh 666
      result.success = self._handler.getLogisticsEstimation(args.itemId, args.destination_pin, args.type)
483 rajveer 667
    except LogisticsServiceException, se:
668
      result.se = se
647 chandransh 669
    oprot.writeMessageBegin("getLogisticsEstimation", TMessageType.REPLY, seqid)
483 rajveer 670
    result.write(oprot)
671
    oprot.writeMessageEnd()
672
    oprot.trans.flush()
673
 
647 chandransh 674
  def process_getLogisticsInfo(self, seqid, iprot, oprot):
675
    args = getLogisticsInfo_args()
472 rajveer 676
    args.read(iprot)
677
    iprot.readMessageEnd()
647 chandransh 678
    result = getLogisticsInfo_result()
472 rajveer 679
    try:
3044 chandransh 680
      result.success = self._handler.getLogisticsInfo(args.destination_pincode, args.item_id, args.type)
472 rajveer 681
    except LogisticsServiceException, se:
682
      result.se = se
647 chandransh 683
    oprot.writeMessageBegin("getLogisticsInfo", TMessageType.REPLY, seqid)
472 rajveer 684
    result.write(oprot)
685
    oprot.writeMessageEnd()
686
    oprot.trans.flush()
687
 
412 ashish 688
  def process_getEmptyAWB(self, seqid, iprot, oprot):
689
    args = getEmptyAWB_args()
690
    args.read(iprot)
691
    iprot.readMessageEnd()
692
    result = getEmptyAWB_result()
647 chandransh 693
    try:
5247 rajveer 694
      result.success = self._handler.getEmptyAWB(args.providerId, args.type)
647 chandransh 695
    except LogisticsServiceException, se:
696
      result.se = se
412 ashish 697
    oprot.writeMessageBegin("getEmptyAWB", TMessageType.REPLY, seqid)
698
    result.write(oprot)
699
    oprot.writeMessageEnd()
700
    oprot.trans.flush()
701
 
702
  def process_getShipmentInfo(self, seqid, iprot, oprot):
703
    args = getShipmentInfo_args()
704
    args.read(iprot)
705
    iprot.readMessageEnd()
706
    result = getShipmentInfo_result()
647 chandransh 707
    try:
708
      result.success = self._handler.getShipmentInfo(args.awb, args.providerId)
709
    except LogisticsServiceException, se:
710
      result.se = se
412 ashish 711
    oprot.writeMessageBegin("getShipmentInfo", TMessageType.REPLY, seqid)
712
    result.write(oprot)
713
    oprot.writeMessageEnd()
714
    oprot.trans.flush()
715
 
732 chandransh 716
  def process_getDestinationCode(self, seqid, iprot, oprot):
717
    args = getDestinationCode_args()
718
    args.read(iprot)
719
    iprot.readMessageEnd()
720
    result = getDestinationCode_result()
721
    try:
722
      result.success = self._handler.getDestinationCode(args.providerId, args.pinCode)
723
    except LogisticsServiceException, se:
724
      result.se = se
725
    oprot.writeMessageBegin("getDestinationCode", TMessageType.REPLY, seqid)
726
    result.write(oprot)
727
    oprot.writeMessageEnd()
728
    oprot.trans.flush()
412 ashish 729
 
1137 chandransh 730
  def process_getFreeAwbCount(self, seqid, iprot, oprot):
731
    args = getFreeAwbCount_args()
732
    args.read(iprot)
733
    iprot.readMessageEnd()
734
    result = getFreeAwbCount_result()
3103 chandransh 735
    result.success = self._handler.getFreeAwbCount(args.providerId, args.type)
1137 chandransh 736
    oprot.writeMessageBegin("getFreeAwbCount", TMessageType.REPLY, seqid)
737
    result.write(oprot)
738
    oprot.writeMessageEnd()
739
    oprot.trans.flush()
732 chandransh 740
 
1730 ankur.sing 741
  def process_getHolidays(self, seqid, iprot, oprot):
742
    args = getHolidays_args()
743
    args.read(iprot)
744
    iprot.readMessageEnd()
745
    result = getHolidays_result()
746
    result.success = self._handler.getHolidays(args.fromDate, args.toDate)
747
    oprot.writeMessageBegin("getHolidays", TMessageType.REPLY, seqid)
748
    result.write(oprot)
749
    oprot.writeMessageEnd()
750
    oprot.trans.flush()
1137 chandransh 751
 
4934 amit.gupta 752
  def process_getEntityLogisticsEstimation(self, seqid, iprot, oprot):
753
    args = getEntityLogisticsEstimation_args()
754
    args.read(iprot)
755
    iprot.readMessageEnd()
756
    result = getEntityLogisticsEstimation_result()
757
    try:
758
      result.success = self._handler.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type)
759
    except LogisticsServiceException, se:
760
      result.se = se
761
    oprot.writeMessageBegin("getEntityLogisticsEstimation", TMessageType.REPLY, seqid)
762
    result.write(oprot)
763
    oprot.writeMessageEnd()
764
    oprot.trans.flush()
1730 ankur.sing 765
 
5527 anupam.sin 766
  def process_getProviderForPickupType(self, seqid, iprot, oprot):
767
    args = getProviderForPickupType_args()
768
    args.read(iprot)
769
    iprot.readMessageEnd()
770
    result = getProviderForPickupType_result()
771
    result.success = self._handler.getProviderForPickupType(args.pickUp)
772
    oprot.writeMessageBegin("getProviderForPickupType", TMessageType.REPLY, seqid)
773
    result.write(oprot)
774
    oprot.writeMessageEnd()
775
    oprot.trans.flush()
4934 amit.gupta 776
 
5553 rajveer 777
  def process_getAllPickupStores(self, seqid, iprot, oprot):
778
    args = getAllPickupStores_args()
779
    args.read(iprot)
780
    iprot.readMessageEnd()
781
    result = getAllPickupStores_result()
782
    result.success = self._handler.getAllPickupStores()
783
    oprot.writeMessageBegin("getAllPickupStores", TMessageType.REPLY, seqid)
784
    result.write(oprot)
785
    oprot.writeMessageEnd()
786
    oprot.trans.flush()
5527 anupam.sin 787
 
5553 rajveer 788
  def process_getPickupStore(self, seqid, iprot, oprot):
789
    args = getPickupStore_args()
790
    args.read(iprot)
791
    iprot.readMessageEnd()
792
    result = getPickupStore_result()
793
    result.success = self._handler.getPickupStore(args.storeId)
794
    oprot.writeMessageBegin("getPickupStore", TMessageType.REPLY, seqid)
795
    result.write(oprot)
796
    oprot.writeMessageEnd()
797
    oprot.trans.flush()
798
 
799
 
412 ashish 800
# HELPER FUNCTIONS AND STRUCTURES
801
 
669 chandransh 802
class getProvider_args:
803
  """
804
  Attributes:
805
   - providerId
806
  """
807
 
808
  thrift_spec = (
809
    None, # 0
810
    (1, TType.I64, 'providerId', None, None, ), # 1
811
  )
812
 
813
  def __init__(self, providerId=None,):
814
    self.providerId = providerId
815
 
816
  def read(self, iprot):
817
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
818
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
819
      return
820
    iprot.readStructBegin()
821
    while True:
822
      (fname, ftype, fid) = iprot.readFieldBegin()
823
      if ftype == TType.STOP:
824
        break
825
      if fid == 1:
826
        if ftype == TType.I64:
827
          self.providerId = iprot.readI64();
828
        else:
829
          iprot.skip(ftype)
830
      else:
831
        iprot.skip(ftype)
832
      iprot.readFieldEnd()
833
    iprot.readStructEnd()
834
 
835
  def write(self, oprot):
836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
838
      return
839
    oprot.writeStructBegin('getProvider_args')
3431 rajveer 840
    if self.providerId is not None:
669 chandransh 841
      oprot.writeFieldBegin('providerId', TType.I64, 1)
842
      oprot.writeI64(self.providerId)
843
      oprot.writeFieldEnd()
844
    oprot.writeFieldStop()
845
    oprot.writeStructEnd()
846
 
3431 rajveer 847
  def validate(self):
848
    return
849
 
850
 
669 chandransh 851
  def __repr__(self):
852
    L = ['%s=%r' % (key, value)
853
      for key, value in self.__dict__.iteritems()]
854
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
855
 
856
  def __eq__(self, other):
857
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
858
 
859
  def __ne__(self, other):
860
    return not (self == other)
861
 
862
class getProvider_result:
863
  """
864
  Attributes:
865
   - success
866
   - lse
867
  """
868
 
869
  thrift_spec = (
870
    (0, TType.STRUCT, 'success', (Provider, Provider.thrift_spec), None, ), # 0
871
    (1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
872
  )
873
 
874
  def __init__(self, success=None, lse=None,):
875
    self.success = success
876
    self.lse = lse
877
 
878
  def read(self, iprot):
879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
881
      return
882
    iprot.readStructBegin()
883
    while True:
884
      (fname, ftype, fid) = iprot.readFieldBegin()
885
      if ftype == TType.STOP:
886
        break
887
      if fid == 0:
888
        if ftype == TType.STRUCT:
889
          self.success = Provider()
890
          self.success.read(iprot)
891
        else:
892
          iprot.skip(ftype)
893
      elif fid == 1:
894
        if ftype == TType.STRUCT:
895
          self.lse = LogisticsServiceException()
896
          self.lse.read(iprot)
897
        else:
898
          iprot.skip(ftype)
899
      else:
900
        iprot.skip(ftype)
901
      iprot.readFieldEnd()
902
    iprot.readStructEnd()
903
 
904
  def write(self, oprot):
905
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
906
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
907
      return
908
    oprot.writeStructBegin('getProvider_result')
3431 rajveer 909
    if self.success is not None:
669 chandransh 910
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
911
      self.success.write(oprot)
912
      oprot.writeFieldEnd()
3431 rajveer 913
    if self.lse is not None:
669 chandransh 914
      oprot.writeFieldBegin('lse', TType.STRUCT, 1)
915
      self.lse.write(oprot)
916
      oprot.writeFieldEnd()
917
    oprot.writeFieldStop()
918
    oprot.writeStructEnd()
919
 
3431 rajveer 920
  def validate(self):
921
    return
922
 
923
 
669 chandransh 924
  def __repr__(self):
925
    L = ['%s=%r' % (key, value)
926
      for key, value in self.__dict__.iteritems()]
927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
928
 
929
  def __eq__(self, other):
930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
931
 
932
  def __ne__(self, other):
933
    return not (self == other)
934
 
675 chandransh 935
class getAllProviders_args:
936
 
937
  thrift_spec = (
938
  )
939
 
940
  def read(self, iprot):
941
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
942
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
943
      return
944
    iprot.readStructBegin()
945
    while True:
946
      (fname, ftype, fid) = iprot.readFieldBegin()
947
      if ftype == TType.STOP:
948
        break
949
      else:
950
        iprot.skip(ftype)
951
      iprot.readFieldEnd()
952
    iprot.readStructEnd()
953
 
954
  def write(self, oprot):
955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
957
      return
958
    oprot.writeStructBegin('getAllProviders_args')
959
    oprot.writeFieldStop()
960
    oprot.writeStructEnd()
961
 
3431 rajveer 962
  def validate(self):
963
    return
964
 
965
 
675 chandransh 966
  def __repr__(self):
967
    L = ['%s=%r' % (key, value)
968
      for key, value in self.__dict__.iteritems()]
969
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
970
 
971
  def __eq__(self, other):
972
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
973
 
974
  def __ne__(self, other):
975
    return not (self == other)
976
 
977
class getAllProviders_result:
978
  """
979
  Attributes:
980
   - success
981
   - lse
982
  """
983
 
984
  thrift_spec = (
985
    (0, TType.LIST, 'success', (TType.STRUCT,(Provider, Provider.thrift_spec)), None, ), # 0
986
    (1, TType.STRUCT, 'lse', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
987
  )
988
 
989
  def __init__(self, success=None, lse=None,):
990
    self.success = success
991
    self.lse = lse
992
 
993
  def read(self, iprot):
994
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
995
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
996
      return
997
    iprot.readStructBegin()
998
    while True:
999
      (fname, ftype, fid) = iprot.readFieldBegin()
1000
      if ftype == TType.STOP:
1001
        break
1002
      if fid == 0:
1003
        if ftype == TType.LIST:
1004
          self.success = []
3044 chandransh 1005
          (_etype12, _size9) = iprot.readListBegin()
1006
          for _i13 in xrange(_size9):
1007
            _elem14 = Provider()
1008
            _elem14.read(iprot)
1009
            self.success.append(_elem14)
675 chandransh 1010
          iprot.readListEnd()
1011
        else:
1012
          iprot.skip(ftype)
1013
      elif fid == 1:
1014
        if ftype == TType.STRUCT:
1015
          self.lse = LogisticsServiceException()
1016
          self.lse.read(iprot)
1017
        else:
1018
          iprot.skip(ftype)
1019
      else:
1020
        iprot.skip(ftype)
1021
      iprot.readFieldEnd()
1022
    iprot.readStructEnd()
1023
 
1024
  def write(self, oprot):
1025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1027
      return
1028
    oprot.writeStructBegin('getAllProviders_result')
3431 rajveer 1029
    if self.success is not None:
675 chandransh 1030
      oprot.writeFieldBegin('success', TType.LIST, 0)
1031
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3044 chandransh 1032
      for iter15 in self.success:
1033
        iter15.write(oprot)
675 chandransh 1034
      oprot.writeListEnd()
1035
      oprot.writeFieldEnd()
3431 rajveer 1036
    if self.lse is not None:
675 chandransh 1037
      oprot.writeFieldBegin('lse', TType.STRUCT, 1)
1038
      self.lse.write(oprot)
1039
      oprot.writeFieldEnd()
1040
    oprot.writeFieldStop()
1041
    oprot.writeStructEnd()
1042
 
3431 rajveer 1043
  def validate(self):
1044
    return
1045
 
1046
 
675 chandransh 1047
  def __repr__(self):
1048
    L = ['%s=%r' % (key, value)
1049
      for key, value in self.__dict__.iteritems()]
1050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1051
 
1052
  def __eq__(self, other):
1053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1054
 
1055
  def __ne__(self, other):
1056
    return not (self == other)
1057
 
647 chandransh 1058
class getLogisticsEstimation_args:
483 rajveer 1059
  """
1060
  Attributes:
647 chandransh 1061
   - itemId
1062
   - destination_pin
4630 mandeep.dh 1063
   - type
483 rajveer 1064
  """
1065
 
1066
  thrift_spec = (
1067
    None, # 0
647 chandransh 1068
    (1, TType.I64, 'itemId', None, None, ), # 1
1069
    (2, TType.STRING, 'destination_pin', None, None, ), # 2
4630 mandeep.dh 1070
    (3, TType.I32, 'type', None, None, ), # 3
483 rajveer 1071
  )
1072
 
4630 mandeep.dh 1073
  def __init__(self, itemId=None, destination_pin=None, type=None,):
647 chandransh 1074
    self.itemId = itemId
1075
    self.destination_pin = destination_pin
4630 mandeep.dh 1076
    self.type = type
483 rajveer 1077
 
1078
  def read(self, iprot):
1079
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1080
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1081
      return
1082
    iprot.readStructBegin()
1083
    while True:
1084
      (fname, ftype, fid) = iprot.readFieldBegin()
1085
      if ftype == TType.STOP:
1086
        break
1087
      if fid == 1:
647 chandransh 1088
        if ftype == TType.I64:
1089
          self.itemId = iprot.readI64();
483 rajveer 1090
        else:
1091
          iprot.skip(ftype)
1092
      elif fid == 2:
1093
        if ftype == TType.STRING:
647 chandransh 1094
          self.destination_pin = iprot.readString();
483 rajveer 1095
        else:
1096
          iprot.skip(ftype)
4630 mandeep.dh 1097
      elif fid == 3:
1098
        if ftype == TType.I32:
1099
          self.type = iprot.readI32();
1100
        else:
1101
          iprot.skip(ftype)
483 rajveer 1102
      else:
1103
        iprot.skip(ftype)
1104
      iprot.readFieldEnd()
1105
    iprot.readStructEnd()
1106
 
1107
  def write(self, oprot):
1108
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1109
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1110
      return
647 chandransh 1111
    oprot.writeStructBegin('getLogisticsEstimation_args')
3431 rajveer 1112
    if self.itemId is not None:
647 chandransh 1113
      oprot.writeFieldBegin('itemId', TType.I64, 1)
1114
      oprot.writeI64(self.itemId)
483 rajveer 1115
      oprot.writeFieldEnd()
3431 rajveer 1116
    if self.destination_pin is not None:
647 chandransh 1117
      oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
1118
      oprot.writeString(self.destination_pin)
483 rajveer 1119
      oprot.writeFieldEnd()
4630 mandeep.dh 1120
    if self.type is not None:
1121
      oprot.writeFieldBegin('type', TType.I32, 3)
1122
      oprot.writeI32(self.type)
1123
      oprot.writeFieldEnd()
483 rajveer 1124
    oprot.writeFieldStop()
1125
    oprot.writeStructEnd()
1126
 
3431 rajveer 1127
  def validate(self):
1128
    return
1129
 
1130
 
483 rajveer 1131
  def __repr__(self):
1132
    L = ['%s=%r' % (key, value)
1133
      for key, value in self.__dict__.iteritems()]
1134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1135
 
1136
  def __eq__(self, other):
1137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1138
 
1139
  def __ne__(self, other):
1140
    return not (self == other)
1141
 
647 chandransh 1142
class getLogisticsEstimation_result:
483 rajveer 1143
  """
1144
  Attributes:
1145
   - success
1146
   - se
1147
  """
1148
 
1149
  thrift_spec = (
1150
    (0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
1151
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1152
  )
1153
 
1154
  def __init__(self, success=None, se=None,):
1155
    self.success = success
1156
    self.se = se
1157
 
1158
  def read(self, iprot):
1159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1161
      return
1162
    iprot.readStructBegin()
1163
    while True:
1164
      (fname, ftype, fid) = iprot.readFieldBegin()
1165
      if ftype == TType.STOP:
1166
        break
1167
      if fid == 0:
1168
        if ftype == TType.STRUCT:
1169
          self.success = LogisticsInfo()
1170
          self.success.read(iprot)
1171
        else:
1172
          iprot.skip(ftype)
1173
      elif fid == 1:
1174
        if ftype == TType.STRUCT:
1175
          self.se = LogisticsServiceException()
1176
          self.se.read(iprot)
1177
        else:
1178
          iprot.skip(ftype)
1179
      else:
1180
        iprot.skip(ftype)
1181
      iprot.readFieldEnd()
1182
    iprot.readStructEnd()
1183
 
1184
  def write(self, oprot):
1185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1187
      return
647 chandransh 1188
    oprot.writeStructBegin('getLogisticsEstimation_result')
3431 rajveer 1189
    if self.success is not None:
483 rajveer 1190
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1191
      self.success.write(oprot)
1192
      oprot.writeFieldEnd()
3431 rajveer 1193
    if self.se is not None:
483 rajveer 1194
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1195
      self.se.write(oprot)
1196
      oprot.writeFieldEnd()
1197
    oprot.writeFieldStop()
1198
    oprot.writeStructEnd()
1199
 
3431 rajveer 1200
  def validate(self):
1201
    return
1202
 
1203
 
483 rajveer 1204
  def __repr__(self):
1205
    L = ['%s=%r' % (key, value)
1206
      for key, value in self.__dict__.iteritems()]
1207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1208
 
1209
  def __eq__(self, other):
1210
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1211
 
1212
  def __ne__(self, other):
1213
    return not (self == other)
1214
 
647 chandransh 1215
class getLogisticsInfo_args:
472 rajveer 1216
  """
1217
  Attributes:
647 chandransh 1218
   - destination_pincode
1219
   - item_id
3044 chandransh 1220
   - type
472 rajveer 1221
  """
1222
 
1223
  thrift_spec = (
1224
    None, # 0
647 chandransh 1225
    (1, TType.STRING, 'destination_pincode', None, None, ), # 1
716 rajveer 1226
    (2, TType.I64, 'item_id', None, None, ), # 2
3044 chandransh 1227
    (3, TType.I32, 'type', None, None, ), # 3
472 rajveer 1228
  )
1229
 
3044 chandransh 1230
  def __init__(self, destination_pincode=None, item_id=None, type=None,):
647 chandransh 1231
    self.destination_pincode = destination_pincode
1232
    self.item_id = item_id
3044 chandransh 1233
    self.type = type
472 rajveer 1234
 
1235
  def read(self, iprot):
1236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1238
      return
1239
    iprot.readStructBegin()
1240
    while True:
1241
      (fname, ftype, fid) = iprot.readFieldBegin()
1242
      if ftype == TType.STOP:
1243
        break
1244
      if fid == 1:
647 chandransh 1245
        if ftype == TType.STRING:
1246
          self.destination_pincode = iprot.readString();
472 rajveer 1247
        else:
1248
          iprot.skip(ftype)
1249
      elif fid == 2:
716 rajveer 1250
        if ftype == TType.I64:
1251
          self.item_id = iprot.readI64();
472 rajveer 1252
        else:
1253
          iprot.skip(ftype)
3044 chandransh 1254
      elif fid == 3:
1255
        if ftype == TType.I32:
1256
          self.type = iprot.readI32();
1257
        else:
1258
          iprot.skip(ftype)
472 rajveer 1259
      else:
1260
        iprot.skip(ftype)
1261
      iprot.readFieldEnd()
1262
    iprot.readStructEnd()
1263
 
1264
  def write(self, oprot):
1265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1267
      return
647 chandransh 1268
    oprot.writeStructBegin('getLogisticsInfo_args')
3431 rajveer 1269
    if self.destination_pincode is not None:
647 chandransh 1270
      oprot.writeFieldBegin('destination_pincode', TType.STRING, 1)
1271
      oprot.writeString(self.destination_pincode)
472 rajveer 1272
      oprot.writeFieldEnd()
3431 rajveer 1273
    if self.item_id is not None:
716 rajveer 1274
      oprot.writeFieldBegin('item_id', TType.I64, 2)
1275
      oprot.writeI64(self.item_id)
472 rajveer 1276
      oprot.writeFieldEnd()
3431 rajveer 1277
    if self.type is not None:
3044 chandransh 1278
      oprot.writeFieldBegin('type', TType.I32, 3)
1279
      oprot.writeI32(self.type)
1280
      oprot.writeFieldEnd()
472 rajveer 1281
    oprot.writeFieldStop()
1282
    oprot.writeStructEnd()
1283
 
3431 rajveer 1284
  def validate(self):
1285
    return
1286
 
1287
 
472 rajveer 1288
  def __repr__(self):
1289
    L = ['%s=%r' % (key, value)
1290
      for key, value in self.__dict__.iteritems()]
1291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1292
 
1293
  def __eq__(self, other):
1294
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1295
 
1296
  def __ne__(self, other):
1297
    return not (self == other)
1298
 
647 chandransh 1299
class getLogisticsInfo_result:
472 rajveer 1300
  """
1301
  Attributes:
1302
   - success
1303
   - se
1304
  """
1305
 
1306
  thrift_spec = (
644 chandransh 1307
    (0, TType.STRUCT, 'success', (LogisticsInfo, LogisticsInfo.thrift_spec), None, ), # 0
472 rajveer 1308
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1309
  )
1310
 
1311
  def __init__(self, success=None, se=None,):
1312
    self.success = success
1313
    self.se = se
1314
 
1315
  def read(self, iprot):
1316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1318
      return
1319
    iprot.readStructBegin()
1320
    while True:
1321
      (fname, ftype, fid) = iprot.readFieldBegin()
1322
      if ftype == TType.STOP:
1323
        break
1324
      if fid == 0:
1325
        if ftype == TType.STRUCT:
644 chandransh 1326
          self.success = LogisticsInfo()
472 rajveer 1327
          self.success.read(iprot)
1328
        else:
1329
          iprot.skip(ftype)
1330
      elif fid == 1:
1331
        if ftype == TType.STRUCT:
1332
          self.se = LogisticsServiceException()
1333
          self.se.read(iprot)
1334
        else:
1335
          iprot.skip(ftype)
1336
      else:
1337
        iprot.skip(ftype)
1338
      iprot.readFieldEnd()
1339
    iprot.readStructEnd()
1340
 
1341
  def write(self, oprot):
1342
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1343
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1344
      return
647 chandransh 1345
    oprot.writeStructBegin('getLogisticsInfo_result')
3431 rajveer 1346
    if self.success is not None:
472 rajveer 1347
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1348
      self.success.write(oprot)
1349
      oprot.writeFieldEnd()
3431 rajveer 1350
    if self.se is not None:
472 rajveer 1351
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1352
      self.se.write(oprot)
1353
      oprot.writeFieldEnd()
1354
    oprot.writeFieldStop()
1355
    oprot.writeStructEnd()
1356
 
3431 rajveer 1357
  def validate(self):
1358
    return
1359
 
1360
 
472 rajveer 1361
  def __repr__(self):
1362
    L = ['%s=%r' % (key, value)
1363
      for key, value in self.__dict__.iteritems()]
1364
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1365
 
1366
  def __eq__(self, other):
1367
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1368
 
1369
  def __ne__(self, other):
1370
    return not (self == other)
1371
 
412 ashish 1372
class getEmptyAWB_args:
1373
  """
1374
  Attributes:
647 chandransh 1375
   - providerId
5247 rajveer 1376
   - type
412 ashish 1377
  """
1378
 
5247 rajveer 1379
  thrift_spec = None
1380
  def __init__(self, providerId=None, type=None,):
647 chandransh 1381
    self.providerId = providerId
5247 rajveer 1382
    self.type = type
412 ashish 1383
 
1384
  def read(self, iprot):
1385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1387
      return
1388
    iprot.readStructBegin()
1389
    while True:
1390
      (fname, ftype, fid) = iprot.readFieldBegin()
1391
      if ftype == TType.STOP:
1392
        break
1393
      if fid == 1:
1394
        if ftype == TType.I64:
647 chandransh 1395
          self.providerId = iprot.readI64();
412 ashish 1396
        else:
1397
          iprot.skip(ftype)
5247 rajveer 1398
      elif fid == -1:
1399
        if ftype == TType.I32:
1400
          self.type = iprot.readI32();
1401
        else:
1402
          iprot.skip(ftype)
412 ashish 1403
      else:
1404
        iprot.skip(ftype)
1405
      iprot.readFieldEnd()
1406
    iprot.readStructEnd()
1407
 
1408
  def write(self, oprot):
1409
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1410
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1411
      return
1412
    oprot.writeStructBegin('getEmptyAWB_args')
5247 rajveer 1413
    if self.type is not None:
1414
      oprot.writeFieldBegin('type', TType.I32, -1)
1415
      oprot.writeI32(self.type)
1416
      oprot.writeFieldEnd()
3431 rajveer 1417
    if self.providerId is not None:
647 chandransh 1418
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1419
      oprot.writeI64(self.providerId)
412 ashish 1420
      oprot.writeFieldEnd()
1421
    oprot.writeFieldStop()
1422
    oprot.writeStructEnd()
1423
 
3431 rajveer 1424
  def validate(self):
1425
    return
1426
 
1427
 
412 ashish 1428
  def __repr__(self):
1429
    L = ['%s=%r' % (key, value)
1430
      for key, value in self.__dict__.iteritems()]
1431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1432
 
1433
  def __eq__(self, other):
1434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1435
 
1436
  def __ne__(self, other):
1437
    return not (self == other)
1438
 
1439
class getEmptyAWB_result:
1440
  """
1441
  Attributes:
1442
   - success
647 chandransh 1443
   - se
412 ashish 1444
  """
1445
 
1446
  thrift_spec = (
1447
    (0, TType.STRING, 'success', None, None, ), # 0
647 chandransh 1448
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
412 ashish 1449
  )
1450
 
647 chandransh 1451
  def __init__(self, success=None, se=None,):
412 ashish 1452
    self.success = success
647 chandransh 1453
    self.se = se
412 ashish 1454
 
1455
  def read(self, iprot):
1456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1458
      return
1459
    iprot.readStructBegin()
1460
    while True:
1461
      (fname, ftype, fid) = iprot.readFieldBegin()
1462
      if ftype == TType.STOP:
1463
        break
1464
      if fid == 0:
1465
        if ftype == TType.STRING:
1466
          self.success = iprot.readString();
1467
        else:
1468
          iprot.skip(ftype)
647 chandransh 1469
      elif fid == 1:
1470
        if ftype == TType.STRUCT:
1471
          self.se = LogisticsServiceException()
1472
          self.se.read(iprot)
1473
        else:
1474
          iprot.skip(ftype)
412 ashish 1475
      else:
1476
        iprot.skip(ftype)
1477
      iprot.readFieldEnd()
1478
    iprot.readStructEnd()
1479
 
1480
  def write(self, oprot):
1481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1483
      return
1484
    oprot.writeStructBegin('getEmptyAWB_result')
3431 rajveer 1485
    if self.success is not None:
412 ashish 1486
      oprot.writeFieldBegin('success', TType.STRING, 0)
1487
      oprot.writeString(self.success)
1488
      oprot.writeFieldEnd()
3431 rajveer 1489
    if self.se is not None:
647 chandransh 1490
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1491
      self.se.write(oprot)
1492
      oprot.writeFieldEnd()
412 ashish 1493
    oprot.writeFieldStop()
1494
    oprot.writeStructEnd()
1495
 
3431 rajveer 1496
  def validate(self):
1497
    return
1498
 
1499
 
412 ashish 1500
  def __repr__(self):
1501
    L = ['%s=%r' % (key, value)
1502
      for key, value in self.__dict__.iteritems()]
1503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1504
 
1505
  def __eq__(self, other):
1506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1507
 
1508
  def __ne__(self, other):
1509
    return not (self == other)
1510
 
1511
class getShipmentInfo_args:
1512
  """
1513
  Attributes:
1514
   - awb
647 chandransh 1515
   - providerId
412 ashish 1516
  """
1517
 
1518
  thrift_spec = (
1519
    None, # 0
1520
    (1, TType.STRING, 'awb', None, None, ), # 1
647 chandransh 1521
    (2, TType.I64, 'providerId', None, None, ), # 2
412 ashish 1522
  )
1523
 
647 chandransh 1524
  def __init__(self, awb=None, providerId=None,):
412 ashish 1525
    self.awb = awb
647 chandransh 1526
    self.providerId = providerId
412 ashish 1527
 
1528
  def read(self, iprot):
1529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1531
      return
1532
    iprot.readStructBegin()
1533
    while True:
1534
      (fname, ftype, fid) = iprot.readFieldBegin()
1535
      if ftype == TType.STOP:
1536
        break
1537
      if fid == 1:
1538
        if ftype == TType.STRING:
1539
          self.awb = iprot.readString();
1540
        else:
1541
          iprot.skip(ftype)
647 chandransh 1542
      elif fid == 2:
1543
        if ftype == TType.I64:
1544
          self.providerId = iprot.readI64();
1545
        else:
1546
          iprot.skip(ftype)
412 ashish 1547
      else:
1548
        iprot.skip(ftype)
1549
      iprot.readFieldEnd()
1550
    iprot.readStructEnd()
1551
 
1552
  def write(self, oprot):
1553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1555
      return
1556
    oprot.writeStructBegin('getShipmentInfo_args')
3431 rajveer 1557
    if self.awb is not None:
412 ashish 1558
      oprot.writeFieldBegin('awb', TType.STRING, 1)
1559
      oprot.writeString(self.awb)
1560
      oprot.writeFieldEnd()
3431 rajveer 1561
    if self.providerId is not None:
647 chandransh 1562
      oprot.writeFieldBegin('providerId', TType.I64, 2)
1563
      oprot.writeI64(self.providerId)
1564
      oprot.writeFieldEnd()
412 ashish 1565
    oprot.writeFieldStop()
1566
    oprot.writeStructEnd()
1567
 
3431 rajveer 1568
  def validate(self):
1569
    return
1570
 
1571
 
412 ashish 1572
  def __repr__(self):
1573
    L = ['%s=%r' % (key, value)
1574
      for key, value in self.__dict__.iteritems()]
1575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1576
 
1577
  def __eq__(self, other):
1578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1579
 
1580
  def __ne__(self, other):
1581
    return not (self == other)
1582
 
1583
class getShipmentInfo_result:
1584
  """
1585
  Attributes:
1586
   - success
647 chandransh 1587
   - se
412 ashish 1588
  """
1589
 
1590
  thrift_spec = (
644 chandransh 1591
    (0, TType.LIST, 'success', (TType.STRUCT,(AwbUpdate, AwbUpdate.thrift_spec)), None, ), # 0
647 chandransh 1592
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
412 ashish 1593
  )
1594
 
647 chandransh 1595
  def __init__(self, success=None, se=None,):
412 ashish 1596
    self.success = success
647 chandransh 1597
    self.se = se
412 ashish 1598
 
1599
  def read(self, iprot):
1600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1602
      return
1603
    iprot.readStructBegin()
1604
    while True:
1605
      (fname, ftype, fid) = iprot.readFieldBegin()
1606
      if ftype == TType.STOP:
1607
        break
1608
      if fid == 0:
1609
        if ftype == TType.LIST:
1610
          self.success = []
3044 chandransh 1611
          (_etype19, _size16) = iprot.readListBegin()
1612
          for _i20 in xrange(_size16):
1613
            _elem21 = AwbUpdate()
1614
            _elem21.read(iprot)
1615
            self.success.append(_elem21)
412 ashish 1616
          iprot.readListEnd()
1617
        else:
1618
          iprot.skip(ftype)
647 chandransh 1619
      elif fid == 1:
1620
        if ftype == TType.STRUCT:
1621
          self.se = LogisticsServiceException()
1622
          self.se.read(iprot)
1623
        else:
1624
          iprot.skip(ftype)
412 ashish 1625
      else:
1626
        iprot.skip(ftype)
1627
      iprot.readFieldEnd()
1628
    iprot.readStructEnd()
1629
 
1630
  def write(self, oprot):
1631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1633
      return
644 chandransh 1634
    oprot.writeStructBegin('getShipmentInfo_result')
3431 rajveer 1635
    if self.success is not None:
412 ashish 1636
      oprot.writeFieldBegin('success', TType.LIST, 0)
1637
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3044 chandransh 1638
      for iter22 in self.success:
1639
        iter22.write(oprot)
412 ashish 1640
      oprot.writeListEnd()
1641
      oprot.writeFieldEnd()
3431 rajveer 1642
    if self.se is not None:
647 chandransh 1643
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1644
      self.se.write(oprot)
1645
      oprot.writeFieldEnd()
412 ashish 1646
    oprot.writeFieldStop()
1647
    oprot.writeStructEnd()
1648
 
3431 rajveer 1649
  def validate(self):
1650
    return
1651
 
1652
 
412 ashish 1653
  def __repr__(self):
1654
    L = ['%s=%r' % (key, value)
1655
      for key, value in self.__dict__.iteritems()]
1656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1657
 
1658
  def __eq__(self, other):
1659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1660
 
1661
  def __ne__(self, other):
1662
    return not (self == other)
1663
 
732 chandransh 1664
class getDestinationCode_args:
1665
  """
1666
  Attributes:
1667
   - providerId
1668
   - pinCode
1669
  """
412 ashish 1670
 
732 chandransh 1671
  thrift_spec = (
1672
    None, # 0
1673
    (1, TType.I64, 'providerId', None, None, ), # 1
1674
    (2, TType.STRING, 'pinCode', None, None, ), # 2
1675
  )
1676
 
1677
  def __init__(self, providerId=None, pinCode=None,):
1678
    self.providerId = providerId
1679
    self.pinCode = pinCode
1680
 
1681
  def read(self, iprot):
1682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1684
      return
1685
    iprot.readStructBegin()
1686
    while True:
1687
      (fname, ftype, fid) = iprot.readFieldBegin()
1688
      if ftype == TType.STOP:
1689
        break
1690
      if fid == 1:
1691
        if ftype == TType.I64:
1692
          self.providerId = iprot.readI64();
1693
        else:
1694
          iprot.skip(ftype)
1695
      elif fid == 2:
1696
        if ftype == TType.STRING:
1697
          self.pinCode = iprot.readString();
1698
        else:
1699
          iprot.skip(ftype)
1700
      else:
1701
        iprot.skip(ftype)
1702
      iprot.readFieldEnd()
1703
    iprot.readStructEnd()
1704
 
1705
  def write(self, oprot):
1706
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1707
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1708
      return
1709
    oprot.writeStructBegin('getDestinationCode_args')
3431 rajveer 1710
    if self.providerId is not None:
732 chandransh 1711
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1712
      oprot.writeI64(self.providerId)
1713
      oprot.writeFieldEnd()
3431 rajveer 1714
    if self.pinCode is not None:
732 chandransh 1715
      oprot.writeFieldBegin('pinCode', TType.STRING, 2)
1716
      oprot.writeString(self.pinCode)
1717
      oprot.writeFieldEnd()
1718
    oprot.writeFieldStop()
1719
    oprot.writeStructEnd()
1720
 
3431 rajveer 1721
  def validate(self):
1722
    return
1723
 
1724
 
732 chandransh 1725
  def __repr__(self):
1726
    L = ['%s=%r' % (key, value)
1727
      for key, value in self.__dict__.iteritems()]
1728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1729
 
1730
  def __eq__(self, other):
1731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1732
 
1733
  def __ne__(self, other):
1734
    return not (self == other)
1735
 
1736
class getDestinationCode_result:
1737
  """
1738
  Attributes:
1739
   - success
1740
   - se
1741
  """
1742
 
1743
  thrift_spec = (
1744
    (0, TType.STRING, 'success', None, None, ), # 0
1745
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
1746
  )
1747
 
1748
  def __init__(self, success=None, se=None,):
1749
    self.success = success
1750
    self.se = se
1751
 
1752
  def read(self, iprot):
1753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1755
      return
1756
    iprot.readStructBegin()
1757
    while True:
1758
      (fname, ftype, fid) = iprot.readFieldBegin()
1759
      if ftype == TType.STOP:
1760
        break
1761
      if fid == 0:
1762
        if ftype == TType.STRING:
1763
          self.success = iprot.readString();
1764
        else:
1765
          iprot.skip(ftype)
1766
      elif fid == 1:
1767
        if ftype == TType.STRUCT:
1768
          self.se = LogisticsServiceException()
1769
          self.se.read(iprot)
1770
        else:
1771
          iprot.skip(ftype)
1772
      else:
1773
        iprot.skip(ftype)
1774
      iprot.readFieldEnd()
1775
    iprot.readStructEnd()
1776
 
1777
  def write(self, oprot):
1778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1780
      return
1781
    oprot.writeStructBegin('getDestinationCode_result')
3431 rajveer 1782
    if self.success is not None:
732 chandransh 1783
      oprot.writeFieldBegin('success', TType.STRING, 0)
1784
      oprot.writeString(self.success)
1785
      oprot.writeFieldEnd()
3431 rajveer 1786
    if self.se is not None:
732 chandransh 1787
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
1788
      self.se.write(oprot)
1789
      oprot.writeFieldEnd()
1790
    oprot.writeFieldStop()
1791
    oprot.writeStructEnd()
1792
 
3431 rajveer 1793
  def validate(self):
1794
    return
1795
 
1796
 
732 chandransh 1797
  def __repr__(self):
1798
    L = ['%s=%r' % (key, value)
1799
      for key, value in self.__dict__.iteritems()]
1800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1801
 
1802
  def __eq__(self, other):
1803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1804
 
1805
  def __ne__(self, other):
1806
    return not (self == other)
1807
 
1137 chandransh 1808
class getFreeAwbCount_args:
1809
  """
1810
  Attributes:
1811
   - providerId
3103 chandransh 1812
   - type
1137 chandransh 1813
  """
732 chandransh 1814
 
1137 chandransh 1815
  thrift_spec = (
1816
    None, # 0
1817
    (1, TType.I64, 'providerId', None, None, ), # 1
3103 chandransh 1818
    (2, TType.STRING, 'type', None, None, ), # 2
1137 chandransh 1819
  )
1820
 
3103 chandransh 1821
  def __init__(self, providerId=None, type=None,):
1137 chandransh 1822
    self.providerId = providerId
3103 chandransh 1823
    self.type = type
1137 chandransh 1824
 
1825
  def read(self, iprot):
1826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1828
      return
1829
    iprot.readStructBegin()
1830
    while True:
1831
      (fname, ftype, fid) = iprot.readFieldBegin()
1832
      if ftype == TType.STOP:
1833
        break
1834
      if fid == 1:
1835
        if ftype == TType.I64:
1836
          self.providerId = iprot.readI64();
1837
        else:
1838
          iprot.skip(ftype)
3103 chandransh 1839
      elif fid == 2:
1840
        if ftype == TType.STRING:
1841
          self.type = iprot.readString();
1842
        else:
1843
          iprot.skip(ftype)
1137 chandransh 1844
      else:
1845
        iprot.skip(ftype)
1846
      iprot.readFieldEnd()
1847
    iprot.readStructEnd()
1848
 
1849
  def write(self, oprot):
1850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1852
      return
1853
    oprot.writeStructBegin('getFreeAwbCount_args')
3431 rajveer 1854
    if self.providerId is not None:
1137 chandransh 1855
      oprot.writeFieldBegin('providerId', TType.I64, 1)
1856
      oprot.writeI64(self.providerId)
1857
      oprot.writeFieldEnd()
3431 rajveer 1858
    if self.type is not None:
3103 chandransh 1859
      oprot.writeFieldBegin('type', TType.STRING, 2)
1860
      oprot.writeString(self.type)
1861
      oprot.writeFieldEnd()
1137 chandransh 1862
    oprot.writeFieldStop()
1863
    oprot.writeStructEnd()
1864
 
3431 rajveer 1865
  def validate(self):
1866
    return
1867
 
1868
 
1137 chandransh 1869
  def __repr__(self):
1870
    L = ['%s=%r' % (key, value)
1871
      for key, value in self.__dict__.iteritems()]
1872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1873
 
1874
  def __eq__(self, other):
1875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1876
 
1877
  def __ne__(self, other):
1878
    return not (self == other)
1879
 
1880
class getFreeAwbCount_result:
1881
  """
1882
  Attributes:
1883
   - success
1884
  """
1885
 
1886
  thrift_spec = (
1887
    (0, TType.I64, 'success', None, None, ), # 0
1888
  )
1889
 
1890
  def __init__(self, success=None,):
1891
    self.success = success
1892
 
1893
  def read(self, iprot):
1894
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1895
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1896
      return
1897
    iprot.readStructBegin()
1898
    while True:
1899
      (fname, ftype, fid) = iprot.readFieldBegin()
1900
      if ftype == TType.STOP:
1901
        break
1902
      if fid == 0:
1903
        if ftype == TType.I64:
1904
          self.success = iprot.readI64();
1905
        else:
1906
          iprot.skip(ftype)
1907
      else:
1908
        iprot.skip(ftype)
1909
      iprot.readFieldEnd()
1910
    iprot.readStructEnd()
1911
 
1912
  def write(self, oprot):
1913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1915
      return
1916
    oprot.writeStructBegin('getFreeAwbCount_result')
3431 rajveer 1917
    if self.success is not None:
1137 chandransh 1918
      oprot.writeFieldBegin('success', TType.I64, 0)
1919
      oprot.writeI64(self.success)
1920
      oprot.writeFieldEnd()
1921
    oprot.writeFieldStop()
1922
    oprot.writeStructEnd()
1923
 
3431 rajveer 1924
  def validate(self):
1925
    return
1926
 
1927
 
1137 chandransh 1928
  def __repr__(self):
1929
    L = ['%s=%r' % (key, value)
1930
      for key, value in self.__dict__.iteritems()]
1931
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1932
 
1933
  def __eq__(self, other):
1934
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1935
 
1936
  def __ne__(self, other):
1937
    return not (self == other)
1938
 
1730 ankur.sing 1939
class getHolidays_args:
1940
  """
1941
  Attributes:
1942
   - fromDate
1943
   - toDate
1944
  """
1137 chandransh 1945
 
1730 ankur.sing 1946
  thrift_spec = (
1947
    None, # 0
1948
    (1, TType.I64, 'fromDate', None, None, ), # 1
1949
    (2, TType.I64, 'toDate', None, None, ), # 2
1950
  )
1951
 
1952
  def __init__(self, fromDate=None, toDate=None,):
1953
    self.fromDate = fromDate
1954
    self.toDate = toDate
1955
 
1956
  def read(self, iprot):
1957
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1958
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1959
      return
1960
    iprot.readStructBegin()
1961
    while True:
1962
      (fname, ftype, fid) = iprot.readFieldBegin()
1963
      if ftype == TType.STOP:
1964
        break
1965
      if fid == 1:
1966
        if ftype == TType.I64:
1967
          self.fromDate = iprot.readI64();
1968
        else:
1969
          iprot.skip(ftype)
1970
      elif fid == 2:
1971
        if ftype == TType.I64:
1972
          self.toDate = iprot.readI64();
1973
        else:
1974
          iprot.skip(ftype)
1975
      else:
1976
        iprot.skip(ftype)
1977
      iprot.readFieldEnd()
1978
    iprot.readStructEnd()
1979
 
1980
  def write(self, oprot):
1981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1983
      return
1984
    oprot.writeStructBegin('getHolidays_args')
3431 rajveer 1985
    if self.fromDate is not None:
1730 ankur.sing 1986
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
1987
      oprot.writeI64(self.fromDate)
1988
      oprot.writeFieldEnd()
3431 rajveer 1989
    if self.toDate is not None:
1730 ankur.sing 1990
      oprot.writeFieldBegin('toDate', TType.I64, 2)
1991
      oprot.writeI64(self.toDate)
1992
      oprot.writeFieldEnd()
1993
    oprot.writeFieldStop()
1994
    oprot.writeStructEnd()
1995
 
3431 rajveer 1996
  def validate(self):
1997
    return
1998
 
1999
 
1730 ankur.sing 2000
  def __repr__(self):
2001
    L = ['%s=%r' % (key, value)
2002
      for key, value in self.__dict__.iteritems()]
2003
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2004
 
2005
  def __eq__(self, other):
2006
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2007
 
2008
  def __ne__(self, other):
2009
    return not (self == other)
2010
 
2011
class getHolidays_result:
2012
  """
2013
  Attributes:
2014
   - success
2015
  """
2016
 
2017
  thrift_spec = (
2018
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
2019
  )
2020
 
2021
  def __init__(self, success=None,):
2022
    self.success = success
2023
 
2024
  def read(self, iprot):
2025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2027
      return
2028
    iprot.readStructBegin()
2029
    while True:
2030
      (fname, ftype, fid) = iprot.readFieldBegin()
2031
      if ftype == TType.STOP:
2032
        break
2033
      if fid == 0:
2034
        if ftype == TType.LIST:
2035
          self.success = []
3044 chandransh 2036
          (_etype26, _size23) = iprot.readListBegin()
2037
          for _i27 in xrange(_size23):
2038
            _elem28 = iprot.readI64();
2039
            self.success.append(_elem28)
1730 ankur.sing 2040
          iprot.readListEnd()
2041
        else:
2042
          iprot.skip(ftype)
2043
      else:
2044
        iprot.skip(ftype)
2045
      iprot.readFieldEnd()
2046
    iprot.readStructEnd()
2047
 
2048
  def write(self, oprot):
2049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2051
      return
2052
    oprot.writeStructBegin('getHolidays_result')
3431 rajveer 2053
    if self.success is not None:
1730 ankur.sing 2054
      oprot.writeFieldBegin('success', TType.LIST, 0)
2055
      oprot.writeListBegin(TType.I64, len(self.success))
3044 chandransh 2056
      for iter29 in self.success:
2057
        oprot.writeI64(iter29)
1730 ankur.sing 2058
      oprot.writeListEnd()
2059
      oprot.writeFieldEnd()
2060
    oprot.writeFieldStop()
2061
    oprot.writeStructEnd()
2062
 
3431 rajveer 2063
  def validate(self):
2064
    return
2065
 
2066
 
1730 ankur.sing 2067
  def __repr__(self):
2068
    L = ['%s=%r' % (key, value)
2069
      for key, value in self.__dict__.iteritems()]
2070
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2071
 
2072
  def __eq__(self, other):
2073
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2074
 
2075
  def __ne__(self, other):
2076
    return not (self == other)
4934 amit.gupta 2077
 
2078
class getEntityLogisticsEstimation_args:
2079
  """
2080
  Attributes:
2081
   - catalogItemId
2082
   - destination_pin
2083
   - type
2084
  """
2085
 
2086
  thrift_spec = (
2087
    None, # 0
2088
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
2089
    (2, TType.STRING, 'destination_pin', None, None, ), # 2
2090
    (3, TType.I32, 'type', None, None, ), # 3
2091
  )
2092
 
2093
  def __init__(self, catalogItemId=None, destination_pin=None, type=None,):
2094
    self.catalogItemId = catalogItemId
2095
    self.destination_pin = destination_pin
2096
    self.type = type
2097
 
2098
  def read(self, iprot):
2099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2101
      return
2102
    iprot.readStructBegin()
2103
    while True:
2104
      (fname, ftype, fid) = iprot.readFieldBegin()
2105
      if ftype == TType.STOP:
2106
        break
2107
      if fid == 1:
2108
        if ftype == TType.I64:
2109
          self.catalogItemId = iprot.readI64();
2110
        else:
2111
          iprot.skip(ftype)
2112
      elif fid == 2:
2113
        if ftype == TType.STRING:
2114
          self.destination_pin = iprot.readString();
2115
        else:
2116
          iprot.skip(ftype)
2117
      elif fid == 3:
2118
        if ftype == TType.I32:
2119
          self.type = iprot.readI32();
2120
        else:
2121
          iprot.skip(ftype)
2122
      else:
2123
        iprot.skip(ftype)
2124
      iprot.readFieldEnd()
2125
    iprot.readStructEnd()
2126
 
2127
  def write(self, oprot):
2128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2130
      return
2131
    oprot.writeStructBegin('getEntityLogisticsEstimation_args')
2132
    if self.catalogItemId is not None:
2133
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
2134
      oprot.writeI64(self.catalogItemId)
2135
      oprot.writeFieldEnd()
2136
    if self.destination_pin is not None:
2137
      oprot.writeFieldBegin('destination_pin', TType.STRING, 2)
2138
      oprot.writeString(self.destination_pin)
2139
      oprot.writeFieldEnd()
2140
    if self.type is not None:
2141
      oprot.writeFieldBegin('type', TType.I32, 3)
2142
      oprot.writeI32(self.type)
2143
      oprot.writeFieldEnd()
2144
    oprot.writeFieldStop()
2145
    oprot.writeStructEnd()
2146
 
2147
  def validate(self):
2148
    return
2149
 
2150
 
2151
  def __repr__(self):
2152
    L = ['%s=%r' % (key, value)
2153
      for key, value in self.__dict__.iteritems()]
2154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2155
 
2156
  def __eq__(self, other):
2157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2158
 
2159
  def __ne__(self, other):
2160
    return not (self == other)
2161
 
2162
class getEntityLogisticsEstimation_result:
2163
  """
2164
  Attributes:
2165
   - success
2166
   - se
2167
  """
2168
 
2169
  thrift_spec = (
2170
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
2171
    (1, TType.STRUCT, 'se', (LogisticsServiceException, LogisticsServiceException.thrift_spec), None, ), # 1
2172
  )
2173
 
2174
  def __init__(self, success=None, se=None,):
2175
    self.success = success
2176
    self.se = se
2177
 
2178
  def read(self, iprot):
2179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2181
      return
2182
    iprot.readStructBegin()
2183
    while True:
2184
      (fname, ftype, fid) = iprot.readFieldBegin()
2185
      if ftype == TType.STOP:
2186
        break
2187
      if fid == 0:
2188
        if ftype == TType.LIST:
2189
          self.success = []
2190
          (_etype33, _size30) = iprot.readListBegin()
2191
          for _i34 in xrange(_size30):
2192
            _elem35 = iprot.readI64();
2193
            self.success.append(_elem35)
2194
          iprot.readListEnd()
2195
        else:
2196
          iprot.skip(ftype)
2197
      elif fid == 1:
2198
        if ftype == TType.STRUCT:
2199
          self.se = LogisticsServiceException()
2200
          self.se.read(iprot)
2201
        else:
2202
          iprot.skip(ftype)
2203
      else:
2204
        iprot.skip(ftype)
2205
      iprot.readFieldEnd()
2206
    iprot.readStructEnd()
2207
 
2208
  def write(self, oprot):
2209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2211
      return
2212
    oprot.writeStructBegin('getEntityLogisticsEstimation_result')
2213
    if self.success is not None:
2214
      oprot.writeFieldBegin('success', TType.LIST, 0)
2215
      oprot.writeListBegin(TType.I64, len(self.success))
2216
      for iter36 in self.success:
2217
        oprot.writeI64(iter36)
2218
      oprot.writeListEnd()
2219
      oprot.writeFieldEnd()
2220
    if self.se is not None:
2221
      oprot.writeFieldBegin('se', TType.STRUCT, 1)
2222
      self.se.write(oprot)
2223
      oprot.writeFieldEnd()
2224
    oprot.writeFieldStop()
2225
    oprot.writeStructEnd()
2226
 
2227
  def validate(self):
2228
    return
2229
 
2230
 
2231
  def __repr__(self):
2232
    L = ['%s=%r' % (key, value)
2233
      for key, value in self.__dict__.iteritems()]
2234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2235
 
2236
  def __eq__(self, other):
2237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2238
 
2239
  def __ne__(self, other):
2240
    return not (self == other)
5527 anupam.sin 2241
 
2242
class getProviderForPickupType_args:
2243
  """
2244
  Attributes:
2245
   - pickUp
2246
  """
2247
 
2248
  thrift_spec = (
2249
    None, # 0
2250
    (1, TType.I64, 'pickUp', None, None, ), # 1
2251
  )
2252
 
2253
  def __init__(self, pickUp=None,):
2254
    self.pickUp = pickUp
2255
 
2256
  def read(self, iprot):
2257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2259
      return
2260
    iprot.readStructBegin()
2261
    while True:
2262
      (fname, ftype, fid) = iprot.readFieldBegin()
2263
      if ftype == TType.STOP:
2264
        break
2265
      if fid == 1:
2266
        if ftype == TType.I64:
2267
          self.pickUp = iprot.readI64();
2268
        else:
2269
          iprot.skip(ftype)
2270
      else:
2271
        iprot.skip(ftype)
2272
      iprot.readFieldEnd()
2273
    iprot.readStructEnd()
2274
 
2275
  def write(self, oprot):
2276
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2277
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2278
      return
2279
    oprot.writeStructBegin('getProviderForPickupType_args')
2280
    if self.pickUp is not None:
2281
      oprot.writeFieldBegin('pickUp', TType.I64, 1)
2282
      oprot.writeI64(self.pickUp)
2283
      oprot.writeFieldEnd()
2284
    oprot.writeFieldStop()
2285
    oprot.writeStructEnd()
2286
 
2287
  def validate(self):
2288
    return
2289
 
2290
 
2291
  def __repr__(self):
2292
    L = ['%s=%r' % (key, value)
2293
      for key, value in self.__dict__.iteritems()]
2294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2295
 
2296
  def __eq__(self, other):
2297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2298
 
2299
  def __ne__(self, other):
2300
    return not (self == other)
2301
 
2302
class getProviderForPickupType_result:
2303
  """
2304
  Attributes:
2305
   - success
2306
  """
2307
 
2308
  thrift_spec = (
2309
    (0, TType.I64, 'success', None, None, ), # 0
2310
  )
2311
 
2312
  def __init__(self, success=None,):
2313
    self.success = success
2314
 
2315
  def read(self, iprot):
2316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2318
      return
2319
    iprot.readStructBegin()
2320
    while True:
2321
      (fname, ftype, fid) = iprot.readFieldBegin()
2322
      if ftype == TType.STOP:
2323
        break
2324
      if fid == 0:
2325
        if ftype == TType.I64:
2326
          self.success = iprot.readI64();
2327
        else:
2328
          iprot.skip(ftype)
2329
      else:
2330
        iprot.skip(ftype)
2331
      iprot.readFieldEnd()
2332
    iprot.readStructEnd()
2333
 
2334
  def write(self, oprot):
2335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2337
      return
2338
    oprot.writeStructBegin('getProviderForPickupType_result')
2339
    if self.success is not None:
2340
      oprot.writeFieldBegin('success', TType.I64, 0)
2341
      oprot.writeI64(self.success)
2342
      oprot.writeFieldEnd()
2343
    oprot.writeFieldStop()
2344
    oprot.writeStructEnd()
2345
 
2346
  def validate(self):
2347
    return
2348
 
2349
 
2350
  def __repr__(self):
2351
    L = ['%s=%r' % (key, value)
2352
      for key, value in self.__dict__.iteritems()]
2353
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2354
 
2355
  def __eq__(self, other):
2356
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2357
 
2358
  def __ne__(self, other):
2359
    return not (self == other)
5553 rajveer 2360
 
2361
class getAllPickupStores_args:
2362
 
2363
  thrift_spec = (
2364
  )
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
      else:
2376
        iprot.skip(ftype)
2377
      iprot.readFieldEnd()
2378
    iprot.readStructEnd()
2379
 
2380
  def write(self, oprot):
2381
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2382
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2383
      return
2384
    oprot.writeStructBegin('getAllPickupStores_args')
2385
    oprot.writeFieldStop()
2386
    oprot.writeStructEnd()
2387
 
2388
  def validate(self):
2389
    return
2390
 
2391
 
2392
  def __repr__(self):
2393
    L = ['%s=%r' % (key, value)
2394
      for key, value in self.__dict__.iteritems()]
2395
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2396
 
2397
  def __eq__(self, other):
2398
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2399
 
2400
  def __ne__(self, other):
2401
    return not (self == other)
2402
 
2403
class getAllPickupStores_result:
2404
  """
2405
  Attributes:
2406
   - success
2407
  """
2408
 
2409
  thrift_spec = (
2410
    (0, TType.LIST, 'success', (TType.STRUCT,(PickupStore, PickupStore.thrift_spec)), None, ), # 0
2411
  )
2412
 
2413
  def __init__(self, success=None,):
2414
    self.success = success
2415
 
2416
  def read(self, iprot):
2417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2419
      return
2420
    iprot.readStructBegin()
2421
    while True:
2422
      (fname, ftype, fid) = iprot.readFieldBegin()
2423
      if ftype == TType.STOP:
2424
        break
2425
      if fid == 0:
2426
        if ftype == TType.LIST:
2427
          self.success = []
2428
          (_etype40, _size37) = iprot.readListBegin()
2429
          for _i41 in xrange(_size37):
2430
            _elem42 = PickupStore()
2431
            _elem42.read(iprot)
2432
            self.success.append(_elem42)
2433
          iprot.readListEnd()
2434
        else:
2435
          iprot.skip(ftype)
2436
      else:
2437
        iprot.skip(ftype)
2438
      iprot.readFieldEnd()
2439
    iprot.readStructEnd()
2440
 
2441
  def write(self, oprot):
2442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2444
      return
2445
    oprot.writeStructBegin('getAllPickupStores_result')
2446
    if self.success is not None:
2447
      oprot.writeFieldBegin('success', TType.LIST, 0)
2448
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2449
      for iter43 in self.success:
2450
        iter43.write(oprot)
2451
      oprot.writeListEnd()
2452
      oprot.writeFieldEnd()
2453
    oprot.writeFieldStop()
2454
    oprot.writeStructEnd()
2455
 
2456
  def validate(self):
2457
    return
2458
 
2459
 
2460
  def __repr__(self):
2461
    L = ['%s=%r' % (key, value)
2462
      for key, value in self.__dict__.iteritems()]
2463
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2464
 
2465
  def __eq__(self, other):
2466
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2467
 
2468
  def __ne__(self, other):
2469
    return not (self == other)
2470
 
2471
class getPickupStore_args:
2472
  """
2473
  Attributes:
2474
   - storeId
2475
  """
2476
 
2477
  thrift_spec = (
2478
    None, # 0
2479
    (1, TType.I64, 'storeId', None, None, ), # 1
2480
  )
2481
 
2482
  def __init__(self, storeId=None,):
2483
    self.storeId = storeId
2484
 
2485
  def read(self, iprot):
2486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2488
      return
2489
    iprot.readStructBegin()
2490
    while True:
2491
      (fname, ftype, fid) = iprot.readFieldBegin()
2492
      if ftype == TType.STOP:
2493
        break
2494
      if fid == 1:
2495
        if ftype == TType.I64:
2496
          self.storeId = iprot.readI64();
2497
        else:
2498
          iprot.skip(ftype)
2499
      else:
2500
        iprot.skip(ftype)
2501
      iprot.readFieldEnd()
2502
    iprot.readStructEnd()
2503
 
2504
  def write(self, oprot):
2505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2507
      return
2508
    oprot.writeStructBegin('getPickupStore_args')
2509
    if self.storeId is not None:
2510
      oprot.writeFieldBegin('storeId', TType.I64, 1)
2511
      oprot.writeI64(self.storeId)
2512
      oprot.writeFieldEnd()
2513
    oprot.writeFieldStop()
2514
    oprot.writeStructEnd()
2515
 
2516
  def validate(self):
2517
    return
2518
 
2519
 
2520
  def __repr__(self):
2521
    L = ['%s=%r' % (key, value)
2522
      for key, value in self.__dict__.iteritems()]
2523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2524
 
2525
  def __eq__(self, other):
2526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2527
 
2528
  def __ne__(self, other):
2529
    return not (self == other)
2530
 
2531
class getPickupStore_result:
2532
  """
2533
  Attributes:
2534
   - success
2535
  """
2536
 
2537
  thrift_spec = (
2538
    (0, TType.STRUCT, 'success', (PickupStore, PickupStore.thrift_spec), None, ), # 0
2539
  )
2540
 
2541
  def __init__(self, success=None,):
2542
    self.success = success
2543
 
2544
  def read(self, iprot):
2545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2547
      return
2548
    iprot.readStructBegin()
2549
    while True:
2550
      (fname, ftype, fid) = iprot.readFieldBegin()
2551
      if ftype == TType.STOP:
2552
        break
2553
      if fid == 0:
2554
        if ftype == TType.STRUCT:
2555
          self.success = PickupStore()
2556
          self.success.read(iprot)
2557
        else:
2558
          iprot.skip(ftype)
2559
      else:
2560
        iprot.skip(ftype)
2561
      iprot.readFieldEnd()
2562
    iprot.readStructEnd()
2563
 
2564
  def write(self, oprot):
2565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2567
      return
2568
    oprot.writeStructBegin('getPickupStore_result')
2569
    if self.success is not None:
2570
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2571
      self.success.write(oprot)
2572
      oprot.writeFieldEnd()
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)