Subversion Repositories SmartDukaan

Rev

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

Rev 7746 Rev 9299
Line 289... Line 289...
289
     * Mark a cart lineitem as insured. Returns true/false.
289
     * Mark a cart lineitem as insured. Returns true/false.
290
     * 
290
     * 
291
     * @param itemId
291
     * @param itemId
292
     * @param cartId
292
     * @param cartId
293
     * @param toInsure
293
     * @param toInsure
-
 
294
     * @param insurerType
294
     */
295
     */
295
    public boolean insureItem(long itemId, long cartId, boolean toInsure) throws org.apache.thrift.TException;
296
    public boolean insureItem(long itemId, long cartId, boolean toInsure, int insurerType) throws org.apache.thrift.TException;
296
 
297
 
297
    /**
298
    /**
298
     * Cancel insurance for all items in the cart
299
     * Cancel insurance for all items in the cart
299
     * 
300
     * 
300
     * @param cartId
301
     * @param cartId
Line 462... Line 463...
462
 
463
 
463
    public void showCODOption(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.showCODOption_call> resultHandler) throws org.apache.thrift.TException;
464
    public void showCODOption(long cartId, long sourceId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.showCODOption_call> resultHandler) throws org.apache.thrift.TException;
464
 
465
 
465
    public void getUserEmails(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserEmails_call> resultHandler) throws org.apache.thrift.TException;
466
    public void getUserEmails(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserEmails_call> resultHandler) throws org.apache.thrift.TException;
466
 
467
 
467
    public void insureItem(long itemId, long cartId, boolean toInsure, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insureItem_call> resultHandler) throws org.apache.thrift.TException;
468
    public void insureItem(long itemId, long cartId, boolean toInsure, int insurerType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insureItem_call> resultHandler) throws org.apache.thrift.TException;
468
 
469
 
469
    public void cancelInsurance(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.cancelInsurance_call> resultHandler) throws org.apache.thrift.TException;
470
    public void cancelInsurance(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.cancelInsurance_call> resultHandler) throws org.apache.thrift.TException;
470
 
471
 
471
    public void storeInsuranceSpecificDetails(long addressId, String dob, String guardianName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeInsuranceSpecificDetails_call> resultHandler) throws org.apache.thrift.TException;
472
    public void storeInsuranceSpecificDetails(long addressId, String dob, String guardianName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeInsuranceSpecificDetails_call> resultHandler) throws org.apache.thrift.TException;
472
 
473
 
Line 2220... Line 2221...
2220
        return result.success;
2221
        return result.success;
2221
      }
2222
      }
2222
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2223
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2223
    }
2224
    }
2224
 
2225
 
2225
    public boolean insureItem(long itemId, long cartId, boolean toInsure) throws org.apache.thrift.TException
2226
    public boolean insureItem(long itemId, long cartId, boolean toInsure, int insurerType) throws org.apache.thrift.TException
2226
    {
2227
    {
2227
      send_insureItem(itemId, cartId, toInsure);
2228
      send_insureItem(itemId, cartId, toInsure, insurerType);
2228
      return recv_insureItem();
2229
      return recv_insureItem();
2229
    }
2230
    }
2230
 
2231
 
2231
    public void send_insureItem(long itemId, long cartId, boolean toInsure) throws org.apache.thrift.TException
2232
    public void send_insureItem(long itemId, long cartId, boolean toInsure, int insurerType) throws org.apache.thrift.TException
2232
    {
2233
    {
2233
      insureItem_args args = new insureItem_args();
2234
      insureItem_args args = new insureItem_args();
2234
      args.setItemId(itemId);
2235
      args.setItemId(itemId);
2235
      args.setCartId(cartId);
2236
      args.setCartId(cartId);
2236
      args.setToInsure(toInsure);
2237
      args.setToInsure(toInsure);
-
 
2238
      args.setInsurerType(insurerType);
2237
      sendBase("insureItem", args);
2239
      sendBase("insureItem", args);
2238
    }
2240
    }
2239
 
2241
 
2240
    public boolean recv_insureItem() throws org.apache.thrift.TException
2242
    public boolean recv_insureItem() throws org.apache.thrift.TException
2241
    {
2243
    {
Line 4667... Line 4669...
4667
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4669
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4668
        return (new Client(prot)).recv_getUserEmails();
4670
        return (new Client(prot)).recv_getUserEmails();
4669
      }
4671
      }
4670
    }
4672
    }
4671
 
4673
 
4672
    public void insureItem(long itemId, long cartId, boolean toInsure, org.apache.thrift.async.AsyncMethodCallback<insureItem_call> resultHandler) throws org.apache.thrift.TException {
4674
    public void insureItem(long itemId, long cartId, boolean toInsure, int insurerType, org.apache.thrift.async.AsyncMethodCallback<insureItem_call> resultHandler) throws org.apache.thrift.TException {
4673
      checkReady();
4675
      checkReady();
4674
      insureItem_call method_call = new insureItem_call(itemId, cartId, toInsure, resultHandler, this, ___protocolFactory, ___transport);
4676
      insureItem_call method_call = new insureItem_call(itemId, cartId, toInsure, insurerType, resultHandler, this, ___protocolFactory, ___transport);
4675
      this.___currentMethod = method_call;
4677
      this.___currentMethod = method_call;
4676
      ___manager.call(method_call);
4678
      ___manager.call(method_call);
4677
    }
4679
    }
4678
 
4680
 
4679
    public static class insureItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4681
    public static class insureItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4680
      private long itemId;
4682
      private long itemId;
4681
      private long cartId;
4683
      private long cartId;
4682
      private boolean toInsure;
4684
      private boolean toInsure;
-
 
4685
      private int insurerType;
4683
      public insureItem_call(long itemId, long cartId, boolean toInsure, org.apache.thrift.async.AsyncMethodCallback<insureItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4686
      public insureItem_call(long itemId, long cartId, boolean toInsure, int insurerType, org.apache.thrift.async.AsyncMethodCallback<insureItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4684
        super(client, protocolFactory, transport, resultHandler, false);
4687
        super(client, protocolFactory, transport, resultHandler, false);
4685
        this.itemId = itemId;
4688
        this.itemId = itemId;
4686
        this.cartId = cartId;
4689
        this.cartId = cartId;
4687
        this.toInsure = toInsure;
4690
        this.toInsure = toInsure;
-
 
4691
        this.insurerType = insurerType;
4688
      }
4692
      }
4689
 
4693
 
4690
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4694
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4691
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insureItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4695
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insureItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4692
        insureItem_args args = new insureItem_args();
4696
        insureItem_args args = new insureItem_args();
4693
        args.setItemId(itemId);
4697
        args.setItemId(itemId);
4694
        args.setCartId(cartId);
4698
        args.setCartId(cartId);
4695
        args.setToInsure(toInsure);
4699
        args.setToInsure(toInsure);
-
 
4700
        args.setInsurerType(insurerType);
4696
        args.write(prot);
4701
        args.write(prot);
4697
        prot.writeMessageEnd();
4702
        prot.writeMessageEnd();
4698
      }
4703
      }
4699
 
4704
 
4700
      public boolean getResult() throws org.apache.thrift.TException {
4705
      public boolean getResult() throws org.apache.thrift.TException {
Line 6266... Line 6271...
6266
        return new insureItem_args();
6271
        return new insureItem_args();
6267
      }
6272
      }
6268
 
6273
 
6269
      protected insureItem_result getResult(I iface, insureItem_args args) throws org.apache.thrift.TException {
6274
      protected insureItem_result getResult(I iface, insureItem_args args) throws org.apache.thrift.TException {
6270
        insureItem_result result = new insureItem_result();
6275
        insureItem_result result = new insureItem_result();
6271
        result.success = iface.insureItem(args.itemId, args.cartId, args.toInsure);
6276
        result.success = iface.insureItem(args.itemId, args.cartId, args.toInsure, args.insurerType);
6272
        result.setSuccessIsSet(true);
6277
        result.setSuccessIsSet(true);
6273
        return result;
6278
        return result;
6274
      }
6279
      }
6275
    }
6280
    }
6276
 
6281
 
Line 54854... Line 54859...
54854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insureItem_args");
54859
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insureItem_args");
54855
 
54860
 
54856
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
54861
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
54857
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)2);
54862
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)2);
54858
    private static final org.apache.thrift.protocol.TField TO_INSURE_FIELD_DESC = new org.apache.thrift.protocol.TField("toInsure", org.apache.thrift.protocol.TType.BOOL, (short)3);
54863
    private static final org.apache.thrift.protocol.TField TO_INSURE_FIELD_DESC = new org.apache.thrift.protocol.TField("toInsure", org.apache.thrift.protocol.TType.BOOL, (short)3);
-
 
54864
    private static final org.apache.thrift.protocol.TField INSURER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("insurerType", org.apache.thrift.protocol.TType.I32, (short)4);
54859
 
54865
 
54860
    private long itemId; // required
54866
    private long itemId; // required
54861
    private long cartId; // required
54867
    private long cartId; // required
54862
    private boolean toInsure; // required
54868
    private boolean toInsure; // required
-
 
54869
    private int insurerType; // required
54863
 
54870
 
54864
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54871
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54865
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54872
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54866
      ITEM_ID((short)1, "itemId"),
54873
      ITEM_ID((short)1, "itemId"),
54867
      CART_ID((short)2, "cartId"),
54874
      CART_ID((short)2, "cartId"),
54868
      TO_INSURE((short)3, "toInsure");
54875
      TO_INSURE((short)3, "toInsure"),
-
 
54876
      INSURER_TYPE((short)4, "insurerType");
54869
 
54877
 
54870
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54878
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54871
 
54879
 
54872
      static {
54880
      static {
54873
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54881
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 54884... Line 54892...
54884
            return ITEM_ID;
54892
            return ITEM_ID;
54885
          case 2: // CART_ID
54893
          case 2: // CART_ID
54886
            return CART_ID;
54894
            return CART_ID;
54887
          case 3: // TO_INSURE
54895
          case 3: // TO_INSURE
54888
            return TO_INSURE;
54896
            return TO_INSURE;
-
 
54897
          case 4: // INSURER_TYPE
-
 
54898
            return INSURER_TYPE;
54889
          default:
54899
          default:
54890
            return null;
54900
            return null;
54891
        }
54901
        }
54892
      }
54902
      }
54893
 
54903
 
Line 54927... Line 54937...
54927
 
54937
 
54928
    // isset id assignments
54938
    // isset id assignments
54929
    private static final int __ITEMID_ISSET_ID = 0;
54939
    private static final int __ITEMID_ISSET_ID = 0;
54930
    private static final int __CARTID_ISSET_ID = 1;
54940
    private static final int __CARTID_ISSET_ID = 1;
54931
    private static final int __TOINSURE_ISSET_ID = 2;
54941
    private static final int __TOINSURE_ISSET_ID = 2;
-
 
54942
    private static final int __INSURERTYPE_ISSET_ID = 3;
54932
    private BitSet __isset_bit_vector = new BitSet(3);
54943
    private BitSet __isset_bit_vector = new BitSet(4);
54933
 
54944
 
54934
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54945
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54935
    static {
54946
    static {
54936
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54947
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54937
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54948
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54938
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54949
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54939
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54950
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54940
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54951
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54941
      tmpMap.put(_Fields.TO_INSURE, new org.apache.thrift.meta_data.FieldMetaData("toInsure", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54952
      tmpMap.put(_Fields.TO_INSURE, new org.apache.thrift.meta_data.FieldMetaData("toInsure", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54942
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
54953
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
54954
      tmpMap.put(_Fields.INSURER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("insurerType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
54955
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
54943
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54956
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54944
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insureItem_args.class, metaDataMap);
54957
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insureItem_args.class, metaDataMap);
54945
    }
54958
    }
54946
 
54959
 
54947
    public insureItem_args() {
54960
    public insureItem_args() {
54948
    }
54961
    }
54949
 
54962
 
54950
    public insureItem_args(
54963
    public insureItem_args(
54951
      long itemId,
54964
      long itemId,
54952
      long cartId,
54965
      long cartId,
54953
      boolean toInsure)
54966
      boolean toInsure,
-
 
54967
      int insurerType)
54954
    {
54968
    {
54955
      this();
54969
      this();
54956
      this.itemId = itemId;
54970
      this.itemId = itemId;
54957
      setItemIdIsSet(true);
54971
      setItemIdIsSet(true);
54958
      this.cartId = cartId;
54972
      this.cartId = cartId;
54959
      setCartIdIsSet(true);
54973
      setCartIdIsSet(true);
54960
      this.toInsure = toInsure;
54974
      this.toInsure = toInsure;
54961
      setToInsureIsSet(true);
54975
      setToInsureIsSet(true);
-
 
54976
      this.insurerType = insurerType;
-
 
54977
      setInsurerTypeIsSet(true);
54962
    }
54978
    }
54963
 
54979
 
54964
    /**
54980
    /**
54965
     * Performs a deep copy on <i>other</i>.
54981
     * Performs a deep copy on <i>other</i>.
54966
     */
