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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLDuplicatePriceScopeError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLDuplicatePriceScopeErrorbuilder(GraphQLDuplicatePriceScopeError template) create builder for GraphQLDuplicatePriceScopeError instancecopyDeep()deepCopy(GraphQLDuplicatePriceScopeError template) factory method to create a deep copy of GraphQLDuplicatePriceScopeError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.@NotNull @Valid PriceConflicting Embedded Price.of()factory methodof(GraphQLDuplicatePriceScopeError template) factory method to create a shallow copy GraphQLDuplicatePriceScopeErrorvoidsetConflictingPrice(Price conflictingPrice) Conflicting Embedded Price.static com.fasterxml.jackson.core.type.TypeReference<GraphQLDuplicatePriceScopeError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein 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
-
copyDeep
GraphQLDuplicatePriceScopeError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
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
-