Subversion Repositories SmartDukaan

Rev

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

Rev 5945 Rev 6039
Line 322... Line 322...
322
 
322
 
323
    public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException;
323
    public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException;
324
 
324
 
325
    public boolean isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException;
325
    public boolean isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException;
326
 
326
 
-
 
327
    public double getVatPercentageForItem(long itemId, double price) throws org.apache.thrift.TException;
-
 
328
 
-
 
329
    public double getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException;
-
 
330
 
327
  }
331
  }
328
 
332
 
329
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
333
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
330
 
334
 
331
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
335
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 448... Line 452...
448
 
452
 
449
    public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException;
453
    public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException;
450
 
454
 
451
    public void isValidCatalogItemId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isValidCatalogItemId_call> resultHandler) throws org.apache.thrift.TException;
455
    public void isValidCatalogItemId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isValidCatalogItemId_call> resultHandler) throws org.apache.thrift.TException;
452
 
456
 
-
 
457
    public void getVatPercentageForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatPercentageForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
458
 
-
 
459
    public void getVatAmountForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatAmountForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
460
 
453
  }
461
  }
454
 
462
 
455
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
463
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
456
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
464
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
457
      public Factory() {}
465
      public Factory() {}
Line 1995... Line 2003...
1995
        return result.success;
2003
        return result.success;
1996
      }
2004
      }
1997
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
2005
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
1998
    }
2006
    }
1999
 
2007
 
-
 
2008
    public double getVatPercentageForItem(long itemId, double price) throws org.apache.thrift.TException
-
 
2009
    {
-
 
2010
      send_getVatPercentageForItem(itemId, price);
-
 
2011
      return recv_getVatPercentageForItem();
-
 
2012
    }
-
 
2013
 
-
 
2014
    public void send_getVatPercentageForItem(long itemId, double price) throws org.apache.thrift.TException
-
 
2015
    {
-
 
2016
      getVatPercentageForItem_args args = new getVatPercentageForItem_args();
-
 
2017
      args.setItemId(itemId);
-
 
2018
      args.setPrice(price);
-
 
2019
      sendBase("getVatPercentageForItem", args);
-
 
2020
    }
-
 
2021
 
-
 
2022
    public double recv_getVatPercentageForItem() throws org.apache.thrift.TException
-
 
2023
    {
-
 
2024
      getVatPercentageForItem_result result = new getVatPercentageForItem_result();
-
 
2025
      receiveBase(result, "getVatPercentageForItem");
-
 
2026
      if (result.isSetSuccess()) {
-
 
2027
        return result.success;
-
 
2028
      }
-
 
2029
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
-
 
2030
    }
-
 
2031
 
-
 
2032
    public double getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException
-
 
2033
    {
-
 
2034
      send_getVatAmountForItem(itemId, price);
-
 
2035
      return recv_getVatAmountForItem();
-
 
2036
    }
-
 
2037
 
-
 
2038
    public void send_getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException
-
 
2039
    {
-
 
2040
      getVatAmountForItem_args args = new getVatAmountForItem_args();
-
 
2041
      args.setItemId(itemId);
-
 
2042
      args.setPrice(price);
-
 
2043
      sendBase("getVatAmountForItem", args);
-
 
2044
    }
-
 
2045
 
-
 
2046
    public double recv_getVatAmountForItem() throws org.apache.thrift.TException
-
 
2047
    {
-
 
2048
      getVatAmountForItem_result result = new getVatAmountForItem_result();
-
 
2049
      receiveBase(result, "getVatAmountForItem");
-
 
2050
      if (result.isSetSuccess()) {
-
 
2051
        return result.success;
-
 
2052
      }
-
 
2053
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
-
 
2054
    }
-
 
2055
 
2000
  }
2056
  }
2001
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2057
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2002
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2058
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2003
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2059
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2004
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2060
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4052... Line 4108...
4052
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4108
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4053
        return (new Client(prot)).recv_isValidCatalogItemId();
4109
        return (new Client(prot)).recv_isValidCatalogItemId();
4054
      }
4110
      }
4055
    }
4111
    }
4056
 
4112
 
-
 
4113
    public void getVatPercentageForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatPercentageForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
4114
      checkReady();
-
 
4115
      getVatPercentageForItem_call method_call = new getVatPercentageForItem_call(itemId, price, resultHandler, this, ___protocolFactory, ___transport);
-
 
4116
      this.___currentMethod = method_call;
-
 
4117
      ___manager.call(method_call);
-
 
4118
    }
-
 
4119
 
-
 
4120
    public static class getVatPercentageForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4121
      private long itemId;
-
 
4122
      private double price;
-
 
4123
      public getVatPercentageForItem_call(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatPercentageForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4124
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4125
        this.itemId = itemId;
-
 
4126
        this.price = price;
-
 
4127
      }
-
 
4128
 
-
 
4129
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4130
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVatPercentageForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4131
        getVatPercentageForItem_args args = new getVatPercentageForItem_args();
-
 
4132
        args.setItemId(itemId);
-
 
4133
        args.setPrice(price);
-
 
4134
        args.write(prot);
-
 
4135
        prot.writeMessageEnd();
-
 
4136
      }
-
 
4137
 
-
 
4138
      public double getResult() throws org.apache.thrift.TException {
-
 
4139
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4140
          throw new IllegalStateException("Method call not finished!");
-
 
4141
        }
-
 
4142
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4143
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4144
        return (new Client(prot)).recv_getVatPercentageForItem();
-
 
4145
      }
-
 
4146
    }
-
 
4147
 
-
 
4148
    public void getVatAmountForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatAmountForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
4149
      checkReady();
-
 
4150
      getVatAmountForItem_call method_call = new getVatAmountForItem_call(itemId, price, resultHandler, this, ___protocolFactory, ___transport);
-
 
4151
      this.___currentMethod = method_call;
-
 
4152
      ___manager.call(method_call);
-
 
4153
    }
-
 
4154
 
-
 
4155
    public static class getVatAmountForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4156
      private long itemId;
-
 
4157
      private double price;
-
 
4158
      public getVatAmountForItem_call(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatAmountForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
4159
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4160
        this.itemId = itemId;
-
 
4161
        this.price = price;
-
 
4162
      }
-
 
4163
 
-
 
4164
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4165
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVatAmountForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4166
        getVatAmountForItem_args args = new getVatAmountForItem_args();
-
 
4167
        args.setItemId(itemId);
-
 
4168
        args.setPrice(price);
-
 
4169
        args.write(prot);
-
 
4170
        prot.writeMessageEnd();
-
 
4171
      }
-
 
4172
 
-
 
4173
      public double getResult() throws org.apache.thrift.TException {
-
 
4174
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4175
          throw new IllegalStateException("Method call not finished!");
-
 
4176
        }
-
 
4177
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4178
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4179
        return (new Client(prot)).recv_getVatAmountForItem();
-
 
4180
      }
-
 
4181
    }
-
 
4182
 
4057
  }
4183
  }
4058
 
4184
 