54982
     */
Line 54968... Line 54984...
54968
      __isset_bit_vector.clear();
54984
      __isset_bit_vector.clear();
54969
      __isset_bit_vector.or(other.__isset_bit_vector);
54985
      __isset_bit_vector.or(other.__isset_bit_vector);
54970
      this.itemId = other.itemId;
54986
      this.itemId = other.itemId;
54971
      this.cartId = other.cartId;
54987
      this.cartId = other.cartId;
54972
      this.toInsure = other.toInsure;
54988
      this.toInsure = other.toInsure;
-
 
54989
      this.insurerType = other.insurerType;
54973
    }
54990
    }
54974
 
54991
 
54975
    public insureItem_args deepCopy() {
54992
    public insureItem_args deepCopy() {
54976
      return new insureItem_args(this);
54993
      return new insureItem_args(this);
54977
    }
54994
    }
Line 54982... Line 54999...
54982
      this.itemId = 0;
54999
      this.itemId = 0;
54983
      setCartIdIsSet(false);
55000
      setCartIdIsSet(false);
54984
      this.cartId = 0;
55001
      this.cartId = 0;
54985
      setToInsureIsSet(false);
55002
      setToInsureIsSet(false);
54986
      this.toInsure = false;
55003
      this.toInsure = false;
-
 
