Subversion Repositories SmartDukaan

Rev

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

Rev 6319 Rev 6525
Line 83... Line 83...
83
  private static final org.apache.thrift.protocol.TField FIRST_ATTEMPT_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("first_attempt_timestamp", org.apache.thrift.protocol.TType.I64, (short)58);
83
  private static final org.apache.thrift.protocol.TField FIRST_ATTEMPT_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("first_attempt_timestamp", org.apache.thrift.protocol.TType.I64, (short)58);
84
  private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)59);
84
  private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)59);
85
  private static final org.apache.thrift.protocol.TField PICKUP_STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupStoreId", org.apache.thrift.protocol.TType.I64, (short)60);
85
  private static final org.apache.thrift.protocol.TField PICKUP_STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupStoreId", org.apache.thrift.protocol.TType.I64, (short)60);
86
  private static final org.apache.thrift.protocol.TField LOGISTICS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsCod", org.apache.thrift.protocol.TType.BOOL, (short)61);
86
  private static final org.apache.thrift.protocol.TField LOGISTICS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsCod", org.apache.thrift.protocol.TType.BOOL, (short)61);
87
  private static final org.apache.thrift.protocol.TField GV_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("gvAmount", org.apache.thrift.protocol.TType.I64, (short)62);
87
  private static final org.apache.thrift.protocol.TField GV_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("gvAmount", org.apache.thrift.protocol.TType.I64, (short)62);
-
 
88
  private static final org.apache.thrift.protocol.TField OTG_FIELD_DESC = new org.apache.thrift.protocol.TField("otg", org.apache.thrift.protocol.TType.BOOL, (short)63);
88
 
89
 
89
  private long id; // required
90
  private long id; // required
90
  private long warehouse_id; // required
91
  private long warehouse_id; // required
91
  private List<LineItem> lineitems; // required
92
  private List<LineItem> lineitems; // required
92
  private long logistics_provider_id; // required
93
  private long logistics_provider_id; // required
Line 146... Line 147...
146
  private long first_attempt_timestamp; // required
147
  private long first_attempt_timestamp; // required
147
  private OrderType orderType; // required
148
  private OrderType orderType; // required
148
  private long pickupStoreId; // required
149
  private long pickupStoreId; // required
149
  private boolean logisticsCod; // required
150
  private boolean logisticsCod; // required
150
  private long gvAmount; // required
151
  private long gvAmount; // required
-
 
152
  private boolean otg; // required
151
 
153
 
152
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
154
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
153
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
155
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
154
    ID((short)1, "id"),
156
    ID((short)1, "id"),
155
    WAREHOUSE_ID((short)2, "warehouse_id"),
157
    WAREHOUSE_ID((short)2, "warehouse_id"),
Line 248... Line 250...
248
     * @see OrderType
250
     * @see OrderType
249
     */
251
     */
250
    ORDER_TYPE((short)59, "orderType"),
252
    ORDER_TYPE((short)59, "orderType"),
251
    PICKUP_STORE_ID((short)60, "pickupStoreId"),
253
    PICKUP_STORE_ID((short)60, "pickupStoreId"),
252
    LOGISTICS_COD((short)61, "logisticsCod"),
254
    LOGISTICS_COD((short)61, "logisticsCod"),
253
    GV_AMOUNT((short)62, "gvAmount");
255
    GV_AMOUNT((short)62, "gvAmount"),
-
 
256
    OTG((short)63, "otg");
254
 
257
 
255
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
258
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
256
 
259
 
257
    static {
260
    static {
258
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
261
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 387... Line 390...
387
          return PICKUP_STORE_ID;
390
          return PICKUP_STORE_ID;
388
        case 61: // LOGISTICS_COD
391
        case 61: // LOGISTICS_COD
389
          return LOGISTICS_COD;
392
          return LOGISTICS_COD;
390
        case 62: // GV_AMOUNT
393
        case 62: // GV_AMOUNT
391
          return GV_AMOUNT;
394
          return GV_AMOUNT;
-
 
395
        case 63: // OTG
-
 
396
          return OTG;
392
        default:
397
        default:
393
          return null;
398
          return null;
394
      }
399
      }
395
    }
400
    }
396
 
401
 
Line 466... Line 471...
466
  private static final int __RECEIVED_RETURN_TIMESTAMP_ISSET_ID = 34;
471
  private static final int __RECEIVED_RETURN_TIMESTAMP_ISSET_ID = 34;
467
  private static final int __FIRST_ATTEMPT_TIMESTAMP_ISSET_ID = 35;
