Subversion Repositories SmartDukaan

Rev

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

Rev 20735 Rev 20744
Line 1248... Line 1248...
1248
 
1248
 
1249
    public boolean refundReturnOrder(ReturnOrderInfo returnOrderInfo, List<Attribute> attributes) throws org.apache.thrift.TException;
1249
    public boolean refundReturnOrder(ReturnOrderInfo returnOrderInfo, List<Attribute> attributes) throws org.apache.thrift.TException;
1250
 
1250
 
1251
    public List<Long> addShipmentDelay(List<ShipmentDelayDetail> shipmentDelayDetail) throws org.apache.thrift.TException;
1251
    public List<Long> addShipmentDelay(List<ShipmentDelayDetail> shipmentDelayDetail) throws org.apache.thrift.TException;
1252
 
1252
 
-
 
1253
    public ShipmentLogisticsCostDetail getCostDetailForLogisticsTxnId(String logisticsTxnId) throws org.apache.thrift.TException;
-
 
1254
 
1253
  }
1255
  }
1254
 
1256
 
1255
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1257
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1256
 
1258
 
1257
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1259
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1864... Line 1866...
1864
 
1866
 
1865
    public void refundReturnOrder(ReturnOrderInfo returnOrderInfo, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundReturnOrder_call> resultHandler) throws org.apache.thrift.TException;
1867
    public void refundReturnOrder(ReturnOrderInfo returnOrderInfo, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundReturnOrder_call> resultHandler) throws org.apache.thrift.TException;
1866
 
1868
 
1867
    public void addShipmentDelay(List<ShipmentDelayDetail> shipmentDelayDetail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addShipmentDelay_call> resultHandler) throws org.apache.thrift.TException;
1869
    public void addShipmentDelay(List<ShipmentDelayDetail> shipmentDelayDetail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addShipmentDelay_call> resultHandler) throws org.apache.thrift.TException;
1868
 
1870
 
-
 
1871
    public void getCostDetailForLogisticsTxnId(String logisticsTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCostDetailForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException;
-
 
1872
 
1869
  }
1873
  }
1870
 
1874
 
1871
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1875
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1872
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1876
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1873
      public Factory() {}
1877
      public Factory() {}
Line 9462... Line 9466...
9462
        return result.success;
9466
        return result.success;
9463
      }
9467
      }
9464
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addShipmentDelay failed: unknown result");
9468
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addShipmentDelay failed: unknown result");
9465
    }
9469
    }
9466
 
9470
 
-
 
9471
    public ShipmentLogisticsCostDetail getCostDetailForLogisticsTxnId(String logisticsTxnId) throws org.apache.thrift.TException
-
 
9472
    {
-
 
9473
      send_getCostDetailForLogisticsTxnId(logisticsTxnId);
-
 
9474
      return recv_getCostDetailForLogisticsTxnId();
-
 
9475
    }
-
 
9476
 
-
 
9477
    public void send_getCostDetailForLogisticsTxnId(String logisticsTxnId) throws org.apache.thrift.TException
-
 
9478
    {
-
 
9479
      getCostDetailForLogisticsTxnId_args args = new getCostDetailForLogisticsTxnId_args();
-
 
9480
      args.setLogisticsTxnId(logisticsTxnId);
-
 
9481
      sendBase("getCostDetailForLogisticsTxnId", args);
-
 
9482
    }
-
 
9483
 
-
 
9484
    public ShipmentLogisticsCostDetail recv_getCostDetailForLogisticsTxnId() throws org.apache.thrift.TException
-
 
9485
    {
-
 
9486
      getCostDetailForLogisticsTxnId_result result = new getCostDetailForLogisticsTxnId_result();
-
 
9487
      receiveBase(result, "getCostDetailForLogisticsTxnId");
-
 
9488
      if (result.isSetSuccess()) {
-
 
9489
        return result.success;
-
 
9490
      }
-
 
9491
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCostDetailForLogisticsTxnId failed: unknown result");
-
 
9492
    }
-
 
9493
 
9467
  }
9494
  }
