Class GraphQLDuplicateStandalonePriceScopeErrorImpl
- All Implemented Interfaces:
GraphQLDuplicateStandalonePriceScopeError
,GraphQLErrorObject
,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.GraphQLDuplicateStandalonePriceScopeError
DUPLICATE_STANDALONE_PRICE_SCOPE
-
Constructor Summary
-
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.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
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.GraphQLDuplicateStandalonePriceScopeError
withGraphQLDuplicateStandalonePriceScopeError
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
-
GraphQLDuplicateStandalonePriceScopeErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getConflictingStandalonePrice
Reference to the conflicting Standalone Price.
- Specified by:
getConflictingStandalonePrice
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Returns:
- conflictingStandalonePrice
-
getSku
SKU of the ProductVariant to which the conflicting Standalone Price is associated.
- Specified by:
getSku
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Returns:
- sku
-
getCurrency
Currency code of the country.
- Specified by:
getCurrency
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Returns:
- currency
-
getCountry
Country code of the geographic location.
- Specified by:
getCountry
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Returns:
- country
-
getCustomerGroup
CustomerGroup for which the Standalone Price is valid.
- Specified by:
getCustomerGroup
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Returns:
- customerGroup
-
getChannel
Channel for which the Standalone Price is valid.
- Specified by:
getChannel
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Returns:
- channel
-
getValidFrom
Date and time (UTC) from which the Standalone Price is valid.
- Specified by:
getValidFrom
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Returns:
- validFrom
-
getValidUntil
Date and time (UTC) until which the Standalone Price is valid.
- Specified by:
getValidUntil
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Returns:
- validUntil
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setConflictingStandalonePrice
Description copied from interface:GraphQLDuplicateStandalonePriceScopeError
Reference to the conflicting Standalone Price.
- Specified by:
setConflictingStandalonePrice
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Parameters:
conflictingStandalonePrice
- value to be set
-
setSku
Description copied from interface:GraphQLDuplicateStandalonePriceScopeError
SKU of the ProductVariant to which the conflicting Standalone Price is associated.
- Specified by:
setSku
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Parameters:
sku
- value to be set
-
setCurrency
Description copied from interface:GraphQLDuplicateStandalonePriceScopeError
Currency code of the country.
- Specified by:
setCurrency
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Parameters:
currency
- value to be set
-
setCountry
Description copied from interface:GraphQLDuplicateStandalonePriceScopeError
Country code of the geographic location.
- Specified by:
setCountry
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Parameters:
country
- value to be set
-
setCustomerGroup
Description copied from interface:GraphQLDuplicateStandalonePriceScopeError
CustomerGroup for which the Standalone Price is valid.
- Specified by:
setCustomerGroup
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Parameters:
customerGroup
- value to be set
-
setChannel
Description copied from interface:GraphQLDuplicateStandalonePriceScopeError
Channel for which the Standalone Price is valid.
- Specified by:
setChannel
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Parameters:
channel
- value to be set
-
setValidFrom
Description copied from interface:GraphQLDuplicateStandalonePriceScopeError
Date and time (UTC) from which the Standalone Price is valid.
- Specified by:
setValidFrom
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Parameters:
validFrom
- value to be set
-
setValidUntil
Description copied from interface:GraphQLDuplicateStandalonePriceScopeError
Date and time (UTC) until which the Standalone Price is valid.
- Specified by:
setValidUntil
in interfaceGraphQLDuplicateStandalonePriceScopeError
- Parameters:
validUntil
- value to be set
-
equals
-
hashCode
-