Interface DiscountedLineItemPriceForQuantity
public interface DiscountedLineItemPriceForQuantity
DiscountedLineItemPriceForQuantity
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountedLineItemPriceForQuantity discountedLineItemPriceForQuantity = DiscountedLineItemPriceForQuantity.builder()
.quantity(0.3)
.discountedPrice(discountedPriceBuilder -> discountedPriceBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountedLineItemPriceForQuantitybuilder
(DiscountedLineItemPriceForQuantity template) create builder for DiscountedLineItemPriceForQuantity instancedeepCopy
(DiscountedLineItemPriceForQuantity template) factory method to create a deep copy of DiscountedLineItemPriceForQuantity@NotNull @Valid DiscountedLineItemPrice
Discounted price of the Line Item or Custom Line Item.@NotNull Long
Number of Line Items or Custom Line Items in the Cart.of()
factory methodof
(DiscountedLineItemPriceForQuantity template) factory method to create a shallow copy DiscountedLineItemPriceForQuantityvoid
setDiscountedPrice
(DiscountedLineItemPrice discountedPrice) Discounted price of the Line Item or Custom Line Item.void
setQuantity
(Long quantity) Number of Line Items or Custom Line Items in the Cart.static com.fasterxml.jackson.core.type.TypeReference<DiscountedLineItemPriceForQuantity>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getQuantity
Number of Line Items or Custom Line Items in the Cart.
- Returns:
- quantity
-
getDiscountedPrice
Discounted price of the Line Item or Custom Line Item.
- Returns:
- discountedPrice
-
setQuantity
Number of Line Items or Custom Line Items in the Cart.
- Parameters:
quantity
- value to be set
-
setDiscountedPrice
Discounted price of the Line Item or Custom Line Item.
- Parameters:
discountedPrice
- value to be set
-
of
factory method- Returns:
- instance of DiscountedLineItemPriceForQuantity
-
of
factory method to create a shallow copy DiscountedLineItemPriceForQuantity- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DiscountedLineItemPriceForQuantity deepCopy(@Nullable DiscountedLineItemPriceForQuantity template) factory method to create a deep copy of DiscountedLineItemPriceForQuantity- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountedLineItemPriceForQuantity- Returns:
- builder
-
builder
static DiscountedLineItemPriceForQuantityBuilder builder(DiscountedLineItemPriceForQuantity template) create builder for DiscountedLineItemPriceForQuantity instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountedLineItemPriceForQuantity
default <T> T withDiscountedLineItemPriceForQuantity(Function<DiscountedLineItemPriceForQuantity, 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<DiscountedLineItemPriceForQuantity> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-