9468
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9495
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9469
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9496
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9470
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9497
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9471
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
9498
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 20148... Line 20175...
20148
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
20175
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
20149
        return (new Client(prot)).recv_addShipmentDelay();
20176
        return (new Client(prot)).recv_addShipmentDelay();
20150
      }
20177
      }
20151
    }
20178
    }
20152
 
20179
 
-
 
20180
    public void getCostDetailForLogisticsTxnId(String logisticsTxnId, org.apache.thrift.async.AsyncMethodCallback<getCostDetailForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException {
-
 
20181
      checkReady();
-
 
20182
      getCostDetailForLogisticsTxnId_call method_call = new getCostDetailForLogisticsTxnId_call(logisticsTxnId, resultHandler, this, ___protocolFactory, ___transport);
-
 
20183
      this.___currentMethod = method_call;
-
 
20184
      ___manager.call(method_call);
-
 
20185
    }
-
 
20186
 
-
 
20187
    public static class getCostDetailForLogisticsTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
20188
      private String logisticsTxnId;
-
 
20189
      public getCostDetailForLogisticsTxnId_call(String logisticsTxnId, org.apache.thrift.async.AsyncMethodCallback<getCostDetailForLogisticsTxnId_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 {
-
 
20190
        super(client, protocolFactory, transport, resultHandler, false);
-
 
20191
        this.logisticsTxnId = logisticsTxnId;
-
 
20192
      }
-
 
20193
 
-
 
20194
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
20195
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCostDetailForLogisticsTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
20196
        getCostDetailForLogisticsTxnId_args args = new getCostDetailForLogisticsTxnId_args();
-
 
20197
        args.setLogisticsTxnId(logisticsTxnId);
-
 
20198
        args.write(prot);
-
 
20199
        prot.writeMessageEnd();
-
 
20200
      }
-
 
20201
 
-
 
20202
      public ShipmentLogisticsCostDetail getResult() throws org.apache.thrift.TException {
-
 
20203
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
20204
          throw new IllegalStateException("Method call not finished!");
-
 
20205
        }
-
 
20206
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
20207
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
20208
        return (new Client(prot)).recv_getCostDetailForLogisticsTxnId();
-
 
20209
      }
-
 
20210
    }
-
 
20211
 
20153
  }
20212
  }
20154
 
20213
 
20155
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
20214
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
20156
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
20215
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
20157
    public Processor(I iface) {
20216
    public Processor(I iface) {
Line 20467... Line 20526...
20467
      processMap.put("getReturnPickupRequest", new getReturnPickupRequest());
20526
      processMap.put("getReturnPickupRequest", new getReturnPickupRequest());
20468
      processMap.put("splitReturnOrderInfo", new splitReturnOrderInfo());
20527
      processMap.put("splitReturnOrderInfo", new splitReturnOrderInfo());
20469
      processMap.put("deleteReturnOrder", new deleteReturnOrder());
20528
      processMap.put("deleteReturnOrder", new deleteReturnOrder());
20470
      processMap.put("refundReturnOrder", new refundReturnOrder());
20529
      processMap.put("refundReturnOrder", new refundReturnOrder());
20471
      processMap.put("addShipmentDelay", new addShipmentDelay());
20530
      processMap.put("addShipmentDelay", new addShipmentDelay());
-
 
20531
      processMap.put("getCostDetailForLogisticsTxnId", new getCostDetailForLogisticsTxnId());
20472
      return processMap;
20532
      return processMap;
20473
    }
20533
    }
20474
 
20534
 
20475
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
20535
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
20476
      public createTransaction() {
20536
      public createTransaction() {
Line 26002... Line 26062...
26002
        result.success = iface.addShipmentDelay(args.shipmentDelayDetail);
26062
        result.success = iface.addShipmentDelay(args.shipmentDelayDetail);
26003
        return result;
26063
        return result;
26004
      }
26064
      }
26005
    }
26065
    }
26006
 
26066
 
-
 
