Interface DiscountGroupSetIsActiveAction
- All Superinterfaces:
DiscountGroupUpdateAction
This action generates the DiscountGroupIsActiveSet Message.
If the limit for active Discount Groups has been reached, a MaxDiscountGroupsReached error is returned.
Example to create an instance using the builder pattern
DiscountGroupSetIsActiveAction discountGroupSetIsActiveAction = DiscountGroupSetIsActiveAction.builder()
.isActive(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for DiscountGroupSetIsActiveAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for DiscountGroupSetIsActiveActionbuilder(DiscountGroupSetIsActiveAction template) create builder for DiscountGroupSetIsActiveAction instancecopyDeep()deepCopy(DiscountGroupSetIsActiveAction template) factory method to create a deep copy of DiscountGroupSetIsActiveAction@NotNull BooleanNew value to set.of()factory methodof(DiscountGroupSetIsActiveAction template) factory method to create a shallow copy DiscountGroupSetIsActiveActionvoidsetIsActive(Boolean isActive) New value to set.static com.fasterxml.jackson.core.type.TypeReference<DiscountGroupSetIsActiveAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.discount_group.DiscountGroupUpdateAction
getAction, withDiscountGroupUpdateAction
-
Field Details
-
SET_IS_ACTIVE
discriminator value for DiscountGroupSetIsActiveAction- See Also:
-
-
Method Details
-
getIsActive
New value to set.
A DiscountGroup must be active for its CartDiscounts to be considered during discount application.
- Returns:
- isActive
-
setIsActive
New value to set.
A DiscountGroup must be active for its CartDiscounts to be considered during discount application.
- Parameters:
isActive- value to be set
-
of
factory method- Returns:
- instance of DiscountGroupSetIsActiveAction
-
of
factory method to create a shallow copy DiscountGroupSetIsActiveAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
DiscountGroupSetIsActiveAction copyDeep()- Specified by:
copyDeepin interfaceDiscountGroupUpdateAction
-
deepCopy
@Nullable static DiscountGroupSetIsActiveAction deepCopy(@Nullable DiscountGroupSetIsActiveAction template) factory method to create a deep copy of DiscountGroupSetIsActiveAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountGroupSetIsActiveAction- Returns:
- builder
-
builder
create builder for DiscountGroupSetIsActiveAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountGroupSetIsActiveAction
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<DiscountGroupSetIsActiveAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-