Subversion Repositories SmartDukaan

Rev

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

Rev 22452 Rev 22749
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;
-
 
1288
 
1287
  }
1289
  }
1288
 
1290
 
1289
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1291
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1290
 
1292
 
1291
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1293
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1932... Line 1934...
1932
 
1934
 
1933
    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;
1934
 
1936
 
1935
    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;
1936
 
1938
 
-
 
1939
    public void isShipmentCod(long logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isShipmentCod_call> resultHandler) throws org.apache.thrift.TException;
-
 
1940
 
1937
  }
1941
  }
1938
 
1942
 
1939
  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 {
1940
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1944
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1941
      public Factory() {}
1945
      public Factory() {}
Line 9935... Line 9939...
9935
        return result.success;
9939
        return result.success;
9936
      }
9940
      }
9937
      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");
9938
    }
9942
    }
9939
 
9943
 
-
 
9944
    public boolean isShipmentCod(long logisticsTransactionId) throws org.apache.thrift.TException
-
 
9945
    {
-
 
9946
      send_isShipmentCod(logisticsTransactionId);
-
 
9947
      return recv_isShipmentCod();
-
 
9948
    }
-
 
9949
 
-
 
9950
    public void send_isShipmentCod(long logisticsTransactionId) throws org.apache.thrift.TException
-
 
9951
    {
-
 
9952
      isShipmentCod_args args = new isShipmentCod_args();
-
 
9953
      args.setLogisticsTransactionId(logisticsTransactionId);
-
 
9954
      sendBase("isShipmentCod", args);
-
 
9955
    }
-
 
9956
 
-
 
9957
    public boolean recv_isShipmentCod() throws org.apache.thrift.TException
-
 
9958
    {
-
 
9959
      isShipmentCod_result result = new isShipmentCod_result();
-
 
9960
      receiveBase(result, "isShipmentCod");
-
 
9961
      if (result.isSetSuccess()) {
-
 
9962
        return result.success;
-
 
9963
      }
-
 
9964
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isShipmentCod failed: unknown result");
-
 
9965
    }
-
 
9966
 
9940
  }
9967
  }
9941
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9968
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9942
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9969
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9943
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9970
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9944
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
9971
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 21207... Line 21234...
21207
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
21234
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
21208
        return (new Client(prot)).recv_markOrderForRegisteredGstInvoice();
21235
        return (new Client(prot)).recv_markOrderForRegisteredGstInvoice();
21209
      }
21236
      }
21210
    }
21237
    }
21211
 
21238
 
-
 
21239
    public void isShipmentCod(long logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<isShipmentCod_call> resultHandler) throws org.apache.thrift.TException {
-
 
21240
      checkReady();
-
 
21241
      isShipmentCod_call method_call = new isShipmentCod_call(logisticsTransactionId, resultHandler, this, ___protocolFactory, ___transport);
-
 
21242
      this.___currentMethod = method_call;
-
 
21243
      ___manager.call(method_call);
-
 
21244
    }
-
 
21245
 
-
 
21246
    public static class isShipmentCod_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
21247
      private long 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 {
-
 
21249
        super(client, protocolFactory, transport, resultHandler, false);
-
 
21250
        this.logisticsTransactionId = logisticsTransactionId;
-
 
21251
      }
-
 
21252
 
-
 
21253
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
21254
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isShipmentCod", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
21255
        isShipmentCod_args args = new isShipmentCod_args();
-
 
21256
        args.setLogisticsTransactionId(logisticsTransactionId);
-
 
21257
        args.write(prot);
-
 
21258
        prot.writeMessageEnd();
-
 
21259
      }
-
 
21260
 
-
 
21261
      public boolean getResult() throws org.apache.thrift.TException {
-
 
21262
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
21263
          throw new IllegalStateException("Method call not finished!");
-
 
21264
        }
-
 
21265
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
21266
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
21267
        return (new Client(prot)).recv_isShipmentCod();
-
 
21268
      }
-
 
21269
    }
-
 
21270
 
21212
  }
21271
  }
21213
 
21272
 