4059
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4185
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4060
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4186
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4061
    public Processor(I iface) {
4187
    public Processor(I iface) {
Line 4126... Line 4252...
4126
      processMap.put("addupdateVoucherForItem", new addupdateVoucherForItem());
4252
      processMap.put("addupdateVoucherForItem", new addupdateVoucherForItem());
4127
      processMap.put("deleteVoucherForItem", new deleteVoucherForItem());
4253
      processMap.put("deleteVoucherForItem", new deleteVoucherForItem());
4128
      processMap.put("getVoucherAmount", new getVoucherAmount());
4254
      processMap.put("getVoucherAmount", new getVoucherAmount());
4129
      processMap.put("getAllItemVouchers", new getAllItemVouchers());
4255
      processMap.put("getAllItemVouchers", new getAllItemVouchers());
4130
      processMap.put("isValidCatalogItemId", new isValidCatalogItemId());
4256
      processMap.put("isValidCatalogItemId", new isValidCatalogItemId());
-
 
4257
      processMap.put("getVatPercentageForItem", new getVatPercentageForItem());
-
 
4258
      processMap.put("getVatAmountForItem", new getVatAmountForItem());
4131
      return processMap;
4259
      return processMap;
4132
    }
4260
    }
4133
 
4261
 
4134
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
4262
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
4135
      public addItem() {
4263
      public addItem() {
Line 5273... Line 5401...
5273
        result.setSuccessIsSet(true);
5401
        result.setSuccessIsSet(true);
5274
        return result;
5402
        return result;
5275
      }
5403
      }
5276
    }
5404
    }
5277
 
5405
 
-
 
5406
    private static class getVatPercentageForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVatPercentageForItem_args> {
-
 
5407
      public getVatPercentageForItem() {
-
 
5408
        super("getVatPercentageForItem");
-
 
5409
      }
-
 
5410
 
-
 
5411
      protected getVatPercentageForItem_args getEmptyArgsInstance() {
-
 
5412
        return new getVatPercentageForItem_args();
-
 
5413
      }
-
 
5414
 
-
 
5415
      protected getVatPercentageForItem_result getResult(I iface, getVatPercentageForItem_args args) throws org.apache.thrift.TException {
-
 
5416
        getVatPercentageForItem_result result = new getVatPercentageForItem_result();
-
 
5417
        result.success = iface.getVatPercentageForItem(args.itemId, args.price);
-
 
5418
        result.setSuccessIsSet(true);
-
 
5419
        return result;
-
 
5420
      }
-
 
5421
    }
-
 
5422
 
-
 
5423
    private static class getVatAmountForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVatAmountForItem_args> {
-
 
5424
      public getVatAmountForItem() {
-
 
5425
        super("getVatAmountForItem");
-
 
5426
      }
-
 
5427
 
-
 
5428
      protected getVatAmountForItem_args getEmptyArgsInstance() {
-
 
5429
        return new getVatAmountForItem_args();
-
 
5430
      }
-
 
5431
 
-
 
5432
      protected getVatAmountForItem_result getResult(I iface, getVatAmountForItem_args args) throws org.apache.thrift.TException {
-
 
5433
        getVatAmountForItem_result result = new getVatAmountForItem_result();
-
 
5434
        result.success = iface.getVatAmountForItem(args.itemId, args.price);
-
 
5435
        result.setSuccessIsSet(true);
-
 
5436
        return result;
-
 
5437
      }
-
 
5438
    }
-
 
5439
 
5278
  }
5440
  }
5279
 
5441
 
5280
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
5442
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
5281
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
5443
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
5282
 
5444
 
Line 47318... Line 47480...
47318
      boolean first = true;
47480
      boolean first = true;
47319
 
47481
 
47320
      sb.append("success:");
47482
      sb.append("success:");
47321
      sb.append(this.success);
47483
      sb.append(this.success);
47322
      first = false;
47484
      first = false;
-
 
47485
      sb.append(")");
-
 
47486
      return sb.toString();
-
 
47487
    }
-
 
47488
 
-
 
47489
    public void validate() throws org.apache.thrift.TException {
-
 
47490
      // check for required fields
-
 
47491
    }
-
 
47492
 
-
 
47493
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
47494
      try {
-
 
47495
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
47496
      } catch (org.apache.thrift.TException te) {
-
 
47497
        throw new java.io.IOException(te);
-
 
47498
      }
-
 
47499
    }
-
 
47500
 
-
 
47501
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
47502
      try {
-
 
47503
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
47504
      } catch (org.apache.thrift.TException te) {
-
 
47505
        throw new java.io.IOException(te);
-
 
47506
      }
-
 
47507
    }
-
 
47508
 
-
 
47509
  }
-
 
47510
 
-
 
47511
  public static class getVatPercentageForItem_args implements org.apache.thrift.TBase<getVatPercentageForItem_args, getVatPercentageForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
47512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatPercentageForItem_args");
-
 
47513
 
-
 
47514
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
47515
    private static final org.apache.thrift.protocol.TField PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("price", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
-
 
47516
 
-
 
47517
    private long itemId; // required
-
 
47518
    private double price; // required
-
 
47519
 
-
 
47520
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
47521
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
47522
      ITEM_ID((short)1, "itemId"),
-
 
47523
      PRICE((short)2, "price");
-
 
47524
 
-
 
47525
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
47526
 
-
 
47527
      static {
-
 
47528
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
47529
          byName.put(field.getFieldName(), field);
-
 
47530
        }
-
 
47531
      }
-
 
47532
 
-
 
47533
      /**
-
 
47534
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
47535
       */
-
 
47536
      public static _Fields findByThriftId(int fieldId) {
-
 
47537
        switch(fieldId) {
-
 
47538
          case 1: // ITEM_ID
-
 
47539
            return ITEM_ID;
-
 
47540
          case 2: // PRICE
-
 
47541
            return PRICE;
-
 
47542
          default:
-
 
47543
            return null;
-
 
47544
        }
-
 
47545
      }
-
 
47546
 
-
 
47547
      /**
-
 
47548
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
47549
       * if it is not found.
-
 
47550
       */
-
 
47551
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
47552
        _Fields fields = findByThriftId(fieldId);
-
 
47553
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
47554
        return fields;
-
 
47555
      }
-
 
47556
 
-
 
47557
      /**
-
 
47558
       * Find the _Fields constant that matches name, or null if its not found.
-
 
47559
       */
-
 
47560
      public static _Fields findByName(String name) {
-
 
47561
        return byName.get(name);
-
 
47562
      }
-
 
47563
 
-
 
47564
      private final short _thriftId;
-
 
47565
      private final String _fieldName;
-
 
47566
 
-
 
47567
      _Fields(short thriftId, String fieldName) {
-
 
47568
        _thriftId = thriftId;
-
 
47569
        _fieldName = fieldName;
-
 
47570
      }
-
 
47571
 
-
 
47572
      public short getThriftFieldId() {
-
 
47573
        return _thriftId;
-
 
47574
      }
-
 
47575
 
-
 
47576
      public String getFieldName() {
-
 
47577
        return _fieldName;
-
 
47578
      }
-
 
47579
    }
-
 
47580
 
-
 
47581
    // isset id assignments
-
 
47582
    private static final int __ITEMID_ISSET_ID = 0;
-
 
47583
    private static final int __PRICE_ISSET_ID = 1;
-
 
47584
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
47585
 
-
 
47586
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
47587
    static {
-
 
47588
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
47589
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
47590
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
47591
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
47592
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
47593
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
47594
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatPercentageForItem_args.class, metaDataMap);
-
 
47595
    }
-
 
47596
 
-
 
47597
    public getVatPercentageForItem_args() {
-
 
47598
    }
-
 
47599
 
-
 
47600
    public getVatPercentageForItem_args(
-
 
47601
      long itemId,
-
 
47602
      double price)