26067
    private static class getCostDetailForLogisticsTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCostDetailForLogisticsTxnId_args> {
-
 
26068
      public getCostDetailForLogisticsTxnId() {
-
 
26069
        super("getCostDetailForLogisticsTxnId");
-
 
26070
      }
-
 
26071
 
-
 
26072
      protected getCostDetailForLogisticsTxnId_args getEmptyArgsInstance() {
-
 
26073
        return new getCostDetailForLogisticsTxnId_args();
-
 
26074
      }
-
 
26075
 
-
 
26076
      protected getCostDetailForLogisticsTxnId_result getResult(I iface, getCostDetailForLogisticsTxnId_args args) throws org.apache.thrift.TException {
-
 
26077
        getCostDetailForLogisticsTxnId_result result = new getCostDetailForLogisticsTxnId_result();
-
 
26078
        result.success = iface.getCostDetailForLogisticsTxnId(args.logisticsTxnId);
-
 
26079
        return result;
-
 
26080
      }
-
 
26081
    }
-
 
26082
 
26007
  }
26083
  }
26008
 
26084
 
26009
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
26085
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
26010
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
26086
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
26011
 
26087
 
Line 244744... Line 244820...
244744
      boolean first = true;
244820
      boolean first = true;
244745
 
244821
 
244746
      sb.append("success:");
244822
      sb.append("success:");
244747
      if (this.success == null) {
244823
      if (this.success == null) {
244748
        sb.append("null");
244824
        sb.append("null");
-
 
244825
      } else {
-
 
244826
        sb.append(this.success);
-
 
244827
      }
-
 
244828
      first = false;
-
 
244829
      sb.append(")");
-
 
244830
      return sb.toString();
-
 
244831
    }
-
 
244832
 
-
 
244833
    public void validate() throws org.apache.thrift.TException {
-
 
244834
      // check for required fields
-
 
244835
    }
-
 
244836
 
-
 
244837
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
244838
      try {
-
 
244839
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
244840
      } catch (org.apache.thrift.TException te) {
-
 
244841
        throw new java.io.IOException(te);
-
 
244842
      }
-
 
244843
    }
-
 
244844
 
-
 
244845
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
244846
      try {
-
 
244847
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
244848
      } catch (org.apache.thrift.TException te) {
-
 
244849
        throw new java.io.IOException(te);
-
 
244850
      }
-
 
244851
    }
-
 
244852
 
-
 
244853
  }
-
 
244854
 
-
 
244855
  public static class getCostDetailForLogisticsTxnId_args implements org.apache.thrift.TBase<getCostDetailForLogisticsTxnId_args, getCostDetailForLogisticsTxnId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
244856
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostDetailForLogisticsTxnId_args");
-
 
244857
 
-
 
244858
    private static final org.apache.thrift.protocol.TField LOGISTICS_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTxnId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
244859
 
-
 
244860
    private String logisticsTxnId; // required
-
 
244861
 
-
 
244862
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
244863
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
244864
      LOGISTICS_TXN_ID((short)1, "logisticsTxnId");
-
 
244865
 
-
 
244866
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
244867
 
-
 
244868
      static {
-
 
244869
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
244870
          byName.put(field.getFieldName(), field);
-
 
244871
        }
-
 
244872
      }
-
 
244873
 
-
 
244874
      /**
-
 
244875
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
244876
       */
-
 
244877
      public static _Fields findByThriftId(int fieldId) {
-
 
244878
        switch(fieldId) {
-
 
244879
          case 1: // LOGISTICS_TXN_ID
-
 
244880
            return LOGISTICS_TXN_ID;
-
 
244881
          default:
-
 
244882
            return null;
-
 
244883
        }
-
 
244884
      }
-
 
244885
 
-
 
244886
      /**
-
 
244887
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
244888
       * if it is not found.
-
 
244889
       */
-
 
244890
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
244891
        _Fields fields = findByThriftId(fieldId);
-
 
244892
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
244893
        return fields;
-
 
244894
      }
-
 
244895
 
-
 
244896
      /**
-
 
244897
       * Find the _Fields constant that matches name, or null if its not found.
-
 
244898
       */
-
 
244899
      public static _Fields findByName(String name) {
-
 
244900
        return byName.get(name);
-
 
244901
      }
-
 
244902
 
-
 
244903
      private final short _thriftId;
-
 
244904
      private final String _fieldName;
