Subversion Repositories SmartDukaan

Rev

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

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