Subversion Repositories SmartDukaan

Rev

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

Rev 19421 Rev 19474
Line 1214... Line 1214...
1214
     */
1214
     */
1215
    public void setOrderAttributeForMasterOrderId(String logisticsTransactionId, List<Attribute> attributes) throws org.apache.thrift.TException;
1215
    public void setOrderAttributeForMasterOrderId(String logisticsTransactionId, List<Attribute> attributes) throws org.apache.thrift.TException;
1216
 
1216
 
1217
    public boolean updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo) throws org.apache.thrift.TException;
1217
    public boolean updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo) throws org.apache.thrift.TException;
1218
 
1218
 
-
 
1219
    public boolean addOrUpdateShipmentLogisticsCostDetails(List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails) throws org.apache.thrift.TException;
-
 
1220
 
1219
  }
1221
  }
1220
 
1222
 
1221
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1223
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1222
 
1224
 
1223
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1225
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1796... Line 1798...
1796
 
1798
 
1797
    public void setOrderAttributeForMasterOrderId(String logisticsTransactionId, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setOrderAttributeForMasterOrderId_call> resultHandler) throws org.apache.thrift.TException;
1799
    public void setOrderAttributeForMasterOrderId(String logisticsTransactionId, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setOrderAttributeForMasterOrderId_call> resultHandler) throws org.apache.thrift.TException;
1798
 
1800
 
1799
    public void updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMasterOrderAWB_call> resultHandler) throws org.apache.thrift.TException;
1801
    public void updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMasterOrderAWB_call> resultHandler) throws org.apache.thrift.TException;
1800
 
1802
 
-
 
1803
    public void addOrUpdateShipmentLogisticsCostDetails(List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateShipmentLogisticsCostDetails_call> resultHandler) throws org.apache.thrift.TException;
-
 
1804
 
1801
  }
1805
  }
1802
 
1806
 
1803
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1807
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1804
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1808
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1805
      public Factory() {}
1809
      public Factory() {}
Line 8985... Line 8989...
8985
        return result.success;
8989
        return result.success;
8986
      }
8990
      }
8987
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateMasterOrderAWB failed: unknown result");
8991
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateMasterOrderAWB failed: unknown result");
8988
    }
8992
    }
8989
 
8993
 
-
 
8994
    public boolean addOrUpdateShipmentLogisticsCostDetails(List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails) throws org.apache.thrift.TException
-
 
8995
    {
-
 
8996
      send_addOrUpdateShipmentLogisticsCostDetails(shipmentLogisticsCostDetails);
-
 
8997
      return recv_addOrUpdateShipmentLogisticsCostDetails();
-
 
8998
    }
-
 
8999
 
-
 
9000
    public void send_addOrUpdateShipmentLogisticsCostDetails(List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails) throws org.apache.thrift.TException
-
 
9001
    {
-
 
9002
      addOrUpdateShipmentLogisticsCostDetails_args args = new addOrUpdateShipmentLogisticsCostDetails_args();
-
 
9003
      args.setShipmentLogisticsCostDetails(shipmentLogisticsCostDetails);
-
 
9004
      sendBase("addOrUpdateShipmentLogisticsCostDetails", args);
-
 
9005
    }
-
 
9006
 
-
 
9007
    public boolean recv_addOrUpdateShipmentLogisticsCostDetails() throws org.apache.thrift.TException
-
 
9008
    {
-
 
9009
      addOrUpdateShipmentLogisticsCostDetails_result result = new addOrUpdateShipmentLogisticsCostDetails_result();
-
 
9010
      receiveBase(result, "addOrUpdateShipmentLogisticsCostDetails");
-
 
9011
      if (result.isSetSuccess()) {
-
 
9012
        return result.success;
-
 
9013
      }
-
 
9014
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addOrUpdateShipmentLogisticsCostDetails failed: unknown result");
-
 
9015
    }
-
 
9016
 
8990
  }
9017
  }
8991
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9018
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
8992
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9019
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
8993
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9020
      private org.apache.thrift.async.TAsyncClientManager clientManager;
8994
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
9021
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 19082... Line 19109...
19082
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19109
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19083
        return (new Client(prot)).recv_updateMasterOrderAWB();
19110
        return (new Client(prot)).recv_updateMasterOrderAWB();
19084
      }
19111
      }
19085
    }
19112
    }
19086
 
19113
 
-
 
