Subversion Repositories SmartDukaan

Rev

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

Rev 19421 Rev 19474
Line 156... Line 156...
156
     * @param destPincode
156
     * @param destPincode
157
     * @param price
157
     * @param price
158
     */
158
     */
159
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException;
159
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException;
160
 
160
 
161
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId) throws LogisticsServiceException, org.apache.thrift.TException;
161
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws LogisticsServiceException, org.apache.thrift.TException;
162
 
162
 
163
  }
163
  }
164
 
164
 
165
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
165
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
166
 
166
 
Line 212... Line 212...
212
 
212
 
213
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
213
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
214
 
214
 
215
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException;
215
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException;
216
 
216
 
217
    public void getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCostingAndDeliveryEstimateForPincode_call> resultHandler) throws org.apache.thrift.TException;
217
    public void getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCostingAndDeliveryEstimateForPincode_call> resultHandler) throws org.apache.thrift.TException;
218
 
218
 
219
  }
219
  }
220
 
220
 
221
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
221
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
222
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
222
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
Line 867... Line 867...
867
        return result.success;
867
        return result.success;
868
      }
868
      }
869
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLocationInfoMap failed: unknown result");
869
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLocationInfoMap failed: unknown result");
870
    }
870
    }
871
 
871
 
872
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId) throws LogisticsServiceException, org.apache.thrift.TException
872
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws LogisticsServiceException, org.apache.thrift.TException
873
    {
873
    {
874
      send_getCostingAndDeliveryEstimateForPincode(pincode, transactionAmount, isCod, weight, billingWarehouseId);
874
      send_getCostingAndDeliveryEstimateForPincode(pincode, transactionAmount, isCod, weight, billingWarehouseId, isCompleteTxn);
875
      return recv_getCostingAndDeliveryEstimateForPincode();
875
      return recv_getCostingAndDeliveryEstimateForPincode();
876
    }
876
    }
877
 
877
 
878
    public void send_getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId) throws org.apache.thrift.TException
878
    public void send_getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws org.apache.thrift.TException
879
    {
879
    {
880
      getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
880
      getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
881
      args.setPincode(pincode);
881
      args.setPincode(pincode);
882
      args.setTransactionAmount(transactionAmount);
882
      args.setTransactionAmount(transactionAmount);
883
      args.setIsCod(isCod);
883
      args.setIsCod(isCod);
884
      args.setWeight(weight);
884
      args.setWeight(weight);
885
      args.setBillingWarehouseId(billingWarehouseId);
885
      args.setBillingWarehouseId(billingWarehouseId);
-
 
886
      args.setIsCompleteTxn(isCompleteTxn);
886
      sendBase("getCostingAndDeliveryEstimateForPincode", args);
887
      sendBase("getCostingAndDeliveryEstimateForPincode", args);
887
    }
888
    }
888
 
889
 
889
    public DeliveryEstimateAndCosting recv_getCostingAndDeliveryEstimateForPincode() throws LogisticsServiceException, org.apache.thrift.TException
890
    public DeliveryEstimateAndCosting recv_getCostingAndDeliveryEstimateForPincode() throws LogisticsServiceException, org.apache.thrift.TException
890
    {
891
    {
Line 1811... Line 1812...
1811
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1812
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1812
        return (new Client(prot)).recv_getLocationInfoMap();
1813
        return (new Client(prot)).recv_getLocationInfoMap();
1813
      }
1814
      }
1814
    }
1815
    }
1815
 
1816
 
1816
    public void getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getCostingAndDeliveryEstimateForPincode_call> resultHandler) throws org.apache.thrift.TException {
1817
    public void getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn, org.apache.thrift.async.AsyncMethodCallback<getCostingAndDeliveryEstimateForPincode_call> resultHandler) throws org.apache.thrift.TException {
1817
      checkReady();
1818
      checkReady();
1818
      getCostingAndDeliveryEstimateForPincode_call method_call = new getCostingAndDeliveryEstimateForPincode_call(pincode, transactionAmount, isCod, weight, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
1819
      getCostingAndDeliveryEstimateForPincode_call method_call = new getCostingAndDeliveryEstimateForPincode_call(pincode, transactionAmount, isCod, weight, billingWarehouseId, isCompleteTxn, resultHandler, this, ___protocolFactory, ___transport);
1819
      this.___currentMethod = method_call;
1820
      this.___currentMethod = method_call;
1820
      ___manager.call(method_call);
1821
      ___manager.call(method_call);
1821
    }
1822
    }
