Subversion Repositories SmartDukaan

Rev

Rev 358 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 358 Rev 483
Line 25... Line 25...
25
 
25
 
26
public class Transaction implements TBase<Transaction._Fields>, java.io.Serializable, Cloneable {
26
public class Transaction implements TBase<Transaction._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("Transaction");
27
  private static final TStruct STRUCT_DESC = new TStruct("Transaction");
28
 
28
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
30
  private static final TField ORDER_INFO_FIELD_DESC = new TField("orderInfo", TType.STRUCT, (short)2);
30
  private static final TField ORDERS_FIELD_DESC = new TField("orders", TType.LIST, (short)2);
31
  private static final TField SHIPMENT_INFO_FIELD_DESC = new TField("shipmentInfo", TType.STRUCT, (short)3);
-
 
32
  private static final TField BILLING_INFO_FIELD_DESC = new TField("billingInfo", TType.STRUCT, (short)4);
-
 
33
  private static final TField PAYMENT_INFO_FIELD_DESC = new TField("paymentInfo", TType.STRUCT, (short)5);
31
  private static final TField PAYMENT_INFO_FIELD_DESC = new TField("paymentInfo", TType.STRUCT, (short)3);
34
  private static final TField CREATED_ON_FIELD_DESC = new TField("createdOn", TType.I64, (short)6);
32
  private static final TField CREATED_ON_FIELD_DESC = new TField("createdOn", TType.I64, (short)4);
35
  private static final TField EXPECTED_DELIVERY_TIME_FIELD_DESC = new TField("expectedDeliveryTime", TType.I64, (short)7);
-
 
36
  private static final TField TRANSACTION_STATUS_FIELD_DESC = new TField("transactionStatus", TType.I32, (short)8);
33
  private static final TField TRANSACTION_STATUS_FIELD_DESC = new TField("transactionStatus", TType.I32, (short)5);
37
  private static final TField STATUS_DESCRIPTION_FIELD_DESC = new TField("statusDescription", TType.STRING, (short)9);
34
  private static final TField STATUS_DESCRIPTION_FIELD_DESC = new TField("statusDescription", TType.STRING, (short)6);
38
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customer_id", TType.I64, (short)10);
-
 
39
  private static final TField SHOPPING_CARTID_FIELD_DESC = new TField("shoppingCartid", TType.I64, (short)11);
35
  private static final TField SHOPPING_CARTID_FIELD_DESC = new TField("shoppingCartid", TType.I64, (short)7);
40
  private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouse_id", TType.I64, (short)12);
36
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customer_id", TType.I64, (short)8);
41
 
37
 
42
  private long id;
38
  private long id;
43
  private OrderInfo orderInfo;
39
  private List<Order> orders;
44
  private ShipmentInfo shipmentInfo;
-
 
45
  private BillingInfo billingInfo;
-
 
46
  private PaymentInfo paymentInfo;
40
  private PaymentInfo paymentInfo;
47
  private long createdOn;
41
  private long createdOn;
48
  private long expectedDeliveryTime;
-
 
49
  private TransactionStatus transactionStatus;
42
  private TransactionStatus transactionStatus;
50
  private String statusDescription;
43
  private String statusDescription;
51
  private long customer_id;
-
 
52
  private long shoppingCartid;
44
  private long shoppingCartid;
53
  private long warehouse_id;
45
  private long customer_id;
54
 
46
 
55
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56
  public enum _Fields implements TFieldIdEnum {
48
  public enum _Fields implements TFieldIdEnum {
57
    ID((short)1, "id"),
49
    ID((short)1, "id"),
58
    ORDER_INFO((short)2, "orderInfo"),
50
    ORDERS((short)2, "orders"),
59
    SHIPMENT_INFO((short)3, "shipmentInfo"),
-
 
60
    BILLING_INFO((short)4, "billingInfo"),
-
 
61
    PAYMENT_INFO((short)5, "paymentInfo"),
51
    PAYMENT_INFO((short)3, "paymentInfo"),
62
    CREATED_ON((short)6, "createdOn"),
52
    CREATED_ON((short)4, "createdOn"),
63
    EXPECTED_DELIVERY_TIME((short)7, "expectedDeliveryTime"),
-
 
64
    /**
53
    /**
65
     * 
54
     * 
66
     * @see TransactionStatus
55
     * @see TransactionStatus
67
     */
56
     */
68
    TRANSACTION_STATUS((short)8, "transactionStatus"),
57
    TRANSACTION_STATUS((short)5, "transactionStatus"),
69
    STATUS_DESCRIPTION((short)9, "statusDescription"),
58
    STATUS_DESCRIPTION((short)6, "statusDescription"),
70
    CUSTOMER_ID((short)10, "customer_id"),
-
 
71
    SHOPPING_CARTID((short)11, "shoppingCartid"),
59
    SHOPPING_CARTID((short)7, "shoppingCartid"),
72
    WAREHOUSE_ID((short)12, "warehouse_id");
60
    CUSTOMER_ID((short)8, "customer_id");
73
 
61
 
74
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
62
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
75
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
63
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
76
 
64
 
77
    static {
65
    static {
Line 123... Line 111...
123
  }
111
  }
124
 
112
 
125
  // isset id assignments
113
  // isset id assignments
126
  private static final int __ID_ISSET_ID = 0;
114
  private static final int __ID_ISSET_ID = 0;
127
  private static final int __CREATEDON_ISSET_ID = 1;
115
  private static final int __CREATEDON_ISSET_ID = 1;
128
  private static final int __EXPECTEDDELIVERYTIME_ISSET_ID = 2;
116
  private static final int __SHOPPINGCARTID_ISSET_ID = 2;
129
  private static final int __CUSTOMER_ID_ISSET_ID = 3;
117
  private static final int __CUSTOMER_ID_ISSET_ID = 3;
130
  private static final int __SHOPPINGCARTID_ISSET_ID = 4;
-
 
131
  private static final int __WAREHOUSE_ID_ISSET_ID = 5;
-
 
132
  private BitSet __isset_bit_vector = new BitSet(6);
118
  private BitSet __isset_bit_vector = new BitSet(4);
133
 
119
 
134
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
120
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
135
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
121
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
136
        new FieldValueMetaData(TType.I64)));
122
        new FieldValueMetaData(TType.I64)));
