Subversion Repositories SmartDukaan

Rev

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

Rev 18634 Rev 18735
Line 375... Line 375...
375
 
375
 
376
    public Address getBillingAddressForUser(long userId) throws org.apache.thrift.TException;
376
    public Address getBillingAddressForUser(long userId) throws org.apache.thrift.TException;
377
 
377
 
378
    public boolean isCreditorAssigned(long userId) throws org.apache.thrift.TException;
378
    public boolean isCreditorAssigned(long userId) throws org.apache.thrift.TException;
379
 
379
 
-
 
380
    public boolean isTaxInvoiceEnabledUser(long userId) throws org.apache.thrift.TException;
-
 
381
 
380
  }
382
  }
381
 
383
 
382
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
384
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
383
 
385
 
384
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
386
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 555... Line 557...
555
 
557
 
556
    public void getBillingAddressForUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBillingAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
558
    public void getBillingAddressForUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBillingAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
557
 
559
 
558
    public void isCreditorAssigned(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isCreditorAssigned_call> resultHandler) throws org.apache.thrift.TException;
560
    public void isCreditorAssigned(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isCreditorAssigned_call> resultHandler) throws org.apache.thrift.TException;
559
 
561
 
-
 
562
    public void isTaxInvoiceEnabledUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isTaxInvoiceEnabledUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
563
 
560
  }
564
  }
561
 
565
 
562
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
566
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
563
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
567
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
564
      public Factory() {}
568
      public Factory() {}
Line 2811... Line 2815...
2811
        return result.success;
2815
        return result.success;
2812
      }
2816
      }
2813
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isCreditorAssigned failed: unknown result");
2817
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isCreditorAssigned failed: unknown result");
2814
    }
2818
    }
2815
 
2819
 
-
 
2820
    public boolean isTaxInvoiceEnabledUser(long userId) throws org.apache.thrift.TException
-
 
2821
    {
-
 
2822
      send_isTaxInvoiceEnabledUser(userId);
-
 
2823
      return recv_isTaxInvoiceEnabledUser();
-
 
2824
    }
-
 
2825
 
-
 
2826
    public void send_isTaxInvoiceEnabledUser(long userId) throws org.apache.thrift.TException
-
 
2827
    {
-
 
2828
      isTaxInvoiceEnabledUser_args args = new isTaxInvoiceEnabledUser_args();
-
 
2829
      args.setUserId(userId);
-
 
2830
      sendBase("isTaxInvoiceEnabledUser", args);
-
 
2831
    }
-
 
2832
 
-
 
2833
    public boolean recv_isTaxInvoiceEnabledUser() throws org.apache.thrift.TException
-
 
2834
    {
-
 
2835
      isTaxInvoiceEnabledUser_result result = new isTaxInvoiceEnabledUser_result();
-
 
2836
      receiveBase(result, "isTaxInvoiceEnabledUser");
-
 
2837
      if (result.isSetSuccess()) {
-
 
2838
        return result.success;
-
 
2839
      }
-
 
2840
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isTaxInvoiceEnabledUser failed: unknown result");
-
 
2841
    }
-
 
2842
 
2816
  }
2843
  }
2817
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2844
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2818
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2845
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2819
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2846
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2820
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2847
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5866... Line 5893...
5866
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5893
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5867
        return (new Client(prot)).recv_isCreditorAssigned();
5894
        return (new Client(prot)).recv_isCreditorAssigned();
5868
      }
5895
      }
5869
    }
5896
    }
5870
 
5897
 
-
 
5898
    public void isTaxInvoiceEnabledUser(long userId, org.apache.thrift.async.AsyncMethodCallback<isTaxInvoiceEnabledUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
5899
      checkReady();
-
 
5900
      isTaxInvoiceEnabledUser_call method_call = new isTaxInvoiceEnabledUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5901
      this.___currentMethod = method_call;
-
 
5902
      ___manager.call(method_call);
-
 
5903
    }
-
 
5904
 
-
 
5905
    public static class isTaxInvoiceEnabledUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5906
      private long userId;
-
 
5907
      public isTaxInvoiceEnabledUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<isTaxInvoiceEnabledUser_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 {
-
 
5908
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5909
        this.userId = userId;
-
 
5910
      }
-
 
5911
 
-
 