55004
      setInsurerTypeIsSet(false);
-
 
55005
      this.insurerType = 0;
54987
    }
55006
    }
54988
 
55007
 
54989
    public long getItemId() {
55008
    public long getItemId() {
54990
      return this.itemId;
55009
      return this.itemId;
54991
    }
55010
    }
Line 55050... Line 55069...
55050
 
55069
 
55051
    public void setToInsureIsSet(boolean value) {
55070
    public void setToInsureIsSet(boolean value) {
55052
      __isset_bit_vector.set(__TOINSURE_ISSET_ID, value);
55071
      __isset_bit_vector.set(__TOINSURE_ISSET_ID, value);
55053
    }
55072
    }
55054
 
55073
 
-
 
55074
    public int getInsurerType() {
-
 
55075
      return this.insurerType;
-
 
55076
    }
-
 
55077
 
-
 
55078
    public void setInsurerType(int insurerType) {
-
 
55079
      this.insurerType = insurerType;
-
 
55080
      setInsurerTypeIsSet(true);
-
 
55081
    }
-
 
55082
 
-
 
55083
    public void unsetInsurerType() {
-
 
55084
      __isset_bit_vector.clear(__INSURERTYPE_ISSET_ID);
-
 
55085
    }
-
 
55086
 
-
 
