| 553 |
chandransh |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 553 |
chandransh |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.user;
|
|
|
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;
|
| 3430 |
rajveer |
18 |
import java.nio.ByteBuffer;
|
| 553 |
chandransh |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
| 3430 |
rajveer |
23 |
public class Cart implements org.apache.thrift.TBase<Cart, Cart._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Cart");
|
| 553 |
chandransh |
25 |
|
| 3430 |
rajveer |
26 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField LINES_FIELD_DESC = new org.apache.thrift.protocol.TField("lines", org.apache.thrift.protocol.TType.LIST, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField CREATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("createdOn", org.apache.thrift.protocol.TType.I64, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField UPDATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedOn", org.apache.thrift.protocol.TType.I64, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField CHECKED_OUT_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("checkedOutOn", org.apache.thrift.protocol.TType.I64, (short)6);
|
| 5327 |
rajveer |
32 |
private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField TOTAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("totalPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField DISCOUNTED_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("discountedPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField COUPON_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("couponCode", org.apache.thrift.protocol.TType.STRING, (short)10);
|
| 5553 |
rajveer |
36 |
private static final org.apache.thrift.protocol.TField PICKUP_STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupStoreId", org.apache.thrift.protocol.TType.I64, (short)11);
|
| 6736 |
amit.gupta |
37 |
private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)12);
|
| 553 |
chandransh |
38 |
|
| 3430 |
rajveer |
39 |
private long id; // required
|
|
|
40 |
private List<Line> lines; // required
|
|
|
41 |
private CartStatus status; // required
|
|
|
42 |
private long createdOn; // required
|
|
|
43 |
private long updatedOn; // required
|
|
|
44 |
private long checkedOutOn; // required
|
|
|
45 |
private long addressId; // required
|
|
|
46 |
private double totalPrice; // required
|
|
|
47 |
private double discountedPrice; // required
|
|
|
48 |
private String couponCode; // required
|
| 5553 |
rajveer |
49 |
private long pickupStoreId; // required
|
| 6736 |
amit.gupta |
50 |
private String message; // required
|
| 553 |
chandransh |
51 |
|
|
|
52 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
53 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 553 |
chandransh |
54 |
ID((short)1, "id"),
|
|
|
55 |
LINES((short)2, "lines"),
|
|
|
56 |
/**
|
|
|
57 |
*
|
|
|
58 |
* @see CartStatus
|
|
|
59 |
*/
|
|
|
60 |
STATUS((short)3, "status"),
|
|
|
61 |
CREATED_ON((short)4, "createdOn"),
|
|
|
62 |
UPDATED_ON((short)5, "updatedOn"),
|
| 688 |
chandransh |
63 |
CHECKED_OUT_ON((short)6, "checkedOutOn"),
|
| 5327 |
rajveer |
64 |
ADDRESS_ID((short)7, "addressId"),
|
|
|
65 |
TOTAL_PRICE((short)8, "totalPrice"),
|
|
|
66 |
DISCOUNTED_PRICE((short)9, "discountedPrice"),
|
| 5553 |
rajveer |
67 |
COUPON_CODE((short)10, "couponCode"),
|
| 6736 |
amit.gupta |
68 |
PICKUP_STORE_ID((short)11, "pickupStoreId"),
|
|
|
69 |
MESSAGE((short)12, "message");
|
| 553 |
chandransh |
70 |
|
|
|
71 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
72 |
|
|
|
73 |
static {
|
|
|
74 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
75 |
byName.put(field.getFieldName(), field);
|
|
|
76 |
}
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
/**
|
|
|
80 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
81 |
*/
|
|
|
82 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
83 |
switch(fieldId) {
|
|
|
84 |
case 1: // ID
|
|
|
85 |
return ID;
|
|
|
86 |
case 2: // LINES
|
|
|
87 |
return LINES;
|
|
|
88 |
case 3: // STATUS
|
|
|
89 |
return STATUS;
|
|
|
90 |
case 4: // CREATED_ON
|
|
|
91 |
return CREATED_ON;
|
|
|
92 |
case 5: // UPDATED_ON
|
|
|
93 |
return UPDATED_ON;
|
|
|
94 |
case 6: // CHECKED_OUT_ON
|
|
|
95 |
return CHECKED_OUT_ON;
|
| 5327 |
rajveer |
96 |
case 7: // ADDRESS_ID
|
| 3430 |
rajveer |
97 |
return ADDRESS_ID;
|
| 5327 |
rajveer |
98 |
case 8: // TOTAL_PRICE
|
| 3430 |
rajveer |
99 |
return TOTAL_PRICE;
|
| 5327 |
rajveer |
100 |
case 9: // DISCOUNTED_PRICE
|
| 3430 |
rajveer |
101 |
return DISCOUNTED_PRICE;
|
| 5327 |
rajveer |
102 |
case 10: // COUPON_CODE
|
| 3430 |
rajveer |
103 |
return COUPON_CODE;
|
| 5553 |
rajveer |
104 |
case 11: // PICKUP_STORE_ID
|
|
|
105 |
return PICKUP_STORE_ID;
|
| 6736 |
amit.gupta |
106 |
case 12: // MESSAGE
|
|
|
107 |
return MESSAGE;
|
| 3430 |
rajveer |
108 |
default:
|
|
|
109 |
return null;
|
|
|
110 |
}
|
| 553 |
chandransh |
111 |
}
|
|
|
112 |
|
|
|
113 |
/**
|
|
|
114 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
115 |
* if it is not found.
|
|
|
116 |
*/
|
|
|
117 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
118 |
_Fields fields = findByThriftId(fieldId);
|
|
|
119 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
120 |
return fields;
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
/**
|
|
|
124 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
125 |
*/
|
|
|
126 |
public static _Fields findByName(String name) {
|
|
|
127 |
return byName.get(name);
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
private final short _thriftId;
|
|
|
131 |
private final String _fieldName;
|
|
|
132 |
|
|
|
133 |
_Fields(short thriftId, String fieldName) {
|
|
|
134 |
_thriftId = thriftId;
|
|
|
135 |
_fieldName = fieldName;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
public short getThriftFieldId() {
|
|
|
139 |
return _thriftId;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
public String getFieldName() {
|
|
|
143 |
return _fieldName;
|
|
|
144 |
}
|
|
|
145 |
}
|
|
|
146 |
|
|
|
147 |
// isset id assignments
|
|
|
148 |
private static final int __ID_ISSET_ID = 0;
|
|
|
149 |
private static final int __CREATEDON_ISSET_ID = 1;
|
|
|
150 |
private static final int __UPDATEDON_ISSET_ID = 2;
|
| 688 |
chandransh |
151 |
private static final int __CHECKEDOUTON_ISSET_ID = 3;
|
| 5327 |
rajveer |
152 |
private static final int __ADDRESSID_ISSET_ID = 4;
|
|
|
153 |
private static final int __TOTALPRICE_ISSET_ID = 5;
|
|
|
154 |
private static final int __DISCOUNTEDPRICE_ISSET_ID = 6;
|
| 5553 |
rajveer |
155 |
private static final int __PICKUPSTOREID_ISSET_ID = 7;
|
|
|
156 |
private BitSet __isset_bit_vector = new BitSet(8);
|
| 553 |
chandransh |
157 |
|
| 3430 |
rajveer |
158 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 553 |
chandransh |
159 |
static {
|
| 3430 |
rajveer |
160 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
161 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
162 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
163 |
tmpMap.put(_Fields.LINES, new org.apache.thrift.meta_data.FieldMetaData("lines", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
164 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
165 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Line.class))));
|
|
|
166 |
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
167 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
|
|
|
168 |
tmpMap.put(_Fields.CREATED_ON, new org.apache.thrift.meta_data.FieldMetaData("createdOn", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
169 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
170 |
tmpMap.put(_Fields.UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("updatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
171 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
172 |
tmpMap.put(_Fields.CHECKED_OUT_ON, new org.apache.thrift.meta_data.FieldMetaData("checkedOutOn", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
173 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
174 |
tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
175 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
176 |
tmpMap.put(_Fields.TOTAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("totalPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
177 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
178 |
tmpMap.put(_Fields.DISCOUNTED_PRICE, new org.apache.thrift.meta_data.FieldMetaData("discountedPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
179 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
180 |
tmpMap.put(_Fields.COUPON_CODE, new org.apache.thrift.meta_data.FieldMetaData("couponCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
181 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 5553 |
rajveer |
182 |
tmpMap.put(_Fields.PICKUP_STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("pickupStoreId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
183 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 6736 |
amit.gupta |
184 |
tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
185 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
186 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
187 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Cart.class, metaDataMap);
|
| 553 |
chandransh |
188 |
}
|
|
|
189 |
|
|
|
190 |
public Cart() {
|
|
|
191 |
}
|
|
|
192 |
|
|
|
193 |
public Cart(
|
|
|
194 |
long id,
|
|
|
195 |
List<Line> lines,
|
|
|
196 |
CartStatus status,
|
|
|
197 |
long createdOn,
|
|
|
198 |
long updatedOn,
|
| 688 |
chandransh |
199 |
long checkedOutOn,
|
| 1982 |
varun.gupt |
200 |
long addressId,
|
|
|
201 |
double totalPrice,
|
|
|
202 |
double discountedPrice,
|
| 5553 |
rajveer |
203 |
String couponCode,
|
| 6736 |
amit.gupta |
204 |
long pickupStoreId,
|
|
|
205 |
String message)
|
| 553 |
chandransh |
206 |
{
|
|
|
207 |
this();
|
|
|
208 |
this.id = id;
|
|
|
209 |
setIdIsSet(true);
|
|
|
210 |
this.lines = lines;
|
|
|
211 |
this.status = status;
|
|
|
212 |
this.createdOn = createdOn;
|
|
|
213 |
setCreatedOnIsSet(true);
|
|
|
214 |
this.updatedOn = updatedOn;
|
|
|
215 |
setUpdatedOnIsSet(true);
|
| 688 |
chandransh |
216 |
this.checkedOutOn = checkedOutOn;
|
|
|
217 |
setCheckedOutOnIsSet(true);
|
| 553 |
chandransh |
218 |
this.addressId = addressId;
|
|
|
219 |
setAddressIdIsSet(true);
|
| 1982 |
varun.gupt |
220 |
this.totalPrice = totalPrice;
|
|
|
221 |
setTotalPriceIsSet(true);
|
|
|
222 |
this.discountedPrice = discountedPrice;
|
|
|
223 |
setDiscountedPriceIsSet(true);
|
|
|
224 |
this.couponCode = couponCode;
|
| 5553 |
rajveer |
225 |
this.pickupStoreId = pickupStoreId;
|
|
|
226 |
setPickupStoreIdIsSet(true);
|
| 6736 |
amit.gupta |
227 |
this.message = message;
|
| 553 |
chandransh |
228 |
}
|
|
|
229 |
|
|
|
230 |
/**
|
|
|
231 |
* Performs a deep copy on <i>other</i>.
|
|
|
232 |
*/
|
|
|
233 |
public Cart(Cart other) {
|
|
|
234 |
__isset_bit_vector.clear();
|
|
|
235 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
236 |
this.id = other.id;
|
|
|
237 |
if (other.isSetLines()) {
|
|
|
238 |
List<Line> __this__lines = new ArrayList<Line>();
|
|
|
239 |
for (Line other_element : other.lines) {
|
|
|
240 |
__this__lines.add(new Line(other_element));
|
|
|
241 |
}
|
|
|
242 |
this.lines = __this__lines;
|
|
|
243 |
}
|
|
|
244 |
if (other.isSetStatus()) {
|
|
|
245 |
this.status = other.status;
|
|
|
246 |
}
|
|
|
247 |
this.createdOn = other.createdOn;
|
|
|
248 |
this.updatedOn = other.updatedOn;
|
| 688 |
chandransh |
249 |
this.checkedOutOn = other.checkedOutOn;
|
| 553 |
chandransh |
250 |
this.addressId = other.addressId;
|
| 1982 |
varun.gupt |
251 |
this.totalPrice = other.totalPrice;
|
|
|
252 |
this.discountedPrice = other.discountedPrice;
|
|
|
253 |
if (other.isSetCouponCode()) {
|
|
|
254 |
this.couponCode = other.couponCode;
|
|
|
255 |
}
|
| 5553 |
rajveer |
256 |
this.pickupStoreId = other.pickupStoreId;
|
| 6736 |
amit.gupta |
257 |
if (other.isSetMessage()) {
|
|
|
258 |
this.message = other.message;
|
|
|
259 |
}
|
| 553 |
chandransh |
260 |
}
|
|
|
261 |
|
|
|
262 |
public Cart deepCopy() {
|
|
|
263 |
return new Cart(this);
|
|
|
264 |
}
|
|
|
265 |
|
| 3430 |
rajveer |
266 |
@Override
|
|
|
267 |
public void clear() {
|
|
|
268 |
setIdIsSet(false);
|
|
|
269 |
this.id = 0;
|
|
|
270 |
this.lines = null;
|
|
|
271 |
this.status = null;
|
|
|
272 |
setCreatedOnIsSet(false);
|
|
|
273 |
this.createdOn = 0;
|
|
|
274 |
setUpdatedOnIsSet(false);
|
|
|
275 |
this.updatedOn = 0;
|
|
|
276 |
setCheckedOutOnIsSet(false);
|
|
|
277 |
this.checkedOutOn = 0;
|
|
|
278 |
setAddressIdIsSet(false);
|
|
|
279 |
this.addressId = 0;
|
|
|
280 |
setTotalPriceIsSet(false);
|
|
|
281 |
this.totalPrice = 0.0;
|
|
|
282 |
setDiscountedPriceIsSet(false);
|
|
|
283 |
this.discountedPrice = 0.0;
|
|
|
284 |
this.couponCode = null;
|
| 5553 |
rajveer |
285 |
setPickupStoreIdIsSet(false);
|
|
|
286 |
this.pickupStoreId = 0;
|
| 6736 |
amit.gupta |
287 |
this.message = null;
|
| 553 |
chandransh |
288 |
}
|
|
|
289 |
|
|
|
290 |
public long getId() {
|
|
|
291 |
return this.id;
|
|
|
292 |
}
|
|
|
293 |
|
| 3430 |
rajveer |
294 |
public void setId(long id) {
|
| 553 |
chandransh |
295 |
this.id = id;
|
|
|
296 |
setIdIsSet(true);
|
|
|
297 |
}
|
|
|
298 |
|
|
|
299 |
public void unsetId() {
|
|
|
300 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
301 |
}
|
|
|
302 |
|
| 3430 |
rajveer |
303 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
304 |
public boolean isSetId() {
|
|
|
305 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
306 |
}
|
|
|
307 |
|
|
|
308 |
public void setIdIsSet(boolean value) {
|
|
|
309 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
310 |
}
|
|
|
311 |
|
|
|
312 |
public int getLinesSize() {
|
|
|
313 |
return (this.lines == null) ? 0 : this.lines.size();
|
|
|
314 |
}
|
|
|
315 |
|
|
|
316 |
public java.util.Iterator<Line> getLinesIterator() {
|
|
|
317 |
return (this.lines == null) ? null : this.lines.iterator();
|
|
|
318 |
}
|
|
|
319 |
|
|
|
320 |
public void addToLines(Line elem) {
|
|
|
321 |
if (this.lines == null) {
|
|
|
322 |
this.lines = new ArrayList<Line>();
|
|
|
323 |
}
|
|
|
324 |
this.lines.add(elem);
|
|
|
325 |
}
|
|
|
326 |
|
|
|
327 |
public List<Line> getLines() {
|
|
|
328 |
return this.lines;
|
|
|
329 |
}
|
|
|
330 |
|
| 3430 |
rajveer |
331 |
public void setLines(List<Line> lines) {
|
| 553 |
chandransh |
332 |
this.lines = lines;
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
public void unsetLines() {
|
|
|
336 |
this.lines = null;
|
|
|
337 |
}
|
|
|
338 |
|
| 3430 |
rajveer |
339 |
/** Returns true if field lines is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
340 |
public boolean isSetLines() {
|
|
|
341 |
return this.lines != null;
|
|
|
342 |
}
|
|
|
343 |
|
|
|
344 |
public void setLinesIsSet(boolean value) {
|
|
|
345 |
if (!value) {
|
|
|
346 |
this.lines = null;
|
|
|
347 |
}
|
|
|
348 |
}
|
|
|
349 |
|
|
|
350 |
/**
|
|
|
351 |
*
|
|
|
352 |
* @see CartStatus
|
|
|
353 |
*/
|
|
|
354 |
public CartStatus getStatus() {
|
|
|
355 |
return this.status;
|
|
|
356 |
}
|
|
|
357 |
|
|
|
358 |
/**
|
|
|
359 |
*
|
|
|
360 |
* @see CartStatus
|
|
|
361 |
*/
|
| 3430 |
rajveer |
362 |
public void setStatus(CartStatus status) {
|
| 553 |
chandransh |
363 |
this.status = status;
|
|
|
364 |
}
|
|
|
365 |
|
|
|
366 |
public void unsetStatus() {
|
|
|
367 |
this.status = null;
|
|
|
368 |
}
|
|
|
369 |
|
| 3430 |
rajveer |
370 |
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
371 |
public boolean isSetStatus() {
|
|
|
372 |
return this.status != null;
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
public void setStatusIsSet(boolean value) {
|
|
|
376 |
if (!value) {
|
|
|
377 |
this.status = null;
|
|
|
378 |
}
|
|
|
379 |
}
|
|
|
380 |
|
|
|
381 |
public long getCreatedOn() {
|
|
|
382 |
return this.createdOn;
|
|
|
383 |
}
|
|
|
384 |
|
| 3430 |
rajveer |
385 |
public void setCreatedOn(long createdOn) {
|
| 553 |
chandransh |
386 |
this.createdOn = createdOn;
|
|
|
387 |
setCreatedOnIsSet(true);
|
|
|
388 |
}
|
|
|
389 |
|
|
|
390 |
public void unsetCreatedOn() {
|
|
|
391 |
__isset_bit_vector.clear(__CREATEDON_ISSET_ID);
|
|
|
392 |
}
|
|
|
393 |
|
| 3430 |
rajveer |
394 |
/** Returns true if field createdOn is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
395 |
public boolean isSetCreatedOn() {
|
|
|
396 |
return __isset_bit_vector.get(__CREATEDON_ISSET_ID);
|
|
|
397 |
}
|
|
|
398 |
|
|
|
399 |
public void setCreatedOnIsSet(boolean value) {
|
|
|
400 |
__isset_bit_vector.set(__CREATEDON_ISSET_ID, value);
|
|
|
401 |
}
|
|
|
402 |
|
|
|
403 |
public long getUpdatedOn() {
|
|
|
404 |
return this.updatedOn;
|
|
|
405 |
}
|
|
|
406 |
|
| 3430 |
rajveer |
407 |
public void setUpdatedOn(long updatedOn) {
|
| 553 |
chandransh |
408 |
this.updatedOn = updatedOn;
|
|
|
409 |
setUpdatedOnIsSet(true);
|
|
|
410 |
}
|
|
|
411 |
|
|
|
412 |
public void unsetUpdatedOn() {
|
|
|
413 |
__isset_bit_vector.clear(__UPDATEDON_ISSET_ID);
|
|
|
414 |
}
|
|
|
415 |
|
| 3430 |
rajveer |
416 |
/** Returns true if field updatedOn is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
417 |
public boolean isSetUpdatedOn() {
|
|
|
418 |
return __isset_bit_vector.get(__UPDATEDON_ISSET_ID);
|
|
|
419 |
}
|
|
|
420 |
|
|
|
421 |
public void setUpdatedOnIsSet(boolean value) {
|
|
|
422 |
__isset_bit_vector.set(__UPDATEDON_ISSET_ID, value);
|
|
|
423 |
}
|
|
|
424 |
|
| 688 |
chandransh |
425 |
public long getCheckedOutOn() {
|
|
|
426 |
return this.checkedOutOn;
|
| 553 |
chandransh |
427 |
}
|
|
|
428 |
|
| 3430 |
rajveer |
429 |
public void setCheckedOutOn(long checkedOutOn) {
|
| 688 |
chandransh |
430 |
this.checkedOutOn = checkedOutOn;
|
|
|
431 |
setCheckedOutOnIsSet(true);
|
| 553 |
chandransh |
432 |
}
|
|
|
433 |
|
| 688 |
chandransh |
434 |
public void unsetCheckedOutOn() {
|
|
|
435 |
__isset_bit_vector.clear(__CHECKEDOUTON_ISSET_ID);
|
| 553 |
chandransh |
436 |
}
|
|
|
437 |
|
| 3430 |
rajveer |
438 |
/** Returns true if field checkedOutOn is set (has been assigned a value) and false otherwise */
|
| 688 |
chandransh |
439 |
public boolean isSetCheckedOutOn() {
|
|
|
440 |
return __isset_bit_vector.get(__CHECKEDOUTON_ISSET_ID);
|
| 553 |
chandransh |
441 |
}
|
|
|
442 |
|
| 688 |
chandransh |
443 |
public void setCheckedOutOnIsSet(boolean value) {
|
|
|
444 |
__isset_bit_vector.set(__CHECKEDOUTON_ISSET_ID, value);
|
| 553 |
chandransh |
445 |
}
|
|
|
446 |
|
|
|
447 |
public long getAddressId() {
|
|
|
448 |
return this.addressId;
|
|
|
449 |
}
|
|
|
450 |
|
| 3430 |
rajveer |
451 |
public void setAddressId(long addressId) {
|
| 553 |
chandransh |
452 |
this.addressId = addressId;
|
|
|
453 |
setAddressIdIsSet(true);
|
|
|
454 |
}
|
|
|
455 |
|
|
|
456 |
public void unsetAddressId() {
|
|
|
457 |
__isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
|
|
|
458 |
}
|
|
|
459 |
|
| 3430 |
rajveer |
460 |
/** Returns true if field addressId is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
461 |
public boolean isSetAddressId() {
|
|
|
462 |
return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
|
|
|
463 |
}
|
|
|
464 |
|
|
|
465 |
public void setAddressIdIsSet(boolean value) {
|
|
|
466 |
__isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
|
|
|
467 |
}
|
|
|
468 |
|
| 1982 |
varun.gupt |
469 |
public double getTotalPrice() {
|
|
|
470 |
return this.totalPrice;
|
|
|
471 |
}
|
|
|
472 |
|
| 3430 |
rajveer |
473 |
public void setTotalPrice(double totalPrice) {
|
| 1982 |
varun.gupt |
474 |
this.totalPrice = totalPrice;
|
|
|
475 |
setTotalPriceIsSet(true);
|
|
|
476 |
}
|
|
|
477 |
|
|
|
478 |
public void unsetTotalPrice() {
|
|
|
479 |
__isset_bit_vector.clear(__TOTALPRICE_ISSET_ID);
|
|
|
480 |
}
|
|
|
481 |
|
| 3430 |
rajveer |
482 |
/** Returns true if field totalPrice is set (has been assigned a value) and false otherwise */
|
| 1982 |
varun.gupt |
483 |
public boolean isSetTotalPrice() {
|
|
|
484 |
return __isset_bit_vector.get(__TOTALPRICE_ISSET_ID);
|
|
|
485 |
}
|
|
|
486 |
|
|
|
487 |
public void setTotalPriceIsSet(boolean value) {
|
|
|
488 |
__isset_bit_vector.set(__TOTALPRICE_ISSET_ID, value);
|
|
|
489 |
}
|
|
|
490 |
|
|
|
491 |
public double getDiscountedPrice() {
|
|
|
492 |
return this.discountedPrice;
|
|
|
493 |
}
|
|
|
494 |
|
| 3430 |
rajveer |
495 |
public void setDiscountedPrice(double discountedPrice) {
|
| 1982 |
varun.gupt |
496 |
this.discountedPrice = discountedPrice;
|
|
|
497 |
setDiscountedPriceIsSet(true);
|
|
|
498 |
}
|
|
|
499 |
|
|
|
500 |
public void unsetDiscountedPrice() {
|
|
|
501 |
__isset_bit_vector.clear(__DISCOUNTEDPRICE_ISSET_ID);
|
|
|
502 |
}
|
|
|
503 |
|
| 3430 |
rajveer |
504 |
/** Returns true if field discountedPrice is set (has been assigned a value) and false otherwise */
|
| 1982 |
varun.gupt |
505 |
public boolean isSetDiscountedPrice() {
|
|
|
506 |
return __isset_bit_vector.get(__DISCOUNTEDPRICE_ISSET_ID);
|
|
|
507 |
}
|
|
|
508 |
|
|
|
509 |
public void setDiscountedPriceIsSet(boolean value) {
|
|
|
510 |
__isset_bit_vector.set(__DISCOUNTEDPRICE_ISSET_ID, value);
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
public String getCouponCode() {
|
|
|
514 |
return this.couponCode;
|
|
|
515 |
}
|
|
|
516 |
|
| 3430 |
rajveer |
517 |
public void setCouponCode(String couponCode) {
|
| 1982 |
varun.gupt |
518 |
this.couponCode = couponCode;
|
|
|
519 |
}
|
|
|
520 |
|
|
|
521 |
public void unsetCouponCode() {
|
|
|
522 |
this.couponCode = null;
|
|
|
523 |
}
|
|
|
524 |
|
| 3430 |
rajveer |
525 |
/** Returns true if field couponCode is set (has been assigned a value) and false otherwise */
|
| 1982 |
varun.gupt |
526 |
public boolean isSetCouponCode() {
|
|
|
527 |
return this.couponCode != null;
|
|
|
528 |
}
|
|
|
529 |
|
|
|
530 |
public void setCouponCodeIsSet(boolean value) {
|
|
|
531 |
if (!value) {
|
|
|
532 |
this.couponCode = null;
|
|
|
533 |
}
|
|
|
534 |
}
|
|
|
535 |
|
| 5553 |
rajveer |
536 |
public long getPickupStoreId() {
|
|
|
537 |
return this.pickupStoreId;
|
|
|
538 |
}
|
|
|
539 |
|
|
|
540 |
public void setPickupStoreId(long pickupStoreId) {
|
|
|
541 |
this.pickupStoreId = pickupStoreId;
|
|
|
542 |
setPickupStoreIdIsSet(true);
|
|
|
543 |
}
|
|
|
544 |
|
|
|
545 |
public void unsetPickupStoreId() {
|
|
|
546 |
__isset_bit_vector.clear(__PICKUPSTOREID_ISSET_ID);
|
|
|
547 |
}
|
|
|
548 |
|
|
|
549 |
/** Returns true if field pickupStoreId is set (has been assigned a value) and false otherwise */
|
|
|
550 |
public boolean isSetPickupStoreId() {
|
|
|
551 |
return __isset_bit_vector.get(__PICKUPSTOREID_ISSET_ID);
|
|
|
552 |
}
|
|
|
553 |
|
|
|
554 |
public void setPickupStoreIdIsSet(boolean value) {
|
|
|
555 |
__isset_bit_vector.set(__PICKUPSTOREID_ISSET_ID, value);
|
|
|
556 |
}
|
|
|
557 |
|
| 6736 |
amit.gupta |
558 |
public String getMessage() {
|
|
|
559 |
return this.message;
|
|
|
560 |
}
|
|
|
561 |
|
|
|
562 |
public void setMessage(String message) {
|
|
|
563 |
this.message = message;
|
|
|
564 |
}
|
|
|
565 |
|
|
|
566 |
public void unsetMessage() {
|
|
|
567 |
this.message = null;
|
|
|
568 |
}
|
|
|
569 |
|
|
|
570 |
/** Returns true if field message is set (has been assigned a value) and false otherwise */
|
|
|
571 |
public boolean isSetMessage() {
|
|
|
572 |
return this.message != null;
|
|
|
573 |
}
|
|
|
574 |
|
|
|
575 |
public void setMessageIsSet(boolean value) {
|
|
|
576 |
if (!value) {
|
|
|
577 |
this.message = null;
|
|
|
578 |
}
|
|
|
579 |
}
|
|
|
580 |
|
| 553 |
chandransh |
581 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
582 |
switch (field) {
|
|
|
583 |
case ID:
|
|
|
584 |
if (value == null) {
|
|
|
585 |
unsetId();
|
|
|
586 |
} else {
|
|
|
587 |
setId((Long)value);
|
|
|
588 |
}
|
|
|
589 |
break;
|
|
|
590 |
|
|
|
591 |
case LINES:
|
|
|
592 |
if (value == null) {
|
|
|
593 |
unsetLines();
|
|
|
594 |
} else {
|
|
|
595 |
setLines((List<Line>)value);
|
|
|
596 |
}
|
|
|
597 |
break;
|
|
|
598 |
|
|
|
599 |
case STATUS:
|
|
|
600 |
if (value == null) {
|
|
|
601 |
unsetStatus();
|
|
|
602 |
} else {
|
|
|
603 |
setStatus((CartStatus)value);
|
|
|
604 |
}
|
|
|
605 |
break;
|
|
|
606 |
|
|
|
607 |
case CREATED_ON:
|
|
|
608 |
if (value == null) {
|
|
|
609 |
unsetCreatedOn();
|
|
|
610 |
} else {
|
|
|
611 |
setCreatedOn((Long)value);
|
|
|
612 |
}
|
|
|
613 |
break;
|
|
|
614 |
|
|
|
615 |
case UPDATED_ON:
|
|
|
616 |
if (value == null) {
|
|
|
617 |
unsetUpdatedOn();
|
|
|
618 |
} else {
|
|
|
619 |
setUpdatedOn((Long)value);
|
|
|
620 |
}
|
|
|
621 |
break;
|
|
|
622 |
|
| 688 |
chandransh |
623 |
case CHECKED_OUT_ON:
|
| 553 |
chandransh |
624 |
if (value == null) {
|
| 688 |
chandransh |
625 |
unsetCheckedOutOn();
|
| 553 |
chandransh |
626 |
} else {
|
| 688 |
chandransh |
627 |
setCheckedOutOn((Long)value);
|
| 553 |
chandransh |
628 |
}
|
|
|
629 |
break;
|
|
|
630 |
|
|
|
631 |
case ADDRESS_ID:
|
|
|
632 |
if (value == null) {
|
|
|
633 |
unsetAddressId();
|
|
|
634 |
} else {
|
|
|
635 |
setAddressId((Long)value);
|
|
|
636 |
}
|
|
|
637 |
break;
|
|
|
638 |
|
| 1982 |
varun.gupt |
639 |
case TOTAL_PRICE:
|
|
|
640 |
if (value == null) {
|
|
|
641 |
unsetTotalPrice();
|
|
|
642 |
} else {
|
|
|
643 |
setTotalPrice((Double)value);
|
|
|
644 |
}
|
|
|
645 |
break;
|
|
|
646 |
|
|
|
647 |
case DISCOUNTED_PRICE:
|
|
|
648 |
if (value == null) {
|
|
|
649 |
unsetDiscountedPrice();
|
|
|
650 |
} else {
|
|
|
651 |
setDiscountedPrice((Double)value);
|
|
|
652 |
}
|
|
|
653 |
break;
|
|
|
654 |
|
|
|
655 |
case COUPON_CODE:
|
|
|
656 |
if (value == null) {
|
|
|
657 |
unsetCouponCode();
|
|
|
658 |
} else {
|
|
|
659 |
setCouponCode((String)value);
|
|
|
660 |
}
|
|
|
661 |
break;
|
|
|
662 |
|
| 5553 |
rajveer |
663 |
case PICKUP_STORE_ID:
|
|
|
664 |
if (value == null) {
|
|
|
665 |
unsetPickupStoreId();
|
|
|
666 |
} else {
|
|
|
667 |
setPickupStoreId((Long)value);
|
|
|
668 |
}
|
|
|
669 |
break;
|
|
|
670 |
|
| 6736 |
amit.gupta |
671 |
case MESSAGE:
|
|
|
672 |
if (value == null) {
|
|
|
673 |
unsetMessage();
|
|
|
674 |
} else {
|
|
|
675 |
setMessage((String)value);
|
|
|
676 |
}
|
|
|
677 |
break;
|
|
|
678 |
|
| 553 |
chandransh |
679 |
}
|
|
|
680 |
}
|
|
|
681 |
|
|
|
682 |
public Object getFieldValue(_Fields field) {
|
|
|
683 |
switch (field) {
|
|
|
684 |
case ID:
|
| 3430 |
rajveer |
685 |
return Long.valueOf(getId());
|
| 553 |
chandransh |
686 |
|
|
|
687 |
case LINES:
|
|
|
688 |
return getLines();
|
|
|
689 |
|
|
|
690 |
case STATUS:
|
|
|
691 |
return getStatus();
|
|
|
692 |
|
|
|
693 |
case CREATED_ON:
|
| 3430 |
rajveer |
694 |
return Long.valueOf(getCreatedOn());
|
| 553 |
chandransh |
695 |
|
|
|
696 |
case UPDATED_ON:
|
| 3430 |
rajveer |
697 |
return Long.valueOf(getUpdatedOn());
|
| 553 |
chandransh |
698 |
|
| 688 |
chandransh |
699 |
case CHECKED_OUT_ON:
|
| 3430 |
rajveer |
700 |
return Long.valueOf(getCheckedOutOn());
|
| 553 |
chandransh |
701 |
|
|
|
702 |
case ADDRESS_ID:
|
| 3430 |
rajveer |
703 |
return Long.valueOf(getAddressId());
|
| 553 |
chandransh |
704 |
|
| 1982 |
varun.gupt |
705 |
case TOTAL_PRICE:
|
| 3430 |
rajveer |
706 |
return Double.valueOf(getTotalPrice());
|
| 1982 |
varun.gupt |
707 |
|
|
|
708 |
case DISCOUNTED_PRICE:
|
| 3430 |
rajveer |
709 |
return Double.valueOf(getDiscountedPrice());
|
| 1982 |
varun.gupt |
710 |
|
|
|
711 |
case COUPON_CODE:
|
|
|
712 |
return getCouponCode();
|
|
|
713 |
|
| 5553 |
rajveer |
714 |
case PICKUP_STORE_ID:
|
|
|
715 |
return Long.valueOf(getPickupStoreId());
|
|
|
716 |
|
| 6736 |
amit.gupta |
717 |
case MESSAGE:
|
|
|
718 |
return getMessage();
|
|
|
719 |
|
| 553 |
chandransh |
720 |
}
|
|
|
721 |
throw new IllegalStateException();
|
|
|
722 |
}
|
|
|
723 |
|
| 3430 |
rajveer |
724 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
725 |
public boolean isSet(_Fields field) {
|
|
|
726 |
if (field == null) {
|
|
|
727 |
throw new IllegalArgumentException();
|
|
|
728 |
}
|
| 553 |
chandransh |
729 |
|
|
|
730 |
switch (field) {
|
|
|
731 |
case ID:
|
|
|
732 |
return isSetId();
|
|
|
733 |
case LINES:
|
|
|
734 |
return isSetLines();
|
|
|
735 |
case STATUS:
|
|
|
736 |
return isSetStatus();
|
|
|
737 |
case CREATED_ON:
|
|
|
738 |
return isSetCreatedOn();
|
|
|
739 |
case UPDATED_ON:
|
|
|
740 |
return isSetUpdatedOn();
|
| 688 |
chandransh |
741 |
case CHECKED_OUT_ON:
|
|
|
742 |
return isSetCheckedOutOn();
|
| 553 |
chandransh |
743 |
case ADDRESS_ID:
|
|
|
744 |
return isSetAddressId();
|
| 1982 |
varun.gupt |
745 |
case TOTAL_PRICE:
|
|
|
746 |
return isSetTotalPrice();
|
|
|
747 |
case DISCOUNTED_PRICE:
|
|
|
748 |
return isSetDiscountedPrice();
|
|
|
749 |
case COUPON_CODE:
|
|
|
750 |
return isSetCouponCode();
|
| 5553 |
rajveer |
751 |
case PICKUP_STORE_ID:
|
|
|
752 |
return isSetPickupStoreId();
|
| 6736 |
amit.gupta |
753 |
case MESSAGE:
|
|
|
754 |
return isSetMessage();
|
| 553 |
chandransh |
755 |
}
|
|
|
756 |
throw new IllegalStateException();
|
|
|
757 |
}
|
|
|
758 |
|
|
|
759 |
@Override
|
|
|
760 |
public boolean equals(Object that) {
|
|
|
761 |
if (that == null)
|
|
|
762 |
return false;
|
|
|
763 |
if (that instanceof Cart)
|
|
|
764 |
return this.equals((Cart)that);
|
|
|
765 |
return false;
|
|
|
766 |
}
|
|
|
767 |
|
|
|
768 |
public boolean equals(Cart that) {
|
|
|
769 |
if (that == null)
|
|
|
770 |
return false;
|
|
|
771 |
|
|
|
772 |
boolean this_present_id = true;
|
|
|
773 |
boolean that_present_id = true;
|
|
|
774 |
if (this_present_id || that_present_id) {
|
|
|
775 |
if (!(this_present_id && that_present_id))
|
|
|
776 |
return false;
|
|
|
777 |
if (this.id != that.id)
|
|
|
778 |
return false;
|
|
|
779 |
}
|
|
|
780 |
|
|
|
781 |
boolean this_present_lines = true && this.isSetLines();
|
|
|
782 |
boolean that_present_lines = true && that.isSetLines();
|
|
|
783 |
if (this_present_lines || that_present_lines) {
|
|
|
784 |
if (!(this_present_lines && that_present_lines))
|
|
|
785 |
return false;
|
|
|
786 |
if (!this.lines.equals(that.lines))
|
|
|
787 |
return false;
|
|
|
788 |
}
|
|
|
789 |
|
|
|
790 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
791 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
792 |
if (this_present_status || that_present_status) {
|
|
|
793 |
if (!(this_present_status && that_present_status))
|
|
|
794 |
return false;
|
|
|
795 |
if (!this.status.equals(that.status))
|
|
|
796 |
return false;
|
|
|
797 |
}
|
|
|
798 |
|
|
|
799 |
boolean this_present_createdOn = true;
|
|
|
800 |
boolean that_present_createdOn = true;
|
|
|
801 |
if (this_present_createdOn || that_present_createdOn) {
|
|
|
802 |
if (!(this_present_createdOn && that_present_createdOn))
|
|
|
803 |
return false;
|
|
|
804 |
if (this.createdOn != that.createdOn)
|
|
|
805 |
return false;
|
|
|
806 |
}
|
|
|
807 |
|
|
|
808 |
boolean this_present_updatedOn = true;
|
|
|
809 |
boolean that_present_updatedOn = true;
|
|
|
810 |
if (this_present_updatedOn || that_present_updatedOn) {
|
|
|
811 |
if (!(this_present_updatedOn && that_present_updatedOn))
|
|
|
812 |
return false;
|
|
|
813 |
if (this.updatedOn != that.updatedOn)
|
|
|
814 |
return false;
|
|
|
815 |
}
|
|
|
816 |
|
| 688 |
chandransh |
817 |
boolean this_present_checkedOutOn = true;
|
|
|
818 |
boolean that_present_checkedOutOn = true;
|
|
|
819 |
if (this_present_checkedOutOn || that_present_checkedOutOn) {
|
|
|
820 |
if (!(this_present_checkedOutOn && that_present_checkedOutOn))
|
| 553 |
chandransh |
821 |
return false;
|
| 688 |
chandransh |
822 |
if (this.checkedOutOn != that.checkedOutOn)
|
| 553 |
chandransh |
823 |
return false;
|
|
|
824 |
}
|
|
|
825 |
|
|
|
826 |
boolean this_present_addressId = true;
|
|
|
827 |
boolean that_present_addressId = true;
|
|
|
828 |
if (this_present_addressId || that_present_addressId) {
|
|
|
829 |
if (!(this_present_addressId && that_present_addressId))
|
|
|
830 |
return false;
|
|
|
831 |
if (this.addressId != that.addressId)
|
|
|
832 |
return false;
|
|
|
833 |
}
|
|
|
834 |
|
| 1982 |
varun.gupt |
835 |
boolean this_present_totalPrice = true;
|
|
|
836 |
boolean that_present_totalPrice = true;
|
|
|
837 |
if (this_present_totalPrice || that_present_totalPrice) {
|
|
|
838 |
if (!(this_present_totalPrice && that_present_totalPrice))
|
|
|
839 |
return false;
|
|
|
840 |
if (this.totalPrice != that.totalPrice)
|
|
|
841 |
return false;
|
|
|
842 |
}
|
|
|
843 |
|
|
|
844 |
boolean this_present_discountedPrice = true;
|
|
|
845 |
boolean that_present_discountedPrice = true;
|
|
|
846 |
if (this_present_discountedPrice || that_present_discountedPrice) {
|
|
|
847 |
if (!(this_present_discountedPrice && that_present_discountedPrice))
|
|
|
848 |
return false;
|
|
|
849 |
if (this.discountedPrice != that.discountedPrice)
|
|
|
850 |
return false;
|
|
|
851 |
}
|
|
|
852 |
|
|
|
853 |
boolean this_present_couponCode = true && this.isSetCouponCode();
|
|
|
854 |
boolean that_present_couponCode = true && that.isSetCouponCode();
|
|
|
855 |
if (this_present_couponCode || that_present_couponCode) {
|
|
|
856 |
if (!(this_present_couponCode && that_present_couponCode))
|
|
|
857 |
return false;
|
|
|
858 |
if (!this.couponCode.equals(that.couponCode))
|
|
|
859 |
return false;
|
|
|
860 |
}
|
|
|
861 |
|
| 5553 |
rajveer |
862 |
boolean this_present_pickupStoreId = true;
|
|
|
863 |
boolean that_present_pickupStoreId = true;
|
|
|
864 |
if (this_present_pickupStoreId || that_present_pickupStoreId) {
|
|
|
865 |
if (!(this_present_pickupStoreId && that_present_pickupStoreId))
|
|
|
866 |
return false;
|
|
|
867 |
if (this.pickupStoreId != that.pickupStoreId)
|
|
|
868 |
return false;
|
|
|
869 |
}
|
|
|
870 |
|
| 6736 |
amit.gupta |
871 |
boolean this_present_message = true && this.isSetMessage();
|
|
|
872 |
boolean that_present_message = true && that.isSetMessage();
|
|
|
873 |
if (this_present_message || that_present_message) {
|
|
|
874 |
if (!(this_present_message && that_present_message))
|
|
|
875 |
return false;
|
|
|
876 |
if (!this.message.equals(that.message))
|
|
|
877 |
return false;
|
|
|
878 |
}
|
|
|
879 |
|
| 553 |
chandransh |
880 |
return true;
|
|
|
881 |
}
|
|
|
882 |
|
|
|
883 |
@Override
|
|
|
884 |
public int hashCode() {
|
|
|
885 |
return 0;
|
|
|
886 |
}
|
|
|
887 |
|
|
|
888 |
public int compareTo(Cart other) {
|
|
|
889 |
if (!getClass().equals(other.getClass())) {
|
|
|
890 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
891 |
}
|
|
|
892 |
|
|
|
893 |
int lastComparison = 0;
|
|
|
894 |
Cart typedOther = (Cart)other;
|
|
|
895 |
|
| 3430 |
rajveer |
896 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| 553 |
chandransh |
897 |
if (lastComparison != 0) {
|
|
|
898 |
return lastComparison;
|
|
|
899 |
}
|
| 3430 |
rajveer |
900 |
if (isSetId()) {
|
|
|
901 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
902 |
if (lastComparison != 0) {
|
|
|
903 |
return lastComparison;
|
|
|
904 |
}
|
| 553 |
chandransh |
905 |
}
|
| 3430 |
rajveer |
906 |
lastComparison = Boolean.valueOf(isSetLines()).compareTo(typedOther.isSetLines());
|
| 553 |
chandransh |
907 |
if (lastComparison != 0) {
|
|
|
908 |
return lastComparison;
|
|
|
909 |
}
|
| 3430 |
rajveer |
910 |
if (isSetLines()) {
|
|
|
911 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lines, typedOther.lines);
|
|
|
912 |
if (lastComparison != 0) {
|
|
|
913 |
return lastComparison;
|
|
|
914 |
}
|
| 553 |
chandransh |
915 |
}
|
| 3430 |
rajveer |
916 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
|
| 553 |
chandransh |
917 |
if (lastComparison != 0) {
|
|
|
918 |
return lastComparison;
|
|
|
919 |
}
|
| 3430 |
rajveer |
920 |
if (isSetStatus()) {
|
|
|
921 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
|
|
|
922 |
if (lastComparison != 0) {
|
|
|
923 |
return lastComparison;
|
|
|
924 |
}
|
| 553 |
chandransh |
925 |
}
|
| 3430 |
rajveer |
926 |
lastComparison = Boolean.valueOf(isSetCreatedOn()).compareTo(typedOther.isSetCreatedOn());
|
| 553 |
chandransh |
927 |
if (lastComparison != 0) {
|
|
|
928 |
return lastComparison;
|
|
|
929 |
}
|
| 3430 |
rajveer |
930 |
if (isSetCreatedOn()) {
|
|
|
931 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdOn, typedOther.createdOn);
|
|
|
932 |
if (lastComparison != 0) {
|
|
|
933 |
return lastComparison;
|
|
|
934 |
}
|
| 553 |
chandransh |
935 |
}
|
| 3430 |
rajveer |
936 |
lastComparison = Boolean.valueOf(isSetUpdatedOn()).compareTo(typedOther.isSetUpdatedOn());
|
| 553 |
chandransh |
937 |
if (lastComparison != 0) {
|
|
|
938 |
return lastComparison;
|
|
|
939 |
}
|
| 3430 |
rajveer |
940 |
if (isSetUpdatedOn()) {
|
|
|
941 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedOn, typedOther.updatedOn);
|
|
|
942 |
if (lastComparison != 0) {
|
|
|
943 |
return lastComparison;
|
|
|
944 |
}
|
| 553 |
chandransh |
945 |
}
|
| 3430 |
rajveer |
946 |
lastComparison = Boolean.valueOf(isSetCheckedOutOn()).compareTo(typedOther.isSetCheckedOutOn());
|
| 553 |
chandransh |
947 |
if (lastComparison != 0) {
|
|
|
948 |
return lastComparison;
|
|
|
949 |
}
|
| 3430 |
rajveer |
950 |
if (isSetCheckedOutOn()) {
|
|
|
951 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.checkedOutOn, typedOther.checkedOutOn);
|
|
|
952 |
if (lastComparison != 0) {
|
|
|
953 |
return lastComparison;
|
|
|
954 |
}
|
| 553 |
chandransh |
955 |
}
|
| 3430 |
rajveer |
956 |
lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
|
| 553 |
chandransh |
957 |
if (lastComparison != 0) {
|
|
|
958 |
return lastComparison;
|
|
|
959 |
}
|
| 3430 |
rajveer |
960 |
if (isSetAddressId()) {
|
|
|
961 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
|
|
|
962 |
if (lastComparison != 0) {
|
|
|
963 |
return lastComparison;
|
|
|
964 |
}
|
| 553 |
chandransh |
965 |
}
|
| 3430 |
rajveer |
966 |
lastComparison = Boolean.valueOf(isSetTotalPrice()).compareTo(typedOther.isSetTotalPrice());
|
| 1982 |
varun.gupt |
967 |
if (lastComparison != 0) {
|
|
|
968 |
return lastComparison;
|
|
|
969 |
}
|
| 3430 |
rajveer |
970 |
if (isSetTotalPrice()) {
|
|
|
971 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalPrice, typedOther.totalPrice);
|
|
|
972 |
if (lastComparison != 0) {
|
|
|
973 |
return lastComparison;
|
|
|
974 |
}
|
| 1982 |
varun.gupt |
975 |
}
|
| 3430 |
rajveer |
976 |
lastComparison = Boolean.valueOf(isSetDiscountedPrice()).compareTo(typedOther.isSetDiscountedPrice());
|
| 1982 |
varun.gupt |
977 |
if (lastComparison != 0) {
|
|
|
978 |
return lastComparison;
|
|
|
979 |
}
|
| 3430 |
rajveer |
980 |
if (isSetDiscountedPrice()) {
|
|
|
981 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.discountedPrice, typedOther.discountedPrice);
|
|
|
982 |
if (lastComparison != 0) {
|
|
|
983 |
return lastComparison;
|
|
|
984 |
}
|
| 1982 |
varun.gupt |
985 |
}
|
| 3430 |
rajveer |
986 |
lastComparison = Boolean.valueOf(isSetCouponCode()).compareTo(typedOther.isSetCouponCode());
|
| 1982 |
varun.gupt |
987 |
if (lastComparison != 0) {
|
|
|
988 |
return lastComparison;
|
|
|
989 |
}
|
| 3430 |
rajveer |
990 |
if (isSetCouponCode()) {
|
|
|
991 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.couponCode, typedOther.couponCode);
|
|
|
992 |
if (lastComparison != 0) {
|
|
|
993 |
return lastComparison;
|
|
|
994 |
}
|
| 1982 |
varun.gupt |
995 |
}
|
| 5553 |
rajveer |
996 |
lastComparison = Boolean.valueOf(isSetPickupStoreId()).compareTo(typedOther.isSetPickupStoreId());
|
|
|
997 |
if (lastComparison != 0) {
|
|
|
998 |
return lastComparison;
|
|
|
999 |
}
|
|
|
1000 |
if (isSetPickupStoreId()) {
|
|
|
1001 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupStoreId, typedOther.pickupStoreId);
|
|
|
1002 |
if (lastComparison != 0) {
|
|
|
1003 |
return lastComparison;
|
|
|
1004 |
}
|
|
|
1005 |
}
|
| 6736 |
amit.gupta |
1006 |
lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
|
|
|
1007 |
if (lastComparison != 0) {
|
|
|
1008 |
return lastComparison;
|
|
|
1009 |
}
|
|
|
1010 |
if (isSetMessage()) {
|
|
|
1011 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
|
|
|
1012 |
if (lastComparison != 0) {
|
|
|
1013 |
return lastComparison;
|
|
|
1014 |
}
|
|
|
1015 |
}
|
| 553 |
chandransh |
1016 |
return 0;
|
|
|
1017 |
}
|
|
|
1018 |
|
| 3430 |
rajveer |
1019 |
public _Fields fieldForId(int fieldId) {
|
|
|
1020 |
return _Fields.findByThriftId(fieldId);
|
|
|
1021 |
}
|
|
|
1022 |
|
|
|
1023 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1024 |
org.apache.thrift.protocol.TField field;
|
| 553 |
chandransh |
1025 |
iprot.readStructBegin();
|
|
|
1026 |
while (true)
|
|
|
1027 |
{
|
|
|
1028 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1029 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 553 |
chandransh |
1030 |
break;
|
|
|
1031 |
}
|
| 3430 |
rajveer |
1032 |
switch (field.id) {
|
|
|
1033 |
case 1: // ID
|
|
|
1034 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1035 |
this.id = iprot.readI64();
|
|
|
1036 |
setIdIsSet(true);
|
|
|
1037 |
} else {
|
|
|
1038 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1039 |
}
|
|
|
1040 |
break;
|
|
|
1041 |
case 2: // LINES
|
|
|
1042 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
1043 |
{
|
| 5327 |
rajveer |
1044 |
org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
|
|
|
1045 |
this.lines = new ArrayList<Line>(_list8.size);
|
|
|
1046 |
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
|
| 553 |
chandransh |
1047 |
{
|
| 5327 |
rajveer |
1048 |
Line _elem10; // required
|
|
|
1049 |
_elem10 = new Line();
|
|
|
1050 |
_elem10.read(iprot);
|
|
|
1051 |
this.lines.add(_elem10);
|
| 553 |
chandransh |
1052 |
}
|
| 3430 |
rajveer |
1053 |
iprot.readListEnd();
|
| 553 |
chandransh |
1054 |
}
|
| 3430 |
rajveer |
1055 |
} else {
|
|
|
1056 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1057 |
}
|
|
|
1058 |
break;
|
|
|
1059 |
case 3: // STATUS
|
|
|
1060 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1061 |
this.status = CartStatus.findByValue(iprot.readI32());
|
|
|
1062 |
} else {
|
|
|
1063 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1064 |
}
|
|
|
1065 |
break;
|
|
|
1066 |
case 4: // CREATED_ON
|
|
|
1067 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1068 |
this.createdOn = iprot.readI64();
|
|
|
1069 |
setCreatedOnIsSet(true);
|
|
|
1070 |
} else {
|
|
|
1071 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1072 |
}
|
|
|
1073 |
break;
|
|
|
1074 |
case 5: // UPDATED_ON
|
|
|
1075 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1076 |
this.updatedOn = iprot.readI64();
|
|
|
1077 |
setUpdatedOnIsSet(true);
|
|
|
1078 |
} else {
|
|
|
1079 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1080 |
}
|
|
|
1081 |
break;
|
|
|
1082 |
case 6: // CHECKED_OUT_ON
|
|
|
1083 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1084 |
this.checkedOutOn = iprot.readI64();
|
|
|
1085 |
setCheckedOutOnIsSet(true);
|
|
|
1086 |
} else {
|
|
|
1087 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1088 |
}
|
|
|
1089 |
break;
|
| 5327 |
rajveer |
1090 |
case 7: // ADDRESS_ID
|
| 3430 |
rajveer |
1091 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1092 |
this.addressId = iprot.readI64();
|
|
|
1093 |
setAddressIdIsSet(true);
|
|
|
1094 |
} else {
|
|
|
1095 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1096 |
}
|
|
|
1097 |
break;
|
| 5327 |
rajveer |
1098 |
case 8: // TOTAL_PRICE
|
| 3430 |
rajveer |
1099 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1100 |
this.totalPrice = iprot.readDouble();
|
|
|
1101 |
setTotalPriceIsSet(true);
|
|
|
1102 |
} else {
|
|
|
1103 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1104 |
}
|
|
|
1105 |
break;
|
| 5327 |
rajveer |
1106 |
case 9: // DISCOUNTED_PRICE
|
| 3430 |
rajveer |
1107 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1108 |
this.discountedPrice = iprot.readDouble();
|
|
|
1109 |
setDiscountedPriceIsSet(true);
|
|
|
1110 |
} else {
|
|
|
1111 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1112 |
}
|
|
|
1113 |
break;
|
| 5327 |
rajveer |
1114 |
case 10: // COUPON_CODE
|
| 3430 |
rajveer |
1115 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1116 |
this.couponCode = iprot.readString();
|
|
|
1117 |
} else {
|
|
|
1118 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1119 |
}
|
|
|
1120 |
break;
|
| 5553 |
rajveer |
1121 |
case 11: // PICKUP_STORE_ID
|
|
|
1122 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1123 |
this.pickupStoreId = iprot.readI64();
|
|
|
1124 |
setPickupStoreIdIsSet(true);
|
|
|
1125 |
} else {
|
|
|
1126 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1127 |
}
|
|
|
1128 |
break;
|
| 6736 |
amit.gupta |
1129 |
case 12: // MESSAGE
|
|
|
1130 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1131 |
this.message = iprot.readString();
|
|
|
1132 |
} else {
|
|
|
1133 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1134 |
}
|
|
|
1135 |
break;
|
| 3430 |
rajveer |
1136 |
default:
|
|
|
1137 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 553 |
chandransh |
1138 |
}
|
| 3430 |
rajveer |
1139 |
iprot.readFieldEnd();
|
| 553 |
chandransh |
1140 |
}
|
|
|
1141 |
iprot.readStructEnd();
|
|
|
1142 |
validate();
|
|
|
1143 |
}
|
|
|
1144 |
|
| 3430 |
rajveer |
1145 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 553 |
chandransh |
1146 |
validate();
|
|
|
1147 |
|
|
|
1148 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1149 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1150 |
oprot.writeI64(this.id);
|
|
|
1151 |
oprot.writeFieldEnd();
|
|
|
1152 |
if (this.lines != null) {
|
|
|
1153 |
oprot.writeFieldBegin(LINES_FIELD_DESC);
|
|
|
1154 |
{
|
| 3430 |
rajveer |
1155 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lines.size()));
|
| 5327 |
rajveer |
1156 |
for (Line _iter11 : this.lines)
|
| 553 |
chandransh |
1157 |
{
|
| 5327 |
rajveer |
1158 |
_iter11.write(oprot);
|
| 553 |
chandransh |
1159 |
}
|
|
|
1160 |
oprot.writeListEnd();
|
|
|
1161 |
}
|
|
|
1162 |
oprot.writeFieldEnd();
|
|
|
1163 |
}
|
|
|
1164 |
if (this.status != null) {
|
|
|
1165 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
1166 |
oprot.writeI32(this.status.getValue());
|
|
|
1167 |
oprot.writeFieldEnd();
|
|
|
1168 |
}
|
|
|
1169 |
oprot.writeFieldBegin(CREATED_ON_FIELD_DESC);
|
|
|
1170 |
oprot.writeI64(this.createdOn);
|
|
|
1171 |
oprot.writeFieldEnd();
|
|
|
1172 |
oprot.writeFieldBegin(UPDATED_ON_FIELD_DESC);
|
|
|
1173 |
oprot.writeI64(this.updatedOn);
|
|
|
1174 |
oprot.writeFieldEnd();
|
| 688 |
chandransh |
1175 |
oprot.writeFieldBegin(CHECKED_OUT_ON_FIELD_DESC);
|
|
|
1176 |
oprot.writeI64(this.checkedOutOn);
|
| 553 |
chandransh |
1177 |
oprot.writeFieldEnd();
|
|
|
1178 |
oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
|
|
|
1179 |
oprot.writeI64(this.addressId);
|
|
|
1180 |
oprot.writeFieldEnd();
|
| 1982 |
varun.gupt |
1181 |
oprot.writeFieldBegin(TOTAL_PRICE_FIELD_DESC);
|
|
|
1182 |
oprot.writeDouble(this.totalPrice);
|
|
|
1183 |
oprot.writeFieldEnd();
|
|
|
1184 |
oprot.writeFieldBegin(DISCOUNTED_PRICE_FIELD_DESC);
|
|
|
1185 |
oprot.writeDouble(this.discountedPrice);
|
|
|
1186 |
oprot.writeFieldEnd();
|
|
|
1187 |
if (this.couponCode != null) {
|
|
|
1188 |
oprot.writeFieldBegin(COUPON_CODE_FIELD_DESC);
|
|
|
1189 |
oprot.writeString(this.couponCode);
|
|
|
1190 |
oprot.writeFieldEnd();
|
|
|
1191 |
}
|
| 5553 |
rajveer |
1192 |
oprot.writeFieldBegin(PICKUP_STORE_ID_FIELD_DESC);
|
|
|
1193 |
oprot.writeI64(this.pickupStoreId);
|
|
|
1194 |
oprot.writeFieldEnd();
|
| 6736 |
amit.gupta |
1195 |
if (this.message != null) {
|
|
|
1196 |
oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
|
|
|
1197 |
oprot.writeString(this.message);
|
|
|
1198 |
oprot.writeFieldEnd();
|
|
|
1199 |
}
|
| 553 |
chandransh |
1200 |
oprot.writeFieldStop();
|
|
|
1201 |
oprot.writeStructEnd();
|
|
|
1202 |
}
|
|
|
1203 |
|
|
|
1204 |
@Override
|
|
|
1205 |
public String toString() {
|
|
|
1206 |
StringBuilder sb = new StringBuilder("Cart(");
|
|
|
1207 |
boolean first = true;
|
|
|
1208 |
|
|
|
1209 |
sb.append("id:");
|
|
|
1210 |
sb.append(this.id);
|
|
|
1211 |
first = false;
|
|
|
1212 |
if (!first) sb.append(", ");
|
|
|
1213 |
sb.append("lines:");
|
|
|
1214 |
if (this.lines == null) {
|
|
|
1215 |
sb.append("null");
|
|
|
1216 |
} else {
|
|
|
1217 |
sb.append(this.lines);
|
|
|
1218 |
}
|
|
|
1219 |
first = false;
|
|
|
1220 |
if (!first) sb.append(", ");
|
|
|
1221 |
sb.append("status:");
|
|
|
1222 |
if (this.status == null) {
|
|
|
1223 |
sb.append("null");
|
|
|
1224 |
} else {
|
|
|
1225 |
sb.append(this.status);
|
|
|
1226 |
}
|
|
|
1227 |
first = false;
|
|
|
1228 |
if (!first) sb.append(", ");
|
|
|
1229 |
sb.append("createdOn:");
|
|
|
1230 |
sb.append(this.createdOn);
|
|
|
1231 |
first = false;
|
|
|
1232 |
if (!first) sb.append(", ");
|
|
|
1233 |
sb.append("updatedOn:");
|
|
|
1234 |
sb.append(this.updatedOn);
|
|
|
1235 |
first = false;
|
|
|
1236 |
if (!first) sb.append(", ");
|
| 688 |
chandransh |
1237 |
sb.append("checkedOutOn:");
|
|
|
1238 |
sb.append(this.checkedOutOn);
|
| 553 |
chandransh |
1239 |
first = false;
|
|
|
1240 |
if (!first) sb.append(", ");
|
|
|
1241 |
sb.append("addressId:");
|
|
|
1242 |
sb.append(this.addressId);
|
|
|
1243 |
first = false;
|
| 1982 |
varun.gupt |
1244 |
if (!first) sb.append(", ");
|
|
|
1245 |
sb.append("totalPrice:");
|
|
|
1246 |
sb.append(this.totalPrice);
|
|
|
1247 |
first = false;
|
|
|
1248 |
if (!first) sb.append(", ");
|
|
|
1249 |
sb.append("discountedPrice:");
|
|
|
1250 |
sb.append(this.discountedPrice);
|
|
|
1251 |
first = false;
|
|
|
1252 |
if (!first) sb.append(", ");
|
|
|
1253 |
sb.append("couponCode:");
|
|
|
1254 |
if (this.couponCode == null) {
|
|
|
1255 |
sb.append("null");
|
|
|
1256 |
} else {
|
|
|
1257 |
sb.append(this.couponCode);
|
|
|
1258 |
}
|
|
|
1259 |
first = false;
|
| 5553 |
rajveer |
1260 |
if (!first) sb.append(", ");
|
|
|
1261 |
sb.append("pickupStoreId:");
|
|
|
1262 |
sb.append(this.pickupStoreId);
|
|
|
1263 |
first = false;
|
| 6736 |
amit.gupta |
1264 |
if (!first) sb.append(", ");
|
|
|
1265 |
sb.append("message:");
|
|
|
1266 |
if (this.message == null) {
|
|
|
1267 |
sb.append("null");
|
|
|
1268 |
} else {
|
|
|
1269 |
sb.append(this.message);
|
|
|
1270 |
}
|
|
|
1271 |
first = false;
|
| 553 |
chandransh |
1272 |
sb.append(")");
|
|
|
1273 |
return sb.toString();
|
|
|
1274 |
}
|
|
|
1275 |
|
| 3430 |
rajveer |
1276 |
public void validate() throws org.apache.thrift.TException {
|
| 553 |
chandransh |
1277 |
// check for required fields
|
|
|
1278 |
}
|
|
|
1279 |
|
| 3430 |
rajveer |
1280 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1281 |
try {
|
|
|
1282 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1283 |
} catch (org.apache.thrift.TException te) {
|
|
|
1284 |
throw new java.io.IOException(te);
|
|
|
1285 |
}
|
|
|
1286 |
}
|
|
|
1287 |
|
|
|
1288 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1289 |
try {
|
|
|
1290 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1291 |
__isset_bit_vector = new BitSet(1);
|
|
|
1292 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1293 |
} catch (org.apache.thrift.TException te) {
|
|
|
1294 |
throw new java.io.IOException(te);
|
|
|
1295 |
}
|
|
|
1296 |
}
|
|
|
1297 |
|
| 553 |
chandransh |
1298 |
}
|
|
|
1299 |
|