Subversion Repositories SmartDukaan

Rev

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

Rev 22749 Rev 22754
Line 1282... Line 1282...
1282
 
1282
 
1283
    public List<RechargeOrder> getPaginatedRechargeOrders(long userId, int offset, int limit) throws org.apache.thrift.TException;
1283
    public List<RechargeOrder> getPaginatedRechargeOrders(long userId, int offset, int limit) throws org.apache.thrift.TException;
1284
 
1284
 
1285
    public boolean markOrderForRegisteredGstInvoice(List<Long> tranasction_ids) throws org.apache.thrift.TException;
1285
    public boolean markOrderForRegisteredGstInvoice(List<Long> tranasction_ids) throws org.apache.thrift.TException;
1286
 
1286
 
1287
    public boolean isShipmentCod(long logisticsTransactionId) throws org.apache.thrift.TException;
1287
    public boolean isShipmentCod(String logisticsTransactionId) throws org.apache.thrift.TException;
1288
 
1288
 
1289
  }
1289
  }
1290
 
1290
 
1291
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1291
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1292
 
1292
 
Line 1934... Line 1934...
1934
 
1934
 
1935
    public void getPaginatedRechargeOrders(long userId, int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaginatedRechargeOrders_call> resultHandler) throws org.apache.thrift.TException;
1935
    public void getPaginatedRechargeOrders(long userId, int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaginatedRechargeOrders_call> resultHandler) throws org.apache.thrift.TException;
1936
 
1936
 
1937
    public void markOrderForRegisteredGstInvoice(List<Long> tranasction_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderForRegisteredGstInvoice_call> resultHandler) throws org.apache.thrift.TException;
1937
    public void markOrderForRegisteredGstInvoice(List<Long> tranasction_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderForRegisteredGstInvoice_call> resultHandler) throws org.apache.thrift.TException;
1938
 
1938
 
1939
    public void isShipmentCod(long logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isShipmentCod_call> resultHandler) throws org.apache.thrift.TException;
1939
    public void isShipmentCod(String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isShipmentCod_call> resultHandler) throws org.apache.thrift.TException;
1940
 
1940
 
1941
  }
1941
  }
1942
 
1942
 
1943
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1943
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1944
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1944
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
Line 9939... Line 9939...
9939
        return result.success;
9939
        return result.success;
9940
      }
9940
      }
9941
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderForRegisteredGstInvoice failed: unknown result");
9941
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderForRegisteredGstInvoice failed: unknown result");
9942
    }
9942
    }
9943
 
9943
 
9944
    public boolean isShipmentCod(long logisticsTransactionId) throws org.apache.thrift.TException
9944
    public boolean isShipmentCod(String logisticsTransactionId) throws org.apache.thrift.TException
9945
    {
9945
    {
9946
      send_isShipmentCod(logisticsTransactionId);
9946
      send_isShipmentCod(logisticsTransactionId);
9947
      return recv_isShipmentCod();
9947
      return recv_isShipmentCod();
9948
    }
9948
    }
9949
 
9949
 
9950
    public void send_isShipmentCod(long logisticsTransactionId) throws org.apache.thrift.TException
9950
    public void send_isShipmentCod(String logisticsTransactionId) throws org.apache.thrift.TException
9951
    {
9951
    {
9952
      isShipmentCod_args args = new isShipmentCod_args();
9952
      isShipmentCod_args args = new isShipmentCod_args();
9953
      args.setLogisticsTransactionId(logisticsTransactionId);
9953
      args.setLogisticsTransactionId(logisticsTransactionId);
9954
      sendBase("isShipmentCod", args);
9954
      sendBase("isShipmentCod", args);
9955
    }
9955
    }
Line 21234... Line 21234...
21234
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
21234
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
21235
        return (new Client(prot)).recv_markOrderForRegisteredGstInvoice();
21235
        return (new Client(prot)).recv_markOrderForRegisteredGstInvoice();
21236
      }
21236
      }
21237
    }
21237
    }
21238
 
21238
 
21239
    public void isShipmentCod(long logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<isShipmentCod_call> resultHandler) throws org.apache.thrift.TException {
21239
    public void isShipmentCod(String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<isShipmentCod_call> resultHandler) throws org.apache.thrift.TException {
21240
      checkReady();
21240
      checkReady();
21241
      isShipmentCod_call method_call = new isShipmentCod_call(logisticsTransactionId, resultHandler, this, ___protocolFactory, ___transport);
21241
      isShipmentCod_call method_call = new isShipmentCod_call(logisticsTransactionId, resultHandler, this, ___protocolFactory, ___transport);
21242
      this.___currentMethod = method_call;
21242
      this.___currentMethod = method_call;
21243
      ___manager.call(method_call);
21243
      ___manager.call(method_call);
21244
    }
21244
    }