5912
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5913
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isTaxInvoiceEnabledUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5914
        isTaxInvoiceEnabledUser_args args = new isTaxInvoiceEnabledUser_args();
-
 
5915
        args.setUserId(userId);
-
 
5916
        args.write(prot);
-
 
5917
        prot.writeMessageEnd();
-
 
5918
      }
-
 
5919
 
-
 
5920
      public boolean getResult() throws org.apache.thrift.TException {
-
 
5921
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5922
          throw new IllegalStateException("Method call not finished!");
-
 
5923
        }
-
 
5924
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5925
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5926
        return (new Client(prot)).recv_isTaxInvoiceEnabledUser();
-
 
5927
      }
-
 
5928
    }
-
 
5929
 
5871
  }
5930
  }
5872
 
5931
 
5873
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5932
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5874
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5933
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5875
    public Processor(I iface) {
5934
    public Processor(I iface) {
Line 5967... Line 6026...
5967
      processMap.put("addItemsToCart", new addItemsToCart());
6026
      processMap.put("addItemsToCart", new addItemsToCart());
5968
      processMap.put("validateCartNew", new validateCartNew());
6027
      processMap.put("validateCartNew", new validateCartNew());
5969
      processMap.put("isAddressEditableForCounter", new isAddressEditableForCounter());
6028
      processMap.put("isAddressEditableForCounter", new isAddressEditableForCounter());
5970
      processMap.put("getBillingAddressForUser", new getBillingAddressForUser());
6029
      processMap.put("getBillingAddressForUser", new getBillingAddressForUser());
5971
      processMap.put("isCreditorAssigned", new isCreditorAssigned());
6030
      processMap.put("isCreditorAssigned", new isCreditorAssigned());
-
 
6031
      processMap.put("isTaxInvoiceEnabledUser", new isTaxInvoiceEnabledUser());
5972
      return processMap;
6032
      return processMap;
5973
    }
6033
    }
5974
 
6034
 
5975
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
6035
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5976
      public createAnonymousUser() {
6036
      public createAnonymousUser() {
Line 7647... Line 7707...
7647
        result.setSuccessIsSet(true);
7707
        result.setSuccessIsSet(true);
7648
        return result;
7708
        return result;
7649
      }
7709
      }
7650
    }
7710
    }
7651
 
7711
 
-
 
7712
    private static class isTaxInvoiceEnabledUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isTaxInvoiceEnabledUser_args> {
-
 
7713
      public isTaxInvoiceEnabledUser() {
-
 
7714
        super("isTaxInvoiceEnabledUser");
-
 
7715
      }
-
 
7716
 
-
 
7717
      protected isTaxInvoiceEnabledUser_args getEmptyArgsInstance() {
-
 
7718
        return new isTaxInvoiceEnabledUser_args();
-
 
7719
      }
-
 
7720
 
-
 
7721
      protected isTaxInvoiceEnabledUser_result getResult(I iface, isTaxInvoiceEnabledUser_args args) throws org.apache.thrift.TException {
-
 
7722
        isTaxInvoiceEnabledUser_result result = new isTaxInvoiceEnabledUser_result();
-
 
7723
        result.success = iface.isTaxInvoiceEnabledUser(args.userId);
-
 
7724
        result.setSuccessIsSet(true);
-
 
7725
        return result;
-
 
7726
      }
-
 
7727
    }
-
 
7728
 
7652
  }
7729
  }
7653
 
7730
 
7654
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
7731
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
7655
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
7732
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
7656
 
7733
 
Line 70486... Line 70563...
70486
      boolean first = true;
70563
      boolean first = true;
70487
 
70564
 
70488
      sb.append("success:");
70565
      sb.append("success:");
70489
      sb.append(this.success);
70566
      sb.append(this.success);
70490
      first = false;
70567
      first = false;
-
 
70568
      sb.append(")");
-
 
70569
      return sb.toString();
-
 
70570
    }
-
 
70571
 
-
 
70572
    public void validate() throws org.apache.thrift.TException {
-
 
70573
      // check for required fields
-
 
70574
    }
-
 
70575
 
-
 
70576
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
70577
      try {
-
 
70578
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
70579
      } catch (org.apache.thrift.TException te) {
-
 
70580
        throw new java.io.IOException(te);
-
 
70581
      }
-
 