1822
 
1823
 
1823
    public static class getCostingAndDeliveryEstimateForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1824
    public static class getCostingAndDeliveryEstimateForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1824
      private String pincode;
1825
      private String pincode;
1825
      private double transactionAmount;
1826
      private double transactionAmount;
1826
      private boolean isCod;
1827
      private boolean isCod;
1827
      private double weight;
1828
      private double weight;
1828
      private long billingWarehouseId;
1829
      private long billingWarehouseId;
-
 
1830
      private boolean isCompleteTxn;
1829
      public getCostingAndDeliveryEstimateForPincode_call(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getCostingAndDeliveryEstimateForPincode_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 {
1831
      public getCostingAndDeliveryEstimateForPincode_call(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn, org.apache.thrift.async.AsyncMethodCallback<getCostingAndDeliveryEstimateForPincode_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 {
1830
        super(client, protocolFactory, transport, resultHandler, false);
1832
        super(client, protocolFactory, transport, resultHandler, false);
1831
        this.pincode = pincode;
1833
        this.pincode = pincode;
1832
        this.transactionAmount = transactionAmount;
1834
        this.transactionAmount = transactionAmount;
1833
        this.isCod = isCod;
1835
        this.isCod = isCod;
1834
        this.weight = weight;
1836
        this.weight = weight;
1835
        this.billingWarehouseId = billingWarehouseId;
1837
        this.billingWarehouseId = billingWarehouseId;
-
 
1838
        this.isCompleteTxn = isCompleteTxn;
1836
      }
1839
      }
1837
 
1840
 
1838
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1841
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1839
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCostingAndDeliveryEstimateForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1842
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCostingAndDeliveryEstimateForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1840
        getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
1843
        getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
1841
        args.setPincode(pincode);
1844
        args.setPincode(pincode);
1842
        args.setTransactionAmount(transactionAmount);
1845
        args.setTransactionAmount(transactionAmount);
1843
        args.setIsCod(isCod);
1846
        args.setIsCod(isCod);
1844
        args.setWeight(weight);
1847
        args.setWeight(weight);
1845
        args.setBillingWarehouseId(billingWarehouseId);
1848
        args.setBillingWarehouseId(billingWarehouseId);
-
 
1849
        args.setIsCompleteTxn(isCompleteTxn);
1846
        args.write(prot);
1850
        args.write(prot);
1847
        prot.writeMessageEnd();
1851
        prot.writeMessageEnd();
1848
      }
1852
      }
1849
 
1853
 
1850
      public DeliveryEstimateAndCosting getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1854
      public DeliveryEstimateAndCosting getResult() throws LogisticsServiceException, org.apache.thrift.TException {
Line 2362... Line 2366...
2362
      }
2366
      }
2363
 
2367
 
2364
      protected getCostingAndDeliveryEstimateForPincode_result getResult(I iface, getCostingAndDeliveryEstimateForPincode_args args) throws org.apache.thrift.TException {
2368
      protected getCostingAndDeliveryEstimateForPincode_result getResult(I iface, getCostingAndDeliveryEstimateForPincode_args args) throws org.apache.thrift.TException {
2365
        getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
2369
        getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
2366
        try {
2370
        try {
2367
          result.success = iface.getCostingAndDeliveryEstimateForPincode(args.pincode, args.transactionAmount, args.isCod, args.weight, args.billingWarehouseId);
2371
          result.success = iface.getCostingAndDeliveryEstimateForPincode(args.pincode, args.transactionAmount, args.isCod, args.weight, args.billingWarehouseId, args.isCompleteTxn);
2368
        } catch (LogisticsServiceException se) {
2372
        } catch (LogisticsServiceException se) {
2369
          result.se = se;
2373
          result.se = se;
2370
        }
2374
        }
2371
        return result;
2375
        return result;
2372
      }
2376
      }
Line 20986... Line 20990...
20986
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)1);
20990
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)1);
20987
    private static final org.apache.thrift.protocol.TField TRANSACTION_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
