Interface GraphQLDuplicatePriceScopeError
- All Superinterfaces:
GraphQLErrorObject
Returned when a Price scope conflicts with an existing one during an Update Product request.
Every Price of a Product Variant must have a distinct combination of currency, Customer Group, country, and Channel that constitute the scope of a Price.
Example to create an instance using the builder pattern
GraphQLDuplicatePriceScopeError graphQLDuplicatePriceScopeError = GraphQLDuplicatePriceScopeError.builder()
.conflictingPrice(conflictingPriceBuilder -> conflictingPriceBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLDuplicatePriceScopeError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLDuplicatePriceScopeErrorbuilder
(GraphQLDuplicatePriceScopeError template) create builder for GraphQLDuplicatePriceScopeError instancedeepCopy
(GraphQLDuplicatePriceScopeError template) factory method to create a deep copy of GraphQLDuplicatePriceScopeError@NotNull String
getCode()
Error identifier.@NotNull @Valid Price
Conflicting Embedded Price.of()
factory methodof
(GraphQLDuplicatePriceScopeError template) factory method to create a shallow copy GraphQLDuplicatePriceScopeErrorvoid
setConflictingPrice
(Price conflictingPrice) Conflicting Embedded Price.static com.fasterxml.jackson.core.type.TypeReference<GraphQLDuplicatePriceScopeError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
DUPLICATE_PRICE_SCOPE
discriminator value for GraphQLDuplicatePriceScopeError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getConflictingPrice
Conflicting Embedded Price.
- Returns:
- conflictingPrice
-
setConflictingPrice
Conflicting Embedded Price.
- Parameters:
conflictingPrice
- value to be set
-
of
factory method- Returns:
- instance of GraphQLDuplicatePriceScopeError
-
of
factory method to create a shallow copy GraphQLDuplicatePriceScopeError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLDuplicatePriceScopeError deepCopy(@Nullable GraphQLDuplicatePriceScopeError template) factory method to create a deep copy of GraphQLDuplicatePriceScopeError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLDuplicatePriceScopeError- Returns:
- builder
-
builder
create builder for GraphQLDuplicatePriceScopeError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLDuplicatePriceScopeError
default <T> T withGraphQLDuplicatePriceScopeError(Function<GraphQLDuplicatePriceScopeError, 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<GraphQLDuplicatePriceScopeError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-