Interface StandalonePriceChangeValueAction

All Superinterfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>, StandalonePriceUpdateAction

public interface StandalonePriceChangeValueAction extends StandalonePriceUpdateAction

Updating the value of a StandalonePrice produces the StandalonePriceValueChangedMessage.


Example to create an instance using the builder pattern

     StandalonePriceChangeValueAction standalonePriceChangeValueAction = StandalonePriceChangeValueAction.builder()
             .value(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

    • CHANGE_VALUE

      static final String CHANGE_VALUE
      discriminator value for StandalonePriceChangeValueAction
      See Also:
  • Method Details

    • getValue

      @NotNull @Valid @NotNull @Valid Money getValue()

      New value to set. Must not be empty.

      Returns:
      value
    • getStaged

      Boolean getStaged()

      If set to true the update action applies to the StagedStandalonePrice. If set to false, the update action applies to the current StandalonePrice.

      Returns:
      staged
    • setValue

      void setValue(Money value)

      New value to set. Must not be empty.

      Parameters:
      value - value to be set
    • setStaged

      void setStaged(Boolean staged)

      If set to true the update action applies to the StagedStandalonePrice. If set to false, the update action applies to the current StandalonePrice.

      Parameters:
      staged - value to be set
    • of

      factory method
      Returns:
      instance of StandalonePriceChangeValueAction
    • of

      factory method to create a shallow copy StandalonePriceChangeValueAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of StandalonePriceChangeValueAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for StandalonePriceChangeValueAction
      Returns:
      builder
    • builder

      create builder for StandalonePriceChangeValueAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStandalonePriceChangeValueAction

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