-
 
47603
    {
-
 
47604
      this();
-
 
47605
      this.itemId = itemId;
-
 
47606
      setItemIdIsSet(true);
-
 
47607
      this.price = price;
-
 
47608
      setPriceIsSet(true);
-
 
47609
    }
-
 
47610
 
-
 
47611
    /**
-
 
47612
     * Performs a deep copy on <i>other</i>.
-
 
47613
     */
-
 
47614
    public getVatPercentageForItem_args(getVatPercentageForItem_args other) {
-
 
47615
      __isset_bit_vector.clear();
-
 
47616
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
47617
      this.itemId = other.itemId;
-
 
47618
      this.price = other.price;
-
 
47619
    }
-
 
47620
 
-
 
47621
    public getVatPercentageForItem_args deepCopy() {
-
 
47622
      return new getVatPercentageForItem_args(this);
-
 
47623
    }
-
 
47624
 
-
 
47625
    @Override
-
 
47626
    public void clear() {
-
 
47627
      setItemIdIsSet(false);
-
 
47628
      this.itemId = 0;
-
 
47629
      setPriceIsSet(false);
-
 
47630
      this.price = 0.0;
-
 
47631
    }
-
 
47632
 
-
 
47633
    public long getItemId() {
-
 
47634
      return this.itemId;
-
 
47635
    }
-
 
47636
 
-
 
47637
    public void setItemId(long itemId) {
-
 
47638
      this.itemId = itemId;
-
 
47639
      setItemIdIsSet(true);
-
 
47640
    }
-
 
47641
 
-
 
47642
    public void unsetItemId() {
-
 
47643
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
47644
    }
-
 
47645
 
-
 
47646
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
47647
    public boolean isSetItemId() {
-
 
47648
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
47649
    }
-
 
47650
 
-
 
47651
    public void setItemIdIsSet(boolean value) {
-
 
47652
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
47653
    }
-
 
47654
 
-
 
47655
    public double getPrice() {
-
 
47656
      return this.price;
-
 
47657
    }
-
 
47658
 
-
 
47659
    public void setPrice(double price) {
-
 
47660
      this.price = price;
-
 
47661
      setPriceIsSet(true);
-
 
47662
    }
-
 
47663
 
-
 
47664
    public void unsetPrice() {
-
 
47665
      __isset_bit_vector.clear(__PRICE_ISSET_ID);
-
 
47666
    }
-
 
47667
 
-
 
47668
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
-
 
47669
    public boolean isSetPrice() {
-
 
47670
      return __isset_bit_vector.get(__PRICE_ISSET_ID);
-
 
47671
    }
-
 
47672
 
-
 
47673
    public void setPriceIsSet(boolean value) {
-
 
47674
      __isset_bit_vector.set(__PRICE_ISSET_ID, value);
-
 
47675
    }
-
 
47676
 
-
 
47677
    public void setFieldValue(_Fields field, Object value) {
-
 
47678
      switch (field) {
-
 
47679
      case ITEM_ID:
-
 
47680
        if (value == null) {
-
 
47681
          unsetItemId();
-
 
47682
        } else {
-
 
47683
          setItemId((Long)value);
-
 
47684
        }
-
 
47685
        break;
-
 
47686
 
-
 
47687
      case PRICE:
-
 
47688
        if (value == null) {
-
 
47689
          unsetPrice();
-
 
47690
        } else {
-
 
47691
          setPrice((Double)value);
-
 
47692
        }
-
 
47693
        break;
-
 
47694
 
-
 
47695
      }
-
 
47696
    }
-
 
47697
 
-
 
47698
    public Object getFieldValue(_Fields field) {
-
 
47699
      switch (field) {
-
 
47700
      case ITEM_ID:
-
 
47701
        return Long.valueOf(getItemId());
-
 
47702
 
-
 
47703
      case PRICE:
-
 
47704
        return Double.valueOf(getPrice());
-
 
47705
 
-
 
47706
      }
-
 
47707
      throw new IllegalStateException();
-
 
47708
    }
-
 
47709
 
-
 
47710
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
47711
    public boolean isSet(_Fields field) {
-
 
47712
      if (field == null) {
-
 
47713
        throw new IllegalArgumentException();
-
 
47714
      }
-
 
47715
 
-
 
47716
      switch (field) {
-
 
47717
      case ITEM_ID:
-
 
47718
        return isSetItemId();
-
 
47719
      case PRICE:
-
 
47720
        return isSetPrice();
-
 
47721
      }
-
 
47722
      throw new IllegalStateException();
-
 
47723
    }
-
 
47724
 
-
 
47725
    @Override
-
 
47726
    public boolean equals(Object that) {
-
 
47727
      if (that == null)
-
 
47728
        return false;
-
 
47729
      if (that instanceof getVatPercentageForItem_args)
-
 
47730
        return this.equals((getVatPercentageForItem_args)that);
-
 
47731
      return false;
-
 
47732
    }
-
 
47733
 
-
 
47734
    public boolean equals(getVatPercentageForItem_args that) {
-
 
47735
      if (that == null)
-
 
47736
        return false;
-
 
47737
 
-
 
47738
      boolean this_present_itemId = true;
-
 
47739
      boolean that_present_itemId = true;
-
 
47740
      if (this_present_itemId || that_present_itemId) {
-
 
47741
        if (!(this_present_itemId && that_present_itemId))
-
 
47742
          return false;
-
 
47743
        if (this.itemId != that.itemId)
-
 
47744
          return false;
-
 
47745
      }
-
 
47746
 
-
 
47747
      boolean this_present_price = true;
-
 
47748
      boolean that_present_price = true;
-
 
47749
      if (this_present_price || that_present_price) {
-
 
47750
        if (!(this_present_price && that_present_price))
-
 
47751
          return false;
-
 
47752
        if (this.price != that.price)
-
 
47753
          return false;
-
 
47754
      }
-
 
47755
 
-
 
47756
      return true;
-
 
47757
    }
-
 
47758
 
-
 
47759
    @Override
-
 
47760
    public int hashCode() {
-
 
47761
      return 0;
-
 
47762
    }
-
 
47763
 
-
 
47764
    public int compareTo(getVatPercentageForItem_args other) {
-
 
47765
      if (!getClass().equals(other.getClass())) {
-
 
47766
        return getClass().getName().compareTo(other.getClass().getName());
-
 
47767
      }
-
 
47768
 
-
 
47769
      int lastComparison = 0;
-
 
47770
      getVatPercentageForItem_args typedOther = (getVatPercentageForItem_args)other;
-
 
47771
 
-
 
47772
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
47773
      if (lastComparison != 0) {
-
 
47774
        return lastComparison;
-
 
47775
      }
-
 
47776
      if (isSetItemId()) {
-
 
47777
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
47778
        if (lastComparison != 0) {
-
 
47779
          return lastComparison;
-
 
47780
        }
-
 
47781
      }
-
 
47782
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
-
 
47783
      if (lastComparison != 0) {
-
 
47784
        return lastComparison;
-
 
47785
      }
-
 
47786
      if (isSetPrice()) {
-
 
47787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
-
 
47788
        if (lastComparison != 0) {
-
 
47789
          return lastComparison;
-
 
47790
        }
-
 
47791
      }
-
 
47792
      return 0;
-
 
47793
    }
-
 
47794
 
-
 
47795
    public _Fields fieldForId(int fieldId) {
-
 
47796
      return _Fields.findByThriftId(fieldId);
-
 
47797
    }
