Interface ExternalLineItemTotalPrice
public interface ExternalLineItemTotalPrice
ExternalLineItemTotalPrice
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExternalLineItemTotalPrice externalLineItemTotalPrice = ExternalLineItemTotalPrice.builder()
.price(priceBuilder -> priceBuilder)
.totalPrice(totalPriceBuilder -> totalPriceBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ExternalLineItemTotalPricebuilder
(ExternalLineItemTotalPrice template) create builder for ExternalLineItemTotalPrice instancestatic ExternalLineItemTotalPrice
deepCopy
(ExternalLineItemTotalPrice template) factory method to create a deep copy of ExternalLineItemTotalPrice@NotNull @Valid Money
getPrice()
Price of the Line Item.@NotNull @Valid Money
Total price of the Line Item.static ExternalLineItemTotalPrice
of()
factory methodstatic ExternalLineItemTotalPrice
of
(ExternalLineItemTotalPrice template) factory method to create a shallow copy ExternalLineItemTotalPricevoid
Price of the Line Item.void
setTotalPrice
(Money totalPrice) Total price of the Line Item.static com.fasterxml.jackson.core.type.TypeReference<ExternalLineItemTotalPrice>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getPrice
Price of the Line Item.
- Returns:
- price
-
getTotalPrice
Total price of the Line Item.
- Returns:
- totalPrice
-
setPrice
Price of the Line Item.
- Parameters:
price
- value to be set
-
setTotalPrice
Total price of the Line Item.
- Parameters:
totalPrice
- value to be set
-
of
factory method- Returns:
- instance of ExternalLineItemTotalPrice
-
of
factory method to create a shallow copy ExternalLineItemTotalPrice- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ExternalLineItemTotalPrice- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExternalLineItemTotalPrice- Returns:
- builder
-
builder
create builder for ExternalLineItemTotalPrice instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withExternalLineItemTotalPrice
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
-