Interface CartDiscountValueDraft
- All Known Subinterfaces:
CartDiscountValueAbsoluteDraft
,CartDiscountValueFixedDraft
,CartDiscountValueGiftLineItemDraft
,CartDiscountValueRelativeDraft
public interface CartDiscountValueDraft
CartDiscountValueDraft
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
CartDiscountValueDraft cartDiscountValueDraft = CartDiscountValueDraft.absoluteBuilder()
plusMoney(moneyBuilder -> moneyBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for absolute subtypestatic CartDiscountValueDraft
deepCopy
(CartDiscountValueDraft template) factory method to create a deep copy of CartDiscountValueDraftbuilder for fixed subtype@NotNull String
getType()
builder for giftLineItem subtypebuilder for relative subtypestatic com.fasterxml.jackson.core.type.TypeReference<CartDiscountValueDraft>
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 CartDiscountValueDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
absoluteBuilder
builder for absolute subtype- Returns:
- builder
-
fixedBuilder
builder for fixed subtype- Returns:
- builder
-
giftLineItemBuilder
builder for giftLineItem subtype- Returns:
- builder
-
relativeBuilder
builder for relative subtype- Returns:
- builder
-
withCartDiscountValueDraft
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
-