Interface ProductDiscountValueDraft
- All Known Subinterfaces:
ProductDiscountValueAbsoluteDraft
,ProductDiscountValueExternalDraft
,ProductDiscountValueRelativeDraft
public interface ProductDiscountValueDraft
ProductDiscountValueDraft
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
ProductDiscountValueDraft productDiscountValueDraft = ProductDiscountValueDraft.absoluteBuilder()
plusMoney(moneyBuilder -> moneyBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for absolute subtypestatic ProductDiscountValueDraft
deepCopy
(ProductDiscountValueDraft template) factory method to create a deep copy of ProductDiscountValueDraftbuilder for external subtype@NotNull String
getType()
builder for relative subtypestatic com.fasterxml.jackson.core.type.TypeReference<ProductDiscountValueDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getType
- Returns:
- type
-
deepCopy
factory method to create a deep copy of ProductDiscountValueDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
absoluteBuilder
builder for absolute subtype- Returns:
- builder
-
externalBuilder
builder for external subtype- Returns:
- builder
-
relativeBuilder
builder for relative subtype- Returns:
- builder
-
withProductDiscountValueDraft
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
-