-
 
244905
 
-
 
244906
      _Fields(short thriftId, String fieldName) {
-
 
244907
        _thriftId = thriftId;
-
 
244908
        _fieldName = fieldName;
-
 
244909
      }
-
 
244910
 
-
 
244911
      public short getThriftFieldId() {
-
 
244912
        return _thriftId;
-
 
244913
      }
-
 
244914
 
-
 
244915
      public String getFieldName() {
-
 
244916
        return _fieldName;
-
 
244917
      }
-
 
244918
    }
-
 
244919
 
-
 
244920
    // isset id assignments
-
 
244921
 
-
 
244922
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
244923
    static {
-
 
244924
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
244925
      tmpMap.put(_Fields.LOGISTICS_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
244926
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
244927
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
244928
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostDetailForLogisticsTxnId_args.class, metaDataMap);
-
 
244929
    }
-
 
244930
 
-
 
244931
    public getCostDetailForLogisticsTxnId_args() {
-
 
244932
    }
-
 
244933
 
-
 
244934
    public getCostDetailForLogisticsTxnId_args(
-
 
244935
      String logisticsTxnId)
-
 
244936
    {
-
 
244937
      this();
-
 
244938
      this.logisticsTxnId = logisticsTxnId;
-
 
244939
    }
-
 
244940
 
-
 
244941
    /**
-
 
244942
     * Performs a deep copy on <i>other</i>.
-
 
244943
     */
-
 
244944
    public getCostDetailForLogisticsTxnId_args(getCostDetailForLogisticsTxnId_args other) {
-
 
244945
      if (other.isSetLogisticsTxnId()) {
-
 
244946
        this.logisticsTxnId = other.logisticsTxnId;
-
 
244947
      }
-
 
244948
    }
-
 
244949
 
-
 
244950
    public getCostDetailForLogisticsTxnId_args deepCopy() {
-
 
244951
      return new getCostDetailForLogisticsTxnId_args(this);
-
 
244952
    }
-
 
244953
 
-
 
244954
    @Override
-
 
244955
    public void clear() {
-
 
244956
      this.logisticsTxnId = null;
-
 
244957
    }
-
 
244958
 
-
 
244959
    public String getLogisticsTxnId() {
-
 
244960
      return this.logisticsTxnId;
-
 
244961
    }
-
 
244962
 
-
 
244963
    public void setLogisticsTxnId(String logisticsTxnId) {
-
 
244964
      this.logisticsTxnId = logisticsTxnId;
-
 
244965
    }
-
 
244966
 
-
 
244967
    public void unsetLogisticsTxnId() {
-
 
244968
      this.logisticsTxnId = null;
-
 
244969
    }
-
 
244970
 
-
 
244971
    /** Returns true if field logisticsTxnId is set (has been assigned a value) and false otherwise */
-
 
244972
    public boolean isSetLogisticsTxnId() {
-
 
244973
      return this.logisticsTxnId != null;
-
 
244974
    }
-
 
244975
 
-
 
244976
    public void setLogisticsTxnIdIsSet(boolean value) {
-
 
244977
      if (!value) {
-
 
244978
        this.logisticsTxnId = null;
-
 
244979
      }
-
 
244980
    }
-
 
244981
 
-
 
244982
    public void setFieldValue(_Fields field, Object value) {
-
 
244983
      switch (field) {
-
 
244984
      case LOGISTICS_TXN_ID:
-
 
244985
        if (value == null) {
-
 
244986
          unsetLogisticsTxnId();
-
 
244987
        } else {
-
 
244988
          setLogisticsTxnId((String)value);
-
 
244989
        }
-
 
244990
        break;
-
 
244991
 
-
 
244992
      }
-
 
244993
    }
-
 
244994
 
-
 
244995
    public Object getFieldValue(_Fields field) {
-
 
244996
      switch (field) {
-
 
244997
      case LOGISTICS_TXN_ID:
-
 
244998
        return getLogisticsTxnId();
-
 
244999
 
-
 
245000
      }
-
 
245001
      throw new IllegalStateException();
-
 
245002
    }
-
 
245003
 
-
 
