Class Order

java.lang.Object
com.veeroute.lss.universal.model.Order

@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 Order extends Object
The order for delivery/transportation, contains a list of demands.
  • Field Details

  • Constructor Details

    • Order

      public Order()
  • Method Details

    • key

      public Order key(@Nonnull String key)
    • getKey

      @Nonnull public String getKey()
      Order key, unique identifier.
      Returns:
      key
    • setKey

      public void setKey(@Nonnull String key)
    • demands

      public Order demands(@Nonnull Set<Demand> demands)
    • addDemandsItem

      public Order addDemandsItem(Demand demandsItem)
    • getDemands

      @Nonnull public Set<Demand> getDemands()
      Demands list.
      Returns:
      demands
    • setDemands

      public void setDemands(@Nonnull Set<Demand> demands)
    • cargos

      public Order cargos(@Nullable Set<Cargo> cargos)
    • addCargosItem

      public Order addCargosItem(Cargo cargosItem)
    • getCargos

      @Nullable public Set<Cargo> getCargos()
      The list of cargoes referred to by the demands of this order. The list must be empty if all demands in the order are of type `WORK`.
      Returns:
      cargos
    • setCargos

      public void setCargos(@Nullable Set<Cargo> cargos)
    • compatibilities

      public Order compatibilities(@Nullable OrderCompatibilities compatibilities)
    • getCompatibilities

      @Nullable public OrderCompatibilities getCompatibilities()
      Get compatibilities
      Returns:
      compatibilities
    • setCompatibilities

      public void setCompatibilities(@Nullable OrderCompatibilities compatibilities)
    • name

      public Order name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Name, information field.
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • attributes

      public Order attributes(@Nullable Set<Attribute> attributes)
    • addAttributesItem

      public Order addAttributesItem(Attribute attributesItem)
    • getAttributes

      @Nullable public Set<Attribute> getAttributes()
      Attributes. Used to add service information.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(@Nullable Set<Attribute> attributes)
    • status

      public Order status(@Nullable OrderStatus status)
    • getStatus

      @Nullable public OrderStatus getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable OrderStatus status)
    • putAdditionalProperty

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

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

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