21214
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
21273
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
21215
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
21274
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
21216
    public Processor(I iface) {
21275
    public Processor(I iface) {
Line 21543... Line 21602...
21543
      processMap.put("getStatsForAssociates", new getStatsForAssociates());
21602
      processMap.put("getStatsForAssociates", new getStatsForAssociates());
21544
      processMap.put("getmypmsaprofile", new getmypmsaprofile());
21603
      processMap.put("getmypmsaprofile", new getmypmsaprofile());
21545
      processMap.put("creditUserWallet", new creditUserWallet());
21604
      processMap.put("creditUserWallet", new creditUserWallet());
21546
      processMap.put("getPaginatedRechargeOrders", new getPaginatedRechargeOrders());
21605
      processMap.put("getPaginatedRechargeOrders", new getPaginatedRechargeOrders());
21547
      processMap.put("markOrderForRegisteredGstInvoice", new markOrderForRegisteredGstInvoice());
21606
      processMap.put("markOrderForRegisteredGstInvoice", new markOrderForRegisteredGstInvoice());
-
 
21607
      processMap.put("isShipmentCod", new isShipmentCod());
21548
      return processMap;
21608
      return processMap;
21549
    }
21609
    }
21550
 
21610
 
21551
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
21611
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
21552
      public createTransaction() {
21612
      public createTransaction() {
Line 27355... Line 27415...
27355
        result.setSuccessIsSet(true);
27415
        result.setSuccessIsSet(true);
27356
        return result;
27416
        return result;
27357
      }
27417
      }
27358
    }
27418
    }
27359
 
27419
 
-
 
27420
    private static class isShipmentCod<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isShipmentCod_args> {
-
 
27421
      public isShipmentCod() {
-
 
27422
        super("isShipmentCod");
-
 
27423
      }
-
 
27424
 
-
 
27425
      protected isShipmentCod_args getEmptyArgsInstance() {
-
 
27426
        return new isShipmentCod_args();
-
 
27427
      }
-
 
27428
 
-
 
27429
      protected isShipmentCod_result getResult(I iface, isShipmentCod_args args) throws org.apache.thrift.TException {
-
 
27430
        isShipmentCod_result result = new isShipmentCod_result();
-
 
27431
        result.success = iface.isShipmentCod(args.logisticsTransactionId);
-
 
27432
        result.setSuccessIsSet(true);
-
 
27433
        return result;
-
 
27434
      }
-
 
27435
    }
-
 
27436
 
27360
  }
27437
  }
27361
 
27438
 
27362
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
27439
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
27363
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
27440
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
27364
 
27441
 
Line 257577... Line 257654...
257577
      boolean first = true;
257654
      boolean first = true;
257578
 
257655
 
257579
      sb.append("success:");
257656
      sb.append("success:");
257580
      sb.append(this.success);
257657
      sb.append(this.success);
257581
      first = false;
257658
      first = false;
-
 
257659
      sb.append(")");
-
 
257660
      return sb.toString();
-
 
257661
    }
-
 
257662
 
-
 
257663
    public void validate() throws org.apache.thrift.TException {
-
 
257664
      // check for required fields
-
 
257665
    }
-
 
257666
 
-
 
257667
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
257668
      try {
-
 
257669
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
257670
      } catch (org.apache.thrift.TException te) {
-
 
257671
        throw new java.io.IOException(te);
-
 
257672
      }
-
 
257673
    }
-
 
257674
 
-
 
257675
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
257676
      try {
-
 
257677
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
257678
      } catch (org.apache.thrift.TException te) {
-
 
257679
        throw new java.io.IOException(te);
-
 
257680
      }
-
 
257681
    }
-
 
257682
 
-
 
257683
  }
-
 
257684
 
-
 
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");
-
 
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);
-
 
257689
 
-
 
257690
    private long logisticsTransactionId; // required
-
 
257691
 
-
 
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 {
-
 
257694
      LOGISTICS_TRANSACTION_ID((short)1, "logisticsTransactionId");
-
 
257695
 
-
 
257696
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
257697
 
-
 
257698
      static {
-
 
257699
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
257700
          byName.put(field.getFieldName(), field);
-
 
257701
        }
-
 
257702
      }
-
 
257703
 
-
 
257704
      /**
-
 
257705
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
257706
       */
-
 
