Subversion Repositories SmartDukaan

Rev

Rev 8241 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8241 Rev 8247
Line 30... Line 30...
30
  private static final org.apache.thrift.protocol.TField SUBSIDY_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("subsidyAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
30
  private static final org.apache.thrift.protocol.TField SUBSIDY_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("subsidyAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField EBAY_TXN_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("ebayTxnDate", org.apache.thrift.protocol.TType.I64, (short)6);
31
  private static final org.apache.thrift.protocol.TField EBAY_TXN_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("ebayTxnDate", org.apache.thrift.protocol.TType.I64, (short)6);
32
  private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField LISTING_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("listingName", org.apache.thrift.protocol.TType.STRING, (short)8);
33
  private static final org.apache.thrift.protocol.TField LISTING_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("listingName", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField LISTING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("listingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
34
  private static final org.apache.thrift.protocol.TField LISTING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("listingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  private static final org.apache.thrift.protocol.TField BLUEDART_PAISA_PAY_REF_FIELD_DESC = new org.apache.thrift.protocol.TField("bluedartPaisaPayRef", org.apache.thrift.protocol.TType.I64, (short)10);
35
  private static final org.apache.thrift.protocol.TField BLUEDART_PAISA_PAY_REF_FIELD_DESC = new org.apache.thrift.protocol.TField("bluedartPaisaPayRef", org.apache.thrift.protocol.TType.STRING, (short)10);
36
 
36
 
37
  private long orderId; // required
37
  private long orderId; // required
38
  private long salesRecordNumber; // required
38
  private long salesRecordNumber; // required
39
  private String paisaPayId; // required
39
  private String paisaPayId; // required
40
  private String ebayListingId; // required
40
  private String ebayListingId; // required
41
  private double subsidyAmount; // required
41
  private double subsidyAmount; // required
42
  private long ebayTxnDate; // required
42
  private long ebayTxnDate; // required
43
  private String transactionId; // required
43
  private String transactionId; // required
44
  private String listingName; // required
44
  private String listingName; // required
45
  private double listingPrice; // required
45
  private double listingPrice; // required
46
  private long bluedartPaisaPayRef; // required
46
  private String bluedartPaisaPayRef; // required
47
 
47
 
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50
    ORDER_ID((short)1, "orderId"),
50
    ORDER_ID((short)1, "orderId"),
51
    SALES_RECORD_NUMBER((short)2, "salesRecordNumber"),
51
    SALES_RECORD_NUMBER((short)2, "salesRecordNumber"),
Line 134... Line 134...
134
  private static final int __ORDERID_ISSET_ID = 0;
134
  private static final int __ORDERID_ISSET_ID = 0;
135
  private static final int __SALESRECORDNUMBER_ISSET_ID = 1;
135
  private static final int __SALESRECORDNUMBER_ISSET_ID = 1;
136
  private static final int __SUBSIDYAMOUNT_ISSET_ID = 2;
136
  private static final int __SUBSIDYAMOUNT_ISSET_ID = 2;
137
  private static final int __EBAYTXNDATE_ISSET_ID = 3;
137
  private static final int __EBAYTXNDATE_ISSET_ID = 3;
138
  private static final int __LISTINGPRICE_ISSET_ID = 4;
138
  private static final int __LISTINGPRICE_ISSET_ID = 4;
139
  private static final int __BLUEDARTPAISAPAYREF_ISSET_ID = 5;
-
 
140
  private BitSet __isset_bit_vector = new BitSet(6);
139
  private BitSet __isset_bit_vector = new BitSet(5);
141
 
140
 
142
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
141
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
143
  static {
142
  static {
144
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
143
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
145
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
144
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 159... Line 158...
159
    tmpMap.put(_Fields.LISTING_NAME, new org.apache.thrift.meta_data.FieldMetaData("listingName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
158
    tmpMap.put(_Fields.LISTING_NAME, new org.apache.thrift.meta_data.FieldMetaData("listingName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
159
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
161
    tmpMap.put(_Fields.LISTING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("listingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
160
    tmpMap.put(_Fields.LISTING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("listingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
163
    tmpMap.put(_Fields.BLUEDART_PAISA_PAY_REF, new org.apache.thrift.meta_data.FieldMetaData("bluedartPaisaPayRef", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
    tmpMap.put(_Fields.BLUEDART_PAISA_PAY_REF, new org.apache.thrift.meta_data.FieldMetaData("bluedartPaisaPayRef", org.apache.thrift.TFieldRequirementType.DEFAULT, 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
165
    metaDataMap = Collections.unmodifiableMap(tmpMap);
164
    metaDataMap = Collections.unmodifiableMap(tmpMap);
166
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(EbayOrder.class, metaDataMap);
165
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(EbayOrder.class, metaDataMap);
167
  }
166
  }
168
 
167
 
169
  public EbayOrder() {
168
  public EbayOrder() {
Line 177... Line 176...
177
    double subsidyAmount,
176
    double subsidyAmount,
178
    long ebayTxnDate,
177
    long ebayTxnDate,
179
    String transactionId,
178
    String transactionId,
180
    String listingName,
179
    String listingName,
181
    double listingPrice,
180
    double listingPrice,
182
    long bluedartPaisaPayRef)
181
    String bluedartPaisaPayRef)
183
  {
182
  {
184
    this();
183
    this();
185
    this.orderId = orderId;
184
    this.orderId = orderId;
186
    setOrderIdIsSet(true);
185
    setOrderIdIsSet(true);
187
    this.salesRecordNumber = salesRecordNumber;
186
    this.salesRecordNumber = salesRecordNumber;
Line 195... Line 194...
195
    this.transactionId = transactionId;
194
    this.transactionId = transactionId;
196
    this.listingName = listingName;
195
    this.listingName = listingName;
197
    this.listingPrice = listingPrice;
196
    this.listingPrice = listingPrice;
198
    setListingPriceIsSet(true);
197
    setListingPriceIsSet(true);
199
    this.bluedartPaisaPayRef = bluedartPaisaPayRef;
198
    this.bluedartPaisaPayRef = bluedartPaisaPayRef;
200
    setBluedartPaisaPayRefIsSet(true);
-
 
201
  }
199
  }
202
 
200
 
203
  /**
201
  /**
204
   * Performs a deep copy on <i>other</i>.
202
   * Performs a deep copy on <i>other</i>.
205
   */
203
   */
Line 221... Line 219...
221
    }
219
    }
222
    if (other.isSetListingName()) {
220
    if (other.isSetListingName()) {
223
      this.listingName = other.listingName;
221
      this.listingName = other.listingName;
224
    }
222
    }
225
    this.listingPrice = other.listingPrice;
223
    this.listingPrice = other.listingPrice;
-
 
224
    if (other.isSetBluedartPaisaPayRef()) {
226
    this.bluedartPaisaPayRef = other.bluedartPaisaPayRef;
225
      this.bluedartPaisaPayRef = other.bluedartPaisaPayRef;
-
 
226
    }
227
  }
227
  }
228
 
228
 
229
  public EbayOrder deepCopy() {
229
  public EbayOrder deepCopy() {
230
    return new EbayOrder(this);
230
    return new EbayOrder(this);
231
  }
231
  }
Line 244... Line 244...
244
    this.ebayTxnDate = 0;
244
    this.ebayTxnDate = 0;
245
    this.transactionId = null;
245
    this.transactionId = null;
246
    this.listingName = null;
246
    this.listingName = null;
247
    setListingPriceIsSet(false);
247
    setListingPriceIsSet(false);
248
    this.listingPrice = 0.0;
248
    this.listingPrice = 0.0;
249
    setBluedartPaisaPayRefIsSet(false);
-
 
250
    this.bluedartPaisaPayRef = 0;
249
    this.bluedartPaisaPayRef = null;
251
  }
250
  }
252
 
251
 
253
  public long getOrderId() {
252
  public long getOrderId() {
254
    return this.orderId;
253
    return this.orderId;
255
  }
254
  }
Line 450... Line 449...
450
 
449
 
451
  public void setListingPriceIsSet(boolean value) {
450
  public void setListingPriceIsSet(boolean value) {
452
    __isset_bit_vector.set(__LISTINGPRICE_ISSET_ID, value);
451
    __isset_bit_vector.set(__LISTINGPRICE_ISSET_ID, value);
453
  }
452
  }
454
 
453
 
455
  public long getBluedartPaisaPayRef() {
454
  public String getBluedartPaisaPayRef() {
456
    return this.bluedartPaisaPayRef;
455
    return this.bluedartPaisaPayRef;
457
  }
456
  }
458
 
457
 
459
  public void setBluedartPaisaPayRef(long bluedartPaisaPayRef) {
458
  public void setBluedartPaisaPayRef(String bluedartPaisaPayRef) {
460
    this.bluedartPaisaPayRef = bluedartPaisaPayRef;
459
    this.bluedartPaisaPayRef = bluedartPaisaPayRef;
461
    setBluedartPaisaPayRefIsSet(true);
-
 
462
  }
460
  }
463
 
461
 
464
  public void unsetBluedartPaisaPayRef() {
462
  public void unsetBluedartPaisaPayRef() {
465
    __isset_bit_vector.clear(__BLUEDARTPAISAPAYREF_ISSET_ID);
463
    this.bluedartPaisaPayRef = null;
466
  }
464
  }
467
 
465
 
468
  /** Returns true if field bluedartPaisaPayRef is set (has been assigned a value) and false otherwise */
466
  /** Returns true if field bluedartPaisaPayRef is set (has been assigned a value) and false otherwise */
469
  public boolean isSetBluedartPaisaPayRef() {
467
  public boolean isSetBluedartPaisaPayRef() {
470
    return __isset_bit_vector.get(__BLUEDARTPAISAPAYREF_ISSET_ID);
468
    return this.bluedartPaisaPayRef != null;
471
  }
469
  }
472
 
470
 
473
  public void setBluedartPaisaPayRefIsSet(boolean value) {
471
  public void setBluedartPaisaPayRefIsSet(boolean value) {
-
 
472
    if (!value) {
474
    __isset_bit_vector.set(__BLUEDARTPAISAPAYREF_ISSET_ID, value);
473
      this.bluedartPaisaPayRef = null;
-
 
474
    }
475
  }
475
  }
476
 
476
 
477
  public void setFieldValue(_Fields field, Object value) {
477
  public void setFieldValue(_Fields field, Object value) {
478
    switch (field) {
478
    switch (field) {
479
    case ORDER_ID:
479
    case ORDER_ID:
Line 550... Line 550...
550
 
550
 
551
    case BLUEDART_PAISA_PAY_REF:
551
    case BLUEDART_PAISA_PAY_REF:
552
      if (value == null) {
552
      if (value == null) {
553
        unsetBluedartPaisaPayRef();
553
        unsetBluedartPaisaPayRef();
554
      } else {
554
      } else {
555
        setBluedartPaisaPayRef((Long)value);
555
        setBluedartPaisaPayRef((String)value);
556
      }
556
      }
557
      break;
557
      break;
558
 
558
 
559
    }
559
    }
560
  }
560
  }
Line 587... Line 587...
587
 
587
 
588
    case LISTING_PRICE:
588
    case LISTING_PRICE:
589
      return Double.valueOf(getListingPrice());
589
      return Double.valueOf(getListingPrice());
590
 
590
 
591
    case BLUEDART_PAISA_PAY_REF:
591
    case BLUEDART_PAISA_PAY_REF:
592
      return Long.valueOf(getBluedartPaisaPayRef());
592
      return getBluedartPaisaPayRef();
593
 
593
 
594
    }
594
    }
595
    throw new IllegalStateException();
595
    throw new IllegalStateException();
596
  }
596
  }
597
 
597
 
Line 718... Line 718...
718
        return false;
718
        return false;
719
      if (this.listingPrice != that.listingPrice)
719
      if (this.listingPrice != that.listingPrice)
720
        return false;
720
        return false;
721
    }
721
    }
722
 
722
 
723
    boolean this_present_bluedartPaisaPayRef = true;
723
    boolean this_present_bluedartPaisaPayRef = true && this.isSetBluedartPaisaPayRef();
724
    boolean that_present_bluedartPaisaPayRef = true;
724
    boolean that_present_bluedartPaisaPayRef = true && that.isSetBluedartPaisaPayRef();
725
    if (this_present_bluedartPaisaPayRef || that_present_bluedartPaisaPayRef) {
725
    if (this_present_bluedartPaisaPayRef || that_present_bluedartPaisaPayRef) {
726
      if (!(this_present_bluedartPaisaPayRef && that_present_bluedartPaisaPayRef))
726
      if (!(this_present_bluedartPaisaPayRef && that_present_bluedartPaisaPayRef))
727
        return false;
727
        return false;
728
      if (this.bluedartPaisaPayRef != that.bluedartPaisaPayRef)
728
      if (!this.bluedartPaisaPayRef.equals(that.bluedartPaisaPayRef))
729
        return false;
729
        return false;
730
    }
730
    }
731
 
731
 
732
    return true;
732
    return true;
733
  }
733
  }
Line 929... Line 929...
929
          } else { 
929
          } else { 
930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
931
          }
931
          }
932
          break;
932
          break;
933
        case 10: // BLUEDART_PAISA_PAY_REF
933
        case 10: // BLUEDART_PAISA_PAY_REF
934
          if (field.type == org.apache.thrift.protocol.TType.I64) {
934
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
935
            this.bluedartPaisaPayRef = iprot.readI64();
935
            this.bluedartPaisaPayRef = iprot.readString();
936
            setBluedartPaisaPayRefIsSet(true);
-
 
937
          } else { 
936
          } else { 
938
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
937
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
939
          }
938
          }
