Subversion Repositories SmartDukaan

Rev

Rev 14780 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8739 vikram.rag 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.catalog;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class SnapdealItem implements org.apache.thrift.TBase<SnapdealItem, SnapdealItem._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SnapdealItem");
25
 
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField EXCEPTION_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("exceptionPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
29
  private static final org.apache.thrift.protocol.TField IS_LISTED_ON_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isListedOnSnapdeal", org.apache.thrift.protocol.TType.BOOL, (short)4);
9242 kshitij.so 30
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("sellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
32
  private static final org.apache.thrift.protocol.TField COURIER_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("courierCost", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
33
  private static final org.apache.thrift.protocol.TField COMMISSION_FIELD_DESC = new org.apache.thrift.protocol.TField("commission", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
34
  private static final org.apache.thrift.protocol.TField SERVICE_TAX_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTax", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  private static final org.apache.thrift.protocol.TField SUPPRESS_PRICE_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressPriceFeed", org.apache.thrift.protocol.TType.BOOL, (short)10);
36
  private static final org.apache.thrift.protocol.TField SUPPRESS_INVENTORY_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressInventoryFeed", org.apache.thrift.protocol.TType.BOOL, (short)11);
9404 vikram.rag 37
  private static final org.apache.thrift.protocol.TField MAX_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("maxNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
9456 vikram.rag 38
  private static final org.apache.thrift.protocol.TField SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)13);
9568 kshitij.so 39
  private static final org.apache.thrift.protocol.TField SUPC_FIELD_DESC = new org.apache.thrift.protocol.TField("supc", org.apache.thrift.protocol.TType.STRING, (short)14);
9724 kshitij.so 40
  private static final org.apache.thrift.protocol.TField SHIPPING_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingTime", org.apache.thrift.protocol.TType.STRING, (short)15);
9779 kshitij.so 41
  private static final org.apache.thrift.protocol.TField UPDATED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedBy", org.apache.thrift.protocol.TType.STRING, (short)16);
42
  private static final org.apache.thrift.protocol.TField MARKETPLACE_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("marketplaceItems", org.apache.thrift.protocol.TType.STRUCT, (short)17);
11095 kshitij.so 43
  private static final org.apache.thrift.protocol.TField COURIER_COST_MARKETPLACE_FIELD_DESC = new org.apache.thrift.protocol.TField("courierCostMarketplace", org.apache.thrift.protocol.TType.DOUBLE, (short)18);
12133 kshitij.so 44
  private static final org.apache.thrift.protocol.TField ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("item", org.apache.thrift.protocol.TType.STRUCT, (short)19);
14780 manish.sha 45
  private static final org.apache.thrift.protocol.TField IS_VOI_LISTED_FIELD_DESC = new org.apache.thrift.protocol.TField("isVoiListed", org.apache.thrift.protocol.TType.BOOL, (short)20);
46
  private static final org.apache.thrift.protocol.TField VOI_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("voiSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)21);
47
  private static final org.apache.thrift.protocol.TField SUPPRESS_VOI_PRICE_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressVoiPriceFeed", org.apache.thrift.protocol.TType.BOOL, (short)22);
48
  private static final org.apache.thrift.protocol.TField VOI_PRICE_LAST_UPDATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("voiPriceLastUpdatedOn", org.apache.thrift.protocol.TType.I64, (short)23);
49
  private static final org.apache.thrift.protocol.TField VOI_SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("voiSkuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)24);
50
  private static final org.apache.thrift.protocol.TField MINIMUM_POSSIBLE_SP_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("minimumPossibleSpVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)25);
51
  private static final org.apache.thrift.protocol.TField MINIMUM_POSSIBLE_TP_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("minimumPossibleTpVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)26);
52
  private static final org.apache.thrift.protocol.TField COURIER_COST_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("courierCostVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)27);
53
  private static final org.apache.thrift.protocol.TField SERVICE_TAX_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTaxVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)28);
54
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("transferPriceVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)29);
55
  private static final org.apache.thrift.protocol.TField COMMISSION_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("commissionVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)30);
14862 manish.sha 56
  private static final org.apache.thrift.protocol.TField COURIER_COST_MARKETPLACE_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("courierCostMarketplaceVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)31);
57
  private static final org.apache.thrift.protocol.TField COMMISSION_PERCENTAGE_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("commissionPercentageVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)32);
8739 vikram.rag 58
 
59
  private long item_id; // required
60
  private long warehouseId; // required
61
  private double exceptionPrice; // required
62
  private boolean isListedOnSnapdeal; // required
9242 kshitij.so 63
  private double transferPrice; // required
64
  private double sellingPrice; // required
65
  private double courierCost; // required
66
  private double commission; // required
67
  private double serviceTax; // required
68
  private boolean suppressPriceFeed; // required
69
  private boolean suppressInventoryFeed; // required
9404 vikram.rag 70
  private double maxNlc; // required
9456 vikram.rag 71
  private String skuAtSnapdeal; // required
9568 kshitij.so 72
  private String supc; // required
9724 kshitij.so 73
  private String shippingTime; // required
9779 kshitij.so 74
  private String updatedBy; // required
75
  private MarketplaceItems marketplaceItems; // required
11095 kshitij.so 76
  private double courierCostMarketplace; // required
12133 kshitij.so 77
  private Item item; // required
14780 manish.sha 78
  private boolean isVoiListed; // required
79
  private double voiSellingPrice; // required
80
  private boolean suppressVoiPriceFeed; // required
81
  private long voiPriceLastUpdatedOn; // required
82
  private String voiSkuAtSnapdeal; // required
83
  private double minimumPossibleSpVoi; // required
84
  private double minimumPossibleTpVoi; // required
85
  private double courierCostVoi; // required
86
  private double serviceTaxVoi; // required
87
  private double transferPriceVoi; // required
88
  private double commissionVoi; // required
14862 manish.sha 89
  private double courierCostMarketplaceVoi; // required
90
  private double commissionPercentageVoi; // required
8739 vikram.rag 91
 
92
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
93
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
94
    ITEM_ID((short)1, "item_id"),
95
    WAREHOUSE_ID((short)2, "warehouseId"),
96
    EXCEPTION_PRICE((short)3, "exceptionPrice"),
9242 kshitij.so 97
    IS_LISTED_ON_SNAPDEAL((short)4, "isListedOnSnapdeal"),
98
    TRANSFER_PRICE((short)5, "transferPrice"),
99
    SELLING_PRICE((short)6, "sellingPrice"),
100
    COURIER_COST((short)7, "courierCost"),
101
    COMMISSION((short)8, "commission"),
102
    SERVICE_TAX((short)9, "serviceTax"),
103
    SUPPRESS_PRICE_FEED((short)10, "suppressPriceFeed"),
9404 vikram.rag 104
    SUPPRESS_INVENTORY_FEED((short)11, "suppressInventoryFeed"),
9456 vikram.rag 105
    MAX_NLC((short)12, "maxNlc"),
9568 kshitij.so 106
    SKU_AT_SNAPDEAL((short)13, "skuAtSnapdeal"),
9724 kshitij.so 107
    SUPC((short)14, "supc"),
9779 kshitij.so 108
    SHIPPING_TIME((short)15, "shippingTime"),
109
    UPDATED_BY((short)16, "updatedBy"),
11095 kshitij.so 110
    MARKETPLACE_ITEMS((short)17, "marketplaceItems"),
12133 kshitij.so 111
    COURIER_COST_MARKETPLACE((short)18, "courierCostMarketplace"),
14780 manish.sha 112
    ITEM((short)19, "item"),
113
    IS_VOI_LISTED((short)20, "isVoiListed"),
114
    VOI_SELLING_PRICE((short)21, "voiSellingPrice"),
115
    SUPPRESS_VOI_PRICE_FEED((short)22, "suppressVoiPriceFeed"),
116
    VOI_PRICE_LAST_UPDATED_ON((short)23, "voiPriceLastUpdatedOn"),
117
    VOI_SKU_AT_SNAPDEAL((short)24, "voiSkuAtSnapdeal"),
118
    MINIMUM_POSSIBLE_SP_VOI((short)25, "minimumPossibleSpVoi"),
119
    MINIMUM_POSSIBLE_TP_VOI((short)26, "minimumPossibleTpVoi"),
120
    COURIER_COST_VOI((short)27, "courierCostVoi"),
121
    SERVICE_TAX_VOI((short)28, "serviceTaxVoi"),
122
    TRANSFER_PRICE_VOI((short)29, "transferPriceVoi"),
14862 manish.sha 123
    COMMISSION_VOI((short)30, "commissionVoi"),
124
    COURIER_COST_MARKETPLACE_VOI((short)31, "courierCostMarketplaceVoi"),
125
    COMMISSION_PERCENTAGE_VOI((short)32, "commissionPercentageVoi");
8739 vikram.rag 126
 
127
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
128
 
129
    static {
130
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
131
        byName.put(field.getFieldName(), field);
132
      }
133
    }
134
 
135
    /**
136
     * Find the _Fields constant that matches fieldId, or null if its not found.
137
     */
138
    public static _Fields findByThriftId(int fieldId) {
139
      switch(fieldId) {
140
        case 1: // ITEM_ID
141
          return ITEM_ID;
142
        case 2: // WAREHOUSE_ID
143
          return WAREHOUSE_ID;
144
        case 3: // EXCEPTION_PRICE
145
          return EXCEPTION_PRICE;
146
        case 4: // IS_LISTED_ON_SNAPDEAL
147
          return IS_LISTED_ON_SNAPDEAL;
9242 kshitij.so 148
        case 5: // TRANSFER_PRICE
149
          return TRANSFER_PRICE;
150
        case 6: // SELLING_PRICE
151
          return SELLING_PRICE;
152
        case 7: // COURIER_COST
153
          return COURIER_COST;
154
        case 8: // COMMISSION
155
          return COMMISSION;
156
        case 9: // SERVICE_TAX
157
          return SERVICE_TAX;
158
        case 10: // SUPPRESS_PRICE_FEED
159
          return SUPPRESS_PRICE_FEED;
160
        case 11: // SUPPRESS_INVENTORY_FEED
161
          return SUPPRESS_INVENTORY_FEED;
9404 vikram.rag 162
        case 12: // MAX_NLC
163
          return MAX_NLC;
9456 vikram.rag 164
        case 13: // SKU_AT_SNAPDEAL
165
          return SKU_AT_SNAPDEAL;
9568 kshitij.so 166
        case 14: // SUPC
167
          return SUPC;
9724 kshitij.so 168
        case 15: // SHIPPING_TIME
169
          return SHIPPING_TIME;
9779 kshitij.so 170
        case 16: // UPDATED_BY
171
          return UPDATED_BY;
172
        case 17: // MARKETPLACE_ITEMS
173
          return MARKETPLACE_ITEMS;
11095 kshitij.so 174
        case 18: // COURIER_COST_MARKETPLACE
175
          return COURIER_COST_MARKETPLACE;
12133 kshitij.so 176
        case 19: // ITEM
177
          return ITEM;
14780 manish.sha 178
        case 20: // IS_VOI_LISTED
179
          return IS_VOI_LISTED;
180
        case 21: // VOI_SELLING_PRICE
181
          return VOI_SELLING_PRICE;
182
        case 22: // SUPPRESS_VOI_PRICE_FEED
183
          return SUPPRESS_VOI_PRICE_FEED;
184
        case 23: // VOI_PRICE_LAST_UPDATED_ON
185
          return VOI_PRICE_LAST_UPDATED_ON;
186
        case 24: // VOI_SKU_AT_SNAPDEAL
187
          return VOI_SKU_AT_SNAPDEAL;
188
        case 25: // MINIMUM_POSSIBLE_SP_VOI
189
          return MINIMUM_POSSIBLE_SP_VOI;
190
        case 26: // MINIMUM_POSSIBLE_TP_VOI
191
          return MINIMUM_POSSIBLE_TP_VOI;
192
        case 27: // COURIER_COST_VOI
193
          return COURIER_COST_VOI;
194
        case 28: // SERVICE_TAX_VOI
195
          return SERVICE_TAX_VOI;
196
        case 29: // TRANSFER_PRICE_VOI
197
          return TRANSFER_PRICE_VOI;
198
        case 30: // COMMISSION_VOI
199
          return COMMISSION_VOI;
14862 manish.sha 200
        case 31: // COURIER_COST_MARKETPLACE_VOI
201
          return COURIER_COST_MARKETPLACE_VOI;
202
        case 32: // COMMISSION_PERCENTAGE_VOI
203
          return COMMISSION_PERCENTAGE_VOI;
8739 vikram.rag 204
        default:
205
          return null;
206
      }
207
    }
208
 
209
    /**
210
     * Find the _Fields constant that matches fieldId, throwing an exception
211
     * if it is not found.
212
     */
213
    public static _Fields findByThriftIdOrThrow(int fieldId) {
214
      _Fields fields = findByThriftId(fieldId);
215
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
216
      return fields;
217
    }
218
 
219
    /**
220
     * Find the _Fields constant that matches name, or null if its not found.
221
     */
222
    public static _Fields findByName(String name) {
223
      return byName.get(name);
224
    }
225
 
226
    private final short _thriftId;
227
    private final String _fieldName;
228
 
229
    _Fields(short thriftId, String fieldName) {
230
      _thriftId = thriftId;
231
      _fieldName = fieldName;
232
    }
233
 
234
    public short getThriftFieldId() {
235
      return _thriftId;
236
    }
237
 
238
    public String getFieldName() {
239
      return _fieldName;
240
    }
241
  }
242
 
243
  // isset id assignments
244
  private static final int __ITEM_ID_ISSET_ID = 0;
245
  private static final int __WAREHOUSEID_ISSET_ID = 1;
246
  private static final int __EXCEPTIONPRICE_ISSET_ID = 2;
247
  private static final int __ISLISTEDONSNAPDEAL_ISSET_ID = 3;
9242 kshitij.so 248
  private static final int __TRANSFERPRICE_ISSET_ID = 4;
249
  private static final int __SELLINGPRICE_ISSET_ID = 5;
250
  private static final int __COURIERCOST_ISSET_ID = 6;
251
  private static final int __COMMISSION_ISSET_ID = 7;
252
  private static final int __SERVICETAX_ISSET_ID = 8;
253
  private static final int __SUPPRESSPRICEFEED_ISSET_ID = 9;
254
  private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 10;
9404 vikram.rag 255
  private static final int __MAXNLC_ISSET_ID = 11;
11095 kshitij.so 256
  private static final int __COURIERCOSTMARKETPLACE_ISSET_ID = 12;
14780 manish.sha 257
  private static final int __ISVOILISTED_ISSET_ID = 13;
258
  private static final int __VOISELLINGPRICE_ISSET_ID = 14;
259
  private static final int __SUPPRESSVOIPRICEFEED_ISSET_ID = 15;
260
  private static final int __VOIPRICELASTUPDATEDON_ISSET_ID = 16;
261
  private static final int __MINIMUMPOSSIBLESPVOI_ISSET_ID = 17;
262
  private static final int __MINIMUMPOSSIBLETPVOI_ISSET_ID = 18;
263
  private static final int __COURIERCOSTVOI_ISSET_ID = 19;
264
  private static final int __SERVICETAXVOI_ISSET_ID = 20;
265
  private static final int __TRANSFERPRICEVOI_ISSET_ID = 21;
266
  private static final int __COMMISSIONVOI_ISSET_ID = 22;
14862 manish.sha 267
  private static final int __COURIERCOSTMARKETPLACEVOI_ISSET_ID = 23;
268
  private static final int __COMMISSIONPERCENTAGEVOI_ISSET_ID = 24;
269
  private BitSet __isset_bit_vector = new BitSet(25);
8739 vikram.rag 270
 
271
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
272
  static {
273
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
274
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
275
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
276
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
277
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
278
    tmpMap.put(_Fields.EXCEPTION_PRICE, new org.apache.thrift.meta_data.FieldMetaData("exceptionPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
279
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
280
    tmpMap.put(_Fields.IS_LISTED_ON_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("isListedOnSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
281
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9242 kshitij.so 282
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
283
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
284
    tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
285
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
286
    tmpMap.put(_Fields.COURIER_COST, new org.apache.thrift.meta_data.FieldMetaData("courierCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
287
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
288
    tmpMap.put(_Fields.COMMISSION, new org.apache.thrift.meta_data.FieldMetaData("commission", org.apache.thrift.TFieldRequirementType.DEFAULT, 
289
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
290
    tmpMap.put(_Fields.SERVICE_TAX, new org.apache.thrift.meta_data.FieldMetaData("serviceTax", org.apache.thrift.TFieldRequirementType.DEFAULT, 
291
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
292
    tmpMap.put(_Fields.SUPPRESS_PRICE_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressPriceFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
293
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
294
    tmpMap.put(_Fields.SUPPRESS_INVENTORY_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressInventoryFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
295
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9404 vikram.rag 296
    tmpMap.put(_Fields.MAX_NLC, new org.apache.thrift.meta_data.FieldMetaData("maxNlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
297
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
9456 vikram.rag 298
    tmpMap.put(_Fields.SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("skuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
299
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9568 kshitij.so 300
    tmpMap.put(_Fields.SUPC, new org.apache.thrift.meta_data.FieldMetaData("supc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
301
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9724 kshitij.so 302
    tmpMap.put(_Fields.SHIPPING_TIME, new org.apache.thrift.meta_data.FieldMetaData("shippingTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
303
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9779 kshitij.so 304
    tmpMap.put(_Fields.UPDATED_BY, new org.apache.thrift.meta_data.FieldMetaData("updatedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
305
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
306
    tmpMap.put(_Fields.MARKETPLACE_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("marketplaceItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
307
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplaceItems.class)));
11095 kshitij.so 308
    tmpMap.put(_Fields.COURIER_COST_MARKETPLACE, new org.apache.thrift.meta_data.FieldMetaData("courierCostMarketplace", org.apache.thrift.TFieldRequirementType.DEFAULT, 
309
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
12133 kshitij.so 310
    tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT, 
311
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));
14780 manish.sha 312
    tmpMap.put(_Fields.IS_VOI_LISTED, new org.apache.thrift.meta_data.FieldMetaData("isVoiListed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
313
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
314
    tmpMap.put(_Fields.VOI_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("voiSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
315
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
316
    tmpMap.put(_Fields.SUPPRESS_VOI_PRICE_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressVoiPriceFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
317
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
318
    tmpMap.put(_Fields.VOI_PRICE_LAST_UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("voiPriceLastUpdatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
319
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
320
    tmpMap.put(_Fields.VOI_SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("voiSkuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
321
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
322
    tmpMap.put(_Fields.MINIMUM_POSSIBLE_SP_VOI, new org.apache.thrift.meta_data.FieldMetaData("minimumPossibleSpVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
323
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
324
    tmpMap.put(_Fields.MINIMUM_POSSIBLE_TP_VOI, new org.apache.thrift.meta_data.FieldMetaData("minimumPossibleTpVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
325
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
326
    tmpMap.put(_Fields.COURIER_COST_VOI, new org.apache.thrift.meta_data.FieldMetaData("courierCostVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
327
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
328
    tmpMap.put(_Fields.SERVICE_TAX_VOI, new org.apache.thrift.meta_data.FieldMetaData("serviceTaxVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
329
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
330
    tmpMap.put(_Fields.TRANSFER_PRICE_VOI, new org.apache.thrift.meta_data.FieldMetaData("transferPriceVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
331
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
332
    tmpMap.put(_Fields.COMMISSION_VOI, new org.apache.thrift.meta_data.FieldMetaData("commissionVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
333
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
14862 manish.sha 334
    tmpMap.put(_Fields.COURIER_COST_MARKETPLACE_VOI, new org.apache.thrift.meta_data.FieldMetaData("courierCostMarketplaceVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
335
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
336
    tmpMap.put(_Fields.COMMISSION_PERCENTAGE_VOI, new org.apache.thrift.meta_data.FieldMetaData("commissionPercentageVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
337
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
8739 vikram.rag 338
    metaDataMap = Collections.unmodifiableMap(tmpMap);
339
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SnapdealItem.class, metaDataMap);
340
  }
341
 
342
  public SnapdealItem() {
343
  }
344
 
345
  public SnapdealItem(
346
    long item_id,
347
    long warehouseId,
348
    double exceptionPrice,
9242 kshitij.so 349
    boolean isListedOnSnapdeal,
350
    double transferPrice,
351
    double sellingPrice,
352
    double courierCost,
353
    double commission,
354
    double serviceTax,
355
    boolean suppressPriceFeed,
9404 vikram.rag 356
    boolean suppressInventoryFeed,
9456 vikram.rag 357
    double maxNlc,
9568 kshitij.so 358
    String skuAtSnapdeal,
9724 kshitij.so 359
    String supc,
9779 kshitij.so 360
    String shippingTime,
361
    String updatedBy,
11095 kshitij.so 362
    MarketplaceItems marketplaceItems,
12133 kshitij.so 363
    double courierCostMarketplace,
14780 manish.sha 364
    Item item,
365
    boolean isVoiListed,
366
    double voiSellingPrice,
367
    boolean suppressVoiPriceFeed,
368
    long voiPriceLastUpdatedOn,
369
    String voiSkuAtSnapdeal,
370
    double minimumPossibleSpVoi,
371
    double minimumPossibleTpVoi,
372
    double courierCostVoi,
373
    double serviceTaxVoi,
374
    double transferPriceVoi,
14862 manish.sha 375
    double commissionVoi,
376
    double courierCostMarketplaceVoi,
377
    double commissionPercentageVoi)
8739 vikram.rag 378
  {
379
    this();
380
    this.item_id = item_id;
381
    setItem_idIsSet(true);
382
    this.warehouseId = warehouseId;
383
    setWarehouseIdIsSet(true);
384
    this.exceptionPrice = exceptionPrice;
385
    setExceptionPriceIsSet(true);
386
    this.isListedOnSnapdeal = isListedOnSnapdeal;
387
    setIsListedOnSnapdealIsSet(true);
9242 kshitij.so 388
    this.transferPrice = transferPrice;
389
    setTransferPriceIsSet(true);
390
    this.sellingPrice = sellingPrice;
391
    setSellingPriceIsSet(true);
392
    this.courierCost = courierCost;
393
    setCourierCostIsSet(true);
394
    this.commission = commission;
395
    setCommissionIsSet(true);
396
    this.serviceTax = serviceTax;
397
    setServiceTaxIsSet(true);
398
    this.suppressPriceFeed = suppressPriceFeed;
399
    setSuppressPriceFeedIsSet(true);
400
    this.suppressInventoryFeed = suppressInventoryFeed;
401
    setSuppressInventoryFeedIsSet(true);
9404 vikram.rag 402
    this.maxNlc = maxNlc;
403
    setMaxNlcIsSet(true);
9456 vikram.rag 404
    this.skuAtSnapdeal = skuAtSnapdeal;
9568 kshitij.so 405
    this.supc = supc;
9724 kshitij.so 406
    this.shippingTime = shippingTime;
9779 kshitij.so 407
    this.updatedBy = updatedBy;
408
    this.marketplaceItems = marketplaceItems;
11095 kshitij.so 409
    this.courierCostMarketplace = courierCostMarketplace;
410
    setCourierCostMarketplaceIsSet(true);
12133 kshitij.so 411
    this.item = item;
14780 manish.sha 412
    this.isVoiListed = isVoiListed;
413
    setIsVoiListedIsSet(true);
414
    this.voiSellingPrice = voiSellingPrice;
415
    setVoiSellingPriceIsSet(true);
416
    this.suppressVoiPriceFeed = suppressVoiPriceFeed;
417
    setSuppressVoiPriceFeedIsSet(true);
418
    this.voiPriceLastUpdatedOn = voiPriceLastUpdatedOn;
419
    setVoiPriceLastUpdatedOnIsSet(true);
420
    this.voiSkuAtSnapdeal = voiSkuAtSnapdeal;
421
    this.minimumPossibleSpVoi = minimumPossibleSpVoi;
422
    setMinimumPossibleSpVoiIsSet(true);
423
    this.minimumPossibleTpVoi = minimumPossibleTpVoi;
424
    setMinimumPossibleTpVoiIsSet(true);
425
    this.courierCostVoi = courierCostVoi;
426
    setCourierCostVoiIsSet(true);
427
    this.serviceTaxVoi = serviceTaxVoi;
428
    setServiceTaxVoiIsSet(true);
429
    this.transferPriceVoi = transferPriceVoi;
430
    setTransferPriceVoiIsSet(true);
431
    this.commissionVoi = commissionVoi;
432
    setCommissionVoiIsSet(true);
14862 manish.sha 433
    this.courierCostMarketplaceVoi = courierCostMarketplaceVoi;
434
    setCourierCostMarketplaceVoiIsSet(true);
435
    this.commissionPercentageVoi = commissionPercentageVoi;
436
    setCommissionPercentageVoiIsSet(true);
8739 vikram.rag 437
  }
438
 
439
  /**
440
   * Performs a deep copy on <i>other</i>.
441
   */
442
  public SnapdealItem(SnapdealItem other) {
443
    __isset_bit_vector.clear();
444
    __isset_bit_vector.or(other.__isset_bit_vector);
445
    this.item_id = other.item_id;
446
    this.warehouseId = other.warehouseId;
447
    this.exceptionPrice = other.exceptionPrice;
448
    this.isListedOnSnapdeal = other.isListedOnSnapdeal;
9242 kshitij.so 449
    this.transferPrice = other.transferPrice;
450
    this.sellingPrice = other.sellingPrice;
451
    this.courierCost = other.courierCost;
452
    this.commission = other.commission;
453
    this.serviceTax = other.serviceTax;
454
    this.suppressPriceFeed = other.suppressPriceFeed;
455
    this.suppressInventoryFeed = other.suppressInventoryFeed;
9404 vikram.rag 456
    this.maxNlc = other.maxNlc;
9456 vikram.rag 457
    if (other.isSetSkuAtSnapdeal()) {
458
      this.skuAtSnapdeal = other.skuAtSnapdeal;
459
    }
9568 kshitij.so 460
    if (other.isSetSupc()) {
461
      this.supc = other.supc;
462
    }
9724 kshitij.so 463
    if (other.isSetShippingTime()) {
464
      this.shippingTime = other.shippingTime;
465
    }
9779 kshitij.so 466
    if (other.isSetUpdatedBy()) {
467
      this.updatedBy = other.updatedBy;
468
    }
469
    if (other.isSetMarketplaceItems()) {
470
      this.marketplaceItems = new MarketplaceItems(other.marketplaceItems);
471
    }
11095 kshitij.so 472
    this.courierCostMarketplace = other.courierCostMarketplace;
12133 kshitij.so 473
    if (other.isSetItem()) {
474
      this.item = new Item(other.item);
475
    }
14780 manish.sha 476
    this.isVoiListed = other.isVoiListed;
477
    this.voiSellingPrice = other.voiSellingPrice;
478
    this.suppressVoiPriceFeed = other.suppressVoiPriceFeed;
479
    this.voiPriceLastUpdatedOn = other.voiPriceLastUpdatedOn;
480
    if (other.isSetVoiSkuAtSnapdeal()) {
481
      this.voiSkuAtSnapdeal = other.voiSkuAtSnapdeal;
482
    }
483
    this.minimumPossibleSpVoi = other.minimumPossibleSpVoi;
484
    this.minimumPossibleTpVoi = other.minimumPossibleTpVoi;
485
    this.courierCostVoi = other.courierCostVoi;
486
    this.serviceTaxVoi = other.serviceTaxVoi;
487
    this.transferPriceVoi = other.transferPriceVoi;
488
    this.commissionVoi = other.commissionVoi;
14862 manish.sha 489
    this.courierCostMarketplaceVoi = other.courierCostMarketplaceVoi;
490
    this.commissionPercentageVoi = other.commissionPercentageVoi;
8739 vikram.rag 491
  }
492
 
493
  public SnapdealItem deepCopy() {
494
    return new SnapdealItem(this);
495
  }
496
 
497
  @Override
498
  public void clear() {
499
    setItem_idIsSet(false);
500
    this.item_id = 0;
501
    setWarehouseIdIsSet(false);
502
    this.warehouseId = 0;
503
    setExceptionPriceIsSet(false);
504
    this.exceptionPrice = 0.0;
505
    setIsListedOnSnapdealIsSet(false);
506
    this.isListedOnSnapdeal = false;
9242 kshitij.so 507
    setTransferPriceIsSet(false);
508
    this.transferPrice = 0.0;
509
    setSellingPriceIsSet(false);
510
    this.sellingPrice = 0.0;
511
    setCourierCostIsSet(false);
512
    this.courierCost = 0.0;
513
    setCommissionIsSet(false);
514
    this.commission = 0.0;
515
    setServiceTaxIsSet(false);
516
    this.serviceTax = 0.0;
517
    setSuppressPriceFeedIsSet(false);
518
    this.suppressPriceFeed = false;
519
    setSuppressInventoryFeedIsSet(false);
520
    this.suppressInventoryFeed = false;
9404 vikram.rag 521
    setMaxNlcIsSet(false);
522
    this.maxNlc = 0.0;
9456 vikram.rag 523
    this.skuAtSnapdeal = null;
9568 kshitij.so 524
    this.supc = null;
9724 kshitij.so 525
    this.shippingTime = null;
9779 kshitij.so 526
    this.updatedBy = null;
527
    this.marketplaceItems = null;
11095 kshitij.so 528
    setCourierCostMarketplaceIsSet(false);
529
    this.courierCostMarketplace = 0.0;
12133 kshitij.so 530
    this.item = null;
14780 manish.sha 531
    setIsVoiListedIsSet(false);
532
    this.isVoiListed = false;
533
    setVoiSellingPriceIsSet(false);
534
    this.voiSellingPrice = 0.0;
535
    setSuppressVoiPriceFeedIsSet(false);
536
    this.suppressVoiPriceFeed = false;
537
    setVoiPriceLastUpdatedOnIsSet(false);
538
    this.voiPriceLastUpdatedOn = 0;
539
    this.voiSkuAtSnapdeal = null;
540
    setMinimumPossibleSpVoiIsSet(false);
541
    this.minimumPossibleSpVoi = 0.0;
542
    setMinimumPossibleTpVoiIsSet(false);
543
    this.minimumPossibleTpVoi = 0.0;
544
    setCourierCostVoiIsSet(false);
545
    this.courierCostVoi = 0.0;
546
    setServiceTaxVoiIsSet(false);
547
    this.serviceTaxVoi = 0.0;
548
    setTransferPriceVoiIsSet(false);
549
    this.transferPriceVoi = 0.0;
550
    setCommissionVoiIsSet(false);
551
    this.commissionVoi = 0.0;
14862 manish.sha 552
    setCourierCostMarketplaceVoiIsSet(false);
553
    this.courierCostMarketplaceVoi = 0.0;
554
    setCommissionPercentageVoiIsSet(false);
555
    this.commissionPercentageVoi = 0.0;
8739 vikram.rag 556
  }
557
 
558
  public long getItem_id() {
559
    return this.item_id;
560
  }
561
 
562
  public void setItem_id(long item_id) {
563
    this.item_id = item_id;
564
    setItem_idIsSet(true);
565
  }
566
 
567
  public void unsetItem_id() {
568
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
569
  }
570
 
571
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
572
  public boolean isSetItem_id() {
573
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
574
  }
575
 
576
  public void setItem_idIsSet(boolean value) {
577
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
578
  }
579
 
580
  public long getWarehouseId() {
581
    return this.warehouseId;
582
  }
583
 
584
  public void setWarehouseId(long warehouseId) {
585
    this.warehouseId = warehouseId;
586
    setWarehouseIdIsSet(true);
587
  }
588
 
589
  public void unsetWarehouseId() {
590
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
591
  }
592
 
593
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
594
  public boolean isSetWarehouseId() {
595
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
596
  }
597
 
598
  public void setWarehouseIdIsSet(boolean value) {
599
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
600
  }
601
 
602
  public double getExceptionPrice() {
603
    return this.exceptionPrice;
604
  }
605
 
606
  public void setExceptionPrice(double exceptionPrice) {
607
    this.exceptionPrice = exceptionPrice;
608
    setExceptionPriceIsSet(true);
609
  }
610
 
611
  public void unsetExceptionPrice() {
612
    __isset_bit_vector.clear(__EXCEPTIONPRICE_ISSET_ID);
613
  }
614
 
615
  /** Returns true if field exceptionPrice is set (has been assigned a value) and false otherwise */
616
  public boolean isSetExceptionPrice() {
617
    return __isset_bit_vector.get(__EXCEPTIONPRICE_ISSET_ID);
618
  }
619
 
620
  public void setExceptionPriceIsSet(boolean value) {
621
    __isset_bit_vector.set(__EXCEPTIONPRICE_ISSET_ID, value);
622
  }
623
 
624
  public boolean isIsListedOnSnapdeal() {
625
    return this.isListedOnSnapdeal;
626
  }
627
 
628
  public void setIsListedOnSnapdeal(boolean isListedOnSnapdeal) {
629
    this.isListedOnSnapdeal = isListedOnSnapdeal;
630
    setIsListedOnSnapdealIsSet(true);
631
  }
632
 
633
  public void unsetIsListedOnSnapdeal() {
634
    __isset_bit_vector.clear(__ISLISTEDONSNAPDEAL_ISSET_ID);
635
  }
636
 
637
  /** Returns true if field isListedOnSnapdeal is set (has been assigned a value) and false otherwise */
638
  public boolean isSetIsListedOnSnapdeal() {
639
    return __isset_bit_vector.get(__ISLISTEDONSNAPDEAL_ISSET_ID);
640
  }
641
 
642
  public void setIsListedOnSnapdealIsSet(boolean value) {
643
    __isset_bit_vector.set(__ISLISTEDONSNAPDEAL_ISSET_ID, value);
644
  }
645
 
9242 kshitij.so 646
  public double getTransferPrice() {
647
    return this.transferPrice;
648
  }
649
 
650
  public void setTransferPrice(double transferPrice) {
651
    this.transferPrice = transferPrice;
652
    setTransferPriceIsSet(true);
653
  }
654
 
655
  public void unsetTransferPrice() {
656
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
657
  }
658
 
659
  /** Returns true if field transferPrice is set (has been assigned a value) and false otherwise */
660
  public boolean isSetTransferPrice() {
661
    return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
662
  }
663
 
664
  public void setTransferPriceIsSet(boolean value) {
665
    __isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
666
  }
667
 
668
  public double getSellingPrice() {
669
    return this.sellingPrice;
670
  }
671
 
672
  public void setSellingPrice(double sellingPrice) {
673
    this.sellingPrice = sellingPrice;
674
    setSellingPriceIsSet(true);
675
  }
676
 
677
  public void unsetSellingPrice() {
678
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
679
  }
680
 
681
  /** Returns true if field sellingPrice is set (has been assigned a value) and false otherwise */
682
  public boolean isSetSellingPrice() {
683
    return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
684
  }
685
 
686
  public void setSellingPriceIsSet(boolean value) {
687
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
688
  }
689
 
690
  public double getCourierCost() {
691
    return this.courierCost;
692
  }
693
 
694
  public void setCourierCost(double courierCost) {
695
    this.courierCost = courierCost;
696
    setCourierCostIsSet(true);
697
  }
698
 
699
  public void unsetCourierCost() {
700
    __isset_bit_vector.clear(__COURIERCOST_ISSET_ID);
701
  }
702
 
703
  /** Returns true if field courierCost is set (has been assigned a value) and false otherwise */
704
  public boolean isSetCourierCost() {
705
    return __isset_bit_vector.get(__COURIERCOST_ISSET_ID);
706
  }
707
 
708
  public void setCourierCostIsSet(boolean value) {
709
    __isset_bit_vector.set(__COURIERCOST_ISSET_ID, value);
710
  }
711
 
712
  public double getCommission() {
713
    return this.commission;
714
  }
715
 
716
  public void setCommission(double commission) {
717
    this.commission = commission;
718
    setCommissionIsSet(true);
719
  }
720
 
721
  public void unsetCommission() {
722
    __isset_bit_vector.clear(__COMMISSION_ISSET_ID);
723
  }
724
 
725
  /** Returns true if field commission is set (has been assigned a value) and false otherwise */
726
  public boolean isSetCommission() {
727
    return __isset_bit_vector.get(__COMMISSION_ISSET_ID);
728
  }
729
 
730
  public void setCommissionIsSet(boolean value) {
731
    __isset_bit_vector.set(__COMMISSION_ISSET_ID, value);
732
  }
733
 
734
  public double getServiceTax() {
735
    return this.serviceTax;
736
  }
737
 
738
  public void setServiceTax(double serviceTax) {
739
    this.serviceTax = serviceTax;
740
    setServiceTaxIsSet(true);
741
  }
742
 
743
  public void unsetServiceTax() {
744
    __isset_bit_vector.clear(__SERVICETAX_ISSET_ID);
745
  }
746
 
747
  /** Returns true if field serviceTax is set (has been assigned a value) and false otherwise */
748
  public boolean isSetServiceTax() {
749
    return __isset_bit_vector.get(__SERVICETAX_ISSET_ID);
750
  }
751
 
752
  public void setServiceTaxIsSet(boolean value) {
753
    __isset_bit_vector.set(__SERVICETAX_ISSET_ID, value);
754
  }
755
 
756
  public boolean isSuppressPriceFeed() {
757
    return this.suppressPriceFeed;
758
  }
759
 
760
  public void setSuppressPriceFeed(boolean suppressPriceFeed) {
761
    this.suppressPriceFeed = suppressPriceFeed;
762
    setSuppressPriceFeedIsSet(true);
763
  }
764
 
765
  public void unsetSuppressPriceFeed() {
766
    __isset_bit_vector.clear(__SUPPRESSPRICEFEED_ISSET_ID);
767
  }
768
 
769
  /** Returns true if field suppressPriceFeed is set (has been assigned a value) and false otherwise */
770
  public boolean isSetSuppressPriceFeed() {
771
    return __isset_bit_vector.get(__SUPPRESSPRICEFEED_ISSET_ID);
772
  }
773
 
774
  public void setSuppressPriceFeedIsSet(boolean value) {
775
    __isset_bit_vector.set(__SUPPRESSPRICEFEED_ISSET_ID, value);
776
  }
777
 
778
  public boolean isSuppressInventoryFeed() {
779
    return this.suppressInventoryFeed;
780
  }
781
 
782
  public void setSuppressInventoryFeed(boolean suppressInventoryFeed) {
783
    this.suppressInventoryFeed = suppressInventoryFeed;
784
    setSuppressInventoryFeedIsSet(true);
785
  }
786
 
787
  public void unsetSuppressInventoryFeed() {
788
    __isset_bit_vector.clear(__SUPPRESSINVENTORYFEED_ISSET_ID);
789
  }
790
 
791
  /** Returns true if field suppressInventoryFeed is set (has been assigned a value) and false otherwise */
792
  public boolean isSetSuppressInventoryFeed() {
793
    return __isset_bit_vector.get(__SUPPRESSINVENTORYFEED_ISSET_ID);
794
  }
795
 
796
  public void setSuppressInventoryFeedIsSet(boolean value) {
797
    __isset_bit_vector.set(__SUPPRESSINVENTORYFEED_ISSET_ID, value);
798
  }
799
 
9404 vikram.rag 800
  public double getMaxNlc() {
801
    return this.maxNlc;
802
  }
803
 
804
  public void setMaxNlc(double maxNlc) {
805
    this.maxNlc = maxNlc;
806
    setMaxNlcIsSet(true);
807
  }
808
 
809
  public void unsetMaxNlc() {
810
    __isset_bit_vector.clear(__MAXNLC_ISSET_ID);
811
  }
812
 
813
  /** Returns true if field maxNlc is set (has been assigned a value) and false otherwise */
814
  public boolean isSetMaxNlc() {
815
    return __isset_bit_vector.get(__MAXNLC_ISSET_ID);
816
  }
817
 
818
  public void setMaxNlcIsSet(boolean value) {
819
    __isset_bit_vector.set(__MAXNLC_ISSET_ID, value);
820
  }
821
 
9456 vikram.rag 822
  public String getSkuAtSnapdeal() {
823
    return this.skuAtSnapdeal;
824
  }
825
 
826
  public void setSkuAtSnapdeal(String skuAtSnapdeal) {
827
    this.skuAtSnapdeal = skuAtSnapdeal;
828
  }
829
 
830
  public void unsetSkuAtSnapdeal() {
831
    this.skuAtSnapdeal = null;
832
  }
833
 
834
  /** Returns true if field skuAtSnapdeal is set (has been assigned a value) and false otherwise */
835
  public boolean isSetSkuAtSnapdeal() {
836
    return this.skuAtSnapdeal != null;
837
  }
838
 
839
  public void setSkuAtSnapdealIsSet(boolean value) {
840
    if (!value) {
841
      this.skuAtSnapdeal = null;
842
    }
843
  }
844
 
9568 kshitij.so 845
  public String getSupc() {
846
    return this.supc;
847
  }
848
 
849
  public void setSupc(String supc) {
850
    this.supc = supc;
851
  }
852
 
853
  public void unsetSupc() {
854
    this.supc = null;
855
  }
856
 
857
  /** Returns true if field supc is set (has been assigned a value) and false otherwise */
858
  public boolean isSetSupc() {
859
    return this.supc != null;
860
  }
861
 
862
  public void setSupcIsSet(boolean value) {
863
    if (!value) {
864
      this.supc = null;
865
    }
866
  }
867
 
9724 kshitij.so 868
  public String getShippingTime() {
869
    return this.shippingTime;
870
  }
871
 
872
  public void setShippingTime(String shippingTime) {
873
    this.shippingTime = shippingTime;
874
  }
875
 
876
  public void unsetShippingTime() {
877
    this.shippingTime = null;
878
  }
879
 
880
  /** Returns true if field shippingTime is set (has been assigned a value) and false otherwise */
881
  public boolean isSetShippingTime() {
882
    return this.shippingTime != null;
883
  }
884
 
885
  public void setShippingTimeIsSet(boolean value) {
886
    if (!value) {
887
      this.shippingTime = null;
888
    }
889
  }
890
 
9779 kshitij.so 891
  public String getUpdatedBy() {
892
    return this.updatedBy;
893
  }
894
 
895
  public void setUpdatedBy(String updatedBy) {
896
    this.updatedBy = updatedBy;
897
  }
898
 
899
  public void unsetUpdatedBy() {
900
    this.updatedBy = null;
901
  }
902
 
903
  /** Returns true if field updatedBy is set (has been assigned a value) and false otherwise */
904
  public boolean isSetUpdatedBy() {
905
    return this.updatedBy != null;
906
  }
907
 
908
  public void setUpdatedByIsSet(boolean value) {
909
    if (!value) {
910
      this.updatedBy = null;
911
    }
912
  }
913
 
914
  public MarketplaceItems getMarketplaceItems() {
915
    return this.marketplaceItems;
916
  }
917
 
918
  public void setMarketplaceItems(MarketplaceItems marketplaceItems) {
919
    this.marketplaceItems = marketplaceItems;
920
  }
921
 
922
  public void unsetMarketplaceItems() {
923
    this.marketplaceItems = null;
924
  }
925
 
926
  /** Returns true if field marketplaceItems is set (has been assigned a value) and false otherwise */
927
  public boolean isSetMarketplaceItems() {
928
    return this.marketplaceItems != null;
929
  }
930
 
931
  public void setMarketplaceItemsIsSet(boolean value) {
932
    if (!value) {
933
      this.marketplaceItems = null;
934
    }
935
  }
936
 
11095 kshitij.so 937
  public double getCourierCostMarketplace() {
938
    return this.courierCostMarketplace;
939
  }
940
 
941
  public void setCourierCostMarketplace(double courierCostMarketplace) {
942
    this.courierCostMarketplace = courierCostMarketplace;
943
    setCourierCostMarketplaceIsSet(true);
944
  }
945
 
946
  public void unsetCourierCostMarketplace() {
947
    __isset_bit_vector.clear(__COURIERCOSTMARKETPLACE_ISSET_ID);
948
  }
949
 
950
  /** Returns true if field courierCostMarketplace is set (has been assigned a value) and false otherwise */
951
  public boolean isSetCourierCostMarketplace() {
952
    return __isset_bit_vector.get(__COURIERCOSTMARKETPLACE_ISSET_ID);
953
  }
954
 
955
  public void setCourierCostMarketplaceIsSet(boolean value) {
956
    __isset_bit_vector.set(__COURIERCOSTMARKETPLACE_ISSET_ID, value);
957
  }
958
 
12133 kshitij.so 959
  public Item getItem() {
960
    return this.item;
961
  }
962
 
963
  public void setItem(Item item) {
964
    this.item = item;
965
  }
966
 
967
  public void unsetItem() {
968
    this.item = null;
969
  }
970
 
971
  /** Returns true if field item is set (has been assigned a value) and false otherwise */
972
  public boolean isSetItem() {
973
    return this.item != null;
974
  }
975
 
976
  public void setItemIsSet(boolean value) {
977
    if (!value) {
978
      this.item = null;
979
    }
980
  }
981
 
14780 manish.sha 982
  public boolean isIsVoiListed() {
983
    return this.isVoiListed;
984
  }
985
 
986
  public void setIsVoiListed(boolean isVoiListed) {
987
    this.isVoiListed = isVoiListed;
988
    setIsVoiListedIsSet(true);
989
  }
990
 
991
  public void unsetIsVoiListed() {
992
    __isset_bit_vector.clear(__ISVOILISTED_ISSET_ID);
993
  }
994
 
995
  /** Returns true if field isVoiListed is set (has been assigned a value) and false otherwise */
996
  public boolean isSetIsVoiListed() {
997
    return __isset_bit_vector.get(__ISVOILISTED_ISSET_ID);
998
  }
999
 
1000
  public void setIsVoiListedIsSet(boolean value) {
1001
    __isset_bit_vector.set(__ISVOILISTED_ISSET_ID, value);
1002
  }
1003
 
1004
  public double getVoiSellingPrice() {
1005
    return this.voiSellingPrice;
1006
  }
1007
 
1008
  public void setVoiSellingPrice(double voiSellingPrice) {
1009
    this.voiSellingPrice = voiSellingPrice;
1010
    setVoiSellingPriceIsSet(true);
1011
  }
1012
 
1013
  public void unsetVoiSellingPrice() {
1014
    __isset_bit_vector.clear(__VOISELLINGPRICE_ISSET_ID);
1015
  }
1016
 
1017
  /** Returns true if field voiSellingPrice is set (has been assigned a value) and false otherwise */
1018
  public boolean isSetVoiSellingPrice() {
1019
    return __isset_bit_vector.get(__VOISELLINGPRICE_ISSET_ID);
1020
  }
1021
 
1022
  public void setVoiSellingPriceIsSet(boolean value) {
1023
    __isset_bit_vector.set(__VOISELLINGPRICE_ISSET_ID, value);
1024
  }
1025
 
1026
  public boolean isSuppressVoiPriceFeed() {
1027
    return this.suppressVoiPriceFeed;
1028
  }
1029
 
1030
  public void setSuppressVoiPriceFeed(boolean suppressVoiPriceFeed) {
1031
    this.suppressVoiPriceFeed = suppressVoiPriceFeed;
1032
    setSuppressVoiPriceFeedIsSet(true);
1033
  }
1034
 
1035
  public void unsetSuppressVoiPriceFeed() {
1036
    __isset_bit_vector.clear(__SUPPRESSVOIPRICEFEED_ISSET_ID);
1037
  }
1038
 
1039
  /** Returns true if field suppressVoiPriceFeed is set (has been assigned a value) and false otherwise */
1040
  public boolean isSetSuppressVoiPriceFeed() {
1041
    return __isset_bit_vector.get(__SUPPRESSVOIPRICEFEED_ISSET_ID);
1042
  }
1043
 
1044
  public void setSuppressVoiPriceFeedIsSet(boolean value) {
1045
    __isset_bit_vector.set(__SUPPRESSVOIPRICEFEED_ISSET_ID, value);
1046
  }
1047
 
1048
  public long getVoiPriceLastUpdatedOn() {
1049
    return this.voiPriceLastUpdatedOn;
1050
  }
1051
 
1052
  public void setVoiPriceLastUpdatedOn(long voiPriceLastUpdatedOn) {
1053
    this.voiPriceLastUpdatedOn = voiPriceLastUpdatedOn;
1054
    setVoiPriceLastUpdatedOnIsSet(true);
1055
  }
1056
 
1057
  public void unsetVoiPriceLastUpdatedOn() {
1058
    __isset_bit_vector.clear(__VOIPRICELASTUPDATEDON_ISSET_ID);
1059
  }
1060
 
1061
  /** Returns true if field voiPriceLastUpdatedOn is set (has been assigned a value) and false otherwise */
1062
  public boolean isSetVoiPriceLastUpdatedOn() {
1063
    return __isset_bit_vector.get(__VOIPRICELASTUPDATEDON_ISSET_ID);
1064
  }
1065
 
1066
  public void setVoiPriceLastUpdatedOnIsSet(boolean value) {
1067
    __isset_bit_vector.set(__VOIPRICELASTUPDATEDON_ISSET_ID, value);
1068
  }
1069
 
1070
  public String getVoiSkuAtSnapdeal() {
1071
    return this.voiSkuAtSnapdeal;
1072
  }
1073
 
1074
  public void setVoiSkuAtSnapdeal(String voiSkuAtSnapdeal) {
1075
    this.voiSkuAtSnapdeal = voiSkuAtSnapdeal;
1076
  }
1077
 
1078
  public void unsetVoiSkuAtSnapdeal() {
1079
    this.voiSkuAtSnapdeal = null;
1080
  }
1081
 
1082
  /** Returns true if field voiSkuAtSnapdeal is set (has been assigned a value) and false otherwise */
1083
  public boolean isSetVoiSkuAtSnapdeal() {
1084
    return this.voiSkuAtSnapdeal != null;
1085
  }
1086
 
1087
  public void setVoiSkuAtSnapdealIsSet(boolean value) {
1088
    if (!value) {
1089
      this.voiSkuAtSnapdeal = null;
1090
    }
1091
  }
1092
 
1093
  public double getMinimumPossibleSpVoi() {
1094
    return this.minimumPossibleSpVoi;
1095
  }
1096
 
1097
  public void setMinimumPossibleSpVoi(double minimumPossibleSpVoi) {
1098
    this.minimumPossibleSpVoi = minimumPossibleSpVoi;
1099
    setMinimumPossibleSpVoiIsSet(true);
1100
  }
1101
 
1102
  public void unsetMinimumPossibleSpVoi() {
1103
    __isset_bit_vector.clear(__MINIMUMPOSSIBLESPVOI_ISSET_ID);
1104
  }
1105
 
1106
  /** Returns true if field minimumPossibleSpVoi is set (has been assigned a value) and false otherwise */
1107
  public boolean isSetMinimumPossibleSpVoi() {
1108
    return __isset_bit_vector.get(__MINIMUMPOSSIBLESPVOI_ISSET_ID);
1109
  }
1110
 
1111
  public void setMinimumPossibleSpVoiIsSet(boolean value) {
1112
    __isset_bit_vector.set(__MINIMUMPOSSIBLESPVOI_ISSET_ID, value);
1113
  }
1114
 
1115
  public double getMinimumPossibleTpVoi() {
1116
    return this.minimumPossibleTpVoi;
1117
  }
1118
 
1119
  public void setMinimumPossibleTpVoi(double minimumPossibleTpVoi) {
1120
    this.minimumPossibleTpVoi = minimumPossibleTpVoi;
1121
    setMinimumPossibleTpVoiIsSet(true);
1122
  }
1123
 
1124
  public void unsetMinimumPossibleTpVoi() {
1125
    __isset_bit_vector.clear(__MINIMUMPOSSIBLETPVOI_ISSET_ID);
1126
  }
1127
 
1128
  /** Returns true if field minimumPossibleTpVoi is set (has been assigned a value) and false otherwise */
1129
  public boolean isSetMinimumPossibleTpVoi() {
1130
    return __isset_bit_vector.get(__MINIMUMPOSSIBLETPVOI_ISSET_ID);
1131
  }
1132
 
1133
  public void setMinimumPossibleTpVoiIsSet(boolean value) {
1134
    __isset_bit_vector.set(__MINIMUMPOSSIBLETPVOI_ISSET_ID, value);
1135
  }
1136
 
1137
  public double getCourierCostVoi() {
1138
    return this.courierCostVoi;
1139
  }
1140
 
1141
  public void setCourierCostVoi(double courierCostVoi) {
1142
    this.courierCostVoi = courierCostVoi;
1143
    setCourierCostVoiIsSet(true);
1144
  }
1145
 
1146
  public void unsetCourierCostVoi() {
1147
    __isset_bit_vector.clear(__COURIERCOSTVOI_ISSET_ID);
1148
  }
1149
 
1150
  /** Returns true if field courierCostVoi is set (has been assigned a value) and false otherwise */
1151
  public boolean isSetCourierCostVoi() {
1152
    return __isset_bit_vector.get(__COURIERCOSTVOI_ISSET_ID);
1153
  }
1154
 
1155
  public void setCourierCostVoiIsSet(boolean value) {
1156
    __isset_bit_vector.set(__COURIERCOSTVOI_ISSET_ID, value);
1157
  }
1158
 
1159
  public double getServiceTaxVoi() {
1160
    return this.serviceTaxVoi;
1161
  }
1162
 
1163
  public void setServiceTaxVoi(double serviceTaxVoi) {
1164
    this.serviceTaxVoi = serviceTaxVoi;
1165
    setServiceTaxVoiIsSet(true);
1166
  }
1167
 
1168
  public void unsetServiceTaxVoi() {
1169
    __isset_bit_vector.clear(__SERVICETAXVOI_ISSET_ID);
1170
  }
1171
 
1172
  /** Returns true if field serviceTaxVoi is set (has been assigned a value) and false otherwise */
1173
  public boolean isSetServiceTaxVoi() {
1174
    return __isset_bit_vector.get(__SERVICETAXVOI_ISSET_ID);
1175
  }
1176
 
1177
  public void setServiceTaxVoiIsSet(boolean value) {
1178
    __isset_bit_vector.set(__SERVICETAXVOI_ISSET_ID, value);
1179
  }
1180
 
1181
  public double getTransferPriceVoi() {
1182
    return this.transferPriceVoi;
1183
  }
1184
 
1185
  public void setTransferPriceVoi(double transferPriceVoi) {
1186
    this.transferPriceVoi = transferPriceVoi;
1187
    setTransferPriceVoiIsSet(true);
1188
  }
1189
 
1190
  public void unsetTransferPriceVoi() {
1191
    __isset_bit_vector.clear(__TRANSFERPRICEVOI_ISSET_ID);
1192
  }
1193
 
1194
  /** Returns true if field transferPriceVoi is set (has been assigned a value) and false otherwise */
1195
  public boolean isSetTransferPriceVoi() {
1196
    return __isset_bit_vector.get(__TRANSFERPRICEVOI_ISSET_ID);
1197
  }
1198
 
1199
  public void setTransferPriceVoiIsSet(boolean value) {
1200
    __isset_bit_vector.set(__TRANSFERPRICEVOI_ISSET_ID, value);
1201
  }
1202
 
1203
  public double getCommissionVoi() {
1204
    return this.commissionVoi;
1205
  }
1206
 
1207
  public void setCommissionVoi(double commissionVoi) {
1208
    this.commissionVoi = commissionVoi;
1209
    setCommissionVoiIsSet(true);
1210
  }
1211
 
1212
  public void unsetCommissionVoi() {
1213
    __isset_bit_vector.clear(__COMMISSIONVOI_ISSET_ID);
1214
  }
1215
 
1216
  /** Returns true if field commissionVoi is set (has been assigned a value) and false otherwise */
1217
  public boolean isSetCommissionVoi() {
1218
    return __isset_bit_vector.get(__COMMISSIONVOI_ISSET_ID);
1219
  }
1220
 
1221
  public void setCommissionVoiIsSet(boolean value) {
1222
    __isset_bit_vector.set(__COMMISSIONVOI_ISSET_ID, value);
1223
  }
1224
 
14862 manish.sha 1225
  public double getCourierCostMarketplaceVoi() {
1226
    return this.courierCostMarketplaceVoi;
1227
  }
1228
 
1229
  public void setCourierCostMarketplaceVoi(double courierCostMarketplaceVoi) {
1230
    this.courierCostMarketplaceVoi = courierCostMarketplaceVoi;
1231
    setCourierCostMarketplaceVoiIsSet(true);
1232
  }
1233
 
1234
  public void unsetCourierCostMarketplaceVoi() {
1235
    __isset_bit_vector.clear(__COURIERCOSTMARKETPLACEVOI_ISSET_ID);
1236
  }
1237
 
1238
  /** Returns true if field courierCostMarketplaceVoi is set (has been assigned a value) and false otherwise */
1239
  public boolean isSetCourierCostMarketplaceVoi() {
1240
    return __isset_bit_vector.get(__COURIERCOSTMARKETPLACEVOI_ISSET_ID);
1241
  }
1242
 
1243
  public void setCourierCostMarketplaceVoiIsSet(boolean value) {
1244
    __isset_bit_vector.set(__COURIERCOSTMARKETPLACEVOI_ISSET_ID, value);
1245
  }
1246
 
1247
  public double getCommissionPercentageVoi() {
1248
    return this.commissionPercentageVoi;
1249
  }
1250
 
1251
  public void setCommissionPercentageVoi(double commissionPercentageVoi) {
1252
    this.commissionPercentageVoi = commissionPercentageVoi;
1253
    setCommissionPercentageVoiIsSet(true);
1254
  }
1255
 
1256
  public void unsetCommissionPercentageVoi() {
1257
    __isset_bit_vector.clear(__COMMISSIONPERCENTAGEVOI_ISSET_ID);
1258
  }
1259
 
1260
  /** Returns true if field commissionPercentageVoi is set (has been assigned a value) and false otherwise */
1261
  public boolean isSetCommissionPercentageVoi() {
1262
    return __isset_bit_vector.get(__COMMISSIONPERCENTAGEVOI_ISSET_ID);
1263
  }
1264
 
1265
  public void setCommissionPercentageVoiIsSet(boolean value) {
1266
    __isset_bit_vector.set(__COMMISSIONPERCENTAGEVOI_ISSET_ID, value);
1267
  }
1268
 
8739 vikram.rag 1269
  public void setFieldValue(_Fields field, Object value) {
1270
    switch (field) {
1271
    case ITEM_ID:
1272
      if (value == null) {
1273
        unsetItem_id();
1274
      } else {
1275
        setItem_id((Long)value);
1276
      }
1277
      break;
1278
 
1279
    case WAREHOUSE_ID:
1280
      if (value == null) {
1281
        unsetWarehouseId();
1282
      } else {
1283
        setWarehouseId((Long)value);
1284
      }
1285
      break;
1286
 
1287
    case EXCEPTION_PRICE:
1288
      if (value == null) {
1289
        unsetExceptionPrice();
1290
      } else {
1291
        setExceptionPrice((Double)value);
1292
      }
1293
      break;
1294
 
1295
    case IS_LISTED_ON_SNAPDEAL:
1296
      if (value == null) {
1297
        unsetIsListedOnSnapdeal();
1298
      } else {
1299
        setIsListedOnSnapdeal((Boolean)value);
1300
      }
1301
      break;
1302
 
9242 kshitij.so 1303
    case TRANSFER_PRICE:
1304
      if (value == null) {
1305
        unsetTransferPrice();
1306
      } else {
1307
        setTransferPrice((Double)value);
1308
      }
1309
      break;
1310
 
1311
    case SELLING_PRICE:
1312
      if (value == null) {
1313
        unsetSellingPrice();
1314
      } else {
1315
        setSellingPrice((Double)value);
1316
      }
1317
      break;
1318
 
1319
    case COURIER_COST:
1320
      if (value == null) {
1321
        unsetCourierCost();
1322
      } else {
1323
        setCourierCost((Double)value);
1324
      }
1325
      break;
1326
 
1327
    case COMMISSION:
1328
      if (value == null) {
1329
        unsetCommission();
1330
      } else {
1331
        setCommission((Double)value);
1332
      }
1333
      break;
1334
 
1335
    case SERVICE_TAX:
1336
      if (value == null) {
1337
        unsetServiceTax();
1338
      } else {
1339
        setServiceTax((Double)value);
1340
      }
1341
      break;
1342
 
1343
    case SUPPRESS_PRICE_FEED:
1344
      if (value == null) {
1345
        unsetSuppressPriceFeed();
1346
      } else {
1347
        setSuppressPriceFeed((Boolean)value);
1348
      }
1349
      break;
1350
 
1351
    case SUPPRESS_INVENTORY_FEED:
1352
      if (value == null) {
1353
        unsetSuppressInventoryFeed();
1354
      } else {
1355
        setSuppressInventoryFeed((Boolean)value);
1356
      }
1357
      break;
1358
 
9404 vikram.rag 1359
    case MAX_NLC:
1360
      if (value == null) {
1361
        unsetMaxNlc();
1362
      } else {
1363
        setMaxNlc((Double)value);
1364
      }
1365
      break;
1366
 
9456 vikram.rag 1367
    case SKU_AT_SNAPDEAL:
1368
      if (value == null) {
1369
        unsetSkuAtSnapdeal();
1370
      } else {
1371
        setSkuAtSnapdeal((String)value);
1372
      }
1373
      break;
1374
 
9568 kshitij.so 1375
    case SUPC:
1376
      if (value == null) {
1377
        unsetSupc();
1378
      } else {
1379
        setSupc((String)value);
1380
      }
1381
      break;
1382
 
9724 kshitij.so 1383
    case SHIPPING_TIME:
1384
      if (value == null) {
1385
        unsetShippingTime();
1386
      } else {
1387
        setShippingTime((String)value);
1388
      }
1389
      break;
1390
 
9779 kshitij.so 1391
    case UPDATED_BY:
1392
      if (value == null) {
1393
        unsetUpdatedBy();
1394
      } else {
1395
        setUpdatedBy((String)value);
1396
      }
1397
      break;
1398
 
1399
    case MARKETPLACE_ITEMS:
1400
      if (value == null) {
1401
        unsetMarketplaceItems();
1402
      } else {
1403
        setMarketplaceItems((MarketplaceItems)value);
1404
      }
1405
      break;
1406
 
11095 kshitij.so 1407
    case COURIER_COST_MARKETPLACE:
1408
      if (value == null) {
1409
        unsetCourierCostMarketplace();
1410
      } else {
1411
        setCourierCostMarketplace((Double)value);
1412
      }
1413
      break;
1414
 
12133 kshitij.so 1415
    case ITEM:
1416
      if (value == null) {
1417
        unsetItem();
1418
      } else {
1419
        setItem((Item)value);
1420
      }
1421
      break;
1422
 
14780 manish.sha 1423
    case IS_VOI_LISTED:
1424
      if (value == null) {
1425
        unsetIsVoiListed();
1426
      } else {
1427
        setIsVoiListed((Boolean)value);
1428
      }
1429
      break;
1430
 
1431
    case VOI_SELLING_PRICE:
1432
      if (value == null) {
1433
        unsetVoiSellingPrice();
1434
      } else {
1435
        setVoiSellingPrice((Double)value);
1436
      }
1437
      break;
1438
 
1439
    case SUPPRESS_VOI_PRICE_FEED:
1440
      if (value == null) {
1441
        unsetSuppressVoiPriceFeed();
1442
      } else {
1443
        setSuppressVoiPriceFeed((Boolean)value);
1444
      }
1445
      break;
1446
 
1447
    case VOI_PRICE_LAST_UPDATED_ON:
1448
      if (value == null) {
1449
        unsetVoiPriceLastUpdatedOn();
1450
      } else {
1451
        setVoiPriceLastUpdatedOn((Long)value);
1452
      }
1453
      break;
1454
 
1455
    case VOI_SKU_AT_SNAPDEAL:
1456
      if (value == null) {
1457
        unsetVoiSkuAtSnapdeal();
1458
      } else {
1459
        setVoiSkuAtSnapdeal((String)value);
1460
      }
1461
      break;
1462
 
1463
    case MINIMUM_POSSIBLE_SP_VOI:
1464
      if (value == null) {
1465
        unsetMinimumPossibleSpVoi();
1466
      } else {
1467
        setMinimumPossibleSpVoi((Double)value);
1468
      }
1469
      break;
1470
 
1471
    case MINIMUM_POSSIBLE_TP_VOI:
1472
      if (value == null) {
1473
        unsetMinimumPossibleTpVoi();
1474
      } else {
1475
        setMinimumPossibleTpVoi((Double)value);
1476
      }
1477
      break;
1478
 
1479
    case COURIER_COST_VOI:
1480
      if (value == null) {
1481
        unsetCourierCostVoi();
1482
      } else {
1483
        setCourierCostVoi((Double)value);
1484
      }
1485
      break;
1486
 
1487
    case SERVICE_TAX_VOI:
1488
      if (value == null) {
1489
        unsetServiceTaxVoi();
1490
      } else {
1491
        setServiceTaxVoi((Double)value);
1492
      }
1493
      break;
1494
 
1495
    case TRANSFER_PRICE_VOI:
1496
      if (value == null) {
1497
        unsetTransferPriceVoi();
1498
      } else {
1499
        setTransferPriceVoi((Double)value);
1500
      }
1501
      break;
1502
 
1503
    case COMMISSION_VOI:
1504
      if (value == null) {
1505
        unsetCommissionVoi();
1506
      } else {
1507
        setCommissionVoi((Double)value);
1508
      }
1509
      break;
1510
 
14862 manish.sha 1511
    case COURIER_COST_MARKETPLACE_VOI:
1512
      if (value == null) {
1513
        unsetCourierCostMarketplaceVoi();
1514
      } else {
1515
        setCourierCostMarketplaceVoi((Double)value);
1516
      }
1517
      break;
1518
 
1519
    case COMMISSION_PERCENTAGE_VOI:
1520
      if (value == null) {
1521
        unsetCommissionPercentageVoi();
1522
      } else {
1523
        setCommissionPercentageVoi((Double)value);
1524
      }
1525
      break;
1526
 
8739 vikram.rag 1527
    }
1528
  }
1529
 
1530
  public Object getFieldValue(_Fields field) {
1531
    switch (field) {
1532
    case ITEM_ID:
1533
      return Long.valueOf(getItem_id());
1534
 
1535
    case WAREHOUSE_ID:
1536
      return Long.valueOf(getWarehouseId());
1537
 
1538
    case EXCEPTION_PRICE:
1539
      return Double.valueOf(getExceptionPrice());
1540
 
1541
    case IS_LISTED_ON_SNAPDEAL:
1542
      return Boolean.valueOf(isIsListedOnSnapdeal());
1543
 
9242 kshitij.so 1544
    case TRANSFER_PRICE:
1545
      return Double.valueOf(getTransferPrice());
1546
 
1547
    case SELLING_PRICE:
1548
      return Double.valueOf(getSellingPrice());
1549
 
1550
    case COURIER_COST:
1551
      return Double.valueOf(getCourierCost());
1552
 
1553
    case COMMISSION:
1554
      return Double.valueOf(getCommission());
1555
 
1556
    case SERVICE_TAX:
1557
      return Double.valueOf(getServiceTax());
1558
 
1559
    case SUPPRESS_PRICE_FEED:
1560
      return Boolean.valueOf(isSuppressPriceFeed());
1561
 
1562
    case SUPPRESS_INVENTORY_FEED:
1563
      return Boolean.valueOf(isSuppressInventoryFeed());
1564
 
9404 vikram.rag 1565
    case MAX_NLC:
1566
      return Double.valueOf(getMaxNlc());
1567
 
9456 vikram.rag 1568
    case SKU_AT_SNAPDEAL:
1569
      return getSkuAtSnapdeal();
1570
 
9568 kshitij.so 1571
    case SUPC:
1572
      return getSupc();
1573
 
9724 kshitij.so 1574
    case SHIPPING_TIME:
1575
      return getShippingTime();
1576
 
9779 kshitij.so 1577
    case UPDATED_BY:
1578
      return getUpdatedBy();
1579
 
1580
    case MARKETPLACE_ITEMS:
1581
      return getMarketplaceItems();
1582
 
11095 kshitij.so 1583
    case COURIER_COST_MARKETPLACE:
1584
      return Double.valueOf(getCourierCostMarketplace());
1585
 
12133 kshitij.so 1586
    case ITEM:
1587
      return getItem();
1588
 
14780 manish.sha 1589
    case IS_VOI_LISTED:
1590
      return Boolean.valueOf(isIsVoiListed());
1591
 
1592
    case VOI_SELLING_PRICE:
1593
      return Double.valueOf(getVoiSellingPrice());
1594
 
1595
    case SUPPRESS_VOI_PRICE_FEED:
1596
      return Boolean.valueOf(isSuppressVoiPriceFeed());
1597
 
1598
    case VOI_PRICE_LAST_UPDATED_ON:
1599
      return Long.valueOf(getVoiPriceLastUpdatedOn());
1600
 
1601
    case VOI_SKU_AT_SNAPDEAL:
1602
      return getVoiSkuAtSnapdeal();
1603
 
1604
    case MINIMUM_POSSIBLE_SP_VOI:
1605
      return Double.valueOf(getMinimumPossibleSpVoi());
1606
 
1607
    case MINIMUM_POSSIBLE_TP_VOI:
1608
      return Double.valueOf(getMinimumPossibleTpVoi());
1609
 
1610
    case COURIER_COST_VOI:
1611
      return Double.valueOf(getCourierCostVoi());
1612
 
1613
    case SERVICE_TAX_VOI:
1614
      return Double.valueOf(getServiceTaxVoi());
1615
 
1616
    case TRANSFER_PRICE_VOI:
1617
      return Double.valueOf(getTransferPriceVoi());
1618
 
1619
    case COMMISSION_VOI:
1620
      return Double.valueOf(getCommissionVoi());
1621
 
14862 manish.sha 1622
    case COURIER_COST_MARKETPLACE_VOI:
1623
      return Double.valueOf(getCourierCostMarketplaceVoi());
1624
 
1625
    case COMMISSION_PERCENTAGE_VOI:
1626
      return Double.valueOf(getCommissionPercentageVoi());
1627
 
8739 vikram.rag 1628
    }
1629
    throw new IllegalStateException();
1630
  }
1631
 
1632
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1633
  public boolean isSet(_Fields field) {
1634
    if (field == null) {
1635
      throw new IllegalArgumentException();
1636
    }
1637
 
1638
    switch (field) {
1639
    case ITEM_ID:
1640
      return isSetItem_id();
1641
    case WAREHOUSE_ID:
1642
      return isSetWarehouseId();
1643
    case EXCEPTION_PRICE:
1644
      return isSetExceptionPrice();
1645
    case IS_LISTED_ON_SNAPDEAL:
1646
      return isSetIsListedOnSnapdeal();
9242 kshitij.so 1647
    case TRANSFER_PRICE:
1648
      return isSetTransferPrice();
1649
    case SELLING_PRICE:
1650
      return isSetSellingPrice();
1651
    case COURIER_COST:
1652
      return isSetCourierCost();
1653
    case COMMISSION:
1654
      return isSetCommission();
1655
    case SERVICE_TAX:
1656
      return isSetServiceTax();
1657
    case SUPPRESS_PRICE_FEED:
1658
      return isSetSuppressPriceFeed();
1659
    case SUPPRESS_INVENTORY_FEED:
1660
      return isSetSuppressInventoryFeed();
9404 vikram.rag 1661
    case MAX_NLC:
1662
      return isSetMaxNlc();
9456 vikram.rag 1663
    case SKU_AT_SNAPDEAL:
1664
      return isSetSkuAtSnapdeal();
9568 kshitij.so 1665
    case SUPC:
1666
      return isSetSupc();
9724 kshitij.so 1667
    case SHIPPING_TIME:
1668
      return isSetShippingTime();
9779 kshitij.so 1669
    case UPDATED_BY:
1670
      return isSetUpdatedBy();
1671
    case MARKETPLACE_ITEMS:
1672
      return isSetMarketplaceItems();
11095 kshitij.so 1673
    case COURIER_COST_MARKETPLACE:
1674
      return isSetCourierCostMarketplace();
12133 kshitij.so 1675
    case ITEM:
1676
      return isSetItem();
14780 manish.sha 1677
    case IS_VOI_LISTED:
1678
      return isSetIsVoiListed();
1679
    case VOI_SELLING_PRICE:
1680
      return isSetVoiSellingPrice();
1681
    case SUPPRESS_VOI_PRICE_FEED:
1682
      return isSetSuppressVoiPriceFeed();
1683
    case VOI_PRICE_LAST_UPDATED_ON:
1684
      return isSetVoiPriceLastUpdatedOn();
1685
    case VOI_SKU_AT_SNAPDEAL:
1686
      return isSetVoiSkuAtSnapdeal();
1687
    case MINIMUM_POSSIBLE_SP_VOI:
1688
      return isSetMinimumPossibleSpVoi();
1689
    case MINIMUM_POSSIBLE_TP_VOI:
1690
      return isSetMinimumPossibleTpVoi();
1691
    case COURIER_COST_VOI:
1692
      return isSetCourierCostVoi();
1693
    case SERVICE_TAX_VOI:
1694
      return isSetServiceTaxVoi();
1695
    case TRANSFER_PRICE_VOI:
1696
      return isSetTransferPriceVoi();
1697
    case COMMISSION_VOI:
1698
      return isSetCommissionVoi();
14862 manish.sha 1699
    case COURIER_COST_MARKETPLACE_VOI:
1700
      return isSetCourierCostMarketplaceVoi();
1701
    case COMMISSION_PERCENTAGE_VOI:
1702
      return isSetCommissionPercentageVoi();
8739 vikram.rag 1703
    }
1704
    throw new IllegalStateException();
1705
  }
1706
 
1707
  @Override
1708
  public boolean equals(Object that) {
1709
    if (that == null)
1710
      return false;
1711
    if (that instanceof SnapdealItem)
1712
      return this.equals((SnapdealItem)that);
1713
    return false;
1714
  }
1715
 
1716
  public boolean equals(SnapdealItem that) {
1717
    if (that == null)
1718
      return false;
1719
 
1720
    boolean this_present_item_id = true;
1721
    boolean that_present_item_id = true;
1722
    if (this_present_item_id || that_present_item_id) {
1723
      if (!(this_present_item_id && that_present_item_id))
1724
        return false;
1725
      if (this.item_id != that.item_id)
1726
        return false;
1727
    }
1728
 
1729
    boolean this_present_warehouseId = true;
1730
    boolean that_present_warehouseId = true;
1731
    if (this_present_warehouseId || that_present_warehouseId) {
1732
      if (!(this_present_warehouseId && that_present_warehouseId))
1733
        return false;
1734
      if (this.warehouseId != that.warehouseId)
1735
        return false;
1736
    }
1737
 
1738
    boolean this_present_exceptionPrice = true;
1739
    boolean that_present_exceptionPrice = true;
1740
    if (this_present_exceptionPrice || that_present_exceptionPrice) {
1741
      if (!(this_present_exceptionPrice && that_present_exceptionPrice))
1742
        return false;
1743
      if (this.exceptionPrice != that.exceptionPrice)
1744
        return false;
1745
    }
1746
 
1747
    boolean this_present_isListedOnSnapdeal = true;
1748
    boolean that_present_isListedOnSnapdeal = true;
1749
    if (this_present_isListedOnSnapdeal || that_present_isListedOnSnapdeal) {
1750
      if (!(this_present_isListedOnSnapdeal && that_present_isListedOnSnapdeal))
1751
        return false;
1752
      if (this.isListedOnSnapdeal != that.isListedOnSnapdeal)
1753
        return false;
1754
    }
1755
 
9242 kshitij.so 1756
    boolean this_present_transferPrice = true;
1757
    boolean that_present_transferPrice = true;
1758
    if (this_present_transferPrice || that_present_transferPrice) {
1759
      if (!(this_present_transferPrice && that_present_transferPrice))
1760
        return false;
1761
      if (this.transferPrice != that.transferPrice)
1762
        return false;
1763
    }
1764
 
1765
    boolean this_present_sellingPrice = true;
1766
    boolean that_present_sellingPrice = true;
1767
    if (this_present_sellingPrice || that_present_sellingPrice) {
1768
      if (!(this_present_sellingPrice && that_present_sellingPrice))
1769
        return false;
1770
      if (this.sellingPrice != that.sellingPrice)
1771
        return false;
1772
    }
1773
 
1774
    boolean this_present_courierCost = true;
1775
    boolean that_present_courierCost = true;
1776
    if (this_present_courierCost || that_present_courierCost) {
1777
      if (!(this_present_courierCost && that_present_courierCost))
1778
        return false;
1779
      if (this.courierCost != that.courierCost)
1780
        return false;
1781
    }
1782
 
1783
    boolean this_present_commission = true;
1784
    boolean that_present_commission = true;
1785
    if (this_present_commission || that_present_commission) {
1786
      if (!(this_present_commission && that_present_commission))
1787
        return false;
1788
      if (this.commission != that.commission)
1789
        return false;
1790
    }
1791
 
1792
    boolean this_present_serviceTax = true;
1793
    boolean that_present_serviceTax = true;
1794
    if (this_present_serviceTax || that_present_serviceTax) {
1795
      if (!(this_present_serviceTax && that_present_serviceTax))
1796
        return false;
1797
      if (this.serviceTax != that.serviceTax)
1798
        return false;
1799
    }
1800
 
1801
    boolean this_present_suppressPriceFeed = true;
1802
    boolean that_present_suppressPriceFeed = true;
1803
    if (this_present_suppressPriceFeed || that_present_suppressPriceFeed) {
1804
      if (!(this_present_suppressPriceFeed && that_present_suppressPriceFeed))
1805
        return false;
1806
      if (this.suppressPriceFeed != that.suppressPriceFeed)
1807
        return false;
1808
    }
1809
 
1810
    boolean this_present_suppressInventoryFeed = true;
1811
    boolean that_present_suppressInventoryFeed = true;
1812
    if (this_present_suppressInventoryFeed || that_present_suppressInventoryFeed) {
1813
      if (!(this_present_suppressInventoryFeed && that_present_suppressInventoryFeed))
1814
        return false;
1815
      if (this.suppressInventoryFeed != that.suppressInventoryFeed)
1816
        return false;
1817
    }
1818
 
9404 vikram.rag 1819
    boolean this_present_maxNlc = true;
1820
    boolean that_present_maxNlc = true;
1821
    if (this_present_maxNlc || that_present_maxNlc) {
1822
      if (!(this_present_maxNlc && that_present_maxNlc))
1823
        return false;
1824
      if (this.maxNlc != that.maxNlc)
1825
        return false;
1826
    }
1827
 
9456 vikram.rag 1828
    boolean this_present_skuAtSnapdeal = true && this.isSetSkuAtSnapdeal();
1829
    boolean that_present_skuAtSnapdeal = true && that.isSetSkuAtSnapdeal();
1830
    if (this_present_skuAtSnapdeal || that_present_skuAtSnapdeal) {
1831
      if (!(this_present_skuAtSnapdeal && that_present_skuAtSnapdeal))
1832
        return false;
1833
      if (!this.skuAtSnapdeal.equals(that.skuAtSnapdeal))
1834
        return false;
1835
    }
1836
 
9568 kshitij.so 1837
    boolean this_present_supc = true && this.isSetSupc();
1838
    boolean that_present_supc = true && that.isSetSupc();
1839
    if (this_present_supc || that_present_supc) {
1840
      if (!(this_present_supc && that_present_supc))
1841
        return false;
1842
      if (!this.supc.equals(that.supc))
1843
        return false;
1844
    }
1845
 
9724 kshitij.so 1846
    boolean this_present_shippingTime = true && this.isSetShippingTime();
1847
    boolean that_present_shippingTime = true && that.isSetShippingTime();
1848
    if (this_present_shippingTime || that_present_shippingTime) {
1849
      if (!(this_present_shippingTime && that_present_shippingTime))
1850
        return false;
1851
      if (!this.shippingTime.equals(that.shippingTime))
1852
        return false;
1853
    }
1854
 
9779 kshitij.so 1855
    boolean this_present_updatedBy = true && this.isSetUpdatedBy();
1856
    boolean that_present_updatedBy = true && that.isSetUpdatedBy();
1857
    if (this_present_updatedBy || that_present_updatedBy) {
1858
      if (!(this_present_updatedBy && that_present_updatedBy))
1859
        return false;
1860
      if (!this.updatedBy.equals(that.updatedBy))
1861
        return false;
1862
    }
1863
 
1864
    boolean this_present_marketplaceItems = true && this.isSetMarketplaceItems();
1865
    boolean that_present_marketplaceItems = true && that.isSetMarketplaceItems();
1866
    if (this_present_marketplaceItems || that_present_marketplaceItems) {
1867
      if (!(this_present_marketplaceItems && that_present_marketplaceItems))
1868
        return false;
1869
      if (!this.marketplaceItems.equals(that.marketplaceItems))
1870
        return false;
1871
    }
1872
 
11095 kshitij.so 1873
    boolean this_present_courierCostMarketplace = true;
1874
    boolean that_present_courierCostMarketplace = true;
1875
    if (this_present_courierCostMarketplace || that_present_courierCostMarketplace) {
1876
      if (!(this_present_courierCostMarketplace && that_present_courierCostMarketplace))
1877
        return false;
1878
      if (this.courierCostMarketplace != that.courierCostMarketplace)
1879
        return false;
1880
    }
1881
 
12133 kshitij.so 1882
    boolean this_present_item = true && this.isSetItem();
1883
    boolean that_present_item = true && that.isSetItem();
1884
    if (this_present_item || that_present_item) {
1885
      if (!(this_present_item && that_present_item))
1886
        return false;
1887
      if (!this.item.equals(that.item))
1888
        return false;
1889
    }
1890
 
14780 manish.sha 1891
    boolean this_present_isVoiListed = true;
1892
    boolean that_present_isVoiListed = true;
1893
    if (this_present_isVoiListed || that_present_isVoiListed) {
1894
      if (!(this_present_isVoiListed && that_present_isVoiListed))
1895
        return false;
1896
      if (this.isVoiListed != that.isVoiListed)
1897
        return false;
1898
    }
1899
 
1900
    boolean this_present_voiSellingPrice = true;
1901
    boolean that_present_voiSellingPrice = true;
1902
    if (this_present_voiSellingPrice || that_present_voiSellingPrice) {
1903
      if (!(this_present_voiSellingPrice && that_present_voiSellingPrice))
1904
        return false;
1905
      if (this.voiSellingPrice != that.voiSellingPrice)
1906
        return false;
1907
    }
1908
 
1909
    boolean this_present_suppressVoiPriceFeed = true;
1910
    boolean that_present_suppressVoiPriceFeed = true;
1911
    if (this_present_suppressVoiPriceFeed || that_present_suppressVoiPriceFeed) {
1912
      if (!(this_present_suppressVoiPriceFeed && that_present_suppressVoiPriceFeed))
1913
        return false;
1914
      if (this.suppressVoiPriceFeed != that.suppressVoiPriceFeed)
1915
        return false;
1916
    }
1917
 
1918
    boolean this_present_voiPriceLastUpdatedOn = true;
1919
    boolean that_present_voiPriceLastUpdatedOn = true;
1920
    if (this_present_voiPriceLastUpdatedOn || that_present_voiPriceLastUpdatedOn) {
1921
      if (!(this_present_voiPriceLastUpdatedOn && that_present_voiPriceLastUpdatedOn))
1922
        return false;
1923
      if (this.voiPriceLastUpdatedOn != that.voiPriceLastUpdatedOn)
1924
        return false;
1925
    }
1926
 
1927
    boolean this_present_voiSkuAtSnapdeal = true && this.isSetVoiSkuAtSnapdeal();
1928
    boolean that_present_voiSkuAtSnapdeal = true && that.isSetVoiSkuAtSnapdeal();
1929
    if (this_present_voiSkuAtSnapdeal || that_present_voiSkuAtSnapdeal) {
1930
      if (!(this_present_voiSkuAtSnapdeal && that_present_voiSkuAtSnapdeal))
1931
        return false;
1932
      if (!this.voiSkuAtSnapdeal.equals(that.voiSkuAtSnapdeal))
1933
        return false;
1934
    }
1935
 
1936
    boolean this_present_minimumPossibleSpVoi = true;
1937
    boolean that_present_minimumPossibleSpVoi = true;
1938
    if (this_present_minimumPossibleSpVoi || that_present_minimumPossibleSpVoi) {
1939
      if (!(this_present_minimumPossibleSpVoi && that_present_minimumPossibleSpVoi))
1940
        return false;
1941
      if (this.minimumPossibleSpVoi != that.minimumPossibleSpVoi)
1942
        return false;
1943
    }
1944
 
1945
    boolean this_present_minimumPossibleTpVoi = true;
1946
    boolean that_present_minimumPossibleTpVoi = true;
1947
    if (this_present_minimumPossibleTpVoi || that_present_minimumPossibleTpVoi) {
1948
      if (!(this_present_minimumPossibleTpVoi && that_present_minimumPossibleTpVoi))
1949
        return false;
1950
      if (this.minimumPossibleTpVoi != that.minimumPossibleTpVoi)
1951
        return false;
1952
    }
1953
 
1954
    boolean this_present_courierCostVoi = true;
1955
    boolean that_present_courierCostVoi = true;
1956
    if (this_present_courierCostVoi || that_present_courierCostVoi) {
1957
      if (!(this_present_courierCostVoi && that_present_courierCostVoi))
1958
        return false;
1959
      if (this.courierCostVoi != that.courierCostVoi)
1960
        return false;
1961
    }
1962
 
1963
    boolean this_present_serviceTaxVoi = true;
1964
    boolean that_present_serviceTaxVoi = true;
1965
    if (this_present_serviceTaxVoi || that_present_serviceTaxVoi) {
1966
      if (!(this_present_serviceTaxVoi && that_present_serviceTaxVoi))
1967
        return false;
1968
      if (this.serviceTaxVoi != that.serviceTaxVoi)
1969
        return false;
1970
    }
1971
 
1972
    boolean this_present_transferPriceVoi = true;
1973
    boolean that_present_transferPriceVoi = true;
1974
    if (this_present_transferPriceVoi || that_present_transferPriceVoi) {
1975
      if (!(this_present_transferPriceVoi && that_present_transferPriceVoi))
1976
        return false;
1977
      if (this.transferPriceVoi != that.transferPriceVoi)
1978
        return false;
1979
    }
1980
 
1981
    boolean this_present_commissionVoi = true;
1982
    boolean that_present_commissionVoi = true;
1983
    if (this_present_commissionVoi || that_present_commissionVoi) {
1984
      if (!(this_present_commissionVoi && that_present_commissionVoi))
1985
        return false;
1986
      if (this.commissionVoi != that.commissionVoi)
1987
        return false;
1988
    }
1989
 
14862 manish.sha 1990
    boolean this_present_courierCostMarketplaceVoi = true;
1991
    boolean that_present_courierCostMarketplaceVoi = true;
1992
    if (this_present_courierCostMarketplaceVoi || that_present_courierCostMarketplaceVoi) {
1993
      if (!(this_present_courierCostMarketplaceVoi && that_present_courierCostMarketplaceVoi))
1994
        return false;
1995
      if (this.courierCostMarketplaceVoi != that.courierCostMarketplaceVoi)
1996
        return false;
1997
    }
1998
 
1999
    boolean this_present_commissionPercentageVoi = true;
2000
    boolean that_present_commissionPercentageVoi = true;
2001
    if (this_present_commissionPercentageVoi || that_present_commissionPercentageVoi) {
2002
      if (!(this_present_commissionPercentageVoi && that_present_commissionPercentageVoi))
2003
        return false;
2004
      if (this.commissionPercentageVoi != that.commissionPercentageVoi)
2005
        return false;
2006
    }
2007
 
8739 vikram.rag 2008
    return true;
2009
  }
2010
 
2011
  @Override
2012
  public int hashCode() {
2013
    return 0;
2014
  }
2015
 
2016
  public int compareTo(SnapdealItem other) {
2017
    if (!getClass().equals(other.getClass())) {
2018
      return getClass().getName().compareTo(other.getClass().getName());
2019
    }
2020
 
2021
    int lastComparison = 0;
2022
    SnapdealItem typedOther = (SnapdealItem)other;
2023
 
2024
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
2025
    if (lastComparison != 0) {
2026
      return lastComparison;
2027
    }
2028
    if (isSetItem_id()) {
2029
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
2030
      if (lastComparison != 0) {
2031
        return lastComparison;
2032
      }
2033
    }
2034
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
2035
    if (lastComparison != 0) {
2036
      return lastComparison;
2037
    }
2038
    if (isSetWarehouseId()) {
2039
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
2040
      if (lastComparison != 0) {
2041
        return lastComparison;
2042
      }
2043
    }
2044
    lastComparison = Boolean.valueOf(isSetExceptionPrice()).compareTo(typedOther.isSetExceptionPrice());
2045
    if (lastComparison != 0) {
2046
      return lastComparison;
2047
    }
2048
    if (isSetExceptionPrice()) {
2049
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exceptionPrice, typedOther.exceptionPrice);
2050
      if (lastComparison != 0) {
2051
        return lastComparison;
2052
      }
2053
    }
2054
    lastComparison = Boolean.valueOf(isSetIsListedOnSnapdeal()).compareTo(typedOther.isSetIsListedOnSnapdeal());
2055
    if (lastComparison != 0) {
2056
      return lastComparison;
2057
    }
2058
    if (isSetIsListedOnSnapdeal()) {
2059
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnSnapdeal, typedOther.isListedOnSnapdeal);
2060
      if (lastComparison != 0) {
2061
        return lastComparison;
2062
      }
2063
    }
9242 kshitij.so 2064
    lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());
2065
    if (lastComparison != 0) {
2066
      return lastComparison;
2067
    }
2068
    if (isSetTransferPrice()) {
2069
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);
2070
      if (lastComparison != 0) {
2071
        return lastComparison;
2072
      }
2073
    }
2074
    lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());
2075
    if (lastComparison != 0) {
2076
      return lastComparison;
2077
    }
2078
    if (isSetSellingPrice()) {
2079
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);
2080
      if (lastComparison != 0) {
2081
        return lastComparison;
2082
      }
2083
    }
2084
    lastComparison = Boolean.valueOf(isSetCourierCost()).compareTo(typedOther.isSetCourierCost());
2085
    if (lastComparison != 0) {
2086
      return lastComparison;
2087
    }
2088
    if (isSetCourierCost()) {
2089
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCost, typedOther.courierCost);
2090
      if (lastComparison != 0) {
2091
        return lastComparison;
2092
      }
2093
    }
2094
    lastComparison = Boolean.valueOf(isSetCommission()).compareTo(typedOther.isSetCommission());
2095
    if (lastComparison != 0) {
2096
      return lastComparison;
2097
    }
2098
    if (isSetCommission()) {
2099
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commission, typedOther.commission);
2100
      if (lastComparison != 0) {
2101
        return lastComparison;
2102
      }
2103
    }
2104
    lastComparison = Boolean.valueOf(isSetServiceTax()).compareTo(typedOther.isSetServiceTax());
2105
    if (lastComparison != 0) {
2106
      return lastComparison;
2107
    }
2108
    if (isSetServiceTax()) {
2109
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTax, typedOther.serviceTax);
2110
      if (lastComparison != 0) {
2111
        return lastComparison;
2112
      }
2113
    }
2114
    lastComparison = Boolean.valueOf(isSetSuppressPriceFeed()).compareTo(typedOther.isSetSuppressPriceFeed());
2115
    if (lastComparison != 0) {
2116
      return lastComparison;
2117
    }
2118
    if (isSetSuppressPriceFeed()) {
2119
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressPriceFeed, typedOther.suppressPriceFeed);
2120
      if (lastComparison != 0) {
2121
        return lastComparison;
2122
      }
2123
    }
2124
    lastComparison = Boolean.valueOf(isSetSuppressInventoryFeed()).compareTo(typedOther.isSetSuppressInventoryFeed());
2125
    if (lastComparison != 0) {
2126
      return lastComparison;
2127
    }
2128
    if (isSetSuppressInventoryFeed()) {
2129
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressInventoryFeed, typedOther.suppressInventoryFeed);
2130
      if (lastComparison != 0) {
2131
        return lastComparison;
2132
      }
2133
    }
9404 vikram.rag 2134
    lastComparison = Boolean.valueOf(isSetMaxNlc()).compareTo(typedOther.isSetMaxNlc());
2135
    if (lastComparison != 0) {
2136
      return lastComparison;
2137
    }
2138
    if (isSetMaxNlc()) {
2139
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxNlc, typedOther.maxNlc);
2140
      if (lastComparison != 0) {
2141
        return lastComparison;
2142
      }
2143
    }
9456 vikram.rag 2144
    lastComparison = Boolean.valueOf(isSetSkuAtSnapdeal()).compareTo(typedOther.isSetSkuAtSnapdeal());
2145
    if (lastComparison != 0) {
2146
      return lastComparison;
2147
    }
2148
    if (isSetSkuAtSnapdeal()) {
2149
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtSnapdeal, typedOther.skuAtSnapdeal);
2150
      if (lastComparison != 0) {
2151
        return lastComparison;
2152
      }
2153
    }
9568 kshitij.so 2154
    lastComparison = Boolean.valueOf(isSetSupc()).compareTo(typedOther.isSetSupc());
2155
    if (lastComparison != 0) {
2156
      return lastComparison;
2157
    }
2158
    if (isSetSupc()) {
2159
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supc, typedOther.supc);
2160
      if (lastComparison != 0) {
2161
        return lastComparison;
2162
      }
2163
    }
9724 kshitij.so 2164
    lastComparison = Boolean.valueOf(isSetShippingTime()).compareTo(typedOther.isSetShippingTime());
2165
    if (lastComparison != 0) {
2166
      return lastComparison;
2167
    }
2168
    if (isSetShippingTime()) {
2169
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingTime, typedOther.shippingTime);
2170
      if (lastComparison != 0) {
2171
        return lastComparison;
2172
      }
2173
    }
9779 kshitij.so 2174
    lastComparison = Boolean.valueOf(isSetUpdatedBy()).compareTo(typedOther.isSetUpdatedBy());
2175
    if (lastComparison != 0) {
2176
      return lastComparison;
2177
    }
2178
    if (isSetUpdatedBy()) {
2179
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedBy, typedOther.updatedBy);
2180
      if (lastComparison != 0) {
2181
        return lastComparison;
2182
      }
2183
    }
2184
    lastComparison = Boolean.valueOf(isSetMarketplaceItems()).compareTo(typedOther.isSetMarketplaceItems());
2185
    if (lastComparison != 0) {
2186
      return lastComparison;
2187
    }
2188
    if (isSetMarketplaceItems()) {
2189
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.marketplaceItems, typedOther.marketplaceItems);
2190
      if (lastComparison != 0) {
2191
        return lastComparison;
2192
      }
2193
    }
11095 kshitij.so 2194
    lastComparison = Boolean.valueOf(isSetCourierCostMarketplace()).compareTo(typedOther.isSetCourierCostMarketplace());
2195
    if (lastComparison != 0) {
2196
      return lastComparison;
2197
    }
2198
    if (isSetCourierCostMarketplace()) {
2199
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCostMarketplace, typedOther.courierCostMarketplace);
2200
      if (lastComparison != 0) {
2201
        return lastComparison;
2202
      }
2203
    }
12133 kshitij.so 2204
    lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());
2205
    if (lastComparison != 0) {
2206
      return lastComparison;
2207
    }
2208
    if (isSetItem()) {
2209
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);
2210
      if (lastComparison != 0) {
2211
        return lastComparison;
2212
      }
2213
    }
14780 manish.sha 2214
    lastComparison = Boolean.valueOf(isSetIsVoiListed()).compareTo(typedOther.isSetIsVoiListed());
2215
    if (lastComparison != 0) {
2216
      return lastComparison;
2217
    }
2218
    if (isSetIsVoiListed()) {
2219
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isVoiListed, typedOther.isVoiListed);
2220
      if (lastComparison != 0) {
2221
        return lastComparison;
2222
      }
2223
    }
2224
    lastComparison = Boolean.valueOf(isSetVoiSellingPrice()).compareTo(typedOther.isSetVoiSellingPrice());
2225
    if (lastComparison != 0) {
2226
      return lastComparison;
2227
    }
2228
    if (isSetVoiSellingPrice()) {
2229
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voiSellingPrice, typedOther.voiSellingPrice);
2230
      if (lastComparison != 0) {
2231
        return lastComparison;
2232
      }
2233
    }
2234
    lastComparison = Boolean.valueOf(isSetSuppressVoiPriceFeed()).compareTo(typedOther.isSetSuppressVoiPriceFeed());
2235
    if (lastComparison != 0) {
2236
      return lastComparison;
2237
    }
2238
    if (isSetSuppressVoiPriceFeed()) {
2239
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressVoiPriceFeed, typedOther.suppressVoiPriceFeed);
2240
      if (lastComparison != 0) {
2241
        return lastComparison;
2242
      }
2243
    }
2244
    lastComparison = Boolean.valueOf(isSetVoiPriceLastUpdatedOn()).compareTo(typedOther.isSetVoiPriceLastUpdatedOn());
2245
    if (lastComparison != 0) {
2246
      return lastComparison;
2247
    }
2248
    if (isSetVoiPriceLastUpdatedOn()) {
2249
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voiPriceLastUpdatedOn, typedOther.voiPriceLastUpdatedOn);
2250
      if (lastComparison != 0) {
2251
        return lastComparison;
2252
      }
2253
    }
2254
    lastComparison = Boolean.valueOf(isSetVoiSkuAtSnapdeal()).compareTo(typedOther.isSetVoiSkuAtSnapdeal());
2255
    if (lastComparison != 0) {
2256
      return lastComparison;
2257
    }
2258
    if (isSetVoiSkuAtSnapdeal()) {
2259
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voiSkuAtSnapdeal, typedOther.voiSkuAtSnapdeal);
2260
      if (lastComparison != 0) {
2261
        return lastComparison;
2262
      }
2263
    }
2264
    lastComparison = Boolean.valueOf(isSetMinimumPossibleSpVoi()).compareTo(typedOther.isSetMinimumPossibleSpVoi());
2265
    if (lastComparison != 0) {
2266
      return lastComparison;
2267
    }
2268
    if (isSetMinimumPossibleSpVoi()) {
2269
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minimumPossibleSpVoi, typedOther.minimumPossibleSpVoi);
2270
      if (lastComparison != 0) {
2271
        return lastComparison;
2272
      }
2273
    }
2274
    lastComparison = Boolean.valueOf(isSetMinimumPossibleTpVoi()).compareTo(typedOther.isSetMinimumPossibleTpVoi());
2275
    if (lastComparison != 0) {
2276
      return lastComparison;
2277
    }
2278
    if (isSetMinimumPossibleTpVoi()) {
2279
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minimumPossibleTpVoi, typedOther.minimumPossibleTpVoi);
2280
      if (lastComparison != 0) {
2281
        return lastComparison;
2282
      }
2283
    }
2284
    lastComparison = Boolean.valueOf(isSetCourierCostVoi()).compareTo(typedOther.isSetCourierCostVoi());
2285
    if (lastComparison != 0) {
2286
      return lastComparison;
2287
    }
2288
    if (isSetCourierCostVoi()) {
2289
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCostVoi, typedOther.courierCostVoi);
2290
      if (lastComparison != 0) {
2291
        return lastComparison;
2292
      }
2293
    }
2294
    lastComparison = Boolean.valueOf(isSetServiceTaxVoi()).compareTo(typedOther.isSetServiceTaxVoi());
2295
    if (lastComparison != 0) {
2296
      return lastComparison;
2297
    }
2298
    if (isSetServiceTaxVoi()) {
2299
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTaxVoi, typedOther.serviceTaxVoi);
2300
      if (lastComparison != 0) {
2301
        return lastComparison;
2302
      }
2303
    }
2304
    lastComparison = Boolean.valueOf(isSetTransferPriceVoi()).compareTo(typedOther.isSetTransferPriceVoi());
2305
    if (lastComparison != 0) {
2306
      return lastComparison;
2307
    }
2308
    if (isSetTransferPriceVoi()) {
2309
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPriceVoi, typedOther.transferPriceVoi);
2310
      if (lastComparison != 0) {
2311
        return lastComparison;
2312
      }
2313
    }
2314
    lastComparison = Boolean.valueOf(isSetCommissionVoi()).compareTo(typedOther.isSetCommissionVoi());
2315
    if (lastComparison != 0) {
2316
      return lastComparison;
2317
    }
2318
    if (isSetCommissionVoi()) {
2319
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commissionVoi, typedOther.commissionVoi);
2320
      if (lastComparison != 0) {
2321
        return lastComparison;
2322
      }
2323
    }
14862 manish.sha 2324
    lastComparison = Boolean.valueOf(isSetCourierCostMarketplaceVoi()).compareTo(typedOther.isSetCourierCostMarketplaceVoi());
2325
    if (lastComparison != 0) {
2326
      return lastComparison;
2327
    }
2328
    if (isSetCourierCostMarketplaceVoi()) {
2329
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCostMarketplaceVoi, typedOther.courierCostMarketplaceVoi);
2330
      if (lastComparison != 0) {
2331
        return lastComparison;
2332
      }
2333
    }
2334
    lastComparison = Boolean.valueOf(isSetCommissionPercentageVoi()).compareTo(typedOther.isSetCommissionPercentageVoi());
2335
    if (lastComparison != 0) {
2336
      return lastComparison;
2337
    }
2338
    if (isSetCommissionPercentageVoi()) {
2339
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commissionPercentageVoi, typedOther.commissionPercentageVoi);
2340
      if (lastComparison != 0) {
2341
        return lastComparison;
2342
      }
2343
    }
8739 vikram.rag 2344
    return 0;
2345
  }
2346
 
2347
  public _Fields fieldForId(int fieldId) {
2348
    return _Fields.findByThriftId(fieldId);
2349
  }
2350
 
2351
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2352
    org.apache.thrift.protocol.TField field;
2353
    iprot.readStructBegin();
2354
    while (true)
2355
    {
2356
      field = iprot.readFieldBegin();
2357
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2358
        break;
2359
      }
2360
      switch (field.id) {
2361
        case 1: // ITEM_ID
2362
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2363
            this.item_id = iprot.readI64();
2364
            setItem_idIsSet(true);
2365
          } else { 
2366
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2367
          }
2368
          break;
2369
        case 2: // WAREHOUSE_ID
2370
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2371
            this.warehouseId = iprot.readI64();
2372
            setWarehouseIdIsSet(true);
2373
          } else { 
2374
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2375
          }
2376
          break;
2377
        case 3: // EXCEPTION_PRICE
2378
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2379
            this.exceptionPrice = iprot.readDouble();
2380
            setExceptionPriceIsSet(true);
2381
          } else { 
2382
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2383
          }
2384
          break;
2385
        case 4: // IS_LISTED_ON_SNAPDEAL
2386
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2387
            this.isListedOnSnapdeal = iprot.readBool();
2388
            setIsListedOnSnapdealIsSet(true);
2389
          } else { 
2390
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2391
          }
2392
          break;
9242 kshitij.so 2393
        case 5: // TRANSFER_PRICE
2394
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2395
            this.transferPrice = iprot.readDouble();
2396
            setTransferPriceIsSet(true);
2397
          } else { 
2398
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2399
          }
2400
          break;
2401
        case 6: // SELLING_PRICE
2402
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2403
            this.sellingPrice = iprot.readDouble();
2404
            setSellingPriceIsSet(true);
2405
          } else { 
2406
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2407
          }
2408
          break;
2409
        case 7: // COURIER_COST
2410
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2411
            this.courierCost = iprot.readDouble();
2412
            setCourierCostIsSet(true);
2413
          } else { 
2414
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2415
          }
2416
          break;
2417
        case 8: // COMMISSION
2418
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2419
            this.commission = iprot.readDouble();
2420
            setCommissionIsSet(true);
2421
          } else { 
2422
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2423
          }
2424
          break;
2425
        case 9: // SERVICE_TAX
2426
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2427
            this.serviceTax = iprot.readDouble();
2428
            setServiceTaxIsSet(true);
2429
          } else { 
2430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2431
          }
2432
          break;
2433
        case 10: // SUPPRESS_PRICE_FEED
2434
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2435
            this.suppressPriceFeed = iprot.readBool();
2436
            setSuppressPriceFeedIsSet(true);
2437
          } else { 
2438
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2439
          }
2440
          break;
2441
        case 11: // SUPPRESS_INVENTORY_FEED
2442
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2443
            this.suppressInventoryFeed = iprot.readBool();
2444
            setSuppressInventoryFeedIsSet(true);
2445
          } else { 
2446
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2447
          }
2448
          break;
9404 vikram.rag 2449
        case 12: // MAX_NLC
2450
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2451
            this.maxNlc = iprot.readDouble();
2452
            setMaxNlcIsSet(true);
2453
          } else { 
2454
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2455
          }
2456
          break;
9456 vikram.rag 2457
        case 13: // SKU_AT_SNAPDEAL
2458
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2459
            this.skuAtSnapdeal = iprot.readString();
2460
          } else { 
2461
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462
          }
2463
          break;
9568 kshitij.so 2464
        case 14: // SUPC
2465
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2466
            this.supc = iprot.readString();
2467
          } else { 
2468
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2469
          }
2470
          break;
9724 kshitij.so 2471
        case 15: // SHIPPING_TIME
2472
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2473
            this.shippingTime = iprot.readString();
2474
          } else { 
2475
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2476
          }
2477
          break;
9779 kshitij.so 2478
        case 16: // UPDATED_BY
2479
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2480
            this.updatedBy = iprot.readString();
2481
          } else { 
2482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2483
          }
2484
          break;
2485
        case 17: // MARKETPLACE_ITEMS
2486
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2487
            this.marketplaceItems = new MarketplaceItems();
2488
            this.marketplaceItems.read(iprot);
2489
          } else { 
2490
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2491
          }
2492
          break;
11095 kshitij.so 2493
        case 18: // COURIER_COST_MARKETPLACE
2494
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2495
            this.courierCostMarketplace = iprot.readDouble();
2496
            setCourierCostMarketplaceIsSet(true);
2497
          } else { 
2498
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2499
          }
2500
          break;
12133 kshitij.so 2501
        case 19: // ITEM
2502
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2503
            this.item = new Item();
2504
            this.item.read(iprot);
2505
          } else { 
2506
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2507
          }
2508
          break;
14780 manish.sha 2509
        case 20: // IS_VOI_LISTED
2510
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2511
            this.isVoiListed = iprot.readBool();
2512
            setIsVoiListedIsSet(true);
2513
          } else { 
2514
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2515
          }