21245
 
21245
 
21246
    public static class isShipmentCod_call extends org.apache.thrift.async.TAsyncMethodCall {
21246
    public static class isShipmentCod_call extends org.apache.thrift.async.TAsyncMethodCall {
21247
      private long logisticsTransactionId;
21247
      private String logisticsTransactionId;
21248
      public isShipmentCod_call(long logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<isShipmentCod_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 {
21248
      public isShipmentCod_call(String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<isShipmentCod_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 {
21249
        super(client, protocolFactory, transport, resultHandler, false);
21249
        super(client, protocolFactory, transport, resultHandler, false);
21250
        this.logisticsTransactionId = logisticsTransactionId;
21250
        this.logisticsTransactionId = logisticsTransactionId;
21251
      }
21251
      }
21252
 
21252
 
21253
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
21253
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
Line 257683... Line 257683...
257683
  }
257683
  }
257684
 
257684
 
257685
  public static class isShipmentCod_args implements org.apache.thrift.TBase<isShipmentCod_args, isShipmentCod_args._Fields>, java.io.Serializable, Cloneable   {
257685
  public static class isShipmentCod_args implements org.apache.thrift.TBase<isShipmentCod_args, isShipmentCod_args._Fields>, java.io.Serializable, Cloneable   {
257686
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isShipmentCod_args");
257686
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isShipmentCod_args");
257687
 
257687
 
257688
    private static final org.apache.thrift.protocol.TField LOGISTICS_TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTransactionId", org.apache.thrift.protocol.TType.I64, (short)1);
257688
    private static final org.apache.thrift.protocol.TField LOGISTICS_TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTransactionId", org.apache.thrift.protocol.TType.STRING, (short)1);
257689
 
257689
 
257690
    private long logisticsTransactionId; // required
257690
    private String logisticsTransactionId; // required
257691
 
257691
 
257692
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
257692
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
257693
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
257693
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
257694
      LOGISTICS_TRANSACTION_ID((short)1, "logisticsTransactionId");
257694
      LOGISTICS_TRANSACTION_ID((short)1, "logisticsTransactionId");
257695
 
257695
 
Line 257746... Line 257746...
257746
        return _fieldName;
257746
        return _fieldName;
257747
      }
257747
      }
257748
    }
257748
    }
257749
 
257749
 
257750
    // isset id assignments
257750
    // isset id assignments
257751
    private static final int __LOGISTICSTRANSACTIONID_ISSET_ID = 0;
-
 
257752
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
257753
 
257751
 
257754
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
257752
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
257755
    static {
257753
    static {
257756
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
257754
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
257757
      tmpMap.put(_Fields.LOGISTICS_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
257755
      tmpMap.put(_Fields.LOGISTICS_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
257758
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
257756
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
257759
      metaDataMap = Collections.unmodifiableMap(tmpMap);
257757
      metaDataMap = Collections.unmodifiableMap(tmpMap);
257760
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isShipmentCod_args.class, metaDataMap);
257758
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isShipmentCod_args.class, metaDataMap);
257761
    }
257759
    }
257762
 
257760
 
257763
    public isShipmentCod_args() {
257761
    public isShipmentCod_args() {
257764
    }
257762
    }
257765
 
257763
 
257766
    public isShipmentCod_args(
257764
    public isShipmentCod_args(
257767
      long logisticsTransactionId)
257765
      String logisticsTransactionId)
257768
    {
257766
    {
257769
      this();
257767
      this();
257770
      this.logisticsTransactionId = logisticsTransactionId;
257768
      this.logisticsTransactionId = logisticsTransactionId;
257771
      setLogisticsTransactionIdIsSet(true);
-
 
257772
    }
257769
    }
257773
 
257770
 
257774
    /**
257771
    /**
257775
     * Performs a deep copy on <i>other</i>.
257772
     * Performs a deep copy on <i>other</i>.
257776
     */
257773
     */
