Interface ProductDiscountValueExternal
- All Superinterfaces:
ProductDiscountValue
Discounts the Product Price by allowing the client to explicitly set a discounted value. Used when setting discounts using an external service.
Example to create an instance using the builder pattern
ProductDiscountValueExternal productDiscountValueExternal = ProductDiscountValueExternal.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductDiscountValueExternalbuilder
(ProductDiscountValueExternal template) create builder for ProductDiscountValueExternal instancestatic ProductDiscountValueExternal
deepCopy
(ProductDiscountValueExternal template) factory method to create a deep copy of ProductDiscountValueExternalstatic ProductDiscountValueExternal
of()
factory methodstatic ProductDiscountValueExternal
of
(ProductDiscountValueExternal template) factory method to create a shallow copy ProductDiscountValueExternalstatic com.fasterxml.jackson.core.type.TypeReference<ProductDiscountValueExternal>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountValue
getType, withProductDiscountValue
-
Field Details
-
EXTERNAL
discriminator value for ProductDiscountValueExternal- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of ProductDiscountValueExternal
-
of
factory method to create a shallow copy ProductDiscountValueExternal- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductDiscountValueExternal deepCopy(@Nullable ProductDiscountValueExternal template) factory method to create a deep copy of ProductDiscountValueExternal- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDiscountValueExternal- Returns:
- builder
-
builder
create builder for ProductDiscountValueExternal instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductDiscountValueExternal
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
-