245004
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
245005
    public boolean isSet(_Fields field) {
-
 
245006
      if (field == null) {
-
 
245007
        throw new IllegalArgumentException();
-
 
245008
      }
-
 
245009
 
-
 
245010
      switch (field) {
-
 
245011
      case LOGISTICS_TXN_ID:
-
 
245012
        return isSetLogisticsTxnId();
-
 
245013
      }
-
 
245014
      throw new IllegalStateException();
-
 
245015
    }
-
 
245016
 
-
 
245017
    @Override
-
 
245018
    public boolean equals(Object that) {
-
 
245019
      if (that == null)
-
 
245020
        return false;
-
 
245021
      if (that instanceof getCostDetailForLogisticsTxnId_args)
-
 
245022
        return this.equals((getCostDetailForLogisticsTxnId_args)that);
-
 
245023
      return false;
-
 
245024
    }
-
 
245025
 
-
 
245026
    public boolean equals(getCostDetailForLogisticsTxnId_args that) {
-
 
245027
      if (that == null)
-
 
245028
        return false;
-
 
245029
 
-
 
245030
      boolean this_present_logisticsTxnId = true && this.isSetLogisticsTxnId();
-
 
245031
      boolean that_present_logisticsTxnId = true && that.isSetLogisticsTxnId();
-
 
245032
      if (this_present_logisticsTxnId || that_present_logisticsTxnId) {
-
 
245033
        if (!(this_present_logisticsTxnId && that_present_logisticsTxnId))
-
 
245034
          return false;
-
 
245035
        if (!this.logisticsTxnId.equals(that.logisticsTxnId))
-
 
245036
          return false;
-
 
245037
      }
-
 
245038
 
-
 
245039
      return true;
-
 
245040
    }
-
 
245041
 
-
 
245042
    @Override
-
 
245043
    public int hashCode() {
-
 
245044
      return 0;
-
 
245045
    }
-
 
245046
 
-
 
245047
    public int compareTo(getCostDetailForLogisticsTxnId_args other) {
-
 
245048
      if (!getClass().equals(other.getClass())) {
-
 
245049
        return getClass().getName().compareTo(other.getClass().getName());
-
 
245050
      }
-
 
245051
 
-
 
245052
      int lastComparison = 0;
-
 
245053
      getCostDetailForLogisticsTxnId_args typedOther = (getCostDetailForLogisticsTxnId_args)other;
-
 
245054
 
-
 
245055
      lastComparison = Boolean.valueOf(isSetLogisticsTxnId()).compareTo(typedOther.isSetLogisticsTxnId());
-
 
245056
      if (lastComparison != 0) {
-
 
245057
        return lastComparison;
-
 
245058
      }
-
 
245059
      if (isSetLogisticsTxnId()) {
-
 
245060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTxnId, typedOther.logisticsTxnId);
-
 
245061
        if (lastComparison != 0) {
-
 
245062
          return lastComparison;
-
 
245063
        }
-
 
245064
      }
-
 
245065
      return 0;
-
 
245066
    }
-
 
245067
 
-
 
245068
    public _Fields fieldForId(int fieldId) {
-
 
245069
      return _Fields.findByThriftId(fieldId);
-
 
245070
    }
-
 
245071
 
-
 
245072
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
245073
      org.apache.thrift.protocol.TField field;
-
 
245074
      iprot.readStructBegin();
-
 
245075
      while (true)
-
 
245076
      {
-
 
245077
        field = iprot.readFieldBegin();
-
 
245078
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
245079
          break;
-
 
245080
        }
-
 
245081
        switch (field.id) {
-
 
245082
          case 1: // LOGISTICS_TXN_ID
-
 
245083
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
245084
              this.logisticsTxnId = iprot.readString();
-
 
245085
            } else { 
-
 
245086
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
245087
            }
-
 
245088
            break;
-
 
245089
          default:
-
 
245090
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
245091
        }
-
 
245092
        iprot.readFieldEnd();
-
 
245093
      }
-
 
245094
      iprot.readStructEnd();
-
 
245095
      validate();
-
 
245096
    }
-
 
245097
 
-
 
245098
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
245099
      validate();
-
 
