Package io.voucherify.client.model
Class LoyaltyTiersExpirationAllExpirationDate
java.lang.Object
io.voucherify.client.model.LoyaltyTiersExpirationAllExpirationDate
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltyTiersExpirationAllExpirationDate
extends Object
Defines the conditions for the expiration date of a tier.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumWhat triggers the tier to expire for a customer. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of LoyaltyTiersExpirationAllExpirationDate given an JSON stringExtend the expiration by adding extra months or days in ISO 8601 format.Get roundinggetType()What triggers the tier to expire for a customer.inthashCode()voidvoidvoidtoJson()Convert an instance of LoyaltyTiersExpirationAllExpirationDate to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_EXTEND
- See Also:
-
SERIALIZED_NAME_ROUNDING
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltyTiersExpirationAllExpirationDate
public LoyaltyTiersExpirationAllExpirationDate()
-
-
Method Details
-
type
-
getType
What triggers the tier to expire for a customer. `END_OF_PERIOD`: Expire tier at the end of the period. `END_OF_NEXT_PERIOD`: Expire tier at the end of the next period. `BALANCE_DROP`: Tier expires when the points balance drops below the required range of the tier. `CUSTOM`: Tier expires after a certain time period passes following the instance the points balance drops below the required range of the tier.- Returns:
- type
-
setType
-
extend
-
getExtend
Extend the expiration by adding extra months or days in ISO 8601 format. The tier will remain active even though it reaches its expiration time period. For example, a tier with a duration of `P3M` will be valid for an additional duration of 3 months and a tier with a duration of `P1D` will be valid for an additional duration of 1 day.- Returns:
- extend
-
setExtend
-
rounding
public LoyaltyTiersExpirationAllExpirationDate rounding(LoyaltyTiersExpirationAllExpirationDateRounding rounding) -
getRounding
Get rounding- Returns:
- rounding
-
setRounding
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltyTiersExpirationAllExpirationDate fromJson(String jsonString) throws IOException Create an instance of LoyaltyTiersExpirationAllExpirationDate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltyTiersExpirationAllExpirationDate
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltyTiersExpirationAllExpirationDate
-
toJson
Convert an instance of LoyaltyTiersExpirationAllExpirationDate to an JSON string- Returns:
- JSON string
-