137
    put(_Fields.ORDER_INFO, new FieldMetaData("orderInfo", TFieldRequirementType.DEFAULT, 
123
    put(_Fields.ORDERS, new FieldMetaData("orders", TFieldRequirementType.DEFAULT, 
138
        new StructMetaData(TType.STRUCT, OrderInfo.class)));
124
        new ListMetaData(TType.LIST, 
139
    put(_Fields.SHIPMENT_INFO, new FieldMetaData("shipmentInfo", TFieldRequirementType.DEFAULT, 
-
 
140
        new StructMetaData(TType.STRUCT, ShipmentInfo.class)));
125
            new StructMetaData(TType.STRUCT, Order.class))));
141
    put(_Fields.BILLING_INFO, new FieldMetaData("billingInfo", TFieldRequirementType.DEFAULT, 
-
 
142
        new StructMetaData(TType.STRUCT, BillingInfo.class)));
-
 
143
    put(_Fields.PAYMENT_INFO, new FieldMetaData("paymentInfo", TFieldRequirementType.DEFAULT, 
126
    put(_Fields.PAYMENT_INFO, new FieldMetaData("paymentInfo", TFieldRequirementType.DEFAULT, 
144
        new StructMetaData(TType.STRUCT, PaymentInfo.class)));
127
        new StructMetaData(TType.STRUCT, PaymentInfo.class)));
145
    put(_Fields.CREATED_ON, new FieldMetaData("createdOn", TFieldRequirementType.DEFAULT, 
128
    put(_Fields.CREATED_ON, new FieldMetaData("createdOn", TFieldRequirementType.DEFAULT, 
146
        new FieldValueMetaData(TType.I64)));
129
        new FieldValueMetaData(TType.I64)));
147
    put(_Fields.EXPECTED_DELIVERY_TIME, new FieldMetaData("expectedDeliveryTime", TFieldRequirementType.DEFAULT, 
-
 
148
        new FieldValueMetaData(TType.I64)));
-
 
149
    put(_Fields.TRANSACTION_STATUS, new FieldMetaData("transactionStatus", TFieldRequirementType.DEFAULT, 
130
    put(_Fields.TRANSACTION_STATUS, new FieldMetaData("transactionStatus", TFieldRequirementType.DEFAULT, 
150
        new EnumMetaData(TType.ENUM, TransactionStatus.class)));
131
        new EnumMetaData(TType.ENUM, TransactionStatus.class)));
151
    put(_Fields.STATUS_DESCRIPTION, new FieldMetaData("statusDescription", TFieldRequirementType.DEFAULT, 
132
    put(_Fields.STATUS_DESCRIPTION, new FieldMetaData("statusDescription", TFieldRequirementType.DEFAULT, 
152
        new FieldValueMetaData(TType.STRING)));
133
        new FieldValueMetaData(TType.STRING)));
153
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customer_id", TFieldRequirementType.DEFAULT, 
-
 
154
        new FieldValueMetaData(TType.I64)));
-
 
155
    put(_Fields.SHOPPING_CARTID, new FieldMetaData("shoppingCartid", TFieldRequirementType.DEFAULT, 
134
    put(_Fields.SHOPPING_CARTID, new FieldMetaData("shoppingCartid", TFieldRequirementType.DEFAULT, 
156
        new FieldValueMetaData(TType.I64)));
135
        new FieldValueMetaData(TType.I64)));
157
    put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouse_id", TFieldRequirementType.DEFAULT, 
136
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customer_id", TFieldRequirementType.DEFAULT, 
158
        new FieldValueMetaData(TType.I64)));
137
        new FieldValueMetaData(TType.I64)));
159
  }});
138
  }});
160
 
139
 
