Class OrderServiceMetadata

java.lang.Object
com.duffel.sdk.model.OrderServiceMetadata

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]") public class OrderServiceMetadata extends Object
The metadata varies by the type of service. It includes further data about the service. For example, for baggages, it may have data about size and weight restrictions.
  • Field Details

  • Constructor Details

    • OrderServiceMetadata

      public OrderServiceMetadata()
  • Method Details

    • maximumDepthCm

      public OrderServiceMetadata maximumDepthCm(BigDecimal maximumDepthCm)
    • getMaximumDepthCm

      @Nullable @NotNull @Valid public @NotNull @Valid BigDecimal getMaximumDepthCm()
      The maximum depth that the baggage can have in centimetres
      Returns:
      maximumDepthCm
    • setMaximumDepthCm

      public void setMaximumDepthCm(BigDecimal maximumDepthCm)
    • maximumHeightCm

      public OrderServiceMetadata maximumHeightCm(BigDecimal maximumHeightCm)
    • getMaximumHeightCm

      @Nullable @NotNull @Valid public @NotNull @Valid BigDecimal getMaximumHeightCm()
      The maximum height that the baggage can have in centimetres
      Returns:
      maximumHeightCm
    • setMaximumHeightCm

      public void setMaximumHeightCm(BigDecimal maximumHeightCm)
    • maximumLengthCm

      public OrderServiceMetadata maximumLengthCm(BigDecimal maximumLengthCm)
    • getMaximumLengthCm

      @Nullable @NotNull @Valid public @NotNull @Valid BigDecimal getMaximumLengthCm()
      The maximum length that the baggage can have in centimetres
      Returns:
      maximumLengthCm
    • setMaximumLengthCm

      public void setMaximumLengthCm(BigDecimal maximumLengthCm)
    • maximumWeightKg

      public OrderServiceMetadata maximumWeightKg(BigDecimal maximumWeightKg)
    • getMaximumWeightKg

      @Nullable @NotNull @Valid public @NotNull @Valid BigDecimal getMaximumWeightKg()
      The maximum weight that the baggage can have in kilograms
      Returns:
      maximumWeightKg
    • setMaximumWeightKg

      public void setMaximumWeightKg(BigDecimal maximumWeightKg)
    • type

    • getType

      @Nonnull @NotNull public @NotNull OrderServiceMetadata.TypeEnum getType()
      The type of the baggage
      Returns:
      type
    • setType

      public void setType(OrderServiceMetadata.TypeEnum type)
    • designator

      public OrderServiceMetadata designator(String designator)
    • getDesignator

      @Nonnull @NotNull public @NotNull String getDesignator()
      The designator used to uniquely identify the seat, usually made up of a row number and a column letter
      Returns:
      designator
    • setDesignator

      public void setDesignator(String designator)
    • disclosures

      public OrderServiceMetadata disclosures(List<String> disclosures)
    • addDisclosuresItem

      public OrderServiceMetadata addDisclosuresItem(String disclosuresItem)
    • getDisclosures

      @Nonnull @NotNull public @NotNull List<String> getDisclosures()
      Each disclosure is text, in English, provided by the airline that describes the terms and conditions of this seat. We recommend showing this in your user interface to make sure that customers understand any restrictions and limitations.
      Returns:
      disclosures
    • setDisclosures

      public void setDisclosures(List<String> disclosures)
    • name

      public OrderServiceMetadata name(String name)
    • getName

      @Nullable @NotNull public @NotNull String getName()
      A name which describes the type of seat, which you can display in your user interface to help customers to understand its features
      Returns:
      name
    • setName

      public void setName(String name)
    • 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