472
  private static final int __FIRST_ATTEMPT_TIMESTAMP_ISSET_ID = 35;
468
  private static final int __PICKUPSTOREID_ISSET_ID = 36;
473
  private static final int __PICKUPSTOREID_ISSET_ID = 36;
469
  private static final int __LOGISTICSCOD_ISSET_ID = 37;
474
  private static final int __LOGISTICSCOD_ISSET_ID = 37;
470
  private static final int __GVAMOUNT_ISSET_ID = 38;
475
  private static final int __GVAMOUNT_ISSET_ID = 38;
-
 
476
  private static final int __OTG_ISSET_ID = 39;
471
  private BitSet __isset_bit_vector = new BitSet(39);
477
  private BitSet __isset_bit_vector = new BitSet(40);
472
 
478
 
473
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
479
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
474
  static {
480
  static {
475
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
481
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
476
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
482
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 596... Line 602...
596
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
602
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
597
    tmpMap.put(_Fields.LOGISTICS_COD, new org.apache.thrift.meta_data.FieldMetaData("logisticsCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
603
    tmpMap.put(_Fields.LOGISTICS_COD, new org.apache.thrift.meta_data.FieldMetaData("logisticsCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
598
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
604
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
599
    tmpMap.put(_Fields.GV_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("gvAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
605
    tmpMap.put(_Fields.GV_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("gvAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
600
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
606
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
607
    tmpMap.put(_Fields.OTG, new org.apache.thrift.meta_data.FieldMetaData("otg", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
608
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
601
    metaDataMap = Collections.unmodifiableMap(tmpMap);
609
    metaDataMap = Collections.unmodifiableMap(tmpMap);
602
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
610
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
603
  }
611
  }
604
 
612
 
605
  public Order() {
613
  public Order() {
Line 658... Line 666...
658
    long fulfilmentWarehouseId,
666
    long fulfilmentWarehouseId,
659
    boolean vendorPaid,
667
    boolean vendorPaid,
660
    OrderType orderType,
668
    OrderType orderType,
661
    long pickupStoreId,
669
    long pickupStoreId,
662
    boolean logisticsCod,
670
    boolean logisticsCod,
663
    long gvAmount)
671
    long gvAmount,
-
 
672
    boolean otg)
664
  {
673
  {
665
    this();
674
    this();
666
    this.id = id;
675
    this.id = id;
667
    setIdIsSet(true);
676
    setIdIsSet(true);
668
    this.warehouse_id = warehouse_id;
677
    this.warehouse_id = warehouse_id;
Line 748... Line 757...
748
    setPickupStoreIdIsSet(true);
757
    setPickupStoreIdIsSet(true);
749
    this.logisticsCod = logisticsCod;
758
    this.logisticsCod = logisticsCod;
750
    setLogisticsCodIsSet(true);
759
    setLogisticsCodIsSet(true);
751
    this.gvAmount = gvAmount;
760
    this.gvAmount = gvAmount;
752
    setGvAmountIsSet(true);
761
    setGvAmountIsSet(true);
-
 
762
    this.otg = otg;
-
 
763
    setOtgIsSet(true);
753
  }
764
  }
754
 
765
 
755
  /**
766
  /**
756
   * Performs a deep copy on <i>other</i>.
767
   * Performs a deep copy on <i>other</i>.
757
   */
768
   */
Line 868... Line 879...
868
      this.orderType = other.orderType;
879
      this.orderType = other.orderType;
869
    }
880
    }
870
    this.pickupStoreId = other.pickupStoreId;
881
    this.pickupStoreId = other.pickupStoreId;
871
    this.logisticsCod = other.logisticsCod;
882
    this.logisticsCod = other.logisticsCod;
872
    this.gvAmount = other.gvAmount;
883
    this.gvAmount = other.gvAmount;
-
 
884
    this.otg = other.otg;
873
  }
885
  }
874
 
886
 
875
  public Order deepCopy() {
887
  public Order deepCopy() {
876
    return new Order(this);
888
    return new Order(this);
877
  }
889
  }
Line 977... Line 989...
977
    this.pickupStoreId = 0;
989
    this.pickupStoreId = 0;
978
    setLogisticsCodIsSet(false);
990
    setLogisticsCodIsSet(false);
979
    this.logisticsCod = false;
991
    this.logisticsCod = false;
980
    setGvAmountIsSet(false);
992
    setGvAmountIsSet(false);
981
    this.gvAmount = 0;
993
    this.gvAmount = 0;
-
 
994
    setOtgIsSet(false);
-
 
995
    this.otg = false;
982
  }
996
  }
983
 
997
 
984
  public long getId() {
998
  public long getId() {
985
    return this.id;
999
    return this.id;
986
  }
1000
  }
Line 2457... Line 2471...
2457
 
2471
 
2458
  public void setGvAmountIsSet(boolean value) {
2472
  public void setGvAmountIsSet(boolean value) {
2459
    __isset_bit_vector.set(__GVAMOUNT_ISSET_ID, value);
2473
    __isset_bit_vector.set(__GVAMOUNT_ISSET_ID, value);
2460
  }
2474
  }
2461
 
2475
 
-
 
2476
  public boolean isOtg() {
-
 
2477
    return this.otg;
-
 
2478
  }
-
 
2479
 
-
 
2480
  public void setOtg(boolean otg) {
-
 
2481
    this.otg = otg;
-
 
2482
    setOtgIsSet(true);
-
 
2483
  }
-
 
2484
 
-
 
2485
  public void unsetOtg() {
-
 
2486
    __isset_bit_vector.clear(__OTG_ISSET_ID);
-
 
2487
  }
-
 
2488
 
-
 
2489
  /** Returns true if field otg is set (has been assigned a value) and false otherwise */
-
 
2490
  public boolean isSetOtg() {
-
 
2491
    return __isset_bit_vector.get(__OTG_ISSET_ID);
-
 
2492
  }
-
 
2493
 
-
 
2494
  public void setOtgIsSet(boolean value) {
-
 
2495
    __isset_bit_vector.set(__OTG_ISSET_ID, value);
-
 
2496
  }
-
 
2497
 
2462
  public void setFieldValue(_Fields field, Object value) {
2498
  public void setFieldValue(_Fields field, Object value) {
2463
    switch (field) {
2499
    switch (field) {
2464
    case ID:
2500
    case ID:
2465
      if (value == null) {
2501
      if (value == null) {
2466
        unsetId();
2502
        unsetId();
Line 2955... Line 2991...
2955
      } else {
2991
      } else {
2956
        setGvAmount((Long)value);
2992
        setGvAmount((Long)value);
2957
      }
2993
      }
2958
      break;
2994
      break;
2959
 
2995
 
-
 
2996
    case OTG:
-
 
2997
      if (value == null) {
-
 
2998
        unsetOtg();
-
 
2999
      } else {
-
 
3000
        setOtg((Boolean)value);
-
 
3001
      }
-
 
3002
      break;
-
 
3003
 
2960
    }
3004
    }
2961
  }
3005
  }
2962
 
3006
 
2963
  public Object getFieldValue(_Fields field) {
3007
  public Object getFieldValue(_Fields field) {
2964
    switch (field) {
3008
    switch (field) {
Line 3146... Line 3190...
3146
      return Boolean.valueOf(isLogisticsCod());
3190
      return Boolean.valueOf(isLogisticsCod());
3147
 
3191
 
3148
    case GV_AMOUNT:
3192
    case GV_AMOUNT:
3149
      return Long.valueOf(getGvAmount());
3193
      return Long.valueOf(getGvAmount());
3150
 
3194
 
-
 
3195
    case OTG:
-
 
3196
      return Boolean.valueOf(isOtg());
-
 
3197
 
3151
    }
3198
    }
3152
    throw new IllegalStateException();
3199
    throw new IllegalStateException();
3153
  }
3200
  }
3154
 
3201
 
3155
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3202
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 3281... Line 3328...
3281
      return isSetPickupStoreId();
3328
      return isSetPickupStoreId();
3282
    case LOGISTICS_COD:
3329
    case LOGISTICS_COD:
3283
      return isSetLogisticsCod();
3330
      return isSetLogisticsCod();
3284
    case GV_AMOUNT:
3331
    case GV_AMOUNT:
3285
      return isSetGvAmount();
3332
      return isSetGvAmount();
-
 
3333
    case OTG:
-
 
3334
      return isSetOtg();
3286
    }
3335
    }
3287
    throw new IllegalStateException();
3336
    throw new IllegalStateException();
3288
  }
3337
  }
