Subversion Repositories SmartDukaan

Rev

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

Rev 18977 Rev 19182
Line 379... Line 379...
379
 
379
 
380
    public boolean isCreditorAssigned(long userId) throws org.apache.thrift.TException;
380
    public boolean isCreditorAssigned(long userId) throws org.apache.thrift.TException;
381
 
381
 
382
    public boolean isTaxInvoiceEnabledUser(long userId) throws org.apache.thrift.TException;
382
    public boolean isTaxInvoiceEnabledUser(long userId) throws org.apache.thrift.TException;
383
 
383
 
-
 
384
    public boolean taxInvoiceAvailable(long addressId) throws org.apache.thrift.TException;
-
 
385
 
384
    public Map<Long,List<Line>> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;
386
    public Map<Long,List<Line>> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;
385
 
387
 
386
  }
388
  }
387
 
389
 
388
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
390
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
Line 565... Line 567...
565
 
567
 
566
    public void isCreditorAssigned(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isCreditorAssigned_call> resultHandler) throws org.apache.thrift.TException;
568
    public void isCreditorAssigned(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isCreditorAssigned_call> resultHandler) throws org.apache.thrift.TException;
567
 
569
 
568
    public void isTaxInvoiceEnabledUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isTaxInvoiceEnabledUser_call> resultHandler) throws org.apache.thrift.TException;
570
    public void isTaxInvoiceEnabledUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isTaxInvoiceEnabledUser_call> resultHandler) throws org.apache.thrift.TException;
569
 
571
 
-
 
572
    public void taxInvoiceAvailable(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.taxInvoiceAvailable_call> resultHandler) throws org.apache.thrift.TException;
-
 
573
 
570
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;
574
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;
571
 
575
 
572
  }
576
  }
573
 
577
 
574
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
578
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
Line 2869... Line 2873...
2869
        return result.success;
2873
        return result.success;
2870
      }
2874
      }
2871
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isTaxInvoiceEnabledUser failed: unknown result");
2875
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isTaxInvoiceEnabledUser failed: unknown result");
2872
    }
2876
    }
2873
 
2877
 
-
 
2878
    public boolean taxInvoiceAvailable(long addressId) throws org.apache.thrift.TException
-
 
2879
    {
-
 
2880
      send_taxInvoiceAvailable(addressId);
-
 
2881
      return recv_taxInvoiceAvailable();
-
 
2882
    }
-
 
2883
 
-
 
2884
    public void send_taxInvoiceAvailable(long addressId) throws org.apache.thrift.TException
-
 
2885
    {
-
 
2886
      taxInvoiceAvailable_args args = new taxInvoiceAvailable_args();
-
 
2887
      args.setAddressId(addressId);
-
 
2888
      sendBase("taxInvoiceAvailable", args);
-
 
2889
    }
-
 
2890
 
-
 
2891
    public boolean recv_taxInvoiceAvailable() throws org.apache.thrift.TException
-
 
2892
    {
-
 
2893
      taxInvoiceAvailable_result result = new taxInvoiceAvailable_result();
-
 
2894
      receiveBase(result, "taxInvoiceAvailable");
-
 
2895
      if (result.isSetSuccess()) {
-
 
2896
        return result.success;
-
 
2897
      }
-
 
2898
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "taxInvoiceAvailable failed: unknown result");
-
 
2899
    }
-
 
2900
 
2874
    public Map<Long,List<Line>> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException
2901
    public Map<Long,List<Line>> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException
2875
    {
2902
    {
2876
      send_getCartByValue(cartIds);
2903
      send_getCartByValue(cartIds);
2877
      return recv_getCartByValue();
2904
      return recv_getCartByValue();
2878
    }
2905
    }
Line 6011... Line 6038...
6011
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6038
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6012
        return (new Client(prot)).recv_isTaxInvoiceEnabledUser();
6039
        return (new Client(prot)).recv_isTaxInvoiceEnabledUser();
