Class OfferConditions1ChangeBeforeDeparture

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]") public class OfferConditions1ChangeBeforeDeparture extends Object
Whether the whole offer can be changed before the departure of the first slice. If all of the slices on the offer can be changed then the `allowed` property will be `true`. Refer to the `slices` for information about change penalties. If any of the slices on the offer can't be changed then the `allowed` property will be `false`. In this case you should refer to the `slices` conditions to determine if any part of the offer is changeable. If the airline hasn't provided any information about whether this offer can be changed then this property will be `null`.
  • Field Details

  • Constructor Details

    • OfferConditions1ChangeBeforeDeparture

      public OfferConditions1ChangeBeforeDeparture()
  • Method Details

    • allowed

    • getAllowed

      @Nullable public Boolean getAllowed()
      Whether this kind of modification is allowed post-booking
      Returns:
      allowed
    • setAllowed

      public void setAllowed(Boolean allowed)
    • penaltyAmount

      public OfferConditions1ChangeBeforeDeparture penaltyAmount(String penaltyAmount)
    • getPenaltyAmount

      @Nullable public String getPenaltyAmount()
      If the modification is `allowed` then this is the amount payable to apply the modification to all passengers. If there is no penalty, the value will be zero. If the modification isn't `allowed` or the penalty is not known then this field will be `null`. If this is `null` then the `penalty_currency` will also be `null`.
      Returns:
      penaltyAmount
    • getPenaltyAmount_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getPenaltyAmount_JsonNullable()
    • setPenaltyAmount_JsonNullable

      public void setPenaltyAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> penaltyAmount)
    • setPenaltyAmount

      public void setPenaltyAmount(String penaltyAmount)
    • penaltyCurrency

      public OfferConditions1ChangeBeforeDeparture penaltyCurrency(String penaltyCurrency)
    • getPenaltyCurrency

      @Nullable public String getPenaltyCurrency()
      The currency of the `penalty_amount` as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. This will be in a currency determined by the airline, which is not necessarily the same as the currency of the offer or order. If this is `null` then `penalty_amount` will also be `null`.
      Returns:
      penaltyCurrency
    • getPenaltyCurrency_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getPenaltyCurrency_JsonNullable()
    • setPenaltyCurrency_JsonNullable

      public void setPenaltyCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> penaltyCurrency)
    • setPenaltyCurrency

      public void setPenaltyCurrency(String penaltyCurrency)
    • 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