Interface StagedStandalonePrice


public interface StagedStandalonePrice

Staged changes on a Standalone Price. To update the value property of a Staged Standalone Price, use the Change Value update action. To apply all staged changes to the Standalone Price, use the Apply Staged Changes update action.


Example to create an instance using the builder pattern

     StagedStandalonePrice stagedStandalonePrice = StagedStandalonePrice.builder()
             .value(valueBuilder -> valueBuilder)
             .build()
 
  • Method Details

    • getValue

      @NotNull @Valid @NotNull @Valid TypedMoney getValue()

      Money value of the StagedStandalonePrice.

      Returns:
      value
    • getDiscounted

      @Valid @Valid DiscountedPrice getDiscounted()

      Discounted price for the StagedStandalonePrice.

      Returns:
      discounted
    • setValue

      void setValue(TypedMoney value)

      Money value of the StagedStandalonePrice.

      Parameters:
      value - value to be set
    • setDiscounted

      void setDiscounted(DiscountedPrice discounted)

      Discounted price for the StagedStandalonePrice.

      Parameters:
      discounted - value to be set
    • of

      static StagedStandalonePrice of()
      factory method
      Returns:
      instance of StagedStandalonePrice
    • of

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

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

      static StagedStandalonePriceBuilder builder()
      builder factory method for StagedStandalonePrice
      Returns:
      builder
    • builder

      create builder for StagedStandalonePrice instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStagedStandalonePrice

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