257707
      public static _Fields findByThriftId(int fieldId) {
-
 
257708
        switch(fieldId) {
-
 
257709
          case 1: // LOGISTICS_TRANSACTION_ID
-
 
257710
            return LOGISTICS_TRANSACTION_ID;
-
 
257711
          default:
-
 
257712
            return null;
-
 
257713
        }
-
 
257714
      }
-
 
257715
 
-
 
257716
      /**
-
 
257717
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
257718
       * if it is not found.
-
 
257719
       */
-
 
257720
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
257721
        _Fields fields = findByThriftId(fieldId);
-
 
257722
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
257723
        return fields;
-
 
257724
      }
-
 
257725
 
-
 
257726
      /**
-
 
257727
       * Find the _Fields constant that matches name, or null if its not found.
-
 
257728
       */
-
 
257729
      public static _Fields findByName(String name) {
-
 
257730
        return byName.get(name);
-
 
257731
      }
-
 
257732
 
-
 
257733
      private final short _thriftId;
-
 
257734
      private final String _fieldName;
-
 
257735
 
-
 
257736
      _Fields(short thriftId, String fieldName) {
-
 
257737
        _thriftId = thriftId;
-
 
257738
        _fieldName = fieldName;
-
 
257739
      }
-
 
257740
 
-
 
257741
      public short getThriftFieldId() {
-
 
257742
        return _thriftId;
-
 
257743
      }
-
 
257744
 
-
 
257745
      public String getFieldName() {
-
 
257746
        return _fieldName;
-
 
257747
      }
-
 
257748
    }
-
 
257749
 
-
 
257750
    // isset id assignments
-
 
257751
    private static final int __LOGISTICSTRANSACTIONID_ISSET_ID = 0;
-
 
257752
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
257753
 
-
 
257754
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
257755
    static {
-
 
257756
      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, 
-
 
257758
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
257759
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
257760
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isShipmentCod_args.class, metaDataMap);
-
 
257761
    }
-
 
257762
 
-
 
257763
    public isShipmentCod_args() {
-
 
257764
    }
-
 
257765
 
-
 
257766
    public isShipmentCod_args(
-
 
257767
      long logisticsTransactionId)
-
 
257768
    {
-
 
257769
      this();
-
 
257770
      this.logisticsTransactionId = logisticsTransactionId;
-
 
257771
      setLogisticsTransactionIdIsSet(true);
-
 
257772
    }
-
 
257773
 
-
 
257774
    /**
-
 
257775
     * Performs a deep copy on <i>other</i>.
-
 
257776
     */
-
 
257777
    public isShipmentCod_args(isShipmentCod_args other) {
-
 
257778
      __isset_bit_vector.clear();
-
 
257779
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
257780
      this.logisticsTransactionId = other.logisticsTransactionId;
-
 
257781
    }
-
 
257782
 
-
 
257783
    public isShipmentCod_args deepCopy() {
-
 
257784
      return new isShipmentCod_args(this);
-
 
257785
    }
-
 
257786
 
-
 
257787
    @Override
-
 
257788
    public void clear() {
-
 
257789
      setLogisticsTransactionIdIsSet(false);
-
 
257790
      this.logisticsTransactionId = 0;
-
 
257791
    }
-
 
257792
 
-
 
257793
    public long getLogisticsTransactionId() {
-
 
257794
      return this.logisticsTransactionId;
-
 
257795
    }
-
 
257796
 
-
 
257797
    public void setLogisticsTransactionId(long logisticsTransactionId) {
-
 
257798
      this.logisticsTransactionId = logisticsTransactionId;
-
 
257799
      setLogisticsTransactionIdIsSet(true);
-
 
257800
    }
-
 
257801
 
-
 
257802
    public void unsetLogisticsTransactionId() {
-
 
257803
      __isset_bit_vector.clear(__LOGISTICSTRANSACTIONID_ISSET_ID);
-
 
257804
    }
-
 
257805
 
-
 
257806
    /** Returns true if field logisticsTransactionId is set (has been assigned a value) and false otherwise */
-
 
257807
    public boolean isSetLogisticsTransactionId() {
-
 
257808
      return __isset_bit_vector.get(__LOGISTICSTRANSACTIONID_ISSET_ID);
-
 
257809
    }
-
 
257810
 
