Subversion Repositories SmartDukaan

Rev

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

Rev 4506 Rev 4647
Line 70... Line 70...
70
  private static final org.apache.thrift.protocol.TField REFUND_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("refund_timestamp", org.apache.thrift.protocol.TType.I64, (short)45);
70
  private static final org.apache.thrift.protocol.TField REFUND_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("refund_timestamp", org.apache.thrift.protocol.TType.I64, (short)45);
71
  private static final org.apache.thrift.protocol.TField NEW_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("new_order_id", org.apache.thrift.protocol.TType.I64, (short)46);
71
  private static final org.apache.thrift.protocol.TField NEW_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("new_order_id", org.apache.thrift.protocol.TType.I64, (short)46);
72
  private static final org.apache.thrift.protocol.TField PREVIOUS_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("previousStatus", org.apache.thrift.protocol.TType.I32, (short)47);
72
  private static final org.apache.thrift.protocol.TField PREVIOUS_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("previousStatus", org.apache.thrift.protocol.TType.I32, (short)47);
73
  private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)48);
73
  private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)48);
74
  private static final org.apache.thrift.protocol.TField DOA_AUTH_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("doa_auth_timestamp", org.apache.thrift.protocol.TType.I64, (short)49);
74
  private static final org.apache.thrift.protocol.TField DOA_AUTH_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("doa_auth_timestamp", org.apache.thrift.protocol.TType.I64, (short)49);
-
 
75
  private static final org.apache.thrift.protocol.TField DELAY_REASON_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("delayReasonText", org.apache.thrift.protocol.TType.STRING, (short)50);
75
 
76
 
76
  private long id; // required
77
  private long id; // required
77
  private long warehouse_id; // required
78
  private long warehouse_id; // required
78
  private List<LineItem> lineitems; // required
79
  private List<LineItem> lineitems; // required
79
  private long logistics_provider_id; // required
80
  private long logistics_provider_id; // required
Line 120... Line 121...
120
  private long refund_timestamp; // required
121
  private long refund_timestamp; // required
121
  private long new_order_id; // required
122
  private long new_order_id; // required
122
  private OrderStatus previousStatus; // required
123
  private OrderStatus previousStatus; // required
123
  private long vendorId; // required
124
  private long vendorId; // required
124
  private long doa_auth_timestamp; // required
125
  private long doa_auth_timestamp; // required
-
 
126
  private String delayReasonText; // required
125
 
127
 
126
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
128
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
127
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
129
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
128
    ID((short)1, "id"),
130
    ID((short)1, "id"),
129
    WAREHOUSE_ID((short)2, "warehouse_id"),
131
    WAREHOUSE_ID((short)2, "warehouse_id"),
Line 205... Line 207...
205
     * 
207
     * 
206
     * @see OrderStatus
208
     * @see OrderStatus
207
     */
209
     */
208
    PREVIOUS_STATUS((short)47, "previousStatus"),
210
    PREVIOUS_STATUS((short)47, "previousStatus"),
209
    VENDOR_ID((short)48, "vendorId"),
211
    VENDOR_ID((short)48, "vendorId"),
210
    DOA_AUTH_TIMESTAMP((short)49, "doa_auth_timestamp");
212
    DOA_AUTH_TIMESTAMP((short)49, "doa_auth_timestamp"),
-
 
213
    DELAY_REASON_TEXT((short)50, "delayReasonText");
211
 
214
 
212
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
215
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
213
 
216
 
214
    static {
217
    static {
215
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
218
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 318... Line 321...
318
          return PREVIOUS_STATUS;
321
          return PREVIOUS_STATUS;
319
        case 48: // VENDOR_ID
322
        case 48: // VENDOR_ID
320
          return VENDOR_ID;
323
          return VENDOR_ID;
321
        case 49: // DOA_AUTH_TIMESTAMP
324
        case 49: // DOA_AUTH_TIMESTAMP
322
          return DOA_AUTH_TIMESTAMP;
325
          return DOA_AUTH_TIMESTAMP;
-
 
326
        case 50: // DELAY_REASON_TEXT
-
 
327
          return DELAY_REASON_TEXT;
323
        default:
328
        default:
324
          return null;
329
          return null;
325
      }
330
      }
326
    }
331
    }
327
 
332
 
Line 491... Line 496...
491
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
496
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
492
    tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
497
    tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
