Class DuplicatePriceScopeErrorImpl
java.lang.Object
com.commercetools.api.models.error.DuplicatePriceScopeErrorImpl
- All Implemented Interfaces:
DuplicatePriceScopeError
,ErrorObject
,io.vrap.rmf.base.client.ModelBase
public class DuplicatePriceScopeErrorImpl
extends Object
implements DuplicatePriceScopeError, 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.DuplicatePriceScopeError
DUPLICATE_PRICE_SCOPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Conflicting Embedded Price."Duplicate price scope: $priceScope.
int
hashCode()
void
setConflictingPrice
(Price conflictingPrice) Conflicting Embedded Price.void
setMessage
(String message) "Duplicate price scope: $priceScope.
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.DuplicatePriceScopeError
withDuplicatePriceScopeError
Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
DuplicatePriceScopeErrorImpl
public DuplicatePriceScopeErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceDuplicatePriceScopeError
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"Duplicate price scope: $priceScope. The combination of currency, country, customerGroup and channel must be unique for each price of a product variant."
- Specified by:
getMessage
in interfaceDuplicatePriceScopeError
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getConflictingPrice
Conflicting Embedded Price.
- Specified by:
getConflictingPrice
in interfaceDuplicatePriceScopeError
- Returns:
- conflictingPrice
-
setMessage
Description copied from interface:DuplicatePriceScopeError
"Duplicate price scope: $priceScope. The combination of currency, country, customerGroup and channel must be unique for each price of a product variant."
- Specified by:
setMessage
in interfaceDuplicatePriceScopeError
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
setValue
Description copied from interface:ErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceErrorObject
- Parameters:
key
- property namevalue
- property value
-
setConflictingPrice
Description copied from interface:DuplicatePriceScopeError
Conflicting Embedded Price.
- Specified by:
setConflictingPrice
in interfaceDuplicatePriceScopeError
- Parameters:
conflictingPrice
- value to be set
-
equals
-
hashCode
-