245100
 
-
 
245101
      oprot.writeStructBegin(STRUCT_DESC);
-
 
245102
      if (this.logisticsTxnId != null) {
-
 
245103
        oprot.writeFieldBegin(LOGISTICS_TXN_ID_FIELD_DESC);
-
 
245104
        oprot.writeString(this.logisticsTxnId);
-
 
245105
        oprot.writeFieldEnd();
-
 
245106
      }
-
 
245107
      oprot.writeFieldStop();
-
 
245108
      oprot.writeStructEnd();
-
 
245109
    }
-
 
245110
 
-
 
245111
    @Override
-
 
245112
    public String toString() {
-
 
245113
      StringBuilder sb = new StringBuilder("getCostDetailForLogisticsTxnId_args(");
-
 
245114
      boolean first = true;
-
 
245115
 
-
 
245116
      sb.append("logisticsTxnId:");
-
 
245117
      if (this.logisticsTxnId == null) {
-
 
245118
        sb.append("null");
-
 
245119
      } else {
-
 
245120
        sb.append(this.logisticsTxnId);
-
 
245121
      }
-
 
245122
      first = false;
-
 
245123
      sb.append(")");
-
 
245124
      return sb.toString();
-
 
245125
    }
-
 
245126
 
-
 
245127
    public void validate() throws org.apache.thrift.TException {
-
 
245128
      // check for required fields
-
 
245129
    }
-
 
245130
 
-
 
245131
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
245132
      try {
-
 
245133
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
245134
      } catch (org.apache.thrift.TException te) {
-
 
245135
        throw new java.io.IOException(te);
-
 
245136
      }
-
 
245137
    }
-
 
245138
 
-
 
245139
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
245140
      try {
-
 
245141
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
245142
      } catch (org.apache.thrift.TException te) {
-
 
245143
        throw new java.io.IOException(te);
-
 
245144
      }
-
 
245145
    }
-
 
245146
 
-
 
245147
  }
-
 
245148
 
-
 
245149
  public static class getCostDetailForLogisticsTxnId_result implements org.apache.thrift.TBase<getCostDetailForLogisticsTxnId_result, getCostDetailForLogisticsTxnId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
245150
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostDetailForLogisticsTxnId_result");
-
 
245151
 
-
 
245152
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
245153
 
-
 
245154
    private ShipmentLogisticsCostDetail success; // required
-
 
245155
 
-
 
245156
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
245157
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
245158
      SUCCESS((short)0, "success");
-
 
245159
 
-
 
245160
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
245161
 
-
 
245162
      static {
-
 
245163
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
245164
          byName.put(field.getFieldName(), field);
-
 
245165
        }
-
 
245166
      }
-
 
245167
 
-
 
245168
      /**
-
 
245169
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
245170
       */
-
 
245171
      public static _Fields findByThriftId(int fieldId) {
-
 
245172
        switch(fieldId) {
-
 
245173
          case 0: // SUCCESS
-
 
245174
            return SUCCESS;
-
 
245175
          default:
-
 
245176
            return null;
-
 
245177
        }
-
 
245178
      }
-
 
245179
 
-
 
245180
      /**
-
 
245181
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
245182
       * if it is not found.
-
 
245183
       */
-
 
245184
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
245185
        _Fields fields = findByThriftId(fieldId);
-
 
245186
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
245187
        return fields;
-
 
245188
      }
-
 
245189
 
-
 
245190
      /**
-
 
245191
       * Find the _Fields constant that matches name, or null if its not found.
-
 
245192
       */
-
 
245193
      public static _Fields findByName(String name) {
-
 
245194
        return byName.get(name);
-
 
245195
      }
-
 
245196
 
-
 
245197
      private final short _thriftId;
-
 
245198
      private final String _fieldName;
-
 
245199
 
-
 
245200
      _Fields(short thriftId, String fieldName) {
-
 
245201
        _thriftId = thriftId;
-
 
245202
        _fieldName = fieldName;
-
 
245203
      }
-
 
245204
 
-
 
245205
      public short getThriftFieldId() {
-
 
245206
        return _thriftId;
-
 
245207
      }
-
 