19114
    public void addOrUpdateShipmentLogisticsCostDetails(List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateShipmentLogisticsCostDetails_call> resultHandler) throws org.apache.thrift.TException {
-
 
19115
      checkReady();
-
 
19116
      addOrUpdateShipmentLogisticsCostDetails_call method_call = new addOrUpdateShipmentLogisticsCostDetails_call(shipmentLogisticsCostDetails, resultHandler, this, ___protocolFactory, ___transport);
-
 
19117
      this.___currentMethod = method_call;
-
 
19118
      ___manager.call(method_call);
-
 
19119
    }
-
 
19120
 
-
 
19121
    public static class addOrUpdateShipmentLogisticsCostDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
19122
      private List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails;
-
 
19123
      public addOrUpdateShipmentLogisticsCostDetails_call(List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateShipmentLogisticsCostDetails_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 {
-
 
19124
        super(client, protocolFactory, transport, resultHandler, false);
-
 
19125
        this.shipmentLogisticsCostDetails = shipmentLogisticsCostDetails;
-
 
19126
      }
-
 
19127
 
-
 
19128
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
19129
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateShipmentLogisticsCostDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
19130
        addOrUpdateShipmentLogisticsCostDetails_args args = new addOrUpdateShipmentLogisticsCostDetails_args();
-
 
19131
        args.setShipmentLogisticsCostDetails(shipmentLogisticsCostDetails);
-
 
19132
        args.write(prot);
-
 
19133
        prot.writeMessageEnd();
-
 
19134
      }
-
 
19135
 
-
 
19136
      public boolean getResult() throws org.apache.thrift.TException {
-
 
19137
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
19138
          throw new IllegalStateException("Method call not finished!");
-
 
19139
        }
-
 
19140
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
19141
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
19142
        return (new Client(prot)).recv_addOrUpdateShipmentLogisticsCostDetails();
-
 
19143
      }
-
 
19144
    }
-
 
19145
 
19087
  }
19146
  }
19088
 
19147
 
19089
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
19148
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
19090
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
19149
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
19091
    public Processor(I iface) {
19150
    public Processor(I iface) {
Line 19384... Line 19443...
19384
      processMap.put("getReturnTransactionsForCustomer", new getReturnTransactionsForCustomer());
19443
      processMap.put("getReturnTransactionsForCustomer", new getReturnTransactionsForCustomer());
19385
      processMap.put("verifyOrderForTransaction", new verifyOrderForTransaction());
19444
      processMap.put("verifyOrderForTransaction", new verifyOrderForTransaction());
19386
      processMap.put("getOrdersInBatchAsPromisedShipping", new getOrdersInBatchAsPromisedShipping());
19445
      processMap.put("getOrdersInBatchAsPromisedShipping", new getOrdersInBatchAsPromisedShipping());
19387
      processMap.put("setOrderAttributeForMasterOrderId", new setOrderAttributeForMasterOrderId());
19446
      processMap.put("setOrderAttributeForMasterOrderId", new setOrderAttributeForMasterOrderId());
19388
      processMap.put("updateMasterOrderAWB", new updateMasterOrderAWB());
19447
      processMap.put("updateMasterOrderAWB", new updateMasterOrderAWB());
-
 
19448
      processMap.put("addOrUpdateShipmentLogisticsCostDetails", new addOrUpdateShipmentLogisticsCostDetails());
19389
      return processMap;
19449
      return processMap;
19390
    }
19450
    }
19391
 
19451
 
19392
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
19452
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
19393
      public createTransaction() {
19453
      public createTransaction() {
Line 24638... Line 24698...
24638
        result.setSuccessIsSet(true);
24698
        result.setSuccessIsSet(true);
24639
        return result;
24699
        return result;
24640
      }
24700
      }
24641
    }
24701
    }
24642
 
24702
 
-
 
24703
    private static class addOrUpdateShipmentLogisticsCostDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateShipmentLogisticsCostDetails_args> {
-
 
24704
      public addOrUpdateShipmentLogisticsCostDetails() {
-
 
24705
        super("addOrUpdateShipmentLogisticsCostDetails");
-
 
24706
      }
-
 
24707
 
-
 
24708
      protected addOrUpdateShipmentLogisticsCostDetails_args getEmptyArgsInstance() {
-
 
24709
        return new addOrUpdateShipmentLogisticsCostDetails_args();
-
 
24710
      }
-
 
24711
 
-
 
24712
      protected addOrUpdateShipmentLogisticsCostDetails_result getResult(I iface, addOrUpdateShipmentLogisticsCostDetails_args args) throws org.apache.thrift.TException {
-
 
24713
        addOrUpdateShipmentLogisticsCostDetails_result result = new addOrUpdateShipmentLogisticsCostDetails_result();
-
 
24714
        result.success = iface.addOrUpdateShipmentLogisticsCostDetails(args.shipmentLogisticsCostDetails);
-
 
24715
        result.setSuccessIsSet(true);
-
 
24716
        return result;
-
 
24717
      }
-
 
24718
    }
