Class TripPenalties

java.lang.Object
com.veeroute.lss.studio.model.TripPenalties

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:47:57.513559297+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class TripPenalties extends Object
Planning penalties - ability to disrupt a part of the planning business rules.
  • Field Details

    • SERIALIZED_NAME_COMPATIBILITIES

      public static final String SERIALIZED_NAME_COMPATIBILITIES
      See Also:
    • SERIALIZED_NAME_MAX_LOCATIONS_LIMITS_PENALTY

      public static final String SERIALIZED_NAME_MAX_LOCATIONS_LIMITS_PENALTY
      See Also:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • Constructor Details

    • TripPenalties

      public TripPenalties()
  • Method Details

    • compatibilities

      public TripPenalties compatibilities(@Nullable Set<CompatibilityPenalty> compatibilities)
    • addCompatibilitiesItem

      public TripPenalties addCompatibilitiesItem(CompatibilityPenalty compatibilitiesItem)
    • getCompatibilities

      @Nullable public Set<CompatibilityPenalty> getCompatibilities()
      Penalties for violation of compatibility. When taking into account transport-location compatibility violations, the penalty is applied for each stop and cannot exceed the `max_penalty_cost` of the performer assigned to the trip. Only the absence of a property is penalized; the time windows of the life of a property cannot be violated for a fine.
      Returns:
      compatibilities
    • setCompatibilities

      public void setCompatibilities(@Nullable Set<CompatibilityPenalty> compatibilities)
    • maxLocationsLimitsPenalty

      public TripPenalties maxLocationsLimitsPenalty(@Nullable Double maxLocationsLimitsPenalty)
    • getMaxLocationsLimitsPenalty

      @Nullable public Double getMaxLocationsLimitsPenalty()
      The maximum allowable amount of fines for violating location's capacity limit. minimum: 0 maximum: 1000000000
      Returns:
      maxLocationsLimitsPenalty
    • setMaxLocationsLimitsPenalty

      public void setMaxLocationsLimitsPenalty(@Nullable Double maxLocationsLimitsPenalty)
    • putAdditionalProperty

      public TripPenalties 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 TripPenalties 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 TripPenalties
    • fromJson

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

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