161
  static {
140
  static {
162
    FieldMetaData.addStructMetaDataMap(Transaction.class, metaDataMap);
141
    FieldMetaData.addStructMetaDataMap(Transaction.class, metaDataMap);
Line 165... Line 144...
165
  public Transaction() {
144
  public Transaction() {
166
  }
145
  }
167
 
146
 
168
  public Transaction(
147
  public Transaction(
169
    long id,
148
    long id,
170
    OrderInfo orderInfo,
149
    List<Order> orders,
171
    ShipmentInfo shipmentInfo,
-
 
172
    BillingInfo billingInfo,
-
 
173
    PaymentInfo paymentInfo,
150
    PaymentInfo paymentInfo,
174
    long createdOn,
151
    long createdOn,
175
    long expectedDeliveryTime,
-
 
176
    TransactionStatus transactionStatus,
152
    TransactionStatus transactionStatus,
177
    String statusDescription,
153
    String statusDescription,
178
    long customer_id,
-
 
179
    long shoppingCartid,
154
    long shoppingCartid,
180
    long warehouse_id)
155
    long customer_id)
181
  {
156
  {
182
    this();
157
    this();
183
    this.id = id;
158
    this.id = id;
184
    setIdIsSet(true);
159
    setIdIsSet(true);
185
    this.orderInfo = orderInfo;
160
    this.orders = orders;
186
    this.shipmentInfo = shipmentInfo;
-
 
187
    this.billingInfo = billingInfo;
-
 
188
    this.paymentInfo = paymentInfo;
161
    this.paymentInfo = paymentInfo;
189
    this.createdOn = createdOn;
162
    this.createdOn = createdOn;
190
    setCreatedOnIsSet(true);
163
    setCreatedOnIsSet(true);
191
    this.expectedDeliveryTime = expectedDeliveryTime;
-
 
192
    setExpectedDeliveryTimeIsSet(true);
-
 
193
    this.transactionStatus = transactionStatus;
164
    this.transactionStatus = transactionStatus;
194
    this.statusDescription = statusDescription;
165
    this.statusDescription = statusDescription;
195
    this.customer_id = customer_id;
-
 
196
    setCustomer_idIsSet(true);
-
 
197
    this.shoppingCartid = shoppingCartid;
166
    this.shoppingCartid = shoppingCartid;
198
    setShoppingCartidIsSet(true);
167
    setShoppingCartidIsSet(true);
199
    this.warehouse_id = warehouse_id;
168
    this.customer_id = customer_id;
200
    setWarehouse_idIsSet(true);
169
    setCustomer_idIsSet(true);
201
  }
170
  }
202
 
171
 
203
  /**
172
  /**
204
   * Performs a deep copy on <i>other</i>.
173
   * Performs a deep copy on <i>other</i>.
205
   */
174
   */
206
  public Transaction(Transaction other) {
175
  public Transaction(Transaction other) {
207
    __isset_bit_vector.clear();
176
    __isset_bit_vector.clear();
208
    __isset_bit_vector.or(other.__isset_bit_vector);
177
    __isset_bit_vector.or(other.__isset_bit_vector);
209
    this.id = other.id;
178
    this.id = other.id;
210
    if (other.isSetOrderInfo()) {
179
    if (other.isSetOrders()) {
211
      this.orderInfo = new OrderInfo(other.orderInfo);
180
      List<Order> __this__orders = new ArrayList<Order>();
212
    }
-
 
213
    if (other.isSetShipmentInfo()) {
181
      for (Order other_element : other.orders) {
214
      this.shipmentInfo = new ShipmentInfo(other.shipmentInfo);
182
        __this__orders.add(new Order(other_element));
215
    }
183
      }
216
    if (other.isSetBillingInfo()) {
184
      this.orders = __this__orders;
217
      this.billingInfo = new BillingInfo(other.billingInfo);
-
 
218
    }
185
    }
219
    if (other.isSetPaymentInfo()) {
186
    if (other.isSetPaymentInfo()) {
220
      this.paymentInfo = new PaymentInfo(other.paymentInfo);
187
      this.paymentInfo = new PaymentInfo(other.paymentInfo);
221
    }
188
    }
222
    this.createdOn = other.createdOn;
189
    this.createdOn = other.createdOn;
223
    this.expectedDeliveryTime = other.expectedDeliveryTime;
-
 
224
    if (other.isSetTransactionStatus()) {
190
    if (other.isSetTransactionStatus()) {
225
      this.transactionStatus = other.transactionStatus;
191
      this.transactionStatus = other.transactionStatus;
226
    }
192
    }
227
    if (other.isSetStatusDescription()) {
193
    if (other.isSetStatusDescription()) {
228
      this.statusDescription = other.statusDescription;
194
      this.statusDescription = other.statusDescription;
229
    }
195
    }
230
    this.customer_id = other.customer_id;
-
 
231
    this.shoppingCartid = other.shoppingCartid;
196
    this.shoppingCartid = other.shoppingCartid;
232
    this.warehouse_id = other.warehouse_id;
197
    this.customer_id = other.customer_id;
233
  }
198
  }
234
 
199
 
235
  public Transaction deepCopy() {
200
  public Transaction deepCopy() {
236
    return new Transaction(this);
201
    return new Transaction(this);
237
  }
202
  }
Line 262... Line 227...
262
 
227
 
263
  public void setIdIsSet(boolean value) {
228
  public void setIdIsSet(boolean value) {
264
    __isset_bit_vector.set(__ID_ISSET_ID, value);
229
    __isset_bit_vector.set(__ID_ISSET_ID, value);
265
  }
230
  }
266
 
231
 
267
  public OrderInfo getOrderInfo() {
232
  public int getOrdersSize() {
268
    return this.orderInfo;
-
 
269
  }
-
 
270
 
-
 
271
  public Transaction setOrderInfo(OrderInfo orderInfo) {
-
 
272
    this.orderInfo = orderInfo;
233
    return (this.orders == null) ? 0 : this.orders.size();
273
    return this;
-
 
274
  }
-
 
275
 
-
 
276
  public void unsetOrderInfo() {
-
 
277
    this.orderInfo = null;
-
 
278
  }
234
  }
279
 
235
 
280
  /** Returns true if field orderInfo is set (has been asigned a value) and false otherwise */
-
 
281
  public boolean isSetOrderInfo() {
236
  public java.util.Iterator<Order> getOrdersIterator() {
282
    return this.orderInfo != null;
237
    return (this.orders == null) ? null : this.orders.iterator();
283
  }
238
  }
284
 
239
 
285
  public void setOrderInfoIsSet(boolean value) {
240
  public void addToOrders(Order elem) {
286
    if (!value) {
241
    if (this.orders == null) {
287
      this.orderInfo = null;
242
      this.orders = new ArrayList<Order>();
288
    }
243
    }
-
 
244
    this.orders.add(elem);
289
  }
245
  }
290
 
246
 
291
  public ShipmentInfo getShipmentInfo() {
247
  public List<Order> getOrders() {
292
    return this.shipmentInfo;
248
    return this.orders;
293
  }
249
  }
294
 
250
 
295
  public Transaction setShipmentInfo(ShipmentInfo shipmentInfo) {
251
  public Transaction setOrders(List<Order> orders) {
296
    this.shipmentInfo = shipmentInfo;
252
    this.orders = orders;
297
    return this;
253
    return this;
298
  }
254
  }
299
 
255
 
300
  public void unsetShipmentInfo() {
256
  public void unsetOrders() {
301
    this.shipmentInfo = null;
257
    this.orders = null;
302
  }
258
  }
303
 
259
 
304
  /** Returns true if field shipmentInfo is set (has been asigned a value) and false otherwise */
260
  /** Returns true if field orders is set (has been asigned a value) and false otherwise */
305
  public boolean isSetShipmentInfo() {
261
  public boolean isSetOrders() {
306
    return this.shipmentInfo != null;
262
    return this.orders != null;
307
  }
263
  }
308
 
264
 
309
  public void setShipmentInfoIsSet(boolean value) {
265
  public void setOrdersIsSet(boolean value) {
310
    if (!value) {
266
    if (!value) {
311
      this.shipmentInfo = null;
267
      this.orders = null;
312
    }
-
 
313
  }
-
 
314
 
-
 
315
  public BillingInfo getBillingInfo() {
-
 
316
    return this.billingInfo;
-
 
317
  }
-
 
318
 
-
 
319
  public Transaction setBillingInfo(BillingInfo billingInfo) {
-
 
320
    this.billingInfo = billingInfo;
-
 
321
    return this;
-
 
322
  }
-
 
323
 
-
 
324
  public void unsetBillingInfo() {
-
 
325
    this.billingInfo = null;
-
 
326
  }
-
 
327
 
-
 
328
  /** Returns true if field billingInfo is set (has been asigned a value) and false otherwise */
-
 
329
  public boolean isSetBillingInfo() {
-
 
330
    return this.billingInfo != null;
-
 
331
  }
-
 
332
 
-
 
333
  public void setBillingInfoIsSet(boolean value) {
-
 
334
    if (!value) {
-
 
335
      this.billingInfo = null;
-
 
336
    }
268
    }
337
  }
269
  }
338
 
270
 
339
  public PaymentInfo getPaymentInfo() {
271
  public PaymentInfo getPaymentInfo() {
340
    return this.paymentInfo;
272
    return this.paymentInfo;
Line 381... Line 313...
381
 
313
 
382
  public void setCreatedOnIsSet(boolean value) {
314
  public void setCreatedOnIsSet(boolean value) {
383
    __isset_bit_vector.set(__CREATEDON_ISSET_ID, value);
315
    __isset_bit_vector.set(__CREATEDON_ISSET_ID, value);
384
  }
316
  }
385
 
317
 
386
  public long getExpectedDeliveryTime() {
-
 
387
    return this.expectedDeliveryTime;
-
 
388
  }
-
 
389
 
-
 
390
  public Transaction setExpectedDeliveryTime(long expectedDeliveryTime) {
-
 
391
    this.expectedDeliveryTime = expectedDeliveryTime;
-
 
392
    setExpectedDeliveryTimeIsSet(true);
-
 
393
    return this;
-
 
394
  }
-
 
395
 
-
 
396
  public void unsetExpectedDeliveryTime() {
-
 
397
    __isset_bit_vector.clear(__EXPECTEDDELIVERYTIME_ISSET_ID);
-
 
398
  }
-
 
399
 
-
 
400
  /** Returns true if field expectedDeliveryTime is set (has been asigned a value) and false otherwise */
-
 
401
  public boolean isSetExpectedDeliveryTime() {
-
 
402
    return __isset_bit_vector.get(__EXPECTEDDELIVERYTIME_ISSET_ID);
-
 
403
  }
-
 
404
 
-
 
405
  public void setExpectedDeliveryTimeIsSet(boolean value) {
-
 
406
    __isset_bit_vector.set(__EXPECTEDDELIVERYTIME_ISSET_ID, value);
-
 
407
  }
-
 
408
 
-
 
409
  /**
318
  /**
410
   * 
319
   * 
411
   * @see TransactionStatus
320
   * @see TransactionStatus
412
   */
321
   */
413
  public TransactionStatus getTransactionStatus() {
322
  public TransactionStatus getTransactionStatus() {
Line 460... Line 369...
460
    if (!value) {
369
    if (!value) {
461
      this.statusDescription = null;
370
      this.statusDescription = null;
462
    }
371
    }
463
  }
372
  }
464
 
373
 
465
  public long getCustomer_id() {
-
 
466
    return this.customer_id;
-
 
467
  }
-
 
468
 
-
 
469
  public Transaction setCustomer_id(long customer_id) {
-
 
470
    this.customer_id = customer_id;
-
 
471
    setCustomer_idIsSet(true);
-
 
472
    return this;
-
 
473
  }
-
 
474
 
-
 
475
  public void unsetCustomer_id() {
-
 
476
    __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
-
 
477
  }
-
 
478
 
-
 
479
  /** Returns true if field customer_id is set (has been asigned a value) and false otherwise */
-
 
480
  public boolean isSetCustomer_id() {
-
 
481
    return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
-
 
482
  }
-
 
483
 
-
 
484
  public void setCustomer_idIsSet(boolean value) {
-
 
485
    __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
-
 
486
  }
-
 
487
 
-
 
488
  public long getShoppingCartid() {
374
  public long getShoppingCartid() {
489
    return this.shoppingCartid;
375
    return this.shoppingCartid;
490
  }
376
  }
491
 
377
 
492
  public Transaction setShoppingCartid(long shoppingCartid) {
378
  public Transaction setShoppingCartid(long shoppingCartid) {
Line 506... Line 392...
506
 
392
 
507
  public void setShoppingCartidIsSet(boolean value) {
393
  public void setShoppingCartidIsSet(boolean value) {
508
    __isset_bit_vector.set(__SHOPPINGCARTID_ISSET_ID, value);
394
    __isset_bit_vector.set(__SHOPPINGCARTID_ISSET_ID, value);
509
  }
395
  }
510
 
396
 
511
  public long getWarehouse_id() {
397
  public long getCustomer_id() {
512
    return this.warehouse_id;
398
    return this.customer_id;
513
  }
399
  }
514
 
400
 
515
  public Transaction setWarehouse_id(long warehouse_id) {
401
  public Transaction setCustomer_id(long customer_id) {
516
    this.warehouse_id = warehouse_id;
402
    this.customer_id = customer_id;
517
    setWarehouse_idIsSet(true);
403
    setCustomer_idIsSet(true);
518
    return this;
404
    return this;
519
  }
405
  }
520
 
406
 
521
  public void unsetWarehouse_id() {
407
  public void unsetCustomer_id() {
522
    __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
408
    __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
523
  }
409
  }
524
 
410
 
525
  /** Returns true if field warehouse_id is set (has been asigned a value) and false otherwise */
411
  /** Returns true if field customer_id is set (has been asigned a value) and false otherwise */
526
  public boolean isSetWarehouse_id() {
412
  public boolean isSetCustomer_id() {
527
    return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
413
    return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
528
  }
414
  }
529
 
415
 
530
  public void setWarehouse_idIsSet(boolean value) {
416
  public void setCustomer_idIsSet(boolean value) {
531
    __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
417
    __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
532
  }
418
  }
533
 
419
 
534
  public void setFieldValue(_Fields field, Object value) {
420
  public void setFieldValue(_Fields field, Object value) {
535
    switch (field) {
421
    switch (field) {
536
    case ID:
422
    case ID:
Line 539... Line 425...
539
      } else {
425
      } else {
540
        setId((Long)value);
426
        setId((Long)value);
541
      }
427
      }
542
      break;
428
      break;
543
 
429
 
544
    case ORDER_INFO:
430
    case ORDERS:
545
      if (value == null) {
431
      if (value == null) {
546
        unsetOrderInfo();
432
        unsetOrders();
547
      } else {
433
      } else {
548
        setOrderInfo((OrderInfo)value);
434
        setOrders((List<Order>)value);
549
      }
-
 
550
      break;
-
 
551
 
-
 
552
    case SHIPMENT_INFO:
-
 
553
      if (value == null) {
-
 
554
        unsetShipmentInfo();
-
 
555
      } else {
-
 
556
        setShipmentInfo((ShipmentInfo)value);
-
 
557
      }
-
 
558
      break;
-
 
559
 
-
 
560
    case BILLING_INFO:
-
 
561
      if (value == null) {
-
 
562
        unsetBillingInfo();
-
 
563
      } else {
-
 
564
        setBillingInfo((BillingInfo)value);
-
 
565
      }
435
      }
566
      break;
436
      break;
567
 
437
 
568
    case PAYMENT_INFO:
438
    case PAYMENT_INFO:
569
      if (value == null) {
439
      if (value == null) {
Line 579... Line 449...
579
      } else {
449
      } else {
580
        setCreatedOn((Long)value);
450
        setCreatedOn((Long)value);
581
      }
451
      }
582
      break;
452
      break;
583
 
453
 
584
    case EXPECTED_DELIVERY_TIME:
-
 
585
      if (value == null) {
-
 
586
        unsetExpectedDeliveryTime();
-
 
587
      } else {
-
 
588
        setExpectedDeliveryTime((Long)value);
-
 
589
      }
-
 
590
      break;
-
 
591
 
-
 
592
    case TRANSACTION_STATUS:
454
    case TRANSACTION_STATUS:
593
      if (value == null) {
455
      if (value == null) {
594
        unsetTransactionStatus();
456
        unsetTransactionStatus();
595
      } else {
457
      } else {
596
        setTransactionStatus((TransactionStatus)value);
458
        setTransactionStatus((TransactionStatus)value);
Line 603... Line 465...
603
      } else {
465
      } else {
604
        setStatusDescription((String)value);
466
        setStatusDescription((String)value);
605
      }
467
      }
606
      break;
468
      break;
607
 
469
 
608
    case CUSTOMER_ID:
-
 
609
      if (value == null) {
-
 
610
        unsetCustomer_id();
-
 
611
      } else {
-
 
612
        setCustomer_id((Long)value);
-
 
613
      }
-
 
614
      break;
-
 
615
 
-
 
616
    case SHOPPING_CARTID:
470
    case SHOPPING_CARTID:
617
      if (value == null) {
471
      if (value == null) {
618
        unsetShoppingCartid();
472
        unsetShoppingCartid();
619
      } else {
473
      } else {
620
        setShoppingCartid((Long)value);
474
        setShoppingCartid((Long)value);
621
      }
475
      }
622
      break;
476
      break;
623
 
477
 
624
    case WAREHOUSE_ID:
478
    case CUSTOMER_ID:
625
      if (value == null) {
479
      if (value == null) {
626
        unsetWarehouse_id();
480
        unsetCustomer_id();
627
      } else {
481
      } else {
628
        setWarehouse_id((Long)value);
482
        setCustomer_id((Long)value);
629
      }
483
      }
630
      break;
484
      break;
631
 
485
 
632
    }
486
    }
633
  }
487
  }
Line 639... Line 493...
639
  public Object getFieldValue(_Fields field) {
493
  public Object getFieldValue(_Fields field) {
640
    switch (field) {
494
    switch (field) {
641
    case ID:
495
    case ID:
642
      return new Long(getId());
496
      return new Long(getId());
643
 
497
 
644
    case ORDER_INFO:
498
    case ORDERS:
645
      return getOrderInfo();
499
      return getOrders();
646
 
-
 
647
    case SHIPMENT_INFO:
-
 
648
      return getShipmentInfo();
-
 
649
 
-
 
650
    case BILLING_INFO:
-
 
651
      return getBillingInfo();
-
 
652
 
500
 
653
    case PAYMENT_INFO:
501
    case PAYMENT_INFO:
654
      return getPaymentInfo();
502
      return getPaymentInfo();
655
 
503
 
656
    case CREATED_ON:
504
    case CREATED_ON:
657
      return new Long(getCreatedOn());
505
      return new Long(getCreatedOn());
658
 
506
 
659
    case EXPECTED_DELIVERY_TIME:
-
 
660
      return new Long(getExpectedDeliveryTime());
-
 
661
 
-
 
662
    case TRANSACTION_STATUS:
507
    case TRANSACTION_STATUS:
663
      return getTransactionStatus();
508
      return getTransactionStatus();
664
 
509
 
665
    case STATUS_DESCRIPTION:
510
    case STATUS_DESCRIPTION:
666
      return getStatusDescription();
511
      return getStatusDescription();
667
 
512
 
668
    case CUSTOMER_ID:
-
 
669
      return new Long(getCustomer_id());
-
 
670
 
-
 
671
    case SHOPPING_CARTID:
513
    case SHOPPING_CARTID:
672
      return new Long(getShoppingCartid());
514
      return new Long(getShoppingCartid());
673
 
515
 
674
    case WAREHOUSE_ID:
516
    case CUSTOMER_ID:
675
      return new Long(getWarehouse_id());
517
      return new Long(getCustomer_id());
676
 
518
 
677
    }
519
    }
678
    throw new IllegalStateException();
520
    throw new IllegalStateException();
679
  }
521
  }
680
 
522
 
Line 685... Line 527...
685
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
527
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
686
  public boolean isSet(_Fields field) {
528
  public boolean isSet(_Fields field) {
687
    switch (field) {
529
    switch (field) {
688
    case ID:
530
    case ID:
689
      return isSetId();
531
      return isSetId();
690
    case ORDER_INFO:
532
    case ORDERS:
691
      return isSetOrderInfo();
533
      return isSetOrders();
692
    case SHIPMENT_INFO:
-
 
693
      return isSetShipmentInfo();
-
 
694
    case BILLING_INFO:
-
 
695
      return isSetBillingInfo();
-
 
696
    case PAYMENT_INFO:
534
    case PAYMENT_INFO:
697
      return isSetPaymentInfo();
535
      return isSetPaymentInfo();
698
    case CREATED_ON:
536
    case CREATED_ON:
699
      return isSetCreatedOn();
537
      return isSetCreatedOn();
700
    case EXPECTED_DELIVERY_TIME:
-
 
701
      return isSetExpectedDeliveryTime();
-
 
702
    case TRANSACTION_STATUS:
538
    case TRANSACTION_STATUS:
703
      return isSetTransactionStatus();
539
      return isSetTransactionStatus();
704
    case STATUS_DESCRIPTION:
540
    case STATUS_DESCRIPTION:
705
      return isSetStatusDescription();
541
      return isSetStatusDescription();
706
    case CUSTOMER_ID:
-
 
707
      return isSetCustomer_id();
-
 
708
    case SHOPPING_CARTID:
542
    case SHOPPING_CARTID:
709
      return isSetShoppingCartid();
543
      return isSetShoppingCartid();
710
    case WAREHOUSE_ID:
544
    case CUSTOMER_ID:
711
      return isSetWarehouse_id();
545
      return isSetCustomer_id();
712
    }
546
    }
713
    throw new IllegalStateException();
547
    throw new IllegalStateException();
714
  }
548
  }
715
 
549
 
716
  public boolean isSet(int fieldID) {
550
  public boolean isSet(int fieldID) {
Line 737... Line 571...
737
        return false;
571
        return false;
738
      if (this.id != that.id)
572
      if (this.id != that.id)
739
        return false;
573
        return false;
740
    }
574
    }
741
 
575
 
742
    boolean this_present_orderInfo = true && this.isSetOrderInfo();
576
    boolean this_present_orders = true && this.isSetOrders();
743
    boolean that_present_orderInfo = true && that.isSetOrderInfo();
577
    boolean that_present_orders = true && that.isSetOrders();
744
    if (this_present_orderInfo || that_present_orderInfo) {
578
    if (this_present_orders || that_present_orders) {
745
      if (!(this_present_orderInfo && that_present_orderInfo))
579
      if (!(this_present_orders && that_present_orders))
746
        return false;
-
 
747
      if (!this.orderInfo.equals(that.orderInfo))
-
 
748
        return false;
-
 
749
    }
-
 
750
 
-
 
751
    boolean this_present_shipmentInfo = true && this.isSetShipmentInfo();
-
 
752
    boolean that_present_shipmentInfo = true && that.isSetShipmentInfo();
-
 
753
    if (this_present_shipmentInfo || that_present_shipmentInfo) {
-
 
754
      if (!(this_present_shipmentInfo && that_present_shipmentInfo))
-
 
755
        return false;
-
 
756
      if (!this.shipmentInfo.equals(that.shipmentInfo))
-
 
757
        return false;
-
 
758
    }
-
 
759
 
-
 
760
    boolean this_present_billingInfo = true && this.isSetBillingInfo();
-
 
761
    boolean that_present_billingInfo = true && that.isSetBillingInfo();
-
 
762
    if (this_present_billingInfo || that_present_billingInfo) {
-
 
763
      if (!(this_present_billingInfo && that_present_billingInfo))
-
 
764
        return false;
580
        return false;
765
      if (!this.billingInfo.equals(that.billingInfo))
581
      if (!this.orders.equals(that.orders))
766
        return false;
582
        return false;
767
    }
583
    }
768
 
584
 
769
    boolean this_present_paymentInfo = true && this.isSetPaymentInfo();
585
    boolean this_present_paymentInfo = true && this.isSetPaymentInfo();
770
    boolean that_present_paymentInfo = true && that.isSetPaymentInfo();
586
    boolean that_present_paymentInfo = true && that.isSetPaymentInfo();
Line 782... Line 598...
782
        return false;
598
        return false;
783
      if (this.createdOn != that.createdOn)
599
      if (this.createdOn != that.createdOn)
784
        return false;
600
        return false;
785
    }
601
    }
786
 
602
 
787
    boolean this_present_expectedDeliveryTime = true;
-
 
788
    boolean that_present_expectedDeliveryTime = true;
-
 
789
    if (this_present_expectedDeliveryTime || that_present_expectedDeliveryTime) {
-
 
790
      if (!(this_present_expectedDeliveryTime && that_present_expectedDeliveryTime))
-
 
791
        return false;
-
 
792
      if (this.expectedDeliveryTime != that.expectedDeliveryTime)
-
 
793
        return false;
-
 
794
    }
-
 
795
 
-
 
796
    boolean this_present_transactionStatus = true && this.isSetTransactionStatus();
603
    boolean this_present_transactionStatus = true && this.isSetTransactionStatus();
797
    boolean that_present_transactionStatus = true && that.isSetTransactionStatus();
604
    boolean that_present_transactionStatus = true && that.isSetTransactionStatus();
798
    if (this_present_transactionStatus || that_present_transactionStatus) {
605
    if (this_present_transactionStatus || that_present_transactionStatus) {
799
      if (!(this_present_transactionStatus && that_present_transactionStatus))
606
      if (!(this_present_transactionStatus && that_present_transactionStatus))
800
        return false;
607
        return false;
Line 809... Line 616...
809
        return false;
616
        return false;
810
      if (!this.statusDescription.equals(that.statusDescription))
617
      if (!this.statusDescription.equals(that.statusDescription))
811
        return false;
618
        return false;
812
    }
619
    }
813
 
620
 
814
    boolean this_present_customer_id = true;
-
 
815
    boolean that_present_customer_id = true;
-
 
816
    if (this_present_customer_id || that_present_customer_id) {
-
 
817
      if (!(this_present_customer_id && that_present_customer_id))
-
 
818
        return false;
-
 
819
      if (this.customer_id != that.customer_id)
-
 
820
        return false;
-
 
821
    }
-
 
822
 
-
 
823
    boolean this_present_shoppingCartid = true;
621
    boolean this_present_shoppingCartid = true;
824
    boolean that_present_shoppingCartid = true;
622
    boolean that_present_shoppingCartid = true;
825
    if (this_present_shoppingCartid || that_present_shoppingCartid) {
623
    if (this_present_shoppingCartid || that_present_shoppingCartid) {
826
      if (!(this_present_shoppingCartid && that_present_shoppingCartid))
624
      if (!(this_present_shoppingCartid && that_present_shoppingCartid))
827
        return false;
625
        return false;
828
      if (this.shoppingCartid != that.shoppingCartid)
626
      if (this.shoppingCartid != that.shoppingCartid)
829
        return false;
627
        return false;
830
    }
628
    }
831
 
629
 
832
    boolean this_present_warehouse_id = true;
630
    boolean this_present_customer_id = true;
833
    boolean that_present_warehouse_id = true;
631
    boolean that_present_customer_id = true;
834
    if (this_present_warehouse_id || that_present_warehouse_id) {
632
    if (this_present_customer_id || that_present_customer_id) {
835
      if (!(this_present_warehouse_id && that_present_warehouse_id))
633
      if (!(this_present_customer_id && that_present_customer_id))
836
        return false;
634
        return false;
837
      if (this.warehouse_id != that.warehouse_id)
635
      if (this.customer_id != that.customer_id)
838
        return false;
636
        return false;
839
    }
637
    }
840
 
638
 
841
    return true;
639
    return true;
842
  }
640
  }
