Fluent builder for constructing and persisting a new RewardCategory. Configure the name and title with the setter methods, then call build to validate and save the category. Obtained from PromotionsManager.newRewardCategoryBuilder.
Group: Builders
Methods
name(String name)
Returns: RewardCategoryBuilder
Sets the unique name of the reward category being built.
| Parameter | Description |
|---|---|
name | the unique name for the reward category |
title(String title)
Returns: RewardCategoryBuilder
Sets the display title of the reward category being built.
| Parameter | Description |
|---|---|
title | the display title for the reward category |
build()
Returns: RewardCategory
Validates and persists the configured reward category. Fails if the name or title is blank, or if a reward category with the same name already exists in the current tenant organisation.
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.