-
 
24719
 
24643
  }
24720
  }
24644
 
24721
 
24645
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
24722
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
24646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
24723
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
24647
 
24724
 
Line 231627... Line 231704...
231627
      boolean first = true;
231704
      boolean first = true;
231628
 
231705
 
231629
      sb.append("success:");
231706
      sb.append("success:");
231630
      sb.append(this.success);
231707
      sb.append(this.success);
231631
      first = false;
231708
      first = false;
-
 
231709
      sb.append(")");
-
 
231710
      return sb.toString();
-
 
231711
    }
-
 
231712
 
-
 
231713
    public void validate() throws org.apache.thrift.TException {
-
 
231714
      // check for required fields
-
 
231715
    }
-
 
231716
 
-
 
231717
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
231718
      try {
-
 
231719
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
231720
      } catch (org.apache.thrift.TException te) {
-
 
231721
        throw new java.io.IOException(te);
-
 
231722
      }
-
 
231723
    }
-
 
231724
 
-
 
231725
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
231726
      try {
-
 
231727
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
231728
      } catch (org.apache.thrift.TException te) {
-
 
231729
        throw new java.io.IOException(te);
-
 
231730
      }
-
 
231731
    }
-
 
231732
 
-
 
231733
  }
-
 
231734
 
-
 
231735
  public static class addOrUpdateShipmentLogisticsCostDetails_args implements org.apache.thrift.TBase<addOrUpdateShipmentLogisticsCostDetails_args, addOrUpdateShipmentLogisticsCostDetails_args._Fields>, java.io.Serializable, Cloneable   {
-
 
231736
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateShipmentLogisticsCostDetails_args");
-
 
231737
 
-
 
231738
    private static final org.apache.thrift.protocol.TField SHIPMENT_LOGISTICS_COST_DETAILS_FIELD_DESC = new org.apache.thrift.protocol.TField("shipmentLogisticsCostDetails", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
231739
 
-
 
231740
    private List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails; // required
-
 
231741
 
-
 
231742
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
231743
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
231744
      SHIPMENT_LOGISTICS_COST_DETAILS((short)1, "shipmentLogisticsCostDetails");
-
 
231745
 
-
 
231746
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
231747
 
-
 
231748
      static {
-
 
231749
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
231750
          byName.put(field.getFieldName(), field);
-
 
231751
        }
-
 
231752
      }
-
 
231753
 
-
 
231754
      /**
-
 
231755
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
231756
       */
-
 
231757
      public static _Fields findByThriftId(int fieldId) {
-
 
231758
        switch(fieldId) {
-
 
231759
          case 1: // SHIPMENT_LOGISTICS_COST_DETAILS
-
 
231760
            return SHIPMENT_LOGISTICS_COST_DETAILS;
-
 
231761
          default:
-
 
231762
            return null;
-
 
231763
        }
-
 
231764
      }
-
 
231765
 
-
 
231766
      /**
-
 
231767
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
231768
       * if it is not found.
-
 
231769
       */
-
 
231770
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
231771
        _Fields fields = findByThriftId(fieldId);
-
 
231772
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
231773
        return fields;
-
 
231774
      }
-
 
231775
 
-
 
231776
      /**
-
 
231777
       * Find the _Fields constant that matches name, or null if its not found.
-
 
231778
       */
-
 
231779
      public static _Fields findByName(String name) {
-
 
231780
        return byName.get(name);
-
 
231781
      }
-
 
231782
 
-
 
231783
      private final short _thriftId;
-
 
231784
      private final String _fieldName;
-
 
231785
 
-
 
231786
      _Fields(short thriftId, String fieldName) {
-
 
231787
        _thriftId = thriftId;
-
 
231788
        _fieldName = fieldName;
-
 
231789
      }
-
 
231790
 
-
 
231791
      public short getThriftFieldId() {
-
 
231792
        return _thriftId;
-
 
231793
      }
-
 
231794
 
-
 
231795
      public String getFieldName() {
-
 
231796
        return _fieldName;
-
 
231797
      }
-
 
231798
    }
-
 
231799
 
-
 
231800
    // isset id assignments
-
 
231801
 
-
 
231802
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
231803
    static {
-
 
231804
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
231805
      tmpMap.put(_Fields.SHIPMENT_LOGISTICS_COST_DETAILS, new org.apache.thrift.meta_data.FieldMetaData("shipmentLogisticsCostDetails", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
231806
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
231807
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ShipmentLogisticsCostDetail.class))));
-
 
231808
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
231809
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateShipmentLogisticsCostDetails_args.class, metaDataMap);
-
 
231810
    }
