Interface StandalonePriceSetPriceTiersAction

All Superinterfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>, StandalonePriceUpdateAction

public interface StandalonePriceSetPriceTiersAction extends StandalonePriceUpdateAction

Sets all PriceTiers for a StandalonePrice in one action, produces the Standalone Price Tiers Set Message.


Example to create an instance using the builder pattern

     StandalonePriceSetPriceTiersAction standalonePriceSetPriceTiersAction = StandalonePriceSetPriceTiersAction.builder()
             .plusTiers(tiersBuilder -> tiersBuilder)
             .build()
 
  • Field Details

    • SET_PRICE_TIERS

      static final String SET_PRICE_TIERS
      discriminator value for StandalonePriceSetPriceTiersAction
      See Also:
  • Method Details

    • getTiers

      @NotNull @Valid @NotNull @Valid List<PriceTierDraft> getTiers()

      Value to set. If empty, any existing value will be removed. The minimumQuantity of the PriceTiers must be unique and greater than 1, otherwise an InvalidField error is returned.

      Returns:
      tiers
    • setTiers

      void setTiers(PriceTierDraft... tiers)

      Value to set. If empty, any existing value will be removed. The minimumQuantity of the PriceTiers must be unique and greater than 1, otherwise an InvalidField error is returned.

      Parameters:
      tiers - values to be set
    • setTiers

      void setTiers(List<PriceTierDraft> tiers)

      Value to set. If empty, any existing value will be removed. The minimumQuantity of the PriceTiers must be unique and greater than 1, otherwise an InvalidField error is returned.

      Parameters:
      tiers - values to be set
    • of

      factory method
      Returns:
      instance of StandalonePriceSetPriceTiersAction
    • of

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

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

      builder factory method for StandalonePriceSetPriceTiersAction
      Returns:
      builder
    • builder

      create builder for StandalonePriceSetPriceTiersAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStandalonePriceSetPriceTiersAction

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