Interface ProductChangePriceAction
- All Superinterfaces:
ProductUpdateAction,ResourceUpdateAction<ProductUpdateAction>
ProductChangePriceAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductChangePriceAction productChangePriceAction = ProductChangePriceAction.builder()
.priceId("{priceId}")
.price(priceBuilder -> priceBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductChangePriceAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductChangePriceActionbuilder(ProductChangePriceAction template) create builder for ProductChangePriceAction instancecopyDeep()static ProductChangePriceActiondeepCopy(ProductChangePriceAction template) factory method to create a deep copy of ProductChangePriceAction@NotNull @Valid PriceDraftgetPrice()Value to set.@NotNull StringTheidof the Embedded Price to update.Iftrue, only the staged Embedded Price is updated.static ProductChangePriceActionof()factory methodstatic ProductChangePriceActionof(ProductChangePriceAction template) factory method to create a shallow copy ProductChangePriceActionvoidsetPrice(PriceDraft price) Value to set.voidsetPriceId(String priceId) Theidof the Embedded Price to update.voidIftrue, only the staged Embedded Price is updated.static com.fasterxml.jackson.core.type.TypeReference<ProductChangePriceAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_PRICE
discriminator value for ProductChangePriceAction- See Also:
-
-
Method Details
-
getPriceId
The
idof the Embedded Price to update.- Returns:
- priceId
-
getPrice
Value to set.
- Returns:
- price
-
getStaged
Boolean getStaged()If
true, only the staged Embedded Price is updated. Iffalse, both the current and staged Embedded Price are updated.- Returns:
- staged
-
setPriceId
The
idof the Embedded Price to update.- Parameters:
priceId- value to be set
-
setPrice
Value to set.
- Parameters:
price- value to be set
-
setStaged
If
true, only the staged Embedded Price is updated. Iffalse, both the current and staged Embedded Price are updated.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of ProductChangePriceAction
-
of
factory method to create a shallow copy ProductChangePriceAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductChangePriceAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
deepCopy
factory method to create a deep copy of ProductChangePriceAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductChangePriceAction- Returns:
- builder
-
builder
create builder for ProductChangePriceAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductChangePriceAction
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
-