55087
    /** Returns true if field insurerType is set (has been assigned a value) and false otherwise */
-
 
55088
    public boolean isSetInsurerType() {
-
 
55089
      return __isset_bit_vector.get(__INSURERTYPE_ISSET_ID);
-
 
55090
    }
-
 
55091
 
-
 
55092
    public void setInsurerTypeIsSet(boolean value) {
-
 
55093
      __isset_bit_vector.set(__INSURERTYPE_ISSET_ID, value);
-
 
55094
    }
-
 
55095
 
55055
    public void setFieldValue(_Fields field, Object value) {
55096
    public void setFieldValue(_Fields field, Object value) {
55056
      switch (field) {
55097
      switch (field) {
55057
      case ITEM_ID:
55098
      case ITEM_ID:
55058
        if (value == null) {
55099
        if (value == null) {
55059
          unsetItemId();
55100
          unsetItemId();
Line 55076... Line 55117...
55076
        } else {
55117
        } else {
55077
          setToInsure((Boolean)value);
55118
          setToInsure((Boolean)value);
55078
        }
55119
        }
55079
        break;
55120
        break;
55080
 
55121
 
-
 
55122
      case INSURER_TYPE:
-
 
55123
        if (value == null) {
-
 
55124
          unsetInsurerType();
-
 
55125
        } else {
-
 
55126
          setInsurerType((Integer)value);
-
 
55127
        }
-
 
55128
        break;
-
 
55129
 
55081
      }
55130
      }
55082
    }
55131
    }
