Subversion Repositories SmartDukaan

Rev

Rev 6821 | Rev 6922 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6821 Rev 6903
Line 587... Line 587...
587
     - startDate
587
     - startDate
588
     - endDate
588
     - endDate
589
    """
589
    """
590
    pass
590
    pass
591
 
591
 
-
 
592
  def insureItem(self, itemId, cartId, toInsure):
-
 
593
    """
-
 
594
    Mark a cart lineitem as insured. Returns true/false.
-
 
595
 
-
 
596
    Parameters:
-
 
597
     - itemId
-
 
598
     - cartId
-
 
599
     - toInsure
-
 
600
    """
-
 
601
    pass
-
 
602
 
-
 
603
  def cancelInsurance(self, cartId):
-
 
604
    """
-
 
605
    Cancel insurance for all items in the cart
-
 
606
 
-
 
607
    Parameters:
-
 
608
     - cartId
-
 
609
    """
-
 
610
    pass
-
 
611
 
-
 
612
  def storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
-
 
613
    """
-
 
614
    Stores insurance specific details like date of birth and guardianName
-
 
615
 
-
 
616
    Parameters:
-
 
617
     - addressId
-
 
618
     - dob
-
 
619
     - guardianName
-
 
620
    """
-
 
621
    pass
-
 
622
 
-
 
623
  def isInsuranceDetailPresent(self, addressId):
-
 
624
    """
-
 
625
    Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
-
 
626
 
-
 
627
    Parameters:
-
 
628
     - addressId
-
 
629
    """
-
 
630
    pass
-
 
631
 
592
  def isProductAddedToCart(self, itemId, startDate, endDate):
632
  def isProductAddedToCart(self, itemId, startDate, endDate):
593
    """
633
    """
594
    Returns whether product is added to cart from startDate to endDate
634
    Returns whether product is added to cart from startDate to endDate
595
 
635
 
596
    Parameters:
636
    Parameters:
Line 2851... Line 2891...
2851
    self._iprot.readMessageEnd()
2891
    self._iprot.readMessageEnd()
2852
    if result.success is not None:
2892
    if result.success is not None:
2853
      return result.success
2893
      return result.success
2854
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2894
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2855
 
2895
 
-
 
2896
  def insureItem(self, itemId, cartId, toInsure):
-
 
2897
    """
-
 
2898
    Mark a cart lineitem as insured. Returns true/false.
-
 
2899
 
-
 
2900
    Parameters:
-
 
2901
     - itemId
-
 
2902
     - cartId
-
 
2903
     - toInsure
-
 
2904
    """
-
 
2905
    self.send_insureItem(itemId, cartId, toInsure)
-
 
2906
    return self.recv_insureItem()
-
 
2907
 
-
 
2908
  def send_insureItem(self, itemId, cartId, toInsure):
-
 
2909
    self._oprot.writeMessageBegin('insureItem', TMessageType.CALL, self._seqid)
-
 
2910
    args = insureItem_args()
-
 
2911
    args.itemId = itemId
-
 
2912
    args.cartId = cartId
-
 
2913
    args.toInsure = toInsure
-
 
2914
    args.write(self._oprot)
-
 
2915
    self._oprot.writeMessageEnd()
-
 
2916
    self._oprot.trans.flush()
-
 
2917
 
-
 
2918
  def recv_insureItem(self, ):
-
 
2919
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2920
    if mtype == TMessageType.EXCEPTION:
-
 
2921
      x = TApplicationException()
-
 
2922
      x.read(self._iprot)
-
 
2923
      self._iprot.readMessageEnd()
-
 
2924
      raise x
-
 
2925
    result = insureItem_result()
-
 
2926
    result.read(self._iprot)
-
 
2927
    self._iprot.readMessageEnd()
-
 
2928
    if result.success is not None:
-
 
2929
      return result.success
-
 
2930
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insureItem failed: unknown result");
-
 
2931
 
-
 
2932
  def cancelInsurance(self, cartId):
-
 
2933
    """
-
 
2934
    Cancel insurance for all items in the cart
-
 
2935
 
-
 
2936
    Parameters:
-
 
2937
     - cartId
-
 
2938
    """
-
 
2939
    self.send_cancelInsurance(cartId)
-
 
2940
    return self.recv_cancelInsurance()
-
 
2941
 
-
 
2942
  def send_cancelInsurance(self, cartId):