245208
 
-
 
245209
      public String getFieldName() {
-
 
245210
        return _fieldName;
-
 
245211
      }
-
 
245212
    }
-
 
245213
 
-
 
245214
    // isset id assignments
-
 
245215
 
-
 
245216
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
245217
    static {
-
 
245218
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
245219
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
245220
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ShipmentLogisticsCostDetail.class)));
-
 
245221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
245222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostDetailForLogisticsTxnId_result.class, metaDataMap);
-
 
245223
    }
-
 
245224
 
-
 
245225
    public getCostDetailForLogisticsTxnId_result() {
-
 
245226
    }
-
 
245227
 
-
 
245228
    public getCostDetailForLogisticsTxnId_result(
-
 
245229
      ShipmentLogisticsCostDetail success)
-
 
245230
    {
-
 
245231
      this();
-
 
245232
      this.success = success;
-
 
245233
    }
-
 
245234
 
-
 
245235
    /**
-
 
245236
     * Performs a deep copy on <i>other</i>.
-
 
245237
     */
-
 
245238
    public getCostDetailForLogisticsTxnId_result(getCostDetailForLogisticsTxnId_result other) {
-
 
245239
      if (other.isSetSuccess()) {
-
 
245240
        this.success = new ShipmentLogisticsCostDetail(other.success);
-
 
245241
      }
-
 
245242
    }
-
 
245243
 
-
 
245244
    public getCostDetailForLogisticsTxnId_result deepCopy() {
-
 
245245
      return new getCostDetailForLogisticsTxnId_result(this);
-
 
245246
    }
-
 
245247
 
-
 
245248
    @Override
-
 
245249
    public void clear() {
-
 
245250
      this.success = null;
-
 
245251
    }
-
 
245252
 
-
 
245253
    public ShipmentLogisticsCostDetail getSuccess() {
-
 
245254
      return this.success;
-
 
245255
    }
-
 
245256
 
-
 
245257
    public void setSuccess(ShipmentLogisticsCostDetail success) {
-
 
245258
      this.success = success;
-
 
245259
    }
-
 
245260
 
-
 
245261
    public void unsetSuccess() {
-
 
245262
      this.success = null;
-
 
245263
    }
-
 
245264
 
-
 
245265
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
245266
    public boolean isSetSuccess() {
-
 
245267
      return this.success != null;
-
 
245268
    }
-
 
245269
 
-
 
245270
    public void setSuccessIsSet(boolean value) {
-
 
245271
      if (!value) {
-
 
245272
        this.success = null;
-
 
245273
      }
-
 
245274
    }
-
 
245275
 
-
 
245276
    public void setFieldValue(_Fields field, Object value) {
-
 
245277
      switch (field) {
-
 
245278
      case SUCCESS:
-
 
245279
        if (value == null) {
-
 
245280
          unsetSuccess();
-
 
245281
        } else {
-
 
245282
          setSuccess((ShipmentLogisticsCostDetail)value);
-
 
245283
        }
-
 
245284
        break;
-
 
245285
 
-
 
245286
      }
-
 
245287
    }
-
 
245288
 
-
 
245289
    public Object getFieldValue(_Fields field) {
-
 
245290
      switch (field) {
-
 
245291
      case SUCCESS:
-
 
245292
        return getSuccess();
-
 
245293
 
-
 
245294
      }
-
 
245295
      throw new IllegalStateException();
-
 
245296
    }
-
 
245297
 
-
 
245298
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
245299
    public boolean isSet(_Fields field) {
-
 
245300
      if (field == null) {
-
 
245301
        throw new IllegalArgumentException();
-
 
245302
      }
-
 
245303
 
-
 
245304
      switch (field) {
-
 
245305
      case SUCCESS:
-
 
245306
        return isSetSuccess();
-
 
245307
      }
-
 
245308
      throw new IllegalStateException();
-
 
245309
    }
-
 
245310
 
-
 
245311
    @Override
-
 
245312
    public boolean equals(Object that) {
-
 
245313
      if (that == null)
-
 
245314
        return false;
-
 
245315
      if (that instanceof getCostDetailForLogisticsTxnId_result)
-
 
245316
        return this.equals((getCostDetailForLogisticsTxnId_result)that);
-
 
245317
      return false;
-
 
245318
    }
