Subversion Repositories SmartDukaan

Rev

Rev 23218 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23218 Rev 23446
Line 52... Line 52...
52
     - destination_pin
52
     - destination_pin
53
     - type
53
     - type
54
    """
54
    """
55
    pass
55
    pass
56
 
56
 
57
  def getLogisticsInfo(self, destination_pincode, item_id, type, pickUp):
57
  def getLogisticsInfo(self, destination_pincode, item_id, type, pickUp, stateId):
58
    """
58
    """
59
    Same as above excpet that an airway bill number is also allocated and returned.
59
    Same as above excpet that an airway bill number is also allocated and returned.
60
 
60
 
61
    Parameters:
61
    Parameters:
62
     - destination_pincode
62
     - destination_pincode
63
     - item_id
63
     - item_id
64
     - type
64
     - type
65
     - pickUp
65
     - pickUp
-
 
66
     - stateId
66
    """
67
    """
67
    pass
68
    pass
68
 
69
 
69
  def getEmptyAWB(self, providerId, logisticsTransactionId):
70
  def getEmptyAWB(self, providerId, logisticsTransactionId):
70
    """
71
    """
Line 424... Line 425...
424
      return result.success
425
      return result.success
425
    if result.se is not None:
426
    if result.se is not None:
426
      raise result.se
427
      raise result.se
427
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
428
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
428
 
429
 
429
  def getLogisticsInfo(self, destination_pincode, item_id, type, pickUp):
430
  def getLogisticsInfo(self, destination_pincode, item_id, type, pickUp, stateId):
430
    """
431
    """
431
    Same as above excpet that an airway bill number is also allocated and returned.
432
    Same as above excpet that an airway bill number is also allocated and returned.
432
 
433
 
433
    Parameters:
434
    Parameters:
434
     - destination_pincode
435
     - destination_pincode
435
     - item_id
436
     - item_id
436
     - type
437
     - type
437
     - pickUp
438
     - pickUp
-
 
439
     - stateId
438
    """
440
    """
439
    self.send_getLogisticsInfo(destination_pincode, item_id, type, pickUp)
441
    self.send_getLogisticsInfo(destination_pincode, item_id, type, pickUp, stateId)
440
    return self.recv_getLogisticsInfo()
442
    return self.recv_getLogisticsInfo()
441
 
443
 
442
  def send_getLogisticsInfo(self, destination_pincode, item_id, type, pickUp):
444
  def send_getLogisticsInfo(self, destination_pincode, item_id, type, pickUp, stateId):
443
    self._oprot.writeMessageBegin('getLogisticsInfo', TMessageType.CALL, self._seqid)
445
    self._oprot.writeMessageBegin('getLogisticsInfo', TMessageType.CALL, self._seqid)
444
    args = getLogisticsInfo_args()
446
    args = getLogisticsInfo_args()
445
    args.destination_pincode = destination_pincode
447
    args.destination_pincode = destination_pincode
446
    args.item_id = item_id
448
    args.item_id = item_id
447
    args.type = type
449
    args.type = type
448
    args.pickUp = pickUp
450
    args.pickUp = pickUp
-
 
451
    args.stateId = stateId
449
    args.write(self._oprot)
452
    args.write(self._oprot)
450
    self._oprot.writeMessageEnd()
453
    self._oprot.writeMessageEnd()
451
    self._oprot.trans.flush()
454
    self._oprot.trans.flush()
452
 
455
 
453
  def recv_getLogisticsInfo(self, ):
456
  def recv_getLogisticsInfo(self, ):
Line 1361... Line 1364...
1361
    args = getLogisticsInfo_args()
1364
    args = getLogisticsInfo_args()
1362
    args.read(iprot)
1365
    args.read(iprot)
1363
    iprot.readMessageEnd()
1366
    iprot.readMessageEnd()
1364
    result = getLogisticsInfo_result()
1367
    result = getLogisticsInfo_result()
1365
    try:
1368
    try:
1366
      result.success = self._handler.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp)
1369
      result.success = self._handler.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp, args.stateId)
1367
    except LogisticsServiceException, se:
1370
    except LogisticsServiceException, se:
1368
      result.se = se
1371
      result.se = se
1369
    oprot.writeMessageBegin("getLogisticsInfo", TMessageType.REPLY, seqid)