6013
      }
6040
      }
6014
    }
6041
    }
6015
 
6042
 
-
 
6043
    public void taxInvoiceAvailable(long addressId, org.apache.thrift.async.AsyncMethodCallback<taxInvoiceAvailable_call> resultHandler) throws org.apache.thrift.TException {
-
 
6044
      checkReady();
-
 
6045
      taxInvoiceAvailable_call method_call = new taxInvoiceAvailable_call(addressId, resultHandler, this, ___protocolFactory, ___transport);
-
 
6046
      this.___currentMethod = method_call;
-
 
6047
      ___manager.call(method_call);
-
 
6048
    }
-
 
6049
 
-
 
6050
    public static class taxInvoiceAvailable_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6051
      private long addressId;
-
 
6052
      public taxInvoiceAvailable_call(long addressId, org.apache.thrift.async.AsyncMethodCallback<taxInvoiceAvailable_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 {
-
 
6053
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6054
        this.addressId = addressId;
-
 
6055
      }
-
 
6056
 
-
 
6057
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6058
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("taxInvoiceAvailable", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6059
        taxInvoiceAvailable_args args = new taxInvoiceAvailable_args();
-
 
6060
        args.setAddressId(addressId);
-
 
6061
        args.write(prot);
-
 
6062
        prot.writeMessageEnd();
-
 
6063
      }
-
 
6064
 
-
 
6065
      public boolean getResult() throws org.apache.thrift.TException {
-
 
6066
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6067
          throw new IllegalStateException("Method call not finished!");
-
 
6068
        }
-
 
6069
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6070
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6071
        return (new Client(prot)).recv_taxInvoiceAvailable();
-
 
6072
      }
-
 
6073
    }
-
 
6074
 
6016
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<getCartByValue_call> resultHandler) throws org.apache.thrift.TException {
6075
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<getCartByValue_call> resultHandler) throws org.apache.thrift.TException {
6017
      checkReady();
6076
      checkReady();
6018
      getCartByValue_call method_call = new getCartByValue_call(cartIds, resultHandler, this, ___protocolFactory, ___transport);
6077
      getCartByValue_call method_call = new getCartByValue_call(cartIds, resultHandler, this, ___protocolFactory, ___transport);
6019
      this.___currentMethod = method_call;
6078
      this.___currentMethod = method_call;
6020
      ___manager.call(method_call);
6079
      ___manager.call(method_call);
Line 6146... Line 6205...
6146
      processMap.put("validateCartNew", new validateCartNew());
6205
      processMap.put("validateCartNew", new validateCartNew());
6147
      processMap.put("isAddressEditableForCounter", new isAddressEditableForCounter());
6206
      processMap.put("isAddressEditableForCounter", new isAddressEditableForCounter());
6148
      processMap.put("getBillingAddressForUser", new getBillingAddressForUser());
6207
      processMap.put("getBillingAddressForUser", new getBillingAddressForUser());
6149
      processMap.put("isCreditorAssigned", new isCreditorAssigned());
6208
      processMap.put("isCreditorAssigned", new isCreditorAssigned());
6150
      processMap.put("isTaxInvoiceEnabledUser", new isTaxInvoiceEnabledUser());
6209
      processMap.put("isTaxInvoiceEnabledUser", new isTaxInvoiceEnabledUser());
-
 
6210
      processMap.put("taxInvoiceAvailable", new taxInvoiceAvailable());
6151
      processMap.put("getCartByValue", new getCartByValue());
6211
      processMap.put("getCartByValue", new getCartByValue());
6152
      return processMap;
6212
      return processMap;
6153
    }
6213
    }
6154
 
6214
 
6155
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
6215
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
Line 7860... Line 7920...
7860
        result.setSuccessIsSet(true);
7920
        result.setSuccessIsSet(true);
7861
        return result;
7921
        return result;
7862
      }
7922
      }
7863
    }
