Interface StandalonePriceValueChangedMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin

public interface StandalonePriceValueChangedMessagePayload extends MessagePayload

Generated after a successful Change Value update action.


Example to create an instance using the builder pattern

     StandalonePriceValueChangedMessagePayload standalonePriceValueChangedMessagePayload = StandalonePriceValueChangedMessagePayload.builder()
             .value(valueBuilder -> valueBuilder)
             .staged(true)
             .build()
 
  • Field Details

    • STANDALONE_PRICE_VALUE_CHANGED

      static final String STANDALONE_PRICE_VALUE_CHANGED
      discriminator value for StandalonePriceValueChangedMessagePayload
      See Also:
  • Method Details

    • getValue

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

      The new value of the updated StandalonePrice.

      Returns:
      value
    • getStaged

      @NotNull @NotNull Boolean getStaged()

      Whether the new value was applied to the current or the staged representation of the StandalonePrice. Staged changes are stored on the StagedStandalonePrice.

      Returns:
      staged
    • getOldValue

      @Valid @Valid Money getOldValue()

      The old value of the updated StandalonePrice. Present on Messages created after 3 February 2023. Optional for backwards compatibility.

      Returns:
      oldValue
    • setValue

      void setValue(Money value)

      The new value of the updated StandalonePrice.

      Parameters:
      value - value to be set
    • setStaged

      void setStaged(Boolean staged)

      Whether the new value was applied to the current or the staged representation of the StandalonePrice. Staged changes are stored on the StagedStandalonePrice.

      Parameters:
      staged - value to be set
    • setOldValue

      void setOldValue(Money oldValue)

      The old value of the updated StandalonePrice. Present on Messages created after 3 February 2023. Optional for backwards compatibility.

      Parameters:
      oldValue - value to be set
    • of

      factory method
      Returns:
      instance of StandalonePriceValueChangedMessagePayload
    • of

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

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

      builder factory method for StandalonePriceValueChangedMessagePayload
      Returns:
      builder
    • builder

      create builder for StandalonePriceValueChangedMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStandalonePriceValueChangedMessagePayload

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