Interface StandalonePriceDiscountSetMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StandalonePriceDiscountSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StandalonePriceDiscountSetMessagePayloadcreate builder for StandalonePriceDiscountSetMessagePayload instancecopyDeep()factory method to create a deep copy of StandalonePriceDiscountSetMessagePayload@Valid DiscountedPriceThe newdiscountedvalue of the updated StandalonePrice.of()factory methodof(StandalonePriceDiscountSetMessagePayload template) factory method to create a shallow copy StandalonePriceDiscountSetMessagePayloadvoidsetDiscounted(DiscountedPrice discounted) The newdiscountedvalue of the updated StandalonePrice.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceDiscountSetMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStandalonePriceDiscountSetMessagePayload(Function<StandalonePriceDiscountSetMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods 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
discountedvalue of the updated StandalonePrice.- Returns:
- discounted
-
setDiscounted
The new
discountedvalue 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
-
copyDeep
StandalonePriceDiscountSetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
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
-