Package io.voucherify.client.model
Class LoyaltyTierBase
java.lang.Object
io.voucherify.client.model.LoyaltyTierBase
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltyTierBase
extends Object
LoyaltyTierBase
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionearningRules(Map<String, MappingPoints> earningRules) booleanstatic LoyaltyTierBaseCreate an instance of LoyaltyTierBase given an JSON stringContains a list of earning rule IDs and their points mapping for the given earning rule.getName()Loyalty Tier name.Get pointsContains a list of reward IDs and their points mapping for the given reward.inthashCode()points(LoyaltyTierBasePoints points) putEarningRulesItem(String key, MappingPoints earningRulesItem) putRewardsItem(String key, MappingPoints rewardsItem) rewards(Map<String, MappingPoints> rewards) voidsetEarningRules(Map<String, MappingPoints> earningRules) voidvoidsetPoints(LoyaltyTierBasePoints points) voidsetRewards(Map<String, MappingPoints> rewards) toJson()Convert an instance of LoyaltyTierBase to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_EARNING_RULES
- See Also:
-
SERIALIZED_NAME_REWARDS
- See Also:
-
SERIALIZED_NAME_POINTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltyTierBase
public LoyaltyTierBase()
-
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of LoyaltyTierBase given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltyTierBase
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltyTierBase
-
toJson
Convert an instance of LoyaltyTierBase to an JSON string- Returns:
- JSON string
-