-
 
231811
 
-
 
231812
    public addOrUpdateShipmentLogisticsCostDetails_args() {
-
 
231813
    }
-
 
231814
 
-
 
231815
    public addOrUpdateShipmentLogisticsCostDetails_args(
-
 
231816
      List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails)
-
 
231817
    {
-
 
231818
      this();
-
 
231819
      this.shipmentLogisticsCostDetails = shipmentLogisticsCostDetails;
-
 
231820
    }
-
 
231821
 
-
 
231822
    /**
-
 
231823
     * Performs a deep copy on <i>other</i>.
-
 
231824
     */
-
 
231825
    public addOrUpdateShipmentLogisticsCostDetails_args(addOrUpdateShipmentLogisticsCostDetails_args other) {
-
 
231826
      if (other.isSetShipmentLogisticsCostDetails()) {
-
 
231827
        List<ShipmentLogisticsCostDetail> __this__shipmentLogisticsCostDetails = new ArrayList<ShipmentLogisticsCostDetail>();
-
 
231828
        for (ShipmentLogisticsCostDetail other_element : other.shipmentLogisticsCostDetails) {
-
 
231829
          __this__shipmentLogisticsCostDetails.add(new ShipmentLogisticsCostDetail(other_element));
-
 
231830
        }
-
 
231831
        this.shipmentLogisticsCostDetails = __this__shipmentLogisticsCostDetails;
-
 
231832
      }
-
 
231833
    }
-
 
231834
 
-
 
231835
    public addOrUpdateShipmentLogisticsCostDetails_args deepCopy() {
-
 
231836
      return new addOrUpdateShipmentLogisticsCostDetails_args(this);
-
 
231837
    }
-
 
231838
 
-
 
231839
    @Override
-
 
231840
    public void clear() {
-
 
231841
      this.shipmentLogisticsCostDetails = null;
-
 
231842
    }
-
 
231843
 
-
 
231844
    public int getShipmentLogisticsCostDetailsSize() {
-
 
231845
      return (this.shipmentLogisticsCostDetails == null) ? 0 : this.shipmentLogisticsCostDetails.size();
-
 
231846
    }
-
 
231847
 
-
 
231848
    public java.util.Iterator<ShipmentLogisticsCostDetail> getShipmentLogisticsCostDetailsIterator() {
-
 
231849
      return (this.shipmentLogisticsCostDetails == null) ? null : this.shipmentLogisticsCostDetails.iterator();
-
 
231850
    }
-
 
231851
 
-
 
231852
    public void addToShipmentLogisticsCostDetails(ShipmentLogisticsCostDetail elem) {
-
 
231853
      if (this.shipmentLogisticsCostDetails == null) {
-
 
231854
        this.shipmentLogisticsCostDetails = new ArrayList<ShipmentLogisticsCostDetail>();
-
 
231855
      }
-
 
231856
      this.shipmentLogisticsCostDetails.add(elem);
-
 
231857
    }
-
 
231858
 
-
 
231859
    public List<ShipmentLogisticsCostDetail> getShipmentLogisticsCostDetails() {
-
 
231860
      return this.shipmentLogisticsCostDetails;
-
 
231861
    }
-
 
231862
 
-
 
231863
    public void setShipmentLogisticsCostDetails(List<ShipmentLogisticsCostDetail> shipmentLogisticsCostDetails) {
-
 
231864
      this.shipmentLogisticsCostDetails = shipmentLogisticsCostDetails;
-
 
231865
    }
-
 
231866
 
-
 
231867
    public void unsetShipmentLogisticsCostDetails() {
-
 
231868
      this.shipmentLogisticsCostDetails = null;
-
 
231869
    }
-
 
231870
 
-
 
231871
    /** Returns true if field shipmentLogisticsCostDetails is set (has been assigned a value) and false otherwise */
-
 
231872
    public boolean isSetShipmentLogisticsCostDetails() {
-
 
231873
      return this.shipmentLogisticsCostDetails != null;
-
 
231874
    }
-
 
231875
 
-
 
231876
    public void setShipmentLogisticsCostDetailsIsSet(boolean value) {
-
 
231877
      if (!value) {
-
 
231878
        this.shipmentLogisticsCostDetails = null;
-
 
231879
      }
-
 
231880
    }
-
 
231881
 
-
 
231882
    public void setFieldValue(_Fields field, Object value) {
-
 
231883
      switch (field) {
-
 
231884
      case SHIPMENT_LOGISTICS_COST_DETAILS:
-
 
231885
        if (value == null) {
-
 
231886
          unsetShipmentLogisticsCostDetails();
-
 
231887
        } else {
-
 
231888
          setShipmentLogisticsCostDetails((List<ShipmentLogisticsCostDetail>)value);
-
 
231889
        }
-
 
231890
        break;
-
 
231891
 
-
 
231892
      }
-
 
231893
    }
