Class OfferServiceMetadata

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]") public class OfferServiceMetadata 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

    • OfferServiceMetadata

      public OfferServiceMetadata()
  • Method Details

    • maximumDepthCm

      public OfferServiceMetadata 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 OfferServiceMetadata 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 OfferServiceMetadata 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 OfferServiceMetadata 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 OfferServiceMetadata.TypeEnum getType()
      The type of the baggage
      Returns:
      type
    • setType

      public void setType(OfferServiceMetadata.TypeEnum type)
    • 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