Subversion Repositories SmartDukaan

Rev

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

Rev 21838 Rev 21845
Line 240... Line 240...
240
   - billingWarehouseId
240
   - billingWarehouseId
241
   - isAvailabilityMonitored
241
   - isAvailabilityMonitored
242
   - transferDelayInHours
242
   - transferDelayInHours
243
   - stateId
243
   - stateId
244
   - source
244
   - source
-
 
245
   - gstin
245
  """
246
  """
246
 
247
 
247
  thrift_spec = (
248
  thrift_spec = (
248
    None, # 0
249
    None, # 0
249
    (1, TType.I64, 'id', None, None, ), # 1
250
    (1, TType.I64, 'id', None, None, ), # 1
Line 265... Line 266...
265
    (17, TType.I64, 'billingWarehouseId', None, None, ), # 17
266
    (17, TType.I64, 'billingWarehouseId', None, None, ), # 17
266
    (18, TType.BOOL, 'isAvailabilityMonitored', None, None, ), # 18
267
    (18, TType.BOOL, 'isAvailabilityMonitored', None, None, ), # 18
267
    (19, TType.I64, 'transferDelayInHours', None, None, ), # 19
268
    (19, TType.I64, 'transferDelayInHours', None, None, ), # 19
268
    (20, TType.I64, 'stateId', None, None, ), # 20
269
    (20, TType.I64, 'stateId', None, None, ), # 20
269
    (21, TType.I64, 'source', None, None, ), # 21
270
    (21, TType.I64, 'source', None, None, ), # 21
-
 
271
    (22, TType.STRING, 'gstin', None, None, ), # 22
270
  )
272
  )
271
 
273
 
272
  def __init__(self, id=None, displayName=None, location=None, addedOn=None, lastCheckedOn=None, tinNumber=None, pincode=None, vendorString=None, logisticsLocation=None, billingType=None, warehouseType=None, inventoryType=None, vendor=None, shippingWarehouseId=None, billingWarehouseId=None, isAvailabilityMonitored=None, transferDelayInHours=None, stateId=None, source=None,):
274
  def __init__(self, id=None, displayName=None, location=None, addedOn=None, lastCheckedOn=None, tinNumber=None, pincode=None, vendorString=None, logisticsLocation=None, billingType=None, warehouseType=None, inventoryType=None, vendor=None, shippingWarehouseId=None, billingWarehouseId=None, isAvailabilityMonitored=None, transferDelayInHours=None, stateId=None, source=None, gstin=None,):
273
    self.id = id
275
    self.id = id
274
    self.displayName = displayName
276
    self.displayName = displayName
275
    self.location = location
277
    self.location = location
276
    self.addedOn = addedOn
278
    self.addedOn = addedOn
277
    self.lastCheckedOn = lastCheckedOn
279
    self.lastCheckedOn = lastCheckedOn
Line 287... Line 289...
287
    self.billingWarehouseId = billingWarehouseId
289
    self.billingWarehouseId = billingWarehouseId
288
    self.isAvailabilityMonitored = isAvailabilityMonitored
290
    self.isAvailabilityMonitored = isAvailabilityMonitored
289
    self.transferDelayInHours = transferDelayInHours
291
    self.transferDelayInHours = transferDelayInHours
290
    self.stateId = stateId
292
    self.stateId = stateId
291
    self.source = source
293
    self.source = source
-
 
294
    self.gstin = gstin
292
 
295
 
293
  def read(self, iprot):
296
  def read(self, iprot):
294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
297
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
298
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
296
      return
299
      return
Line 393... Line 396...
393
      elif fid == 21:
396
      elif fid == 21:
394
        if ftype == TType.I64:
397
        if ftype == TType.I64:
395
          self.source = iprot.readI64();
398
          self.source = iprot.readI64();
396
        else:
399
        else:
397
          iprot.skip(ftype)
400
          iprot.skip(ftype)
-
 
401
      elif fid == 22:
-
 
402
        if ftype == TType.STRING:
-
 
403
          self.gstin = iprot.readString();
-
 
404
        else:
-
 
405
          iprot.skip(ftype)
398
      else:
406
      else:
399
        iprot.skip(ftype)
407
        iprot.skip(ftype)
400
      iprot.readFieldEnd()
408
      iprot.readFieldEnd()
401
    iprot.readStructEnd()
409
    iprot.readStructEnd()
402
 
410
 
Line 479... Line 487...
479
      oprot.writeFieldEnd()
487
      oprot.writeFieldEnd()