1372
    oprot.writeMessageBegin("getLogisticsInfo", TMessageType.REPLY, seqid)
1370
    result.write(oprot)
1373
    result.write(oprot)
1371
    oprot.writeMessageEnd()
1374
    oprot.writeMessageEnd()
Line 2229... Line 2232...
2229
  Attributes:
2232
  Attributes:
2230
   - destination_pincode
2233
   - destination_pincode
2231
   - item_id
2234
   - item_id
2232
   - type
2235
   - type
2233
   - pickUp
2236
   - pickUp
-
 
2237
   - stateId
2234
  """
2238
  """
2235
 
2239
 
2236
  thrift_spec = (
2240
  thrift_spec = (
2237
    None, # 0
2241
    None, # 0
2238
    (1, TType.STRING, 'destination_pincode', None, None, ), # 1
2242
    (1, TType.STRING, 'destination_pincode', None, None, ), # 1
2239
    (2, TType.I64, 'item_id', None, None, ), # 2
2243
    (2, TType.I64, 'item_id', None, None, ), # 2
2240
    (3, TType.I32, 'type', None, None, ), # 3
2244
    (3, TType.I32, 'type', None, None, ), # 3
2241
    (4, TType.I32, 'pickUp', None, None, ), # 4
2245
    (4, TType.I32, 'pickUp', None, None, ), # 4
-
 
2246
    (5, TType.I64, 'stateId', None, None, ), # 5
2242
  )
2247
  )
2243
 
2248
 
2244
  def __init__(self, destination_pincode=None, item_id=None, type=None, pickUp=None,):
2249
  def __init__(self, destination_pincode=None, item_id=None, type=None, pickUp=None, stateId=None,):
2245
    self.destination_pincode = destination_pincode
2250
    self.destination_pincode = destination_pincode
2246
    self.item_id = item_id
2251
    self.item_id = item_id
2247
    self.type = type
2252
    self.type = type
2248
    self.pickUp = pickUp
2253
    self.pickUp = pickUp
-
 
2254
    self.stateId = stateId
2249
 
2255
 
2250
  def read(self, iprot):
2256
  def read(self, iprot):
2251
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2252
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2253
      return
2259
      return
Line 2274... Line 2280...
2274
      elif fid == 4:
2280
      elif fid == 4:
2275
        if ftype == TType.I32:
2281
        if ftype == TType.I32:
2276
          self.pickUp = iprot.readI32();
2282
          self.pickUp = iprot.readI32();
2277
        else:
2283
        else:
2278
          iprot.skip(ftype)
2284
          iprot.skip(ftype)
-
 
2285
      elif fid == 5:
-
 
2286
        if ftype == TType.I64:
-
 
2287
          self.stateId = iprot.readI64();
-
 
2288
        else:
-
 
2289
          iprot.skip(ftype)
2279
      else:
2290
      else:
2280
        iprot.skip(ftype)
2291
        iprot.skip(ftype)
2281
      iprot.readFieldEnd()
2292
      iprot.readFieldEnd()
2282
    iprot.readStructEnd()
2293
    iprot.readStructEnd()
2283
 
2294
 
Line 2300... Line 2311...
2300
      oprot.writeFieldEnd()
2311
      oprot.writeFieldEnd()
2301
    if self.pickUp is not None:
2312
    if self.pickUp is not None:
2302
      oprot.writeFieldBegin('pickUp', TType.I32, 4)
2313
      oprot.writeFieldBegin('pickUp', TType.I32, 4)
2303
      oprot.writeI32(self.pickUp)
2314
      oprot.writeI32(self.pickUp)
2304
      oprot.writeFieldEnd()
2315
      oprot.writeFieldEnd()
-
 
2316
    if self.stateId is not None:
-
 
2317
      oprot.writeFieldBegin('stateId', TType.I64, 5)
-
 
2318
      oprot.writeI64(self.stateId)
-
 
2319
      oprot.writeFieldEnd()
2305
    oprot.writeFieldStop()
2320
    oprot.writeFieldStop()
2306
    oprot.writeStructEnd()
2321
    oprot.writeStructEnd()
2307
 
2322
 
2308
  def validate(self):
2323
  def validate(self):
2309
    return
2324
    return