Interface DiscountCodeUpdateAction
- All Superinterfaces:
ResourceUpdateAction<DiscountCodeUpdateAction>
- All Known Subinterfaces:
DiscountCodeChangeCartDiscountsAction
,DiscountCodeChangeGroupsAction
,DiscountCodeChangeIsActiveAction
,DiscountCodeSetCartPredicateAction
,DiscountCodeSetCustomFieldAction
,DiscountCodeSetCustomTypeAction
,DiscountCodeSetDescriptionAction
,DiscountCodeSetMaxApplicationsAction
,DiscountCodeSetMaxApplicationsPerCustomerAction
,DiscountCodeSetNameAction
,DiscountCodeSetValidFromAction
,DiscountCodeSetValidFromAndUntilAction
,DiscountCodeSetValidUntilAction
- All Known Implementing Classes:
DiscountCodeChangeCartDiscountsActionImpl
,DiscountCodeChangeGroupsActionImpl
,DiscountCodeChangeIsActiveActionImpl
,DiscountCodeSetCartPredicateActionImpl
,DiscountCodeSetCustomFieldActionImpl
,DiscountCodeSetCustomTypeActionImpl
,DiscountCodeSetDescriptionActionImpl
,DiscountCodeSetMaxApplicationsActionImpl
,DiscountCodeSetMaxApplicationsPerCustomerActionImpl
,DiscountCodeSetNameActionImpl
,DiscountCodeSetValidFromActionImpl
,DiscountCodeSetValidFromAndUntilActionImpl
,DiscountCodeSetValidUntilActionImpl
,DiscountCodeUpdateActionImpl
DiscountCodeUpdateAction
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
DiscountCodeUpdateAction discountCodeUpdateAction = DiscountCodeUpdateAction.changeCartDiscountsBuilder()
plusCartDiscounts(cartDiscountsBuilder -> cartDiscountsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for changeCartDiscounts subtypebuilder for changeGroups subtypebuilder for changeIsActive subtypestatic DiscountCodeUpdateAction
deepCopy
(DiscountCodeUpdateAction template) factory method to create a deep copy of DiscountCodeUpdateAction@NotNull String
builder for setCartPredicate subtypebuilder for setCustomField subtypebuilder for setCustomType subtypebuilder for setDescription subtypebuilder for setMaxApplications subtypebuilder for setMaxApplicationsPerCustomer subtypebuilder for setName subtypebuilder for setValidFromAndUntil subtypebuilder for setValidFrom subtypebuilder for setValidUntil subtypestatic com.fasterxml.jackson.core.type.TypeReference<DiscountCodeUpdateAction>
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<DiscountCodeUpdateAction>
- Returns:
- action
-
deepCopy
factory method to create a deep copy of DiscountCodeUpdateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
changeCartDiscountsBuilder
builder for changeCartDiscounts subtype- Returns:
- builder
-
changeGroupsBuilder
builder for changeGroups subtype- Returns:
- builder
-
changeIsActiveBuilder
builder for changeIsActive subtype- Returns:
- builder
-
setCartPredicateBuilder
builder for setCartPredicate subtype- Returns:
- builder
-
setCustomFieldBuilder
builder for setCustomField subtype- Returns:
- builder
-
setCustomTypeBuilder
builder for setCustomType subtype- Returns:
- builder
-
setDescriptionBuilder
builder for setDescription subtype- Returns:
- builder
-
setMaxApplicationsBuilder
builder for setMaxApplications subtype- Returns:
- builder
-
setMaxApplicationsPerCustomerBuilder
static DiscountCodeSetMaxApplicationsPerCustomerActionBuilder setMaxApplicationsPerCustomerBuilder()builder for setMaxApplicationsPerCustomer subtype- Returns:
- builder
-
setNameBuilder
builder for setName subtype- Returns:
- builder
-
setValidFromBuilder
builder for setValidFrom subtype- Returns:
- builder
-
setValidFromAndUntilBuilder
builder for setValidFromAndUntil subtype- Returns:
- builder
-
setValidUntilBuilder
builder for setValidUntil subtype- Returns:
- builder
-
withDiscountCodeUpdateAction
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
-