-
 
47798
 
-
 
47799
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
47800
      org.apache.thrift.protocol.TField field;
-
 
47801
      iprot.readStructBegin();
-
 
47802
      while (true)
-
 
47803
      {
-
 
47804
        field = iprot.readFieldBegin();
-
 
47805
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
47806
          break;
-
 
47807
        }
-
 
47808
        switch (field.id) {
-
 
47809
          case 1: // ITEM_ID
-
 
47810
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
47811
              this.itemId = iprot.readI64();
-
 
47812
              setItemIdIsSet(true);
-
 
47813
            } else { 
-
 
47814
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47815
            }
-
 
47816
            break;
-
 
47817
          case 2: // PRICE
-
 
47818
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
47819
              this.price = iprot.readDouble();
-
 
47820
              setPriceIsSet(true);
-
 
47821
            } else { 
-
 
47822
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47823
            }
-
 
47824
            break;
-
 
47825
          default:
-
 
47826
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
47827
        }
-
 
47828
        iprot.readFieldEnd();
-
 
47829
      }
-
 
47830
      iprot.readStructEnd();
-
 
47831
      validate();
-
 
47832
    }
-
 
47833
 
-
 
47834
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
47835
      validate();
-
 
47836
 
-
 
47837
      oprot.writeStructBegin(STRUCT_DESC);
-
 
47838
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
47839
      oprot.writeI64(this.itemId);
-
 
47840
      oprot.writeFieldEnd();
-
 
47841
      oprot.writeFieldBegin(PRICE_FIELD_DESC);
-
 
47842
      oprot.writeDouble(this.price);
-
 
47843
      oprot.writeFieldEnd();
-
 
47844
      oprot.writeFieldStop();
-
 
47845
      oprot.writeStructEnd();
-
 
47846
    }
-
 
47847
 
-
 
47848
    @Override
-
 
47849
    public String toString() {
-
 
47850
      StringBuilder sb = new StringBuilder("getVatPercentageForItem_args(");
-
 
47851
      boolean first = true;
-
 
47852
 
-
 
47853
      sb.append("itemId:");
-
 
47854
      sb.append(this.itemId);
-
 
47855
      first = false;
-
 
47856
      if (!first) sb.append(", ");
-
 
47857
      sb.append("price:");
-
 
47858
      sb.append(this.price);
-
 
47859
      first = false;
-
 
47860
      sb.append(")");
-
 
47861
      return sb.toString();
-
 
47862
    }
-
 
47863
 
-
 
47864
    public void validate() throws org.apache.thrift.TException {
-
 
47865
      // check for required fields
-
 
47866
    }
-
 
47867
 
-
 
47868
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
47869
      try {
-
 
47870
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
47871
      } catch (org.apache.thrift.TException te) {
-
 
47872
        throw new java.io.IOException(te);
-
 
47873
      }
-
 
47874
    }
-
 
47875
 
-
 
47876
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
47877
      try {
-
 
47878
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
47879
        __isset_bit_vector = new BitSet(1);
-
 
47880
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
47881
      } catch (org.apache.thrift.TException te) {
-
 
47882
        throw new java.io.IOException(te);
-
 
47883
      }
-
 
47884
    }
-
 
47885
 
-
 
47886
  }
-
 
47887
 
-
 
47888
  public static class getVatPercentageForItem_result implements org.apache.thrift.TBase<getVatPercentageForItem_result, getVatPercentageForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
47889
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatPercentageForItem_result");
-
 
47890
 
-
 
47891
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.DOUBLE, (short)0);
-
 
47892
 
-
 
47893
    private double success; // required
-
 
47894
 
-
 
47895
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
47896
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
47897
      SUCCESS((short)0, "success");
-
 
47898
 
-
 
47899
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
47900
 
-
 
47901
      static {
-
 
47902
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
47903
          byName.put(field.getFieldName(), field);
-
 
47904
        }
-
 
47905
      }
-
 
47906
 
-
 
47907
      /**
-
 
47908
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
47909
       */
-
 
47910
      public static _Fields findByThriftId(int fieldId) {
-
 
47911
        switch(fieldId) {
-
 
47912
          case 0: // SUCCESS
-
 
47913
            return SUCCESS;
-
 
47914
          default:
-
 
47915
            return null;
-
 
47916
        }
-
 
47917
      }
-
 
47918
 
-
 
47919
      /**
-
 
47920
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
47921
       * if it is not found.
-
 
47922
       */
-
 
47923
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
47924
        _Fields fields = findByThriftId(fieldId);
-
 
47925
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
47926
        return fields;
-
 
47927
      }
-
 
47928
 
-
 
47929
      /**
-
 
47930
       * Find the _Fields constant that matches name, or null if its not found.
-
 
47931
       */
-
 
47932
      public static _Fields findByName(String name) {
-
 
47933
        return byName.get(name);
-
 
47934
      }
-
 
47935
 
-
 
47936
      private final short _thriftId;
-
 
47937
      private final String _fieldName;
-
 
47938
 
-
 
47939
      _Fields(short thriftId, String fieldName) {
-
 
47940
        _thriftId = thriftId;
-
 
47941
        _fieldName = fieldName;
-
 
47942
      }
-
 
47943
 
-
 
47944
      public short getThriftFieldId() {
-
 
47945
        return _thriftId;
-
 
47946
      }
-
 
47947
 
-
 
47948
      public String getFieldName() {
-
 
47949
        return _fieldName;
-
 
47950
      }
-
 
47951
    }
-
 
47952
 
-
 
47953
    // isset id assignments
-
 
47954
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
47955
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
47956
 
-
 
47957
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
47958
    static {
-
 
47959
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
47960
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
47961
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
47962
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
47963
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatPercentageForItem_result.class, metaDataMap);
-
 
47964
    }
-
 
47965
 
-
 
47966
    public getVatPercentageForItem_result() {
-
 
47967
    }
-
 
47968
 
-
 
47969
    public getVatPercentageForItem_result(
-
 
47970
      double success)
-
 
47971
    {
-
 
47972
      this();
-
 
47973
      this.success = success;
-
 
47974
      setSuccessIsSet(true);
-
 
47975
    }
-
 
47976
 
-
 
47977
    /**
-
 
47978
     * Performs a deep copy on <i>other</i>.
-
 
47979
     */
-
 
47980
    public getVatPercentageForItem_result(getVatPercentageForItem_result other) {
-
 
47981
      __isset_bit_vector.clear();
-
 
47982
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
47983
      this.success = other.success;
-
 
47984
    }
-
 
47985
 
-
 
47986
    public getVatPercentageForItem_result deepCopy() {
-
 
47987
      return new getVatPercentageForItem_result(this);
-
 
47988
    }
-
 
47989
 
-
 
47990
    @Override
-
 
47991
    public void clear() {
-
 
47992
      setSuccessIsSet(false);
-
 
47993
      this.success = 0.0;
-
 
47994
    }
-
 
47995
 
-
 
47996
    public double getSuccess() {
-
 
47997
      return this.success;
-
 
47998
    }
-
 
47999
 
-
 
48000
    public void setSuccess(double success) {
-
 
48001
      this.success = success;
-
 
48002
      setSuccessIsSet(true);
-
 
48003
    }
-
 
48004
 
-
 
48005
    public void unsetSuccess() {
-
 
48006
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
48007
    }
-
 
48008
 
-
 
