Class ApiCancellationPolicy

java.lang.Object
travel.wink.hotelbeds.booking.sdk.model.ApiCancellationPolicy

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-10-04T11:28:08.331690043+07:00[Asia/Bangkok]") public class ApiCancellationPolicy extends Object
Set of rules that define the penalty the client will receive if the cancellation of a booking is made after a given date.
  • Field Details

  • Constructor Details

    • ApiCancellationPolicy

      public ApiCancellationPolicy()
  • Method Details

    • amount

      public ApiCancellationPolicy amount(String amount)
    • getAmount

      @Nullable public String getAmount()
      Penalty that will be charged for cancellations after the indicated date, represented as a monetary amount.
      Returns:
      amount
    • setAmount

      public void setAmount(String amount)
    • from

      public ApiCancellationPolicy from(String from)
    • getFrom

      @Nullable public String getFrom()
      Date from which the penalties are applied in ISO 8601 format (yyyy-MM-ddTHH:mm:ssZ).
      Returns:
      from
    • setFrom

      public void setFrom(String from)
    • percent

      public ApiCancellationPolicy percent(String percent)
    • getPercent

      @Nullable public String getPercent()
      Penalty that will be charged for cancellations after the indicated date, represented as a monetary amount, represented as a percentage of the total amount of the booking.
      Returns:
      percent
    • setPercent

      public void setPercent(String percent)
    • numberOfNights

      public ApiCancellationPolicy numberOfNights(String numberOfNights)
    • getNumberOfNights

      @Nullable public String getNumberOfNights()
      Penalty that will be applied for cancellations after the indicated date, represented as a number of nights.
      Returns:
      numberOfNights
    • setNumberOfNights

      public void setNumberOfNights(String numberOfNights)
    • 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