-
 
2943
    self._oprot.writeMessageBegin('cancelInsurance', TMessageType.CALL, self._seqid)
-
 
2944
    args = cancelInsurance_args()
-
 
2945
    args.cartId = cartId
-
 
2946
    args.write(self._oprot)
-
 
2947
    self._oprot.writeMessageEnd()
-
 
2948
    self._oprot.trans.flush()
-
 
2949
 
-
 
2950
  def recv_cancelInsurance(self, ):
-
 
2951
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2952
    if mtype == TMessageType.EXCEPTION:
-
 
2953
      x = TApplicationException()
-
 
2954
      x.read(self._iprot)
-
 
2955
      self._iprot.readMessageEnd()
-
 
2956
      raise x
-
 
2957
    result = cancelInsurance_result()
-
 
2958
    result.read(self._iprot)
-
 
2959
    self._iprot.readMessageEnd()
-
 
2960
    if result.success is not None:
-
 
2961
      return result.success
-
 
2962
    raise TApplicationException(TApplicationException.MISSING_RESULT, "cancelInsurance failed: unknown result");
-
 
2963
 
-
 
2964
  def storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
-
 
2965
    """
-
 
2966
    Stores insurance specific details like date of birth and guardianName
-
 
2967
 
-
 
2968
    Parameters:
-
 
2969
     - addressId
-
 
2970
     - dob
-
 
2971
     - guardianName
-
 
2972
    """
-
 
2973
    self.send_storeInsuranceSpecificDetails(addressId, dob, guardianName)
-
 
2974
    return self.recv_storeInsuranceSpecificDetails()
-
 
2975
 
-
 
2976
  def send_storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
-
 
2977
    self._oprot.writeMessageBegin('storeInsuranceSpecificDetails', TMessageType.CALL, self._seqid)
-
 
2978
    args = storeInsuranceSpecificDetails_args()
-
 
2979
    args.addressId = addressId
-
 
2980
    args.dob = dob
-
 
2981
    args.guardianName = guardianName
-
 
2982
    args.write(self._oprot)
-
 
2983
    self._oprot.writeMessageEnd()
-
 
2984
    self._oprot.trans.flush()
-
 
2985
 
-
 
2986
  def recv_storeInsuranceSpecificDetails(self, ):
-
 
2987
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2988
    if mtype == TMessageType.EXCEPTION:
-
 
2989
      x = TApplicationException()
-
 
2990
      x.read(self._iprot)
-
 
2991
      self._iprot.readMessageEnd()
-
 
2992
      raise x
-
 
2993
    result = storeInsuranceSpecificDetails_result()
-
 
2994
    result.read(self._iprot)
-
 
2995
    self._iprot.readMessageEnd()
-
 
2996
    if result.success is not None:
-
 
2997
      return result.success
-
 
2998
    raise TApplicationException(TApplicationException.MISSING_RESULT, "storeInsuranceSpecificDetails failed: unknown result");
-
 
2999
 
-
 
3000
  def isInsuranceDetailPresent(self, addressId):
-
 
3001
    """
-
 
3002
    Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
-
 
3003
 
-
 
3004
    Parameters:
-
 
3005
     - addressId
-
 
3006
    """
-
 
3007
    self.send_isInsuranceDetailPresent(addressId)
-
 
3008
    return self.recv_isInsuranceDetailPresent()
-
 
3009
 
-
 
3010
  def send_isInsuranceDetailPresent(self, addressId):
-
 
3011
    self._oprot.writeMessageBegin('isInsuranceDetailPresent', TMessageType.CALL, self._seqid)
-
 
3012
    args = isInsuranceDetailPresent_args()
-
 
3013
    args.addressId = addressId
-
 
3014
    args.write(self._oprot)
-
 
3015
    self._oprot.writeMessageEnd()
-
 
3016
    self._oprot.trans.flush()
-
 
3017
 
-
 
3018
  def recv_isInsuranceDetailPresent(self, ):
-
 
3019
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3020
    if mtype == TMessageType.EXCEPTION:
-
 
3021
      x = TApplicationException()
-
 
3022
      x.read(self._iprot)
-
 
3023
      self._iprot.readMessageEnd()
-
 
3024
      raise x
-
 
3025
    result = isInsuranceDetailPresent_result()
-
 
3026
    result.read(self._iprot)
-
 
