Package io.voucherify.client.model
Class LoyaltiesTiersCreateInBulkRequestBodyItem
java.lang.Object
io.voucherify.client.model.LoyaltiesTiersCreateInBulkRequestBodyItem
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesTiersCreateInBulkRequestBodyItem
extends Object
LoyaltiesTiersCreateInBulkRequestBodyItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionearningRules(Map<String, MappingPoints> earningRules) booleanCreate an instance of LoyaltiesTiersCreateInBulkRequestBodyItem given an JSON stringContains a list of earning rule IDs and their points mapping for the given earning rule.The metadata object stores all custom attributes assigned to the loyalty tier.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) voidsetMetadata(Object metadata) voidvoidsetPoints(LoyaltyTierBasePoints points) voidsetRewards(Map<String, MappingPoints> rewards) toJson()Convert an instance of LoyaltiesTiersCreateInBulkRequestBodyItem 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:
-
SERIALIZED_NAME_METADATA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesTiersCreateInBulkRequestBodyItem
public LoyaltiesTiersCreateInBulkRequestBodyItem()
-
-
Method Details
-
name
-
getName
Loyalty Tier name.- Returns:
- name
-
setName
-
earningRules
public LoyaltiesTiersCreateInBulkRequestBodyItem earningRules(Map<String, MappingPoints> earningRules) -
putEarningRulesItem
public LoyaltiesTiersCreateInBulkRequestBodyItem 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
public LoyaltiesTiersCreateInBulkRequestBodyItem putRewardsItem(String key, MappingPoints rewardsItem) -
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
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesTiersCreateInBulkRequestBodyItem fromJson(String jsonString) throws IOException Create an instance of LoyaltiesTiersCreateInBulkRequestBodyItem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesTiersCreateInBulkRequestBodyItem
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesTiersCreateInBulkRequestBodyItem
-
toJson
Convert an instance of LoyaltiesTiersCreateInBulkRequestBodyItem to an JSON string- Returns:
- JSON string
-