Subversion Repositories SmartDukaan

Rev

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

Rev 2816 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.model.v1.order;
6
package in.shop2020.model.v1.order;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class Transaction implements TBase<Transaction._Fields>, java.io.Serializable, Cloneable, Comparable<Transaction> {
23
public class Transaction implements org.apache.thrift.TBase<Transaction, Transaction._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("Transaction");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Transaction");
28
 
25
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
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);
30
  private static final TField ORDERS_FIELD_DESC = new TField("orders", TType.LIST, (short)2);
27
  private static final org.apache.thrift.protocol.TField ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("orders", org.apache.thrift.protocol.TType.LIST, (short)2);
31
  private static final TField CREATED_ON_FIELD_DESC = new TField("createdOn", TType.I64, (short)3);
28
  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)3);
32
  private static final TField TRANSACTION_STATUS_FIELD_DESC = new TField("transactionStatus", TType.I32, (short)4);
29
  private static final org.apache.thrift.protocol.TField TRANSACTION_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionStatus", org.apache.thrift.protocol.TType.I32, (short)4);
33
  private static final TField STATUS_DESCRIPTION_FIELD_DESC = new TField("statusDescription", TType.STRING, (short)5);
30
  private static final org.apache.thrift.protocol.TField STATUS_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("statusDescription", org.apache.thrift.protocol.TType.STRING, (short)5);
34
  private static final TField SHOPPING_CARTID_FIELD_DESC = new TField("shoppingCartid", TType.I64, (short)6);
31
  private static final org.apache.thrift.protocol.TField SHOPPING_CARTID_FIELD_DESC = new org.apache.thrift.protocol.TField("shoppingCartid", org.apache.thrift.protocol.TType.I64, (short)6);
35
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customer_id", TType.I64, (short)7);
32
  private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_id", org.apache.thrift.protocol.TType.I64, (short)7);
36
  private static final TField COUPON_CODE_FIELD_DESC = new TField("coupon_code", TType.STRING, (short)8);
33
  private static final org.apache.thrift.protocol.TField COUPON_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("coupon_code", org.apache.thrift.protocol.TType.STRING, (short)8);
37
  private static final TField SESSION_SOURCE_FIELD_DESC = new TField("sessionSource", TType.STRING, (short)9);
34
  private static final org.apache.thrift.protocol.TField SESSION_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionSource", org.apache.thrift.protocol.TType.STRING, (short)9);
38
  private static final TField SESSION_START_TIME_FIELD_DESC = new TField("sessionStartTime", TType.I64, (short)10);
35
  private static final org.apache.thrift.protocol.TField SESSION_START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionStartTime", org.apache.thrift.protocol.TType.I64, (short)10);
39
 
36
 
40
  private long id;
37
  private long id; // required
41
  private List<Order> orders;
38
  private List<Order> orders; // required
42
  private long createdOn;
39
  private long createdOn; // required
43
  private TransactionStatus transactionStatus;
40
  private TransactionStatus transactionStatus; // required
44
  private String statusDescription;
41
  private String statusDescription; // required
45
  private long shoppingCartid;
42
  private long shoppingCartid; // required
46
  private long customer_id;
43
  private long customer_id; // required
47
  private String coupon_code;
44
  private String coupon_code; // required
48
  private String sessionSource;
45
  private String sessionSource; // required
49
  private long sessionStartTime;
46
  private long sessionStartTime; // required
50
 
47
 