3027
    self._iprot.readMessageEnd()
-
 
3028
    if result.success is not None:
-
 
3029
      return result.success
-
 
3030
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isInsuranceDetailPresent failed: unknown result");
-
 
3031
 
2856
  def isProductAddedToCart(self, itemId, startDate, endDate):
3032
  def isProductAddedToCart(self, itemId, startDate, endDate):
2857
    """
3033
    """
2858
    Returns whether product is added to cart from startDate to endDate
3034
    Returns whether product is added to cart from startDate to endDate
2859
 
3035
 
2860
    Parameters:
3036
    Parameters:
Line 2958... Line 3134...
2958
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3134
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
2959
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
3135
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
2960
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
3136
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
2961
    self._processMap["showCODOption"] = Processor.process_showCODOption
3137
    self._processMap["showCODOption"] = Processor.process_showCODOption
2962
    self._processMap["getUserEmails"] = Processor.process_getUserEmails
3138
    self._processMap["getUserEmails"] = Processor.process_getUserEmails
-
 
3139
    self._processMap["insureItem"] = Processor.process_insureItem
-
 
3140
    self._processMap["cancelInsurance"] = Processor.process_cancelInsurance
-
 
3141
    self._processMap["storeInsuranceSpecificDetails"] = Processor.process_storeInsuranceSpecificDetails
-
 
3142
    self._processMap["isInsuranceDetailPresent"] = Processor.process_isInsuranceDetailPresent
2963
    self._processMap["isProductAddedToCart"] = Processor.process_isProductAddedToCart
3143
    self._processMap["isProductAddedToCart"] = Processor.process_isProductAddedToCart
2964
 
3144
 
2965
  def process(self, iprot, oprot):
3145
  def process(self, iprot, oprot):
2966
    (name, type, seqid) = iprot.readMessageBegin()
3146
    (name, type, seqid) = iprot.readMessageBegin()
2967
    if name not in self._processMap:
3147
    if name not in self._processMap:
Line 3882... Line 4062...
3882
    oprot.writeMessageBegin("getUserEmails", TMessageType.REPLY, seqid)
4062
    oprot.writeMessageBegin("getUserEmails", TMessageType.REPLY, seqid)
3883
    result.write(oprot)
4063
    result.write(oprot)
3884
    oprot.writeMessageEnd()
4064
    oprot.writeMessageEnd()
3885
    oprot.trans.flush()
4065
    oprot.trans.flush()
3886
 
4066
 
-
 
4067
  def process_insureItem(self, seqid, iprot, oprot):
-
 
4068
    args = insureItem_args()
-
 
4069
    args.read(iprot)
-
 
4070
    iprot.readMessageEnd()
-
 
4071
    result = insureItem_result()
-
 
4072
    result.success = self._handler.insureItem(args.itemId, args.cartId, args.toInsure)
-
 
4073
    oprot.writeMessageBegin("insureItem", TMessageType.REPLY, seqid)
-
 
4074
    result.write(oprot)
-
 
4075
    oprot.writeMessageEnd()
-
 
4076
    oprot.trans.flush()
-
 
4077
 
-
 
4078
  def process_cancelInsurance(self, seqid, iprot, oprot):
-
 
4079
    args = cancelInsurance_args()
-
 
4080
    args.read(iprot)
-
 
4081
    iprot.readMessageEnd()
-
 
4082
    result = cancelInsurance_result()
-
 
4083
    result.success = self._handler.cancelInsurance(args.cartId)
-
 
4084
    oprot.writeMessageBegin("cancelInsurance", TMessageType.REPLY, seqid)
-
 
4085
    result.write(oprot)
-
 
4086
    oprot.writeMessageEnd()
-
 
4087
    oprot.trans.flush()
-
 
4088
 
-
 
4089
  def process_storeInsuranceSpecificDetails(self, seqid, iprot, oprot):
-
 
4090
    args = storeInsuranceSpecificDetails_args()
-
 
4091
    args.read(iprot)
-
 
4092
    iprot.readMessageEnd()
-
 
4093
    result = storeInsuranceSpecificDetails_result()
-
 
4094
    result.success = self._handler.storeInsuranceSpecificDetails(args.addressId, args.dob, args.guardianName)
-
 
4095
    oprot.writeMessageBegin("storeInsuranceSpecificDetails", TMessageType.REPLY, seqid)
