Class TransportTariff

java.lang.Object
com.veeroute.lss.monitor.model.TransportTariff

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:47:38.388455705+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class TransportTariff extends Object
The tariff determines the cost of transport operation and restrictions on mileage per shift.
  • Field Details

  • Constructor Details

    • TransportTariff

      public TransportTariff()
  • Method Details

    • costPerShift

      public TransportTariff costPerShift(@Nullable Double costPerShift)
    • getCostPerShift

      @Nullable public Double getCostPerShift()
      Price for using the shift, monetary unit. minimum: 0.001 maximum: 1000000
      Returns:
      costPerShift
    • setCostPerShift

      public void setCostPerShift(@Nullable Double costPerShift)
    • constraints

      public TransportTariff constraints(@Nullable List<TransportTariffConstraint> constraints)
    • addConstraintsItem

      public TransportTariff addConstraintsItem(TransportTariffConstraint constraintsItem)
    • getConstraints

      @Nullable public List<TransportTariffConstraint> getConstraints()
      List of components of the tariff.
      Returns:
      constraints
    • setConstraints

      public void setConstraints(@Nullable List<TransportTariffConstraint> constraints)
    • transportationCost

      public TransportTariff transportationCost(@Nullable CapacityCost transportationCost)
    • getTransportationCost

      @Nullable public CapacityCost getTransportationCost()
      Get transportationCost
      Returns:
      transportationCost
    • setTransportationCost

      public void setTransportationCost(@Nullable CapacityCost transportationCost)
    • putAdditionalProperty

      public TransportTariff putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the TransportTariff instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to TransportTariff
    • fromJson

      public static TransportTariff fromJson(String jsonString) throws IOException
      Create an instance of TransportTariff given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of TransportTariff
      Throws:
      IOException - if the JSON string is invalid with respect to TransportTariff
    • toJson

      public String toJson()
      Convert an instance of TransportTariff to an JSON string
      Returns:
      JSON string