| 8182 |
amar.kumar |
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.order;
|
|
|
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 EbayOrder implements org.apache.thrift.TBase<EbayOrder, EbayOrder._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("EbayOrder");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField SALES_RECORD_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("salesRecordNumber", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField PAISA_PAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paisaPayId", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField EBAY_LISTING_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("ebayListingId", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField SUBSIDY_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("subsidyAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField EBAY_TXN_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("ebayTxnDate", org.apache.thrift.protocol.TType.I64, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField LISTING_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("listingName", org.apache.thrift.protocol.TType.STRING, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField LISTING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("listingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
|
| 8247 |
amar.kumar |
35 |
private static final org.apache.thrift.protocol.TField BLUEDART_PAISA_PAY_REF_FIELD_DESC = new org.apache.thrift.protocol.TField("bluedartPaisaPayRef", org.apache.thrift.protocol.TType.STRING, (short)10);
|
| 8182 |
amar.kumar |
36 |
|
|
|
37 |
private long orderId; // required
|
|
|
38 |
private long salesRecordNumber; // required
|
|
|
39 |
private String paisaPayId; // required
|
|
|
40 |
private String ebayListingId; // required
|
|
|
41 |
private double subsidyAmount; // required
|
|
|
42 |
private long ebayTxnDate; // required
|
|
|
43 |
private String transactionId; // required
|
|
|
44 |
private String listingName; // required
|
|
|
45 |
private double listingPrice; // required
|
| 8247 |
amar.kumar |
46 |
private String bluedartPaisaPayRef; // required
|
| 8182 |
amar.kumar |
47 |
|
|
|
48 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
49 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
50 |
ORDER_ID((short)1, "orderId"),
|
|
|
51 |
SALES_RECORD_NUMBER((short)2, "salesRecordNumber"),
|
|
|
52 |
PAISA_PAY_ID((short)3, "paisaPayId"),
|
|
|
53 |
EBAY_LISTING_ID((short)4, "ebayListingId"),
|
|
|
54 |
SUBSIDY_AMOUNT((short)5, "subsidyAmount"),
|
|
|
55 |
EBAY_TXN_DATE((short)6, "ebayTxnDate"),
|
|
|
56 |
TRANSACTION_ID((short)7, "transactionId"),
|
|
|
57 |
LISTING_NAME((short)8, "listingName"),
|
| 8241 |
amar.kumar |
58 |
LISTING_PRICE((short)9, "listingPrice"),
|
|
|
59 |
BLUEDART_PAISA_PAY_REF((short)10, "bluedartPaisaPayRef");
|
| 8182 |
amar.kumar |
60 |
|
|
|
61 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
62 |
|
|
|
63 |
static {
|
|
|
64 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
65 |
byName.put(field.getFieldName(), field);
|
|
|
66 |
}
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
/**
|
|
|
70 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
71 |
*/
|
|
|
72 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
73 |
switch(fieldId) {
|
|
|
74 |
case 1: // ORDER_ID
|
|
|
75 |
return ORDER_ID;
|
|
|
76 |
case 2: // SALES_RECORD_NUMBER
|
|
|
77 |
return SALES_RECORD_NUMBER;
|
|
|
78 |
case 3: // PAISA_PAY_ID
|
|
|
79 |
return PAISA_PAY_ID;
|
|
|
80 |
case 4: // EBAY_LISTING_ID
|
|
|
81 |
return EBAY_LISTING_ID;
|
|
|
82 |
case 5: // SUBSIDY_AMOUNT
|
|
|
83 |
return SUBSIDY_AMOUNT;
|
|
|
84 |
case 6: // EBAY_TXN_DATE
|
|
|
85 |
return EBAY_TXN_DATE;
|
|
|
86 |
case 7: // TRANSACTION_ID
|
|
|
87 |
return TRANSACTION_ID;
|
|
|
88 |
case 8: // LISTING_NAME
|
|
|
89 |
return LISTING_NAME;
|
|
|
90 |
case 9: // LISTING_PRICE
|
|
|
91 |
return LISTING_PRICE;
|
| 8241 |
amar.kumar |
92 |
case 10: // BLUEDART_PAISA_PAY_REF
|
|
|
93 |
return BLUEDART_PAISA_PAY_REF;
|
| 8182 |
amar.kumar |
94 |
default:
|
|
|
95 |
return null;
|
|
|
96 |
}
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
/**
|
|
|
100 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
101 |
* if it is not found.
|
|
|
102 |
*/
|
|
|
103 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
104 |
_Fields fields = findByThriftId(fieldId);
|
|
|
105 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
106 |
return fields;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
/**
|
|
|
110 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
111 |
*/
|
|
|
112 |
public static _Fields findByName(String name) {
|
|
|
113 |
return byName.get(name);
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
private final short _thriftId;
|
|
|
117 |
private final String _fieldName;
|
|
|
118 |
|
|
|
119 |
_Fields(short thriftId, String fieldName) {
|
|
|
120 |
_thriftId = thriftId;
|
|
|
121 |
_fieldName = fieldName;
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
public short getThriftFieldId() {
|
|
|
125 |
return _thriftId;
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
public String getFieldName() {
|
|
|
129 |
return _fieldName;
|
|
|
130 |
}
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
// isset id assignments
|
|
|
134 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
135 |
private static final int __SALESRECORDNUMBER_ISSET_ID = 1;
|
|
|
136 |
private static final int __SUBSIDYAMOUNT_ISSET_ID = 2;
|
|
|
137 |
private static final int __EBAYTXNDATE_ISSET_ID = 3;
|
|
|
138 |
private static final int __LISTINGPRICE_ISSET_ID = 4;
|
| 8247 |
amar.kumar |
139 |
private BitSet __isset_bit_vector = new BitSet(5);
|
| 8182 |
amar.kumar |
140 |
|
|
|
141 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
142 |
static {
|
|
|
143 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
144 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
145 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
146 |
tmpMap.put(_Fields.SALES_RECORD_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("salesRecordNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
147 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
148 |
tmpMap.put(_Fields.PAISA_PAY_ID, new org.apache.thrift.meta_data.FieldMetaData("paisaPayId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
150 |
tmpMap.put(_Fields.EBAY_LISTING_ID, new org.apache.thrift.meta_data.FieldMetaData("ebayListingId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
152 |
tmpMap.put(_Fields.SUBSIDY_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("subsidyAmount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
153 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
154 |
tmpMap.put(_Fields.EBAY_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("ebayTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
155 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
156 |
tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
157 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
158 |
tmpMap.put(_Fields.LISTING_NAME, new org.apache.thrift.meta_data.FieldMetaData("listingName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
159 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
160 |
tmpMap.put(_Fields.LISTING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("listingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
161 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 8241 |
amar.kumar |
162 |
tmpMap.put(_Fields.BLUEDART_PAISA_PAY_REF, new org.apache.thrift.meta_data.FieldMetaData("bluedartPaisaPayRef", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 8247 |
amar.kumar |
163 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 8182 |
amar.kumar |
164 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
165 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(EbayOrder.class, metaDataMap);
|
|
|
166 |
}
|
|
|
167 |
|
|
|
168 |
public EbayOrder() {
|
|
|
169 |
}
|
|
|
170 |
|
|
|
171 |
public EbayOrder(
|
|
|
172 |
long orderId,
|
|
|
173 |
long salesRecordNumber,
|
|
|
174 |
String paisaPayId,
|
|
|
175 |
String ebayListingId,
|
|
|
176 |
double subsidyAmount,
|
|
|
177 |
long ebayTxnDate,
|
|
|
178 |
String transactionId,
|
|
|
179 |
String listingName,
|
| 8241 |
amar.kumar |
180 |
double listingPrice,
|
| 8247 |
amar.kumar |
181 |
String bluedartPaisaPayRef)
|
| 8182 |
amar.kumar |
182 |
{
|
|
|
183 |
this();
|
|
|
184 |
this.orderId = orderId;
|
|
|
185 |
setOrderIdIsSet(true);
|
|
|
186 |
this.salesRecordNumber = salesRecordNumber;
|
|
|
187 |
setSalesRecordNumberIsSet(true);
|
|
|
188 |
this.paisaPayId = paisaPayId;
|
|
|
189 |
this.ebayListingId = ebayListingId;
|
|
|
190 |
this.subsidyAmount = subsidyAmount;
|
|
|
191 |
setSubsidyAmountIsSet(true);
|
|
|
192 |
this.ebayTxnDate = ebayTxnDate;
|
|
|
193 |
setEbayTxnDateIsSet(true);
|
|
|
194 |
this.transactionId = transactionId;
|
|
|
195 |
this.listingName = listingName;
|
|
|
196 |
this.listingPrice = listingPrice;
|
|
|
197 |
setListingPriceIsSet(true);
|
| 8241 |
amar.kumar |
198 |
this.bluedartPaisaPayRef = bluedartPaisaPayRef;
|
| 8182 |
amar.kumar |
199 |
}
|
|
|
200 |
|
|
|
201 |
/**
|
|
|
202 |
* Performs a deep copy on <i>other</i>.
|
|
|
203 |
*/
|
|
|
204 |
public EbayOrder(EbayOrder other) {
|
|
|
205 |
__isset_bit_vector.clear();
|
|
|
206 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
207 |
this.orderId = other.orderId;
|
|
|
208 |
this.salesRecordNumber = other.salesRecordNumber;
|
|
|
209 |
if (other.isSetPaisaPayId()) {
|
|
|
210 |
this.paisaPayId = other.paisaPayId;
|
|
|
211 |
}
|
|
|
212 |
if (other.isSetEbayListingId()) {
|
|
|
213 |
this.ebayListingId = other.ebayListingId;
|
|
|
214 |
}
|
|
|
215 |
this.subsidyAmount = other.subsidyAmount;
|
|
|
216 |
this.ebayTxnDate = other.ebayTxnDate;
|
|
|
217 |
if (other.isSetTransactionId()) {
|
|
|
218 |
this.transactionId = other.transactionId;
|
|
|
219 |
}
|
|
|
220 |
if (other.isSetListingName()) {
|
|
|
221 |
this.listingName = other.listingName;
|
|
|
222 |
}
|
|
|
223 |
this.listingPrice = other.listingPrice;
|
| 8247 |
amar.kumar |
224 |
if (other.isSetBluedartPaisaPayRef()) {
|
|
|
225 |
this.bluedartPaisaPayRef = other.bluedartPaisaPayRef;
|
|
|
226 |
}
|
| 8182 |
amar.kumar |
227 |
}
|
|
|
228 |
|
|
|
229 |
public EbayOrder deepCopy() {
|
|
|
230 |
return new EbayOrder(this);
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
@Override
|
|
|
234 |
public void clear() {
|
|
|
235 |
setOrderIdIsSet(false);
|
|
|
236 |
this.orderId = 0;
|
|
|
237 |
setSalesRecordNumberIsSet(false);
|
|
|
238 |
this.salesRecordNumber = 0;
|
|
|
239 |
this.paisaPayId = null;
|
|
|
240 |
this.ebayListingId = null;
|
|
|
241 |
setSubsidyAmountIsSet(false);
|
|
|
242 |
this.subsidyAmount = 0.0;
|
|
|
243 |
setEbayTxnDateIsSet(false);
|
|
|
244 |
this.ebayTxnDate = 0;
|
|
|
245 |
this.transactionId = null;
|
|
|
246 |
this.listingName = null;
|
|
|
247 |
setListingPriceIsSet(false);
|
|
|
248 |
this.listingPrice = 0.0;
|
| 8247 |
amar.kumar |
249 |
this.bluedartPaisaPayRef = null;
|
| 8182 |
amar.kumar |
250 |
}
|
|
|
251 |
|
|
|
252 |
public long getOrderId() {
|
|
|
253 |
return this.orderId;
|
|
|
254 |
}
|
|
|
255 |
|
|
|
256 |
public void setOrderId(long orderId) {
|
|
|
257 |
this.orderId = orderId;
|
|
|
258 |
setOrderIdIsSet(true);
|
|
|
259 |
}
|
|
|
260 |
|
|
|
261 |
public void unsetOrderId() {
|
|
|
262 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
263 |
}
|
|
|
264 |
|
|
|
265 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
266 |
public boolean isSetOrderId() {
|
|
|
267 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
268 |
}
|
|
|
269 |
|
|
|
270 |
public void setOrderIdIsSet(boolean value) {
|
|
|
271 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
272 |
}
|
|
|
273 |
|
|
|
274 |
public long getSalesRecordNumber() {
|
|
|
275 |
return this.salesRecordNumber;
|
|
|
276 |
}
|
|
|
277 |
|
|
|
278 |
public void setSalesRecordNumber(long salesRecordNumber) {
|
|
|
279 |
this.salesRecordNumber = salesRecordNumber;
|
|
|
280 |
setSalesRecordNumberIsSet(true);
|
|
|
281 |
}
|
|
|
282 |
|
|
|
283 |
public void unsetSalesRecordNumber() {
|
|
|
284 |
__isset_bit_vector.clear(__SALESRECORDNUMBER_ISSET_ID);
|
|
|
285 |
}
|
|
|
286 |
|
|
|
287 |
/** Returns true if field salesRecordNumber is set (has been assigned a value) and false otherwise */
|
|
|
288 |
public boolean isSetSalesRecordNumber() {
|
|
|
289 |
return __isset_bit_vector.get(__SALESRECORDNUMBER_ISSET_ID);
|
|
|
290 |
}
|
|
|
291 |
|
|
|
292 |
public void setSalesRecordNumberIsSet(boolean value) {
|
|
|
293 |
__isset_bit_vector.set(__SALESRECORDNUMBER_ISSET_ID, value);
|
|
|
294 |
}
|
|
|
295 |
|
|
|
296 |
public String getPaisaPayId() {
|
|
|
297 |
return this.paisaPayId;
|
|
|
298 |
}
|
|
|
299 |
|
|
|
300 |
public void setPaisaPayId(String paisaPayId) {
|
|
|
301 |
this.paisaPayId = paisaPayId;
|
|
|
302 |
}
|
|
|
303 |
|
|
|
304 |
public void unsetPaisaPayId() {
|
|
|
305 |
this.paisaPayId = null;
|
|
|
306 |
}
|
|
|
307 |
|
|
|
308 |
/** Returns true if field paisaPayId is set (has been assigned a value) and false otherwise */
|
|
|
309 |
public boolean isSetPaisaPayId() {
|
|
|
310 |
return this.paisaPayId != null;
|
|
|
311 |
}
|
|
|
312 |
|
|
|
313 |
public void setPaisaPayIdIsSet(boolean value) {
|
|
|
314 |
if (!value) {
|
|
|
315 |
this.paisaPayId = null;
|
|
|
316 |
}
|
|
|
317 |
}
|
|
|
318 |
|
|
|
319 |
public String getEbayListingId() {
|
|
|
320 |
return this.ebayListingId;
|
|
|
321 |
}
|
|
|
322 |
|
|
|
323 |
public void setEbayListingId(String ebayListingId) {
|
|
|
324 |
this.ebayListingId = ebayListingId;
|
|
|
325 |
}
|
|
|
326 |
|
|
|
327 |
public void unsetEbayListingId() {
|
|
|
328 |
this.ebayListingId = null;
|
|
|
329 |
}
|
|
|
330 |
|
|
|
331 |
/** Returns true if field ebayListingId is set (has been assigned a value) and false otherwise */
|
|
|
332 |
public boolean isSetEbayListingId() {
|
|
|
333 |
return this.ebayListingId != null;
|
|
|
334 |
}
|
|
|
335 |
|
|
|
336 |
public void setEbayListingIdIsSet(boolean value) {
|
|
|
337 |
if (!value) {
|
|
|
338 |
this.ebayListingId = null;
|
|
|
339 |
}
|
|
|
340 |
}
|
|
|
341 |
|
|
|
342 |
public double getSubsidyAmount() {
|
|
|
343 |
return this.subsidyAmount;
|
|
|
344 |
}
|
|
|
345 |
|
|
|
346 |
public void setSubsidyAmount(double subsidyAmount) {
|
|
|
347 |
this.subsidyAmount = subsidyAmount;
|
|
|
348 |
setSubsidyAmountIsSet(true);
|
|
|
349 |
}
|
|
|
350 |
|
|
|
351 |
public void unsetSubsidyAmount() {
|
|
|
352 |
__isset_bit_vector.clear(__SUBSIDYAMOUNT_ISSET_ID);
|
|
|
353 |
}
|
|
|
354 |
|
|
|
355 |
/** Returns true if field subsidyAmount is set (has been assigned a value) and false otherwise */
|
|
|
356 |
public boolean isSetSubsidyAmount() {
|
|
|
357 |
return __isset_bit_vector.get(__SUBSIDYAMOUNT_ISSET_ID);
|
|
|
358 |
}
|
|
|
359 |
|
|
|
360 |
public void setSubsidyAmountIsSet(boolean value) {
|
|
|
361 |
__isset_bit_vector.set(__SUBSIDYAMOUNT_ISSET_ID, value);
|
|
|
362 |
}
|
|
|
363 |
|
|
|
364 |
public long getEbayTxnDate() {
|
|
|
365 |
return this.ebayTxnDate;
|
|
|
366 |
}
|
|
|
367 |
|
|
|
368 |
public void setEbayTxnDate(long ebayTxnDate) {
|
|
|
369 |
this.ebayTxnDate = ebayTxnDate;
|
|
|
370 |
setEbayTxnDateIsSet(true);
|
|
|
371 |
}
|
|
|
372 |
|
|
|
373 |
public void unsetEbayTxnDate() {
|
|
|
374 |
__isset_bit_vector.clear(__EBAYTXNDATE_ISSET_ID);
|
|
|
375 |
}
|
|
|
376 |
|
|
|
377 |
/** Returns true if field ebayTxnDate is set (has been assigned a value) and false otherwise */
|
|
|
378 |
public boolean isSetEbayTxnDate() {
|
|
|
379 |
return __isset_bit_vector.get(__EBAYTXNDATE_ISSET_ID);
|
|
|
380 |
}
|
|
|
381 |
|
|
|
382 |
public void setEbayTxnDateIsSet(boolean value) {
|
|
|
383 |
__isset_bit_vector.set(__EBAYTXNDATE_ISSET_ID, value);
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
public String getTransactionId() {
|
|
|
387 |
return this.transactionId;
|
|
|
388 |
}
|
|
|
389 |
|
|
|
390 |
public void setTransactionId(String transactionId) {
|
|
|
391 |
this.transactionId = transactionId;
|
|
|
392 |
}
|
|
|
393 |
|
|
|
394 |
public void unsetTransactionId() {
|
|
|
395 |
this.transactionId = null;
|
|
|
396 |
}
|
|
|
397 |
|
|
|
398 |
/** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
|
|
|
399 |
public boolean isSetTransactionId() {
|
|
|
400 |
return this.transactionId != null;
|
|
|
401 |
}
|
|
|
402 |
|
|
|
403 |
public void setTransactionIdIsSet(boolean value) {
|
|
|
404 |
if (!value) {
|
|
|
405 |
this.transactionId = null;
|
|
|
406 |
}
|
|
|
407 |
}
|
|
|
408 |
|
|
|
409 |
public String getListingName() {
|
|
|
410 |
return this.listingName;
|
|
|
411 |
}
|
|
|
412 |
|
|
|
413 |
public void setListingName(String listingName) {
|
|
|
414 |
this.listingName = listingName;
|
|
|
415 |
}
|
|
|
416 |
|
|
|
417 |
public void unsetListingName() {
|
|
|
418 |
this.listingName = null;
|
|
|
419 |
}
|
|
|
420 |
|
|
|
421 |
/** Returns true if field listingName is set (has been assigned a value) and false otherwise */
|
|
|
422 |
public boolean isSetListingName() {
|
|
|
423 |
return this.listingName != null;
|
|
|
424 |
}
|
|
|
425 |
|
|
|
426 |
public void setListingNameIsSet(boolean value) {
|
|
|
427 |
if (!value) {
|
|
|
428 |
this.listingName = null;
|
|
|
429 |
}
|
|
|
430 |
}
|
|
|
431 |
|
|
|
432 |
public double getListingPrice() {
|
|
|
433 |
return this.listingPrice;
|
|
|
434 |
}
|
|
|
435 |
|
|
|
436 |
public void setListingPrice(double listingPrice) {
|
|
|
437 |
this.listingPrice = listingPrice;
|
|
|
438 |
setListingPriceIsSet(true);
|
|
|
439 |
}
|
|
|
440 |
|
|
|
441 |
public void unsetListingPrice() {
|
|
|
442 |
__isset_bit_vector.clear(__LISTINGPRICE_ISSET_ID);
|
|
|
443 |
}
|
|
|
444 |
|
|
|
445 |
/** Returns true if field listingPrice is set (has been assigned a value) and false otherwise */
|
|
|
446 |
public boolean isSetListingPrice() {
|
|
|
447 |
return __isset_bit_vector.get(__LISTINGPRICE_ISSET_ID);
|
|
|
448 |
}
|
|
|
449 |
|
|
|
450 |
public void setListingPriceIsSet(boolean value) {
|
|
|
451 |
__isset_bit_vector.set(__LISTINGPRICE_ISSET_ID, value);
|
|
|
452 |
}
|
|
|
453 |
|
| 8247 |
amar.kumar |
454 |
public String getBluedartPaisaPayRef() {
|
| 8241 |
amar.kumar |
455 |
return this.bluedartPaisaPayRef;
|
|
|
456 |
}
|
|
|
457 |
|
| 8247 |
amar.kumar |
458 |
public void setBluedartPaisaPayRef(String bluedartPaisaPayRef) {
|
| 8241 |
amar.kumar |
459 |
this.bluedartPaisaPayRef = bluedartPaisaPayRef;
|
|
|
460 |
}
|
|
|
461 |
|
|
|
462 |
public void unsetBluedartPaisaPayRef() {
|
| 8247 |
amar.kumar |
463 |
this.bluedartPaisaPayRef = null;
|
| 8241 |
amar.kumar |
464 |
}
|
|
|
465 |
|
|
|
466 |
/** Returns true if field bluedartPaisaPayRef is set (has been assigned a value) and false otherwise */
|
|
|
467 |
public boolean isSetBluedartPaisaPayRef() {
|
| 8247 |
amar.kumar |
468 |
return this.bluedartPaisaPayRef != null;
|
| 8241 |
amar.kumar |
469 |
}
|
|
|
470 |
|
|
|
471 |
public void setBluedartPaisaPayRefIsSet(boolean value) {
|
| 8247 |
amar.kumar |
472 |
if (!value) {
|
|
|
473 |
this.bluedartPaisaPayRef = null;
|
|
|
474 |
}
|
| 8241 |
amar.kumar |
475 |
}
|
|
|
476 |
|
| 8182 |
amar.kumar |
477 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
478 |
switch (field) {
|
|
|
479 |
case ORDER_ID:
|
|
|
480 |
if (value == null) {
|
|
|
481 |
unsetOrderId();
|
|
|
482 |
} else {
|
|
|
483 |
setOrderId((Long)value);
|
|
|
484 |
}
|
|
|
485 |
break;
|
|
|
486 |
|
|
|
487 |
case SALES_RECORD_NUMBER:
|
|
|
488 |
if (value == null) {
|
|
|
489 |
unsetSalesRecordNumber();
|
|
|
490 |
} else {
|
|
|
491 |
setSalesRecordNumber((Long)value);
|
|
|
492 |
}
|
|
|
493 |
break;
|
|
|
494 |
|
|
|
495 |
case PAISA_PAY_ID:
|
|
|
496 |
if (value == null) {
|
|
|
497 |
unsetPaisaPayId();
|
|
|
498 |
} else {
|
|
|
499 |
setPaisaPayId((String)value);
|
|
|
500 |
}
|
|
|
501 |
break;
|
|
|
502 |
|
|
|
503 |
case EBAY_LISTING_ID:
|
|
|
504 |
if (value == null) {
|
|
|
505 |
unsetEbayListingId();
|
|
|
506 |
} else {
|
|
|
507 |
setEbayListingId((String)value);
|
|
|
508 |
}
|
|
|
509 |
break;
|
|
|
510 |
|
|
|
511 |
case SUBSIDY_AMOUNT:
|
|
|
512 |
if (value == null) {
|
|
|
513 |
unsetSubsidyAmount();
|
|
|
514 |
} else {
|
|
|
515 |
setSubsidyAmount((Double)value);
|
|
|
516 |
}
|
|
|
517 |
break;
|
|
|
518 |
|
|
|
519 |
case EBAY_TXN_DATE:
|
|
|
520 |
if (value == null) {
|
|
|
521 |
unsetEbayTxnDate();
|
|
|
522 |
} else {
|
|
|
523 |
setEbayTxnDate((Long)value);
|
|
|
524 |
}
|
|
|
525 |
break;
|
|
|
526 |
|
|
|
527 |
case TRANSACTION_ID:
|
|
|
528 |
if (value == null) {
|
|
|
529 |
unsetTransactionId();
|
|
|
530 |
} else {
|
|
|
531 |
setTransactionId((String)value);
|
|
|
532 |
}
|
|
|
533 |
break;
|
|
|
534 |
|
|
|
535 |
case LISTING_NAME:
|
|
|
536 |
if (value == null) {
|
|
|
537 |
unsetListingName();
|
|
|
538 |
} else {
|
|
|
539 |
setListingName((String)value);
|
|
|
540 |
}
|
|
|
541 |
break;
|
|
|
542 |
|
|
|
543 |
case LISTING_PRICE:
|
|
|
544 |
if (value == null) {
|
|
|
545 |
unsetListingPrice();
|
|
|
546 |
} else {
|
|
|
547 |
setListingPrice((Double)value);
|
|
|
548 |
}
|
|
|
549 |
break;
|
|
|
550 |
|
| 8241 |
amar.kumar |
551 |
case BLUEDART_PAISA_PAY_REF:
|
|
|
552 |
if (value == null) {
|
|
|
553 |
unsetBluedartPaisaPayRef();
|
|
|
554 |
} else {
|
| 8247 |
amar.kumar |
555 |
setBluedartPaisaPayRef((String)value);
|
| 8241 |
amar.kumar |
556 |
}
|
|
|
557 |
break;
|
|
|
558 |
|
| 8182 |
amar.kumar |
559 |
}
|
|
|
560 |
}
|
|
|
561 |
|
|
|
562 |
public Object getFieldValue(_Fields field) {
|
|
|
563 |
switch (field) {
|
|
|
564 |
case ORDER_ID:
|
|
|
565 |
return Long.valueOf(getOrderId());
|
|
|
566 |
|
|
|
567 |
case SALES_RECORD_NUMBER:
|
|
|
568 |
return Long.valueOf(getSalesRecordNumber());
|
|
|
569 |
|
|
|
570 |
case PAISA_PAY_ID:
|
|
|
571 |
return getPaisaPayId();
|
|
|
572 |
|
|
|
573 |
case EBAY_LISTING_ID:
|
|
|
574 |
return getEbayListingId();
|
|
|
575 |
|
|
|
576 |
case SUBSIDY_AMOUNT:
|
|
|
577 |
return Double.valueOf(getSubsidyAmount());
|
|
|
578 |
|
|
|
579 |
case EBAY_TXN_DATE:
|
|
|
580 |
return Long.valueOf(getEbayTxnDate());
|
|
|
581 |
|
|
|
582 |
case TRANSACTION_ID:
|
|
|
583 |
return getTransactionId();
|
|
|
584 |
|
|
|
585 |
case LISTING_NAME:
|
|
|
586 |
return getListingName();
|
|
|
587 |
|
|
|
588 |
case LISTING_PRICE:
|
|
|
589 |
return Double.valueOf(getListingPrice());
|
|
|
590 |
|
| 8241 |
amar.kumar |
591 |
case BLUEDART_PAISA_PAY_REF:
|
| 8247 |
amar.kumar |
592 |
return getBluedartPaisaPayRef();
|
| 8241 |
amar.kumar |
593 |
|
| 8182 |
amar.kumar |
594 |
}
|
|
|
595 |
throw new IllegalStateException();
|
|
|
596 |
}
|
|
|
597 |
|
|
|
598 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
599 |
public boolean isSet(_Fields field) {
|
|
|
600 |
if (field == null) {
|
|
|
601 |
throw new IllegalArgumentException();
|
|
|
602 |
}
|
|
|
603 |
|
|
|
604 |
switch (field) {
|
|
|
605 |
case ORDER_ID:
|
|
|
606 |
return isSetOrderId();
|
|
|
607 |
case SALES_RECORD_NUMBER:
|
|
|
608 |
return isSetSalesRecordNumber();
|
|
|
609 |
case PAISA_PAY_ID:
|
|
|
610 |
return isSetPaisaPayId();
|
|
|
611 |
case EBAY_LISTING_ID:
|
|
|
612 |
return isSetEbayListingId();
|
|
|
613 |
case SUBSIDY_AMOUNT:
|
|
|
614 |
return isSetSubsidyAmount();
|
|
|
615 |
case EBAY_TXN_DATE:
|
|
|
616 |
return isSetEbayTxnDate();
|
|
|
617 |
case TRANSACTION_ID:
|
|
|
618 |
return isSetTransactionId();
|
|
|
619 |
case LISTING_NAME:
|
|
|
620 |
return isSetListingName();
|
|
|
621 |
case LISTING_PRICE:
|
|
|
622 |
return isSetListingPrice();
|
| 8241 |
amar.kumar |
623 |
case BLUEDART_PAISA_PAY_REF:
|
|
|
624 |
return isSetBluedartPaisaPayRef();
|
| 8182 |
amar.kumar |
625 |
}
|
|
|
626 |
throw new IllegalStateException();
|
|
|
627 |
}
|
|
|
628 |
|
|
|
629 |
@Override
|
|
|
630 |
public boolean equals(Object that) {
|
|
|
631 |
if (that == null)
|
|
|
632 |
return false;
|
|
|
633 |
if (that instanceof EbayOrder)
|
|
|
634 |
return this.equals((EbayOrder)that);
|
|
|
635 |
return false;
|
|
|
636 |
}
|
|
|
637 |
|
|
|
638 |
public boolean equals(EbayOrder that) {
|
|
|
639 |
if (that == null)
|
|
|
640 |
return false;
|
|
|
641 |
|
|
|
642 |
boolean this_present_orderId = true;
|
|
|
643 |
boolean that_present_orderId = true;
|
|
|
644 |
if (this_present_orderId || that_present_orderId) {
|
|
|
645 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
646 |
return false;
|
|
|
647 |
if (this.orderId != that.orderId)
|
|
|
648 |
return false;
|
|
|
649 |
}
|
|
|
650 |
|
|
|
651 |
boolean this_present_salesRecordNumber = true;
|
|
|
652 |
boolean that_present_salesRecordNumber = true;
|
|
|
653 |
if (this_present_salesRecordNumber || that_present_salesRecordNumber) {
|
|
|
654 |
if (!(this_present_salesRecordNumber && that_present_salesRecordNumber))
|
|
|
655 |
return false;
|
|
|
656 |
if (this.salesRecordNumber != that.salesRecordNumber)
|
|
|
657 |
return false;
|
|
|
658 |
}
|
|
|
659 |
|
|
|
660 |
boolean this_present_paisaPayId = true && this.isSetPaisaPayId();
|
|
|
661 |
boolean that_present_paisaPayId = true && that.isSetPaisaPayId();
|
|
|
662 |
if (this_present_paisaPayId || that_present_paisaPayId) {
|
|
|
663 |
if (!(this_present_paisaPayId && that_present_paisaPayId))
|
|
|
664 |
return false;
|
|
|
665 |
if (!this.paisaPayId.equals(that.paisaPayId))
|
|
|
666 |
return false;
|
|
|
667 |
}
|
|
|
668 |
|
|
|
669 |
boolean this_present_ebayListingId = true && this.isSetEbayListingId();
|
|
|
670 |
boolean that_present_ebayListingId = true && that.isSetEbayListingId();
|
|
|
671 |
if (this_present_ebayListingId || that_present_ebayListingId) {
|
|
|
672 |
if (!(this_present_ebayListingId && that_present_ebayListingId))
|
|
|
673 |
return false;
|
|
|
674 |
if (!this.ebayListingId.equals(that.ebayListingId))
|
|
|
675 |
return false;
|
|
|
676 |
}
|
|
|
677 |
|
|
|
678 |
boolean this_present_subsidyAmount = true;
|
|
|
679 |
boolean that_present_subsidyAmount = true;
|
|
|
680 |
if (this_present_subsidyAmount || that_present_subsidyAmount) {
|
|
|
681 |
if (!(this_present_subsidyAmount && that_present_subsidyAmount))
|
|
|
682 |
return false;
|
|
|
683 |
if (this.subsidyAmount != that.subsidyAmount)
|
|
|
684 |
return false;
|
|
|
685 |
}
|
|
|
686 |
|
|
|
687 |
boolean this_present_ebayTxnDate = true;
|
|
|
688 |
boolean that_present_ebayTxnDate = true;
|
|
|
689 |
if (this_present_ebayTxnDate || that_present_ebayTxnDate) {
|
|
|
690 |
if (!(this_present_ebayTxnDate && that_present_ebayTxnDate))
|
|
|
691 |
return false;
|
|
|
692 |
if (this.ebayTxnDate != that.ebayTxnDate)
|
|
|
693 |
return false;
|
|
|
694 |
}
|
|
|
695 |
|
|
|
696 |
boolean this_present_transactionId = true && this.isSetTransactionId();
|
|
|
697 |
boolean that_present_transactionId = true && that.isSetTransactionId();
|
|
|
698 |
if (this_present_transactionId || that_present_transactionId) {
|
|
|
699 |
if (!(this_present_transactionId && that_present_transactionId))
|
|
|
700 |
return false;
|
|
|
701 |
if (!this.transactionId.equals(that.transactionId))
|
|
|
702 |
return false;
|
|
|
703 |
}
|
|
|
704 |
|
|
|
705 |
boolean this_present_listingName = true && this.isSetListingName();
|
|
|
706 |
boolean that_present_listingName = true && that.isSetListingName();
|
|
|
707 |
if (this_present_listingName || that_present_listingName) {
|
|
|
708 |
if (!(this_present_listingName && that_present_listingName))
|
|
|
709 |
return false;
|
|
|
710 |
if (!this.listingName.equals(that.listingName))
|
|
|
711 |
return false;
|
|
|
712 |
}
|
|
|
713 |
|
|
|
714 |
boolean this_present_listingPrice = true;
|
|
|
715 |
boolean that_present_listingPrice = true;
|
|
|
716 |
if (this_present_listingPrice || that_present_listingPrice) {
|
|
|
717 |
if (!(this_present_listingPrice && that_present_listingPrice))
|
|
|
718 |
return false;
|
|
|
719 |
if (this.listingPrice != that.listingPrice)
|
|
|
720 |
return false;
|
|
|
721 |
}
|
|
|
722 |
|
| 8247 |
amar.kumar |
723 |
boolean this_present_bluedartPaisaPayRef = true && this.isSetBluedartPaisaPayRef();
|
|
|
724 |
boolean that_present_bluedartPaisaPayRef = true && that.isSetBluedartPaisaPayRef();
|
| 8241 |
amar.kumar |
725 |
if (this_present_bluedartPaisaPayRef || that_present_bluedartPaisaPayRef) {
|
|
|
726 |
if (!(this_present_bluedartPaisaPayRef && that_present_bluedartPaisaPayRef))
|
|
|
727 |
return false;
|
| 8247 |
amar.kumar |
728 |
if (!this.bluedartPaisaPayRef.equals(that.bluedartPaisaPayRef))
|
| 8241 |
amar.kumar |
729 |
return false;
|
|
|
730 |
}
|
|
|
731 |
|
| 8182 |
amar.kumar |
732 |
return true;
|
|
|
733 |
}
|
|
|
734 |
|
|
|
735 |
@Override
|
|
|
736 |
public int hashCode() {
|
|
|
737 |
return 0;
|
|
|
738 |
}
|
|
|
739 |
|
|
|
740 |
public int compareTo(EbayOrder other) {
|
|
|
741 |
if (!getClass().equals(other.getClass())) {
|
|
|
742 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
743 |
}
|
|
|
744 |
|
|
|
745 |
int lastComparison = 0;
|
|
|
746 |
EbayOrder typedOther = (EbayOrder)other;
|
|
|
747 |
|
|
|
748 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
749 |
if (lastComparison != 0) {
|
|
|
750 |
return lastComparison;
|
|
|
751 |
}
|
|
|
752 |
if (isSetOrderId()) {
|
|
|
753 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
754 |
if (lastComparison != 0) {
|
|
|
755 |
return lastComparison;
|
|
|
756 |
}
|
|
|
757 |
}
|
|
|
758 |
lastComparison = Boolean.valueOf(isSetSalesRecordNumber()).compareTo(typedOther.isSetSalesRecordNumber());
|
|
|
759 |
if (lastComparison != 0) {
|
|
|
760 |
return lastComparison;
|
|
|
761 |
}
|
|
|
762 |
if (isSetSalesRecordNumber()) {
|
|
|
763 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.salesRecordNumber, typedOther.salesRecordNumber);
|
|
|
764 |
if (lastComparison != 0) {
|
|
|
765 |
return lastComparison;
|
|
|
766 |
}
|
|
|
767 |
}
|
|
|
768 |
lastComparison = Boolean.valueOf(isSetPaisaPayId()).compareTo(typedOther.isSetPaisaPayId());
|
|
|
769 |
if (lastComparison != 0) {
|
|
|
770 |
return lastComparison;
|
|
|
771 |
}
|
|
|
772 |
if (isSetPaisaPayId()) {
|
|
|
773 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paisaPayId, typedOther.paisaPayId);
|
|
|
774 |
if (lastComparison != 0) {
|
|
|
775 |
return lastComparison;
|
|
|
776 |
}
|
|
|
777 |
}
|
|
|
778 |
lastComparison = Boolean.valueOf(isSetEbayListingId()).compareTo(typedOther.isSetEbayListingId());
|
|
|
779 |
if (lastComparison != 0) {
|
|
|
780 |
return lastComparison;
|
|
|
781 |
}
|
|
|
782 |
if (isSetEbayListingId()) {
|
|
|
783 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ebayListingId, typedOther.ebayListingId);
|
|
|
784 |
if (lastComparison != 0) {
|
|
|
785 |
return lastComparison;
|
|
|
786 |
}
|
|
|
787 |
}
|
|
|
788 |
lastComparison = Boolean.valueOf(isSetSubsidyAmount()).compareTo(typedOther.isSetSubsidyAmount());
|
|
|
789 |
if (lastComparison != 0) {
|
|
|
790 |
return lastComparison;
|
|
|
791 |
}
|
|
|
792 |
if (isSetSubsidyAmount()) {
|
|
|
793 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subsidyAmount, typedOther.subsidyAmount);
|
|
|
794 |
if (lastComparison != 0) {
|
|
|
795 |
return lastComparison;
|
|
|
796 |
}
|
|
|
797 |
}
|
|
|
798 |
lastComparison = Boolean.valueOf(isSetEbayTxnDate()).compareTo(typedOther.isSetEbayTxnDate());
|
|
|
799 |
if (lastComparison != 0) {
|
|
|
800 |
return lastComparison;
|
|
|
801 |
}
|
|
|
802 |
if (isSetEbayTxnDate()) {
|
|
|
803 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ebayTxnDate, typedOther.ebayTxnDate);
|
|
|
804 |
if (lastComparison != 0) {
|
|
|
805 |
return lastComparison;
|
|
|
806 |
}
|
|
|
807 |
}
|
|
|
808 |
lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
|
|
|
809 |
if (lastComparison != 0) {
|
|
|
810 |
return lastComparison;
|
|
|
811 |
}
|
|
|
812 |
if (isSetTransactionId()) {
|
|
|
813 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
|
|
|
814 |
if (lastComparison != 0) {
|
|
|
815 |
return lastComparison;
|
|
|
816 |
}
|
|
|
817 |
}
|
|
|
818 |
lastComparison = Boolean.valueOf(isSetListingName()).compareTo(typedOther.isSetListingName());
|
|
|
819 |
if (lastComparison != 0) {
|
|
|
820 |
return lastComparison;
|
|
|
821 |
}
|
|
|
822 |
if (isSetListingName()) {
|
|
|
823 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.listingName, typedOther.listingName);
|
|
|
824 |
if (lastComparison != 0) {
|
|
|
825 |
return lastComparison;
|
|
|
826 |
}
|
|
|
827 |
}
|
|
|
828 |
lastComparison = Boolean.valueOf(isSetListingPrice()).compareTo(typedOther.isSetListingPrice());
|
|
|
829 |
if (lastComparison != 0) {
|
|
|
830 |
return lastComparison;
|
|
|
831 |
}
|
|
|
832 |
if (isSetListingPrice()) {
|
|
|
833 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.listingPrice, typedOther.listingPrice);
|
|
|
834 |
if (lastComparison != 0) {
|
|
|
835 |
return lastComparison;
|
|
|
836 |
}
|
|
|
837 |
}
|
| 8241 |
amar.kumar |
838 |
lastComparison = Boolean.valueOf(isSetBluedartPaisaPayRef()).compareTo(typedOther.isSetBluedartPaisaPayRef());
|
|
|
839 |
if (lastComparison != 0) {
|
|
|
840 |
return lastComparison;
|
|
|
841 |
}
|
|
|
842 |
if (isSetBluedartPaisaPayRef()) {
|
|
|
843 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bluedartPaisaPayRef, typedOther.bluedartPaisaPayRef);
|
|
|
844 |
if (lastComparison != 0) {
|
|
|
845 |
return lastComparison;
|
|
|
846 |
}
|
|
|
847 |
}
|
| 8182 |
amar.kumar |
848 |
return 0;
|
|
|
849 |
}
|
|
|
850 |
|
|
|
851 |
public _Fields fieldForId(int fieldId) {
|
|
|
852 |
return _Fields.findByThriftId(fieldId);
|
|
|
853 |
}
|
|
|
854 |
|
|
|
855 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
856 |
org.apache.thrift.protocol.TField field;
|
|
|
857 |
iprot.readStructBegin();
|
|
|
858 |
while (true)
|
|
|
859 |
{
|
|
|
860 |
field = iprot.readFieldBegin();
|
|
|
861 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
862 |
break;
|
|
|
863 |
}
|
|
|
864 |
switch (field.id) {
|
|
|
865 |
case 1: // ORDER_ID
|
|
|
866 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
867 |
this.orderId = iprot.readI64();
|
|
|
868 |
setOrderIdIsSet(true);
|
|
|
869 |
} else {
|
|
|
870 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
871 |
}
|
|
|
872 |
break;
|
|
|
873 |
case 2: // SALES_RECORD_NUMBER
|
|
|
874 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
875 |
this.salesRecordNumber = iprot.readI64();
|
|
|
876 |
setSalesRecordNumberIsSet(true);
|
|
|
877 |
} else {
|
|
|
878 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
879 |
}
|
|
|
880 |
break;
|
|
|
881 |
case 3: // PAISA_PAY_ID
|
|
|
882 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
883 |
this.paisaPayId = iprot.readString();
|
|
|
884 |
} else {
|
|
|
885 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
886 |
}
|
|
|
887 |
break;
|
|
|
888 |
case 4: // EBAY_LISTING_ID
|
|
|
889 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
890 |
this.ebayListingId = iprot.readString();
|
|
|
891 |
} else {
|
|
|
892 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
893 |
}
|
|
|
894 |
break;
|
|
|
895 |
case 5: // SUBSIDY_AMOUNT
|
|
|
896 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
897 |
this.subsidyAmount = iprot.readDouble();
|
|
|
898 |
setSubsidyAmountIsSet(true);
|
|
|
899 |
} else {
|
|
|
900 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
901 |
}
|
|
|
902 |
break;
|
|
|
903 |
case 6: // EBAY_TXN_DATE
|
|
|
904 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
905 |
this.ebayTxnDate = iprot.readI64();
|
|
|
906 |
setEbayTxnDateIsSet(true);
|
|
|
907 |
} else {
|
|
|
908 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
909 |
}
|
|
|
910 |
break;
|
|
|
911 |
case 7: // TRANSACTION_ID
|
|
|
912 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
913 |
this.transactionId = iprot.readString();
|
|
|
914 |
} else {
|
|
|
915 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
916 |
}
|
|
|
917 |
break;
|
|
|
918 |
case 8: // LISTING_NAME
|
|
|
919 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
920 |
this.listingName = iprot.readString();
|
|
|
921 |
} else {
|
|
|
922 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
923 |
}
|
|
|
924 |
break;
|
|
|
925 |
case 9: // LISTING_PRICE
|
|
|
926 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
927 |
this.listingPrice = iprot.readDouble();
|
|
|
928 |
setListingPriceIsSet(true);
|
|
|
929 |
} else {
|
|
|
930 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
931 |
}
|
|
|
932 |
break;
|
| 8241 |
amar.kumar |
933 |
case 10: // BLUEDART_PAISA_PAY_REF
|
| 8247 |
amar.kumar |
934 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
935 |
this.bluedartPaisaPayRef = iprot.readString();
|
| 8241 |
amar.kumar |
936 |
} else {
|
|
|
937 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
938 |
}
|
|
|
939 |
break;
|
| 8182 |
amar.kumar |
940 |
default:
|
|
|
941 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
942 |
}
|
|
|
943 |
iprot.readFieldEnd();
|
|
|
944 |
}
|
|
|
945 |
iprot.readStructEnd();
|
|
|
946 |
validate();
|
|
|
947 |
}
|
|
|
948 |
|
|
|
949 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
950 |
validate();
|
|
|
951 |
|
|
|
952 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
953 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
954 |
oprot.writeI64(this.orderId);
|
|
|
955 |
oprot.writeFieldEnd();
|
|
|
956 |
oprot.writeFieldBegin(SALES_RECORD_NUMBER_FIELD_DESC);
|
|
|
957 |
oprot.writeI64(this.salesRecordNumber);
|
|
|
958 |
oprot.writeFieldEnd();
|
|
|
959 |
if (this.paisaPayId != null) {
|
|
|
960 |
oprot.writeFieldBegin(PAISA_PAY_ID_FIELD_DESC);
|
|
|
961 |
oprot.writeString(this.paisaPayId);
|
|
|
962 |
oprot.writeFieldEnd();
|
|
|
963 |
}
|
|
|
964 |
if (this.ebayListingId != null) {
|
|
|
965 |
oprot.writeFieldBegin(EBAY_LISTING_ID_FIELD_DESC);
|
|
|
966 |
oprot.writeString(this.ebayListingId);
|
|
|
967 |
oprot.writeFieldEnd();
|
|
|
968 |
}
|
|
|
969 |
oprot.writeFieldBegin(SUBSIDY_AMOUNT_FIELD_DESC);
|
|
|
970 |
oprot.writeDouble(this.subsidyAmount);
|
|
|
971 |
oprot.writeFieldEnd();
|
|
|
972 |
oprot.writeFieldBegin(EBAY_TXN_DATE_FIELD_DESC);
|
|
|
973 |
oprot.writeI64(this.ebayTxnDate);
|
|
|
974 |
oprot.writeFieldEnd();
|
|
|
975 |
if (this.transactionId != null) {
|
|
|
976 |
oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
|
|
|
977 |
oprot.writeString(this.transactionId);
|
|
|
978 |
oprot.writeFieldEnd();
|
|
|
979 |
}
|
|
|
980 |
if (this.listingName != null) {
|
|
|
981 |
oprot.writeFieldBegin(LISTING_NAME_FIELD_DESC);
|
|
|
982 |
oprot.writeString(this.listingName);
|
|
|
983 |
oprot.writeFieldEnd();
|
|
|
984 |
}
|
|
|
985 |
oprot.writeFieldBegin(LISTING_PRICE_FIELD_DESC);
|
|
|
986 |
oprot.writeDouble(this.listingPrice);
|
|
|
987 |
oprot.writeFieldEnd();
|
| 8247 |
amar.kumar |
988 |
if (this.bluedartPaisaPayRef != null) {
|
|
|
989 |
oprot.writeFieldBegin(BLUEDART_PAISA_PAY_REF_FIELD_DESC);
|
|
|
990 |
oprot.writeString(this.bluedartPaisaPayRef);
|
|
|
991 |
oprot.writeFieldEnd();
|
|
|
992 |
}
|
| 8182 |
amar.kumar |
993 |
oprot.writeFieldStop();
|
|
|
994 |
oprot.writeStructEnd();
|
|
|
995 |
}
|
|
|
996 |
|
|
|
997 |
@Override
|
|
|
998 |
public String toString() {
|
|
|
999 |
StringBuilder sb = new StringBuilder("EbayOrder(");
|
|
|
1000 |
boolean first = true;
|
|
|
1001 |
|
|
|
1002 |
sb.append("orderId:");
|
|
|
1003 |
sb.append(this.orderId);
|
|
|
1004 |
first = false;
|
|
|
1005 |
if (!first) sb.append(", ");
|
|
|
1006 |
sb.append("salesRecordNumber:");
|
|
|
1007 |
sb.append(this.salesRecordNumber);
|
|
|
1008 |
first = false;
|
|
|
1009 |
if (!first) sb.append(", ");
|
|
|
1010 |
sb.append("paisaPayId:");
|
|
|
1011 |
if (this.paisaPayId == null) {
|
|
|
1012 |
sb.append("null");
|
|
|
1013 |
} else {
|
|
|
1014 |
sb.append(this.paisaPayId);
|
|
|
1015 |
}
|
|
|
1016 |
first = false;
|
|
|
1017 |
if (!first) sb.append(", ");
|
|
|
1018 |
sb.append("ebayListingId:");
|
|
|
1019 |
if (this.ebayListingId == null) {
|
|
|
1020 |
sb.append("null");
|
|
|
1021 |
} else {
|
|
|
1022 |
sb.append(this.ebayListingId);
|
|
|
1023 |
}
|
|
|
1024 |
first = false;
|
|
|
1025 |
if (!first) sb.append(", ");
|
|
|
1026 |
sb.append("subsidyAmount:");
|
|
|
1027 |
sb.append(this.subsidyAmount);
|
|
|
1028 |
first = false;
|
|
|
1029 |
if (!first) sb.append(", ");
|
|
|
1030 |
sb.append("ebayTxnDate:");
|
|
|
1031 |
sb.append(this.ebayTxnDate);
|
|
|
1032 |
first = false;
|
|
|
1033 |
if (!first) sb.append(", ");
|
|
|
1034 |
sb.append("transactionId:");
|
|
|
1035 |
if (this.transactionId == null) {
|
|
|
1036 |
sb.append("null");
|
|
|
1037 |
} else {
|
|
|
1038 |
sb.append(this.transactionId);
|
|
|
1039 |
}
|
|
|
1040 |
first = false;
|
|
|
1041 |
if (!first) sb.append(", ");
|
|
|
1042 |
sb.append("listingName:");
|
|
|
1043 |
if (this.listingName == null) {
|
|
|
1044 |
sb.append("null");
|
|
|
1045 |
} else {
|
|
|
1046 |
sb.append(this.listingName);
|
|
|
1047 |
}
|
|
|
1048 |
first = false;
|
|
|
1049 |
if (!first) sb.append(", ");
|
|
|
1050 |
sb.append("listingPrice:");
|
|
|
1051 |
sb.append(this.listingPrice);
|
|
|
1052 |
first = false;
|
| 8241 |
amar.kumar |
1053 |
if (!first) sb.append(", ");
|
|
|
1054 |
sb.append("bluedartPaisaPayRef:");
|
| 8247 |
amar.kumar |
1055 |
if (this.bluedartPaisaPayRef == null) {
|
|
|
1056 |
sb.append("null");
|
|
|
1057 |
} else {
|
|
|
1058 |
sb.append(this.bluedartPaisaPayRef);
|
|
|
1059 |
}
|
| 8241 |
amar.kumar |
1060 |
first = false;
|
| 8182 |
amar.kumar |
1061 |
sb.append(")");
|
|
|
1062 |
return sb.toString();
|
|
|
1063 |
}
|
|
|
1064 |
|
|
|
1065 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1066 |
// check for required fields
|
|
|
1067 |
}
|
|
|
1068 |
|
|
|
1069 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1070 |
try {
|
|
|
1071 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1072 |
} catch (org.apache.thrift.TException te) {
|
|
|
1073 |
throw new java.io.IOException(te);
|
|
|
1074 |
}
|
|
|
1075 |
}
|
|
|
1076 |
|
|
|
1077 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1078 |
try {
|
|
|
1079 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1080 |
__isset_bit_vector = new BitSet(1);
|
|
|
1081 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1082 |
} catch (org.apache.thrift.TException te) {
|
|
|
1083 |
throw new java.io.IOException(te);
|
|
|
1084 |
}
|
|
|
1085 |
}
|
|
|
1086 |
|
|
|
1087 |
}
|
|
|
1088 |
|