2516
          break;
2517
        case 21: // VOI_SELLING_PRICE
2518
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2519
            this.voiSellingPrice = iprot.readDouble();
2520
            setVoiSellingPriceIsSet(true);
2521
          } else { 
2522
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2523
          }
2524
          break;
2525
        case 22: // SUPPRESS_VOI_PRICE_FEED
2526
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2527
            this.suppressVoiPriceFeed = iprot.readBool();
2528
            setSuppressVoiPriceFeedIsSet(true);
2529
          } else { 
2530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2531
          }
2532
          break;
2533
        case 23: // VOI_PRICE_LAST_UPDATED_ON
2534
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2535
            this.voiPriceLastUpdatedOn = iprot.readI64();
2536
            setVoiPriceLastUpdatedOnIsSet(true);
2537
          } else { 
2538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2539
          }
2540
          break;
2541
        case 24: // VOI_SKU_AT_SNAPDEAL
2542
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2543
            this.voiSkuAtSnapdeal = iprot.readString();
2544
          } else { 
2545
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2546
          }
2547
          break;
2548
        case 25: // MINIMUM_POSSIBLE_SP_VOI
2549
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2550
            this.minimumPossibleSpVoi = iprot.readDouble();
2551
            setMinimumPossibleSpVoiIsSet(true);
