Interface CartDiscountUpdateAction
- All Superinterfaces:
ResourceUpdateAction<CartDiscountUpdateAction>
- All Known Subinterfaces:
CartDiscountAddStoreAction
,CartDiscountChangeCartPredicateAction
,CartDiscountChangeIsActiveAction
,CartDiscountChangeNameAction
,CartDiscountChangeRequiresDiscountCodeAction
,CartDiscountChangeSortOrderAction
,CartDiscountChangeStackingModeAction
,CartDiscountChangeTargetAction
,CartDiscountChangeValueAction
,CartDiscountRemoveStoreAction
,CartDiscountSetCustomFieldAction
,CartDiscountSetCustomTypeAction
,CartDiscountSetDescriptionAction
,CartDiscountSetKeyAction
,CartDiscountSetStoresAction
,CartDiscountSetValidFromAction
,CartDiscountSetValidFromAndUntilAction
,CartDiscountSetValidUntilAction
CartDiscountUpdateAction
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
CartDiscountUpdateAction cartDiscountUpdateAction = CartDiscountUpdateAction.addStoreBuilder()
store(storeBuilder -> storeBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for addStore subtypebuilder for changeCartPredicate subtypebuilder for changeIsActive subtypebuilder for changeName subtypebuilder for changeRequiresDiscountCode subtypebuilder for changeSortOrder subtypebuilder for changeStackingMode subtypebuilder for changeTarget subtypebuilder for changeValue subtypestatic CartDiscountUpdateAction
deepCopy
(CartDiscountUpdateAction template) factory method to create a deep copy of CartDiscountUpdateAction@NotNull String
builder for removeStore subtypebuilder for setCustomField subtypebuilder for setCustomType subtypebuilder for setDescription subtypebuilder for setKey subtypebuilder for setStores subtypebuilder for setValidFromAndUntil subtypebuilder for setValidFrom subtypebuilder for setValidUntil subtypestatic com.fasterxml.jackson.core.type.TypeReference<CartDiscountUpdateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartDiscountUpdateAction>
- Returns:
- action
-
deepCopy
factory method to create a deep copy of CartDiscountUpdateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
addStoreBuilder
builder for addStore subtype- Returns:
- builder
-
changeCartPredicateBuilder
builder for changeCartPredicate subtype- Returns:
- builder
-
changeIsActiveBuilder
builder for changeIsActive subtype- Returns:
- builder
-
changeNameBuilder
builder for changeName subtype- Returns:
- builder
-
changeRequiresDiscountCodeBuilder
builder for changeRequiresDiscountCode subtype- Returns:
- builder
-
changeSortOrderBuilder
builder for changeSortOrder subtype- Returns:
- builder
-
changeStackingModeBuilder
builder for changeStackingMode subtype- Returns:
- builder
-
changeTargetBuilder
builder for changeTarget subtype- Returns:
- builder
-
changeValueBuilder
builder for changeValue subtype- Returns:
- builder
-
removeStoreBuilder
builder for removeStore subtype- Returns:
- builder
-
setCustomFieldBuilder
builder for setCustomField subtype- Returns:
- builder
-
setCustomTypeBuilder
builder for setCustomType subtype- Returns:
- builder
-
setDescriptionBuilder
builder for setDescription subtype- Returns:
- builder
-
setKeyBuilder
builder for setKey subtype- Returns:
- builder
-
setStoresBuilder
builder for setStores subtype- Returns:
- builder
-
setValidFromBuilder
builder for setValidFrom subtype- Returns:
- builder
-
setValidFromAndUntilBuilder
builder for setValidFromAndUntil subtype- Returns:
- builder
-
setValidUntilBuilder
builder for setValidUntil subtype- Returns:
- builder
-
withCartDiscountUpdateAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-