48009
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
48010
    public boolean isSetSuccess() {
-
 
48011
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
48012
    }
-
 
48013
 
-
 
48014
    public void setSuccessIsSet(boolean value) {
-
 
48015
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
48016
    }
-
 
48017
 
-
 
48018
    public void setFieldValue(_Fields field, Object value) {
-
 
48019
      switch (field) {
-
 
48020
      case SUCCESS:
-
 
48021
        if (value == null) {
-
 
48022
          unsetSuccess();
-
 
48023
        } else {
-
 
48024
          setSuccess((Double)value);
-
 
48025
        }
-
 
48026
        break;
-
 
48027
 
-
 
48028
      }
-
 
48029
    }
-
 
48030
 
-
 
48031
    public Object getFieldValue(_Fields field) {
-
 
48032
      switch (field) {
-
 
48033
      case SUCCESS:
-
 
48034
        return Double.valueOf(getSuccess());
-
 
48035
 
-
 
48036
      }
-
 
48037
      throw new IllegalStateException();
-
 
48038
    }
-
 
48039
 
-
 
48040
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
48041
    public boolean isSet(_Fields field) {
-
 
48042
      if (field == null) {
-
 
48043
        throw new IllegalArgumentException();
-
 
48044
      }
-
 
48045
 
-
 
48046
      switch (field) {
-
 
48047
      case SUCCESS:
-
 
48048
        return isSetSuccess();
-
 
48049
      }
-
 
48050
      throw new IllegalStateException();
-
 
48051
    }
-
 
48052
 
-
 
48053
    @Override
-
 
48054
    public boolean equals(Object that) {
-
 
48055
      if (that == null)
-
 
48056
        return false;
-
 
48057
      if (that instanceof getVatPercentageForItem_result)
-
 
48058
        return this.equals((getVatPercentageForItem_result)that);
-
 
48059
      return false;
-
 
48060
    }
-
 
48061
 
-
 
48062
    public boolean equals(getVatPercentageForItem_result that) {
-
 
48063
      if (that == null)
-
 
48064
        return false;
-
 
48065
 
-
 
48066
      boolean this_present_success = true;
-
 
48067
      boolean that_present_success = true;
-
 
48068
      if (this_present_success || that_present_success) {
-
 
48069
        if (!(this_present_success && that_present_success))
-
 
48070
          return false;
-
 
48071
        if (this.success != that.success)
-
 
48072
          return false;
-
 
48073
      }
-
 
48074
 
-
 
48075
      return true;
-
 
48076
    }
-
 
48077
 
-
 
48078
    @Override
-
 
48079
    public int hashCode() {
-
 
48080
      return 0;
-
 
48081
    }
-
 
48082
 
-
 
48083
    public int compareTo(getVatPercentageForItem_result other) {
-
 
48084
      if (!getClass().equals(other.getClass())) {
-
 
48085
        return getClass().getName().compareTo(other.getClass().getName());
-
 
48086
      }
-
 
48087
 
-
 
48088
      int lastComparison = 0;
-
 
48089
      getVatPercentageForItem_result typedOther = (getVatPercentageForItem_result)other;
-
 
48090
 
-
 
48091
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
48092
      if (lastComparison != 0) {
-
 
48093
        return lastComparison;
-
 
48094
      }
-
 
48095
      if (isSetSuccess()) {
-
 
48096
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
48097
        if (lastComparison != 0) {
-
 
48098
          return lastComparison;
-
 
48099
        }
-
 
48100
      }
-
 
48101
      return 0;
-
 
48102
    }
-
 
48103
 
-
 
48104
    public _Fields fieldForId(int fieldId) {
-
 
48105
      return _Fields.findByThriftId(fieldId);
-
 
48106
    }
-
 
48107
 
-
 
48108
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
48109
      org.apache.thrift.protocol.TField field;
-
 
48110
      iprot.readStructBegin();
-
 
48111
      while (true)
-
 
48112
      {
-
 
48113
        field = iprot.readFieldBegin();
-
 
48114
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
48115
          break;
-
 
48116
        }
-
 
48117
        switch (field.id) {
-
 
48118
          case 0: // SUCCESS
-
 
48119
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
48120
              this.success = iprot.readDouble();
-
 
48121
              setSuccessIsSet(true);
-
 
48122
            } else { 
-
 
48123
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48124
            }
-
 
48125
            break;
-
 
48126
          default:
-
 
48127
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48128
        }
-
 
48129
        iprot.readFieldEnd();
-
 
48130
      }
-
 
48131
      iprot.readStructEnd();
-
 
48132
      validate();
-
 
48133
    }
-
 
48134
 
-
 
48135
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
48136
      oprot.writeStructBegin(STRUCT_DESC);
-
 
48137
 
-
 
48138
      if (this.isSetSuccess()) {
-
 
48139
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
48140
        oprot.writeDouble(this.success);
-
 
48141
        oprot.writeFieldEnd();
-
 
48142
      }
-
 
48143
      oprot.writeFieldStop();
-
 
48144
      oprot.writeStructEnd();
-
 
48145
    }
-
 
48146
 
-
 
48147
    @Override
-
 
48148
    public String toString() {
-
 
48149
      StringBuilder sb = new StringBuilder("getVatPercentageForItem_result(");
-
 
48150
      boolean first = true;
-
 
48151
 
-
 
48152
      sb.append("success:");
-
 
48153
      sb.append(this.success);
-
 
48154
      first = false;
-
 
48155
      sb.append(")");
-
 
48156
      return sb.toString();
-
 
48157
    }
-
 
48158
 
-
 
48159
    public void validate() throws org.apache.thrift.TException {
-
 
48160
      // check for required fields
-
 
48161
    }
-
 
48162
 
-
 
48163
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
48164
      try {
-
 
48165
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
48166
      } catch (org.apache.thrift.TException te) {
-
 
48167
        throw new java.io.IOException(te);
-
 
48168
      }
-
 
48169
    }
-
 
48170
 
-
 
48171
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
48172
      try {
-
 
48173
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
48174
      } catch (org.apache.thrift.TException te) {
-
 
48175
        throw new java.io.IOException(te);
-
 
48176
      }
-
 
48177
    }
-
 
48178
 
-
 
48179
  }
-
 
48180
 
-
 
48181
  public static class getVatAmountForItem_args implements org.apache.thrift.TBase<getVatAmountForItem_args, getVatAmountForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
48182
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatAmountForItem_args");
-
 
48183
 
-
 
48184
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
48185
    private static final org.apache.thrift.protocol.TField PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("price", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
-
 
48186
 
-
 
48187
    private long itemId; // required
-
 
48188
    private double price; // required
-
 
48189
 
-
 
48190
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
48191
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
48192
      ITEM_ID((short)1, "itemId"),
-
 
48193
      PRICE((short)2, "price");
-
 
48194
 
-
 
48195
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
48196
 
-
 
48197
      static {
-
 
48198
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
48199
          byName.put(field.getFieldName(), field);
-
 
48200
        }
-
 
48201
      }
-
 
48202
 
-
 
48203
      /**
-
 
48204
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
48205
       */
-
 
48206
      public static _Fields findByThriftId(int fieldId) {
-
 
48207
        switch(fieldId) {
-
 
48208
          case 1: // ITEM_ID
-
 
48209
            return ITEM_ID;
-
 
48210
          case 2: // PRICE
-
 
48211
            return PRICE;
-
 
48212
          default:
-
 
48213
            return null;
-
 
48214
        }
-
 
48215
      }
