Interface StandalonePriceExternalDiscountSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Discounted Price update action.
Example to create an instance using the builder pattern
StandalonePriceExternalDiscountSetMessagePayload standalonePriceExternalDiscountSetMessagePayload = StandalonePriceExternalDiscountSetMessagePayload.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StandalonePriceExternalDiscountSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StandalonePriceExternalDiscountSetMessagePayloadcreate builder for StandalonePriceExternalDiscountSetMessagePayload instancefactory method to create a deep copy of StandalonePriceExternalDiscountSetMessagePayload@Valid DiscountedPrice
Thediscounted
value of the StandalonePrice after the Set Discounted Price update action.of()
factory methodfactory method to create a shallow copy StandalonePriceExternalDiscountSetMessagePayloadvoid
setDiscounted
(DiscountedPrice discounted) Thediscounted
value of the StandalonePrice after the Set Discounted Price update action.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceExternalDiscountSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStandalonePriceExternalDiscountSetMessagePayload
(Function<StandalonePriceExternalDiscountSetMessagePayload, 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_EXTERNAL_DISCOUNT_SET
discriminator value for StandalonePriceExternalDiscountSetMessagePayload- See Also:
-
-
Method Details
-
getDiscounted
The
discounted
value of the StandalonePrice after the Set Discounted Price update action.- Returns:
- discounted
-
setDiscounted
The
discounted
value of the StandalonePrice after the Set Discounted Price update action.- Parameters:
discounted
- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceExternalDiscountSetMessagePayload
-
of
static StandalonePriceExternalDiscountSetMessagePayload of(StandalonePriceExternalDiscountSetMessagePayload template) factory method to create a shallow copy StandalonePriceExternalDiscountSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StandalonePriceExternalDiscountSetMessagePayload deepCopy(@Nullable StandalonePriceExternalDiscountSetMessagePayload template) factory method to create a deep copy of StandalonePriceExternalDiscountSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceExternalDiscountSetMessagePayload- Returns:
- builder
-
builder
static StandalonePriceExternalDiscountSetMessagePayloadBuilder builder(StandalonePriceExternalDiscountSetMessagePayload template) create builder for StandalonePriceExternalDiscountSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceExternalDiscountSetMessagePayload
default <T> T withStandalonePriceExternalDiscountSetMessagePayload(Function<StandalonePriceExternalDiscountSetMessagePayload, 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<StandalonePriceExternalDiscountSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-