Class GraphQLDuplicatePriceScopeErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLDuplicatePriceScopeErrorImpl
- All Implemented Interfaces:
GraphQLDuplicatePriceScopeError
,GraphQLErrorObject
,io.vrap.rmf.base.client.ModelBase
public class GraphQLDuplicatePriceScopeErrorImpl
extends Object
implements GraphQLDuplicatePriceScopeError, io.vrap.rmf.base.client.ModelBase
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.error.GraphQLDuplicatePriceScopeError
DUPLICATE_PRICE_SCOPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Conflicting Embedded Price.int
hashCode()
void
setConflictingPrice
(Price conflictingPrice) Conflicting Embedded Price.void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.GraphQLDuplicatePriceScopeError
withGraphQLDuplicatePriceScopeError
Methods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLDuplicatePriceScopeErrorImpl
public GraphQLDuplicatePriceScopeErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLDuplicatePriceScopeError
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getConflictingPrice
Conflicting Embedded Price.
- Specified by:
getConflictingPrice
in interfaceGraphQLDuplicatePriceScopeError
- Returns:
- conflictingPrice
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setConflictingPrice
Description copied from interface:GraphQLDuplicatePriceScopeError
Conflicting Embedded Price.
- Specified by:
setConflictingPrice
in interfaceGraphQLDuplicatePriceScopeError
- Parameters:
conflictingPrice
- value to be set
-
equals
-
hashCode
-