Subversion Repositories SmartDukaan

Rev

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

Rev 3555 Rev 5327
Line 27... Line 27...
27
  private static final org.apache.thrift.protocol.TField LINES_FIELD_DESC = new org.apache.thrift.protocol.TField("lines", org.apache.thrift.protocol.TType.LIST, (short)2);
27
  private static final org.apache.thrift.protocol.TField LINES_FIELD_DESC = new org.apache.thrift.protocol.TField("lines", org.apache.thrift.protocol.TType.LIST, (short)2);
28
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)3);
28
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)3);
29
  private static final org.apache.thrift.protocol.TField CREATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("createdOn", org.apache.thrift.protocol.TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField CREATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("createdOn", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField UPDATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedOn", org.apache.thrift.protocol.TType.I64, (short)5);
30
  private static final org.apache.thrift.protocol.TField UPDATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedOn", org.apache.thrift.protocol.TType.I64, (short)5);
31
  private static final org.apache.thrift.protocol.TField CHECKED_OUT_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("checkedOutOn", org.apache.thrift.protocol.TType.I64, (short)6);
31
  private static final org.apache.thrift.protocol.TField CHECKED_OUT_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("checkedOutOn", org.apache.thrift.protocol.TType.I64, (short)6);
32
  private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)7);
-
 
33
  private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)8);
32
  private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)7);
