Class GraphQLOverlappingStandalonePriceValidityErrorImpl
- All Implemented Interfaces:
GraphQLErrorObject
,GraphQLOverlappingStandalonePriceValidityError
,io.vrap.rmf.base.client.ModelBase
Returned when a given Price validity period conflicts with an existing one. Every Standalone Price associated with the same SKU and with the same combination of currency, country, Customer Group, and Channel, must have non-overlapping 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.GraphQLOverlappingStandalonePriceValidityError
OVERLAPPING_STANDALONE_PRICE_VALIDITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Channel for which the Standalone Price is valid.getCode()
Error identifier.Reference to the conflicting Standalone Price.Date and time (UTC) from which the conflicting Standalone Price is valid.Date and time (UTC) until which the conflicting Standalone Price is valid.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
setConflictingValidFrom
(ZonedDateTime conflictingValidFrom) Date and time (UTC) from which the conflicting Standalone Price is valid.void
setConflictingValidUntil
(ZonedDateTime conflictingValidUntil) Date and time (UTC) until which the conflicting Standalone Price is valid.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.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface com.commercetools.api.models.error.GraphQLOverlappingStandalonePriceValidityError
withGraphQLOverlappingStandalonePriceValidityError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLOverlappingStandalonePriceValidityErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Specified by:
getCode
in interfaceGraphQLOverlappingStandalonePriceValidityError
- 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 interfaceGraphQLOverlappingStandalonePriceValidityError
- Returns:
- conflictingStandalonePrice
-
getSku
SKU of the ProductVariant to which the conflicting Standalone Price is associated.
- Specified by:
getSku
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Returns:
- sku
-
getCurrency
Currency code of the country.
- Specified by:
getCurrency
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Returns:
- currency
-
getCountry
Country code of the geographic location.
- Specified by:
getCountry
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Returns:
- country
-
getCustomerGroup
CustomerGroup for which the Standalone Price is valid.
- Specified by:
getCustomerGroup
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Returns:
- customerGroup
-
getChannel
Channel for which the Standalone Price is valid.
- Specified by:
getChannel
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Returns:
- channel
-
getValidFrom
Date and time (UTC) from which the Standalone Price is valid.
- Specified by:
getValidFrom
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Returns:
- validFrom
-
getValidUntil
Date and time (UTC) until which the Standalone Price is valid.
- Specified by:
getValidUntil
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Returns:
- validUntil
-
getConflictingValidFrom
Date and time (UTC) from which the conflicting Standalone Price is valid.
- Specified by:
getConflictingValidFrom
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Returns:
- conflictingValidFrom
-
getConflictingValidUntil
Date and time (UTC) until which the conflicting Standalone Price is valid.
- Specified by:
getConflictingValidUntil
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Returns:
- conflictingValidUntil
-
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:GraphQLOverlappingStandalonePriceValidityError
Reference to the conflicting Standalone Price.
- Specified by:
setConflictingStandalonePrice
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Parameters:
conflictingStandalonePrice
- value to be set
-
setSku
Description copied from interface:GraphQLOverlappingStandalonePriceValidityError
SKU of the ProductVariant to which the conflicting Standalone Price is associated.
- Specified by:
setSku
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Parameters:
sku
- value to be set
-
setCurrency
Description copied from interface:GraphQLOverlappingStandalonePriceValidityError
Currency code of the country.
- Specified by:
setCurrency
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Parameters:
currency
- value to be set
-
setCountry
Description copied from interface:GraphQLOverlappingStandalonePriceValidityError
Country code of the geographic location.
- Specified by:
setCountry
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Parameters:
country
- value to be set
-
setCustomerGroup
Description copied from interface:GraphQLOverlappingStandalonePriceValidityError
CustomerGroup for which the Standalone Price is valid.
- Specified by:
setCustomerGroup
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Parameters:
customerGroup
- value to be set
-
setChannel
Description copied from interface:GraphQLOverlappingStandalonePriceValidityError
Channel for which the Standalone Price is valid.
- Specified by:
setChannel
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Parameters:
channel
- value to be set
-
setValidFrom
Description copied from interface:GraphQLOverlappingStandalonePriceValidityError
Date and time (UTC) from which the Standalone Price is valid.
- Specified by:
setValidFrom
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Parameters:
validFrom
- value to be set
-
setValidUntil
Description copied from interface:GraphQLOverlappingStandalonePriceValidityError
Date and time (UTC) until which the Standalone Price is valid.
- Specified by:
setValidUntil
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Parameters:
validUntil
- value to be set
-
setConflictingValidFrom
Description copied from interface:GraphQLOverlappingStandalonePriceValidityError
Date and time (UTC) from which the conflicting Standalone Price is valid.
- Specified by:
setConflictingValidFrom
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Parameters:
conflictingValidFrom
- value to be set
-
setConflictingValidUntil
Description copied from interface:GraphQLOverlappingStandalonePriceValidityError
Date and time (UTC) until which the conflicting Standalone Price is valid.
- Specified by:
setConflictingValidUntil
in interfaceGraphQLOverlappingStandalonePriceValidityError
- Parameters:
conflictingValidUntil
- value to be set
-
equals
-
hashCode
-