70582
    }
-
 
70583
 
-
 
70584
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
70585
      try {
-
 
70586
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
70587
      } catch (org.apache.thrift.TException te) {
-
 
70588
        throw new java.io.IOException(te);
-
 
70589
      }
-
 
70590
    }
-
 
70591
 
-
 
70592
  }
-
 
70593
 
-
 
70594
  public static class isTaxInvoiceEnabledUser_args implements org.apache.thrift.TBase<isTaxInvoiceEnabledUser_args, isTaxInvoiceEnabledUser_args._Fields>, java.io.Serializable, Cloneable   {
-
 
70595
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTaxInvoiceEnabledUser_args");
-
 
70596
 
-
 
70597
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
70598
 
-
 
70599
    private long userId; // required
-
 
70600
 
-
 
70601
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
70602
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
70603
      USER_ID((short)1, "userId");
-
 
70604
 
-
 
70605
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
70606
 
-
 
70607
      static {
-
 
70608
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
70609
          byName.put(field.getFieldName(), field);
-
 
70610
        }
-
 
70611
      }
-
 
70612
 
-
 
70613
      /**
-
 
70614
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
70615
       */
-
 
70616
      public static _Fields findByThriftId(int fieldId) {
-
 
70617
        switch(fieldId) {
-
 
70618
          case 1: // USER_ID
-
 
70619
            return USER_ID;
-
 
70620
          default:
-
 
70621
            return null;
-
 
70622
        }
-
 
70623
      }
-
 
70624
 
-
 
70625
      /**
-
 
70626
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
70627
       * if it is not found.
-
 
70628
       */
-
 
70629
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
70630
        _Fields fields = findByThriftId(fieldId);
-
 
70631
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
70632
        return fields;
-
 
70633
      }
-
 
70634
 
-
 
70635
      /**
-
 
70636
       * Find the _Fields constant that matches name, or null if its not found.
-
 
70637
       */
-
 
70638
      public static _Fields findByName(String name) {
-
 
70639
        return byName.get(name);
-
 
70640
      }
-
 
70641
 
-
 
70642
      private final short _thriftId;
-
 
70643
      private final String _fieldName;
-
 
70644
 
-
 
70645
      _Fields(short thriftId, String fieldName) {
-
 
70646
        _thriftId = thriftId;
-
 
70647
        _fieldName = fieldName;
-
 
70648
      }
-
 
70649
 
-
 
70650
      public short getThriftFieldId() {
-
 
70651
        return _thriftId;
-
 
70652
      }
-
 
70653
 
-
 
70654
      public String getFieldName() {
-
 
70655
        return _fieldName;
-
 
70656
      }
-
 
70657
    }
-
 
70658
 
-
 
70659
    // isset id assignments
-
 
70660
    private static final int __USERID_ISSET_ID = 0;
-
 
70661
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
70662
 
-
 
70663
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
70664
    static {
-
 
70665
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
70666
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
70667
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
70668
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
70669
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTaxInvoiceEnabledUser_args.class, metaDataMap);
-
 
70670
    }
-
 
70671
 
-
 
70672
    public isTaxInvoiceEnabledUser_args() {
-
 
70673
    }
-
 
70674
 
-
 
70675
    public isTaxInvoiceEnabledUser_args(
-
 
70676
      long userId)
-
 
70677
    {
-
 
70678
      this();
-
 
70679
      this.userId = userId;
-
 
70680
      setUserIdIsSet(true);
-
 
70681
    }
-
 
70682
 
-
 
70683
    /**
-
 
70684
     * Performs a deep copy on <i>other</i>.
-
 
70685
     */
-
 
70686
    public isTaxInvoiceEnabledUser_args(isTaxInvoiceEnabledUser_args other) {
-
 
70687
      __isset_bit_vector.clear();
-
 
70688
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
70689
      this.userId = other.userId;
-
 
70690
    }
-
 
70691
 
-
 
70692
    public isTaxInvoiceEnabledUser_args deepCopy() {
-
 
70693
      return new isTaxInvoiceEnabledUser_args(this);
-
 
70694
    }
-
 
70695
 
-
 
70696
    @Override
-
 
70697
    public void clear() {
-
 
70698
      setUserIdIsSet(false);
-
 
70699
      this.userId = 0;
-
 
70700
    }