257777
    public isShipmentCod_args(isShipmentCod_args other) {
257774
    public isShipmentCod_args(isShipmentCod_args other) {
257778
      __isset_bit_vector.clear();
-
 
257779
      __isset_bit_vector.or(other.__isset_bit_vector);
257775
      if (other.isSetLogisticsTransactionId()) {
257780
      this.logisticsTransactionId = other.logisticsTransactionId;
257776
        this.logisticsTransactionId = other.logisticsTransactionId;
-
 
257777
      }
257781
    }
257778
    }
257782
 
257779
 
257783
    public isShipmentCod_args deepCopy() {
257780
    public isShipmentCod_args deepCopy() {
257784
      return new isShipmentCod_args(this);
257781
      return new isShipmentCod_args(this);
257785
    }
257782
    }
257786
 
257783
 
257787
    @Override
257784
    @Override
257788
    public void clear() {
257785
    public void clear() {
257789
      setLogisticsTransactionIdIsSet(false);
-
 
257790
      this.logisticsTransactionId = 0;
257786
      this.logisticsTransactionId = null;
257791
    }
257787
    }
257792
 
257788
 
257793
    public long getLogisticsTransactionId() {
257789
    public String getLogisticsTransactionId() {
257794
      return this.logisticsTransactionId;
257790
      return this.logisticsTransactionId;
257795
    }
257791
    }
257796
 
257792
 
257797
    public void setLogisticsTransactionId(long logisticsTransactionId) {
257793
    public void setLogisticsTransactionId(String logisticsTransactionId) {
257798
      this.logisticsTransactionId = logisticsTransactionId;
257794
      this.logisticsTransactionId = logisticsTransactionId;
257799
      setLogisticsTransactionIdIsSet(true);
-
 
257800
    }
257795
    }
257801
 
257796
 
257802
    public void unsetLogisticsTransactionId() {
257797
    public void unsetLogisticsTransactionId() {
257803
      __isset_bit_vector.clear(__LOGISTICSTRANSACTIONID_ISSET_ID);
257798
      this.logisticsTransactionId = null;
257804
    }
257799
    }
257805
 
257800
 
257806
    /** Returns true if field logisticsTransactionId is set (has been assigned a value) and false otherwise */
257801
    /** Returns true if field logisticsTransactionId is set (has been assigned a value) and false otherwise */
257807
    public boolean isSetLogisticsTransactionId() {
257802
    public boolean isSetLogisticsTransactionId() {
257808
      return __isset_bit_vector.get(__LOGISTICSTRANSACTIONID_ISSET_ID);
257803
      return this.logisticsTransactionId != null;
257809
    }
257804
    }
257810
 
257805
 
257811
    public void setLogisticsTransactionIdIsSet(boolean value) {
257806
    public void setLogisticsTransactionIdIsSet(boolean value) {
-
 
257807
      if (!value) {
257812
      __isset_bit_vector.set(__LOGISTICSTRANSACTIONID_ISSET_ID, value);
257808
        this.logisticsTransactionId = null;
-
 
257809
      }
257813
    }
257810
    }
257814
 
257811
 
257815
    public void setFieldValue(_Fields field, Object value) {
257812
    public void setFieldValue(_Fields field, Object value) {
257816
      switch (field) {
257813
      switch (field) {
257817
      case LOGISTICS_TRANSACTION_ID:
257814
      case LOGISTICS_TRANSACTION_ID:
257818
        if (value == null) {
257815
        if (value == null) {
257819
          unsetLogisticsTransactionId();
257816
          unsetLogisticsTransactionId();
257820
        } else {
257817
        } else {
257821
          setLogisticsTransactionId((Long)value);
257818
          setLogisticsTransactionId((String)value);
257822
        }
257819
        }
257823
        break;
257820
        break;
257824
 
257821
 
257825
      }
257822
      }
257826
    }
257823
    }
257827
 
257824
 
257828
    public Object getFieldValue(_Fields field) {
257825
    public Object getFieldValue(_Fields field) {
257829
      switch (field) {
257826
      switch (field) {
257830
      case LOGISTICS_TRANSACTION_ID:
257827
      case LOGISTICS_TRANSACTION_ID:
257831
        return Long.valueOf(getLogisticsTransactionId());
257828
        return getLogisticsTransactionId();
257832
 
257829
 
257833
      }
257830
      }
257834
      throw new IllegalStateException();
257831
      throw new IllegalStateException();
257835
    }
257832
    }
257836
 
257833
 
Line 257858... Line 257855...
257858
 
257855
 