3289
 
3338
 
3290
  @Override
3339
  @Override
Line 3856... Line 3905...
3856
        return false;
3905
        return false;
3857
      if (this.gvAmount != that.gvAmount)
3906
      if (this.gvAmount != that.gvAmount)
3858
        return false;
3907
        return false;
3859
    }
3908
    }
3860
 
3909
 
-
 
3910
    boolean this_present_otg = true;
-
 
3911
    boolean that_present_otg = true;
-
 
3912
    if (this_present_otg || that_present_otg) {
-
 
3913
      if (!(this_present_otg && that_present_otg))
-
 
3914
        return false;
-
 
3915
      if (this.otg != that.otg)
-
 
3916
        return false;
-
 
3917
    }
-
 
3918
 
3861
    return true;
3919
    return true;
3862
  }
3920
  }
3863
 
3921
 
3864
  @Override
3922
  @Override
3865
  public int hashCode() {
3923
  public int hashCode() {
Line 4492... Line 4550...
4492
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gvAmount, typedOther.gvAmount);
4550
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gvAmount, typedOther.gvAmount);
4493
      if (lastComparison != 0) {
4551
      if (lastComparison != 0) {
4494
        return lastComparison;
4552
        return lastComparison;
4495
      }
4553
      }
4496
    }
4554
    }