2552
          } else { 
2553
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2554
          }
2555
          break;
2556
        case 26: // MINIMUM_POSSIBLE_TP_VOI
2557
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2558
            this.minimumPossibleTpVoi = iprot.readDouble();
2559
            setMinimumPossibleTpVoiIsSet(true);
2560
          } else { 
2561
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2562
          }
2563
          break;
2564
        case 27: // COURIER_COST_VOI
2565
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2566
            this.courierCostVoi = iprot.readDouble();
2567
            setCourierCostVoiIsSet(true);
2568
          } else { 
2569
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2570
          }
2571
          break;
2572
        case 28: // SERVICE_TAX_VOI
2573
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2574
            this.serviceTaxVoi = iprot.readDouble();
2575
            setServiceTaxVoiIsSet(true);
2576
          } else { 
2577
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2578
          }
2579
          break;
2580
        case 29: // TRANSFER_PRICE_VOI
2581
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2582
            this.transferPriceVoi = iprot.readDouble();
2583
            setTransferPriceVoiIsSet(true);
2584
          } else { 
2585
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2586
          }
2587
          break;
2588
        case 30: // COMMISSION_VOI
2589
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2590
            this.commissionVoi = iprot.readDouble();
2591
            setCommissionVoiIsSet(true);
2592
          } else { 
2593
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2594
          }
