Subversion Repositories SmartDukaan

Rev

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

Rev 6048 Rev 6077
Line 26... Line 26...
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField DISPLAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("displayId", org.apache.thrift.protocol.TType.STRING, (short)2);
27
  private static final org.apache.thrift.protocol.TField DISPLAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("displayId", org.apache.thrift.protocol.TType.STRING, (short)2);
28
  private static final org.apache.thrift.protocol.TField TOTAL_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("totalAmount", org.apache.thrift.protocol.TType.I64, (short)3);
28
  private static final org.apache.thrift.protocol.TField TOTAL_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("totalAmount", org.apache.thrift.protocol.TType.I64, (short)3);
29
  private static final org.apache.thrift.protocol.TField WALLET_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("walletAmount", org.apache.thrift.protocol.TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField WALLET_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("walletAmount", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)5);
30
  private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)5);
31
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)6);
31
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.I64, (short)6);
32
  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)7);
32
  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)7);
33
  private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.I64, (short)8);
33
  private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.I64, (short)8);
34
  private static final org.apache.thrift.protocol.TField RECHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeType", org.apache.thrift.protocol.TType.I32, (short)9);
34
  private static final org.apache.thrift.protocol.TField RECHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeType", org.apache.thrift.protocol.TType.I32, (short)9);
35
  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)10);
35
  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)10);
36
  private static final org.apache.thrift.protocol.TField DEVICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceNumber", org.apache.thrift.protocol.TType.STRING, (short)11);
36
  private static final org.apache.thrift.protocol.TField DEVICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceNumber", org.apache.thrift.protocol.TType.STRING, (short)11);
Line 43... Line 43...
43
  private long id; // required
43
  private long id; // required
44
  private String displayId; // required
44
  private String displayId; // required
45
  private long totalAmount; // required
45
  private long totalAmount; // required
46
  private long walletAmount; // required
46
  private long walletAmount; // required
47
  private long transactionId; // required
47
  private long transactionId; // required
48
  private String invoiceNumber; // required
48
  private long invoiceNumber; // required
49
  private OrderType orderType; // required
49
  private OrderType orderType; // required
50
  private long operatorId; // required
50
  private long operatorId; // required
51
  private RechargeType rechargeType; // required
51
  private RechargeType rechargeType; // required
52
  private RechargeOrderStatus status; // required
52
  private RechargeOrderStatus status; // required
53
  private String deviceNumber; // required
53
  private String deviceNumber; // required
Line 175... Line 175...
175
  // isset id assignments
175
  // isset id assignments
176
  private static final int __ID_ISSET_ID = 0;
176
  private static final int __ID_ISSET_ID = 0;
177
  private static final int __TOTALAMOUNT_ISSET_ID = 1;
177
  private static final int __TOTALAMOUNT_ISSET_ID = 1;
178
  private static final int __WALLETAMOUNT_ISSET_ID = 2;
178
  private static final int __WALLETAMOUNT_ISSET_ID = 2;
179
  private static final int __TRANSACTIONID_ISSET_ID = 3;
179
  private static final int __TRANSACTIONID_ISSET_ID = 3;
-
 
180
  private static final int __INVOICENUMBER_ISSET_ID = 4;
180
  private static final int __OPERATORID_ISSET_ID = 4;
181
  private static final int __OPERATORID_ISSET_ID = 5;
181
  private static final int __USERID_ISSET_ID = 5;
182
  private static final int __USERID_ISSET_ID = 6;
182
  private static final int __CREATIONTIMESTAMP_ISSET_ID = 6;
183
  private static final int __CREATIONTIMESTAMP_ISSET_ID = 7;
183
  private static final int __RESPONSETIMESTAMP_ISSET_ID = 7;
184
  private static final int __RESPONSETIMESTAMP_ISSET_ID = 8;
184
  private BitSet __isset_bit_vector = new BitSet(8);
185
  private BitSet __isset_bit_vector = new BitSet(9);
