Package io.voucherify.client.model
Class LoyaltyTiersExpirationAllExpirationDateRounding
java.lang.Object
io.voucherify.client.model.LoyaltyTiersExpirationAllExpirationDateRounding
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltyTiersExpirationAllExpirationDateRounding
extends Object
Defines the rounding mechanism for tier expiration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThis mechanism describes a rounding strategy for the expiration date.static enumThis mechanism describes a custom rounding for the expiration date.static enumDefines the type of unit of time in which the rounding period is counted. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of LoyaltyTiersExpirationAllExpirationDateRounding given an JSON stringThis mechanism describes a rounding strategy for the expiration date.getType()This mechanism describes a custom rounding for the expiration date.getUnit()Defines the type of unit of time in which the rounding period is counted.getValue()Value for the unit of time that the rounding applies to.inthashCode()voidvoidvoidvoidtoJson()Convert an instance of LoyaltyTiersExpirationAllExpirationDateRounding to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_STRATEGY
- See Also:
-
SERIALIZED_NAME_UNIT
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltyTiersExpirationAllExpirationDateRounding
public LoyaltyTiersExpirationAllExpirationDateRounding()
-
-
Method Details
-
type
-
getType
This mechanism describes a custom rounding for the expiration date.- Returns:
- type
-
setType
-
strategy
public LoyaltyTiersExpirationAllExpirationDateRounding strategy(LoyaltyTiersExpirationAllExpirationDateRounding.StrategyEnum strategy) -
getStrategy
This mechanism describes a rounding strategy for the expiration date.- Returns:
- strategy
-
setStrategy
-
unit
-
getUnit
Defines the type of unit of time in which the rounding period is counted.- Returns:
- unit
-
setUnit
-
value
-
getValue
Value for the unit of time that the rounding applies to. Units for this parameter are defined by the `rounding.unit` parameter. - `0`: January - `1`: February - `2`: March - `3`: April - `4`: May - `5`: June - `6`: July - `7`: August - `8`: September - `9`: October - `10`: November - `11`: December- Returns:
- value
-
setValue
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltyTiersExpirationAllExpirationDateRounding fromJson(String jsonString) throws IOException Create an instance of LoyaltyTiersExpirationAllExpirationDateRounding given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltyTiersExpirationAllExpirationDateRounding
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltyTiersExpirationAllExpirationDateRounding
-
toJson
Convert an instance of LoyaltyTiersExpirationAllExpirationDateRounding to an JSON string- Returns:
- JSON string
-