7923
    }
7864
 
7924
 
-
 
7925
    private static class taxInvoiceAvailable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, taxInvoiceAvailable_args> {
-
 
7926
      public taxInvoiceAvailable() {
-
 
7927
        super("taxInvoiceAvailable");
-
 
7928
      }
-
 
7929
 
-
 
7930
      protected taxInvoiceAvailable_args getEmptyArgsInstance() {
-
 
7931
        return new taxInvoiceAvailable_args();
-
 
7932
      }
-
 
7933
 
-
 
7934
      protected taxInvoiceAvailable_result getResult(I iface, taxInvoiceAvailable_args args) throws org.apache.thrift.TException {
-
 
7935
        taxInvoiceAvailable_result result = new taxInvoiceAvailable_result();
-
 
7936
        result.success = iface.taxInvoiceAvailable(args.addressId);
-
 
7937
        result.setSuccessIsSet(true);
-
 
7938
        return result;
-
 
7939
      }
-
 
7940
    }
-
 
7941
 
7865
    private static class getCartByValue<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartByValue_args> {
7942
    private static class getCartByValue<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartByValue_args> {
7866
      public getCartByValue() {
7943
      public getCartByValue() {
7867
        super("getCartByValue");
7944
        super("getCartByValue");
7868
      }
7945
      }
7869
 
7946
 
Line 71890... Line 71967...
71890
      boolean first = true;
71967
      boolean first = true;
71891
 
71968
 
71892
      sb.append("success:");
71969
      sb.append("success:");
71893
      sb.append(this.success);
71970
      sb.append(this.success);
71894
      first = false;
71971
      first = false;
-
 
71972
      sb.append(")");
-
 
71973
      return sb.toString();
-
 
71974
    }
-
 
71975
 
-
 
71976
    public void validate() throws org.apache.thrift.TException {
-
 
71977
      // check for required fields
-
 
71978
    }
-
 
71979
 
-
 
71980
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
71981
      try {
-
 
71982
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
71983
      } catch (org.apache.thrift.TException te) {
-
 
71984
        throw new java.io.IOException(te);
-
 
71985
      }
-
 
71986
    }
-
 
71987
 
-
 
71988
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
71989
      try {
-
 
71990
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
71991
      } catch (org.apache.thrift.TException te) {
-
 
71992
        throw new java.io.IOException(te);
-
 
71993
      }
-
 
71994
    }
-
 
71995
 
-
 
71996
  }
-
 
71997
 
-
 
71998
  public static class taxInvoiceAvailable_args implements org.apache.thrift.TBase<taxInvoiceAvailable_args, taxInvoiceAvailable_args._Fields>, java.io.Serializable, Cloneable   {
-
 
71999
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("taxInvoiceAvailable_args");
-
 
72000
 
-
 
72001
    private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
72002
 
-
 
72003
    private long addressId; // required
-
 
72004
 
-
 
72005
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
72006
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
72007
      ADDRESS_ID((short)1, "addressId");
-
 
72008
 
-
 
72009
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
72010
 
-
 
72011
      static {
-
 
72012
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
72013
          byName.put(field.getFieldName(), field);
-
 
72014
        }
-
 
72015
      }
-
 
72016
 
-
 
72017
      /**
-
 
72018
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
72019
       */
-
 
72020
      public static _Fields findByThriftId(int fieldId) {
-
 
72021
        switch(fieldId) {
-
 
72022
          case 1: // ADDRESS_ID
-
 
72023
            return ADDRESS_ID;
-
 
72024
          default:
-
 
72025
            return null;
-
 
72026
        }
-
 
72027
      }
-
 
72028
 
-
 
72029
      /**
-
 
72030
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
72031
       * if it is not found.
-
 
72032
       */
-
 
72033
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
72034
        _Fields fields = findByThriftId(fieldId);
-
 
72035
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
72036
        return fields;
-
 
72037
      }
-
 
72038
 
