Interface StagedStandalonePrice
public interface StagedStandalonePrice
Staged changes on a Standalone Price. To update the value
property of a Staged Standalone Price, use the Change Value update action. To apply all staged changes to the Standalone Price, use the Apply Staged Changes update action.
Example to create an instance using the builder pattern
StagedStandalonePrice stagedStandalonePrice = StagedStandalonePrice.builder()
.value(valueBuilder -> valueBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic StagedStandalonePriceBuilder
builder()
builder factory method for StagedStandalonePricestatic StagedStandalonePriceBuilder
builder
(StagedStandalonePrice template) create builder for StagedStandalonePrice instancestatic StagedStandalonePrice
deepCopy
(StagedStandalonePrice template) factory method to create a deep copy of StagedStandalonePrice@Valid DiscountedPrice
Discounted price for the StagedStandalonePrice.@NotNull @Valid TypedMoney
getValue()
Money value of the StagedStandalonePrice.static StagedStandalonePrice
of()
factory methodstatic StagedStandalonePrice
of
(StagedStandalonePrice template) factory method to create a shallow copy StagedStandalonePricevoid
setDiscounted
(DiscountedPrice discounted) Discounted price for the StagedStandalonePrice.void
setValue
(TypedMoney value) Money value of the StagedStandalonePrice.static com.fasterxml.jackson.core.type.TypeReference<StagedStandalonePrice>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getValue
Money value of the StagedStandalonePrice.
- Returns:
- value
-
getDiscounted
Discounted price for the StagedStandalonePrice.
- Returns:
- discounted
-
setValue
Money value of the StagedStandalonePrice.
- Parameters:
value
- value to be set
-
setDiscounted
Discounted price for the StagedStandalonePrice.
- Parameters:
discounted
- value to be set
-
of
factory method- Returns:
- instance of StagedStandalonePrice
-
of
factory method to create a shallow copy StagedStandalonePrice- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StagedStandalonePrice- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedStandalonePrice- Returns:
- builder
-
builder
create builder for StagedStandalonePrice instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedStandalonePrice
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-