Interface ExactLockConflictError
- All Superinterfaces:
ErrorObject
Returned when a modification is already in progress for the exact combination of SKU and price scope fields 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
ExactLockConflictError exactLockConflictError = ExactLockConflictError.builder()
.message("{message}")
.sku("{sku}")
.currency("{currency}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ExactLockConflictError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ExactLockConflictErrorbuilder(ExactLockConflictError template) create builder for ExactLockConflictError instancecopyDeep()static ExactLockConflictErrordeepCopy(ExactLockConflictError template) factory method to create a deep copy of ExactLockConflictError@Valid ChannelResourceIdentifierChannel for which the Standalone Price is valid.@NotNull StringgetCode()Error identifier.Country code of the geographic location.@NotNull StringCurrency code of the Standalone Price.CustomerGroup for which the Standalone Price is valid.@NotNull String"Modification already in progress for the combination of SKU and price scope fields."@Valid RecurrencePolicyReferenceRecurrencePolicy that applies to the Standalone Price.@NotNull StringgetSku()SKU for which the modification conflict occurred.Date and time (UTC) from which the Standalone Price is valid.Date and time (UTC) until which the Standalone Price is valid.static ExactLockConflictErrorof()factory methodstatic ExactLockConflictErrorof(ExactLockConflictError template) factory method to create a shallow copy ExactLockConflictErrorvoidsetChannel(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.voidsetMessage(String message) "Modification already in progress for the combination of SKU and price scope fields."voidsetRecurrencePolicy(RecurrencePolicyReference recurrencePolicy) RecurrencePolicy that applies to the Standalone Price.voidSKU for which the modification conflict occurred.voidsetValidFrom(ZonedDateTime validFrom) Date and time (UTC) from which the Standalone Price is valid.voidsetValidUntil(ZonedDateTime validUntil) Date and time (UTC) until which the Standalone Price is valid.static com.fasterxml.jackson.core.type.TypeReference<ExactLockConflictError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
EXACT_LOCK_CONFLICT
discriminator value for ExactLockConflictError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
"Modification already in progress for the combination of SKU and price scope fields."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
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
-
getValidFrom
ZonedDateTime getValidFrom()Date and time (UTC) from which the Standalone Price is valid.
- Returns:
- validFrom
-
getValidUntil
ZonedDateTime getValidUntil()Date and time (UTC) until which the Standalone Price is valid.
- Returns:
- validUntil
-
getRecurrencePolicy
RecurrencePolicy that applies to the Standalone Price.
- Returns:
- recurrencePolicy
-
setMessage
"Modification already in progress for the combination of SKU and price scope fields."- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
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
-
setValidFrom
Date and time (UTC) from which the Standalone Price is valid.
- Parameters:
validFrom- value to be set
-
setValidUntil
Date and time (UTC) until which the Standalone Price is valid.
- Parameters:
validUntil- value to be set
-
setRecurrencePolicy
RecurrencePolicy that applies to the Standalone Price.
- Parameters:
recurrencePolicy- value to be set
-
of
factory method- Returns:
- instance of ExactLockConflictError
-
of
factory method to create a shallow copy ExactLockConflictError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ExactLockConflictError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
factory method to create a deep copy of ExactLockConflictError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExactLockConflictError- Returns:
- builder
-
builder
create builder for ExactLockConflictError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withExactLockConflictError
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-