940
          break;
939
          break;
941
        default:
940
        default:
Line 984... Line 983...
984
      oprot.writeFieldEnd();
983
      oprot.writeFieldEnd();
985
    }
984
    }
986
    oprot.writeFieldBegin(LISTING_PRICE_FIELD_DESC);
985
    oprot.writeFieldBegin(LISTING_PRICE_FIELD_DESC);
987
    oprot.writeDouble(this.listingPrice);
986
    oprot.writeDouble(this.listingPrice);
988
    oprot.writeFieldEnd();
987
    oprot.writeFieldEnd();
-
 
988
    if (this.bluedartPaisaPayRef != null) {
989
    oprot.writeFieldBegin(BLUEDART_PAISA_PAY_REF_FIELD_DESC);
989
      oprot.writeFieldBegin(BLUEDART_PAISA_PAY_REF_FIELD_DESC);
990
    oprot.writeI64(this.bluedartPaisaPayRef);
990
      oprot.writeString(this.bluedartPaisaPayRef);
991
    oprot.writeFieldEnd();
991
      oprot.writeFieldEnd();
-
 
992
    }
992
    oprot.writeFieldStop();
993
    oprot.writeFieldStop();
993
    oprot.writeStructEnd();
994
    oprot.writeStructEnd();
994
  }
995
  }
995
 
996
 
996
  @Override
997
  @Override
Line 1049... Line 1050...
1049
    sb.append("listingPrice:");
1050
    sb.append("listingPrice:");
1050
    sb.append(this.listingPrice);
1051
    sb.append(this.listingPrice);
1051
    first = false;
1052
    first = false;
1052
    if (!first) sb.append(", ");
1053
    if (!first) sb.append(", ");
1053
    sb.append("bluedartPaisaPayRef:");
1054
    sb.append("bluedartPaisaPayRef:");
-
 
1055
    if (this.bluedartPaisaPayRef == null) {
-
 
1056
      sb.append("null");
-
 
1057
    } else {
1054
    sb.append(this.bluedartPaisaPayRef);
1058
      sb.append(this.bluedartPaisaPayRef);
-
 
1059
    }
1055
    first = false;
1060
    first = false;
1056
    sb.append(")");
1061
    sb.append(")");
1057
    return sb.toString();
1062
    return sb.toString();
1058
  }
1063
  }
1059
 
1064