257859
    public boolean equals(isShipmentCod_args that) {
257856
    public boolean equals(isShipmentCod_args that) {
257860
      if (that == null)
257857
      if (that == null)
257861
        return false;
257858
        return false;
257862
 
257859
 
257863
      boolean this_present_logisticsTransactionId = true;
257860
      boolean this_present_logisticsTransactionId = true && this.isSetLogisticsTransactionId();
257864
      boolean that_present_logisticsTransactionId = true;
257861
      boolean that_present_logisticsTransactionId = true && that.isSetLogisticsTransactionId();
257865
      if (this_present_logisticsTransactionId || that_present_logisticsTransactionId) {
257862
      if (this_present_logisticsTransactionId || that_present_logisticsTransactionId) {
257866
        if (!(this_present_logisticsTransactionId && that_present_logisticsTransactionId))
257863
        if (!(this_present_logisticsTransactionId && that_present_logisticsTransactionId))
257867
          return false;
257864
          return false;
257868
        if (this.logisticsTransactionId != that.logisticsTransactionId)
257865
        if (!this.logisticsTransactionId.equals(that.logisticsTransactionId))
257869
          return false;
257866
          return false;
257870
      }
257867
      }
257871
 
257868
 
257872
      return true;
257869
      return true;
257873
    }
257870
    }
Line 257911... Line 257908...
257911
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
257908
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
257912
          break;
257909
          break;
257913
        }
257910
        }
257914
        switch (field.id) {
257911
        switch (field.id) {
257915
          case 1: // LOGISTICS_TRANSACTION_ID
257912
          case 1: // LOGISTICS_TRANSACTION_ID
257916
            if (field.type == org.apache.thrift.protocol.TType.I64) {
257913
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
257917
              this.logisticsTransactionId = iprot.readI64();
257914
              this.logisticsTransactionId = iprot.readString();
257918
              setLogisticsTransactionIdIsSet(true);
-
 
257919
            } else { 
257915
            } else { 
257920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
257916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
257921
            }
257917
            }
257922
            break;
257918
            break;
257923
          default:
257919
          default:
Line 257931... Line 257927...
257931
 
257927
 
257932
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
257928
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
257933
      validate();
257929
      validate();
257934
 
257930
 
257935
      oprot.writeStructBegin(STRUCT_DESC);
257931
      oprot.writeStructBegin(STRUCT_DESC);
-
 
257932
      if (this.logisticsTransactionId != null) {
257936
      oprot.writeFieldBegin(LOGISTICS_TRANSACTION_ID_FIELD_DESC);
257933
        oprot.writeFieldBegin(LOGISTICS_TRANSACTION_ID_FIELD_DESC);
257937
      oprot.writeI64(this.logisticsTransactionId);
257934
        oprot.writeString(this.logisticsTransactionId);
257938
      oprot.writeFieldEnd();
257935
        oprot.writeFieldEnd();
-
 
257936
      }
257939
      oprot.writeFieldStop();
257937
      oprot.writeFieldStop();
257940
      oprot.writeStructEnd();
257938
      oprot.writeStructEnd();
257941
    }
257939
    }
257942
 
257940
 
257943
    @Override
257941
    @Override
257944
    public String toString() {
257942
    public String toString() {
257945
      StringBuilder sb = new StringBuilder("isShipmentCod_args(");
257943
      StringBuilder sb = new StringBuilder("isShipmentCod_args(");
257946
      boolean first = true;
257944
      boolean first = true;
257947
 
257945
 
257948
      sb.append("logisticsTransactionId:");
257946
      sb.append("logisticsTransactionId:");
-
 
257947
      if (this.logisticsTransactionId == null) {
-
 
257948
        sb.append("null");
-
 
257949
      } else {
257949
      sb.append(this.logisticsTransactionId);
257950
        sb.append(this.logisticsTransactionId);
-
 
257951
      }
257950
      first = false;
257952
      first = false;
257951
      sb.append(")");
257953
      sb.append(")");
257952
      return sb.toString();
257954
      return sb.toString();
257953
    }
257955
    }
257954
 
257956
 
Line 257964... Line 257966...
257964
      }
257966
      }
257965
    }
257967
    }
257966
 
257968
 
257967
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
257969
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
257968
      try {
257970
      try {
257969
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
257970
        __isset_bit_vector = new BitSet(1);
-
 
257971
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
257971
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
257972
      } catch (org.apache.thrift.TException te) {
257972
      } catch (org.apache.thrift.TException te) {
257973
        throw new java.io.IOException(te);
257973
        throw new java.io.IOException(te);
257974
      }
257974
      }
257975
    }
257975
    }