493
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
498
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
494
    tmpMap.put(_Fields.DOA_AUTH_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("doa_auth_timestamp", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
499
    tmpMap.put(_Fields.DOA_AUTH_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("doa_auth_timestamp", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
495
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
500
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
501
    tmpMap.put(_Fields.DELAY_REASON_TEXT, new org.apache.thrift.meta_data.FieldMetaData("delayReasonText", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
502
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
496
    metaDataMap = Collections.unmodifiableMap(tmpMap);
503
    metaDataMap = Collections.unmodifiableMap(tmpMap);
497
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
504
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
498
  }
505
  }
499
 
506
 
500
  public Order() {
507
  public Order() {
Line 543... Line 550...
543
    long promised_delivery_time,
550
    long promised_delivery_time,
544
    long expected_shipping_time,
551
    long expected_shipping_time,
545
    long verification_timestamp,
552
    long verification_timestamp,
546
    long promised_shipping_time,
553
    long promised_shipping_time,
547
    OrderStatus previousStatus,
554
    OrderStatus previousStatus,
548
    long vendorId)
555
    long vendorId,
-
 
556
    String delayReasonText)
549
  {
557
  {
550
    this();
558
    this();
551
    this.id = id;
559
    this.id = id;
552
    setIdIsSet(true);
560
    setIdIsSet(true);
553
    this.warehouse_id = warehouse_id;
561
    this.warehouse_id = warehouse_id;
Line 616... Line 624...
616
    this.promised_shipping_time = promised_shipping_time;
624
    this.promised_shipping_time = promised_shipping_time;
617
    setPromised_shipping_timeIsSet(true);
625
    setPromised_shipping_timeIsSet(true);
618
    this.previousStatus = previousStatus;
626
    this.previousStatus = previousStatus;
619
    this.vendorId = vendorId;
627
    this.vendorId = vendorId;
620
    setVendorIdIsSet(true);
628
    setVendorIdIsSet(true);
-
 
629
    this.delayReasonText = delayReasonText;
621
  }
630
  }
622
 
631
 
623
  /**
632
  /**
624
   * Performs a deep copy on <i>other</i>.
633
   * Performs a deep copy on <i>other</i>.
625
   */
634
   */
Line 717... Line 726...
717
    if (other.isSetPreviousStatus()) {
726
    if (other.isSetPreviousStatus()) {
718
      this.previousStatus = other.previousStatus;
727
      this.previousStatus = other.previousStatus;
719
    }
728
    }
720
    this.vendorId = other.vendorId;
729
    this.vendorId = other.vendorId;
721
    this.doa_auth_timestamp = other.doa_auth_timestamp;
730
    this.doa_auth_timestamp = other.doa_auth_timestamp;
-
 
731
    if (other.isSetDelayReasonText()) {
-
 
732
      this.delayReasonText = other.delayReasonText;
-
 
733
    }
722
  }
734
  }
723
 
735
 
724
  public Order deepCopy() {
736
  public Order deepCopy() {
725
    return new Order(this);
737
    return new Order(this);
726
  }
738
  }
Line 803... Line 815...
803
    this.previousStatus = null;
815
    this.previousStatus = null;
804
    setVendorIdIsSet(false);
816
    setVendorIdIsSet(false);
805
    this.vendorId = 0;
817
    this.vendorId = 0;
806
    setDoa_auth_timestampIsSet(false);
818
    setDoa_auth_timestampIsSet(false);
807
    this.doa_auth_timestamp = 0;
819
    this.doa_auth_timestamp = 0;
-
 
820
    this.delayReasonText = null;
808
  }
821
  }
809
 
822
 
810
  public long getId() {
823
  public long getId() {
811
    return this.id;
824
    return this.id;
812
  }
825
  }
Line 1986... Line 1999...
1986
 
1999
 
1987
  public void setDoa_auth_timestampIsSet(boolean value) {
2000
  public void setDoa_auth_timestampIsSet(boolean value) {
1988
    __isset_bit_vector.set(__DOA_AUTH_TIMESTAMP_ISSET_ID, value);
2001
    __isset_bit_vector.set(__DOA_AUTH_TIMESTAMP_ISSET_ID, value);
1989
  }
2002
  }
1990
 
2003
 
-
 
2004
  public String getDelayReasonText() {
-
 
2005
    return this.delayReasonText;
-
 
2006
  }
-
 
2007
 
-
 
2008
  public void setDelayReasonText(String delayReasonText) {
-
 
2009
    this.delayReasonText = delayReasonText;
-
 
2010
  }
