Interface DiscountedLineItemPriceDraft
- All Superinterfaces:
Draft<DiscountedLineItemPriceDraft>
DiscountedLineItemPriceDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountedLineItemPriceDraft discountedLineItemPriceDraft = DiscountedLineItemPriceDraft.builder()
.value(valueBuilder -> valueBuilder)
.plusIncludedDiscounts(includedDiscountsBuilder -> includedDiscountsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountedLineItemPriceDraftbuilder
(DiscountedLineItemPriceDraft template) create builder for DiscountedLineItemPriceDraft instancestatic DiscountedLineItemPriceDraft
deepCopy
(DiscountedLineItemPriceDraft template) factory method to create a deep copy of DiscountedLineItemPriceDraft@NotNull @Valid List<DiscountedLineItemPortion>
@NotNull @Valid Money
getValue()
static DiscountedLineItemPriceDraft
of()
factory methodstatic DiscountedLineItemPriceDraft
of
(DiscountedLineItemPriceDraft template) factory method to create a shallow copy DiscountedLineItemPriceDraftvoid
setIncludedDiscounts
(DiscountedLineItemPortion... includedDiscounts) set includedDiscountsvoid
setIncludedDiscounts
(List<DiscountedLineItemPortion> includedDiscounts) set includedDiscountsvoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<DiscountedLineItemPriceDraft>
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 DiscountedLineItemPriceDraft
-
of
factory method to create a shallow copy DiscountedLineItemPriceDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DiscountedLineItemPriceDraft deepCopy(@Nullable DiscountedLineItemPriceDraft template) factory method to create a deep copy of DiscountedLineItemPriceDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountedLineItemPriceDraft- Returns:
- builder
-
builder
create builder for DiscountedLineItemPriceDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountedLineItemPriceDraft
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
-