-
 
70701
 
-
 
70702
    public long getUserId() {
-
 
70703
      return this.userId;
-
 
70704
    }
-
 
70705
 
-
 
70706
    public void setUserId(long userId) {
-
 
70707
      this.userId = userId;
-
 
70708
      setUserIdIsSet(true);
-
 
70709
    }
-
 
70710
 
-
 
70711
    public void unsetUserId() {
-
 
70712
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
70713
    }
-
 
70714
 
-
 
70715
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
70716
    public boolean isSetUserId() {
-
 
70717
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
70718
    }
-
 
70719
 
-
 
70720
    public void setUserIdIsSet(boolean value) {
-
 
70721
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
70722
    }
-
 
70723
 
-
 
70724
    public void setFieldValue(_Fields field, Object value) {
-
 
70725
      switch (field) {
-
 
70726
      case USER_ID:
-
 
70727
        if (value == null) {
-
 
70728
          unsetUserId();
-
 
70729
        } else {
-
 
70730
          setUserId((Long)value);
-
 
70731
        }
-
 
70732
        break;
-
 
70733
 
-
 
70734
      }
-
 
70735
    }
-
 
70736
 
-
 
70737
    public Object getFieldValue(_Fields field) {
-
 
70738
      switch (field) {
-
 
70739
      case USER_ID:
-
 
70740
        return Long.valueOf(getUserId());
-
 
70741
 
-
 
70742
      }
-
 
70743
      throw new IllegalStateException();
-
 
70744
    }
-
 
70745
 
-
 
70746
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
70747
    public boolean isSet(_Fields field) {
-
 
70748
      if (field == null) {
-
 
70749
        throw new IllegalArgumentException();
-
 
70750
      }
-
 
70751
 
-
 
70752
      switch (field) {
-
 
70753
      case USER_ID:
-
 
70754
        return isSetUserId();
-
 
70755
      }
-
 
70756
      throw new IllegalStateException();
-
 
70757
    }
-
 
70758
 
-
 
70759
    @Override
-
 
70760
    public boolean equals(Object that) {
-
 
70761
      if (that == null)
-
 
70762
        return false;
-
 
70763
      if (that instanceof isTaxInvoiceEnabledUser_args)
-
 
70764
        return this.equals((isTaxInvoiceEnabledUser_args)that);
-
 
70765
      return false;
-
 
70766
    }
-
 
70767
 
-
 
70768
    public boolean equals(isTaxInvoiceEnabledUser_args that) {
-
 
70769
      if (that == null)
-
 
70770
        return false;
-
 
70771
 
-
 
70772
      boolean this_present_userId = true;
-
 
70773
      boolean that_present_userId = true;
-
 
70774
      if (this_present_userId || that_present_userId) {
-
 
70775
        if (!(this_present_userId && that_present_userId))
-
 
70776
          return false;
-
 
70777
        if (this.userId != that.userId)
-
 
70778
          return false;
-
 
70779
      }
-
 
70780
 
-
 
70781
      return true;
-
 
70782
    }
-
 
70783
 
-
 
70784
    @Override
-
 
70785
    public int hashCode() {
-
 
70786
      return 0;
-
 
70787
    }
-
 
70788
 
-
 
70789
    public int compareTo(isTaxInvoiceEnabledUser_args other) {
-
 
70790
      if (!getClass().equals(other.getClass())) {
-
 
70791
        return getClass().getName().compareTo(other.getClass().getName());
-
 
70792
      }
-
 
70793
 
-
 
70794
      int lastComparison = 0;
-
 
70795
      isTaxInvoiceEnabledUser_args typedOther = (isTaxInvoiceEnabledUser_args)other;
-
 
70796
 
-
 
70797
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
70798
      if (lastComparison != 0) {
-
 
70799
        return lastComparison;
-
 
70800
      }
-
 
70801
      if (isSetUserId()) {
-
 
70802
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
70803
        if (lastComparison != 0) {
-
 
70804
          return lastComparison;
-
 
70805
        }
-
 
70806
      }
-
 
70807
      return 0;
-
 
70808
    }
-
 
70809
 
-
 
70810
    public _Fields fieldForId(int fieldId) {
-
 
70811
      return _Fields.findByThriftId(fieldId);
-
 
70812
    }