-
 
257811
    public void setLogisticsTransactionIdIsSet(boolean value) {
-
 
257812
      __isset_bit_vector.set(__LOGISTICSTRANSACTIONID_ISSET_ID, value);
-
 
257813
    }
-
 
257814
 
-
 
257815
    public void setFieldValue(_Fields field, Object value) {
-
 
257816
      switch (field) {
-
 
257817
      case LOGISTICS_TRANSACTION_ID:
-
 
257818
        if (value == null) {
-
 
257819
          unsetLogisticsTransactionId();
-
 
257820
        } else {
-
 
257821
          setLogisticsTransactionId((Long)value);
-
 
257822
        }
-
 
257823
        break;
-
 
257824
 
-
 
257825
      }
-
 
257826
    }
-
 
257827
 
-
 
257828
    public Object getFieldValue(_Fields field) {
-
 
257829
      switch (field) {
-
 
257830
      case LOGISTICS_TRANSACTION_ID:
-
 
257831
        return Long.valueOf(getLogisticsTransactionId());
-
 
257832
 
-
 
257833
      }
-
 
257834
      throw new IllegalStateException();
-
 
257835
    }
-
 
257836
 
-
 
257837
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
257838
    public boolean isSet(_Fields field) {
-
 
257839
      if (field == null) {
-
 
257840
        throw new IllegalArgumentException();
-
 
257841
      }
-
 
257842
 
-
 
257843
      switch (field) {
-
 
257844
      case LOGISTICS_TRANSACTION_ID:
-
 
257845
        return isSetLogisticsTransactionId();
-
 
257846
      }
-
 
257847
      throw new IllegalStateException();
-
 
257848
    }
-
 
257849
 
-
 
257850
    @Override
-
 
257851
    public boolean equals(Object that) {
-
 
257852
      if (that == null)
-
 
257853
        return false;
-
 
257854
      if (that instanceof isShipmentCod_args)
-
 
257855
        return this.equals((isShipmentCod_args)that);
-
 
257856
      return false;
-
 
257857
    }
-
 
257858
 
-
 
257859
    public boolean equals(isShipmentCod_args that) {
-
 
257860
      if (that == null)
-
 
257861
        return false;
-
 
257862
 
-
 
257863
      boolean this_present_logisticsTransactionId = true;
-
 
257864
      boolean that_present_logisticsTransactionId = true;
-
 
257865
      if (this_present_logisticsTransactionId || that_present_logisticsTransactionId) {
-
 
257866
        if (!(this_present_logisticsTransactionId && that_present_logisticsTransactionId))
-
 
257867
          return false;
-
 
257868
        if (this.logisticsTransactionId != that.logisticsTransactionId)
-
 
257869
          return false;
-
 
257870
      }
-
 
257871
 
-
 
257872
      return true;
-
 
257873
    }
-
 
257874
 
-
 
257875
    @Override
-
 
257876
    public int hashCode() {
-
 
257877
      return 0;
-
 
257878
    }
-
 
257879
 
-
 
257880
    public int compareTo(isShipmentCod_args other) {
-
 
257881
      if (!getClass().equals(other.getClass())) {
-
 
257882
        return getClass().getName().compareTo(other.getClass().getName());
-
 
257883
      }
-
 
257884
 
-
 
257885
      int lastComparison = 0;
-
 
257886
      isShipmentCod_args typedOther = (isShipmentCod_args)other;
-
 
257887
 
-
 
257888
      lastComparison = Boolean.valueOf(isSetLogisticsTransactionId()).compareTo(typedOther.isSetLogisticsTransactionId());
-
 
257889
      if (lastComparison != 0) {
-
 
257890
        return lastComparison;
-
 
257891
      }
-
 
257892
      if (isSetLogisticsTransactionId()) {
-
 
257893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTransactionId, typedOther.logisticsTransactionId);
-
 
257894
        if (lastComparison != 0) {
-
 
257895
          return lastComparison;
-
 
257896
        }
-
 
257897
      }
-
 
257898
      return 0;
-
 
257899
    }
-
 
257900
 
-
 
257901
    public _Fields fieldForId(int fieldId) {
-
 
257902
      return _Fields.findByThriftId(fieldId);
-
 
257903
    }