51
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52
  public enum _Fields implements TFieldIdEnum {
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53
    ID((short)1, "id"),
50
    ID((short)1, "id"),
54
    ORDERS((short)2, "orders"),
51
    ORDERS((short)2, "orders"),
55
    CREATED_ON((short)3, "createdOn"),
52
    CREATED_ON((short)3, "createdOn"),
56
    /**
53
    /**
57
     * 
54
     * 
Line 63... Line 60...
63
    CUSTOMER_ID((short)7, "customer_id"),
60
    CUSTOMER_ID((short)7, "customer_id"),
64
    COUPON_CODE((short)8, "coupon_code"),
61
    COUPON_CODE((short)8, "coupon_code"),
65
    SESSION_SOURCE((short)9, "sessionSource"),
62
    SESSION_SOURCE((short)9, "sessionSource"),
66
    SESSION_START_TIME((short)10, "sessionStartTime");
63
    SESSION_START_TIME((short)10, "sessionStartTime");
67
 
64
 
68
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
69
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
65
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
70
 
66
 
71
    static {
67
    static {
72
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
68
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
73
        byId.put((int)field._thriftId, field);
-
 
74
        byName.put(field.getFieldName(), field);
69
        byName.put(field.getFieldName(), field);
75
      }
70
      }
76
    }
71
    }
77
 
72
 
78
    /**
73
    /**
79
     * Find the _Fields constant that matches fieldId, or null if its not found.
74
     * Find the _Fields constant that matches fieldId, or null if its not found.
80
     */
75
     */
81
    public static _Fields findByThriftId(int fieldId) {
76
    public static _Fields findByThriftId(int fieldId) {
82
      return byId.get(fieldId);
77
      switch(fieldId) {
-
 
78
        case 1: // ID
-
 
79
          return ID;
-
 
80
        case 2: // ORDERS
-
 
81
          return ORDERS;
-
 
82
        case 3: // CREATED_ON
-
 
83
          return CREATED_ON;
-
 
84
        case 4: // TRANSACTION_STATUS
-
 
85
          return TRANSACTION_STATUS;
-
 
86
        case 5: // STATUS_DESCRIPTION
-
 
87
          return STATUS_DESCRIPTION;
-
 
88
        case 6: // SHOPPING_CARTID
-
 
89
          return SHOPPING_CARTID;
-
 
90
        case 7: // CUSTOMER_ID
-
 
91
          return CUSTOMER_ID;
-
 
92
        case 8: // COUPON_CODE
-
 
93
          return COUPON_CODE;
-
 
94
        case 9: // SESSION_SOURCE
-
 
95
          return SESSION_SOURCE;
-
 
96
        case 10: // SESSION_START_TIME
-
 
97
          return SESSION_START_TIME;
-
 
98
        default:
-
 
99
          return null;
-
 
100
      }
83
    }
101
    }
84
 
102
 
85
    /**
103
    /**
86
     * Find the _Fields constant that matches fieldId, throwing an exception
104
     * Find the _Fields constant that matches fieldId, throwing an exception
87
     * if it is not found.
105
     * if it is not found.
Line 122... Line 140...
122
  private static final int __SHOPPINGCARTID_ISSET_ID = 2;
140
  private static final int __SHOPPINGCARTID_ISSET_ID = 2;
123
  private static final int __CUSTOMER_ID_ISSET_ID = 3;
141
  private static final int __CUSTOMER_ID_ISSET_ID = 3;
124
  private static final int __SESSIONSTARTTIME_ISSET_ID = 4;
142
  private static final int __SESSIONSTARTTIME_ISSET_ID = 4;
125
  private BitSet __isset_bit_vector = new BitSet(5);
143
  private BitSet __isset_bit_vector = new BitSet(5);
126
 
144
 
127
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
145
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
128
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
129
        new FieldValueMetaData(TType.I64)));
-
 
130
    put(_Fields.ORDERS, new FieldMetaData("orders", TFieldRequirementType.DEFAULT, 
-
 
131
        new ListMetaData(TType.LIST, 
-
 
132
            new StructMetaData(TType.STRUCT, Order.class))));
-
 
133
    put(_Fields.CREATED_ON, new FieldMetaData("createdOn", TFieldRequirementType.DEFAULT, 
-
 
134
        new FieldValueMetaData(TType.I64)));
-
 
135
    put(_Fields.TRANSACTION_STATUS, new FieldMetaData("transactionStatus", TFieldRequirementType.DEFAULT, 
-
 
136
        new EnumMetaData(TType.ENUM, TransactionStatus.class)));
-
 
137
    put(_Fields.STATUS_DESCRIPTION, new FieldMetaData("statusDescription", TFieldRequirementType.DEFAULT, 
-
 
138
        new FieldValueMetaData(TType.STRING)));
-
 
139
    put(_Fields.SHOPPING_CARTID, new FieldMetaData("shoppingCartid", TFieldRequirementType.DEFAULT, 
-
 
140
        new FieldValueMetaData(TType.I64)));
-
 
141
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customer_id", TFieldRequirementType.DEFAULT, 
-
 
142
        new FieldValueMetaData(TType.I64)));
-
 
143
    put(_Fields.COUPON_CODE, new FieldMetaData("coupon_code", TFieldRequirementType.DEFAULT, 
-
 
144
        new FieldValueMetaData(TType.STRING)));
-
 
145
    put(_Fields.SESSION_SOURCE, new FieldMetaData("sessionSource", TFieldRequirementType.DEFAULT, 
-
 
146
        new FieldValueMetaData(TType.STRING)));
-
 
147
    put(_Fields.SESSION_START_TIME, new FieldMetaData("sessionStartTime", TFieldRequirementType.DEFAULT, 
-
 
148
        new FieldValueMetaData(TType.I64)));
-
 
149
  }});
-
 
150
 
-
 
151
  static {
146
  static {
-
 
147
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
148
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
149
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
150
    tmpMap.put(_Fields.ORDERS, new org.apache.thrift.meta_data.FieldMetaData("orders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
151
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
152
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
153
    tmpMap.put(_Fields.CREATED_ON, new org.apache.thrift.meta_data.FieldMetaData("createdOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
155
    tmpMap.put(_Fields.TRANSACTION_STATUS, new org.apache.thrift.meta_data.FieldMetaData("transactionStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
156
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
-
 
157
    tmpMap.put(_Fields.STATUS_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("statusDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
159
    tmpMap.put(_Fields.SHOPPING_CARTID, new org.apache.thrift.meta_data.FieldMetaData("shoppingCartid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
161
    tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customer_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
163
    tmpMap.put(_Fields.COUPON_CODE, new org.apache.thrift.meta_data.FieldMetaData("coupon_code", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
165
    tmpMap.put(_Fields.SESSION_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("sessionSource", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
167
    tmpMap.put(_Fields.SESSION_START_TIME, new org.apache.thrift.meta_data.FieldMetaData("sessionStartTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
169
    metaDataMap = Collections.unmodifiableMap(tmpMap);
152
    FieldMetaData.addStructMetaDataMap(Transaction.class, metaDataMap);
170
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Transaction.class, metaDataMap);
153
  }
171
  }
154
 
172
 
155
  public Transaction() {
173
  public Transaction() {
156
  }
174
  }
157
 
175
 
Line 219... Line 237...
219
 
237
 
220
  public Transaction deepCopy() {
238
  public Transaction deepCopy() {
221
    return new Transaction(this);
239
    return new Transaction(this);
222
  }
240
  }
223
 
241
 
224
  @Deprecated
242
  @Override
225
  public Transaction clone() {
243
  public void clear() {
-
 
244
    setIdIsSet(false);
-
 
245
    this.id = 0;
-
 
246
    this.orders = null;
226
    return new Transaction(this);
247
    setCreatedOnIsSet(false);
-
 
248
    this.createdOn = 0;
-
 
249
    this.transactionStatus = null;
-
 
250
    this.statusDescription = null;
-
 
251
    setShoppingCartidIsSet(false);
-
 
252
    this.shoppingCartid = 0;
-
 
253
    setCustomer_idIsSet(false);
-
 
254
    this.customer_id = 0;
-
 
255
    this.coupon_code = null;
-
 
256
    this.sessionSource = null;
-
 
257
    setSessionStartTimeIsSet(false);
-
 
258
    this.sessionStartTime = 0;
227
  }
259
  }
228
 
260
 
229
  public long getId() {
261
  public long getId() {
230
    return this.id;
262
    return this.id;
231
  }
263
  }
232
 
264
 
233
  public Transaction setId(long id) {
265
  public void setId(long id) {
234
    this.id = id;
266
    this.id = id;
235
    setIdIsSet(true);
267
    setIdIsSet(true);
236
    return this;
-
 
237
  }
268
  }
238
 
269
 
239
  public void unsetId() {
270
  public void unsetId() {
240
    __isset_bit_vector.clear(__ID_ISSET_ID);
271
    __isset_bit_vector.clear(__ID_ISSET_ID);
241
  }
272
  }
242
 
273
 
243
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
274
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
244
  public boolean isSetId() {
275
  public boolean isSetId() {
245
    return __isset_bit_vector.get(__ID_ISSET_ID);
276
    return __isset_bit_vector.get(__ID_ISSET_ID);
246
  }
277
  }
247
 
278
 
248
  public void setIdIsSet(boolean value) {
279
  public void setIdIsSet(boolean value) {
Line 266... Line 297...
266
 
297
 
267
  public List<Order> getOrders() {
298
  public List<Order> getOrders() {
268
    return this.orders;
299
    return this.orders;
269
  }
300
  }
270
 
301
 
271
  public Transaction setOrders(List<Order> orders) {
302
  public void setOrders(List<Order> orders) {
272
    this.orders = orders;
303
    this.orders = orders;
273
    return this;
-
 
274
  }
304
  }
275
 
305
 
276
  public void unsetOrders() {
306
  public void unsetOrders() {
277
    this.orders = null;
307
    this.orders = null;
278
  }
308
  }
279
 
309
 
280
  /** Returns true if field orders is set (has been asigned a value) and false otherwise */
310
  /** Returns true if field orders is set (has been assigned a value) and false otherwise */
281
  public boolean isSetOrders() {
311
  public boolean isSetOrders() {
282
    return this.orders != null;
312
    return this.orders != null;
283
  }
313
  }
284
 
314
 
285
  public void setOrdersIsSet(boolean value) {
315
  public void setOrdersIsSet(boolean value) {
Line 290... Line 320...
290
 
320
 
291
  public long getCreatedOn() {
321
  public long getCreatedOn() {
292
    return this.createdOn;
322
    return this.createdOn;
293
  }
323
  }
294
 
324
 
295
  public Transaction setCreatedOn(long createdOn) {
325
  public void setCreatedOn(long createdOn) {
296
    this.createdOn = createdOn;
326
    this.createdOn = createdOn;
297
    setCreatedOnIsSet(true);
327
    setCreatedOnIsSet(true);
298
    return this;
-
 
299
  }
328
  }
300
 
329
 
301
  public void unsetCreatedOn() {
330
  public void unsetCreatedOn() {
302
    __isset_bit_vector.clear(__CREATEDON_ISSET_ID);
331
    __isset_bit_vector.clear(__CREATEDON_ISSET_ID);
303
  }
332
  }
304
 
333
 
305
  /** Returns true if field createdOn is set (has been asigned a value) and false otherwise */
334
  /** Returns true if field createdOn is set (has been assigned a value) and false otherwise */
306
  public boolean isSetCreatedOn() {
335
  public boolean isSetCreatedOn() {
307
    return __isset_bit_vector.get(__CREATEDON_ISSET_ID);
336
    return __isset_bit_vector.get(__CREATEDON_ISSET_ID);
308
  }
337
  }
309
 
338
 
310
  public void setCreatedOnIsSet(boolean value) {
339
  public void setCreatedOnIsSet(boolean value) {
Line 321... Line 350...
321
 
350
 
322
  /**
351
  /**
323
   * 
352
   * 
324
   * @see TransactionStatus
353
   * @see TransactionStatus
325
   */
354
   */
326
  public Transaction setTransactionStatus(TransactionStatus transactionStatus) {
355
  public void setTransactionStatus(TransactionStatus transactionStatus) {
327
    this.transactionStatus = transactionStatus;
356
    this.transactionStatus = transactionStatus;
328
    return this;
-
 
329
  }
357
  }
330
 
358
 
331
  public void unsetTransactionStatus() {
359
  public void unsetTransactionStatus() {
332
    this.transactionStatus = null;
360
    this.transactionStatus = null;
333
  }
361
  }
334
 
362
 
335
  /** Returns true if field transactionStatus is set (has been asigned a value) and false otherwise */
363
  /** Returns true if field transactionStatus is set (has been assigned a value) and false otherwise */
336
  public boolean isSetTransactionStatus() {
364
  public boolean isSetTransactionStatus() {
337
    return this.transactionStatus != null;
365
    return this.transactionStatus != null;
338
  }
366
  }
339
 
367
 
340
  public void setTransactionStatusIsSet(boolean value) {
368
  public void setTransactionStatusIsSet(boolean value) {
Line 345... Line 373...
345
 
373
 
346
  public String getStatusDescription() {
374
  public String getStatusDescription() {
347
    return this.statusDescription;
375
    return this.statusDescription;
348
  }
376
  }
349
 
377
 
350
  public Transaction setStatusDescription(String statusDescription) {
378
  public void setStatusDescription(String statusDescription) {
351
    this.statusDescription = statusDescription;
379
    this.statusDescription = statusDescription;
352
    return this;
-
 
353
  }
380
  }
354
 
381
 
355
  public void unsetStatusDescription() {
382
  public void unsetStatusDescription() {
356
    this.statusDescription = null;
383
    this.statusDescription = null;
357
  }
384
  }
358
 
385
 
359
  /** Returns true if field statusDescription is set (has been asigned a value) and false otherwise */
386
  /** Returns true if field statusDescription is set (has been assigned a value) and false otherwise */
360
  public boolean isSetStatusDescription() {
387
  public boolean isSetStatusDescription() {
361
    return this.statusDescription != null;
388
    return this.statusDescription != null;
362
  }
389
  }
363
 
390
 
364
  public void setStatusDescriptionIsSet(boolean value) {
391
  public void setStatusDescriptionIsSet(boolean value) {
Line 369... Line 396...
369
 
396
 
370
  public long getShoppingCartid() {
397
  public long getShoppingCartid() {
371
    return this.shoppingCartid;
398
    return this.shoppingCartid;
372
  }
399
  }
373
 
400
 
374
  public Transaction setShoppingCartid(long shoppingCartid) {
401
  public void setShoppingCartid(long shoppingCartid) {
375
    this.shoppingCartid = shoppingCartid;
402
    this.shoppingCartid = shoppingCartid;
376
    setShoppingCartidIsSet(true);
403
    setShoppingCartidIsSet(true);
377
    return this;
-
 
378
  }
404
  }
379
 
405
 
380
  public void unsetShoppingCartid() {
406
  public void unsetShoppingCartid() {
381
    __isset_bit_vector.clear(__SHOPPINGCARTID_ISSET_ID);
407
    __isset_bit_vector.clear(__SHOPPINGCARTID_ISSET_ID);
382
  }
408
  }
383
 
409
 
384
  /** Returns true if field shoppingCartid is set (has been asigned a value) and false otherwise */
410
  /** Returns true if field shoppingCartid is set (has been assigned a value) and false otherwise */
385
  public boolean isSetShoppingCartid() {
411
  public boolean isSetShoppingCartid() {
386
    return __isset_bit_vector.get(__SHOPPINGCARTID_ISSET_ID);
412
    return __isset_bit_vector.get(__SHOPPINGCARTID_ISSET_ID);
387
  }
413
  }
388
 
414
 
389
  public void setShoppingCartidIsSet(boolean value) {
415
  public void setShoppingCartidIsSet(boolean value) {
Line 392... Line 418...
392
 
418
 
393
  public long getCustomer_id() {
419
  public long getCustomer_id() {
394
    return this.customer_id;
420
    return this.customer_id;
395
  }
421
  }
396
 
422
 
397
  public Transaction setCustomer_id(long customer_id) {
423
  public void setCustomer_id(long customer_id) {
398
    this.customer_id = customer_id;
424
    this.customer_id = customer_id;
399
    setCustomer_idIsSet(true);
425
    setCustomer_idIsSet(true);
400
    return this;
-
 
401
  }
426
  }
402
 
427
 
403
  public void unsetCustomer_id() {
428
  public void unsetCustomer_id() {
404
    __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
429
    __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
405
  }
430
  }
406
 
431
 
407
  /** Returns true if field customer_id is set (has been asigned a value) and false otherwise */
432
  /** Returns true if field customer_id is set (has been assigned a value) and false otherwise */
408
  public boolean isSetCustomer_id() {
433
  public boolean isSetCustomer_id() {
409
    return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
434
    return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
410
  }
435
  }
411
 
436
 
412
  public void setCustomer_idIsSet(boolean value) {
437
  public void setCustomer_idIsSet(boolean value) {
Line 415... Line 440...
415
 
440
 
416
  public String getCoupon_code() {
441
  public String getCoupon_code() {
417
    return this.coupon_code;
442
    return this.coupon_code;
418
  }
443
  }
419
 
444
 
420
  public Transaction setCoupon_code(String coupon_code) {
445
  public void setCoupon_code(String coupon_code) {
421
    this.coupon_code = coupon_code;
446
    this.coupon_code = coupon_code;
422
    return this;
-
 
423
  }
447
  }
424
 
448
 
425
  public void unsetCoupon_code() {
449
  public void unsetCoupon_code() {
426
    this.coupon_code = null;
450
    this.coupon_code = null;
427
  }
451
  }
428
 
452
 
429
  /** Returns true if field coupon_code is set (has been asigned a value) and false otherwise */
453
  /** Returns true if field coupon_code is set (has been assigned a value) and false otherwise */
430
  public boolean isSetCoupon_code() {
454
  public boolean isSetCoupon_code() {
431
    return this.coupon_code != null;
455
    return this.coupon_code != null;
432
  }
456
  }
433
 
457
 
434
  public void setCoupon_codeIsSet(boolean value) {
458
  public void setCoupon_codeIsSet(boolean value) {
Line 439... Line 463...
439
 
463
 
440
  public String getSessionSource() {
464
  public String getSessionSource() {
441
    return this.sessionSource;
465
    return this.sessionSource;
442
  }
466
  }
443
 
467
 
444
  public Transaction setSessionSource(String sessionSource) {
468
  public void setSessionSource(String sessionSource) {
445
    this.sessionSource = sessionSource;
469
    this.sessionSource = sessionSource;
446
    return this;
-
 
447
  }
470
  }
448
 
471
 
449
  public void unsetSessionSource() {
472
  public void unsetSessionSource() {
450
    this.sessionSource = null;
473
    this.sessionSource = null;
451
  }
474
  }
452
 
475
 
453
  /** Returns true if field sessionSource is set (has been asigned a value) and false otherwise */
476
  /** Returns true if field sessionSource is set (has been assigned a value) and false otherwise */
454
  public boolean isSetSessionSource() {
477
  public boolean isSetSessionSource() {
455
    return this.sessionSource != null;
478
    return this.sessionSource != null;
456
  }
479
  }
457
 
480
 
458
  public void setSessionSourceIsSet(boolean value) {
481
  public void setSessionSourceIsSet(boolean value) {
Line 463... Line 486...
463
 
486
 
464
  public long getSessionStartTime() {
487
  public long getSessionStartTime() {
465
    return this.sessionStartTime;
488
    return this.sessionStartTime;
466
  }
489
  }
467
 
490
 
468
  public Transaction setSessionStartTime(long sessionStartTime) {
491
  public void setSessionStartTime(long sessionStartTime) {
469
    this.sessionStartTime = sessionStartTime;
492
    this.sessionStartTime = sessionStartTime;
470
    setSessionStartTimeIsSet(true);
493
    setSessionStartTimeIsSet(true);
471
    return this;
-
 
472
  }
494
  }
473
 
495
 
474
  public void unsetSessionStartTime() {
496
  public void unsetSessionStartTime() {
475
    __isset_bit_vector.clear(__SESSIONSTARTTIME_ISSET_ID);
497
    __isset_bit_vector.clear(__SESSIONSTARTTIME_ISSET_ID);
476
  }
498
  }
477
 
499
 
478
  /** Returns true if field sessionStartTime is set (has been asigned a value) and false otherwise */
500
  /** Returns true if field sessionStartTime is set (has been assigned a value) and false otherwise */
479
  public boolean isSetSessionStartTime() {
501
  public boolean isSetSessionStartTime() {
480
    return __isset_bit_vector.get(__SESSIONSTARTTIME_ISSET_ID);
502
    return __isset_bit_vector.get(__SESSIONSTARTTIME_ISSET_ID);
481
  }
503
  }
482
 
504
 
483
  public void setSessionStartTimeIsSet(boolean value) {
505
  public void setSessionStartTimeIsSet(boolean value) {
Line 567... Line 589...
567
      break;
589
      break;
568
 
590
 
569
    }
591
    }
570
  }
592
  }
571
 
593
 
572
  public void setFieldValue(int fieldID, Object value) {
-
 
573
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
574
  }
-
 
575
 
-
 
576
  public Object getFieldValue(_Fields field) {
594
  public Object getFieldValue(_Fields field) {
577
    switch (field) {
595
    switch (field) {
578
    case ID:
596
    case ID:
579
      return new Long(getId());
597
      return Long.valueOf(getId());
580
 
598
 
581
    case ORDERS:
599
    case ORDERS:
582
      return getOrders();
600
      return getOrders();
583
 
601
 
584
    case CREATED_ON:
602
    case CREATED_ON:
585
      return new Long(getCreatedOn());
603
      return Long.valueOf(getCreatedOn());
586
 
604
 
587
    case TRANSACTION_STATUS:
605
    case TRANSACTION_STATUS:
588
      return getTransactionStatus();
606
      return getTransactionStatus();
589
 
607
 
590
    case STATUS_DESCRIPTION:
608
    case STATUS_DESCRIPTION:
591
      return getStatusDescription();
609
      return getStatusDescription();
592
 
610
 
593
    case SHOPPING_CARTID:
611
    case SHOPPING_CARTID:
594
      return new Long(getShoppingCartid());
612
      return Long.valueOf(getShoppingCartid());
595
 
613
 
596
    case CUSTOMER_ID:
614
    case CUSTOMER_ID:
597
      return new Long(getCustomer_id());
615
      return Long.valueOf(getCustomer_id());
598
 
616
 
599
    case COUPON_CODE:
617
    case COUPON_CODE:
600
      return getCoupon_code();
618
      return getCoupon_code();
601
 
619
 
602
    case SESSION_SOURCE:
620
    case SESSION_SOURCE:
603
      return getSessionSource();
621
      return getSessionSource();
604
 
622
 
605
    case SESSION_START_TIME:
623
    case SESSION_START_TIME:
606
      return new Long(getSessionStartTime());
624
      return Long.valueOf(getSessionStartTime());
607
 
625
 
608
    }
626
    }
609
    throw new IllegalStateException();
627
    throw new IllegalStateException();
610
  }
628
  }
611
 
629
 
612
  public Object getFieldValue(int fieldId) {
-
 
613
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
614
  }
-
 
615
 
-
 
616
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
630
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
617
  public boolean isSet(_Fields field) {
631
  public boolean isSet(_Fields field) {
-
 
632
    if (field == null) {
-
 
633
      throw new IllegalArgumentException();
-
 
634
    }
-
 
635
 
618
    switch (field) {
636
    switch (field) {
619
    case ID:
637
    case ID:
620
      return isSetId();
638
      return isSetId();
621
    case ORDERS:
639
    case ORDERS:
622
      return isSetOrders();
640
      return isSetOrders();
Line 638... Line 656...
638
      return isSetSessionStartTime();
656
      return isSetSessionStartTime();
639
    }
657
    }
640
    throw new IllegalStateException();
658
    throw new IllegalStateException();
641
  }
659
  }
642
 
660
 
643
  public boolean isSet(int fieldID) {
-
 
644
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
645
  }
-
 
646
 
-
 
647
  @Override
661
  @Override
648
  public boolean equals(Object that) {
662
  public boolean equals(Object that) {
649
    if (that == null)
663
    if (that == null)
650
      return false;
664
      return false;
651
    if (that instanceof Transaction)
665
    if (that instanceof Transaction)
Line 761... Line 775...
761
    }
775
    }
762
 
776
 
763
    int lastComparison = 0;
777
    int lastComparison = 0;
764
    Transaction typedOther = (Transaction)other;
778
    Transaction typedOther = (Transaction)other;
765
 
779
 
766
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
780
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
767
    if (lastComparison != 0) {
781
    if (lastComparison != 0) {
768
      return lastComparison;
782
      return lastComparison;
769
    }
783
    }
-
 
784
    if (isSetId()) {
770
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
785
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
771
    if (lastComparison != 0) {
786
      if (lastComparison != 0) {
772
      return lastComparison;
787
        return lastComparison;
-
 
788
      }
773
    }
789
    }
774
    lastComparison = Boolean.valueOf(isSetOrders()).compareTo(isSetOrders());
790
    lastComparison = Boolean.valueOf(isSetOrders()).compareTo(typedOther.isSetOrders());
775
    if (lastComparison != 0) {
791
    if (lastComparison != 0) {
776
      return lastComparison;
792
      return lastComparison;
777
    }
793
    }
-
 
794
    if (isSetOrders()) {
778
    lastComparison = TBaseHelper.compareTo(orders, typedOther.orders);
795
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orders, typedOther.orders);
779
    if (lastComparison != 0) {
796
      if (lastComparison != 0) {
780
      return lastComparison;
797
        return lastComparison;
-
 
798
      }
781
    }
799
    }
782
    lastComparison = Boolean.valueOf(isSetCreatedOn()).compareTo(isSetCreatedOn());
800
    lastComparison = Boolean.valueOf(isSetCreatedOn()).compareTo(typedOther.isSetCreatedOn());
783
    if (lastComparison != 0) {
801
    if (lastComparison != 0) {
784
      return lastComparison;
802
      return lastComparison;
785
    }
803
    }
-
 
804
    if (isSetCreatedOn()) {
786
    lastComparison = TBaseHelper.compareTo(createdOn, typedOther.createdOn);
805
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdOn, typedOther.createdOn);
787
    if (lastComparison != 0) {
806
      if (lastComparison != 0) {
788
      return lastComparison;
807
        return lastComparison;
-
 
808
      }
789
    }
809
    }
790
    lastComparison = Boolean.valueOf(isSetTransactionStatus()).compareTo(isSetTransactionStatus());
810
    lastComparison = Boolean.valueOf(isSetTransactionStatus()).compareTo(typedOther.isSetTransactionStatus());
791
    if (lastComparison != 0) {
811
    if (lastComparison != 0) {
792
      return lastComparison;
812
      return lastComparison;
793
    }
813
    }
-
 
814
    if (isSetTransactionStatus()) {
794
    lastComparison = TBaseHelper.compareTo(transactionStatus, typedOther.transactionStatus);
815
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionStatus, typedOther.transactionStatus);
795
    if (lastComparison != 0) {
816
      if (lastComparison != 0) {
796
      return lastComparison;
817
        return lastComparison;
-
 
818
      }
797
    }
819
    }
798
    lastComparison = Boolean.valueOf(isSetStatusDescription()).compareTo(isSetStatusDescription());
820
    lastComparison = Boolean.valueOf(isSetStatusDescription()).compareTo(typedOther.isSetStatusDescription());
799
    if (lastComparison != 0) {
821
    if (lastComparison != 0) {
800
      return lastComparison;
822
      return lastComparison;
801
    }
823
    }
-
 
824
    if (isSetStatusDescription()) {
802
    lastComparison = TBaseHelper.compareTo(statusDescription, typedOther.statusDescription);
825
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusDescription, typedOther.statusDescription);
803
    if (lastComparison != 0) {
826
      if (lastComparison != 0) {
804
      return lastComparison;
827
        return lastComparison;
-
 
828
      }
805
    }
829
    }
806
    lastComparison = Boolean.valueOf(isSetShoppingCartid()).compareTo(isSetShoppingCartid());
830
    lastComparison = Boolean.valueOf(isSetShoppingCartid()).compareTo(typedOther.isSetShoppingCartid());
807
    if (lastComparison != 0) {
831
    if (lastComparison != 0) {
808
      return lastComparison;
832
      return lastComparison;
809
    }
833
    }
-
 
834
    if (isSetShoppingCartid()) {
810
    lastComparison = TBaseHelper.compareTo(shoppingCartid, typedOther.shoppingCartid);
835
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shoppingCartid, typedOther.shoppingCartid);
811
    if (lastComparison != 0) {
836
      if (lastComparison != 0) {
812
      return lastComparison;
837
        return lastComparison;
-
 
838
      }
813
    }
839
    }
814
    lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(isSetCustomer_id());
840
    lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(typedOther.isSetCustomer_id());
815
    if (lastComparison != 0) {
841
    if (lastComparison != 0) {
816
      return lastComparison;
842
      return lastComparison;
817
    }
843
    }
-
 
844
    if (isSetCustomer_id()) {
818
    lastComparison = TBaseHelper.compareTo(customer_id, typedOther.customer_id);
845
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_id, typedOther.customer_id);
819
    if (lastComparison != 0) {
846
      if (lastComparison != 0) {
820
      return lastComparison;
847
        return lastComparison;
-
 
848
      }
821
    }
849
    }
822
    lastComparison = Boolean.valueOf(isSetCoupon_code()).compareTo(isSetCoupon_code());
850
    lastComparison = Boolean.valueOf(isSetCoupon_code()).compareTo(typedOther.isSetCoupon_code());
823
    if (lastComparison != 0) {
851
    if (lastComparison != 0) {
824
      return lastComparison;
852
      return lastComparison;
825
    }
853
    }
-
 
854
    if (isSetCoupon_code()) {
826
    lastComparison = TBaseHelper.compareTo(coupon_code, typedOther.coupon_code);
855
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.coupon_code, typedOther.coupon_code);
827
    if (lastComparison != 0) {
856
      if (lastComparison != 0) {
828
      return lastComparison;
857
        return lastComparison;
-
 
858
      }
829
    }
859
    }
830
    lastComparison = Boolean.valueOf(isSetSessionSource()).compareTo(isSetSessionSource());
860
    lastComparison = Boolean.valueOf(isSetSessionSource()).compareTo(typedOther.isSetSessionSource());
831
    if (lastComparison != 0) {
861
    if (lastComparison != 0) {
832
      return lastComparison;
862
      return lastComparison;
833
    }
863
    }
-
 
864
    if (isSetSessionSource()) {
834
    lastComparison = TBaseHelper.compareTo(sessionSource, typedOther.sessionSource);
865
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionSource, typedOther.sessionSource);
835
    if (lastComparison != 0) {
866
      if (lastComparison != 0) {
836
      return lastComparison;
867
        return lastComparison;
-
 
868
      }
837
    }
869
    }
838
    lastComparison = Boolean.valueOf(isSetSessionStartTime()).compareTo(isSetSessionStartTime());
870
    lastComparison = Boolean.valueOf(isSetSessionStartTime()).compareTo(typedOther.isSetSessionStartTime());
839
    if (lastComparison != 0) {
871
    if (lastComparison != 0) {
840
      return lastComparison;
872
      return lastComparison;
841
    }
873
    }
-
 
874
    if (isSetSessionStartTime()) {
842
    lastComparison = TBaseHelper.compareTo(sessionStartTime, typedOther.sessionStartTime);
875
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionStartTime, typedOther.sessionStartTime);
843
    if (lastComparison != 0) {
876
      if (lastComparison != 0) {
844
      return lastComparison;
877
        return lastComparison;
-
 
878
      }
845
    }
879
    }
846
    return 0;
880
    return 0;
847
  }
881
  }
848
 
882
 
-
 
883
  public _Fields fieldForId(int fieldId) {
-
 
884
    return _Fields.findByThriftId(fieldId);
-
 
885
  }
-
 
886
 
849
  public void read(TProtocol iprot) throws TException {
887
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
850
    TField field;
888
    org.apache.thrift.protocol.TField field;
851
    iprot.readStructBegin();
889
    iprot.readStructBegin();
852
    while (true)
890
    while (true)
853
    {
891
    {
854
      field = iprot.readFieldBegin();
892
      field = iprot.readFieldBegin();
855
      if (field.type == TType.STOP) { 
893
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
856
        break;
894
        break;
857
      }
895
      }
858
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
859
      if (fieldId == null) {
-
 
860
        TProtocolUtil.skip(iprot, field.type);
-
 
861
      } else {
-
 
862
        switch (fieldId) {
896
      switch (field.id) {
863
          case ID:
897
        case 1: // ID
864
            if (field.type == TType.I64) {
898
          if (field.type == org.apache.thrift.protocol.TType.I64) {
865
              this.id = iprot.readI64();
899
            this.id = iprot.readI64();
866
              setIdIsSet(true);
900
            setIdIsSet(true);
867
            } else { 
901
          } else { 
868
              TProtocolUtil.skip(iprot, field.type);
902
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
869
            }
903
          }
870
            break;
904
          break;
871
          case ORDERS:
905
        case 2: // ORDERS
872
            if (field.type == TType.LIST) {
906
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
907
            {
-
 
908
              org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
-
 
909
              this.orders = new ArrayList<Order>(_list4.size);
-
 
910
              for (int _i5 = 0; _i5 < _list4.size; ++_i5)
873
              {
911
              {
874
                TList _list4 = iprot.readListBegin();
-
 
875
                this.orders = new ArrayList<Order>(_list4.size);
-
 
876
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
-
 
877
                {
-
 
878
                  Order _elem6;
912
                Order _elem6; // required
879
                  _elem6 = new Order();
913
                _elem6 = new Order();
880
                  _elem6.read(iprot);
914
                _elem6.read(iprot);
881
                  this.orders.add(_elem6);
915
                this.orders.add(_elem6);
882
                }
-
 
883
                iprot.readListEnd();
-
 
884
              }
916
              }
885
            } else { 
917
              iprot.readListEnd();
886
              TProtocolUtil.skip(iprot, field.type);
-
 
887
            }
918
            }
-
 
919
          } else { 
-
 
920
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
921
          }
888
            break;
922
          break;
889
          case CREATED_ON:
923
        case 3: // CREATED_ON
890
            if (field.type == TType.I64) {
924
          if (field.type == org.apache.thrift.protocol.TType.I64) {
891
              this.createdOn = iprot.readI64();
925
            this.createdOn = iprot.readI64();
892
              setCreatedOnIsSet(true);
926
            setCreatedOnIsSet(true);
893
            } else { 
927
          } else { 
894
              TProtocolUtil.skip(iprot, field.type);
928
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
895
            }
929
          }
896
            break;
930
          break;
897
          case TRANSACTION_STATUS:
931
        case 4: // TRANSACTION_STATUS
898
            if (field.type == TType.I32) {
932
          if (field.type == org.apache.thrift.protocol.TType.I32) {
899
              this.transactionStatus = TransactionStatus.findByValue(iprot.readI32());
933
            this.transactionStatus = TransactionStatus.findByValue(iprot.readI32());
900
            } else { 
934
          } else { 
901
              TProtocolUtil.skip(iprot, field.type);
935
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
902
            }
936
          }
903
            break;
937
          break;
904
          case STATUS_DESCRIPTION:
938
        case 5: // STATUS_DESCRIPTION
905
            if (field.type == TType.STRING) {
939
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
906
              this.statusDescription = iprot.readString();
940
            this.statusDescription = iprot.readString();
907
            } else { 
941
          } else { 
908
              TProtocolUtil.skip(iprot, field.type);
942
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
909
            }
943
          }
910
            break;
944
          break;
911
          case SHOPPING_CARTID:
945
        case 6: // SHOPPING_CARTID
912
            if (field.type == TType.I64) {
946
          if (field.type == org.apache.thrift.protocol.TType.I64) {
913
              this.shoppingCartid = iprot.readI64();
947
            this.shoppingCartid = iprot.readI64();
914
              setShoppingCartidIsSet(true);
948
            setShoppingCartidIsSet(true);
915
            } else { 
949
          } else { 
916
              TProtocolUtil.skip(iprot, field.type);
950
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
917
            }
951
          }
918
            break;
952
          break;
919
          case CUSTOMER_ID:
953
        case 7: // CUSTOMER_ID
920
            if (field.type == TType.I64) {
954
          if (field.type == org.apache.thrift.protocol.TType.I64) {
921
              this.customer_id = iprot.readI64();
955
            this.customer_id = iprot.readI64();
922
              setCustomer_idIsSet(true);
956
            setCustomer_idIsSet(true);
923
            } else { 
957
          } else { 
924
              TProtocolUtil.skip(iprot, field.type);
958
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
925
            }
959
          }
926
            break;
960
          break;
927
          case COUPON_CODE:
961
        case 8: // COUPON_CODE
928
            if (field.type == TType.STRING) {
962
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
929
              this.coupon_code = iprot.readString();
963
            this.coupon_code = iprot.readString();
930
            } else { 
964
          } else { 
931
              TProtocolUtil.skip(iprot, field.type);
965
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
932
            }
966
          }
933
            break;
967
          break;
934
          case SESSION_SOURCE:
968
        case 9: // SESSION_SOURCE
935
            if (field.type == TType.STRING) {
969
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
936
              this.sessionSource = iprot.readString();
970
            this.sessionSource = iprot.readString();
937
            } else { 
971
          } else { 
938
              TProtocolUtil.skip(iprot, field.type);
972
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
939
            }
973
          }
940
            break;
974
          break;
941
          case SESSION_START_TIME:
975
        case 10: // SESSION_START_TIME
942
            if (field.type == TType.I64) {
976
          if (field.type == org.apache.thrift.protocol.TType.I64) {
943
              this.sessionStartTime = iprot.readI64();
977
            this.sessionStartTime = iprot.readI64();
944
              setSessionStartTimeIsSet(true);
978
            setSessionStartTimeIsSet(true);
945
            } else { 
979
          } else { 
946
              TProtocolUtil.skip(iprot, field.type);
980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
947
            }
981
          }
948
            break;
982
          break;
949
        }
983
        default:
950
        iprot.readFieldEnd();
984
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
951
      }
985
      }
-
 
986
      iprot.readFieldEnd();
952
    }
987
    }