-
 
72039
      /**
-
 
72040
       * Find the _Fields constant that matches name, or null if its not found.
-
 
72041
       */
-
 
72042
      public static _Fields findByName(String name) {
-
 
72043
        return byName.get(name);
-
 
72044
      }
-
 
72045
 
-
 
72046
      private final short _thriftId;
-
 
72047
      private final String _fieldName;
-
 
72048
 
-
 
72049
      _Fields(short thriftId, String fieldName) {
-
 
72050
        _thriftId = thriftId;
-
 
72051
        _fieldName = fieldName;
-
 
72052
      }
-
 
72053
 
-
 
72054
      public short getThriftFieldId() {
-
 
72055
        return _thriftId;
-
 
72056
      }
-
 
72057
 
-
 
72058
      public String getFieldName() {
-
 
72059
        return _fieldName;
-
 
72060
      }
-
 
72061
    }
-
 
72062
 
-
 
72063
    // isset id assignments
-
 
72064
    private static final int __ADDRESSID_ISSET_ID = 0;
-
 
72065
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
72066
 
-
 
72067
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
72068
    static {
-
 
72069
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
72070
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
72071
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
72072
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
72073
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(taxInvoiceAvailable_args.class, metaDataMap);
-
 
72074
    }
-
 
72075
 
-
 
72076
    public taxInvoiceAvailable_args() {
-
 
72077
    }
-
 
72078
 
-
 
72079
    public taxInvoiceAvailable_args(
-
 
72080
      long addressId)
-
 
72081
    {
-
 
72082
      this();
-
 
72083
      this.addressId = addressId;
-
 
72084
      setAddressIdIsSet(true);
-
 
72085
    }
-
 
72086
 
-
 
72087
    /**
-
 
72088
     * Performs a deep copy on <i>other</i>.
-
 
72089
     */
-
 
72090
    public taxInvoiceAvailable_args(taxInvoiceAvailable_args other) {
-
 
72091
      __isset_bit_vector.clear();
-
 
72092
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
72093
      this.addressId = other.addressId;
-
 
72094
    }
-
 
72095
 
-
 
72096
    public taxInvoiceAvailable_args deepCopy() {
-
 
72097
      return new taxInvoiceAvailable_args(this);
-
 
72098
    }
-
 
72099
 
-
 
72100
    @Override
-
 
72101
    public void clear() {
-
 
72102
      setAddressIdIsSet(false);
-
 
72103
      this.addressId = 0;
-
 
72104
    }
-
 
72105
 
-
 
72106
    public long getAddressId() {
-
 
72107
      return this.addressId;
-
 
72108
    }
-
 
72109
 
-
 
72110
    public void setAddressId(long addressId) {
-
 
72111
      this.addressId = addressId;
-
 
72112
      setAddressIdIsSet(true);
-
 
72113
    }
-
 
72114
 
-
 
72115
    public void unsetAddressId() {
-
 
72116
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
-
 
72117
    }
-
 
72118
 
-
 
72119
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
-
 
72120
    public boolean isSetAddressId() {
-
 
72121
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
-
 
72122
    }
-
 
72123
 
-
 
72124
    public void setAddressIdIsSet(boolean value) {
-
 
72125
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
-
 
72126
    }
-
 
72127
 
-
 
72128
    public void setFieldValue(_Fields field, Object value) {
-
 
72129
      switch (field) {
-
 
72130
      case ADDRESS_ID:
-
 
72131
        if (value == null) {
-
 
72132
          unsetAddressId();
-
 
72133
        } else {
-
 
72134
          setAddressId((Long)value);
-
 
72135
        }
-
 
72136
        break;
-
 
72137
 
-
 
72138
      }
-
 
72139
    }
-
 
72140
 
-
 
72141
    public Object getFieldValue(_Fields field) {
-
 
72142
      switch (field) {
-
 
72143
      case ADDRESS_ID:
-
 
72144
        return Long.valueOf(getAddressId());
-
 
72145
 
-
 
72146
      }
-
 
72147
      throw new IllegalStateException();
-
 
72148
    }
