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 instancecopyDeep()static ExternalLineItemTotalPricedeepCopy(ExternalLineItemTotalPrice template) factory method to create a deep copy of ExternalLineItemTotalPrice@NotNull @Valid MoneygetPrice()Price of the Line Item.@NotNull @Valid MoneyTotal price of the Line Item.static ExternalLineItemTotalPriceof()factory methodstatic ExternalLineItemTotalPriceof(ExternalLineItemTotalPrice template) factory method to create a shallow copy ExternalLineItemTotalPricevoidPrice of the Line Item.voidsetTotalPrice(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> Taccessor map function
-
Method Details
-
getPrice
Price of the Line Item.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Returns:
- price
-
getTotalPrice
Total price of the Line Item.
- Returns:
- totalPrice
-
setPrice
Price of the Line Item.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- 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
-
copyDeep
ExternalLineItemTotalPrice copyDeep() -
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
-