-
 
257904
 
-
 
257905
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
257906
      org.apache.thrift.protocol.TField field;
-
 
257907
      iprot.readStructBegin();
-
 
257908
      while (true)
-
 
257909
      {
-
 
257910
        field = iprot.readFieldBegin();
-
 
257911
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
257912
          break;
-
 
257913
        }
-
 
257914
        switch (field.id) {
-
 
257915
          case 1: // LOGISTICS_TRANSACTION_ID
-
 
257916
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
257917
              this.logisticsTransactionId = iprot.readI64();
-
 
257918
              setLogisticsTransactionIdIsSet(true);
-
 
257919
            } else { 
-
 
257920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
257921
            }
-
 
257922
            break;
-
 
257923
          default:
-
 
257924
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
257925
        }
-
 
257926
        iprot.readFieldEnd();
-
 
257927
      }
-
 
257928
      iprot.readStructEnd();
-
 
257929
      validate();
-
 
257930
    }
-
 
257931
 
-
 
257932
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
257933
      validate();
-
 
257934
 
-
 
257935
      oprot.writeStructBegin(STRUCT_DESC);
-
 
257936
      oprot.writeFieldBegin(LOGISTICS_TRANSACTION_ID_FIELD_DESC);
-
 
257937
      oprot.writeI64(this.logisticsTransactionId);
-
 
257938
      oprot.writeFieldEnd();
-
 
257939
      oprot.writeFieldStop();
-
 
257940
      oprot.writeStructEnd();
-
 
257941
    }
-
 
257942
 
-
 
257943
    @Override
-
 
257944
    public String toString() {
-
 
257945
      StringBuilder sb = new StringBuilder("isShipmentCod_args(");
-
 
257946
      boolean first = true;
-
 
257947
 
-
 
257948
      sb.append("logisticsTransactionId:");
-
 
257949
      sb.append(this.logisticsTransactionId);
-
 
257950
      first = false;
-
 
257951
      sb.append(")");
-
 
257952
      return sb.toString();
-
 
257953
    }
-
 
257954
 
-
 
257955
    public void validate() throws org.apache.thrift.TException {
-
 
257956
      // check for required fields
-
 
257957
    }
-
 
257958
 
-
 
257959
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
257960
      try {
-
 
257961
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
257962
      } catch (org.apache.thrift.TException te) {
-
 
257963
        throw new java.io.IOException(te);
-
 
257964
      }
-
 
257965
    }
-
 
257966
 
-
 
257967
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
257968
      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)));
-
 
257972
      } catch (org.apache.thrift.TException te) {
-
 
257973
        throw new java.io.IOException(te);
-
 
257974
      }
-
 
257975
    }
-
 
257976
 
-
 
257977
  }
-
 
257978
 
-
 
257979
  public static class isShipmentCod_result implements org.apache.thrift.TBase<isShipmentCod_result, isShipmentCod_result._Fields>, java.io.Serializable, Cloneable   {
-
 
257980
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isShipmentCod_result");
-
 
257981
 
-
 
257982
    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);
-
 
257983
 
-
 
257984
    private boolean success; // required
-
 
257985
 
-
 
257986
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
257987
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
257988
      SUCCESS((short)0, "success");
-
 
257989
 
-
 
257990
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
257991
 
-
 
257992
      static {
-
 
257993
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
257994
          byName.put(field.getFieldName(), field);
-
 
257995
        }
-
 
257996
      }
-
 
257997
 
-
 
257998
      /**
-
 
257999
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
258000
       */
-
 
258001
      public static _Fields findByThriftId(int fieldId) {
-
 
258002
        switch(fieldId) {
-
 
258003
          case 0: // SUCCESS
-
 
258004
            return SUCCESS;
-
 
258005
          default:
-
 
258006
            return null;
-
 
258007
        }
-
 
258008
      }
-
 
258009
 
-
 
258010
      /**
-
 
258011
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
258012
       * if it is not found.
-
 
258013
       */
-
 
258014
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
258015
        _Fields fields = findByThriftId(fieldId);
-
 
258016
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
258017
        return fields;
-
 
258018
      }
-
 
258019
 
-
 