-
 
4096
    result.write(oprot)
-
 
4097
    oprot.writeMessageEnd()
-
 
4098
    oprot.trans.flush()
-
 
4099
 
-
 
4100
  def process_isInsuranceDetailPresent(self, seqid, iprot, oprot):
-
 
4101
    args = isInsuranceDetailPresent_args()
-
 
4102
    args.read(iprot)
-
 
4103
    iprot.readMessageEnd()
-
 
4104
    result = isInsuranceDetailPresent_result()
-
 
4105
    result.success = self._handler.isInsuranceDetailPresent(args.addressId)
-
 
4106
    oprot.writeMessageBegin("isInsuranceDetailPresent", TMessageType.REPLY, seqid)
-
 
4107
    result.write(oprot)
-
 
4108
    oprot.writeMessageEnd()
-
 
4109
    oprot.trans.flush()
-
 
4110
 
3887
  def process_isProductAddedToCart(self, seqid, iprot, oprot):
4111
  def process_isProductAddedToCart(self, seqid, iprot, oprot):
3888
    args = isProductAddedToCart_args()
4112
    args = isProductAddedToCart_args()
3889
    args.read(iprot)
4113
    args.read(iprot)
3890
    iprot.readMessageEnd()
4114
    iprot.readMessageEnd()
3891
    result = isProductAddedToCart_result()
4115
    result = isProductAddedToCart_result()
Line 13253... Line 13477...
13253
      oprot.writeFieldEnd()
13477
      oprot.writeFieldEnd()
13254
    oprot.writeFieldStop()
13478
    oprot.writeFieldStop()
13255
    oprot.writeStructEnd()
13479
    oprot.writeStructEnd()
13256
 
13480
 
13257
  def validate(self):
13481
  def validate(self):
-
 
13482
    return
-
 
13483
 
-
 
13484
 
-
 
13485
  def __repr__(self):
-
 
13486
    L = ['%s=%r' % (key, value)
-
 
13487
      for key, value in self.__dict__.iteritems()]
-
 
13488
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13489
 
-
 
13490
  def __eq__(self, other):
-
 
13491
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13492
 
-
 
13493
  def __ne__(self, other):
-
 
13494
    return not (self == other)
-
 
13495
 
-
 
13496
class insureItem_args:
-
 
13497
  """
-
 
13498
  Attributes:
-
 
13499
   - itemId
-
 
13500
   - cartId
-
 
13501
   - toInsure
-
 
13502
  """
-
 
13503
 
-
 
13504
  thrift_spec = (
-
 
13505
    None, # 0
-
 
13506
    (1, TType.I64, 'itemId', None, None, ), # 1
-
 
13507
    (2, TType.I64, 'cartId', None, None, ), # 2
-
 
13508
    (3, TType.BOOL, 'toInsure', None, None, ), # 3
-
 
13509
  )
-
 
13510
 
-
 
13511
  def __init__(self, itemId=None, cartId=None, toInsure=None,):
-
 
13512
    self.itemId = itemId
-
 
13513
    self.cartId = cartId
-
 
13514
    self.toInsure = toInsure
-
 
13515
 
-
 
13516
  def read(self, iprot):
-
 
13517
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13518
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13519
      return
-
 
13520
    iprot.readStructBegin()
-
 
13521
    while True:
-
 
13522
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13523
      if ftype == TType.STOP:
-
 
13524
        break
-
 
13525
      if fid == 1:
-
 
13526
        if ftype == TType.I64:
-
 
13527
          self.itemId = iprot.readI64();
-
 
13528
        else:
-
 
13529
          iprot.skip(ftype)
-
 
13530
      elif fid == 2:
-
 
13531
        if ftype == TType.I64:
-
 
13532
          self.cartId = iprot.readI64();
-
 
13533
        else:
-
 
13534
          iprot.skip(ftype)
-
 
13535
      elif fid == 3:
-
 
13536
        if ftype == TType.BOOL:
-
 
13537
          self.toInsure = iprot.readBool();
-
 
13538
        else:
-
 
13539
          iprot.skip(ftype)
-
 
13540
      else:
-
 
13541
        iprot.skip(ftype)
-
 
13542
      iprot.readFieldEnd()
-
 
13543
    iprot.readStructEnd()
-
 
13544
 
-
 
13545
  def write(self, oprot):
-
 
13546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13548
      return
