Interface StandalonePriceDiscountSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
- All Known Implementing Classes:
StandalonePriceDiscountSetMessagePayloadImpl
Generated after a Product Discount is successfully applied to a StandalonePrice.
Example to create an instance using the builder pattern
StandalonePriceDiscountSetMessagePayload standalonePriceDiscountSetMessagePayload = StandalonePriceDiscountSetMessagePayload.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceDiscountSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceDiscountSetMessagePayloadcreate builder for StandalonePriceDiscountSetMessagePayload instancefactory method to create a deep copy of StandalonePriceDiscountSetMessagePayload@Valid DiscountedPrice
The newdiscounted
value of the updated StandalonePrice.of()
factory methodof
(StandalonePriceDiscountSetMessagePayload template) factory method to create a shallow copy StandalonePriceDiscountSetMessagePayloadvoid
setDiscounted
(DiscountedPrice discounted) The newdiscounted
value of the updated StandalonePrice.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceDiscountSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStandalonePriceDiscountSetMessagePayload
(Function<StandalonePriceDiscountSetMessagePayload, 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
-
STANDALONE_PRICE_DISCOUNT_SET
discriminator value for StandalonePriceDiscountSetMessagePayload- See Also:
-
-
Method Details
-
getDiscounted
The new
discounted
value of the updated StandalonePrice.- Returns:
- discounted
-
setDiscounted
The new
discounted
value of the updated StandalonePrice.- Parameters:
discounted
- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceDiscountSetMessagePayload
-
of
static StandalonePriceDiscountSetMessagePayload of(StandalonePriceDiscountSetMessagePayload template) factory method to create a shallow copy StandalonePriceDiscountSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceDiscountSetMessagePayload deepCopy(@Nullable StandalonePriceDiscountSetMessagePayload template) factory method to create a deep copy of StandalonePriceDiscountSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceDiscountSetMessagePayload- Returns:
- builder
-
builder
static StandalonePriceDiscountSetMessagePayloadBuilder builder(StandalonePriceDiscountSetMessagePayload template) create builder for StandalonePriceDiscountSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceDiscountSetMessagePayload
default <T> T withStandalonePriceDiscountSetMessagePayload(Function<StandalonePriceDiscountSetMessagePayload, 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<StandalonePriceDiscountSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-