2595
          break;
14862 manish.sha 2596
        case 31: // COURIER_COST_MARKETPLACE_VOI
2597
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2598
            this.courierCostMarketplaceVoi = iprot.readDouble();
2599
            setCourierCostMarketplaceVoiIsSet(true);
2600
          } else { 
2601
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2602
          }
2603
          break;
2604
        case 32: // COMMISSION_PERCENTAGE_VOI
2605
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2606
            this.commissionPercentageVoi = iprot.readDouble();
2607
            setCommissionPercentageVoiIsSet(true);
2608
          } else { 
2609
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2610
          }
2611
          break;
8739 vikram.rag 2612
        default:
2613
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2614
      }
2615
      iprot.readFieldEnd();
2616
    }
2617
    iprot.readStructEnd();
2618
    validate();
2619
  }
2620
 
2621
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2622
    validate();
2623
 
2624
    oprot.writeStructBegin(STRUCT_DESC);
2625
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2626
    oprot.writeI64(this.item_id);
2627
    oprot.writeFieldEnd();
2628
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
2629
    oprot.writeI64(this.warehouseId);
2630
    oprot.writeFieldEnd();
2631
    oprot.writeFieldBegin(EXCEPTION_PRICE_FIELD_DESC);
2632
    oprot.writeDouble(this.exceptionPrice);