480
    if self.source is not None:
488
    if self.source is not None:
481
      oprot.writeFieldBegin('source', TType.I64, 21)
489
      oprot.writeFieldBegin('source', TType.I64, 21)
482
      oprot.writeI64(self.source)
490
      oprot.writeI64(self.source)
483
      oprot.writeFieldEnd()
491
      oprot.writeFieldEnd()
-
 
492
    if self.gstin is not None:
-
 
493
      oprot.writeFieldBegin('gstin', TType.STRING, 22)
-
 
494
      oprot.writeString(self.gstin)
-
 
495
      oprot.writeFieldEnd()
484
    oprot.writeFieldStop()
496
    oprot.writeFieldStop()
485
    oprot.writeStructEnd()
497
    oprot.writeStructEnd()
486
 
498
 
487
  def validate(self):
499
  def validate(self):
488
    return
500
    return
Line 504... Line 516...
504
  Attributes:
516
  Attributes:
505
   - id
517
   - id
506
   - stateName
518
   - stateName
507
   - vatType
519
   - vatType
508
   - stateCode
520
   - stateCode
-
 
521
   - shortName
509
  """
522
  """
510
 
523
 
511
  thrift_spec = (
524
  thrift_spec = (
512
    None, # 0
525
    None, # 0
513
    (1, TType.I64, 'id', None, None, ), # 1
526
    (1, TType.I64, 'id', None, None, ), # 1
514
    (2, TType.STRING, 'stateName', None, None, ), # 2
527
    (2, TType.STRING, 'stateName', None, None, ), # 2
515
    (3, TType.I32, 'vatType', None, None, ), # 3
528
    (3, TType.I32, 'vatType', None, None, ), # 3
516
    (4, TType.STRING, 'stateCode', None, None, ), # 4
529
    (4, TType.STRING, 'stateCode', None, None, ), # 4
-
 
530
    (5, TType.STRING, 'shortName', None, None, ), # 5
517
  )
531
  )
518
 
532
 
519
  def __init__(self, id=None, stateName=None, vatType=None, stateCode=None,):
533
  def __init__(self, id=None, stateName=None, vatType=None, stateCode=None, shortName=None,):
520
    self.id = id
534
    self.id = id
521
    self.stateName = stateName
535
    self.stateName = stateName
522
    self.vatType = vatType
536
    self.vatType = vatType
523
    self.stateCode = stateCode
537
    self.stateCode = stateCode
-
 
538
    self.shortName = shortName
524
 
539
 
525
  def read(self, iprot):
540
  def read(self, iprot):
526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
528
      return
543
      return
Line 549... Line 564...
549
      elif fid == 4:
564
      elif fid == 4:
550
        if ftype == TType.STRING:
565
        if ftype == TType.STRING:
551
          self.stateCode = iprot.readString();
566
          self.stateCode = iprot.readString();
552
        else:
567
        else:
553
          iprot.skip(ftype)
568
          iprot.skip(ftype)
-
 
569
      elif fid == 5:
-
 
570
        if ftype == TType.STRING:
-
 
571
          self.shortName = iprot.readString();
-
 
572
        else:
-
 
573
          iprot.skip(ftype)
554
      else:
574
      else:
555
        iprot.skip(ftype)
575
        iprot.skip(ftype)
556
      iprot.readFieldEnd()
576
      iprot.readFieldEnd()
557
    iprot.readStructEnd()
577
    iprot.readStructEnd()
558
 
578
 
Line 575... Line 595...
575
      oprot.writeFieldEnd()
595
      oprot.writeFieldEnd()
576
    if self.stateCode is not None:
596
    if self.stateCode is not None:
577
      oprot.writeFieldBegin('stateCode', TType.STRING, 4)
597
      oprot.writeFieldBegin('stateCode', TType.STRING, 4)
578
      oprot.writeString(self.stateCode)
598
      oprot.writeString(self.stateCode)
579
      oprot.writeFieldEnd()
599
      oprot.writeFieldEnd()
-
 
600
    if self.shortName is not None:
-
 
601
      oprot.writeFieldBegin('shortName', TType.STRING, 5)
-
 
602
      oprot.writeString(self.shortName)
-
 
603
      oprot.writeFieldEnd()
580
    oprot.writeFieldStop()
604
    oprot.writeFieldStop()
581
    oprot.writeStructEnd()
605
    oprot.writeStructEnd()
582
 
606
 
583
  def validate(self):
607
  def validate(self):
584
    return
608
    return