185
 
186
 
186
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
187
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
187
  static {
188
  static {
188
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
189
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
189
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
190
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 195... Line 196...
195
    tmpMap.put(_Fields.WALLET_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("walletAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
196
    tmpMap.put(_Fields.WALLET_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("walletAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
196
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
197
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
197
    tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
198
    tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
198
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
199
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
199
    tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
200
    tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
200
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
201
    tmpMap.put(_Fields.ORDER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("orderType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
202
    tmpMap.put(_Fields.ORDER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("orderType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
202
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderType.class)));
203
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderType.class)));
203
    tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
204
    tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
204
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
205
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
205
    tmpMap.put(_Fields.RECHARGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("rechargeType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
206
    tmpMap.put(_Fields.RECHARGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("rechargeType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 229... Line 230...
229
    long id,
230
    long id,
230
    String displayId,
231
    String displayId,
231
    long totalAmount,
232
    long totalAmount,
232
    long walletAmount,
233
    long walletAmount,
233
    long transactionId,
234
    long transactionId,
234
    String invoiceNumber,
235
    long invoiceNumber,
235
    OrderType orderType,
236
    OrderType orderType,
236
    long operatorId,
237
    long operatorId,
237
    RechargeType rechargeType,
238
    RechargeType rechargeType,
238
    RechargeOrderStatus status,
239
    RechargeOrderStatus status,
239
    String deviceNumber,
240
    String deviceNumber,
Line 252... Line 253...
252
    this.walletAmount = walletAmount;
253
    this.walletAmount = walletAmount;
253
    setWalletAmountIsSet(true);
254
    setWalletAmountIsSet(true);
254
    this.transactionId = transactionId;
255
    this.transactionId = transactionId;
255
    setTransactionIdIsSet(true);
256
    setTransactionIdIsSet(true);
256
    this.invoiceNumber = invoiceNumber;
257
    this.invoiceNumber = invoiceNumber;
-
 
258
    setInvoiceNumberIsSet(true);
257
    this.orderType = orderType;
259
    this.orderType = orderType;
258
    this.operatorId = operatorId;
260
    this.operatorId = operatorId;
259
    setOperatorIdIsSet(true);
261
    setOperatorIdIsSet(true);
260
    this.rechargeType = rechargeType;
262
    this.rechargeType = rechargeType;
261
    this.status = status;
263
    this.status = status;
Line 281... Line 283...
281
      this.displayId = other.displayId;
283
      this.displayId = other.displayId;
282
    }
284
    }
283
    this.totalAmount = other.totalAmount;
285
    this.totalAmount = other.totalAmount;
284
    this.walletAmount = other.walletAmount;
286
    this.walletAmount = other.walletAmount;
285
    this.transactionId = other.transactionId;
287
    this.transactionId = other.transactionId;
286
    if (other.isSetInvoiceNumber()) {
-
 
287
      this.invoiceNumber = other.invoiceNumber;
288
    this.invoiceNumber = other.invoiceNumber;
288
    }
-
 
289
    if (other.isSetOrderType()) {
289
    if (other.isSetOrderType()) {
290
      this.orderType = other.orderType;
290
      this.orderType = other.orderType;
291
    }
291
    }
292
    this.operatorId = other.operatorId;
292
    this.operatorId = other.operatorId;
293
    if (other.isSetRechargeType()) {
293
    if (other.isSetRechargeType()) {
Line 323... Line 323...
323
    this.totalAmount = 0;
323
    this.totalAmount = 0;
324
    setWalletAmountIsSet(false);
324
    setWalletAmountIsSet(false);
325
    this.walletAmount = 0;
325
    this.walletAmount = 0;
326
    setTransactionIdIsSet(false);
326
    setTransactionIdIsSet(false);
327
    this.transactionId = 0;
327
    this.transactionId = 0;
-
 
328
    setInvoiceNumberIsSet(false);
328
    this.invoiceNumber = null;
329
    this.invoiceNumber = 0;
329
    this.orderType = null;
330
    this.orderType = null;
330
    setOperatorIdIsSet(false);
331
    setOperatorIdIsSet(false);
331
    this.operatorId = 0;
332
    this.operatorId = 0;
332
    this.rechargeType = null;
333
    this.rechargeType = null;
333
    this.status = null;
334
    this.status = null;
Line 451... Line 452...
451
 
452
 
452
  public void setTransactionIdIsSet(boolean value) {
453
  public void setTransactionIdIsSet(boolean value) {
453
    __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
454
    __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
454
  }
455
  }
455
 
456
 
456
  public String getInvoiceNumber() {
457
  public long getInvoiceNumber() {
457
    return this.invoiceNumber;
458
    return this.invoiceNumber;
458
  }
459
  }
459
 
460
 
460
  public void setInvoiceNumber(String invoiceNumber) {
461
  public void setInvoiceNumber(long invoiceNumber) {
461
    this.invoiceNumber = invoiceNumber;
462
    this.invoiceNumber = invoiceNumber;
-
 
463
    setInvoiceNumberIsSet(true);
462
  }
464
  }
463
 
465
 
464
  public void unsetInvoiceNumber() {
466
  public void unsetInvoiceNumber() {
465
    this.invoiceNumber = null;
467
    __isset_bit_vector.clear(__INVOICENUMBER_ISSET_ID);
466
  }
468
  }
467
 
469
 
468
  /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
470
  /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
469
  public boolean isSetInvoiceNumber() {
471
  public boolean isSetInvoiceNumber() {
470
    return this.invoiceNumber != null;
472
    return __isset_bit_vector.get(__INVOICENUMBER_ISSET_ID);
471
  }
473
  }
472
 
474
 
473
  public void setInvoiceNumberIsSet(boolean value) {
475
  public void setInvoiceNumberIsSet(boolean value) {
474
    if (!value) {
-
 
475
      this.invoiceNumber = null;
476
    __isset_bit_vector.set(__INVOICENUMBER_ISSET_ID, value);
476
    }
-
 
477
  }
477
  }
478
 
478
 
479
  /**
479
  /**
480
   * 
480
   * 
481
   * @see OrderType
481
   * @see OrderType
Line 770... Line 770...
770
 
770
 
771
    case INVOICE_NUMBER:
771
    case INVOICE_NUMBER:
772
      if (value == null) {
772
      if (value == null) {
773
        unsetInvoiceNumber();
773
        unsetInvoiceNumber();
774
      } else {
774
      } else {
775
        setInvoiceNumber((String)value);
775
        setInvoiceNumber((Long)value);
776
      }
776
      }
777
      break;
777
      break;
778
 
778
 
779
    case ORDER_TYPE:
779
    case ORDER_TYPE:
780
      if (value == null) {
780
      if (value == null) {
Line 875... Line 875...
875
 
875
 
876
    case TRANSACTION_ID:
876
    case TRANSACTION_ID:
877
      return Long.valueOf(getTransactionId());
877
      return Long.valueOf(getTransactionId());
878
 
878
 
879
    case INVOICE_NUMBER:
879
    case INVOICE_NUMBER:
880
      return getInvoiceNumber();
880
      return Long.valueOf(getInvoiceNumber());
881
 
881
 
882
    case ORDER_TYPE:
882
    case ORDER_TYPE:
883
      return getOrderType();
883
      return getOrderType();
884
 
884
 
885
    case OPERATOR_ID:
885
    case OPERATOR_ID:
Line 1012... Line 1012...
1012
        return false;
1012
        return false;
1013
      if (this.transactionId != that.transactionId)
1013
      if (this.transactionId != that.transactionId)
1014
        return false;
1014
        return false;
1015
    }
1015
    }
1016
 
1016
 
1017
    boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
1017
    boolean this_present_invoiceNumber = true;
1018
    boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
1018
    boolean that_present_invoiceNumber = true;
1019
    if (this_present_invoiceNumber || that_present_invoiceNumber) {
1019
    if (this_present_invoiceNumber || that_present_invoiceNumber) {
1020
      if (!(this_present_invoiceNumber && that_present_invoiceNumber))
1020
      if (!(this_present_invoiceNumber && that_present_invoiceNumber))
1021
        return false;
1021
        return false;
1022
      if (!this.invoiceNumber.equals(that.invoiceNumber))
1022
      if (this.invoiceNumber != that.invoiceNumber)
1023
        return false;
1023
        return false;
1024
    }
1024
    }
1025
 
1025
 
1026
    boolean this_present_orderType = true && this.isSetOrderType();
1026
    boolean this_present_orderType = true && this.isSetOrderType();
1027
    boolean that_present_orderType = true && that.isSetOrderType();
1027
    boolean that_present_orderType = true && that.isSetOrderType();
Line 1344... Line 1344...
1344
          } else { 
1344
          } else { 
1345
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1345
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1346
          }
1346
          }
1347
          break;
1347
          break;
1348
        case 6: // INVOICE_NUMBER
1348
        case 6: // INVOICE_NUMBER
1349
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1349
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1350
            this.invoiceNumber = iprot.readString();
1350
            this.invoiceNumber = iprot.readI64();
-
 
1351
            setInvoiceNumberIsSet(true);
1351
          } else { 
1352
          } else { 
1352
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1353
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1353
          }
1354
          }
1354
          break;
1355
          break;
1355
        case 7: // ORDER_TYPE
1356
        case 7: // ORDER_TYPE
Line 1454... Line 1455...
1454
    oprot.writeI64(this.walletAmount);
1455
    oprot.writeI64(this.walletAmount);
1455
    oprot.writeFieldEnd();
1456
    oprot.writeFieldEnd();
1456
    oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
1457
    oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
1457
    oprot.writeI64(this.transactionId);
1458
    oprot.writeI64(this.transactionId);
1458
    oprot.writeFieldEnd();
1459
    oprot.writeFieldEnd();
1459
    if (this.invoiceNumber != null) {
-
 
1460
      oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
1460
    oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
1461
      oprot.writeString(this.invoiceNumber);
1461
    oprot.writeI64(this.invoiceNumber);
1462
      oprot.writeFieldEnd();
1462
    oprot.writeFieldEnd();
1463
    }
-
 
1464
    if (this.orderType != null) {
1463
    if (this.orderType != null) {
1465
      oprot.writeFieldBegin(ORDER_TYPE_FIELD_DESC);
1464
      oprot.writeFieldBegin(ORDER_TYPE_FIELD_DESC);
1466
      oprot.writeI32(this.orderType.getValue());
1465
      oprot.writeI32(this.orderType.getValue());
1467
      oprot.writeFieldEnd();
1466
      oprot.writeFieldEnd();
1468
    }
1467
    }
Line 1535... Line 1534...
1535
    sb.append("transactionId:");
1534
    sb.append("transactionId:");
1536
    sb.append(this.transactionId);
1535
    sb.append(this.transactionId);
1537
    first = false;
1536
    first = false;
1538
    if (!first) sb.append(", ");
1537
    if (!first) sb.append(", ");
1539
    sb.append("invoiceNumber:");
1538
    sb.append("invoiceNumber:");
1540
    if (this.invoiceNumber == null) {
-
 
1541
      sb.append("null");
-
 
1542
    } else {
-
 
1543
      sb.append(this.invoiceNumber);
1539
    sb.append(this.invoiceNumber);
1544
    }
-
 
1545
    first = false;
1540
    first = false;
1546
    if (!first) sb.append(", ");
1541
    if (!first) sb.append(", ");
1547
    sb.append("orderType:");
1542
    sb.append("orderType:");
1548
    if (this.orderType == null) {
1543
    if (this.orderType == null) {
1549
      sb.append("null");
1544
      sb.append("null");