2633
    oprot.writeFieldEnd();
2634
    oprot.writeFieldBegin(IS_LISTED_ON_SNAPDEAL_FIELD_DESC);
2635
    oprot.writeBool(this.isListedOnSnapdeal);
2636
    oprot.writeFieldEnd();
9242 kshitij.so 2637
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
2638
    oprot.writeDouble(this.transferPrice);
2639
    oprot.writeFieldEnd();
2640
    oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
2641
    oprot.writeDouble(this.sellingPrice);
2642
    oprot.writeFieldEnd();
2643
    oprot.writeFieldBegin(COURIER_COST_FIELD_DESC);
2644
    oprot.writeDouble(this.courierCost);
2645
    oprot.writeFieldEnd();
2646
    oprot.writeFieldBegin(COMMISSION_FIELD_DESC);
2647
    oprot.writeDouble(this.commission);
2648
    oprot.writeFieldEnd();
2649
    oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
2650
    oprot.writeDouble(this.serviceTax);
2651
    oprot.writeFieldEnd();
2652
    oprot.writeFieldBegin(SUPPRESS_PRICE_FEED_FIELD_DESC);
2653
    oprot.writeBool(this.suppressPriceFeed);
2654
    oprot.writeFieldEnd();
2655
    oprot.writeFieldBegin(SUPPRESS_INVENTORY_FEED_FIELD_DESC);