-
 
13549
    oprot.writeStructBegin('insureItem_args')
-
 
13550
    if self.itemId is not None:
-
 
13551
      oprot.writeFieldBegin('itemId', TType.I64, 1)
-
 
13552
      oprot.writeI64(self.itemId)
-
 
13553
      oprot.writeFieldEnd()
-
 
13554
    if self.cartId is not None:
-
 
13555
      oprot.writeFieldBegin('cartId', TType.I64, 2)
-
 
13556
      oprot.writeI64(self.cartId)
-
 
13557
      oprot.writeFieldEnd()
-
 
13558
    if self.toInsure is not None:
-
 
13559
      oprot.writeFieldBegin('toInsure', TType.BOOL, 3)
-
 
13560
      oprot.writeBool(self.toInsure)
-
 
13561
      oprot.writeFieldEnd()
-
 
13562
    oprot.writeFieldStop()
-
 
13563
    oprot.writeStructEnd()
-
 
13564
 
-
 
13565
  def validate(self):
-
 
13566
    return
-
 
13567
 
-
 
13568
 
-
 
13569
  def __repr__(self):
-
 
13570
    L = ['%s=%r' % (key, value)
-
 
13571
      for key, value in self.__dict__.iteritems()]
-
 
13572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13573
 
-
 
13574
  def __eq__(self, other):
-
 
13575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13576
 
-
 
13577
  def __ne__(self, other):
-
 
13578
    return not (self == other)
-
 
13579
 
-
 
13580
class insureItem_result:
-
 
13581
  """
-
 
13582
  Attributes:
-
 
13583
   - success
-
 
13584
  """
-
 
13585
 
-
 
13586
  thrift_spec = (
-
 
13587
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
13588
  )
-
 
13589
 
-
 
13590
  def __init__(self, success=None,):
-
 
13591
    self.success = success
-
 
13592
 
-
 
13593
  def read(self, iprot):
-
 
13594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13596
      return
-
 
13597
    iprot.readStructBegin()
-
 
13598
    while True:
-
 
13599
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13600
      if ftype == TType.STOP:
-
 
13601
        break
-
 
13602
      if fid == 0:
-
 
13603
        if ftype == TType.BOOL:
-
 
13604
          self.success = iprot.readBool();
-
 
13605
        else:
-
 
13606
          iprot.skip(ftype)
-
 
13607
      else:
-
 
13608
        iprot.skip(ftype)
-
 
13609
      iprot.readFieldEnd()
-
 
13610
    iprot.readStructEnd()
-
 
13611
 
-
 
13612
  def write(self, oprot):
-
 
13613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13615
      return
-
 
13616
    oprot.writeStructBegin('insureItem_result')
-
 
13617
    if self.success is not None:
-
 
13618
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
13619
      oprot.writeBool(self.success)
-
 
13620
      oprot.writeFieldEnd()
-
 
13621
    oprot.writeFieldStop()
-
 
13622
    oprot.writeStructEnd()
-
 
13623
 
-
 
13624
  def validate(self):
-
 
13625
    return
-
 
13626
 
-
 
13627
 
-
 
13628
  def __repr__(self):
-
 
13629
    L = ['%s=%r' % (key, value)
-
 
13630
      for key, value in self.__dict__.iteritems()]
-
 
13631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13632
 
-
 
13633
  def __eq__(self, other):
-
 
13634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13635
 
-
 
13636
  def __ne__(self, other):
-
 
13637
    return not (self == other)
-
 
13638
 
-
 
13639
class cancelInsurance_args:
-
 
13640
  """
-
 
13641
  Attributes:
-
 
13642
   - cartId
-
 
13643
  """
-
 
13644
 
-
 
13645
  thrift_spec = (
-
 
13646
    None, # 0
-
 
13647
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
13648
  )
-
 
13649
 
-
 
13650
  def __init__(self, cartId=None,):
-
 
13651
    self.cartId = cartId
-
 
13652
 
-
 
13653
  def read(self, iprot):
-
 
13654
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13655
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13656
      return
-
 
13657
    iprot.readStructBegin()
-
 
13658
    while True:
-
 
13659
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13660
      if ftype == TType.STOP:
-
 
13661
        break
-
 
13662
      if fid == 1:
-
 
13663
        if ftype == TType.I64:
-
 
13664
          self.cartId = iprot.readI64();
