Interface ProductPriceDiscountsSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a Price is updated due to a Product Discount.
Example to create an instance using the builder pattern
ProductPriceDiscountsSetMessagePayload productPriceDiscountsSetMessagePayload = ProductPriceDiscountsSetMessagePayload.builder()
.plusUpdatedPrices(updatedPricesBuilder -> updatedPricesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductPriceDiscountsSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductPriceDiscountsSetMessagePayloadcreate builder for ProductPriceDiscountsSetMessagePayload instancefactory method to create a deep copy of ProductPriceDiscountsSetMessagePayload@NotNull @Valid List<ProductPriceDiscountsSetUpdatedPrice>
Array containing details about the Embedded Prices that were updated.of()
factory methodof
(ProductPriceDiscountsSetMessagePayload template) factory method to create a shallow copy ProductPriceDiscountsSetMessagePayloadvoid
setUpdatedPrices
(ProductPriceDiscountsSetUpdatedPrice... updatedPrices) Array containing details about the Embedded Prices that were updated.void
setUpdatedPrices
(List<ProductPriceDiscountsSetUpdatedPrice> updatedPrices) Array containing details about the Embedded Prices that were updated.static com.fasterxml.jackson.core.type.TypeReference<ProductPriceDiscountsSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductPriceDiscountsSetMessagePayload
(Function<ProductPriceDiscountsSetMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
PRODUCT_PRICE_DISCOUNTS_SET
discriminator value for ProductPriceDiscountsSetMessagePayload- See Also:
-
-
Method Details
-
getUpdatedPrices
Array containing details about the Embedded Prices that were updated.
- Returns:
- updatedPrices
-
setUpdatedPrices
Array containing details about the Embedded Prices that were updated.
- Parameters:
updatedPrices
- values to be set
-
setUpdatedPrices
Array containing details about the Embedded Prices that were updated.
- Parameters:
updatedPrices
- values to be set
-
of
factory method- Returns:
- instance of ProductPriceDiscountsSetMessagePayload
-
of
factory method to create a shallow copy ProductPriceDiscountsSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductPriceDiscountsSetMessagePayload deepCopy(@Nullable ProductPriceDiscountsSetMessagePayload template) factory method to create a deep copy of ProductPriceDiscountsSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductPriceDiscountsSetMessagePayload- Returns:
- builder
-
builder
static ProductPriceDiscountsSetMessagePayloadBuilder builder(ProductPriceDiscountsSetMessagePayload template) create builder for ProductPriceDiscountsSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductPriceDiscountsSetMessagePayload
default <T> T withProductPriceDiscountsSetMessagePayload(Function<ProductPriceDiscountsSetMessagePayload, T> helper) 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<ProductPriceDiscountsSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-