258020
      /**
-
 
258021
       * Find the _Fields constant that matches name, or null if its not found.
-
 
258022
       */
-
 
258023
      public static _Fields findByName(String name) {
-
 
258024
        return byName.get(name);
-
 
258025
      }
-
 
258026
 
-
 
258027
      private final short _thriftId;
-
 
258028
      private final String _fieldName;
-
 
258029
 
-
 
258030
      _Fields(short thriftId, String fieldName) {
-
 
258031
        _thriftId = thriftId;
-
 
258032
        _fieldName = fieldName;
-
 
258033
      }
-
 
258034
 
-
 
258035
      public short getThriftFieldId() {
-
 
258036
        return _thriftId;
-
 
258037
      }
-
 
258038
 
-
 
258039
      public String getFieldName() {
-
 
258040
        return _fieldName;
-
 
258041
      }
-
 
258042
    }
-
 
258043
 
-
 
258044
    // isset id assignments
-
 
258045
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
258046
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
258047
 
-
 
258048
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
258049
    static {
-
 
258050
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
258051
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
258052
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
258053
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
258054
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isShipmentCod_result.class, metaDataMap);
-
 
258055
    }
-
 
258056
 
-
 
258057
    public isShipmentCod_result() {
-
 
258058
    }
-
 
258059
 
-
 
258060
    public isShipmentCod_result(
-
 
258061
      boolean success)
-
 
258062
    {
-
 
258063
      this();
-
 
258064
      this.success = success;
-
 
258065
      setSuccessIsSet(true);
-
 
258066
    }
-
 
258067
 
-
 
258068
    /**
-
 
258069
     * Performs a deep copy on <i>other</i>.
-
 
258070
     */
-
 
258071
    public isShipmentCod_result(isShipmentCod_result other) {
-
 
258072
      __isset_bit_vector.clear();
-
 
258073
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
258074
      this.success = other.success;
-
 
258075
    }
-
 
258076
 
-
 
258077
    public isShipmentCod_result deepCopy() {
-
 
258078
      return new isShipmentCod_result(this);
-
 
258079
    }
-
 
258080
 
-
 
258081
    @Override
-
 
258082
    public void clear() {
-
 
258083
      setSuccessIsSet(false);
-
 
258084
      this.success = false;
-
 
258085
    }
-
 
258086
 
-
 
258087
    public boolean isSuccess() {
-
 
258088
      return this.success;
-
 
258089
    }
-
 
258090
 
-
 
258091
    public void setSuccess(boolean success) {
-
 
258092
      this.success = success;
-
 
258093
      setSuccessIsSet(true);
-
 
258094
    }
-
 
258095
 
-
 
258096
    public void unsetSuccess() {
-
 
258097
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
258098
    }
-
 
258099
 
-
 
258100
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
258101
    public boolean isSetSuccess() {
-
 
258102
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
258103
    }
-
 
258104
 
-
 
258105
    public void setSuccessIsSet(boolean value) {
-
 
258106
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
258107
    }
-
 
258108
 
-
 
258109
    public void setFieldValue(_Fields field, Object value) {
-
 
258110
      switch (field) {
-
 
258111
      case SUCCESS:
-
 
258112
        if (value == null) {
-
 
258113
          unsetSuccess();
-
 
258114
        } else {
-
 
258115
          setSuccess((Boolean)value);
-
 
258116
        }
-
 
258117
        break;
-
 
258118
 
-
 
258119
      }
-
 
258120
    }
-
 
258121
 
-
 
258122
    public Object getFieldValue(_Fields field) {
-
 
258123
      switch (field) {
-
 
258124
      case SUCCESS:
-
 
258125
        return Boolean.valueOf(isSuccess());
-
 
258126
 
-
 
258127
      }
-
 
258128
      throw new IllegalStateException();
-
 
258129
    }
-
 
258130
 
-
 
258131
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
258132
    public boolean isSet(_Fields field) {
-
 
258133
      if (field == null) {
-
 
258134
        throw new IllegalArgumentException();
-
 
258135
      }
-
 
258136
 
-
 
258137
      switch (field) {
-
 
258138
      case SUCCESS:
-
 
258139
        return isSetSuccess();
-
 
258140
      }
-
 
258141
      throw new IllegalStateException();
-
 
258142
    }
