Interface CartDiscountKeyReference
- All Superinterfaces:
KeyReference
References a cart discount by key.
Example to create an instance using the builder pattern
CartDiscountKeyReference cartDiscountKeyReference = CartDiscountKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountKeyReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountKeyReferencebuilder
(CartDiscountKeyReference template) create builder for CartDiscountKeyReference instancestatic CartDiscountKeyReference
deepCopy
(CartDiscountKeyReference template) factory method to create a deep copy of CartDiscountKeyReferencestatic CartDiscountKeyReference
of()
factory methodstatic CartDiscountKeyReference
of
(CartDiscountKeyReference template) factory method to create a shallow copy CartDiscountKeyReferencestatic com.fasterxml.jackson.core.type.TypeReference<CartDiscountKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getKey, getTypeId, setKey, withKeyReference
-
Field Details
-
CART_DISCOUNT
discriminator value for CartDiscountKeyReference- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of CartDiscountKeyReference
-
of
factory method to create a shallow copy CartDiscountKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartDiscountKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountKeyReference- Returns:
- builder
-
builder
create builder for CartDiscountKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountKeyReference
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
-