20991
    private static final org.apache.thrift.protocol.TField TRANSACTION_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
20988
    private static final org.apache.thrift.protocol.TField IS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("isCod", org.apache.thrift.protocol.TType.BOOL, (short)3);
20992
    private static final org.apache.thrift.protocol.TField IS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("isCod", org.apache.thrift.protocol.TType.BOOL, (short)3);
20989
    private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
20993
    private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
20990
    private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
20994
    private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
-
 
20995
    private static final org.apache.thrift.protocol.TField IS_COMPLETE_TXN_FIELD_DESC = new org.apache.thrift.protocol.TField("isCompleteTxn", org.apache.thrift.protocol.TType.BOOL, (short)6);
20991
 
20996
 
20992
    private String pincode; // required
20997
    private String pincode; // required
20993
    private double transactionAmount; // required
20998
    private double transactionAmount; // required
20994
    private boolean isCod; // required
20999
    private boolean isCod; // required
20995
    private double weight; // required
21000
    private double weight; // required
20996
    private long billingWarehouseId; // required
21001
    private long billingWarehouseId; // required
-
 
21002
    private boolean isCompleteTxn; // required
20997
 
21003
 
20998
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21004
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20999
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21005
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21000
      PINCODE((short)1, "pincode"),
21006
      PINCODE((short)1, "pincode"),
21001
      TRANSACTION_AMOUNT((short)2, "transactionAmount"),
21007
      TRANSACTION_AMOUNT((short)2, "transactionAmount"),
21002
      IS_COD((short)3, "isCod"),
21008
      IS_COD((short)3, "isCod"),
21003
      WEIGHT((short)4, "weight"),
21009
      WEIGHT((short)4, "weight"),
21004
      BILLING_WAREHOUSE_ID((short)5, "billingWarehouseId");
21010
      BILLING_WAREHOUSE_ID((short)5, "billingWarehouseId"),
-
 
21011
      IS_COMPLETE_TXN((short)6, "isCompleteTxn");
21005
 
21012
 
21006
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21013
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21007
 
21014
 
21008
      static {
21015
      static {
21009
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21016
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 21024... Line 21031...
21024
            return IS_COD;
21031
            return IS_COD;
21025
          case 4: // WEIGHT
21032
          case 4: // WEIGHT
21026
            return WEIGHT;
21033
            return WEIGHT;
21027
          case 5: // BILLING_WAREHOUSE_ID
21034
          case 5: // BILLING_WAREHOUSE_ID
21028
            return BILLING_WAREHOUSE_ID;
21035
            return BILLING_WAREHOUSE_ID;
-
 
21036
          case 6: // IS_COMPLETE_TXN
-
 
21037
            return IS_COMPLETE_TXN;
21029
          default:
21038
          default:
21030
            return null;
21039
            return null;
21031
        }
21040
        }
21032
      }
21041
      }
21033
 
21042
 
Line 21068... Line 21077...
21068
    // isset id assignments
21077
    // isset id assignments
21069
    private static final int __TRANSACTIONAMOUNT_ISSET_ID = 0;
21078
    private static final int __TRANSACTIONAMOUNT_ISSET_ID = 0;
21070
    private static final int __ISCOD_ISSET_ID = 1;
21079
    private static final int __ISCOD_ISSET_ID = 1;
21071
    private static final int __WEIGHT_ISSET_ID = 2;
21080
    private static final int __WEIGHT_ISSET_ID = 2;
21072
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
21081
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
-
 
21082
    private static final int __ISCOMPLETETXN_ISSET_ID = 4;
21073
    private BitSet __isset_bit_vector = new BitSet(4);
21083
    private BitSet __isset_bit_vector = new BitSet(5);
21074
 
21084
 
21075
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21085
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21076
    static {
21086
    static {
21077
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21087
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21078
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21088
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 21083... Line 21093...
21083
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
21093
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
21084
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21094
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21085
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21095
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21086
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21096
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21087
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21097
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
21098
      tmpMap.put(_Fields.IS_COMPLETE_TXN, new org.apache.thrift.meta_data.FieldMetaData("isCompleteTxn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21099
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
21088
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21100
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21089
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_args.class, metaDataMap);
21101
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_args.class, metaDataMap);
21090
    }
21102
    }
21091
 
21103
 