-
 
70813
 
-
 
70814
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
70815
      org.apache.thrift.protocol.TField field;
-
 
70816
      iprot.readStructBegin();
-
 
70817
      while (true)
-
 
70818
      {
-
 
70819
        field = iprot.readFieldBegin();
-
 
70820
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
70821
          break;
-
 
70822
        }
-
 
70823
        switch (field.id) {
-
 
70824
          case 1: // USER_ID
-
 
70825
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
70826
              this.userId = iprot.readI64();
-
 
70827
              setUserIdIsSet(true);
-
 
70828
            } else { 
-
 
70829
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70830
            }
-
 
70831
            break;
-
 
70832
          default:
-
 
70833
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70834
        }
-
 
70835
        iprot.readFieldEnd();
-
 
70836
      }
-
 
70837
      iprot.readStructEnd();
-
 
70838
      validate();
-
 
70839
    }
-
 
70840
 
-
 
70841
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
70842
      validate();
-
 
70843
 
-
 
70844
      oprot.writeStructBegin(STRUCT_DESC);
-
 
70845
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
70846
      oprot.writeI64(this.userId);
-
 
70847
      oprot.writeFieldEnd();
-
 
70848
      oprot.writeFieldStop();
-
 
70849
      oprot.writeStructEnd();
-
 
70850
    }
-
 
70851
 
-
 
70852
    @Override
-
 
70853
    public String toString() {
-
 
70854
      StringBuilder sb = new StringBuilder("isTaxInvoiceEnabledUser_args(");
-
 
70855
      boolean first = true;
-
 
70856
 
-
 
70857
      sb.append("userId:");
-
 
70858
      sb.append(this.userId);
-
 
70859
      first = false;
-
 
70860
      sb.append(")");
-
 
70861
      return sb.toString();
-
 
70862
    }
-
 
70863
 
-
 
70864
    public void validate() throws org.apache.thrift.TException {
-
 
70865
      // check for required fields
-
 
70866
    }
-
 
70867
 
-
 
70868
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
70869
      try {
-
 
70870
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
70871
      } catch (org.apache.thrift.TException te) {
-
 
70872
        throw new java.io.IOException(te);
-
 
70873
      }
-
 
70874
    }
-
 
70875
 
-
 
70876
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
70877
      try {
-
 
70878
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
70879
        __isset_bit_vector = new BitSet(1);
-
 
70880
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
70881
      } catch (org.apache.thrift.TException te) {
-
 
70882
        throw new java.io.IOException(te);
-
 
70883
      }
-
 
70884
    }
-
 
70885
 
-
 
70886
  }
-
 
70887
 
-
 
70888
  public static class isTaxInvoiceEnabledUser_result implements org.apache.thrift.TBase<isTaxInvoiceEnabledUser_result, isTaxInvoiceEnabledUser_result._Fields>, java.io.Serializable, Cloneable   {
-
 
70889
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTaxInvoiceEnabledUser_result");
-
 
70890
 
-
 
70891
    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);
-
 
70892
 
-
 
70893
    private boolean success; // required
-
 
70894
 
-
 
70895
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
70896
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
70897
      SUCCESS((short)0, "success");
-
 
70898
 
-
 
70899
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
70900
 
-
 
70901
      static {
-
 
70902
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
70903
          byName.put(field.getFieldName(), field);
-
 
70904
        }
-
 
70905
      }
-
 
70906
 
-
 
70907
      /**
-
 
70908
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
70909
       */
-
 
70910
      public static _Fields findByThriftId(int fieldId) {
-
 
70911
        switch(fieldId) {
-
 
70912
          case 0: // SUCCESS
-
 
70913
            return SUCCESS;
-
 
70914
          default:
-
 
70915
            return null;
-
 
70916
        }
-
 
70917
      }
-
 
70918
 
-
 
70919
      /**
-
 
70920
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
70921
       * if it is not found.
-
 
70922
       */
-
 
70923
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
70924
        _Fields fields = findByThriftId(fieldId);
-
 
70925
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
70926
        return fields;
-
 
70927
      }
-
 
70928
 
-
 
70929
      /**
-
 
70930
       * Find the _Fields constant that matches name, or null if its not found.
-
 
70931
       */
-
 
70932
      public static _Fields findByName(String name) {
-
 
70933
        return byName.get(name);
-
 
70934
      }