-
 
231894
 
-
 
231895
    public Object getFieldValue(_Fields field) {
-
 
231896
      switch (field) {
-
 
231897
      case SHIPMENT_LOGISTICS_COST_DETAILS:
-
 
231898
        return getShipmentLogisticsCostDetails();
-
 
231899
 
-
 
231900
      }
-
 
231901
      throw new IllegalStateException();
-
 
231902
    }
-
 
231903
 
-
 
231904
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
231905
    public boolean isSet(_Fields field) {
-
 
231906
      if (field == null) {
-
 
231907
        throw new IllegalArgumentException();
-
 
231908
      }
-
 
231909
 
-
 
231910
      switch (field) {
-
 
231911
      case SHIPMENT_LOGISTICS_COST_DETAILS:
-
 
231912
        return isSetShipmentLogisticsCostDetails();
-
 
231913
      }
-
 
231914
      throw new IllegalStateException();
-
 
231915
    }
-
 
231916
 
-
 
231917
    @Override
-
 
231918
    public boolean equals(Object that) {
-
 
231919
      if (that == null)
-
 
231920
        return false;
-
 
231921
      if (that instanceof addOrUpdateShipmentLogisticsCostDetails_args)
-
 
231922
        return this.equals((addOrUpdateShipmentLogisticsCostDetails_args)that);
-
 
231923
      return false;
-
 
231924
    }
-
 
231925
 
-
 
231926
    public boolean equals(addOrUpdateShipmentLogisticsCostDetails_args that) {
-
 
231927
      if (that == null)
-
 
231928
        return false;
-
 
231929
 
-
 
231930
      boolean this_present_shipmentLogisticsCostDetails = true && this.isSetShipmentLogisticsCostDetails();
-
 
231931
      boolean that_present_shipmentLogisticsCostDetails = true && that.isSetShipmentLogisticsCostDetails();
-
 
231932
      if (this_present_shipmentLogisticsCostDetails || that_present_shipmentLogisticsCostDetails) {
-
 
231933
        if (!(this_present_shipmentLogisticsCostDetails && that_present_shipmentLogisticsCostDetails))
-
 
231934
          return false;
-
 
231935
        if (!this.shipmentLogisticsCostDetails.equals(that.shipmentLogisticsCostDetails))
-
 
231936
          return false;
-
 
231937
      }
-
 
231938
 
-
 
231939
      return true;
-
 
231940
    }
-
 
231941
 
-
 
231942
    @Override
-
 
231943
    public int hashCode() {
-
 
231944
      return 0;
-
 
231945
    }
-
 
231946
 
-
 
231947
    public int compareTo(addOrUpdateShipmentLogisticsCostDetails_args other) {
-
 
231948
      if (!getClass().equals(other.getClass())) {
-
 
231949
        return getClass().getName().compareTo(other.getClass().getName());
-
 
231950
      }
-
 
231951
 
-
 
231952
      int lastComparison = 0;
-
 
231953
      addOrUpdateShipmentLogisticsCostDetails_args typedOther = (addOrUpdateShipmentLogisticsCostDetails_args)other;
-
 
231954
 
-
 
231955
      lastComparison = Boolean.valueOf(isSetShipmentLogisticsCostDetails()).compareTo(typedOther.isSetShipmentLogisticsCostDetails());
-
 
231956
      if (lastComparison != 0) {
-
 
231957
        return lastComparison;
-
 
231958
      }
-
 
231959
      if (isSetShipmentLogisticsCostDetails()) {
-
 
231960
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shipmentLogisticsCostDetails, typedOther.shipmentLogisticsCostDetails);
-
 
231961
        if (lastComparison != 0) {
-
 
231962
          return lastComparison;
-
 
231963
        }
-
 
231964
      }
-
 
231965
      return 0;
-
 
231966
    }
-
 
231967
 
-
 
231968
    public _Fields fieldForId(int fieldId) {
-
 
231969
      return _Fields.findByThriftId(fieldId);
-
 
231970
    }
-
 
231971
 
-
 
231972
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
231973
      org.apache.thrift.protocol.TField field;
-
 
231974
      iprot.readStructBegin();
-
 
231975
      while (true)
-
 
231976
      {
-
 
231977
        field = iprot.readFieldBegin();
-
 
231978
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
231979
          break;
-
 
231980
        }
-
 