-
 
4555
    lastComparison = Boolean.valueOf(isSetOtg()).compareTo(typedOther.isSetOtg());
-
 
4556
    if (lastComparison != 0) {
-
 
4557
      return lastComparison;
-
 
4558
    }
-
 
4559
    if (isSetOtg()) {
-
 
4560
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otg, typedOther.otg);
-
 
4561
      if (lastComparison != 0) {
-
 
4562
        return lastComparison;
-
 
4563
      }
-
 
4564
    }
4497
    return 0;
4565
    return 0;
4498
  }
4566
  }
4499
 
4567
 
4500
  public _Fields fieldForId(int fieldId) {
4568
  public _Fields fieldForId(int fieldId) {
4501
    return _Fields.findByThriftId(fieldId);
4569
    return _Fields.findByThriftId(fieldId);
Line 4993... Line 5061...
4993
            setGvAmountIsSet(true);
5061
            setGvAmountIsSet(true);
4994
          } else { 
5062
          } else { 
4995
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5063
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4996
          }
5064
          }
4997
          break;
5065
          break;
-
 
5066
        case 63: // OTG
-
 
5067
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
5068
            this.otg = iprot.readBool();
-
 
5069
            setOtgIsSet(true);
-
 
5070
          } else { 
-
 
5071
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5072
          }
-
 
5073
          break;
4998
        default:
5074
        default:
4999
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5075
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5000
      }
5076
      }
5001
      iprot.readFieldEnd();
5077
      iprot.readFieldEnd();
5002
    }
5078
    }
Line 5259... Line 5335...
5259
    oprot.writeBool(this.logisticsCod);
5335
    oprot.writeBool(this.logisticsCod);
5260
    oprot.writeFieldEnd();
5336
    oprot.writeFieldEnd();
5261
    oprot.writeFieldBegin(GV_AMOUNT_FIELD_DESC);
5337
    oprot.writeFieldBegin(GV_AMOUNT_FIELD_DESC);
5262
    oprot.writeI64(this.gvAmount);
5338
    oprot.writeI64(this.gvAmount);
5263
    oprot.writeFieldEnd();
5339
    oprot.writeFieldEnd();
-
 
5340
    oprot.writeFieldBegin(OTG_FIELD_DESC);
-
 
5341
    oprot.writeBool(this.otg);
-
 
5342
    oprot.writeFieldEnd();
5264
    oprot.writeFieldStop();
5343
    oprot.writeFieldStop();
5265
    oprot.writeStructEnd();
5344
    oprot.writeStructEnd();
5266
  }
5345
  }
5267
 
5346
 
5268
  @Override
5347
  @Override
Line 5621... Line 5700...
5621
    first = false;
5700
    first = false;
5622
    if (!first) sb.append(", ");
5701
    if (!first) sb.append(", ");
5623
    sb.append("gvAmount:");
5702
    sb.append("gvAmount:");
5624
    sb.append(this.gvAmount);
5703
    sb.append(this.gvAmount);
5625
    first = false;
5704
    first = false;
-
 
5705
    if (!first) sb.append(", ");
-
 
5706
    sb.append("otg:");
-
 
5707
    sb.append(this.otg);
-
 
5708
    first = false;
5626
    sb.append(")");
5709
    sb.append(")");
5627
    return sb.toString();
5710
    return sb.toString();
5628
  }
5711
  }
5629
 
5712
 
5630
  public void validate() throws org.apache.thrift.TException {
5713
  public void validate() throws org.apache.thrift.TException {