-
 
48216
 
-
 
48217
      /**
-
 
48218
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
48219
       * if it is not found.
-
 
48220
       */
-
 
48221
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
48222
        _Fields fields = findByThriftId(fieldId);
-
 
48223
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
48224
        return fields;
-
 
48225
      }
-
 
48226
 
-
 
48227
      /**
-
 
48228
       * Find the _Fields constant that matches name, or null if its not found.
-
 
48229
       */
-
 
48230
      public static _Fields findByName(String name) {
-
 
48231
        return byName.get(name);
-
 
48232
      }
-
 
48233
 
-
 
48234
      private final short _thriftId;
-
 
48235
      private final String _fieldName;
-
 
48236
 
-
 
48237
      _Fields(short thriftId, String fieldName) {
-
 
48238
        _thriftId = thriftId;
-
 
48239
        _fieldName = fieldName;
-
 
48240
      }
-
 
48241
 
-
 
48242
      public short getThriftFieldId() {
-
 
48243
        return _thriftId;
-
 
48244
      }
-
 
48245
 
-
 
48246
      public String getFieldName() {
-
 
48247
        return _fieldName;
-
 
48248
      }
-
 
48249
    }
-
 
48250
 
-
 
48251
    // isset id assignments
-
 
48252
    private static final int __ITEMID_ISSET_ID = 0;
-
 
48253
    private static final int __PRICE_ISSET_ID = 1;
-
 
48254
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
48255
 
-
 
48256
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
48257
    static {
-
 
48258
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
48259
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
48260
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
48261
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
48262
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
48263
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
48264
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatAmountForItem_args.class, metaDataMap);
-
 
48265
    }
-
 
48266
 
-
 
48267
    public getVatAmountForItem_args() {
-
 
48268
    }
-
 
48269
 
-
 
48270
    public getVatAmountForItem_args(
-
 
48271
      long itemId,
-
 
48272
      double price)
-
 
48273
    {
-
 
48274
      this();
-
 
48275
      this.itemId = itemId;
-
 
48276
      setItemIdIsSet(true);
-
 
48277
      this.price = price;
-
 
48278
      setPriceIsSet(true);
-
 
48279
    }
-
 
48280
 
-
 
48281
    /**
-
 
48282
     * Performs a deep copy on <i>other</i>.
-
 
48283
     */
-
 
48284
    public getVatAmountForItem_args(getVatAmountForItem_args other) {
-
 
48285
      __isset_bit_vector.clear();
-
 
48286
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
48287
      this.itemId = other.itemId;
-
 
48288
      this.price = other.price;
-
 
48289
    }
-
 
48290
 
-
 
48291
    public getVatAmountForItem_args deepCopy() {
-
 
48292
      return new getVatAmountForItem_args(this);
-
 
48293
    }
-
 
48294
 
-
 
48295
    @Override
-
 
48296
    public void clear() {
-
 
48297
      setItemIdIsSet(false);
-
 
48298
      this.itemId = 0;
-
 
48299
      setPriceIsSet(false);
-
 
48300
      this.price = 0.0;
-
 
48301
    }
-
 
48302
 
-
 
48303
    public long getItemId() {
-
 
48304
      return this.itemId;
-
 
48305
    }
-
 
48306
 
-
 
48307
    public void setItemId(long itemId) {
-
 
48308
      this.itemId = itemId;
-
 
48309
      setItemIdIsSet(true);
-
 
48310
    }
-
 
48311
 
-
 
48312
    public void unsetItemId() {
-
 
48313
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
48314
    }
-
 
48315
 
-
 
48316
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
48317
    public boolean isSetItemId() {
-
 
48318
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
48319
    }
-
 
48320
 
-
 
48321
    public void setItemIdIsSet(boolean value) {
-
 
48322
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
48323
    }
-
 
48324
 
-
 
48325
    public double getPrice() {
-
 
48326
      return this.price;
-
 
48327
    }
-
 
48328
 
-
 
48329
    public void setPrice(double price) {
-
 
48330
      this.price = price;
-
 
48331
      setPriceIsSet(true);
-
 
48332
    }
-
 
48333
 
-
 
48334
    public void unsetPrice() {
-
 
48335
      __isset_bit_vector.clear(__PRICE_ISSET_ID);
-
 
48336
    }
-
 
48337
 
-
 
48338
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
-
 
48339
    public boolean isSetPrice() {
-
 
48340
      return __isset_bit_vector.get(__PRICE_ISSET_ID);
-
 
48341
    }
-
 
48342
 
-
 
48343
    public void setPriceIsSet(boolean value) {
-
 
48344
      __isset_bit_vector.set(__PRICE_ISSET_ID, value);
-
 
48345
    }
-
 
48346
 
-
 
48347
    public void setFieldValue(_Fields field, Object value) {
-
 
48348
      switch (field) {
-
 
48349
      case ITEM_ID:
-
 
48350
        if (value == null) {
-
 
48351
          unsetItemId();
-
 
48352
        } else {
-
 
48353
          setItemId((Long)value);
-
 
48354
        }
-
 
48355
        break;
-
 
48356
 
-
 
48357
      case PRICE:
-
 
48358
        if (value == null) {
-
 
48359
          unsetPrice();
-
 
48360
        } else {
-
 
48361
          setPrice((Double)value);
-
 
48362
        }
-
 
48363
        break;
-
 
48364
 
-
 
48365
      }
-
 
48366
    }
-
 
48367
 
-
 
48368
    public Object getFieldValue(_Fields field) {
-
 
48369
      switch (field) {
-
 
48370
      case ITEM_ID:
-
 
48371
        return Long.valueOf(getItemId());
-
 
48372
 
-
 
48373
      case PRICE:
-
 
48374
        return Double.valueOf(getPrice());
-
 
48375
 
-
 
48376
      }
-
 
48377
      throw new IllegalStateException();
-
 
48378
    }
-
 
48379
 
-
 
48380
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
48381
    public boolean isSet(_Fields field) {
-
 
48382
      if (field == null) {
-
 
48383
        throw new IllegalArgumentException();
-
 
48384
      }
-
 
48385
 
-
 
48386
      switch (field) {
-
 
48387
      case ITEM_ID:
-
 
48388
        return isSetItemId();
-
 
48389
      case PRICE:
-
 
48390
        return isSetPrice();
-
 
48391
      }
-
 
48392
      throw new IllegalStateException();
-
 
48393
    }
-
 
48394
 
-
 
48395
    @Override
-
 
48396
    public boolean equals(Object that) {
-
 
48397
      if (that == null)
-
 
48398
        return false;
-
 
48399
      if (that instanceof getVatAmountForItem_args)
-
 
48400
        return this.equals((getVatAmountForItem_args)that);
-
 
48401
      return false;
-
 
48402
    }
-
 
48403
 
-
 
48404
    public boolean equals(getVatAmountForItem_args that) {
-
 
48405
      if (that == null)
-
 
48406
        return false;
-
 
48407
 
-
 
48408
      boolean this_present_itemId = true;
-
 
48409
      boolean that_present_itemId = true;
-
 
48410
      if (this_present_itemId || that_present_itemId) {
-
 
48411
        if (!(this_present_itemId && that_present_itemId))
-
 
48412
          return false;
-
 
48413
        if (this.itemId != that.itemId)
-
 
48414
          return false;
-
 
48415
      }
-
 
48416
 
-
 
48417
      boolean this_present_price = true;
-
 
48418
      boolean that_present_price = true;
-
 
48419
      if (this_present_price || that_present_price) {
-
 
48420
        if (!(this_present_price && that_present_price))
-
 
48421
          return false;
-
 
48422
        if (this.price != that.price)
-
 
48423
          return false;
-
 
48424
      }
-
 
48425
 
-
 
48426
      return true;
-
 
48427
    }