21092
    public getCostingAndDeliveryEstimateForPincode_args() {
21104
    public getCostingAndDeliveryEstimateForPincode_args() {
Line 21095... Line 21107...
21095
    public getCostingAndDeliveryEstimateForPincode_args(
21107
    public getCostingAndDeliveryEstimateForPincode_args(
21096
      String pincode,
21108
      String pincode,
21097
      double transactionAmount,
21109
      double transactionAmount,
21098
      boolean isCod,
21110
      boolean isCod,
21099
      double weight,
21111
      double weight,
21100
      long billingWarehouseId)
21112
      long billingWarehouseId,
-
 
21113
      boolean isCompleteTxn)
21101
    {
21114
    {
21102
      this();
21115
      this();
21103
      this.pincode = pincode;
21116
      this.pincode = pincode;
21104
      this.transactionAmount = transactionAmount;
21117
      this.transactionAmount = transactionAmount;
21105
      setTransactionAmountIsSet(true);
21118
      setTransactionAmountIsSet(true);
Line 21107... Line 21120...
21107
      setIsCodIsSet(true);
21120
      setIsCodIsSet(true);
21108
      this.weight = weight;
21121
      this.weight = weight;
21109
      setWeightIsSet(true);
21122
      setWeightIsSet(true);
21110
      this.billingWarehouseId = billingWarehouseId;
21123
      this.billingWarehouseId = billingWarehouseId;
21111
      setBillingWarehouseIdIsSet(true);
21124
      setBillingWarehouseIdIsSet(true);
-
 
21125
      this.isCompleteTxn = isCompleteTxn;
-
 
21126
      setIsCompleteTxnIsSet(true);
21112
    }
21127
    }
21113
 
21128
 
21114
    /**
21129
    /**
21115
     * Performs a deep copy on <i>other</i>.
21130
     * Performs a deep copy on <i>other</i>.
21116
     */
21131
     */
Line 21122... Line 21137...
21122
      }
21137
      }
21123
      this.transactionAmount = other.transactionAmount;
21138
      this.transactionAmount = other.transactionAmount;
21124
      this.isCod = other.isCod;
21139
      this.isCod = other.isCod;
21125
      this.weight = other.weight;
21140
      this.weight = other.weight;
21126
      this.billingWarehouseId = other.billingWarehouseId;
21141
      this.billingWarehouseId = other.billingWarehouseId;
-
 
21142
      this.isCompleteTxn = other.isCompleteTxn;
21127
    }
21143
    }
21128
 
21144
 
21129
    public getCostingAndDeliveryEstimateForPincode_args deepCopy() {
21145
    public getCostingAndDeliveryEstimateForPincode_args deepCopy() {
21130
      return new getCostingAndDeliveryEstimateForPincode_args(this);
21146
      return new getCostingAndDeliveryEstimateForPincode_args(this);
21131
    }
21147
    }
Line 21139... Line 21155...
21139
      this.isCod = false;
21155
      this.isCod = false;
21140
      setWeightIsSet(false);
21156
      setWeightIsSet(false);
21141
      this.weight = 0.0;
21157
      this.weight = 0.0;
21142
      setBillingWarehouseIdIsSet(false);
21158
      setBillingWarehouseIdIsSet(false);
21143
      this.billingWarehouseId = 0;
21159
      this.billingWarehouseId = 0;
-
 
21160
      setIsCompleteTxnIsSet(false);
-
 
21161
      this.isCompleteTxn = false;
21144
    }
21162
    }
21145
 
21163
 
21146
    public String getPincode() {
21164
    public String getPincode() {
21147
      return this.pincode;
21165
      return this.pincode;
21148
    }
21166
    }
Line 21252... Line 21270...
21252
 
21270
 
21253
    public void setBillingWarehouseIdIsSet(boolean value) {
21271
    public void setBillingWarehouseIdIsSet(boolean value) {
21254
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
21272
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
21255
    }
21273
    }
21256
 
21274
 
-
 
21275
    public boolean isIsCompleteTxn() {
-
 
21276
      return this.isCompleteTxn;
-
 
21277
    }
-
 
21278
 
-
 
21279
    public void setIsCompleteTxn(boolean isCompleteTxn) {
-
 
21280
      this.isCompleteTxn = isCompleteTxn;
-
 
21281
      setIsCompleteTxnIsSet(true);
-
 
21282
    }
