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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StandalonePriceExternalDiscountSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StandalonePriceExternalDiscountSetMessagePayloadcreate builder for StandalonePriceExternalDiscountSetMessagePayload instancecopyDeep()factory method to create a deep copy of StandalonePriceExternalDiscountSetMessagePayload@Valid DiscountedPriceof()factory methodfactory method to create a shallow copy StandalonePriceExternalDiscountSetMessagePayloadvoidsetDiscounted(DiscountedPrice discounted) static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceExternalDiscountSetMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStandalonePriceExternalDiscountSetMessagePayload(Function<StandalonePriceExternalDiscountSetMessagePayload, 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_EXTERNAL_DISCOUNT_SET
discriminator value for StandalonePriceExternalDiscountSetMessagePayload- See Also:
-
-
Method Details
-
getDiscounted
The
discountedvalue of the StandalonePrice after the Set Discounted Price update action.- Returns:
- discounted
-
setDiscounted
The
discountedvalue 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
-
copyDeep
- Specified by:
copyDeepin interfaceMessagePayload
-
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
-