-
 
2011
 
-
 
2012
  public void unsetDelayReasonText() {
-
 
2013
    this.delayReasonText = null;
-
 
2014
  }
-
 
2015
 
-
 
2016
  /** Returns true if field delayReasonText is set (has been assigned a value) and false otherwise */
-
 
2017
  public boolean isSetDelayReasonText() {
-
 
2018
    return this.delayReasonText != null;
-
 
2019
  }
-
 
2020
 
-
 
2021
  public void setDelayReasonTextIsSet(boolean value) {
-
 
2022
    if (!value) {
-
 
2023
      this.delayReasonText = null;
-
 
2024
    }
-
 
2025
  }
-
 
2026
 
1991
  public void setFieldValue(_Fields field, Object value) {
2027
  public void setFieldValue(_Fields field, Object value) {
1992
    switch (field) {
2028
    switch (field) {
1993
    case ID:
2029
    case ID:
1994
      if (value == null) {
2030
      if (value == null) {
1995
        unsetId();
2031
        unsetId();
Line 2380... Line 2416...
2380
      } else {
2416
      } else {
2381
        setDoa_auth_timestamp((Long)value);
2417
        setDoa_auth_timestamp((Long)value);
2382
      }
2418
      }
2383
      break;
2419
      break;
2384
 
2420
 
-
 
2421
    case DELAY_REASON_TEXT:
-
 
2422
      if (value == null) {
-
 
2423
        unsetDelayReasonText();
-
 
2424
      } else {
-
 
2425
        setDelayReasonText((String)value);
-
 
2426
      }
-
 
2427
      break;
-
 
2428
 
2385
    }
2429
    }
2386
  }
2430
  }
2387
 
2431
 
2388
  public Object getFieldValue(_Fields field) {
2432
  public Object getFieldValue(_Fields field) {
2389
    switch (field) {
2433
    switch (field) {
Line 2532... Line 2576...
2532
      return Long.valueOf(getVendorId());
2576
      return Long.valueOf(getVendorId());
2533
 
2577
 
2534
    case DOA_AUTH_TIMESTAMP:
2578
    case DOA_AUTH_TIMESTAMP:
2535
      return Long.valueOf(getDoa_auth_timestamp());
2579
      return Long.valueOf(getDoa_auth_timestamp());
2536
 
2580
 
-
 
2581
    case DELAY_REASON_TEXT:
-
 
2582
      return getDelayReasonText();
-
 
2583
 
2537
    }
2584
    }
2538
    throw new IllegalStateException();
2585
    throw new IllegalStateException();
2539
  }
2586
  }
2540
 
2587
 
2541
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2588
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 2641... Line 2688...
2641
      return isSetPreviousStatus();
2688
      return isSetPreviousStatus();
2642
    case VENDOR_ID:
2689
    case VENDOR_ID:
2643
      return isSetVendorId();
2690
      return isSetVendorId();
2644
    case DOA_AUTH_TIMESTAMP:
2691
    case DOA_AUTH_TIMESTAMP:
2645
      return isSetDoa_auth_timestamp();
2692
      return isSetDoa_auth_timestamp();
-
 
2693
    case DELAY_REASON_TEXT:
-
 
2694
      return isSetDelayReasonText();
2646
    }
2695
    }
2647
    throw new IllegalStateException();
2696
    throw new IllegalStateException();
2648
  }
2697
  }
2649
 
2698
 
2650
  @Override
2699
  @Override
Line 3099... Line 3148...
3099
        return false;
3148
        return false;
3100
      if (this.doa_auth_timestamp != that.doa_auth_timestamp)
3149
      if (this.doa_auth_timestamp != that.doa_auth_timestamp)
3101
        return false;
3150
        return false;
3102
    }
3151
    }
3103
 
3152
 
-
 
3153
    boolean this_present_delayReasonText = true && this.isSetDelayReasonText();
-
 
3154
    boolean that_present_delayReasonText = true && that.isSetDelayReasonText();
-
 
3155
    if (this_present_delayReasonText || that_present_delayReasonText) {
-
 
3156
      if (!(this_present_delayReasonText && that_present_delayReasonText))
-
 
3157
        return false;
-
 
3158
      if (!this.delayReasonText.equals(that.delayReasonText))
-
 
3159
        return false;
-
 
3160
    }
-
 
3161
 
3104
    return true;
3162
    return true;
3105
  }
3163
  }