Line 866... Line 664...
866
              setIdIsSet(true);
664
              setIdIsSet(true);
867
            } else { 
665
            } else { 
868
              TProtocolUtil.skip(iprot, field.type);
666
              TProtocolUtil.skip(iprot, field.type);
869
            }
667
            }
870
            break;
668
            break;
871
          case ORDER_INFO:
669
          case ORDERS:
872
            if (field.type == TType.STRUCT) {
670
            if (field.type == TType.LIST) {
873
              this.orderInfo = new OrderInfo();
671
              {
874
              this.orderInfo.read(iprot);
672
                TList _list9 = iprot.readListBegin();
875
            } else { 
673
                this.orders = new ArrayList<Order>(_list9.size);
876
              TProtocolUtil.skip(iprot, field.type);
674
                for (int _i10 = 0; _i10 < _list9.size; ++_i10)
877
            }
675
                {
878
            break;
-
 
879
          case SHIPMENT_INFO:
676
                  Order _elem11;
880
            if (field.type == TType.STRUCT) {
677
                  _elem11 = new Order();
881
              this.shipmentInfo = new ShipmentInfo();
678
                  _elem11.read(iprot);
882
              this.shipmentInfo.read(iprot);
679
                  this.orders.add(_elem11);
883
            } else { 
680
                }
884
              TProtocolUtil.skip(iprot, field.type);
681
                iprot.readListEnd();
885
            }
682
              }
886
            break;
-
 
887
          case BILLING_INFO:
-
 
888
            if (field.type == TType.STRUCT) {
-
 
889
              this.billingInfo = new BillingInfo();
-
 
890
              this.billingInfo.read(iprot);
-
 
891
            } else { 
683
            } else { 
892
              TProtocolUtil.skip(iprot, field.type);
684
              TProtocolUtil.skip(iprot, field.type);
893
            }
685
            }