55083
 
55132
 
55084
    public Object getFieldValue(_Fields field) {
55133
    public Object getFieldValue(_Fields field) {
55085
      switch (field) {
55134
      switch (field) {
Line 55090... Line 55139...
55090
        return Long.valueOf(getCartId());
55139
        return Long.valueOf(getCartId());
55091
 
55140
 
55092
      case TO_INSURE:
55141
      case TO_INSURE:
55093
        return Boolean.valueOf(isToInsure());
55142
        return Boolean.valueOf(isToInsure());
55094
 
55143
 
-
 
55144
      case INSURER_TYPE:
-
 
55145
        return Integer.valueOf(getInsurerType());
-
 
55146
 
55095
      }
55147
      }
55096
      throw new IllegalStateException();
55148
      throw new IllegalStateException();
55097
    }
55149
    }
55098
 
55150
 
55099
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55151
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 55107... Line 55159...
55107
        return isSetItemId();
55159
        return isSetItemId();
55108
      case CART_ID:
55160
      case CART_ID:
55109
        return isSetCartId();
55161
        return isSetCartId();
55110
      case TO_INSURE:
55162
      case TO_INSURE:
55111
        return isSetToInsure();
55163
        return isSetToInsure();
-
 
55164
      case INSURER_TYPE:
-
 
55165
        return isSetInsurerType();
55112
      }
55166
      }
55113
      throw new IllegalStateException();
55167
      throw new IllegalStateException();
55114
    }
55168
    }
55115
 
55169
 
55116
    @Override
55170
    @Override
Line 55151... Line 55205...
55151
          return false;
55205
          return false;
55152
        if (this.toInsure != that.toInsure)
55206
        if (this.toInsure != that.toInsure)
55153
          return false;
55207
          return false;
55154
      }
55208
      }
55155
 
55209
 
-
 
55210
      boolean this_present_insurerType = true;
-
 
55211
      boolean that_present_insurerType = true;
-
 
55212
      if (this_present_insurerType || that_present_insurerType) {
-
 
55213
        if (!(this_present_insurerType && that_present_insurerType))
-
 
55214
          return false;
-
 
55215
        if (this.insurerType != that.insurerType)
-
 
55216
          return false;
-
 
55217
      }
-
 
55218
 
55156
      return true;
55219
      return true;
55157
    }
55220
    }
55158
 
55221
 
55159
    @Override