3106
 
3164
 
3107
  @Override
3165
  @Override
3108
  public int hashCode() {
3166
  public int hashCode() {
Line 3605... Line 3663...
3605
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doa_auth_timestamp, typedOther.doa_auth_timestamp);
3663
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doa_auth_timestamp, typedOther.doa_auth_timestamp);
3606
      if (lastComparison != 0) {
3664
      if (lastComparison != 0) {
3607
        return lastComparison;
3665
        return lastComparison;
3608
      }
3666
      }
3609
    }
3667
    }
-
 
3668
    lastComparison = Boolean.valueOf(isSetDelayReasonText()).compareTo(typedOther.isSetDelayReasonText());
-
 
3669
    if (lastComparison != 0) {
-
 
3670
      return lastComparison;
-
 
3671
    }
-
 
3672
    if (isSetDelayReasonText()) {
-
 
3673
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delayReasonText, typedOther.delayReasonText);
-
 
3674
      if (lastComparison != 0) {
-
 
3675
        return lastComparison;
-
 
3676
      }
-
 
3677
    }
3610
    return 0;
3678
    return 0;
3611
  }
3679
  }
3612
 
3680
 
3613
  public _Fields fieldForId(int fieldId) {
3681
  public _Fields fieldForId(int fieldId) {
3614
    return _Fields.findByThriftId(fieldId);
3682
    return _Fields.findByThriftId(fieldId);
Line 4005... Line 4073...
4005
            setDoa_auth_timestampIsSet(true);
4073
            setDoa_auth_timestampIsSet(true);
4006
          } else { 
4074
          } else { 
4007
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4075
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4008
          }
4076
          }
4009
          break;
4077
          break;
-
 
4078
        case 50: // DELAY_REASON_TEXT
-
 
4079
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
4080
            this.delayReasonText = iprot.readString();
-
 
4081
          } else { 
-
 
4082
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4083
          }
-
 
4084
          break;
4010
        default:
4085
        default:
4011
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4086
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4012
      }
4087
      }
4013
      iprot.readFieldEnd();
4088
      iprot.readFieldEnd();
4014
    }
4089
    }
Line 4220... Line 4295...
4220
    if (isSetDoa_auth_timestamp()) {
4295
    if (isSetDoa_auth_timestamp()) {
4221
      oprot.writeFieldBegin(DOA_AUTH_TIMESTAMP_FIELD_DESC);
4296
      oprot.writeFieldBegin(DOA_AUTH_TIMESTAMP_FIELD_DESC);
4222
      oprot.writeI64(this.doa_auth_timestamp);
4297
      oprot.writeI64(this.doa_auth_timestamp);
4223
      oprot.writeFieldEnd();
4298
      oprot.writeFieldEnd();
4224
    }
4299
    }
-
 
4300
    if (this.delayReasonText != null) {
-
 
4301
      oprot.writeFieldBegin(DELAY_REASON_TEXT_FIELD_DESC);
-
 
4302
      oprot.writeString(this.delayReasonText);
-
 
4303
      oprot.writeFieldEnd();
-
 
4304
    }
4225
    oprot.writeFieldStop();
4305
    oprot.writeFieldStop();
4226
    oprot.writeStructEnd();
4306
    oprot.writeStructEnd();
4227
  }
4307
  }
4228
 
4308
 
4229
  @Override
4309
  @Override
Line 4512... Line 4592...
4512
      if (!first) sb.append(", ");
4592
      if (!first) sb.append(", ");
4513
      sb.append("doa_auth_timestamp:");
4593
      sb.append("doa_auth_timestamp:");
4514
      sb.append(this.doa_auth_timestamp);
4594
      sb.append(this.doa_auth_timestamp);
4515
      first = false;
4595
      first = false;
4516
    }
4596
    }
-
 
4597
    if (!first) sb.append(", ");
-
 
4598
    sb.append("delayReasonText:");
-
 
4599
    if (this.delayReasonText == null) {
-
 
4600
      sb.append("null");
-
 
4601
    } else {
-
 
4602
      sb.append(this.delayReasonText);
-
 
4603
    }
-
 
4604
    first = false;
4517
    sb.append(")");
4605
    sb.append(")");
4518
    return sb.toString();
4606
    return sb.toString();
4519
  }
4607
  }
4520
 
4608
 
4521
  public void validate() throws org.apache.thrift.TException {
4609
  public void validate() throws org.apache.thrift.TException {