Interface GraphQLValidityLockConflictError
- All Superinterfaces:
GraphQLErrorObject
Returned when a modification is already in progress for the combination of SKU and price scope fields (but potentially different validity period) for a Standalone Price. Retry the same request after 300 ms.
The error is returned as a failed response to:
Example to create an instance using the builder pattern
GraphQLValidityLockConflictError graphQLValidityLockConflictError = GraphQLValidityLockConflictError.builder()
.sku("{sku}")
.currency("{currency}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLValidityLockConflictError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLValidityLockConflictErrorbuilder(GraphQLValidityLockConflictError template) create builder for GraphQLValidityLockConflictError instancecopyDeep()deepCopy(GraphQLValidityLockConflictError template) factory method to create a deep copy of GraphQLValidityLockConflictError@Valid ChannelResourceIdentifierChannel for which the Standalone Price is valid.@NotNull StringgetCode()One of the error codes that is listed on the Errors page.Country code of the geographic location.@NotNull StringCurrency code of the Standalone Price.CustomerGroup for which the Standalone Price is valid.RecurrencePolicy for which the Standalone Price is valid.@NotNull StringgetSku()SKU for which the modification conflict occurred.of()factory methodof(GraphQLValidityLockConflictError template) factory method to create a shallow copy GraphQLValidityLockConflictErrorvoidsetChannel(ChannelResourceIdentifier channel) Channel for which the Standalone Price is valid.voidsetCountry(String country) Country code of the geographic location.voidsetCurrency(String currency) Currency code of the Standalone Price.voidsetCustomerGroup(CustomerGroupResourceIdentifier customerGroup) CustomerGroup for which the Standalone Price is valid.voidsetRecurrencePolicy(RecurrencePolicyResourceIdentifier recurrencePolicy) RecurrencePolicy for which the Standalone Price is valid.voidSKU for which the modification conflict occurred.static com.fasterxml.jackson.core.type.TypeReference<GraphQLValidityLockConflictError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
VALIDITY_LOCK_CONFLICT
discriminator value for GraphQLValidityLockConflictError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein interfaceGraphQLErrorObject- Returns:
- code
-
getSku
SKU for which the modification conflict occurred.
- Returns:
- sku
-
getCurrency
Currency code of the Standalone Price.
- Returns:
- currency
-
getCountry
String getCountry()Country code of the geographic location.
- Returns:
- country
-
getCustomerGroup
CustomerGroup for which the Standalone Price is valid.
- Returns:
- customerGroup
-
getChannel
Channel for which the Standalone Price is valid.
- Returns:
- channel
-
getRecurrencePolicy
RecurrencePolicy for which the Standalone Price is valid.
- Returns:
- recurrencePolicy
-
setSku
SKU for which the modification conflict occurred.
- Parameters:
sku- value to be set
-
setCurrency
Currency code of the Standalone Price.
- Parameters:
currency- value to be set
-
setCountry
Country code of the geographic location.
- Parameters:
country- value to be set
-
setCustomerGroup
CustomerGroup for which the Standalone Price is valid.
- Parameters:
customerGroup- value to be set
-
setChannel
Channel for which the Standalone Price is valid.
- Parameters:
channel- value to be set
-
setRecurrencePolicy
RecurrencePolicy for which the Standalone Price is valid.
- Parameters:
recurrencePolicy- value to be set
-
of
factory method- Returns:
- instance of GraphQLValidityLockConflictError
-
of
factory method to create a shallow copy GraphQLValidityLockConflictError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GraphQLValidityLockConflictError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
deepCopy
@Nullable static GraphQLValidityLockConflictError deepCopy(@Nullable GraphQLValidityLockConflictError template) factory method to create a deep copy of GraphQLValidityLockConflictError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLValidityLockConflictError- Returns:
- builder
-
builder
create builder for GraphQLValidityLockConflictError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLValidityLockConflictError
default <T> T withGraphQLValidityLockConflictError(Function<GraphQLValidityLockConflictError, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLValidityLockConflictError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-