55222
    @Override
55160
    public int hashCode() {
55223
    public int hashCode() {
Line 55197... Line 55260...
55197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toInsure, typedOther.toInsure);
55260
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toInsure, typedOther.toInsure);
55198
        if (lastComparison != 0) {
55261
        if (lastComparison != 0) {
55199
          return lastComparison;
55262
          return lastComparison;
55200
        }
55263
        }
55201
      }
55264
      }
-
 
55265
      lastComparison = Boolean.valueOf(isSetInsurerType()).compareTo(typedOther.isSetInsurerType());
-
 
55266
      if (lastComparison != 0) {
-
 
55267
        return lastComparison;
-
 
55268
      }
-
 
55269
      if (isSetInsurerType()) {
-
 
55270
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurerType, typedOther.insurerType);
-
 
55271
        if (lastComparison != 0) {
-
 
55272
          return lastComparison;
-
 
55273
        }
-
 
55274
      }
55202
      return 0;
55275
      return 0;
55203
    }
55276
    }
55204
 
55277
 
55205
    public _Fields fieldForId(int fieldId) {
55278
    public _Fields fieldForId(int fieldId) {
55206
      return _Fields.findByThriftId(fieldId);
55279
      return _Fields.findByThriftId(fieldId);
Line 55238... Line 55311...
55238
              setToInsureIsSet(true);
55311
              setToInsureIsSet(true);
55239
            } else { 
55312
            } else { 
55240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55313
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55241
            }
55314
            }
55242
            break;
55315
            break;
-
 
55316
          case 4: // INSURER_TYPE
-
 
55317
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
55318
              this.insurerType = iprot.readI32();
-
 
55319
              setInsurerTypeIsSet(true);
-
 
55320
            } else { 
-
 
55321
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55322
            }
-
 
55323
            break;
55243
          default:
55324
          default:
55244
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55325
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55245
        }
55326
        }
55246
        iprot.readFieldEnd();
55327
        iprot.readFieldEnd();
55247
      }
55328
      }
Line 55260... Line 55341...
55260
      oprot.writeI64(this.cartId);
55341
      oprot.writeI64(this.cartId);
55261
      oprot.writeFieldEnd();
55342
      oprot.writeFieldEnd();
55262
      oprot.writeFieldBegin(TO_INSURE_FIELD_DESC);
55343
      oprot.writeFieldBegin(TO_INSURE_FIELD_DESC);
55263
      oprot.writeBool(this.toInsure);
55344
      oprot.writeBool(this.toInsure);
55264
      oprot.writeFieldEnd();
55345
      oprot.writeFieldEnd();
-
 
55346
      oprot.writeFieldBegin(INSURER_TYPE_FIELD_DESC);
-
 
55347
      oprot.writeI32(this.insurerType);
-
 
55348
      oprot.writeFieldEnd();
55265
      oprot.writeFieldStop();
55349
      oprot.writeFieldStop();
55266
      oprot.writeStructEnd();
55350
      oprot.writeStructEnd();
55267
    }
55351
    }
55268
 
55352
 
55269
    @Override
55353
    @Override
Line 55280... Line 55364...
55280
      first = false;
55364
      first = false;
55281
      if (!first) sb.append(", ");
55365
      if (!first) sb.append(", ");
55282
      sb.append("toInsure:");
55366
      sb.append("toInsure:");
55283
      sb.append(this.toInsure);
55367
      sb.append(this.toInsure);
55284
      first = false;
55368
      first = false;
-
 
55369
      if (!first) sb.append(", ");
-
 
55370
      sb.append("insurerType:");
-
 
55371
      sb.append(this.insurerType);
-
 
55372
      first = false;
55285
      sb.append(")");
55373
      sb.append(")");
55286
      return sb.toString();
55374
      return sb.toString();
55287
    }
55375
    }
55288
 
55376
 
55289
    public void validate() throws org.apache.thrift.TException {
55377
    public void validate() throws org.apache.thrift.TException {