Interface GraphQLNoMatchingProductDiscountFoundError
- All Superinterfaces:
GraphQLErrorObject
Returned when a Product Discount could not be found that could be applied to the Price of a Product Variant.
The error is returned as a failed response to the Get Matching ProductDiscount request.
Example to create an instance using the builder pattern
GraphQLNoMatchingProductDiscountFoundError graphQLNoMatchingProductDiscountFoundError = GraphQLNoMatchingProductDiscountFoundError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLNoMatchingProductDiscountFoundError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLNoMatchingProductDiscountFoundErrorcreate builder for GraphQLNoMatchingProductDiscountFoundError instancefactory method to create a deep copy of GraphQLNoMatchingProductDiscountFoundError@NotNull String
getCode()
Error identifier.of()
factory methodof
(GraphQLNoMatchingProductDiscountFoundError template) factory method to create a shallow copy GraphQLNoMatchingProductDiscountFoundErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLNoMatchingProductDiscountFoundError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGraphQLNoMatchingProductDiscountFoundError
(Function<GraphQLNoMatchingProductDiscountFoundError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
NO_MATCHING_PRODUCT_DISCOUNT_FOUND
discriminator value for GraphQLNoMatchingProductDiscountFoundError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
of
factory method- Returns:
- instance of GraphQLNoMatchingProductDiscountFoundError
-
of
static GraphQLNoMatchingProductDiscountFoundError of(GraphQLNoMatchingProductDiscountFoundError template) factory method to create a shallow copy GraphQLNoMatchingProductDiscountFoundError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLNoMatchingProductDiscountFoundError deepCopy(@Nullable GraphQLNoMatchingProductDiscountFoundError template) factory method to create a deep copy of GraphQLNoMatchingProductDiscountFoundError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLNoMatchingProductDiscountFoundError- Returns:
- builder
-
builder
static GraphQLNoMatchingProductDiscountFoundErrorBuilder builder(GraphQLNoMatchingProductDiscountFoundError template) create builder for GraphQLNoMatchingProductDiscountFoundError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLNoMatchingProductDiscountFoundError
default <T> T withGraphQLNoMatchingProductDiscountFoundError(Function<GraphQLNoMatchingProductDiscountFoundError, T> helper) 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<GraphQLNoMatchingProductDiscountFoundError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-