Interface TaxedItemPriceDraft
- All Superinterfaces:
Draft<TaxedItemPriceDraft>
TaxedItemPriceDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TaxedItemPriceDraft taxedItemPriceDraft = TaxedItemPriceDraft.builder()
.totalNet(totalNetBuilder -> totalNetBuilder)
.totalGross(totalGrossBuilder -> totalGrossBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic TaxedItemPriceDraftBuilder
builder()
builder factory method for TaxedItemPriceDraftstatic TaxedItemPriceDraftBuilder
builder
(TaxedItemPriceDraft template) create builder for TaxedItemPriceDraft instancestatic TaxedItemPriceDraft
deepCopy
(TaxedItemPriceDraft template) factory method to create a deep copy of TaxedItemPriceDraft@NotNull @Valid Money
Draft object to store money in cent amounts for a specific currency.@NotNull @Valid Money
Draft object to store money in cent amounts for a specific currency.static TaxedItemPriceDraft
of()
factory methodstatic TaxedItemPriceDraft
of
(TaxedItemPriceDraft template) factory method to create a shallow copy TaxedItemPriceDraftvoid
setTotalGross
(Money totalGross) Draft object to store money in cent amounts for a specific currency.void
setTotalNet
(Money totalNet) Draft object to store money in cent amounts for a specific currency.static com.fasterxml.jackson.core.type.TypeReference<TaxedItemPriceDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTaxedItemPriceDraft
(Function<TaxedItemPriceDraft, T> helper) accessor map function
-
Method Details
-
getTotalNet
Draft object to store money in cent amounts for a specific currency.
- Returns:
- totalNet
-
getTotalGross
Draft object to store money in cent amounts for a specific currency.
- Returns:
- totalGross
-
setTotalNet
Draft object to store money in cent amounts for a specific currency.
- Parameters:
totalNet
- value to be set
-
setTotalGross
Draft object to store money in cent amounts for a specific currency.
- Parameters:
totalGross
- value to be set
-
of
factory method- Returns:
- instance of TaxedItemPriceDraft
-
of
factory method to create a shallow copy TaxedItemPriceDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of TaxedItemPriceDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TaxedItemPriceDraft- Returns:
- builder
-
builder
create builder for TaxedItemPriceDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTaxedItemPriceDraft
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
-