-
 
258143
 
-
 
258144
    @Override
-
 
258145
    public boolean equals(Object that) {
-
 
258146
      if (that == null)
-
 
258147
        return false;
-
 
258148
      if (that instanceof isShipmentCod_result)
-
 
258149
        return this.equals((isShipmentCod_result)that);
-
 
258150
      return false;
-
 
258151
    }
-
 
258152
 
-
 
258153
    public boolean equals(isShipmentCod_result that) {
-
 
258154
      if (that == null)
-
 
258155
        return false;
-
 
258156
 
-
 
258157
      boolean this_present_success = true;
-
 
258158
      boolean that_present_success = true;
-
 
258159
      if (this_present_success || that_present_success) {
-
 
258160
        if (!(this_present_success && that_present_success))
-
 
258161
          return false;
-
 
258162
        if (this.success != that.success)
-
 
258163
          return false;
-
 
258164
      }
-
 
258165
 
-
 
258166
      return true;
-
 
258167
    }
-
 
258168
 
-
 
258169
    @Override
-
 
258170
    public int hashCode() {
-
 
258171
      return 0;
-
 
258172
    }
-
 
258173
 
-
 
258174
    public int compareTo(isShipmentCod_result other) {
-
 
258175
      if (!getClass().equals(other.getClass())) {
-
 
258176
        return getClass().getName().compareTo(other.getClass().getName());
-
 
258177
      }
-
 
258178
 
-
 
258179
      int lastComparison = 0;
-
 
258180
      isShipmentCod_result typedOther = (isShipmentCod_result)other;
-
 
258181
 
-
 
258182
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
258183
      if (lastComparison != 0) {
-
 
258184
        return lastComparison;
-
 
258185
      }
-
 
258186
      if (isSetSuccess()) {
-
 
258187
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
258188
        if (lastComparison != 0) {
-
 
258189
          return lastComparison;
-
 
258190
        }
-
 
258191
      }
-
 
258192
      return 0;
-
 
258193
    }
-
 
258194
 
-
 
258195
    public _Fields fieldForId(int fieldId) {
-
 
258196
      return _Fields.findByThriftId(fieldId);
-
 
258197
    }
-
 
258198
 
-
 
258199
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
258200
      org.apache.thrift.protocol.TField field;
-
 
258201
      iprot.readStructBegin();
-
 
258202
      while (true)
-
 
258203
      {
-
 
258204
        field = iprot.readFieldBegin();
-
 
258205
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
258206
          break;
-
 
258207
        }
-
 
258208
        switch (field.id) {
-
 
258209
          case 0: // SUCCESS
-
 
258210
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
258211
              this.success = iprot.readBool();
-
 
258212
              setSuccessIsSet(true);
-
 
258213
            } else { 
-
 
258214
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
258215
            }
-
 
258216
            break;
-
 
258217
          default:
-
 
258218
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
258219
        }
-
 
258220
        iprot.readFieldEnd();
-
 
258221
      }
-
 
258222
      iprot.readStructEnd();
-
 
258223
      validate();
-
 
258224
    }
-
 
258225
 
-
 
258226
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
258227
      oprot.writeStructBegin(STRUCT_DESC);
-
 
258228
 
-
 
258229
      if (this.isSetSuccess()) {
-
 
258230
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
258231
        oprot.writeBool(this.success);
-
 
258232
        oprot.writeFieldEnd();
-
 
258233
      }
-
 
258234
      oprot.writeFieldStop();
-
 
258235
      oprot.writeStructEnd();
-
 
258236
    }
-
 
258237
 
-
 
258238
    @Override
-
 
258239
    public String toString() {
-
 
258240
      StringBuilder sb = new StringBuilder("isShipmentCod_result(");
-
 
258241
      boolean first = true;
-
 
258242
 
-
 
258243
      sb.append("success:");
-
 
258244
      sb.append(this.success);
-
 
258245
      first = false;
257582
      sb.append(")");
258246
      sb.append(")");
257583
      return sb.toString();
258247
      return sb.toString();
257584
    }
258248
    }
257585
 
258249
 
257586
    public void validate() throws org.apache.thrift.TException {
258250
    public void validate() throws org.apache.thrift.TException {