-
 
70935
 
-
 
70936
      private final short _thriftId;
-
 
70937
      private final String _fieldName;
-
 
70938
 
-
 
70939
      _Fields(short thriftId, String fieldName) {
-
 
70940
        _thriftId = thriftId;
-
 
70941
        _fieldName = fieldName;
-
 
70942
      }
-
 
70943
 
-
 
70944
      public short getThriftFieldId() {
-
 
70945
        return _thriftId;
-
 
70946
      }
-
 
70947
 
-
 
70948
      public String getFieldName() {
-
 
70949
        return _fieldName;
-
 
70950
      }
-
 
70951
    }
-
 
70952
 
-
 
70953
    // isset id assignments
-
 
70954
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
70955
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
70956
 
-
 
70957
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
70958
    static {
-
 
70959
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
70960
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
70961
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
70962
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
70963
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTaxInvoiceEnabledUser_result.class, metaDataMap);
-
 
70964
    }
-
 
70965
 
-
 
70966
    public isTaxInvoiceEnabledUser_result() {
-
 
70967
    }
-
 
70968
 
-
 
70969
    public isTaxInvoiceEnabledUser_result(
-
 
70970
      boolean success)
-
 
70971
    {
-
 
70972
      this();
-
 
70973
      this.success = success;
-
 
70974
      setSuccessIsSet(true);
-
 
70975
    }
-
 
70976
 
-
 
70977
    /**
-
 
70978
     * Performs a deep copy on <i>other</i>.
-
 
70979
     */
-
 
70980
    public isTaxInvoiceEnabledUser_result(isTaxInvoiceEnabledUser_result other) {
-
 
70981
      __isset_bit_vector.clear();
-
 
70982
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
70983
      this.success = other.success;
-
 
70984
    }
-
 
70985
 
-
 
70986
    public isTaxInvoiceEnabledUser_result deepCopy() {
-
 
70987
      return new isTaxInvoiceEnabledUser_result(this);
-
 
70988
    }
-
 
70989
 
-
 
70990
    @Override
-
 
70991
    public void clear() {
-
 
70992
      setSuccessIsSet(false);
-
 
70993
      this.success = false;
-
 
70994
    }
-
 
70995
 
-
 
70996
    public boolean isSuccess() {
-
 
70997
      return this.success;
-
 
70998
    }
-
 
70999
 
-
 
71000
    public void setSuccess(boolean success) {
-
 
71001
      this.success = success;
-
 
71002
      setSuccessIsSet(true);
-
 
71003
    }
-
 
71004
 
-
 
71005
    public void unsetSuccess() {
-
 
71006
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
71007
    }
-
 
71008
 
-
 
71009
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
71010
    public boolean isSetSuccess() {
-
 
71011
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
71012
    }
-
 
71013
 
-
 
71014
    public void setSuccessIsSet(boolean value) {
-
 
71015
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
71016
    }
-
 
71017
 
-
 
71018
    public void setFieldValue(_Fields field, Object value) {
-
 
71019
      switch (field) {
-
 
71020
      case SUCCESS:
-
 
71021
        if (value == null) {
-
 
71022
          unsetSuccess();
-
 
71023
        } else {
-
 
71024
          setSuccess((Boolean)value);
-
 
71025
        }
-
 
71026
        break;
-
 
71027
 
-
 
71028
      }
-
 
71029
    }
-
 
71030
 
-
 
71031
    public Object getFieldValue(_Fields field) {
-
 
71032
      switch (field) {
-
 
71033
      case SUCCESS:
-
 
71034
        return Boolean.valueOf(isSuccess());
-
 
71035
 
-
 
71036
      }
-
 
71037
      throw new IllegalStateException();
-
 
71038
    }
-
 
71039
 
-
 
71040
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
71041
    public boolean isSet(_Fields field) {
-
 
71042
      if (field == null) {
-
 
71043
        throw new IllegalArgumentException();
-
 
71044
      }
-
 
71045
 
-
 
71046
      switch (field) {
-
 
71047
      case SUCCESS:
-
 
71048
        return isSetSuccess();
-
 
71049
      }
-
 
71050
      throw new IllegalStateException();
-
 
71051
    }
-
 
71052
 
-
 
71053
    @Override
