Class RateExtraPaxRateModifier
java.lang.Object
travel.wink.sdk.booking.engine.model.RateExtraPaxRateModifier
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-07T09:36:43.710591+07:00[Asia/Bangkok]")
public class RateExtraPaxRateModifier
extends Object
How much to charge for one extra adult staying in the room. Example: Included occupancy for a room type is 2 but it allows for 3 people to stay. This sets how much the third person should be charged extra.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhen the type is FIXED, fixedAmount is required. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfixedAmount(Moneys fixedAmount) @Valid MoneysGet fixedAmountA percentage of the total stay amount for an early check-in or late check-out@NotNull RateExtraPaxRateModifier.TypeEnumgetType()When the type is FIXED, fixedAmount is required.inthashCode()voidsetFixedAmount(Moneys fixedAmount) voidsetPercent(Float percent) voidtoString()
-
Field Details
-
JSON_PROPERTY_PERCENT
- See Also:
-
JSON_PROPERTY_FIXED_AMOUNT
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
RateExtraPaxRateModifier
public RateExtraPaxRateModifier()
-
-
Method Details
-
percent
-
getPercent
A percentage of the total stay amount for an early check-in or late check-out- Returns:
- percent
-
setPercent
-
fixedAmount
-
getFixedAmount
Get fixedAmount- Returns:
- fixedAmount
-
setFixedAmount
-
type
-
getType
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-