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<DiscountedLineItemPortionDraft>
Discounts to be applied.@NotNull @Valid Money
getValue()
Discounted money value.static DiscountedLineItemPriceDraft
of()
factory methodstatic DiscountedLineItemPriceDraft
of
(DiscountedLineItemPriceDraft template) factory method to create a shallow copy DiscountedLineItemPriceDraftvoid
setIncludedDiscounts
(DiscountedLineItemPortionDraft... includedDiscounts) Discounts to be applied.void
setIncludedDiscounts
(List<DiscountedLineItemPortionDraft> includedDiscounts) Discounts to be applied.void
Discounted money value.static com.fasterxml.jackson.core.type.TypeReference<DiscountedLineItemPriceDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getValue
Discounted money value.
- Returns:
- value
-
getIncludedDiscounts
Discounts to be applied.
- Returns:
- includedDiscounts
-
setValue
Discounted money value.
- Parameters:
value
- value to be set
-
setIncludedDiscounts
Discounts to be applied.
- Parameters:
includedDiscounts
- values to be set
-
setIncludedDiscounts
Discounts to be applied.
- 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
-