-
 
72149
 
-
 
72150
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
72151
    public boolean isSet(_Fields field) {
-
 
72152
      if (field == null) {
-
 
72153
        throw new IllegalArgumentException();
-
 
72154
      }
-
 
72155
 
-
 
72156
      switch (field) {
-
 
72157
      case ADDRESS_ID:
-
 
72158
        return isSetAddressId();
-
 
72159
      }
-
 
72160
      throw new IllegalStateException();
-
 
72161
    }
-
 
72162
 
-
 
72163
    @Override
-
 
72164
    public boolean equals(Object that) {
-
 
72165
      if (that == null)
-
 
72166
        return false;
-
 
72167
      if (that instanceof taxInvoiceAvailable_args)
-
 
72168
        return this.equals((taxInvoiceAvailable_args)that);
-
 
72169
      return false;
-
 
72170
    }
-
 
72171
 
-
 
72172
    public boolean equals(taxInvoiceAvailable_args that) {
-
 
72173
      if (that == null)
-
 
72174
        return false;
-
 
72175
 
-
 
72176
      boolean this_present_addressId = true;
-
 
72177
      boolean that_present_addressId = true;
-
 
72178
      if (this_present_addressId || that_present_addressId) {
-
 
72179
        if (!(this_present_addressId && that_present_addressId))
-
 
72180
          return false;
-
 
72181
        if (this.addressId != that.addressId)
-
 
72182
          return false;
-
 
72183
      }
-
 
72184
 
-
 
72185
      return true;
-
 
72186
    }
-
 
72187
 
-
 
72188
    @Override
-
 
72189
    public int hashCode() {
-
 
72190
      return 0;
-
 
72191
    }
-
 
72192
 
-
 
72193
    public int compareTo(taxInvoiceAvailable_args other) {
-
 
72194
      if (!getClass().equals(other.getClass())) {
-
 
72195
        return getClass().getName().compareTo(other.getClass().getName());
-
 
72196
      }
-
 
72197
 
-
 
72198
      int lastComparison = 0;
-
 
72199
      taxInvoiceAvailable_args typedOther = (taxInvoiceAvailable_args)other;
-
 
72200
 
-
 
72201
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
-
 
72202
      if (lastComparison != 0) {
-
 
72203
        return lastComparison;
-
 
72204
      }
-
 
72205
      if (isSetAddressId()) {
-
 
72206
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
-
 
72207
        if (lastComparison != 0) {
-
 
72208
          return lastComparison;
-
 
72209
        }
-
 
72210
      }
-
 
72211
      return 0;
-
 
72212
    }
-
 
72213
 
-
 
72214
    public _Fields fieldForId(int fieldId) {
-
 
72215
      return _Fields.findByThriftId(fieldId);
-
 
72216
    }
-
 
72217
 
-
 
72218
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
72219
      org.apache.thrift.protocol.TField field;
-
 
72220
      iprot.readStructBegin();
-
 
72221
      while (true)
-
 
72222
      {
-
 
72223
        field = iprot.readFieldBegin();
-
 
72224
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
72225
          break;
-
 
72226
        }
-
 
72227
        switch (field.id) {
-
 
72228
          case 1: // ADDRESS_ID
-
 
72229
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
72230
              this.addressId = iprot.readI64();
-
 
72231
              setAddressIdIsSet(true);
-
 
72232
            } else { 
-
 
72233
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
72234
            }
-
 
72235
            break;
-
 
72236
          default:
-
 
72237
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
72238
        }
-
 
72239
        iprot.readFieldEnd();
-
 
72240
      }
-
 
72241
      iprot.readStructEnd();
-
 
72242
      validate();
-
 
72243
    }
-
 
72244
 
-
 
72245
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
72246
      validate();
-
 