231981
        switch (field.id) {
-
 
231982
          case 1: // SHIPMENT_LOGISTICS_COST_DETAILS
-
 
231983
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
231984
              {
-
 
231985
                org.apache.thrift.protocol.TList _list811 = iprot.readListBegin();
-
 
231986
                this.shipmentLogisticsCostDetails = new ArrayList<ShipmentLogisticsCostDetail>(_list811.size);
-
 
231987
                for (int _i812 = 0; _i812 < _list811.size; ++_i812)
-
 
231988
                {
-
 
231989
                  ShipmentLogisticsCostDetail _elem813; // required
-
 
231990
                  _elem813 = new ShipmentLogisticsCostDetail();
-
 
231991
                  _elem813.read(iprot);
-
 
231992
                  this.shipmentLogisticsCostDetails.add(_elem813);
-
 
231993
                }
-
 
231994
                iprot.readListEnd();
-
 
231995
              }
-
 
231996
            } else { 
-
 
231997
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
231998
            }
-
 
231999
            break;
-
 
232000
          default:
-
 
232001
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
232002
        }
-
 
232003
        iprot.readFieldEnd();
-
 
232004
      }
-
 
232005
      iprot.readStructEnd();
-
 
232006
      validate();
-
 
232007
    }
-
 
232008
 
-
 
232009
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
232010
      validate();
-
 
232011
 
-
 
232012
      oprot.writeStructBegin(STRUCT_DESC);
-
 
232013
      if (this.shipmentLogisticsCostDetails != null) {
-
 
232014
        oprot.writeFieldBegin(SHIPMENT_LOGISTICS_COST_DETAILS_FIELD_DESC);
-
 
232015
        {
-
 
232016
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.shipmentLogisticsCostDetails.size()));
-
 
232017
          for (ShipmentLogisticsCostDetail _iter814 : this.shipmentLogisticsCostDetails)
-
 
232018
          {
-
 
232019
            _iter814.write(oprot);
-
 
232020
          }
-
 
232021
          oprot.writeListEnd();
-
 
232022
        }
-
 
232023
        oprot.writeFieldEnd();
-
 
232024
      }
-
 
232025
      oprot.writeFieldStop();
-
 
232026
      oprot.writeStructEnd();
-
 
232027
    }
-
 
232028
 
-
 
232029
    @Override
-
 
232030
    public String toString() {
-
 
232031
      StringBuilder sb = new StringBuilder("addOrUpdateShipmentLogisticsCostDetails_args(");
-
 
232032
      boolean first = true;
-
 
232033
 
-
 
232034
      sb.append("shipmentLogisticsCostDetails:");
-
 
232035
      if (this.shipmentLogisticsCostDetails == null) {
-
 
232036
        sb.append("null");
-
 
232037
      } else {
-
 
232038
        sb.append(this.shipmentLogisticsCostDetails);
-
 
232039
      }
-
 
232040
      first = false;
-
 
232041
      sb.append(")");
-
 
232042
      return sb.toString();
-
 
232043
    }
-
 
232044
 
-
 
232045
    public void validate() throws org.apache.thrift.TException {
-
 
232046
      // check for required fields
-
 
232047
    }
-
 
232048
 
-
 
232049
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
232050
      try {
-
 
232051
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
232052
      } catch (org.apache.thrift.TException te) {
-
 
232053
        throw new java.io.IOException(te);
-
 
232054
      }
-
 
232055
    }
-
 
232056
 
-
 
232057
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
232058
      try {
-
 
232059
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
232060
      } catch (org.apache.thrift.TException te) {
-
 
232061
        throw new java.io.IOException(te);
-
 
232062
      }
-
 
232063
    }
-
 
232064
 
-
 
232065
  }
-
 
232066
 
-
 
232067
  public static class addOrUpdateShipmentLogisticsCostDetails_result implements org.apache.thrift.TBase<addOrUpdateShipmentLogisticsCostDetails_result, addOrUpdateShipmentLogisticsCostDetails_result._Fields>, java.io.Serializable, Cloneable   {
-
 
232068
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateShipmentLogisticsCostDetails_result");
-
 
232069
 
-
 
232070
    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);
-
 
232071
 
-
 
232072
    private boolean success; // required
-
 
232073
 
-
 
232074
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
232075
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
232076
      SUCCESS((short)0, "success");
-
 
232077
 
-
 
232078
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
232079
 
-
 
232080
      static {
-
 
232081
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
232082
          byName.put(field.getFieldName(), field);
-
 
232083
        }
-
 
232084
      }
-
 
232085
 
-
 
232086
      /**
-
 
232087
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
232088
       */
-
 
232089
      public static _Fields findByThriftId(int fieldId) {
-
 
232090
        switch(fieldId) {
-
 
232091
          case 0: // SUCCESS
-
 
232092
            return SUCCESS;
-
 
232093
          default:
-
 
232094
            return null;
-
 
232095
        }
-
 
232096
      }