-
 
21283
 
-
 
21284
    public void unsetIsCompleteTxn() {
-
 
21285
      __isset_bit_vector.clear(__ISCOMPLETETXN_ISSET_ID);
-
 
21286
    }
-
 
21287
 
-
 
21288
    /** Returns true if field isCompleteTxn is set (has been assigned a value) and false otherwise */
-
 
21289
    public boolean isSetIsCompleteTxn() {
-
 
21290
      return __isset_bit_vector.get(__ISCOMPLETETXN_ISSET_ID);
-
 
21291
    }
-
 
21292
 
-
 
21293
    public void setIsCompleteTxnIsSet(boolean value) {
-
 
21294
      __isset_bit_vector.set(__ISCOMPLETETXN_ISSET_ID, value);
-
 
21295
    }
-
 
21296
 
21257
    public void setFieldValue(_Fields field, Object value) {
21297
    public void setFieldValue(_Fields field, Object value) {
21258
      switch (field) {
21298
      switch (field) {
21259
      case PINCODE:
21299
      case PINCODE:
21260
        if (value == null) {
21300
        if (value == null) {
21261
          unsetPincode();
21301
          unsetPincode();
Line 21294... Line 21334...
21294
        } else {
21334
        } else {
21295
          setBillingWarehouseId((Long)value);
21335
          setBillingWarehouseId((Long)value);
21296
        }
21336
        }
21297
        break;
21337
        break;
21298
 
21338
 
-
 
21339
      case IS_COMPLETE_TXN:
-
 
21340
        if (value == null) {
-
 
21341
          unsetIsCompleteTxn();
-
 
21342
        } else {
-
 
21343
          setIsCompleteTxn((Boolean)value);
-
 
21344
        }
-
 
21345
        break;
-
 
21346
 
21299
      }
21347
      }
21300
    }
21348
    }
21301
 
21349
 
21302
    public Object getFieldValue(_Fields field) {
21350
    public Object getFieldValue(_Fields field) {
21303
      switch (field) {
21351
      switch (field) {
Line 21314... Line 21362...
21314
        return Double.valueOf(getWeight());
21362
        return Double.valueOf(getWeight());
21315
 
21363
 
21316
      case BILLING_WAREHOUSE_ID:
21364
      case BILLING_WAREHOUSE_ID:
21317
        return Long.valueOf(getBillingWarehouseId());
21365
        return Long.valueOf(getBillingWarehouseId());
21318
 
21366
 
-
 
21367
      case IS_COMPLETE_TXN:
-
 
21368
        return Boolean.valueOf(isIsCompleteTxn());
-
 
21369
 
21319
      }
21370
      }
21320
      throw new IllegalStateException();
21371
      throw new IllegalStateException();
21321
    }
21372
    }
21322
 
21373
 
21323
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21374
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 21335... Line 21386...
21335
        return isSetIsCod();
21386
        return isSetIsCod();
21336
      case WEIGHT:
21387
      case WEIGHT:
21337
        return isSetWeight();
21388
        return isSetWeight();
21338
      case BILLING_WAREHOUSE_ID:
21389
      case BILLING_WAREHOUSE_ID:
21339
        return isSetBillingWarehouseId();
21390
        return isSetBillingWarehouseId();
-
 
21391
      case IS_COMPLETE_TXN:
-
 
21392
        return isSetIsCompleteTxn();
21340
      }
21393
      }
21341
      throw new IllegalStateException();
21394
      throw new IllegalStateException();
21342
    }
21395
    }
21343
 
21396
 
21344
    @Override
21397
    @Override
Line 21397... Line 21450...
21397
          return false;
21450
          return false;
21398
        if (this.billingWarehouseId != that.billingWarehouseId)
21451
        if (this.billingWarehouseId != that.billingWarehouseId)
21399
          return false;
21452
          return false;
21400
      }
21453
      }
21401
 
21454
 
-
 
21455
      boolean this_present_isCompleteTxn = true;
-
 
21456
      boolean that_present_isCompleteTxn = true;
-
 