-
 
245319
 
-
 
245320
    public boolean equals(getCostDetailForLogisticsTxnId_result that) {
-
 
245321
      if (that == null)
-
 
245322
        return false;
-
 
245323
 
-
 
245324
      boolean this_present_success = true && this.isSetSuccess();
-
 
245325
      boolean that_present_success = true && that.isSetSuccess();
-
 
245326
      if (this_present_success || that_present_success) {
-
 
245327
        if (!(this_present_success && that_present_success))
-
 
245328
          return false;
-
 
245329
        if (!this.success.equals(that.success))
-
 
245330
          return false;
-
 
245331
      }
-
 
245332
 
-
 
245333
      return true;
-
 
245334
    }
-
 
245335
 
-
 
245336
    @Override
-
 
245337
    public int hashCode() {
-
 
245338
      return 0;
-
 
245339
    }
-
 
245340
 
-
 
245341
    public int compareTo(getCostDetailForLogisticsTxnId_result other) {
-
 
245342
      if (!getClass().equals(other.getClass())) {
-
 
245343
        return getClass().getName().compareTo(other.getClass().getName());
-
 
245344
      }
-
 
245345
 
-
 
245346
      int lastComparison = 0;
-
 
245347
      getCostDetailForLogisticsTxnId_result typedOther = (getCostDetailForLogisticsTxnId_result)other;
-
 
245348
 
-
 
245349
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
245350
      if (lastComparison != 0) {
-
 
245351
        return lastComparison;
-
 
245352
      }
-
 
245353
      if (isSetSuccess()) {
-
 
245354
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
245355
        if (lastComparison != 0) {
-
 
245356
          return lastComparison;
-
 
245357
        }
-
 
245358
      }
-
 
245359
      return 0;
-
 
245360
    }
-
 
245361
 
-
 
245362
    public _Fields fieldForId(int fieldId) {
-
 
245363
      return _Fields.findByThriftId(fieldId);
-
 
245364
    }
-
 
245365
 
-
 
245366
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
245367
      org.apache.thrift.protocol.TField field;
-
 
245368
      iprot.readStructBegin();
-
 
245369
      while (true)
-
 
245370
      {
-
 
245371
        field = iprot.readFieldBegin();
-
 
245372
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
245373
          break;
-
 
245374
        }
-
 
245375
        switch (field.id) {
-
 
245376
          case 0: // SUCCESS
-
 
245377
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
245378
              this.success = new ShipmentLogisticsCostDetail();
-
 
245379
              this.success.read(iprot);
-
 
245380
            } else { 
-
 
245381
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
245382
            }
-
 
245383
            break;
-
 
245384
          default:
-
 
245385
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
245386
        }
-
 
245387
        iprot.readFieldEnd();
-
 
245388
      }
-
 
245389
      iprot.readStructEnd();
-
 
245390
      validate();
-
 
245391
    }
-
 
245392
 
-
 
245393
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
245394
      oprot.writeStructBegin(STRUCT_DESC);
-
 
245395
 
-
 
245396
      if (this.isSetSuccess()) {
-
 
245397
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
245398
        this.success.write(oprot);
-
 
245399
        oprot.writeFieldEnd();
-
 
245400
      }
-
 
245401
      oprot.writeFieldStop();
-
 
245402
      oprot.writeStructEnd();
-
 
245403
    }
-
 
245404
 
-
 
245405
    @Override
-
 
245406
    public String toString() {
-
 
245407
      StringBuilder sb = new StringBuilder("getCostDetailForLogisticsTxnId_result(");
-
 
245408
      boolean first = true;
-
 
245409
 
-
 
245410
      sb.append("success:");
-
 
245411
      if (this.success == null) {
-
 
245412
        sb.append("null");
244749
      } else {
245413
      } else {
244750
        sb.append(this.success);
245414
        sb.append(this.success);
244751
      }
245415
      }
244752
      first = false;
245416
      first = false;
244753
      sb.append(")");
245417
      sb.append(")");