894
            break;
686
            break;
895
          case PAYMENT_INFO:
687
          case PAYMENT_INFO:
Line 906... Line 698...
906
              setCreatedOnIsSet(true);
698
              setCreatedOnIsSet(true);
907
            } else { 
699
            } else { 
908
              TProtocolUtil.skip(iprot, field.type);
700
              TProtocolUtil.skip(iprot, field.type);
909
            }
701
            }
910
            break;
702
            break;
911
          case EXPECTED_DELIVERY_TIME:
-
 
912
            if (field.type == TType.I64) {
-
 
913
              this.expectedDeliveryTime = iprot.readI64();
-
 
914
              setExpectedDeliveryTimeIsSet(true);
-
 
915
            } else { 
-
 
916
              TProtocolUtil.skip(iprot, field.type);
-
 
917
            }
-
 
918
            break;
-
 
919
          case TRANSACTION_STATUS:
703
          case TRANSACTION_STATUS:
920
            if (field.type == TType.I32) {
704
            if (field.type == TType.I32) {
921
              this.transactionStatus = TransactionStatus.findByValue(iprot.readI32());
705
              this.transactionStatus = TransactionStatus.findByValue(iprot.readI32());
922
            } else { 
706
            } else { 
923
              TProtocolUtil.skip(iprot, field.type);
707
              TProtocolUtil.skip(iprot, field.type);
Line 928... Line 712...
928
              this.statusDescription = iprot.readString();
712
              this.statusDescription = iprot.readString();
929
            } else { 
713
            } else { 
930
              TProtocolUtil.skip(iprot, field.type);
714
              TProtocolUtil.skip(iprot, field.type);
931
            }
715
            }