21457
      if (this_present_isCompleteTxn || that_present_isCompleteTxn) {
-
 
21458
        if (!(this_present_isCompleteTxn && that_present_isCompleteTxn))
-
 
21459
          return false;
-
 
21460
        if (this.isCompleteTxn != that.isCompleteTxn)
-
 
21461
          return false;
-
 
21462
      }
-
 
21463
 
21402
      return true;
21464
      return true;
21403
    }
21465
    }
21404
 
21466
 
21405
    @Override
21467
    @Override
21406
    public int hashCode() {
21468
    public int hashCode() {
Line 21463... Line 21525...
21463
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21525
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21464
        if (lastComparison != 0) {
21526
        if (lastComparison != 0) {
21465
          return lastComparison;
21527
          return lastComparison;
21466
        }
21528
        }
21467
      }
21529
      }
-
 
21530
      lastComparison = Boolean.valueOf(isSetIsCompleteTxn()).compareTo(typedOther.isSetIsCompleteTxn());
-
 
21531
      if (lastComparison != 0) {
-
 
21532
        return lastComparison;
-
 
21533
      }
-
 
21534
      if (isSetIsCompleteTxn()) {
-
 
21535
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCompleteTxn, typedOther.isCompleteTxn);
-
 
21536
        if (lastComparison != 0) {
-
 
21537
          return lastComparison;
-
 
21538
        }
-
 
21539
      }
21468
      return 0;
21540
      return 0;
21469
    }
21541
    }
21470
 
21542
 
21471
    public _Fields fieldForId(int fieldId) {
21543
    public _Fields fieldForId(int fieldId) {
21472
      return _Fields.findByThriftId(fieldId);
21544
      return _Fields.findByThriftId(fieldId);
Line 21519... Line 21591...
21519
              setBillingWarehouseIdIsSet(true);
21591
              setBillingWarehouseIdIsSet(true);
21520
            } else { 
21592
            } else { 
21521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21593
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21522
            }
21594
            }
21523
            break;
21595
            break;
-
 
21596
          case 6: // IS_COMPLETE_TXN
-
 
21597
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
21598
              this.isCompleteTxn = iprot.readBool();
-
 
21599
              setIsCompleteTxnIsSet(true);
-
 
21600
            } else { 
-
 
21601
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21602
            }
-
 
21603
            break;
21524
          default:
21604
          default:
21525
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21605
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21526
        }
21606
        }
21527
        iprot.readFieldEnd();
21607
        iprot.readFieldEnd();
21528
      }
21608
      }
Line 21549... Line 21629...
21549
      oprot.writeDouble(this.weight);
21629
      oprot.writeDouble(this.weight);
21550
      oprot.writeFieldEnd();
21630
      oprot.writeFieldEnd();
21551
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
21631
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
21552
      oprot.writeI64(this.billingWarehouseId);
21632
      oprot.writeI64(this.billingWarehouseId);
21553
      oprot.writeFieldEnd();
21633
      oprot.writeFieldEnd();
-
 
21634
      oprot.writeFieldBegin(IS_COMPLETE_TXN_FIELD_DESC);
-
 
21635
      oprot.writeBool(this.isCompleteTxn);
-
 
21636
      oprot.writeFieldEnd();
21554
      oprot.writeFieldStop();
21637
      oprot.writeFieldStop();
21555
      oprot.writeStructEnd();
21638
      oprot.writeStructEnd();
21556
    }
21639
    }
21557
 
21640
 
21558
    @Override
21641
    @Override
Line 21581... Line 21664...
21581
      first = false;
21664
      first = false;
21582
      if (!first) sb.append(", ");
21665
      if (!first) sb.append(", ");
21583
      sb.append("billingWarehouseId:");
21666
      sb.append("billingWarehouseId:");
21584
      sb.append(this.billingWarehouseId);
21667
      sb.append(this.billingWarehouseId);
21585
      first = false;
21668
      first = false;
-
 
21669
      if (!first) sb.append(", ");
-
 
21670
      sb.append("isCompleteTxn:");
-
 
21671
      sb.append(this.isCompleteTxn);
-
 
21672
      first = false;
21586
      sb.append(")");
21673
      sb.append(")");
21587
      return sb.toString();
21674
      return sb.toString();
21588
    }
21675
    }
21589
 
21676
 
21590
    public void validate() throws org.apache.thrift.TException {
21677
    public void validate() throws org.apache.thrift.TException {