-
 
48428
 
-
 
48429
    @Override
-
 
48430
    public int hashCode() {
-
 
48431
      return 0;
-
 
48432
    }
-
 
48433
 
-
 
48434
    public int compareTo(getVatAmountForItem_args other) {
-
 
48435
      if (!getClass().equals(other.getClass())) {
-
 
48436
        return getClass().getName().compareTo(other.getClass().getName());
-
 
48437
      }
-
 
48438
 
-
 
48439
      int lastComparison = 0;
-
 
48440
      getVatAmountForItem_args typedOther = (getVatAmountForItem_args)other;
-
 
48441
 
-
 
48442
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
48443
      if (lastComparison != 0) {
-
 
48444
        return lastComparison;
-
 
48445
      }
-
 
48446
      if (isSetItemId()) {
-
 
48447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
48448
        if (lastComparison != 0) {
-
 
48449
          return lastComparison;
-
 
48450
        }
-
 
48451
      }
-
 
48452
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
-
 
48453
      if (lastComparison != 0) {
-
 
48454
        return lastComparison;
-
 
48455
      }
-
 
48456
      if (isSetPrice()) {
-
 
48457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
-
 
48458
        if (lastComparison != 0) {
-
 
48459
          return lastComparison;
-
 
48460
        }
-
 
48461
      }
-
 
48462
      return 0;
-
 
48463
    }
-
 
48464
 
-
 
48465
    public _Fields fieldForId(int fieldId) {
-
 
48466
      return _Fields.findByThriftId(fieldId);
-
 
48467
    }
-
 
48468
 
-
 
48469
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
48470
      org.apache.thrift.protocol.TField field;
-
 
48471
      iprot.readStructBegin();
-
 
48472
      while (true)
-
 
48473
      {
-
 
48474
        field = iprot.readFieldBegin();
-
 
48475
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
48476
          break;
-
 
48477
        }
-
 
48478
        switch (field.id) {
-
 
48479
          case 1: // ITEM_ID
-
 
48480
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
48481
              this.itemId = iprot.readI64();
-
 
48482
              setItemIdIsSet(true);
-
 
48483
            } else { 
-
 
48484
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48485
            }
-
 
48486
            break;
-
 
48487
          case 2: // PRICE
-
 
48488
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
48489
              this.price = iprot.readDouble();
-
 
48490
              setPriceIsSet(true);
-
 
48491
            } else { 
-
 
48492
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48493
            }
-
 
48494
            break;
-
 
48495
          default:
-
 
48496
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48497
        }
-
 
48498
        iprot.readFieldEnd();
-
 
48499
      }
-
 
48500
      iprot.readStructEnd();
-
 
48501
      validate();
-
 
48502
    }
-
 
48503
 
-
 
48504
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
48505
      validate();
-
 
48506
 
-
 
48507
      oprot.writeStructBegin(STRUCT_DESC);
-
 
48508
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
48509
      oprot.writeI64(this.itemId);
-
 
48510
      oprot.writeFieldEnd();
-
 
48511
      oprot.writeFieldBegin(PRICE_FIELD_DESC);
-
 
48512
      oprot.writeDouble(this.price);
-
 
48513
      oprot.writeFieldEnd();
-
 
48514
      oprot.writeFieldStop();
-
 
48515
      oprot.writeStructEnd();
-
 
48516
    }
-
 
48517
 
-
 
48518
    @Override
-
 
48519
    public String toString() {
-
 
48520
      StringBuilder sb = new StringBuilder("getVatAmountForItem_args(");
-
 
48521
      boolean first = true;
-
 
48522
 
-
 
48523
      sb.append("itemId:");
-
 
48524
      sb.append(this.itemId);
-
 
48525
      first = false;
-
 
48526
      if (!first) sb.append(", ");
-
 
48527
      sb.append("price:");
-
 
48528
      sb.append(this.price);
-
 
48529
      first = false;
-
 
48530
      sb.append(")");
-
 
48531
      return sb.toString();
-
 
48532
    }
-
 
48533
 
-
 
48534
    public void validate() throws org.apache.thrift.TException {
-
 
48535
      // check for required fields
-
 
48536
    }
-
 
48537
 
-
 
48538
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
48539
      try {
-
 
48540
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
48541
      } catch (org.apache.thrift.TException te) {
-
 
48542
        throw new java.io.IOException(te);
-
 
48543
      }
-
 
48544
    }
-
 
48545
 
-
 
48546
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
48547
      try {
-
 
48548
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
48549
        __isset_bit_vector = new BitSet(1);
-
 
48550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
48551
      } catch (org.apache.thrift.TException te) {
-
 
48552
        throw new java.io.IOException(te);
-
 
48553
      }
-
 
48554
    }
-
 
48555
 
-
 
48556
  }
-
 
48557
 
-
 
48558
  public static class getVatAmountForItem_result implements org.apache.thrift.TBase<getVatAmountForItem_result, getVatAmountForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
48559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatAmountForItem_result");
-
 
48560
 
-
 
48561
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.DOUBLE, (short)0);
-
 
48562
 
-
 
48563
    private double success; // required
-
 
48564
 
-
 
48565
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
48566
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
48567
      SUCCESS((short)0, "success");
-
 
48568
 
-
 
48569
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
48570
 
-
 
48571
      static {
-
 
48572
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
48573
          byName.put(field.getFieldName(), field);
-
 
48574
        }
-
 
48575
      }
-
 
48576
 
-
 
48577
      /**
-
 
48578
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
48579
       */
-
 
48580
      public static _Fields findByThriftId(int fieldId) {
-
 
48581
        switch(fieldId) {
-
 
48582
          case 0: // SUCCESS
-
 
48583
            return SUCCESS;
-
 
48584
          default:
-
 
48585
            return null;
-
 
48586
        }
-
 
48587
      }
-
 
48588
 
-
 
48589
      /**
-
 
48590
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
48591
       * if it is not found.
-
 
48592
       */
-
 
48593
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
48594
        _Fields fields = findByThriftId(fieldId);
-
 
48595
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
48596
        return fields;
-
 
48597
      }
-
 
48598
 
-
 
48599
      /**
-
 
48600
       * Find the _Fields constant that matches name, or null if its not found.
-
 
48601
       */
-
 
48602
      public static _Fields findByName(String name) {
-
 
48603
        return byName.get(name);
-
 
48604
      }
-
 
48605
 
-
 
48606
      private final short _thriftId;
-
 
48607
      private final String _fieldName;
-
 
48608
 
-
 
48609
      _Fields(short thriftId, String fieldName) {
-
 
48610
        _thriftId = thriftId;
-
 
48611
        _fieldName = fieldName;
-
 
48612
      }
-
 
48613
 
-
 
48614
      public short getThriftFieldId() {
-
 
48615
        return _thriftId;
-
 
48616
      }
-
 
48617
 
-
 
48618
      public String getFieldName() {
-
 
48619
        return _fieldName;
-
 
48620
      }
-
 
48621
    }
-
 
48622
 
-
 
48623
    // isset id assignments
-
 
48624
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
48625
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
48626
 
-
 
