Interface DiscountCodeInfo
public interface DiscountCodeInfo
DiscountCodeInfo
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeInfo discountCodeInfo = DiscountCodeInfo.builder()
.discountCode(discountCodeBuilder -> discountCodeBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic DiscountCodeInfoBuilderbuilder()builder factory method for DiscountCodeInfostatic DiscountCodeInfoBuilderbuilder(DiscountCodeInfo template) create builder for DiscountCodeInfo instancecopyDeep()static DiscountCodeInfodeepCopy(DiscountCodeInfo template) factory method to create a deep copy of DiscountCodeInfo@NotNull @Valid DiscountCodeKeyReferenceReferences a DiscountCode by key.getState()Maps toDiscountCodeInfo.statestatic DiscountCodeInfoof()factory methodstatic DiscountCodeInfoof(DiscountCodeInfo template) factory method to create a shallow copy DiscountCodeInfovoidsetDiscountCode(DiscountCodeKeyReference discountCode) References a DiscountCode by key.voidsetState(DiscountCodeState state) Maps toDiscountCodeInfo.statestatic com.fasterxml.jackson.core.type.TypeReference<DiscountCodeInfo>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithDiscountCodeInfo(Function<DiscountCodeInfo, T> helper) accessor map function
-
Method Details
-
getDiscountCode
References a DiscountCode by key. If the referenced DiscountCode does not exist, the
stateof the ImportOperation will be set tounresolveduntil the referenced DiscountCode is created.- Returns:
- discountCode
-
getState
DiscountCodeState getState()Maps to
DiscountCodeInfo.state- Returns:
- state
-
setDiscountCode
References a DiscountCode by key. If the referenced DiscountCode does not exist, the
stateof the ImportOperation will be set tounresolveduntil the referenced DiscountCode is created.- Parameters:
discountCode- value to be set
-
setState
Maps to
DiscountCodeInfo.state- Parameters:
state- value to be set
-
of
factory method- Returns:
- instance of DiscountCodeInfo
-
of
factory method to create a shallow copy DiscountCodeInfo- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
DiscountCodeInfo copyDeep() -
deepCopy
factory method to create a deep copy of DiscountCodeInfo- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeInfo- Returns:
- builder
-
builder
create builder for DiscountCodeInfo instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeInfo
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
-