2656
    oprot.writeBool(this.suppressInventoryFeed);
2657
    oprot.writeFieldEnd();
9404 vikram.rag 2658
    oprot.writeFieldBegin(MAX_NLC_FIELD_DESC);
2659
    oprot.writeDouble(this.maxNlc);
2660
    oprot.writeFieldEnd();
9456 vikram.rag 2661
    if (this.skuAtSnapdeal != null) {
2662
      oprot.writeFieldBegin(SKU_AT_SNAPDEAL_FIELD_DESC);
2663
      oprot.writeString(this.skuAtSnapdeal);
2664
      oprot.writeFieldEnd();
2665
    }
9568 kshitij.so 2666
    if (this.supc != null) {
2667
      oprot.writeFieldBegin(SUPC_FIELD_DESC);
2668
      oprot.writeString(this.supc);
2669
      oprot.writeFieldEnd();
2670
    }
9724 kshitij.so 2671
    if (this.shippingTime != null) {
2672
      oprot.writeFieldBegin(SHIPPING_TIME_FIELD_DESC);
2673
      oprot.writeString(this.shippingTime);
2674
      oprot.writeFieldEnd();
2675
    }
9779 kshitij.so 2676
    if (this.updatedBy != null) {
2677
      oprot.writeFieldBegin(UPDATED_BY_FIELD_DESC);
2678
      oprot.writeString(this.updatedBy);
2679
      oprot.writeFieldEnd();
2680
    }
