Interface CartDiscountShippingCostTarget
- All Superinterfaces:
CartDiscountTarget
Discount is applied to the shipping costs of the Cart.
Example to create an instance using the builder pattern
CartDiscountShippingCostTarget cartDiscountShippingCostTarget = CartDiscountShippingCostTarget.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountShippingCostTargetbuilder
(CartDiscountShippingCostTarget template) create builder for CartDiscountShippingCostTarget instancedeepCopy
(CartDiscountShippingCostTarget template) factory method to create a deep copy of CartDiscountShippingCostTargetof()
factory methodof
(CartDiscountShippingCostTarget template) factory method to create a shallow copy CartDiscountShippingCostTargetstatic com.fasterxml.jackson.core.type.TypeReference<CartDiscountShippingCostTarget>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountTarget
getType, withCartDiscountTarget
-
Field Details
-
SHIPPING
discriminator value for CartDiscountShippingCostTarget- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of CartDiscountShippingCostTarget
-
of
factory method to create a shallow copy CartDiscountShippingCostTarget- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartDiscountShippingCostTarget deepCopy(@Nullable CartDiscountShippingCostTarget template) factory method to create a deep copy of CartDiscountShippingCostTarget- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountShippingCostTarget- Returns:
- builder
-
builder
create builder for CartDiscountShippingCostTarget instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountShippingCostTarget
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CartDiscountShippingCostTarget> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-