72247
 
-
 
72248
      oprot.writeStructBegin(STRUCT_DESC);
-
 
72249
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
-
 
72250
      oprot.writeI64(this.addressId);
-
 
72251
      oprot.writeFieldEnd();
-
 
72252
      oprot.writeFieldStop();
-
 
72253
      oprot.writeStructEnd();
-
 
72254
    }
-
 
72255
 
-
 
72256
    @Override
-
 
72257
    public String toString() {
-
 
72258
      StringBuilder sb = new StringBuilder("taxInvoiceAvailable_args(");
-
 
72259
      boolean first = true;
-
 
72260
 
-
 
72261
      sb.append("addressId:");
-
 
72262
      sb.append(this.addressId);
-
 
72263
      first = false;
-
 
72264
      sb.append(")");
-
 
72265
      return sb.toString();
-
 
72266
    }
-
 
72267
 
-
 
72268
    public void validate() throws org.apache.thrift.TException {
-
 
72269
      // check for required fields
-
 
72270
    }
-
 
72271
 
-
 
72272
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
72273
      try {
-
 
72274
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
72275
      } catch (org.apache.thrift.TException te) {
-
 
72276
        throw new java.io.IOException(te);
-
 
72277
      }
-
 
72278
    }
-
 
72279
 
-
 
72280
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
72281
      try {
-
 
72282
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
72283
        __isset_bit_vector = new BitSet(1);
-
 
72284
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
72285
      } catch (org.apache.thrift.TException te) {
-
 
72286
        throw new java.io.IOException(te);
-
 
72287
      }
-
 
72288
    }
-
 
72289
 
-
 
72290
  }
-
 
72291
 
-
 
72292
  public static class taxInvoiceAvailable_result implements org.apache.thrift.TBase<taxInvoiceAvailable_result, taxInvoiceAvailable_result._Fields>, java.io.Serializable, Cloneable   {
-
 
72293
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("taxInvoiceAvailable_result");
-
 
72294
 
-
 
72295
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
72296
 
-
 
72297
    private boolean success; // required
-
 
72298
 
-
 
72299
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
72300
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
72301
      SUCCESS((short)0, "success");
-
 
72302
 
-
 
72303
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
72304
 
-
 
72305
      static {
-
 
72306
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
72307
          byName.put(field.getFieldName(), field);
-
 
72308
        }
-
 
72309
      }
-
 
72310
 
-
 
72311
      /**
-
 
72312
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
72313
       */
-
 
72314
      public static _Fields findByThriftId(int fieldId) {
-
 
72315
        switch(fieldId) {
-
 
72316
          case 0: // SUCCESS
-
 
72317
            return SUCCESS;
-
 
72318
          default:
-
 
72319
            return null;
-
 
72320
        }
-
 
72321
      }
-
 
72322
 
-
 
72323
      /**
-
 
72324
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
72325
       * if it is not found.
-
 
72326
       */
-
 
72327
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
72328
        _Fields fields = findByThriftId(fieldId);
-
 
72329
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
72330
        return fields;
-
 
72331
      }
-
 
72332
 
-
 
72333
      /**
-
 
72334
       * Find the _Fields constant that matches name, or null if its not found.
-
 
72335
       */
-
 
72336
      public static _Fields findByName(String name) {
-
 
72337
        return byName.get(name);
-
 
72338
      }
-
 
72339
 
-
 
72340
      private final short _thriftId;
-
 
72341
      private final String _fieldName;
-
 
72342
 
-
 
72343
      _Fields(short thriftId, String fieldName) {
-
 
72344
        _thriftId = thriftId;
-
 
72345
        _fieldName = fieldName;
-
 
72346
      }
-
 
72347
 
-
 
72348
      public short getThriftFieldId() {
-
 
72349
        return _thriftId;
-
 
72350
      }
-
 
72351
 
-
 
72352
      public String getFieldName() {
-
 
72353
        return _fieldName;
-
 
72354
      }
