Interface StandalonePriceValueChangedMessage

All Superinterfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, Versioned<Message>

public interface StandalonePriceValueChangedMessage extends Message

Generated after a successful Change Value update action.


Example to create an instance using the builder pattern

     StandalonePriceValueChangedMessage standalonePriceValueChangedMessage = StandalonePriceValueChangedMessage.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .sequenceNumber(0.3)
             .resource(resourceBuilder -> resourceBuilder)
             .resourceVersion(0.3)
             .value(valueBuilder -> valueBuilder)
             .staged(true)
             .build()
 
  • Field Details

    • STANDALONE_PRICE_VALUE_CHANGED

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

    • getValue

      @NotNull @Valid @NotNull @Valid TypedMoney 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 TypedMoney 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(TypedMoney 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(TypedMoney 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 StandalonePriceValueChangedMessage
    • of

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

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

      builder factory method for StandalonePriceValueChangedMessage
      Returns:
      builder
    • builder

      create builder for StandalonePriceValueChangedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStandalonePriceValueChangedMessage

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