Interface ExactLockConflictError

All Superinterfaces:
ErrorObject

public interface ExactLockConflictError extends 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 Details

    • EXACT_LOCK_CONFLICT

      static final String EXACT_LOCK_CONFLICT
      discriminator value for ExactLockConflictError
      See Also:
  • Method Details

    • getCode

      @NotNull @NotNull String getCode()
      Description copied from interface: ErrorObject

      Error identifier.

      Specified by:
      getCode in interface ErrorObject
      Returns:
      code
    • getMessage

      @NotNull @NotNull String getMessage()

      "Modification already in progress for the combination of SKU and price scope fields."

      Specified by:
      getMessage in interface ErrorObject
      Returns:
      message
    • getSku

      @NotNull @NotNull String getSku()

      SKU for which the modification conflict occurred.

      Returns:
      sku
    • getCurrency

      @NotNull @NotNull String getCurrency()

      Currency code of the Standalone Price.

      Returns:
      currency
    • getCountry

      String getCountry()

      Country code of the geographic location.

      Returns:
      country
    • getCustomerGroup

      @Valid @Valid CustomerGroupResourceIdentifier getCustomerGroup()

      CustomerGroup for which the Standalone Price is valid.

      Returns:
      customerGroup
    • getChannel

      @Valid @Valid ChannelResourceIdentifier 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

      @Valid @Valid RecurrencePolicyReference getRecurrencePolicy()

      RecurrencePolicy that applies to the Standalone Price.

      Returns:
      recurrencePolicy
    • setMessage

      void setMessage(String message)

      "Modification already in progress for the combination of SKU and price scope fields."

      Specified by:
      setMessage in interface ErrorObject
      Parameters:
      message - value to be set
    • setSku

      void setSku(String sku)

      SKU for which the modification conflict occurred.

      Parameters:
      sku - value to be set
    • setCurrency

      void setCurrency(String currency)

      Currency code of the Standalone Price.

      Parameters:
      currency - value to be set
    • setCountry

      void setCountry(String country)

      Country code of the geographic location.

      Parameters:
      country - value to be set
    • setCustomerGroup

      void setCustomerGroup(CustomerGroupResourceIdentifier customerGroup)

      CustomerGroup for which the Standalone Price is valid.

      Parameters:
      customerGroup - value to be set
    • setChannel

      void setChannel(ChannelResourceIdentifier channel)

      Channel for which the Standalone Price is valid.

      Parameters:
      channel - value to be set
    • setValidFrom

      void setValidFrom(ZonedDateTime validFrom)

      Date and time (UTC) from which the Standalone Price is valid.

      Parameters:
      validFrom - value to be set
    • setValidUntil

      void setValidUntil(ZonedDateTime validUntil)

      Date and time (UTC) until which the Standalone Price is valid.

      Parameters:
      validUntil - value to be set
    • setRecurrencePolicy

      void setRecurrencePolicy(RecurrencePolicyReference recurrencePolicy)

      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

      Specified by:
      copyDeep in interface ErrorObject
    • deepCopy

      @Nullable static ExactLockConflictError deepCopy(@Nullable ExactLockConflictError template)
      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

      default <T> T withExactLockConflictError(Function<ExactLockConflictError,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<ExactLockConflictError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference