Subversion Repositories SmartDukaan

Rev

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

Rev 7386 Rev 7393
Line 27... Line 27...
27
  private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField ADVANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("advanceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
28
  private static final org.apache.thrift.protocol.TField ADVANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("advanceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
29
  private static final org.apache.thrift.protocol.TField CASH_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cashAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
29
  private static final org.apache.thrift.protocol.TField CASH_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cashAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
30
  private static final org.apache.thrift.protocol.TField CARD_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cardAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
30
  private static final org.apache.thrift.protocol.TField CARD_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cardAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField PAY_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("payStatus", org.apache.thrift.protocol.TType.I32, (short)6);
31
  private static final org.apache.thrift.protocol.TField PAY_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("payStatus", org.apache.thrift.protocol.TType.I32, (short)6);
-
 
32
  private static final org.apache.thrift.protocol.TField EDC_BANK_FIELD_DESC = new org.apache.thrift.protocol.TField("edcBank", org.apache.thrift.protocol.TType.STRING, (short)7);
-
 
33
  private static final org.apache.thrift.protocol.TField CASH_REFUND_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cashRefundAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
-
 
34
  private static final org.apache.thrift.protocol.TField CARD_REFUND_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cardRefundAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
32
 
35
 
33
  private long orderId; // required
36
  private long orderId; // required
34
  private long storeId; // required
37
  private long storeId; // required
35
  private double advanceAmount; // required
38
  private double advanceAmount; // required
36
  private double cashAmount; // required
39
  private double cashAmount; // required
37
  private double cardAmount; // required
40
  private double cardAmount; // required
38
  private StorePaymentStatus payStatus; // required
41
  private StorePaymentStatus payStatus; // required
-
 
42
  private String edcBank; // required
-
 
43
  private double cashRefundAmount; // required
-
 
44
  private double cardRefundAmount; // required
39
 
45
 
40
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42
    ORDER_ID((short)1, "orderId"),
48
    ORDER_ID((short)1, "orderId"),
43
    STORE_ID((short)2, "storeId"),
49
    STORE_ID((short)2, "storeId"),
Line 46... Line 52...
46
    CARD_AMOUNT((short)5, "cardAmount"),
52
    CARD_AMOUNT((short)5, "cardAmount"),
47
    /**
53
    /**
48
     * 
54
     * 
49
     * @see StorePaymentStatus
55
     * @see StorePaymentStatus
50
     */
56
     */
51
    PAY_STATUS((short)6, "payStatus");
57
    PAY_STATUS((short)6, "payStatus"),
-
 
58
    EDC_BANK((short)7, "edcBank"),
-
 
59
    CASH_REFUND_AMOUNT((short)8, "cashRefundAmount"),
-
 
60
    CARD_REFUND_AMOUNT((short)9, "cardRefundAmount");
52
 
61
 
53
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
62
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54
 
63
 
55
    static {
64
    static {
56
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
65
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 73... Line 82...
73
          return CASH_AMOUNT;
82
          return CASH_AMOUNT;
74
        case 5: // CARD_AMOUNT
83
        case 5: // CARD_AMOUNT
75
          return CARD_AMOUNT;
84
          return CARD_AMOUNT;
76
        case 6: // PAY_STATUS
85
        case 6: // PAY_STATUS
77
          return PAY_STATUS;
86
          return PAY_STATUS;
-
 
87
        case 7: // EDC_BANK
-
 
88
          return EDC_BANK;
-
 
89
        case 8: // CASH_REFUND_AMOUNT
-
 
90
          return CASH_REFUND_AMOUNT;
-
 
91
        case 9: // CARD_REFUND_AMOUNT
-
 
92
          return CARD_REFUND_AMOUNT;
78
        default:
93
        default:
79
          return null;
94
          return null;
80
      }
95
      }
81
    }
96
    }
82
 
97
 
Line 118... Line 133...
118
  private static final int __ORDERID_ISSET_ID = 0;
133
  private static final int __ORDERID_ISSET_ID = 0;
119
  private static final int __STOREID_ISSET_ID = 1;
134
  private static final int __STOREID_ISSET_ID = 1;
120
  private static final int __ADVANCEAMOUNT_ISSET_ID = 2;
135
  private static final int __ADVANCEAMOUNT_ISSET_ID = 2;
121
  private static final int __CASHAMOUNT_ISSET_ID = 3;
136
  private static final int __CASHAMOUNT_ISSET_ID = 3;
122
  private static final int __CARDAMOUNT_ISSET_ID = 4;
137
  private static final int __CARDAMOUNT_ISSET_ID = 4;
-
 
138
  private static final int __CASHREFUNDAMOUNT_ISSET_ID = 5;
-
 
139
  private static final int __CARDREFUNDAMOUNT_ISSET_ID = 6;
123
  private BitSet __isset_bit_vector = new BitSet(5);
140
  private BitSet __isset_bit_vector = new BitSet(7);
124
 
141
 
125
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
142
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
126
  static {
143
  static {
127
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
144
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
128
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
145
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 135... Line 152...
135
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
152
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
136
    tmpMap.put(_Fields.CARD_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("cardAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
153
    tmpMap.put(_Fields.CARD_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("cardAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
137
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
138
    tmpMap.put(_Fields.PAY_STATUS, new org.apache.thrift.meta_data.FieldMetaData("payStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
155
    tmpMap.put(_Fields.PAY_STATUS, new org.apache.thrift.meta_data.FieldMetaData("payStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
139
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, StorePaymentStatus.class)));
156
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, StorePaymentStatus.class)));
-
 
157
    tmpMap.put(_Fields.EDC_BANK, new org.apache.thrift.meta_data.FieldMetaData("edcBank", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
159
    tmpMap.put(_Fields.CASH_REFUND_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("cashRefundAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
161
    tmpMap.put(_Fields.CARD_REFUND_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("cardRefundAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
140
    metaDataMap = Collections.unmodifiableMap(tmpMap);
163
    metaDataMap = Collections.unmodifiableMap(tmpMap);
141
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StoreOrderDetail.class, metaDataMap);
164
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StoreOrderDetail.class, metaDataMap);
142
  }
165
  }
143
 
166
 
144
  public StoreOrderDetail() {
167
  public StoreOrderDetail() {
Line 148... Line 171...
148
    long orderId,
171
    long orderId,
149
    long storeId,
172
    long storeId,
150
    double advanceAmount,
173
    double advanceAmount,
151
    double cashAmount,
174
    double cashAmount,
152
    double cardAmount,
175
    double cardAmount,
153
    StorePaymentStatus payStatus)
176
    StorePaymentStatus payStatus,
-
 
177
    String edcBank,
-
 
178
    double cashRefundAmount,
-
 
179
    double cardRefundAmount)
154
  {
180
  {
155
    this();
181
    this();
156
    this.orderId = orderId;
182
    this.orderId = orderId;
157
    setOrderIdIsSet(true);
183
    setOrderIdIsSet(true);
158
    this.storeId = storeId;
184
    this.storeId = storeId;
Line 162... Line 188...
162
    this.cashAmount = cashAmount;
188
    this.cashAmount = cashAmount;
163
    setCashAmountIsSet(true);
189
    setCashAmountIsSet(true);
164
    this.cardAmount = cardAmount;
190
    this.cardAmount = cardAmount;
165
    setCardAmountIsSet(true);
191
    setCardAmountIsSet(true);
166
    this.payStatus = payStatus;
192
    this.payStatus = payStatus;
-
 
193
    this.edcBank = edcBank;
-
 
194
    this.cashRefundAmount = cashRefundAmount;
-
 
195
    setCashRefundAmountIsSet(true);
-
 
196
    this.cardRefundAmount = cardRefundAmount;
-
 
197
    setCardRefundAmountIsSet(true);
167
  }
198
  }
168
 
199
 
169
  /**
200
  /**
170
   * Performs a deep copy on <i>other</i>.
201
   * Performs a deep copy on <i>other</i>.
171
   */
202
   */
Line 178... Line 209...
178
    this.cashAmount = other.cashAmount;
209
    this.cashAmount = other.cashAmount;
179
    this.cardAmount = other.cardAmount;
210
    this.cardAmount = other.cardAmount;
180
    if (other.isSetPayStatus()) {
211
    if (other.isSetPayStatus()) {
181
      this.payStatus = other.payStatus;
212
      this.payStatus = other.payStatus;
182
    }
213
    }
-
 
214
    if (other.isSetEdcBank()) {
-
 
215
      this.edcBank = other.edcBank;
-
 
216
    }
-
 
217
    this.cashRefundAmount = other.cashRefundAmount;
-
 
218
    this.cardRefundAmount = other.cardRefundAmount;
183
  }
219
  }
184
 
220
 
185
  public StoreOrderDetail deepCopy() {
221
  public StoreOrderDetail deepCopy() {
186
    return new StoreOrderDetail(this);
222
    return new StoreOrderDetail(this);
187
  }
223
  }
Line 197... Line 233...
197
    setCashAmountIsSet(false);
233
    setCashAmountIsSet(false);
198
    this.cashAmount = 0.0;
234
    this.cashAmount = 0.0;
199
    setCardAmountIsSet(false);
235
    setCardAmountIsSet(false);
200
    this.cardAmount = 0.0;
236
    this.cardAmount = 0.0;
201
    this.payStatus = null;
237
    this.payStatus = null;
-
 
238
    this.edcBank = null;
-
 
239
    setCashRefundAmountIsSet(false);
-
 
240
    this.cashRefundAmount = 0.0;
-
 
241
    setCardRefundAmountIsSet(false);
-
 
242
    this.cardRefundAmount = 0.0;
202
  }
243
  }
203
 
244
 
204
  public long getOrderId() {
245
  public long getOrderId() {
205
    return this.orderId;
246
    return this.orderId;
206
  }
247
  }
Line 340... Line 381...
340
    if (!value) {
381
    if (!value) {
341
      this.payStatus = null;
382
      this.payStatus = null;
342
    }
383
    }
343
  }
384
  }
344
 
385
 
-
 
386
  public String getEdcBank() {
-
 
387
    return this.edcBank;
-
 
388
  }
-
 
389
 
-
 
390
  public void setEdcBank(String edcBank) {
-
 
391
    this.edcBank = edcBank;
-
 
392
  }
-
 
393
 
-
 
394
  public void unsetEdcBank() {
-
 
395
    this.edcBank = null;
-
 
396
  }
-
 
397
 
-
 
398
  /** Returns true if field edcBank is set (has been assigned a value) and false otherwise */
-
 
399
  public boolean isSetEdcBank() {
-
 
400
    return this.edcBank != null;
-
 
401
  }
-
 
402
 
-
 
403
  public void setEdcBankIsSet(boolean value) {
-
 
404
    if (!value) {
-
 
405
      this.edcBank = null;
-
 
406
    }
-
 
407
  }
-
 
408
 
-
 
409
  public double getCashRefundAmount() {
-
 
410
    return this.cashRefundAmount;
-
 
411
  }
-
 
412
 
-
 
413
  public void setCashRefundAmount(double cashRefundAmount) {
-
 
414
    this.cashRefundAmount = cashRefundAmount;
-
 
415
    setCashRefundAmountIsSet(true);
-
 
416
  }
-
 
417
 
-
 
418
  public void unsetCashRefundAmount() {
-
 
419
    __isset_bit_vector.clear(__CASHREFUNDAMOUNT_ISSET_ID);
-
 
420
  }
-
 
421
 
-
 
422
  /** Returns true if field cashRefundAmount is set (has been assigned a value) and false otherwise */
-
 
423
  public boolean isSetCashRefundAmount() {
-
 
424
    return __isset_bit_vector.get(__CASHREFUNDAMOUNT_ISSET_ID);
-
 
425
  }
-
 
426
 
-
 
427
  public void setCashRefundAmountIsSet(boolean value) {
-
 
428
    __isset_bit_vector.set(__CASHREFUNDAMOUNT_ISSET_ID, value);
-
 
429
  }
-
 
430
 
-
 
431
  public double getCardRefundAmount() {
-
 
432
    return this.cardRefundAmount;
-
 
433
  }
-
 
434
 
-
 
435
  public void setCardRefundAmount(double cardRefundAmount) {
-
 
436
    this.cardRefundAmount = cardRefundAmount;
-
 
437
    setCardRefundAmountIsSet(true);
-
 
438
  }
-
 
439
 
-
 
440
  public void unsetCardRefundAmount() {
-
 
441
    __isset_bit_vector.clear(__CARDREFUNDAMOUNT_ISSET_ID);
-
 
442
  }
-
 
443
 
-
 
444
  /** Returns true if field cardRefundAmount is set (has been assigned a value) and false otherwise */
-
 
445
  public boolean isSetCardRefundAmount() {
-
 
446
    return __isset_bit_vector.get(__CARDREFUNDAMOUNT_ISSET_ID);
-
 
447
  }
-
 
448
 
-
 
449
  public void setCardRefundAmountIsSet(boolean value) {
-
 
450
    __isset_bit_vector.set(__CARDREFUNDAMOUNT_ISSET_ID, value);
-
 
451
  }
-
 
452
 
345
  public void setFieldValue(_Fields field, Object value) {
453
  public void setFieldValue(_Fields field, Object value) {
346
    switch (field) {
454
    switch (field) {
347
    case ORDER_ID:
455
    case ORDER_ID:
348
      if (value == null) {
456
      if (value == null) {
349
        unsetOrderId();
457
        unsetOrderId();
Line 390... Line 498...
390
      } else {
498
      } else {
391
        setPayStatus((StorePaymentStatus)value);
499
        setPayStatus((StorePaymentStatus)value);
392
      }
500
      }
393
      break;
501
      break;
394
 
502
 
-
 
503
    case EDC_BANK:
-
 
504
      if (value == null) {
-
 
505
        unsetEdcBank();
-
 
506
      } else {
-
 
507
        setEdcBank((String)value);
-
 
508
      }
-
 
509
      break;
-
 
510
 
-
 
511
    case CASH_REFUND_AMOUNT:
-
 
512
      if (value == null) {
-
 
513
        unsetCashRefundAmount();
-
 
514
      } else {
-
 
515
        setCashRefundAmount((Double)value);
-
 
516
      }
-
 
517
      break;
-
 
518
 
-
 
519
    case CARD_REFUND_AMOUNT:
-
 
520
      if (value == null) {
-
 
521
        unsetCardRefundAmount();
-
 
522
      } else {
-
 
523
        setCardRefundAmount((Double)value);
-
 
524
      }
-
 
525
      break;
-
 
526
 
395
    }
527
    }
396
  }
528
  }
397
 
529
 
398
  public Object getFieldValue(_Fields field) {
530
  public Object getFieldValue(_Fields field) {
399
    switch (field) {
531
    switch (field) {
Line 413... Line 545...
413
      return Double.valueOf(getCardAmount());
545
      return Double.valueOf(getCardAmount());
414
 
546
 
415
    case PAY_STATUS:
547
    case PAY_STATUS:
416
      return getPayStatus();
548
      return getPayStatus();
417
 
549
 
-
 
550
    case EDC_BANK:
-
 
551
      return getEdcBank();
-
 
552
 
-
 
553
    case CASH_REFUND_AMOUNT:
-
 
554
      return Double.valueOf(getCashRefundAmount());
-
 
555
 
-
 
556
    case CARD_REFUND_AMOUNT:
-
 
557
      return Double.valueOf(getCardRefundAmount());
-
 
558
 
418
    }
559
    }
419
    throw new IllegalStateException();
560
    throw new IllegalStateException();
420
  }
561
  }
421
 
562
 
422
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
563
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 436... Line 577...
436
      return isSetCashAmount();
577
      return isSetCashAmount();
437
    case CARD_AMOUNT:
578
    case CARD_AMOUNT:
438
      return isSetCardAmount();
579
      return isSetCardAmount();
439
    case PAY_STATUS:
580
    case PAY_STATUS:
440
      return isSetPayStatus();
581
      return isSetPayStatus();
-
 
582
    case EDC_BANK:
-
 
583
      return isSetEdcBank();
-
 
584
    case CASH_REFUND_AMOUNT:
-
 
585
      return isSetCashRefundAmount();
-
 
586
    case CARD_REFUND_AMOUNT:
-
 
587
      return isSetCardRefundAmount();
441
    }
588
    }
442
    throw new IllegalStateException();
589
    throw new IllegalStateException();
443
  }
590
  }
444
 
591
 
445
  @Override
592
  @Override
Line 507... Line 654...
507
        return false;
654
        return false;
508
      if (!this.payStatus.equals(that.payStatus))
655
      if (!this.payStatus.equals(that.payStatus))
509
        return false;
656
        return false;
510
    }
657
    }
511
 
658
 
-
 
659
    boolean this_present_edcBank = true && this.isSetEdcBank();
-
 
660
    boolean that_present_edcBank = true && that.isSetEdcBank();
-
 
661
    if (this_present_edcBank || that_present_edcBank) {
-
 
662
      if (!(this_present_edcBank && that_present_edcBank))
-
 
663
        return false;
-
 
664
      if (!this.edcBank.equals(that.edcBank))
-
 
665
        return false;
-
 
666
    }
-
 
667
 
-
 
668
    boolean this_present_cashRefundAmount = true;
-
 
669
    boolean that_present_cashRefundAmount = true;
-
 
670
    if (this_present_cashRefundAmount || that_present_cashRefundAmount) {
-
 
671
      if (!(this_present_cashRefundAmount && that_present_cashRefundAmount))
-
 
672
        return false;
-
 
673
      if (this.cashRefundAmount != that.cashRefundAmount)
-
 
674
        return false;
-
 
675
    }
-
 
676
 
-
 
677
    boolean this_present_cardRefundAmount = true;
-
 
678
    boolean that_present_cardRefundAmount = true;
-
 
679
    if (this_present_cardRefundAmount || that_present_cardRefundAmount) {
-
 
680
      if (!(this_present_cardRefundAmount && that_present_cardRefundAmount))
-
 
681
        return false;
-
 
682
      if (this.cardRefundAmount != that.cardRefundAmount)
-
 
683
        return false;
-
 
684
    }
-
 
685
 
512
    return true;
686
    return true;
513
  }
687
  }
514
 
688
 
515
  @Override
689
  @Override
516
  public int hashCode() {
690
  public int hashCode() {
Line 583... Line 757...
583
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.payStatus, typedOther.payStatus);
757
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.payStatus, typedOther.payStatus);
584
      if (lastComparison != 0) {
758
      if (lastComparison != 0) {
585
        return lastComparison;
759
        return lastComparison;
586
      }
760
      }
587
    }
761
    }
-
 
762
    lastComparison = Boolean.valueOf(isSetEdcBank()).compareTo(typedOther.isSetEdcBank());
-
 
763
    if (lastComparison != 0) {
-
 
764
      return lastComparison;
-
 
765
    }
-
 
766
    if (isSetEdcBank()) {
-
 
767
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.edcBank, typedOther.edcBank);
-
 
768
      if (lastComparison != 0) {
-
 
769
        return lastComparison;
-
 
770
      }
-
 
771
    }
-
 
772
    lastComparison = Boolean.valueOf(isSetCashRefundAmount()).compareTo(typedOther.isSetCashRefundAmount());
-
 
773
    if (lastComparison != 0) {
-
 
774
      return lastComparison;
-
 
775
    }
-
 
776
    if (isSetCashRefundAmount()) {
-
 
777
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cashRefundAmount, typedOther.cashRefundAmount);
-
 
778
      if (lastComparison != 0) {
-
 
779
        return lastComparison;
-
 
780
      }
-
 
781
    }
-
 
782
    lastComparison = Boolean.valueOf(isSetCardRefundAmount()).compareTo(typedOther.isSetCardRefundAmount());
-
 
783
    if (lastComparison != 0) {
-
 
784
      return lastComparison;
-
 
785
    }
-
 
786
    if (isSetCardRefundAmount()) {
-
 
787
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cardRefundAmount, typedOther.cardRefundAmount);
-
 
788
      if (lastComparison != 0) {
-
 
789
        return lastComparison;
-
 
790
      }
-
 
791
    }
588
    return 0;
792
    return 0;
589
  }
793
  }
590
 
794
 