2681
    if (this.marketplaceItems != null) {
2682
      oprot.writeFieldBegin(MARKETPLACE_ITEMS_FIELD_DESC);
2683
      this.marketplaceItems.write(oprot);
2684
      oprot.writeFieldEnd();
2685
    }
11095 kshitij.so 2686
    oprot.writeFieldBegin(COURIER_COST_MARKETPLACE_FIELD_DESC);
2687
    oprot.writeDouble(this.courierCostMarketplace);
2688
    oprot.writeFieldEnd();
12133 kshitij.so 2689
    if (this.item != null) {
2690
      oprot.writeFieldBegin(ITEM_FIELD_DESC);
2691
      this.item.write(oprot);
2692
      oprot.writeFieldEnd();
2693
    }
14780 manish.sha 2694
    oprot.writeFieldBegin(IS_VOI_LISTED_FIELD_DESC);
2695
    oprot.writeBool(this.isVoiListed);
2696
    oprot.writeFieldEnd();
2697
    oprot.writeFieldBegin(VOI_SELLING_PRICE_FIELD_DESC);
2698
    oprot.writeDouble(this.voiSellingPrice);
2699
    oprot.writeFieldEnd();
2700
    oprot.writeFieldBegin(SUPPRESS_VOI_PRICE_FEED_FIELD_DESC);
