Package com.veeroute.lss.universal.model
Class TransportTariff
java.lang.Object
com.veeroute.lss.universal.model.TransportTariff
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-11-23T13:48:07.156941043+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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConstraintsItem(TransportTariffConstraint constraintsItem) constraints(List<TransportTariffConstraint> constraints) costPerShift(Double costPerShift) booleanstatic TransportTariffCreate an instance of TransportTariff given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.List of components of the tariff.Price for using the shift, monetary unit.Get transportationCostinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetConstraints(List<TransportTariffConstraint> constraints) voidsetCostPerShift(Double costPerShift) voidsetTransportationCost(CapacityCost transportationCost) toJson()Convert an instance of TransportTariff to an JSON stringtoString()transportationCost(CapacityCost transportationCost) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_COST_PER_SHIFT
- See Also:
-
SERIALIZED_NAME_CONSTRAINTS
- See Also:
-
SERIALIZED_NAME_TRANSPORTATION_COST
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TransportTariff
public TransportTariff()
-
-
Method Details
-
costPerShift
-
getCostPerShift
Price for using the shift, monetary unit. minimum: 0.001 maximum: 1000000- Returns:
- costPerShift
-
setCostPerShift
-
constraints
-
addConstraintsItem
-
getConstraints
List of components of the tariff.- Returns:
- constraints
-
setConstraints
-
transportationCost
-
getTransportationCost
Get transportationCost- Returns:
- transportationCost
-
setTransportationCost
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the TransportTariff instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of TransportTariff to an JSON string- Returns:
- JSON string
-