34
  private static final org.apache.thrift.protocol.TField TOTAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("totalPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
33
  private static final org.apache.thrift.protocol.TField TOTAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("totalPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
35
  private static final org.apache.thrift.protocol.TField DISCOUNTED_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("discountedPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
34
  private static final org.apache.thrift.protocol.TField DISCOUNTED_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("discountedPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
36
  private static final org.apache.thrift.protocol.TField COUPON_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("couponCode", org.apache.thrift.protocol.TType.STRING, (short)11);
35
  private static final org.apache.thrift.protocol.TField COUPON_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("couponCode", org.apache.thrift.protocol.TType.STRING, (short)10);
37
 
36
 
38
  private long id; // required
37
  private long id; // required
39
  private List<Line> lines; // required
38
  private List<Line> lines; // required
40
  private CartStatus status; // required
39
  private CartStatus status; // required
41
  private long createdOn; // required
40
  private long createdOn; // required
42
  private long updatedOn; // required
41
  private long updatedOn; // required
43
  private long checkedOutOn; // required
42
  private long checkedOutOn; // required
44
  private long userId; // required
-
 
45
  private long addressId; // required
43
  private long addressId; // required
46
  private double totalPrice; // required
44
  private double totalPrice; // required
47
  private double discountedPrice; // required
45
  private double discountedPrice; // required
48
  private String couponCode; // required
46
  private String couponCode; // required
49
 
47
 
Line 57... Line 55...
57
     */
55
     */
58
    STATUS((short)3, "status"),
56
    STATUS((short)3, "status"),
59
    CREATED_ON((short)4, "createdOn"),
57
    CREATED_ON((short)4, "createdOn"),
60
    UPDATED_ON((short)5, "updatedOn"),
58
    UPDATED_ON((short)5, "updatedOn"),
61
    CHECKED_OUT_ON((short)6, "checkedOutOn"),
59
    CHECKED_OUT_ON((short)6, "checkedOutOn"),
62
    USER_ID((short)7, "userId"),
-
 
63
    ADDRESS_ID((short)8, "addressId"),
60
    ADDRESS_ID((short)7, "addressId"),
64
    TOTAL_PRICE((short)9, "totalPrice"),
61
    TOTAL_PRICE((short)8, "totalPrice"),
65
    DISCOUNTED_PRICE((short)10, "discountedPrice"),
62
    DISCOUNTED_PRICE((short)9, "discountedPrice"),
66
    COUPON_CODE((short)11, "couponCode");
63
    COUPON_CODE((short)10, "couponCode");
67
 
64
 
68
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
65
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
69
 
66
 
70
    static {
67
    static {
71
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
68
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 88... Line 85...
88
          return CREATED_ON;
85
          return CREATED_ON;
89
        case 5: // UPDATED_ON
86
        case 5: // UPDATED_ON
90
          return UPDATED_ON;
87
          return UPDATED_ON;
91
        case 6: // CHECKED_OUT_ON
88
        case 6: // CHECKED_OUT_ON
92
          return CHECKED_OUT_ON;
89
          return CHECKED_OUT_ON;
93
        case 7: // USER_ID
-
 
94
          return USER_ID;
-
 
95
        case 8: // ADDRESS_ID
90
        case 7: // ADDRESS_ID
96
          return ADDRESS_ID;
91
          return ADDRESS_ID;
97
        case 9: // TOTAL_PRICE
92
        case 8: // TOTAL_PRICE
98
          return TOTAL_PRICE;
93
          return TOTAL_PRICE;
99
        case 10: // DISCOUNTED_PRICE
94
        case 9: // DISCOUNTED_PRICE
100
          return DISCOUNTED_PRICE;
95
          return DISCOUNTED_PRICE;
101
        case 11: // COUPON_CODE
96
        case 10: // COUPON_CODE
102
          return COUPON_CODE;
97
          return COUPON_CODE;
103
        default:
98
        default:
104
          return null;
99
          return null;
105
      }
100
      }
106
    }
101
    }
Line 142... Line 137...
142
  // isset id assignments
137
  // isset id assignments
143
  private static final int __ID_ISSET_ID = 0;
138
  private static final int __ID_ISSET_ID = 0;
144
  private static final int __CREATEDON_ISSET_ID = 1;
139
  private static final int __CREATEDON_ISSET_ID = 1;
145
  private static final int __UPDATEDON_ISSET_ID = 2;
140
  private static final int __UPDATEDON_ISSET_ID = 2;
146
  private static final int __CHECKEDOUTON_ISSET_ID = 3;
141
  private static final int __CHECKEDOUTON_ISSET_ID = 3;
147
  private static final int __USERID_ISSET_ID = 4;
-
 
148
  private static final int __ADDRESSID_ISSET_ID = 5;
142
  private static final int __ADDRESSID_ISSET_ID = 4;
149
  private static final int __TOTALPRICE_ISSET_ID = 6;
143
  private static final int __TOTALPRICE_ISSET_ID = 5;
150
  private static final int __DISCOUNTEDPRICE_ISSET_ID = 7;
144
  private static final int __DISCOUNTEDPRICE_ISSET_ID = 6;
151
  private BitSet __isset_bit_vector = new BitSet(8);
145
  private BitSet __isset_bit_vector = new BitSet(7);
152
 
146
 
153
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
147
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
154
  static {
148
  static {
155
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
149
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
156
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
150
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 164... Line 158...
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
165
    tmpMap.put(_Fields.UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("updatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
159
    tmpMap.put(_Fields.UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("updatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
167
    tmpMap.put(_Fields.CHECKED_OUT_ON, new org.apache.thrift.meta_data.FieldMetaData("checkedOutOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
161
    tmpMap.put(_Fields.CHECKED_OUT_ON, new org.apache.thrift.meta_data.FieldMetaData("checkedOutOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
169
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
171
    tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
163
    tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
173
    tmpMap.put(_Fields.TOTAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("totalPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
165
    tmpMap.put(_Fields.TOTAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("totalPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
174
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
175
    tmpMap.put(_Fields.DISCOUNTED_PRICE, new org.apache.thrift.meta_data.FieldMetaData("discountedPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
    tmpMap.put(_Fields.DISCOUNTED_PRICE, new org.apache.thrift.meta_data.FieldMetaData("discountedPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 188... Line 180...
188
    List<Line> lines,
180
    List<Line> lines,
189
    CartStatus status,
181
    CartStatus status,
190
    long createdOn,
182
    long createdOn,
191
    long updatedOn,
183
    long updatedOn,
192
    long checkedOutOn,
184
    long checkedOutOn,
193
    long userId,
-
 
194
    long addressId,
185
    long addressId,
195
    double totalPrice,
186
    double totalPrice,
196
    double discountedPrice,
187
    double discountedPrice,
197
    String couponCode)
188
    String couponCode)
198
  {
189
  {
Line 205... Line 196...
205
    setCreatedOnIsSet(true);
196
    setCreatedOnIsSet(true);
206
    this.updatedOn = updatedOn;
197
    this.updatedOn = updatedOn;
207
    setUpdatedOnIsSet(true);
198
    setUpdatedOnIsSet(true);
208
    this.checkedOutOn = checkedOutOn;
199
    this.checkedOutOn = checkedOutOn;
209
    setCheckedOutOnIsSet(true);
200
    setCheckedOutOnIsSet(true);
210
    this.userId = userId;
-
 
211
    setUserIdIsSet(true);
-
 
212
    this.addressId = addressId;
201
    this.addressId = addressId;
213
    setAddressIdIsSet(true);
202
    setAddressIdIsSet(true);
214
    this.totalPrice = totalPrice;
203
    this.totalPrice = totalPrice;
215
    setTotalPriceIsSet(true);
204
    setTotalPriceIsSet(true);
216
    this.discountedPrice = discountedPrice;
205
    this.discountedPrice = discountedPrice;
Line 236... Line 225...
236
      this.status = other.status;
225
      this.status = other.status;
237
    }
226
    }
238
    this.createdOn = other.createdOn;
227
    this.createdOn = other.createdOn;
239
    this.updatedOn = other.updatedOn;
228
    this.updatedOn = other.updatedOn;
240
    this.checkedOutOn = other.checkedOutOn;
229
    this.checkedOutOn = other.checkedOutOn;
241
    this.userId = other.userId;
-
 
242
    this.addressId = other.addressId;
230
    this.addressId = other.addressId;
243
    this.totalPrice = other.totalPrice;
231
    this.totalPrice = other.totalPrice;
244
    this.discountedPrice = other.discountedPrice;
232
    this.discountedPrice = other.discountedPrice;
245
    if (other.isSetCouponCode()) {
233
    if (other.isSetCouponCode()) {
246
      this.couponCode = other.couponCode;
234
      this.couponCode = other.couponCode;
Line 261... Line 249...
261
    this.createdOn = 0;
249
    this.createdOn = 0;
262
    setUpdatedOnIsSet(false);
250
    setUpdatedOnIsSet(false);
263
    this.updatedOn = 0;
251
    this.updatedOn = 0;
264
    setCheckedOutOnIsSet(false);
252
    setCheckedOutOnIsSet(false);
265
    this.checkedOutOn = 0;
253
    this.checkedOutOn = 0;
266
    setUserIdIsSet(false);
-
 
267
    this.userId = 0;
-
 
268
    setAddressIdIsSet(false);
254
    setAddressIdIsSet(false);
269
    this.addressId = 0;
255
    this.addressId = 0;
270
    setTotalPriceIsSet(false);
256
    setTotalPriceIsSet(false);
271
    this.totalPrice = 0.0;
257
    this.totalPrice = 0.0;
272
    setDiscountedPriceIsSet(false);
258
    setDiscountedPriceIsSet(false);
Line 429... Line 415...
429
 
415
 
430
  public void setCheckedOutOnIsSet(boolean value) {
416
  public void setCheckedOutOnIsSet(boolean value) {
431
    __isset_bit_vector.set(__CHECKEDOUTON_ISSET_ID, value);
417
    __isset_bit_vector.set(__CHECKEDOUTON_ISSET_ID, value);
432
  }
418
  }
433
 
419
 
434
  public long getUserId() {
-
 
435
    return this.userId;
-
 
436
  }
-
 
437
 
-
 
438
  public void setUserId(long userId) {
-
 
439
    this.userId = userId;
-
 
440
    setUserIdIsSet(true);
-
 
441
  }
-
 
442
 
-
 
443
  public void unsetUserId() {
-
 
444
    __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
445
  }
-
 
446
 
-
 
447
  /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
448
  public boolean isSetUserId() {
-
 
449
    return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
450
  }
-
 
451
 
-
 
452
  public void setUserIdIsSet(boolean value) {
-
 
453
    __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
454
  }
-
 
455
 
-
 
456
  public long getAddressId() {
420
  public long getAddressId() {
457
    return this.addressId;
421
    return this.addressId;
458
  }
422
  }
459
 
423
 
460
  public void setAddressId(long addressId) {
424
  public void setAddressId(long addressId) {
Line 590... Line 554...
590
      } else {
554
      } else {
591
        setCheckedOutOn((Long)value);
555
        setCheckedOutOn((Long)value);
592
      }
556
      }
593
      break;
557
      break;
594
 
558
 
595
    case USER_ID:
-
 
596
      if (value == null) {
-
 
597
        unsetUserId();
-
 
598
      } else {
-
 
599
        setUserId((Long)value);
-
 
600
      }
-
 
601
      break;
-
 
602
 
-
 
603
    case ADDRESS_ID:
559
    case ADDRESS_ID:
604
      if (value == null) {
560
      if (value == null) {
605
        unsetAddressId();
561
        unsetAddressId();
606
      } else {
562
      } else {
607
        setAddressId((Long)value);
563
        setAddressId((Long)value);
Line 653... Line 609...
653
      return Long.valueOf(getUpdatedOn());
609
      return Long.valueOf(getUpdatedOn());
654
 
610
 
655
    case CHECKED_OUT_ON:
611
    case CHECKED_OUT_ON:
656
      return Long.valueOf(getCheckedOutOn());
612
      return Long.valueOf(getCheckedOutOn());
657
 
613
 
658
    case USER_ID:
-
 
659
      return Long.valueOf(getUserId());
-
 
660
 
-
 
661
    case ADDRESS_ID:
614
    case ADDRESS_ID:
662
      return Long.valueOf(getAddressId());
615
      return Long.valueOf(getAddressId());
663
 
616
 
664
    case TOTAL_PRICE:
617
    case TOTAL_PRICE:
665
      return Double.valueOf(getTotalPrice());
618
      return Double.valueOf(getTotalPrice());
Line 691... Line 644...
691
      return isSetCreatedOn();
644
      return isSetCreatedOn();
692
    case UPDATED_ON:
645
    case UPDATED_ON:
693
      return isSetUpdatedOn();
646
      return isSetUpdatedOn();
694
    case CHECKED_OUT_ON:
647
    case CHECKED_OUT_ON:
695
      return isSetCheckedOutOn();
648
      return isSetCheckedOutOn();
696
    case USER_ID:
-
 
697
      return isSetUserId();
-
 
698
    case ADDRESS_ID:
649
    case ADDRESS_ID:
699
      return isSetAddressId();
650
      return isSetAddressId();
700
    case TOTAL_PRICE:
651
    case TOTAL_PRICE:
701
      return isSetTotalPrice();
652
      return isSetTotalPrice();
702
    case DISCOUNTED_PRICE:
653
    case DISCOUNTED_PRICE:
Line 772... Line 723...
772
        return false;
723
        return false;
773
      if (this.checkedOutOn != that.checkedOutOn)
724
      if (this.checkedOutOn != that.checkedOutOn)
774
        return false;
725
        return false;
775
    }
726
    }
776
 
727
 
777
    boolean this_present_userId = true;
-
 
778
    boolean that_present_userId = true;
-
 
779
    if (this_present_userId || that_present_userId) {
-
 
780
      if (!(this_present_userId && that_present_userId))
-
 
781
        return false;
-
 
782
      if (this.userId != that.userId)
-
 
783
        return false;
-
 
784
    }
-
 
785
 
-
 
786
    boolean this_present_addressId = true;
728
    boolean this_present_addressId = true;
787
    boolean that_present_addressId = true;
729
    boolean that_present_addressId = true;
788
    if (this_present_addressId || that_present_addressId) {
730
    if (this_present_addressId || that_present_addressId) {
789
      if (!(this_present_addressId && that_present_addressId))
731
      if (!(this_present_addressId && that_present_addressId))
790
        return false;
732
        return false;
Line 893... Line 835...
893
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.checkedOutOn, typedOther.checkedOutOn);
835
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.checkedOutOn, typedOther.checkedOutOn);
894
      if (lastComparison != 0) {
836
      if (lastComparison != 0) {
895
        return lastComparison;
837
        return lastComparison;
896
      }
838
      }
897
    }
839
    }
898
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
899
    if (lastComparison != 0) {
-
 
900
      return lastComparison;
-
 
901
    }
-
 
902
    if (isSetUserId()) {
-
 
903
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
904
      if (lastComparison != 0) {
-
 
905
        return lastComparison;
-
 
906
      }
-
 
907
    }
-
 
908
    lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
840
    lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
909
    if (lastComparison != 0) {
841
    if (lastComparison != 0) {
910
      return lastComparison;
842
      return lastComparison;
911
    }
843
    }
912
    if (isSetAddressId()) {
844
    if (isSetAddressId()) {
Line 971... Line 903...
971
          }
903
          }
972
          break;
904
          break;
973
        case 2: // LINES
905
        case 2: // LINES
974
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
906
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
975
            {
907
            {
976
              org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
908
              org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
977
              this.lines = new ArrayList<Line>(_list12.size);
909
              this.lines = new ArrayList<Line>(_list8.size);
978
              for (int _i13 = 0; _i13 < _list12.size; ++_i13)
910
              for (int _i9 = 0; _i9 < _list8.size; ++_i9)
979
              {
911
              {
980
                Line _elem14; // required
912
                Line _elem10; // required
981
                _elem14 = new Line();
913
                _elem10 = new Line();
982
                _elem14.read(iprot);
914
                _elem10.read(iprot);
983
                this.lines.add(_elem14);
915
                this.lines.add(_elem10);
984
              }
916
              }
985
              iprot.readListEnd();
917
              iprot.readListEnd();
986
            }
918
            }
987
          } else { 
919
          } else { 
988
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
920
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 1017... Line 949...
1017
            setCheckedOutOnIsSet(true);
949
            setCheckedOutOnIsSet(true);
1018
          } else { 
950
          } else { 
1019
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
951
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1020
          }
952
          }
1021
          break;
953
          break;
1022
        case 7: // USER_ID
-
 
1023
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1024
            this.userId = iprot.readI64();
-
 
1025
            setUserIdIsSet(true);
-
 
1026
          } else { 
-
 
1027
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1028
          }
-
 
1029
          break;
-
 
1030
        case 8: // ADDRESS_ID
954
        case 7: // ADDRESS_ID
1031
          if (field.type == org.apache.thrift.protocol.TType.I64) {
955
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1032
            this.addressId = iprot.readI64();
956
            this.addressId = iprot.readI64();
1033
            setAddressIdIsSet(true);
957
            setAddressIdIsSet(true);
1034
          } else { 
958
          } else { 
1035
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
959
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1036
          }
960
          }
1037
          break;
961
          break;
1038
        case 9: // TOTAL_PRICE
962
        case 8: // TOTAL_PRICE
1039
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
963
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1040
            this.totalPrice = iprot.readDouble();
964
            this.totalPrice = iprot.readDouble();
1041
            setTotalPriceIsSet(true);
965
            setTotalPriceIsSet(true);
1042
          } else { 
966
          } else { 
1043
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
967
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1044
          }
968
          }
1045
          break;
969
          break;
1046
        case 10: // DISCOUNTED_PRICE
970
        case 9: // DISCOUNTED_PRICE
1047
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
971
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1048
            this.discountedPrice = iprot.readDouble();
972
            this.discountedPrice = iprot.readDouble();
1049
            setDiscountedPriceIsSet(true);
973
            setDiscountedPriceIsSet(true);
1050
          } else { 
974
          } else { 
1051
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
975
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1052
          }
976
          }
1053
          break;
977
          break;
1054
        case 11: // COUPON_CODE
978
        case 10: // COUPON_CODE
1055
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
979
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1056
            this.couponCode = iprot.readString();
980
            this.couponCode = iprot.readString();
1057
          } else { 
981
          } else { 
1058
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
982
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1059
          }
983
          }
Line 1076... Line 1000...
1076
    oprot.writeFieldEnd();
1000
    oprot.writeFieldEnd();
1077
    if (this.lines != null) {
1001
    if (this.lines != null) {
1078
      oprot.writeFieldBegin(LINES_FIELD_DESC);
1002
      oprot.writeFieldBegin(LINES_FIELD_DESC);
1079
      {
1003
      {
1080
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lines.size()));
1004
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lines.size()));
1081
        for (Line _iter15 : this.lines)
1005
        for (Line _iter11 : this.lines)
1082
        {
1006
        {
1083
          _iter15.write(oprot);
1007
          _iter11.write(oprot);
1084
        }
1008
        }
1085
        oprot.writeListEnd();
1009
        oprot.writeListEnd();
1086
      }
1010
      }
1087
      oprot.writeFieldEnd();
1011
      oprot.writeFieldEnd();
1088
    }
1012
    }
Line 1098... Line 1022...
1098
    oprot.writeI64(this.updatedOn);
1022
    oprot.writeI64(this.updatedOn);
1099
    oprot.writeFieldEnd();
1023
    oprot.writeFieldEnd();
1100
    oprot.writeFieldBegin(CHECKED_OUT_ON_FIELD_DESC);
1024
    oprot.writeFieldBegin(CHECKED_OUT_ON_FIELD_DESC);
1101
    oprot.writeI64(this.checkedOutOn);
1025
    oprot.writeI64(this.checkedOutOn);
1102
    oprot.writeFieldEnd();
1026
    oprot.writeFieldEnd();
1103
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
1104
    oprot.writeI64(this.userId);
-
 
1105
    oprot.writeFieldEnd();
-
 
1106
    oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
1027
    oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
1107
    oprot.writeI64(this.addressId);
1028
    oprot.writeI64(this.addressId);
1108
    oprot.writeFieldEnd();
1029
    oprot.writeFieldEnd();
1109
    oprot.writeFieldBegin(TOTAL_PRICE_FIELD_DESC);
1030
    oprot.writeFieldBegin(TOTAL_PRICE_FIELD_DESC);
1110
    oprot.writeDouble(this.totalPrice);
1031
    oprot.writeDouble(this.totalPrice);
Line 1156... Line 1077...
1156
    if (!first) sb.append(", ");
1077
    if (!first) sb.append(", ");
1157
    sb.append("checkedOutOn:");
1078
    sb.append("checkedOutOn:");
1158
    sb.append(this.checkedOutOn);
1079
    sb.append(this.checkedOutOn);
1159
    first = false;
1080
    first = false;
1160
    if (!first) sb.append(", ");
1081
    if (!first) sb.append(", ");
1161
    sb.append("userId:");
-
 
1162
    sb.append(this.userId);
-
 
1163
    first = false;
-
 
1164
    if (!first) sb.append(", ");
-
 
1165
    sb.append("addressId:");
1082
    sb.append("addressId:");
1166
    sb.append(this.addressId);
1083
    sb.append(this.addressId);
1167
    first = false;
1084
    first = false;
1168
    if (!first) sb.append(", ");
1085
    if (!first) sb.append(", ");
1169
    sb.append("totalPrice:");
1086
    sb.append("totalPrice:");