Package com.duffel.sdk.model
Class OfferSliceConditions1ChangeBeforeDeparture
java.lang.Object
com.duffel.sdk.model.OfferSliceConditions1ChangeBeforeDeparture
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]")
public class OfferSliceConditions1ChangeBeforeDeparture
extends Object
Whether this slice can be changed before the departure. If the slice can be changed for all of the passengers then the `allowed` property will be `true` and information will be provided about any penalties. If none of the passengers on the slice can be changed then the `allowed` property will be `false`. In all other cases this property will be `null` indicating we can't provide the information for this slice. The `penalty_amount` is specific to changing this slice and may not be the penalty that is applied if the entire offer is changed.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this kind of modification is allowed post-bookingIf the modification is `allowed` then this is the amount payable to apply the modification to all passengers.org.openapitools.jackson.nullable.JsonNullable<String>The currency of the `penalty_amount` as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.org.openapitools.jackson.nullable.JsonNullable<String>inthashCode()penaltyAmount(String penaltyAmount) penaltyCurrency(String penaltyCurrency) voidsetAllowed(Boolean allowed) voidsetPenaltyAmount(String penaltyAmount) voidsetPenaltyAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> penaltyAmount) voidsetPenaltyCurrency(String penaltyCurrency) voidsetPenaltyCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> penaltyCurrency) toString()
-
Field Details
-
JSON_PROPERTY_ALLOWED
- See Also:
-
JSON_PROPERTY_PENALTY_AMOUNT
- See Also:
-
JSON_PROPERTY_PENALTY_CURRENCY
- See Also:
-
-
Constructor Details
-
OfferSliceConditions1ChangeBeforeDeparture
public OfferSliceConditions1ChangeBeforeDeparture()
-
-
Method Details
-
allowed
-
getAllowed
Whether this kind of modification is allowed post-booking- Returns:
- allowed
-
setAllowed
-
penaltyAmount
-
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
-
setPenaltyAmount_JsonNullable
public void setPenaltyAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> penaltyAmount) -
setPenaltyAmount
-
penaltyCurrency
-
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
-
setPenaltyCurrency_JsonNullable
public void setPenaltyCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> penaltyCurrency) -
setPenaltyCurrency
-
equals
-
hashCode
public int hashCode() -
toString
-