932
            break;
716
            break;
933
          case CUSTOMER_ID:
-
 
934
            if (field.type == TType.I64) {
-
 
935
              this.customer_id = iprot.readI64();
-
 
936
              setCustomer_idIsSet(true);
-
 
937
            } else { 
-
 
938
              TProtocolUtil.skip(iprot, field.type);
-
 
939
            }
-
 
940
            break;
-
 
941
          case SHOPPING_CARTID:
717
          case SHOPPING_CARTID:
942
            if (field.type == TType.I64) {
718
            if (field.type == TType.I64) {
943
              this.shoppingCartid = iprot.readI64();
719
              this.shoppingCartid = iprot.readI64();
944
              setShoppingCartidIsSet(true);
720
              setShoppingCartidIsSet(true);
945
            } else { 
721
            } else { 
946
              TProtocolUtil.skip(iprot, field.type);
722
              TProtocolUtil.skip(iprot, field.type);
947
            }
723
            }
948
            break;
724
            break;
949
          case WAREHOUSE_ID:
725
          case CUSTOMER_ID:
950
            if (field.type == TType.I64) {
726
            if (field.type == TType.I64) {
951
              this.warehouse_id = iprot.readI64();
727
              this.customer_id = iprot.readI64();
952
              setWarehouse_idIsSet(true);
728
              setCustomer_idIsSet(true);
953
            } else { 
729
            } else { 
954
              TProtocolUtil.skip(iprot, field.type);
730
              TProtocolUtil.skip(iprot, field.type);
955
            }
731
            }
