Class DuplicateStandalonePriceScopeErrorImpl
- All Implemented Interfaces:
DuplicateStandalonePriceScopeError
,ErrorObject
,io.vrap.rmf.base.client.ModelBase
Returned when the given Price scope conflicts with the Price scope of an existing Standalone Price. Every Standalone Price associated with the same SKU must have a distinct combination of currency, country, Customer Group, Channel, and validity periods (validFrom
and validUntil
).
The error is returned as a failed response to the Create StandalonePrice request.
-
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.DuplicateStandalonePriceScopeError
DUPLICATE_STANDALONE_PRICE_SCOPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Channel for which the Standalone Price is valid.getCode()
Error identifier.Reference to the conflicting Standalone Price.Country code of the geographic location.Currency code of the country.CustomerGroup for which the Standalone Price is valid."Duplicate standalone price scope for SKU: $sku.
getSku()
SKU of the ProductVariant to which the conflicting Standalone Price is associated.Date and time (UTC) from which the Standalone Price is valid.Date and time (UTC) until which the Standalone Price is valid.int
hashCode()
void
setChannel
(ChannelResourceIdentifier channel) Channel for which the Standalone Price is valid.void
setConflictingStandalonePrice
(StandalonePriceReference conflictingStandalonePrice) Reference to the conflicting Standalone Price.void
setCountry
(String country) Country code of the geographic location.void
setCurrency
(String currency) Currency code of the country.void
setCustomerGroup
(CustomerGroupResourceIdentifier customerGroup) CustomerGroup for which the Standalone Price is valid.void
setMessage
(String message) "Duplicate standalone price scope for SKU: $sku.
void
SKU of the ProductVariant to which the conflicting Standalone Price is associated.void
setValidFrom
(ZonedDateTime validFrom) Date and time (UTC) from which the Standalone Price is valid.void
setValidUntil
(ZonedDateTime validUntil) Date and time (UTC) until which the Standalone Price is valid.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.DuplicateStandalonePriceScopeError
withDuplicateStandalonePriceScopeError
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
-
DuplicateStandalonePriceScopeErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceDuplicateStandalonePriceScopeError
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"Duplicate standalone price scope for SKU: $sku. The combination of SKU, currency, country, customerGroup, channel, validFrom and validUntil must be unique for each standalone price."
- Specified by:
getMessage
in interfaceDuplicateStandalonePriceScopeError
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getConflictingStandalonePrice
Reference to the conflicting Standalone Price.
- Specified by:
getConflictingStandalonePrice
in interfaceDuplicateStandalonePriceScopeError
- Returns:
- conflictingStandalonePrice
-
getSku
SKU of the ProductVariant to which the conflicting Standalone Price is associated.
- Specified by:
getSku
in interfaceDuplicateStandalonePriceScopeError
- Returns:
- sku
-
getCurrency
Currency code of the country.
- Specified by:
getCurrency
in interfaceDuplicateStandalonePriceScopeError
- Returns:
- currency
-
getCountry
Country code of the geographic location.
- Specified by:
getCountry
in interfaceDuplicateStandalonePriceScopeError
- Returns:
- country
-
getCustomerGroup
CustomerGroup for which the Standalone Price is valid.
- Specified by:
getCustomerGroup
in interfaceDuplicateStandalonePriceScopeError
- Returns:
- customerGroup
-
getChannel
Channel for which the Standalone Price is valid.
- Specified by:
getChannel
in interfaceDuplicateStandalonePriceScopeError
- Returns:
- channel
-
getValidFrom
Date and time (UTC) from which the Standalone Price is valid.
- Specified by:
getValidFrom
in interfaceDuplicateStandalonePriceScopeError
- Returns:
- validFrom
-
getValidUntil
Date and time (UTC) until which the Standalone Price is valid.
- Specified by:
getValidUntil
in interfaceDuplicateStandalonePriceScopeError
- Returns:
- validUntil
-
setMessage
Description copied from interface:DuplicateStandalonePriceScopeError
"Duplicate standalone price scope for SKU: $sku. The combination of SKU, currency, country, customerGroup, channel, validFrom and validUntil must be unique for each standalone price."
- Specified by:
setMessage
in interfaceDuplicateStandalonePriceScopeError
- 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
-
setConflictingStandalonePrice
Description copied from interface:DuplicateStandalonePriceScopeError
Reference to the conflicting Standalone Price.
- Specified by:
setConflictingStandalonePrice
in interfaceDuplicateStandalonePriceScopeError
- Parameters:
conflictingStandalonePrice
- value to be set
-
setSku
Description copied from interface:DuplicateStandalonePriceScopeError
SKU of the ProductVariant to which the conflicting Standalone Price is associated.
- Specified by:
setSku
in interfaceDuplicateStandalonePriceScopeError
- Parameters:
sku
- value to be set
-
setCurrency
Description copied from interface:DuplicateStandalonePriceScopeError
Currency code of the country.
- Specified by:
setCurrency
in interfaceDuplicateStandalonePriceScopeError
- Parameters:
currency
- value to be set
-
setCountry
Description copied from interface:DuplicateStandalonePriceScopeError
Country code of the geographic location.
- Specified by:
setCountry
in interfaceDuplicateStandalonePriceScopeError
- Parameters:
country
- value to be set
-
setCustomerGroup
Description copied from interface:DuplicateStandalonePriceScopeError
CustomerGroup for which the Standalone Price is valid.
- Specified by:
setCustomerGroup
in interfaceDuplicateStandalonePriceScopeError
- Parameters:
customerGroup
- value to be set
-
setChannel
Description copied from interface:DuplicateStandalonePriceScopeError
Channel for which the Standalone Price is valid.
- Specified by:
setChannel
in interfaceDuplicateStandalonePriceScopeError
- Parameters:
channel
- value to be set
-
setValidFrom
Description copied from interface:DuplicateStandalonePriceScopeError
Date and time (UTC) from which the Standalone Price is valid.
- Specified by:
setValidFrom
in interfaceDuplicateStandalonePriceScopeError
- Parameters:
validFrom
- value to be set
-
setValidUntil
Description copied from interface:DuplicateStandalonePriceScopeError
Date and time (UTC) until which the Standalone Price is valid.
- Specified by:
setValidUntil
in interfaceDuplicateStandalonePriceScopeError
- Parameters:
validUntil
- value to be set
-
equals
-
hashCode
-