-
 
232097
 
-
 
232098
      /**
-
 
232099
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
232100
       * if it is not found.
-
 
232101
       */
-
 
232102
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
232103
        _Fields fields = findByThriftId(fieldId);
-
 
232104
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
232105
        return fields;
-
 
232106
      }
-
 
232107
 
-
 
232108
      /**
-
 
232109
       * Find the _Fields constant that matches name, or null if its not found.
-
 
232110
       */
-
 
232111
      public static _Fields findByName(String name) {
-
 
232112
        return byName.get(name);
-
 
232113
      }
-
 
232114
 
-
 
232115
      private final short _thriftId;
-
 
232116
      private final String _fieldName;
-
 
232117
 
-
 
232118
      _Fields(short thriftId, String fieldName) {
-
 
232119
        _thriftId = thriftId;
-
 
232120
        _fieldName = fieldName;
-
 
232121
      }
-
 
232122
 
-
 
232123
      public short getThriftFieldId() {
-
 
232124
        return _thriftId;
-
 
232125
      }
-
 
232126
 
-
 
232127
      public String getFieldName() {
-
 
232128
        return _fieldName;
-
 
232129
      }
-
 
232130
    }
-
 
232131
 
-
 
232132
    // isset id assignments
-
 
232133
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
232134
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
232135
 
-
 
232136
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
232137
    static {
-
 
232138
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
232139
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
232140
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
232141
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
232142
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateShipmentLogisticsCostDetails_result.class, metaDataMap);
-
 
232143
    }
-
 
232144
 
-
 
232145
    public addOrUpdateShipmentLogisticsCostDetails_result() {
-
 
232146
    }
-
 
232147
 
-
 
232148
    public addOrUpdateShipmentLogisticsCostDetails_result(
-
 
232149
      boolean success)
-
 
232150
    {
-
 
232151
      this();
-
 
232152
      this.success = success;
-
 
232153
      setSuccessIsSet(true);
-
 
232154
    }
-
 
232155
 
-
 
232156
    /**
-
 
232157
     * Performs a deep copy on <i>other</i>.
-
 
232158
     */
-
 
232159
    public addOrUpdateShipmentLogisticsCostDetails_result(addOrUpdateShipmentLogisticsCostDetails_result other) {
-
 
232160
      __isset_bit_vector.clear();
-
 
232161
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
232162
      this.success = other.success;
-
 
232163
    }
-
 
232164
 
-
 
232165
    public addOrUpdateShipmentLogisticsCostDetails_result deepCopy() {
-
 
232166
      return new addOrUpdateShipmentLogisticsCostDetails_result(this);
-
 
232167
    }
-
 
232168
 
-
 
232169
    @Override
-
 
232170
    public void clear() {
-
 
232171
      setSuccessIsSet(false);
-
 
232172
      this.success = false;
-
 
232173
    }
-
 
232174
 
-
 
232175
    public boolean isSuccess() {
-
 
232176
      return this.success;
-
 
232177
    }
-
 
232178
 
-
 
232179
    public void setSuccess(boolean success) {
-
 
232180
      this.success = success;
-
 
232181
      setSuccessIsSet(true);
-
 
232182
    }
-
 
232183
 
-
 
232184
    public void unsetSuccess() {
-
 
232185
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
232186
    }
-
 
232187
 
-
 
232188
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
232189
    public boolean isSetSuccess() {
-
 
232190
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
232191
    }
-
 
232192
 
-
 
232193
    public void setSuccessIsSet(boolean value) {
-
 
232194
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
232195
    }
-
 
232196
 
-
 
232197
    public void setFieldValue(_Fields field, Object value) {
-
 
232198
      switch (field) {
-
 
232199
      case SUCCESS:
-
 
232200
        if (value == null) {
-
 
232201
          unsetSuccess();
-
 
232202
        } else {
-
 
232203
          setSuccess((Boolean)value);
-
 
232204
        }
-
 
232205
        break;
-
 
232206
 
-
 
232207
      }
-
 
232208
    }
-
 
232209
 
-
 
232210
    public Object getFieldValue(_Fields field) {
-
 
232211
      switch (field) {
-
 
232212
      case SUCCESS:
-
 
232213
        return Boolean.valueOf(isSuccess());
-
 
232214
 
-
 
232215
      }
-
 
232216
      throw new IllegalStateException();
-
 
232217
    }
-
 
232218
 
-
 
