Interface TaxedItemPriceDraft
- All Superinterfaces:
io.vrap.rmf.base.client.Draft<TaxedItemPriceDraft>
- All Known Implementing Classes:
TaxedItemPriceDraftImpl
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 type that stores amounts only in cent precision for the specified currency.@NotNull @Valid Money
Draft type that stores amounts only in cent precision for the specified currency.static TaxedItemPriceDraft
of()
factory methodstatic TaxedItemPriceDraft
of
(TaxedItemPriceDraft template) factory method to create a shallow copy TaxedItemPriceDraftvoid
setTotalGross
(Money totalGross) Draft type that stores amounts only in cent precision for the specified currency.void
setTotalNet
(Money totalNet) Draft type that stores amounts only in cent precision for the specified 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 type that stores amounts only in cent precision for the specified currency.
- Returns:
- totalNet
-
getTotalGross
Draft type that stores amounts only in cent precision for the specified currency.
- Returns:
- totalGross
-
setTotalNet
Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
totalNet
- value to be set
-
setTotalGross
Draft type that stores amounts only in cent precision for the specified 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
-