Package io.voucherify.client.model
Class LoyaltyTier
java.lang.Object
io.voucherify.client.model.LoyaltyTier
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltyTier
extends Object
LoyaltyTier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(LoyaltyTier.ObjectEnum _object) campaignId(String campaignId) config(LoyaltyTierConfig config) createdAt(OffsetDateTime createdAt) earningRules(Map<String, MappingPoints> earningRules) booleanexpiration(LoyaltyTierExpiration expiration) static LoyaltyTierCreate an instance of LoyaltyTier given an JSON stringUnique parent campaign ID.Get configTimestamp representing the date and time when the loyalty tier was created.Contains a list of earning rule IDs and their points mapping for the given earning rule.Get expirationgetId()Unique loyalty tier ID.The metadata object stores all custom attributes assigned to the loyalty tier.getName()Loyalty Tier name.The type of the object represented by JSON.Get pointsContains a list of reward IDs and their points mapping for the given reward.Timestamp representing the date and time when the loyalty tier was updated.inthashCode()points(LoyaltyTierPoints points) putEarningRulesItem(String key, MappingPoints earningRulesItem) putRewardsItem(String key, MappingPoints rewardsItem) rewards(Map<String, MappingPoints> rewards) voidsetCampaignId(String campaignId) voidsetConfig(LoyaltyTierConfig config) voidsetCreatedAt(OffsetDateTime createdAt) voidsetEarningRules(Map<String, MappingPoints> earningRules) voidsetExpiration(LoyaltyTierExpiration expiration) voidvoidsetMetadata(Object metadata) voidvoidsetObject(LoyaltyTier.ObjectEnum _object) voidsetPoints(LoyaltyTierPoints points) voidsetRewards(Map<String, MappingPoints> rewards) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of LoyaltyTier to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_EARNING_RULES
- See Also:
-
SERIALIZED_NAME_REWARDS
- See Also:
-
SERIALIZED_NAME_POINTS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_CAMPAIGN_ID
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_CONFIG
- See Also:
-
SERIALIZED_NAME_EXPIRATION
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltyTier
public LoyaltyTier()
-
-
Method Details
-
name
-
getName
Loyalty Tier name.- Returns:
- name
-
setName
-
earningRules
-
putEarningRulesItem
-
getEarningRules
Contains a list of earning rule IDs and their points mapping for the given earning rule.- Returns:
- earningRules
-
setEarningRules
-
rewards
-
putRewardsItem
-
getRewards
Contains a list of reward IDs and their points mapping for the given reward.- Returns:
- rewards
-
setRewards
-
points
-
getPoints
Get points- Returns:
- points
-
setPoints
-
id
-
getId
Unique loyalty tier ID.- Returns:
- id
-
setId
-
campaignId
-
getCampaignId
Unique parent campaign ID.- Returns:
- campaignId
-
setCampaignId
-
metadata
-
getMetadata
The metadata object stores all custom attributes assigned to the loyalty tier. A set of key/value pairs that you can attach to a loyalty tier object. It can be useful for storing additional information about the loyalty tier in a structured format.- Returns:
- metadata
-
setMetadata
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the loyalty tier was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the loyalty tier was updated. The value is shown in the ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
config
-
getConfig
Get config- Returns:
- config
-
setConfig
-
expiration
-
getExpiration
Get expiration- Returns:
- expiration
-
setExpiration
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about the loyalty.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of LoyaltyTier given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltyTier
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltyTier
-
toJson
Convert an instance of LoyaltyTier to an JSON string- Returns:
- JSON string
-