956
            break;
732
            break;
957
        }
733
        }
Line 967... Line 743...
967
 
743
 
968
    oprot.writeStructBegin(STRUCT_DESC);
744
    oprot.writeStructBegin(STRUCT_DESC);
969
    oprot.writeFieldBegin(ID_FIELD_DESC);
745
    oprot.writeFieldBegin(ID_FIELD_DESC);
970
    oprot.writeI64(this.id);
746
    oprot.writeI64(this.id);
971
    oprot.writeFieldEnd();
747
    oprot.writeFieldEnd();
972
    if (this.orderInfo != null) {
748
    if (this.orders != null) {
973
      oprot.writeFieldBegin(ORDER_INFO_FIELD_DESC);
749
      oprot.writeFieldBegin(ORDERS_FIELD_DESC);
974
      this.orderInfo.write(oprot);
-
 
975
      oprot.writeFieldEnd();
-
 
976
    }
750
      {
977
    if (this.shipmentInfo != null) {
751
        oprot.writeListBegin(new TList(TType.STRUCT, this.orders.size()));
978
      oprot.writeFieldBegin(SHIPMENT_INFO_FIELD_DESC);
752
        for (Order _iter12 : this.orders)
-
 
753
        {
979
      this.shipmentInfo.write(oprot);
754
          _iter12.write(oprot);
-
 
755
        }
980
      oprot.writeFieldEnd();
756
        oprot.writeListEnd();
981
    }
757
      }
982
    if (this.billingInfo != null) {
-
 
983
      oprot.writeFieldBegin(BILLING_INFO_FIELD_DESC);
-
 
984
      this.billingInfo.write(oprot);
-
 
985
      oprot.writeFieldEnd();
758
      oprot.writeFieldEnd();
986
    }
759
    }
987
    if (this.paymentInfo != null) {
760
    if (this.paymentInfo != null) {
988
      oprot.writeFieldBegin(PAYMENT_INFO_FIELD_DESC);
761
      oprot.writeFieldBegin(PAYMENT_INFO_FIELD_DESC);
989
      this.paymentInfo.write(oprot);
762
      this.paymentInfo.write(oprot);
990
      oprot.writeFieldEnd();
763
      oprot.writeFieldEnd();
991
    }
764
    }