-
 
72355
    }
-
 
72356
 
-
 
72357
    // isset id assignments
-
 
72358
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
72359
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
72360
 
-
 
72361
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
72362
    static {
-
 
72363
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
72364
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
72365
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
72366
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
72367
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(taxInvoiceAvailable_result.class, metaDataMap);
-
 
72368
    }
-
 
72369
 
-
 
72370
    public taxInvoiceAvailable_result() {
-
 
72371
    }
-
 
72372
 
-
 
72373
    public taxInvoiceAvailable_result(
-
 
72374
      boolean success)
-
 
72375
    {
-
 
72376
      this();
-
 
72377
      this.success = success;
-
 
72378
      setSuccessIsSet(true);
-
 
72379
    }
-
 
72380
 
-
 
72381
    /**
-
 
72382
     * Performs a deep copy on <i>other</i>.
-
 
72383
     */
-
 
72384
    public taxInvoiceAvailable_result(taxInvoiceAvailable_result other) {
-
 
72385
      __isset_bit_vector.clear();
-
 
72386
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
72387
      this.success = other.success;
-
 
72388
    }
-
 
72389
 
-
 
72390
    public taxInvoiceAvailable_result deepCopy() {
-
 
72391
      return new taxInvoiceAvailable_result(this);
-
 
72392
    }
-
 
72393
 
-
 
72394
    @Override
-
 
72395
    public void clear() {
-
 
72396
      setSuccessIsSet(false);
-
 
72397
      this.success = false;
-
 
72398
    }
-
 
72399
 
-
 
72400
    public boolean isSuccess() {
-
 
72401
      return this.success;
-
 
72402
    }
-
 
72403
 
-
 
72404
    public void setSuccess(boolean success) {
-
 
72405
      this.success = success;
-
 
72406
      setSuccessIsSet(true);
-
 
72407
    }
-
 
72408
 
-
 
72409
    public void unsetSuccess() {
-
 
72410
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
72411
    }
-
 
72412
 
-
 
72413
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
72414
    public boolean isSetSuccess() {
-
 
72415
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
72416
    }
-
 
72417
 
-
 
72418
    public void setSuccessIsSet(boolean value) {
-
 
72419
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
72420
    }
-
 
72421
 
-
 
72422
    public void setFieldValue(_Fields field, Object value) {
-
 
72423
      switch (field) {
-
 
72424
      case SUCCESS:
-
 
72425
        if (value == null) {
-
 
72426
          unsetSuccess();
-
 
72427
        } else {
-
 
72428
          setSuccess((Boolean)value);
-
 
72429
        }
-
 
72430
        break;
-
 
72431
 
-
 
72432
      }
-
 
72433
    }
-
 
72434
 
-
 
72435
    public Object getFieldValue(_Fields field) {
-
 
72436
      switch (field) {
-
 
72437
      case SUCCESS:
-
 
72438
        return Boolean.valueOf(isSuccess());
-
 
72439
 
-
 
72440
      }
-
 
72441
      throw new IllegalStateException();
-
 
72442
    }
-
 
72443
 
-
 
72444
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
72445
    public boolean isSet(_Fields field) {
-
 
72446
      if (field == null) {
-
 
72447
        throw new IllegalArgumentException();
-
 
72448
      }
-
 
72449
 
-
 
72450
      switch (field) {
-
 
72451
      case SUCCESS:
-
 
72452
        return isSetSuccess();
-
 
72453
      }
-
 
72454
      throw new IllegalStateException();
-
 
72455
    }
-
 
72456
 
-
 
72457
    @Override
-
 
72458
    public boolean equals(Object that) {
-
 
72459
      if (that == null)
-
 
72460
        return false;
-
 
72461
      if (that instanceof taxInvoiceAvailable_result)
-
 
72462
        return this.equals((taxInvoiceAvailable_result)that);
-
 
72463
      return false;
-
 
72464
    }