-
 
13665
        else:
-
 
13666
          iprot.skip(ftype)
-
 
13667
      else:
-
 
13668
        iprot.skip(ftype)
-
 
13669
      iprot.readFieldEnd()
-
 
13670
    iprot.readStructEnd()
-
 
13671
 
-
 
13672
  def write(self, oprot):
-
 
13673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13675
      return
-
 
13676
    oprot.writeStructBegin('cancelInsurance_args')
-
 
13677
    if self.cartId is not None:
-
 
13678
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
13679
      oprot.writeI64(self.cartId)
-
 
13680
      oprot.writeFieldEnd()
-
 
13681
    oprot.writeFieldStop()
-
 
13682
    oprot.writeStructEnd()
-
 
13683
 
-
 
13684
  def validate(self):
-
 
13685
    return
-
 
13686
 
-
 
13687
 
-
 
13688
  def __repr__(self):
-
 
13689
    L = ['%s=%r' % (key, value)
-
 
13690
      for key, value in self.__dict__.iteritems()]
-
 
13691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13692
 
-
 
13693
  def __eq__(self, other):
-
 
13694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13695
 
-
 
13696
  def __ne__(self, other):
-
 
13697
    return not (self == other)
-
 
13698
 
-
 
13699
class cancelInsurance_result:
-
 
13700
  """
-
 
13701
  Attributes:
-
 
13702
   - success
-
 
13703
  """
-
 
13704
 
-
 
13705
  thrift_spec = (
-
 
13706
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
13707
  )
-
 
13708
 
-
 
13709
  def __init__(self, success=None,):
-
 
13710
    self.success = success
-
 
13711
 
-
 
13712
  def read(self, iprot):
-
 
13713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13715
      return
-
 
13716
    iprot.readStructBegin()
-
 
13717
    while True:
-
 
13718
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13719
      if ftype == TType.STOP:
-
 
13720
        break
-
 
13721
      if fid == 0:
-
 
13722
        if ftype == TType.BOOL:
-
 
13723
          self.success = iprot.readBool();
-
 
13724
        else:
-
 
13725
          iprot.skip(ftype)
-
 
13726
      else:
-
 
13727
        iprot.skip(ftype)
-
 
13728
      iprot.readFieldEnd()
-
 
13729
    iprot.readStructEnd()
-
 
13730
 
-
 
13731
  def write(self, oprot):
-
 
13732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13734
      return
-
 
13735
    oprot.writeStructBegin('cancelInsurance_result')
-
 
13736
    if self.success is not None:
-
 
13737
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
13738
      oprot.writeBool(self.success)
-
 
13739
      oprot.writeFieldEnd()
-
 
13740
    oprot.writeFieldStop()
-
 
13741
    oprot.writeStructEnd()
-
 
13742
 
-
 
13743
  def validate(self):
-
 
13744
    return
-
 
13745
 
-
 
13746
 
-
 
13747
  def __repr__(self):
-
 
13748
    L = ['%s=%r' % (key, value)
-
 
13749
      for key, value in self.__dict__.iteritems()]
-
 
13750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13751
 
-
 
13752
  def __eq__(self, other):
-
 
13753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13754
 
-
 
13755
  def __ne__(self, other):
-
 
13756
    return not (self == other)
-
 
13757
 
-
 
13758
class storeInsuranceSpecificDetails_args:
-
 
13759
  """
-
 
13760
  Attributes:
-
 
13761
   - addressId
-
 
13762
   - dob
-
 
13763
   - guardianName
-
 
13764
  """
-
 
13765
 
-
 
13766
  thrift_spec = (
-
 
13767
    None, # 0
-
 
13768
    (1, TType.I64, 'addressId', None, None, ), # 1
-
 
13769
    (2, TType.STRING, 'dob', None, None, ), # 2
-
 
13770
    (3, TType.STRING, 'guardianName', None, None, ), # 3
-
 
13771
  )
-
 
13772
 
-
 
13773
  def __init__(self, addressId=None, dob=None, guardianName=None,):
-
 
13774
    self.addressId = addressId
-
 
13775
    self.dob = dob
-
 
13776
    self.guardianName = guardianName
-
 
13777
 
-
 
13778
  def read(self, iprot):
-
 
13779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13781
      return
-
 
13782
    iprot.readStructBegin()
-
 
13783
    while True:
-
 
