Class VariableCharge
java.lang.Object
travel.wink.sdk.channel.manager.model.VariableCharge
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-06T15:46:38.840212928+07:00[Asia/Bangkok]")
public class VariableCharge
extends Object
VariableCharge
-
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(CustomMonetaryAmount fixedAmount) @Valid CustomMonetaryAmountGet fixedAmountA percentage of the total stay amount for an early check-in or late check-out@NotNull VariableCharge.TypeEnumgetType()When the type is FIXED, fixedAmount is required.inthashCode()voidsetFixedAmount(CustomMonetaryAmount fixedAmount) voidsetPercent(Float percent) voidtoString()type(VariableCharge.TypeEnum type)
-
Field Details
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_PERCENT
- See Also:
-
JSON_PROPERTY_FIXED_AMOUNT
- See Also:
-
-
Constructor Details
-
VariableCharge
public VariableCharge()
-
-
Method Details
-
type
-
getType
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.- Returns:
- type
-
setType
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-