953
    iprot.readStructEnd();
988
    iprot.readStructEnd();
954
    validate();
989
    validate();
955
  }
990
  }
956
 
991
 
957
  public void write(TProtocol oprot) throws TException {
992
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
958
    validate();
993
    validate();
959
 
994
 
960
    oprot.writeStructBegin(STRUCT_DESC);
995
    oprot.writeStructBegin(STRUCT_DESC);
961
    oprot.writeFieldBegin(ID_FIELD_DESC);
996
    oprot.writeFieldBegin(ID_FIELD_DESC);
962
    oprot.writeI64(this.id);
997
    oprot.writeI64(this.id);
963
    oprot.writeFieldEnd();
998
    oprot.writeFieldEnd();
964
    if (this.orders != null) {
999
    if (this.orders != null) {
965
      oprot.writeFieldBegin(ORDERS_FIELD_DESC);
1000
      oprot.writeFieldBegin(ORDERS_FIELD_DESC);
966
      {
1001
      {
967
        oprot.writeListBegin(new TList(TType.STRUCT, this.orders.size()));
1002
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.orders.size()));
968
        for (Order _iter7 : this.orders)
1003
        for (Order _iter7 : this.orders)
969
        {
1004
        {
970
          _iter7.write(oprot);
1005
          _iter7.write(oprot);
971
        }
1006
        }
972
        oprot.writeListEnd();
1007
        oprot.writeListEnd();
Line 1032... Line 1067...
1032
    if (!first) sb.append(", ");
1067
    if (!first) sb.append(", ");
1033
    sb.append("transactionStatus:");
1068
    sb.append("transactionStatus:");
1034
    if (this.transactionStatus == null) {
1069
    if (this.transactionStatus == null) {
1035
      sb.append("null");
1070
      sb.append("null");
1036
    } else {
1071
    } else {
1037
      String transactionStatus_name = transactionStatus.name();
-
 
1038
      if (transactionStatus_name != null) {
-
 
1039
        sb.append(transactionStatus_name);
-
 
1040
        sb.append(" (");
-
 
1041
      }
-
 
1042
      sb.append(this.transactionStatus);
1072
      sb.append(this.transactionStatus);
1043
      if (transactionStatus_name != null) {
-
 
1044
        sb.append(")");
-
 
1045
      }
-
 
1046
    }
1073
    }
1047
    first = false;
1074
    first = false;
1048
    if (!first) sb.append(", ");
1075
    if (!first) sb.append(", ");
1049
    sb.append("statusDescription:");
1076
    sb.append("statusDescription:");
1050
    if (this.statusDescription == null) {
1077
    if (this.statusDescription == null) {
Line 1083... Line 1110...
1083
    first = false;
1110
    first = false;
1084
    sb.append(")");
1111
    sb.append(")");
1085
    return sb.toString();
1112
    return sb.toString();
1086
  }
1113
  }
1087
 
1114
 
1088
  public void validate() throws TException {
1115
  public void validate() throws org.apache.thrift.TException {
1089
    // check for required fields
1116
    // check for required fields
1090
  }
1117
  }
1091
 
1118
 
-
 
1119
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1120
    try {
-
 
1121
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1122
    } catch (org.apache.thrift.TException te) {
-
 
1123
      throw new java.io.IOException(te);
-
 
1124
    }
-
 
1125
  }
-
 
1126
 
-
 
1127
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1128
    try {
-
 
1129
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1130
      __isset_bit_vector = new BitSet(1);
-
 
1131
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1132
    } catch (org.apache.thrift.TException te) {
-
 
1133
      throw new java.io.IOException(te);
-
 
1134
    }
-
 
1135
  }
-
 
1136
 
1092
}
1137
}
1093
 
1138