992
    oprot.writeFieldBegin(CREATED_ON_FIELD_DESC);
765
    oprot.writeFieldBegin(CREATED_ON_FIELD_DESC);
993
    oprot.writeI64(this.createdOn);
766
    oprot.writeI64(this.createdOn);
994
    oprot.writeFieldEnd();
767
    oprot.writeFieldEnd();
995
    oprot.writeFieldBegin(EXPECTED_DELIVERY_TIME_FIELD_DESC);
-
 
996
    oprot.writeI64(this.expectedDeliveryTime);
-
 
997
    oprot.writeFieldEnd();
-
 
998
    if (this.transactionStatus != null) {
768
    if (this.transactionStatus != null) {
999
      oprot.writeFieldBegin(TRANSACTION_STATUS_FIELD_DESC);
769
      oprot.writeFieldBegin(TRANSACTION_STATUS_FIELD_DESC);
1000
      oprot.writeI32(this.transactionStatus.getValue());
770
      oprot.writeI32(this.transactionStatus.getValue());
1001
      oprot.writeFieldEnd();
771
      oprot.writeFieldEnd();
1002
    }
772
    }
1003
    if (this.statusDescription != null) {
773
    if (this.statusDescription != null) {
1004
      oprot.writeFieldBegin(STATUS_DESCRIPTION_FIELD_DESC);
774
      oprot.writeFieldBegin(STATUS_DESCRIPTION_FIELD_DESC);
1005
      oprot.writeString(this.statusDescription);
775
      oprot.writeString(this.statusDescription);
1006
      oprot.writeFieldEnd();
776
      oprot.writeFieldEnd();
1007
    }
777
    }
1008
    oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
-
 
1009
    oprot.writeI64(this.customer_id);
-
 
1010
    oprot.writeFieldEnd();
-
 
1011
    oprot.writeFieldBegin(SHOPPING_CARTID_FIELD_DESC);
778
    oprot.writeFieldBegin(SHOPPING_CARTID_FIELD_DESC);
1012
    oprot.writeI64(this.shoppingCartid);
779
    oprot.writeI64(this.shoppingCartid);
1013
    oprot.writeFieldEnd();
780
    oprot.writeFieldEnd();
1014
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
781
    oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1015
    oprot.writeI64(this.warehouse_id);
782
    oprot.writeI64(this.customer_id);
1016
    oprot.writeFieldEnd();
783
    oprot.writeFieldEnd();
1017
    oprot.writeFieldStop();
784
    oprot.writeFieldStop();
1018
    oprot.writeStructEnd();
785
    oprot.writeStructEnd();
1019
  }
786
  }
1020
 
787
 
Line 1025... Line 792...
1025
 
792
 
1026
    sb.append("id:");
793
    sb.append("id:");
1027
    sb.append(this.id);
794
    sb.append(this.id);
1028
    first = false;
795
    first = false;
1029
    if (!first) sb.append(", ");
796
    if (!first) sb.append(", ");
1030
    sb.append("orderInfo:");
797
    sb.append("orders:");
1031
    if (this.orderInfo == null) {
798
    if (this.orders == null) {
1032
      sb.append("null");
799
      sb.append("null");
1033
    } else {
800
    } else {
1034
      sb.append(this.orderInfo);
801
      sb.append(this.orders);
1035
    }
-
 
1036
    first = false;
-
 
1037
    if (!first) sb.append(", ");
-
 
1038
    sb.append("shipmentInfo:");
-
 
1039
    if (this.shipmentInfo == null) {
-
 
1040
      sb.append("null");
-
 
1041
    } else {
-
 
1042
      sb.append(this.shipmentInfo);
-
 
1043
    }
-
 
1044
    first = false;
-
 
1045
    if (!first) sb.append(", ");
-
 
1046
    sb.append("billingInfo:");
-
 
1047
    if (this.billingInfo == null) {
-
 
1048
      sb.append("null");
-
 
1049
    } else {
-
 
1050
      sb.append(this.billingInfo);
-
 
1051
    }
802
    }
1052
    first = false;
803
    first = false;
1053
    if (!first) sb.append(", ");
804
    if (!first) sb.append(", ");
1054
    sb.append("paymentInfo:");
805
    sb.append("paymentInfo:");
1055
    if (this.paymentInfo == null) {
806
    if (this.paymentInfo == null) {
Line 1061... Line 812...
1061
    if (!first) sb.append(", ");
812
    if (!first) sb.append(", ");
1062
    sb.append("createdOn:");
813
    sb.append("createdOn:");
1063
    sb.append(this.createdOn);
814
    sb.append(this.createdOn);
1064
    first = false;
815
    first = false;
1065
    if (!first) sb.append(", ");
816
    if (!first) sb.append(", ");
1066
    sb.append("expectedDeliveryTime:");
-
 
1067
    sb.append(this.expectedDeliveryTime);
-
 
1068
    first = false;
-
 
1069
    if (!first) sb.append(", ");
-
 
1070
    sb.append("transactionStatus:");
817
    sb.append("transactionStatus:");
1071
    if (this.transactionStatus == null) {
818
    if (this.transactionStatus == null) {
1072
      sb.append("null");
819
      sb.append("null");
1073
    } else {
820
    } else {
1074
      String transactionStatus_name = transactionStatus.name();
821
      String transactionStatus_name = transactionStatus.name();
Line 1089... Line 836...
1089
    } else {
836
    } else {
1090
      sb.append(this.statusDescription);
837
      sb.append(this.statusDescription);
1091
    }
838
    }
1092
    first = false;
839
    first = false;
1093
    if (!first) sb.append(", ");
840
    if (!first) sb.append(", ");
1094
    sb.append("customer_id:");
-
 
1095
    sb.append(this.customer_id);
-
 
1096
    first = false;
-
 
1097
    if (!first) sb.append(", ");
-
 
1098
    sb.append("shoppingCartid:");
841
    sb.append("shoppingCartid:");
1099
    sb.append(this.shoppingCartid);
842
    sb.append(this.shoppingCartid);
1100
    first = false;
843
    first = false;
1101
    if (!first) sb.append(", ");
844
    if (!first) sb.append(", ");
1102
    sb.append("warehouse_id:");
845
    sb.append("customer_id:");
1103
    sb.append(this.warehouse_id);
846
    sb.append(this.customer_id);
1104
    first = false;
847
    first = false;
1105
    sb.append(")");
848
    sb.append(")");
1106
    return sb.toString();
849
    return sb.toString();
1107
  }
850
  }
1108
 
851