-
 
72465
 
-
 
72466
    public boolean equals(taxInvoiceAvailable_result that) {
-
 
72467
      if (that == null)
-
 
72468
        return false;
-
 
72469
 
-
 
72470
      boolean this_present_success = true;
-
 
72471
      boolean that_present_success = true;
-
 
72472
      if (this_present_success || that_present_success) {
-
 
72473
        if (!(this_present_success && that_present_success))
-
 
72474
          return false;
-
 
72475
        if (this.success != that.success)
-
 
72476
          return false;
-
 
72477
      }
-
 
72478
 
-
 
72479
      return true;
-
 
72480
    }
-
 
72481
 
-
 
72482
    @Override
-
 
72483
    public int hashCode() {
-
 
72484
      return 0;
-
 
72485
    }
-
 
72486
 
-
 
72487
    public int compareTo(taxInvoiceAvailable_result other) {
-
 
72488
      if (!getClass().equals(other.getClass())) {
-
 
72489
        return getClass().getName().compareTo(other.getClass().getName());
-
 
72490
      }
-
 
72491
 
-
 
72492
      int lastComparison = 0;
-
 
72493
      taxInvoiceAvailable_result typedOther = (taxInvoiceAvailable_result)other;
-
 
72494
 
-
 
72495
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
72496
      if (lastComparison != 0) {
-
 
72497
        return lastComparison;
-
 
72498
      }
-
 
72499
      if (isSetSuccess()) {
-
 
72500
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
72501
        if (lastComparison != 0) {
-
 
72502
          return lastComparison;
-
 
72503
        }
-
 
72504
      }
-
 
72505
      return 0;
-
 
72506
    }
-
 
72507
 
-
 
72508
    public _Fields fieldForId(int fieldId) {
-
 
72509
      return _Fields.findByThriftId(fieldId);
-
 
72510
    }
-
 
72511
 
-
 
72512
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
72513
      org.apache.thrift.protocol.TField field;
-
 
72514
      iprot.readStructBegin();
-
 
72515
      while (true)
-
 
72516
      {
-
 
72517
        field = iprot.readFieldBegin();
-
 
72518
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
72519
          break;
-
 
72520
        }
-
 
72521
        switch (field.id) {
-
 
72522
          case 0: // SUCCESS
-
 
72523
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
72524
              this.success = iprot.readBool();
-
 
72525
              setSuccessIsSet(true);
-
 
72526
            } else { 
-
 
72527
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
72528
            }
-
 
72529
            break;
-
 
72530
          default:
-
 
72531
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
72532
        }
-
 
72533
        iprot.readFieldEnd();
-
 
72534
      }
-
 
72535
      iprot.readStructEnd();
-
 
72536
      validate();
-
 
72537
    }
-
 
72538
 
-
 
72539
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
72540
      oprot.writeStructBegin(STRUCT_DESC);
-
 
72541
 
-
 
72542
      if (this.isSetSuccess()) {
-
 
72543
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
72544
        oprot.writeBool(this.success);
-
 
72545
        oprot.writeFieldEnd();
-
 
72546
      }
-
 
72547
      oprot.writeFieldStop();
-
 
72548
      oprot.writeStructEnd();
-
 
72549
    }
-
 
72550
 
-
 
72551
    @Override
-
 
72552
    public String toString() {
-
 
72553
      StringBuilder sb = new StringBuilder("taxInvoiceAvailable_result(");
-
 
72554
      boolean first = true;
-
 
72555
 
-
 
72556
      sb.append("success:");
-
 
72557
      sb.append(this.success);
-
 
72558
      first = false;
71895
      sb.append(")");
72559
      sb.append(")");
71896
      return sb.toString();
72560
      return sb.toString();
71897
    }
72561
    }
71898
 
72562
 
71899
    public void validate() throws org.apache.thrift.TException {
72563
    public void validate() throws org.apache.thrift.TException {