Interface DiscountedLineItemPrice
public interface DiscountedLineItemPrice
DiscountedLineItemPrice
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountedLineItemPrice discountedLineItemPrice = DiscountedLineItemPrice.builder()
.value(valueBuilder -> valueBuilder)
.plusIncludedDiscounts(includedDiscountsBuilder -> includedDiscountsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountedLineItemPricebuilder
(DiscountedLineItemPrice template) create builder for DiscountedLineItemPrice instancestatic DiscountedLineItemPrice
deepCopy
(DiscountedLineItemPrice template) factory method to create a deep copy of DiscountedLineItemPrice@NotNull @Valid List<DiscountedLineItemPortion>
@NotNull @Valid Money
getValue()
static DiscountedLineItemPrice
of()
factory methodstatic DiscountedLineItemPrice
of
(DiscountedLineItemPrice template) factory method to create a shallow copy DiscountedLineItemPricevoid
setIncludedDiscounts
(DiscountedLineItemPortion... includedDiscounts) set includedDiscountsvoid
setIncludedDiscounts
(List<DiscountedLineItemPortion> includedDiscounts) set includedDiscountsvoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<DiscountedLineItemPrice>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getValue
- Returns:
- value
-
getIncludedDiscounts
- Returns:
- includedDiscounts
-
setValue
set value- Parameters:
value
- value to be set
-
setIncludedDiscounts
set includedDiscounts- Parameters:
includedDiscounts
- values to be set
-
setIncludedDiscounts
set includedDiscounts- Parameters:
includedDiscounts
- values to be set
-
of
factory method- Returns:
- instance of DiscountedLineItemPrice
-
of
factory method to create a shallow copy DiscountedLineItemPrice- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of DiscountedLineItemPrice- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountedLineItemPrice- Returns:
- builder
-
builder
create builder for DiscountedLineItemPrice instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountedLineItemPrice
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
-