13784
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13785
      if ftype == TType.STOP:
-
 
13786
        break
-
 
13787
      if fid == 1:
-
 
13788
        if ftype == TType.I64:
-
 
13789
          self.addressId = iprot.readI64();
-
 
13790
        else:
-
 
13791
          iprot.skip(ftype)
-
 
13792
      elif fid == 2:
-
 
13793
        if ftype == TType.STRING:
-
 
13794
          self.dob = iprot.readString();
-
 
13795
        else:
-
 
13796
          iprot.skip(ftype)
-
 
13797
      elif fid == 3:
-
 
13798
        if ftype == TType.STRING:
-
 
13799
          self.guardianName = iprot.readString();
-
 
13800
        else:
-
 
13801
          iprot.skip(ftype)
-
 
13802
      else:
-
 
13803
        iprot.skip(ftype)
-
 
13804
      iprot.readFieldEnd()
-
 
13805
    iprot.readStructEnd()
-
 
13806
 
-
 
13807
  def write(self, oprot):
-
 
13808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13810
      return
-
 
13811
    oprot.writeStructBegin('storeInsuranceSpecificDetails_args')
-
 
13812
    if self.addressId is not None:
-
 
13813
      oprot.writeFieldBegin('addressId', TType.I64, 1)
-
 
13814
      oprot.writeI64(self.addressId)
-
 
13815
      oprot.writeFieldEnd()
-
 
13816
    if self.dob is not None:
-
 
13817
      oprot.writeFieldBegin('dob', TType.STRING, 2)
-
 
13818
      oprot.writeString(self.dob)
-
 
13819
      oprot.writeFieldEnd()
-
 
13820
    if self.guardianName is not None:
-
 
13821
      oprot.writeFieldBegin('guardianName', TType.STRING, 3)
-
 
13822
      oprot.writeString(self.guardianName)
-
 
13823
      oprot.writeFieldEnd()
-
 
13824
    oprot.writeFieldStop()
-
 
13825
    oprot.writeStructEnd()
-
 
13826
 
-
 
13827
  def validate(self):
-
 
13828
    return
-
 
13829
 
-
 
13830
 
-
 
13831
  def __repr__(self):
-
 
13832
    L = ['%s=%r' % (key, value)
-
 
13833
      for key, value in self.__dict__.iteritems()]
-
 
13834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13835
 
-
 
13836
  def __eq__(self, other):
-
 
13837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13838
 
-
 
13839
  def __ne__(self, other):
-
 
13840
    return not (self == other)
-
 
13841
 
-
 
13842
class storeInsuranceSpecificDetails_result:
-
 
13843
  """
-
 
13844
  Attributes:
-
 
13845
   - success
-
 
13846
  """
-
 
13847
 
-
 
13848
  thrift_spec = (
-
 
13849
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
13850
  )
-
 
13851
 
-
 
13852
  def __init__(self, success=None,):
-
 
13853
    self.success = success
-
 
13854
 
-
 
13855
  def read(self, iprot):
-
 
13856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13858
      return
-
 
13859
    iprot.readStructBegin()
-
 
13860
    while True:
-
 
13861
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13862
      if ftype == TType.STOP:
-
 
13863
        break
-
 
13864
      if fid == 0:
-
 
13865
        if ftype == TType.BOOL:
-
 
13866
          self.success = iprot.readBool();
-
 
13867
        else:
-
 
13868
          iprot.skip(ftype)
-
 
13869
      else:
-
 
13870
        iprot.skip(ftype)
-
 
13871
      iprot.readFieldEnd()
-
 
13872
    iprot.readStructEnd()
-
 
13873
 
-
 
13874
  def write(self, oprot):
-
 
13875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13877
      return
-
 
13878
    oprot.writeStructBegin('storeInsuranceSpecificDetails_result')
-
 
13879
    if self.success is not None:
-
 
13880
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
13881
      oprot.writeBool(self.success)
-
 
13882
      oprot.writeFieldEnd()
-
 
13883
    oprot.writeFieldStop()
-
 
13884
    oprot.writeStructEnd()
-
 
13885
 
-
 
13886
  def validate(self):
-
 
13887
    return
-
 
13888
 
-
 
13889
 
-
 
13890
  def __repr__(self):
-
 
13891
    L = ['%s=%r' % (key, value)
-
 
13892
      for key, value in self.__dict__.iteritems()]