591
  public _Fields fieldForId(int fieldId) {
795
  public _Fields fieldForId(int fieldId) {
592
    return _Fields.findByThriftId(fieldId);
796
    return _Fields.findByThriftId(fieldId);
Line 647... Line 851...
647
            this.payStatus = StorePaymentStatus.findByValue(iprot.readI32());
851
            this.payStatus = StorePaymentStatus.findByValue(iprot.readI32());
648
          } else { 
852
          } else { 
649
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
853
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
650
          }
854
          }
651
          break;
855
          break;
-
 
856
        case 7: // EDC_BANK
-
 
857
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
858
            this.edcBank = iprot.readString();
-
 
859
          } else { 
-
 
860
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
861
          }
-
 
862
          break;
-
 
863
        case 8: // CASH_REFUND_AMOUNT
-
 
864
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
865
            this.cashRefundAmount = iprot.readDouble();
-
 
866
            setCashRefundAmountIsSet(true);
-
 
867
          } else { 
-
 
868
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
869
          }
-
 
870
          break;
-
 
871
        case 9: // CARD_REFUND_AMOUNT
-
 
872
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
873
            this.cardRefundAmount = iprot.readDouble();
-
 
874
            setCardRefundAmountIsSet(true);
-
 
875
          } else { 
-
 
876
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
877
          }
-
 
878
          break;
652
        default:
879
        default:
653
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
880
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
654
      }
881
      }
655
      iprot.readFieldEnd();
882
      iprot.readFieldEnd();
656
    }
883
    }
Line 680... Line 907...
680
    if (this.payStatus != null) {
907
    if (this.payStatus != null) {
681
      oprot.writeFieldBegin(PAY_STATUS_FIELD_DESC);
908
      oprot.writeFieldBegin(PAY_STATUS_FIELD_DESC);
682
      oprot.writeI32(this.payStatus.getValue());
909
      oprot.writeI32(this.payStatus.getValue());
683
      oprot.writeFieldEnd();
910
      oprot.writeFieldEnd();
684
    }
911
    }
-
 
912
    if (this.edcBank != null) {
-
 
913
      oprot.writeFieldBegin(EDC_BANK_FIELD_DESC);
-
 
914
      oprot.writeString(this.edcBank);
-
 
915
      oprot.writeFieldEnd();
-
 
916
    }
-
 
917
    oprot.writeFieldBegin(CASH_REFUND_AMOUNT_FIELD_DESC);
-
 
918
    oprot.writeDouble(this.cashRefundAmount);
-
 
919
    oprot.writeFieldEnd();
-
 
920
    oprot.writeFieldBegin(CARD_REFUND_AMOUNT_FIELD_DESC);
-
 
921
    oprot.writeDouble(this.cardRefundAmount);
-
 
922
    oprot.writeFieldEnd();
685
    oprot.writeFieldStop();
923
    oprot.writeFieldStop();
686
    oprot.writeStructEnd();
924
    oprot.writeStructEnd();
687
  }
925
  }
688
 
926
 
689
  @Override
927
  @Override
Line 716... Line 954...
716
      sb.append("null");
954
      sb.append("null");
717
    } else {
955
    } else {
718
      sb.append(this.payStatus);
956
      sb.append(this.payStatus);
719
    }
957
    }
720
    first = false;
958
    first = false;
-
 
959
    if (!first) sb.append(", ");
-
 
960
    sb.append("edcBank:");
-
 
961
    if (this.edcBank == null) {
-
 
962
      sb.append("null");
-
 
963
    } else {
-
 
964
      sb.append(this.edcBank);
-
 
965
    }
-
 
966
    first = false;
-
 
967
    if (!first) sb.append(", ");
-
 
968
    sb.append("cashRefundAmount:");
-
 
969
    sb.append(this.cashRefundAmount);
-
 
970
    first = false;
-
 
971
    if (!first) sb.append(", ");
-
 
972
    sb.append("cardRefundAmount:");
-
 
973
    sb.append(this.cardRefundAmount);
-
 
974
    first = false;
721
    sb.append(")");
975
    sb.append(")");
722
    return sb.toString();
976
    return sb.toString();
723
  }
977
  }
724
 
978
 
725
  public void validate() throws org.apache.thrift.TException {
979
  public void validate() throws org.apache.thrift.TException {