232219
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
232220
    public boolean isSet(_Fields field) {
-
 
232221
      if (field == null) {
-
 
232222
        throw new IllegalArgumentException();
-
 
232223
      }
-
 
232224
 
-
 
232225
      switch (field) {
-
 
232226
      case SUCCESS:
-
 
232227
        return isSetSuccess();
-
 
232228
      }
-
 
232229
      throw new IllegalStateException();
-
 
232230
    }
-
 
232231
 
-
 
232232
    @Override
-
 
232233
    public boolean equals(Object that) {
-
 
232234
      if (that == null)
-
 
232235
        return false;
-
 
232236
      if (that instanceof addOrUpdateShipmentLogisticsCostDetails_result)
-
 
232237
        return this.equals((addOrUpdateShipmentLogisticsCostDetails_result)that);
-
 
232238
      return false;
-
 
232239
    }
-
 
232240
 
-
 
232241
    public boolean equals(addOrUpdateShipmentLogisticsCostDetails_result that) {
-
 
232242
      if (that == null)
-
 
232243
        return false;
-
 
232244
 
-
 
232245
      boolean this_present_success = true;
-
 
232246
      boolean that_present_success = true;
-
 
232247
      if (this_present_success || that_present_success) {
-
 
232248
        if (!(this_present_success && that_present_success))
-
 
232249
          return false;
-
 
232250
        if (this.success != that.success)
-
 
232251
          return false;
-
 
232252
      }
-
 
232253
 
-
 
232254
      return true;
-
 
232255
    }
-
 
232256
 
-
 
232257
    @Override
-
 
232258
    public int hashCode() {
-
 
232259
      return 0;
-
 
232260
    }
-
 
232261
 
-
 
232262
    public int compareTo(addOrUpdateShipmentLogisticsCostDetails_result other) {
-
 
232263
      if (!getClass().equals(other.getClass())) {
-
 
232264
        return getClass().getName().compareTo(other.getClass().getName());
-
 
232265
      }
-
 
232266
 
-
 
232267
      int lastComparison = 0;
-
 
232268
      addOrUpdateShipmentLogisticsCostDetails_result typedOther = (addOrUpdateShipmentLogisticsCostDetails_result)other;
-
 
232269
 
-
 
232270
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
232271
      if (lastComparison != 0) {
-
 
232272
        return lastComparison;
-
 
232273
      }
-
 
232274
      if (isSetSuccess()) {
-
 
232275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
232276
        if (lastComparison != 0) {
-
 
232277
          return lastComparison;
-
 
232278
        }
-
 
232279
      }
-
 
232280
      return 0;
-
 
232281
    }
-
 
232282
 
-
 
232283
    public _Fields fieldForId(int fieldId) {
-
 
232284
      return _Fields.findByThriftId(fieldId);
-
 
232285
    }
-
 
232286
 
-
 
232287
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
232288
      org.apache.thrift.protocol.TField field;
-
 
232289
      iprot.readStructBegin();
-
 
232290
      while (true)
-
 
232291
      {
-
 
232292
        field = iprot.readFieldBegin();
-
 
232293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
232294
          break;
-
 
232295
        }
-
 
232296
        switch (field.id) {
-
 
232297
          case 0: // SUCCESS
-
 
232298
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
232299
              this.success = iprot.readBool();
-
 
232300
              setSuccessIsSet(true);
-
 
232301
            } else { 
-
 
232302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
232303
            }
-
 
232304
            break;
-
 
232305
          default:
-
 
232306
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
232307
        }
-
 
232308
        iprot.readFieldEnd();
-
 
232309
      }
-
 
232310
      iprot.readStructEnd();
-
 
232311
      validate();
-
 
232312
    }
-
 
232313
 
-
 
232314
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
232315
      oprot.writeStructBegin(STRUCT_DESC);
-
 
232316
 
-
 
232317
      if (this.isSetSuccess()) {
-
 
232318
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
232319
        oprot.writeBool(this.success);
-
 
232320
        oprot.writeFieldEnd();
-
 
232321
      }
-
 
232322
      oprot.writeFieldStop();
-
 
232323
      oprot.writeStructEnd();
-
 
232324
    }
-
 
232325
 
-
 
232326
    @Override
-
 
232327
    public String toString() {
-
 
232328
      StringBuilder sb = new StringBuilder("addOrUpdateShipmentLogisticsCostDetails_result(");
-
 
232329
      boolean first = true;
-
 
232330
 
-
 
232331
      sb.append("success:");
-
 
232332
      sb.append(this.success);
-
 
232333
      first = false;
231632
      sb.append(")");
232334
      sb.append(")");
231633
      return sb.toString();
232335
      return sb.toString();
231634
    }
232336
    }
231635
 
232337
 
231636
    public void validate() throws org.apache.thrift.TException {
232338
    public void validate() throws org.apache.thrift.TException {