48627
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
48628
    static {
-
 
48629
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
48630
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
48631
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
48632
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
48633
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatAmountForItem_result.class, metaDataMap);
-
 
48634
    }
-
 
48635
 
-
 
48636
    public getVatAmountForItem_result() {
-
 
48637
    }
-
 
48638
 
-
 
48639
    public getVatAmountForItem_result(
-
 
48640
      double success)
-
 
48641
    {
-
 
48642
      this();
-
 
48643
      this.success = success;
-
 
48644
      setSuccessIsSet(true);
-
 
48645
    }
-
 
48646
 
-
 
48647
    /**
-
 
48648
     * Performs a deep copy on <i>other</i>.
-
 
48649
     */
-
 
48650
    public getVatAmountForItem_result(getVatAmountForItem_result other) {
-
 
48651
      __isset_bit_vector.clear();
-
 
48652
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
48653
      this.success = other.success;
-
 
48654
    }
-
 
48655
 
-
 
48656
    public getVatAmountForItem_result deepCopy() {
-
 
48657
      return new getVatAmountForItem_result(this);
-
 
48658
    }
-
 
48659
 
-
 
48660
    @Override
-
 
48661
    public void clear() {
-
 
48662
      setSuccessIsSet(false);
-
 
48663
      this.success = 0.0;
-
 
48664
    }
-
 
48665
 
-
 
48666
    public double getSuccess() {
-
 
48667
      return this.success;
-
 
48668
    }
-
 
48669
 
-
 
48670
    public void setSuccess(double success) {
-
 
48671
      this.success = success;
-
 
48672
      setSuccessIsSet(true);
-
 
48673
    }
-
 
48674
 
-
 
48675
    public void unsetSuccess() {
-
 
48676
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
48677
    }
-
 
48678
 
-
 
48679
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
48680
    public boolean isSetSuccess() {
-
 
48681
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
48682
    }
-
 
48683
 
-
 
48684
    public void setSuccessIsSet(boolean value) {
-
 
48685
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
48686
    }
-
 
48687
 
-
 
48688
    public void setFieldValue(_Fields field, Object value) {
-
 
48689
      switch (field) {
-
 
48690
      case SUCCESS:
-
 
48691
        if (value == null) {
-
 
48692
          unsetSuccess();
-
 
48693
        } else {
-
 
48694
          setSuccess((Double)value);
-
 
48695
        }
-
 
48696
        break;
-
 
48697
 
-
 
48698
      }
-
 
48699
    }
-
 
48700
 
-
 
48701
    public Object getFieldValue(_Fields field) {
-
 
48702
      switch (field) {
-
 
48703
      case SUCCESS:
-
 
48704
        return Double.valueOf(getSuccess());
-
 
48705
 
-
 
48706
      }
-
 
48707
      throw new IllegalStateException();
-
 
48708
    }
-
 
48709
 
-
 
48710
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
48711
    public boolean isSet(_Fields field) {
-
 
48712
      if (field == null) {
-
 
48713
        throw new IllegalArgumentException();
-
 
48714
      }
-
 
48715
 
-
 
48716
      switch (field) {
-
 
48717
      case SUCCESS:
-
 
48718
        return isSetSuccess();
-
 
48719
      }
-
 
48720
      throw new IllegalStateException();
-
 
48721
    }
-
 
48722
 
-
 
48723
    @Override
-
 
48724
    public boolean equals(Object that) {
-
 
48725
      if (that == null)
-
 
48726
        return false;
-
 
48727
      if (that instanceof getVatAmountForItem_result)
-
 
48728
        return this.equals((getVatAmountForItem_result)that);
-
 
48729
      return false;
-
 
48730
    }
-
 
48731
 
-
 
48732
    public boolean equals(getVatAmountForItem_result that) {
-
 
48733
      if (that == null)
-
 
48734
        return false;
-
 
48735
 
-
 
48736
      boolean this_present_success = true;
-
 
48737
      boolean that_present_success = true;
-
 
48738
      if (this_present_success || that_present_success) {
-
 
48739
        if (!(this_present_success && that_present_success))
-
 
48740
          return false;
-
 
48741
        if (this.success != that.success)
-
 
48742
          return false;
-
 
48743
      }
-
 
48744
 
-
 
48745
      return true;
-
 
48746
    }
-
 
48747
 
-
 
48748
    @Override
-
 
48749
    public int hashCode() {
-
 
48750
      return 0;
-
 
48751
    }
-
 
48752
 
-
 
48753
    public int compareTo(getVatAmountForItem_result other) {
-
 
48754
      if (!getClass().equals(other.getClass())) {
-
 
48755
        return getClass().getName().compareTo(other.getClass().getName());
-
 
48756
      }
-
 
48757
 
-
 
48758
      int lastComparison = 0;
-
 
48759
      getVatAmountForItem_result typedOther = (getVatAmountForItem_result)other;
-
 
48760
 
-
 
48761
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
48762
      if (lastComparison != 0) {
-
 
48763
        return lastComparison;
-
 
48764
      }
-
 
48765
      if (isSetSuccess()) {
-
 
48766
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
48767
        if (lastComparison != 0) {
-
 
48768
          return lastComparison;
-
 
48769
        }
-
 
48770
      }
-
 
48771
      return 0;
-
 
48772
    }
-
 
48773
 
-
 
48774
    public _Fields fieldForId(int fieldId) {
-
 
48775
      return _Fields.findByThriftId(fieldId);
-
 
48776
    }
-
 
48777
 
-
 
48778
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
48779
      org.apache.thrift.protocol.TField field;
-
 
48780
      iprot.readStructBegin();
-
 
48781
      while (true)
-
 
48782
      {
-
 
48783
        field = iprot.readFieldBegin();
-
 
48784
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
48785
          break;
-
 
48786
        }
-
 
48787
        switch (field.id) {
-
 
48788
          case 0: // SUCCESS
-
 
48789
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
48790
              this.success = iprot.readDouble();
-
 
48791
              setSuccessIsSet(true);
-
 
48792
            } else { 
-
 
48793
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48794
            }
-
 
48795
            break;
-
 
48796
          default:
-
 
48797
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
48798
        }
-
 
48799
        iprot.readFieldEnd();
-
 
48800
      }
-
 
48801
      iprot.readStructEnd();
-
 
48802
      validate();
-
 
48803
    }
-
 
48804
 
-
 
48805
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
48806
      oprot.writeStructBegin(STRUCT_DESC);
-
 
48807
 
-
 
48808
      if (this.isSetSuccess()) {
-
 
48809
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
48810
        oprot.writeDouble(this.success);
-
 
48811
        oprot.writeFieldEnd();
-
 
48812
      }
-
 
48813
      oprot.writeFieldStop();
-
 
48814
      oprot.writeStructEnd();
-
 
48815
    }
-
 
48816
 
-
 
48817
    @Override
-
 
48818
    public String toString() {
-
 
48819
      StringBuilder sb = new StringBuilder("getVatAmountForItem_result(");
-
 
48820
      boolean first = true;
-
 
48821
 
-
 
48822
      sb.append("success:");
-
 
48823
      sb.append(this.success);
-
 
48824
      first = false;
47323
      sb.append(")");
48825
      sb.append(")");
47324
      return sb.toString();
48826
      return sb.toString();
47325
    }
48827
    }
47326
 
48828
 
47327
    public void validate() throws org.apache.thrift.TException {
48829
    public void validate() throws org.apache.thrift.TException {