-
 
71054
    public boolean equals(Object that) {
-
 
71055
      if (that == null)
-
 
71056
        return false;
-
 
71057
      if (that instanceof isTaxInvoiceEnabledUser_result)
-
 
71058
        return this.equals((isTaxInvoiceEnabledUser_result)that);
-
 
71059
      return false;
-
 
71060
    }
-
 
71061
 
-
 
71062
    public boolean equals(isTaxInvoiceEnabledUser_result that) {
-
 
71063
      if (that == null)
-
 
71064
        return false;
-
 
71065
 
-
 
71066
      boolean this_present_success = true;
-
 
71067
      boolean that_present_success = true;
-
 
71068
      if (this_present_success || that_present_success) {
-
 
71069
        if (!(this_present_success && that_present_success))
-
 
71070
          return false;
-
 
71071
        if (this.success != that.success)
-
 
71072
          return false;
-
 
71073
      }
-
 
71074
 
-
 
71075
      return true;
-
 
71076
    }
-
 
71077
 
-
 
71078
    @Override
-
 
71079
    public int hashCode() {
-
 
71080
      return 0;
-
 
71081
    }
-
 
71082
 
-
 
71083
    public int compareTo(isTaxInvoiceEnabledUser_result other) {
-
 
71084
      if (!getClass().equals(other.getClass())) {
-
 
71085
        return getClass().getName().compareTo(other.getClass().getName());
-
 
71086
      }
-
 
71087
 
-
 
71088
      int lastComparison = 0;
-
 
71089
      isTaxInvoiceEnabledUser_result typedOther = (isTaxInvoiceEnabledUser_result)other;
-
 
71090
 
-
 
71091
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
71092
      if (lastComparison != 0) {
-
 
71093
        return lastComparison;
-
 
71094
      }
-
 
71095
      if (isSetSuccess()) {
-
 
71096
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
71097
        if (lastComparison != 0) {
-
 
71098
          return lastComparison;
-
 
71099
        }
-
 
71100
      }
-
 
71101
      return 0;
-
 
71102
    }
-
 
71103
 
-
 
71104
    public _Fields fieldForId(int fieldId) {
-
 
71105
      return _Fields.findByThriftId(fieldId);
-
 
71106
    }
-
 
71107
 
-
 
71108
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
71109
      org.apache.thrift.protocol.TField field;
-
 
71110
      iprot.readStructBegin();
-
 
71111
      while (true)
-
 
71112
      {
-
 
71113
        field = iprot.readFieldBegin();
-
 
71114
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
71115
          break;
-
 
71116
        }
-
 
71117
        switch (field.id) {
-
 
71118
          case 0: // SUCCESS
-
 
71119
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
71120
              this.success = iprot.readBool();
-
 
71121
              setSuccessIsSet(true);
-
 
71122
            } else { 
-
 
71123
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71124
            }
-
 
71125
            break;
-
 
71126
          default:
-
 
71127
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71128
        }
-
 
71129
        iprot.readFieldEnd();
-
 
71130
      }
-
 
71131
      iprot.readStructEnd();
-
 
71132
      validate();
-
 
71133
    }
-
 
71134
 
-
 
71135
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
71136
      oprot.writeStructBegin(STRUCT_DESC);
-
 
71137
 
-
 
71138
      if (this.isSetSuccess()) {
-
 
71139
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
71140
        oprot.writeBool(this.success);
-
 
71141
        oprot.writeFieldEnd();
-
 
71142
      }
-
 
71143
      oprot.writeFieldStop();
-
 
71144
      oprot.writeStructEnd();
-
 
71145
    }
-
 
71146
 
-
 
71147
    @Override
-
 
71148
    public String toString() {
-
 
71149
      StringBuilder sb = new StringBuilder("isTaxInvoiceEnabledUser_result(");
-
 
71150
      boolean first = true;
-
 
71151
 
-
 
71152
      sb.append("success:");
-
 
71153
      sb.append(this.success);
-
 
71154
      first = false;
70491
      sb.append(")");
71155
      sb.append(")");
70492
      return sb.toString();
71156
      return sb.toString();
70493
    }
71157
    }
70494
 
71158
 
70495
    public void validate() throws org.apache.thrift.TException {
71159
    public void validate() throws org.apache.thrift.TException {