Package io.voucherify.client.model
Class LoyaltiesTiersGetResponseBody
java.lang.Object
io.voucherify.client.model.LoyaltiesTiersGetResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesTiersGetResponseBody
extends Object
Response body schema for **GET** `v1/loyalties/{campaignId}/tiers/{loyaltyTierId}`.
-
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 TypeMethodDescriptioncampaignId(String campaignId) createdAt(OffsetDateTime createdAt) earningRules(Map<String, MappingPoints> earningRules) booleanexpiration(LoyaltyTierExpiration expiration) Create an instance of LoyaltiesTiersGetResponseBody 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()putEarningRulesItem(String key, MappingPoints earningRulesItem) putRewardsItem(String key, MappingPoints rewardsItem) rewards(Map<String, MappingPoints> rewards) voidsetCampaignId(String campaignId) voidvoidsetCreatedAt(OffsetDateTime createdAt) voidsetEarningRules(Map<String, MappingPoints> earningRules) voidsetExpiration(LoyaltyTierExpiration expiration) voidvoidsetMetadata(Object metadata) voidvoidvoidvoidsetRewards(Map<String, MappingPoints> rewards) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of LoyaltiesTiersGetResponseBody 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
-
LoyaltiesTiersGetResponseBody
public LoyaltiesTiersGetResponseBody()
-
-
Method Details
-
name
-
getName
Loyalty Tier name.- Returns:
- name
-
setName
-
earningRules
-
putEarningRulesItem
public LoyaltiesTiersGetResponseBody putEarningRulesItem(String key, MappingPoints earningRulesItem) -
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 LoyaltiesTiersGetResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesTiersGetResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesTiersGetResponseBody
-
toJson
Convert an instance of LoyaltiesTiersGetResponseBody to an JSON string- Returns:
- JSON string
-