2701
    oprot.writeBool(this.suppressVoiPriceFeed);
2702
    oprot.writeFieldEnd();
2703
    oprot.writeFieldBegin(VOI_PRICE_LAST_UPDATED_ON_FIELD_DESC);
2704
    oprot.writeI64(this.voiPriceLastUpdatedOn);
2705
    oprot.writeFieldEnd();
2706
    if (this.voiSkuAtSnapdeal != null) {
2707
      oprot.writeFieldBegin(VOI_SKU_AT_SNAPDEAL_FIELD_DESC);
2708
      oprot.writeString(this.voiSkuAtSnapdeal);
2709
      oprot.writeFieldEnd();
2710
    }
2711
    oprot.writeFieldBegin(MINIMUM_POSSIBLE_SP_VOI_FIELD_DESC);
2712
    oprot.writeDouble(this.minimumPossibleSpVoi);
2713
    oprot.writeFieldEnd();
2714
    oprot.writeFieldBegin(MINIMUM_POSSIBLE_TP_VOI_FIELD_DESC);
2715
    oprot.writeDouble(this.minimumPossibleTpVoi);
2716
    oprot.writeFieldEnd();
2717
    oprot.writeFieldBegin(COURIER_COST_VOI_FIELD_DESC);
2718
    oprot.writeDouble(this.courierCostVoi);
2719
    oprot.writeFieldEnd();
2720
    oprot.writeFieldBegin(SERVICE_TAX_VOI_FIELD_DESC);
2721
    oprot.writeDouble(this.serviceTaxVoi);
2722
    oprot.writeFieldEnd();
2723
    oprot.writeFieldBegin(TRANSFER_PRICE_VOI_FIELD_DESC);
2724
    oprot.writeDouble(this.transferPriceVoi);
2725
    oprot.writeFieldEnd();
2726
    oprot.writeFieldBegin(COMMISSION_VOI_FIELD_DESC);
2727
    oprot.writeDouble(this.commissionVoi);
2728
    oprot.writeFieldEnd();
14862 manish.sha 2729
    oprot.writeFieldBegin(COURIER_COST_MARKETPLACE_VOI_FIELD_DESC);
2730
    oprot.writeDouble(this.courierCostMarketplaceVoi);
2731
    oprot.writeFieldEnd();
2732
    oprot.writeFieldBegin(COMMISSION_PERCENTAGE_VOI_FIELD_DESC);
2733
    oprot.writeDouble(this.commissionPercentageVoi);
2734
    oprot.writeFieldEnd();
8739 vikram.rag 2735
    oprot.writeFieldStop();
2736
    oprot.writeStructEnd();
2737
  }
2738
 
2739
  @Override
2740
  public String toString() {
2741
    StringBuilder sb = new StringBuilder("SnapdealItem(");
2742
    boolean first = true;
2743
 
2744
    sb.append("item_id:");
2745
    sb.append(this.item_id);
2746
    first = false;
2747
    if (!first) sb.append(", ");
2748
    sb.append("warehouseId:");
2749
    sb.append(this.warehouseId);
2750
    first = false;
2751
    if (!first) sb.append(", ");
2752
    sb.append("exceptionPrice:");
2753
    sb.append(this.exceptionPrice);
2754
    first = false;
2755
    if (!first) sb.append(", ");
2756
    sb.append("isListedOnSnapdeal:");
2757
    sb.append(this.isListedOnSnapdeal);
2758
    first = false;
9242 kshitij.so 2759
    if (!first) sb.append(", ");
2760
    sb.append("transferPrice:");
2761
    sb.append(this.transferPrice);
2762
    first = false;
2763
    if (!first) sb.append(", ");
2764
    sb.append("sellingPrice:");
2765
    sb.append(this.sellingPrice);
2766
    first = false;
2767
    if (!first) sb.append(", ");
2768
    sb.append("courierCost:");
2769
    sb.append(this.courierCost);
2770
    first = false;
2771
    if (!first) sb.append(", ");
2772
    sb.append("commission:");
2773
    sb.append(this.commission);
2774
    first = false;
2775
    if (!first) sb.append(", ");
2776
    sb.append("serviceTax:");
2777
    sb.append(this.serviceTax);
2778
    first = false;
2779
    if (!first) sb.append(", ");
2780
    sb.append("suppressPriceFeed:");
2781
    sb.append(this.suppressPriceFeed);
2782
    first = false;
2783
    if (!first) sb.append(", ");
2784
    sb.append("suppressInventoryFeed:");
2785
    sb.append(this.suppressInventoryFeed);
2786
    first = false;
9404 vikram.rag 2787
    if (!first) sb.append(", ");
2788
    sb.append("maxNlc:");
2789
    sb.append(this.maxNlc);
2790
    first = false;
9456 vikram.rag 2791
    if (!first) sb.append(", ");
2792
    sb.append("skuAtSnapdeal:");
2793
    if (this.skuAtSnapdeal == null) {
2794
      sb.append("null");
2795
    } else {
2796
      sb.append(this.skuAtSnapdeal);
2797
    }
2798
    first = false;
9568 kshitij.so 2799
    if (!first) sb.append(", ");
2800
    sb.append("supc:");
2801
    if (this.supc == null) {
2802
      sb.append("null");
2803
    } else {
2804
      sb.append(this.supc);
2805
    }
2806
    first = false;
9724 kshitij.so 2807
    if (!first) sb.append(", ");
2808
    sb.append("shippingTime:");
2809
    if (this.shippingTime == null) {
2810
      sb.append("null");
2811
    } else {
2812
      sb.append(this.shippingTime);
2813
    }
2814
    first = false;
9779 kshitij.so 2815
    if (!first) sb.append(", ");
2816
    sb.append("updatedBy:");
2817
    if (this.updatedBy == null) {
2818
      sb.append("null");
2819
    } else {
2820
      sb.append(this.updatedBy);
2821
    }
2822
    first = false;
2823
    if (!first) sb.append(", ");
2824
    sb.append("marketplaceItems:");
2825
    if (this.marketplaceItems == null) {
2826
      sb.append("null");
2827
    } else {
2828
      sb.append(this.marketplaceItems);
2829
    }
2830
    first = false;
11095 kshitij.so 2831
    if (!first) sb.append(", ");
2832
    sb.append("courierCostMarketplace:");
2833
    sb.append(this.courierCostMarketplace);
2834
    first = false;
12133 kshitij.so 2835
    if (!first) sb.append(", ");
2836
    sb.append("item:");
2837
    if (this.item == null) {
2838
      sb.append("null");
2839
    } else {
2840
      sb.append(this.item);
2841
    }
2842
    first = false;
14780 manish.sha 2843
    if (!first) sb.append(", ");
2844
    sb.append("isVoiListed:");
2845
    sb.append(this.isVoiListed);
2846
    first = false;
2847
    if (!first) sb.append(", ");
2848
    sb.append("voiSellingPrice:");
2849
    sb.append(this.voiSellingPrice);
2850
    first = false;
2851
    if (!first) sb.append(", ");
2852
    sb.append("suppressVoiPriceFeed:");
2853
    sb.append(this.suppressVoiPriceFeed);
2854
    first = false;
2855
    if (!first) sb.append(", ");
2856
    sb.append("voiPriceLastUpdatedOn:");
2857
    sb.append(this.voiPriceLastUpdatedOn);
2858
    first = false;
2859
    if (!first) sb.append(", ");
2860
    sb.append("voiSkuAtSnapdeal:");
2861
    if (this.voiSkuAtSnapdeal == null) {
2862
      sb.append("null");
2863
    } else {
2864
      sb.append(this.voiSkuAtSnapdeal);
2865
    }
2866
    first = false;
2867
    if (!first) sb.append(", ");
2868
    sb.append("minimumPossibleSpVoi:");
2869
    sb.append(this.minimumPossibleSpVoi);
2870
    first = false;
2871
    if (!first) sb.append(", ");
2872
    sb.append("minimumPossibleTpVoi:");
2873
    sb.append(this.minimumPossibleTpVoi);
2874
    first = false;
2875
    if (!first) sb.append(", ");
2876
    sb.append("courierCostVoi:");
2877
    sb.append(this.courierCostVoi);
2878
    first = false;
2879
    if (!first) sb.append(", ");
2880
    sb.append("serviceTaxVoi:");
2881
    sb.append(this.serviceTaxVoi);
2882
    first = false;
2883
    if (!first) sb.append(", ");
2884
    sb.append("transferPriceVoi:");
2885
    sb.append(this.transferPriceVoi);
2886
    first = false;
2887
    if (!first) sb.append(", ");
2888
    sb.append("commissionVoi:");
2889
    sb.append(this.commissionVoi);
2890
    first = false;
14862 manish.sha 2891
    if (!first) sb.append(", ");
2892
    sb.append("courierCostMarketplaceVoi:");
2893
    sb.append(this.courierCostMarketplaceVoi);
2894
    first = false;
2895
    if (!first) sb.append(", ");
2896
    sb.append("commissionPercentageVoi:");
2897
    sb.append(this.commissionPercentageVoi);
2898
    first = false;
8739 vikram.rag 2899
    sb.append(")");
2900
    return sb.toString();
2901
  }
2902
 
2903
  public void validate() throws org.apache.thrift.TException {
2904
    // check for required fields
2905
  }
2906
 
2907
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2908
    try {
2909
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2910
    } catch (org.apache.thrift.TException te) {
2911
      throw new java.io.IOException(te);
2912
    }
2913
  }
2914
 
2915
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2916
    try {
2917
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2918
      __isset_bit_vector = new BitSet(1);
2919
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2920
    } catch (org.apache.thrift.TException te) {
2921
      throw new java.io.IOException(te);
2922
    }
2923
  }
2924
 
2925
}
2926