-
 
13893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13894
 
-
 
13895
  def __eq__(self, other):
-
 
13896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13897
 
-
 
13898
  def __ne__(self, other):
-
 
13899
    return not (self == other)
-
 
13900
 
-
 
13901
class isInsuranceDetailPresent_args:
-
 
13902
  """
-
 
13903
  Attributes:
-
 
13904
   - addressId
-
 
13905
  """
-
 
13906
 
-
 
13907
  thrift_spec = (
-
 
13908
    None, # 0
-
 
13909
    (1, TType.I64, 'addressId', None, None, ), # 1
-
 
13910
  )
-
 
13911
 
-
 
13912
  def __init__(self, addressId=None,):
-
 
13913
    self.addressId = addressId
-
 
13914
 
-
 
13915
  def read(self, iprot):
-
 
13916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13918
      return
-
 
13919
    iprot.readStructBegin()
-
 
13920
    while True:
-
 
13921
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13922
      if ftype == TType.STOP:
-
 
13923
        break
-
 
13924
      if fid == 1:
-
 
13925
        if ftype == TType.I64:
-
 
13926
          self.addressId = iprot.readI64();
-
 
13927
        else:
-
 
13928
          iprot.skip(ftype)
-
 
13929
      else:
-
 
13930
        iprot.skip(ftype)
-
 
13931
      iprot.readFieldEnd()
-
 
13932
    iprot.readStructEnd()
-
 
13933
 
-
 
13934
  def write(self, oprot):
-
 
13935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13937
      return
-
 
13938
    oprot.writeStructBegin('isInsuranceDetailPresent_args')
-
 
13939
    if self.addressId is not None:
-
 
13940
      oprot.writeFieldBegin('addressId', TType.I64, 1)
-
 
13941
      oprot.writeI64(self.addressId)
-
 
13942
      oprot.writeFieldEnd()
-
 
13943
    oprot.writeFieldStop()
-
 
13944
    oprot.writeStructEnd()
-
 
13945
 
-
 
13946
  def validate(self):
-
 
13947
    return
-
 
13948
 
-
 
13949
 
-
 
13950
  def __repr__(self):
-
 
13951
    L = ['%s=%r' % (key, value)
-
 
13952
      for key, value in self.__dict__.iteritems()]
-
 
13953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13954
 
-
 
13955
  def __eq__(self, other):
-
 
13956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13957
 
-
 
13958
  def __ne__(self, other):
-
 
13959
    return not (self == other)
-
 
13960
 
-
 
13961
class isInsuranceDetailPresent_result:
-
 
13962
  """
-
 
13963
  Attributes:
-
 
13964
   - success
-
 
13965
  """
-
 
13966
 
-
 
13967
  thrift_spec = (
-
 
13968
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
13969
  )
-
 
13970
 
-
 
13971
  def __init__(self, success=None,):
-
 
13972
    self.success = success
-
 
13973
 
-
 
13974
  def read(self, iprot):
-
 
13975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13977
      return
-
 
13978
    iprot.readStructBegin()
-
 
13979
    while True:
-
 
13980
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13981
      if ftype == TType.STOP:
-
 
13982
        break
-
 
13983
      if fid == 0:
-
 
13984
        if ftype == TType.BOOL:
-
 
13985
          self.success = iprot.readBool();
-
 
13986
        else:
-
 
13987
          iprot.skip(ftype)
-
 
13988
      else:
-
 
13989
        iprot.skip(ftype)
-
 
13990
      iprot.readFieldEnd()
-
 
13991
    iprot.readStructEnd()
-
 
13992
 
-
 
13993
  def write(self, oprot):
-
 
13994
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13995
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13996
      return
-
 
13997
    oprot.writeStructBegin('isInsuranceDetailPresent_result')
-
 
13998
    if self.success is not None:
-
 
13999
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
14000
      oprot.writeBool(self.success)
-
 
14001
      oprot.writeFieldEnd()
-
 
14002
    oprot.writeFieldStop()
-
 
14003
    oprot.writeStructEnd()
-
 
14004
 
-
 
14005
  def validate(self):
13258
    return
14006
    return
13259
 
14007
 
13260
 
14008
 
13261
  def __repr__(self):
14009
  def __repr__(self):
13262
    L = ['%s=%r' % (key, value)
14010
    L = ['%s=%r' % (key, value)