Interface ProductSetProductPriceCustomTypeAction

All Superinterfaces:
ProductUpdateAction, ResourceUpdateAction<ProductUpdateAction>

public interface ProductSetProductPriceCustomTypeAction extends ProductUpdateAction
ProductSetProductPriceCustomTypeAction
Example to create an instance using the builder pattern

     ProductSetProductPriceCustomTypeAction productSetProductPriceCustomTypeAction = ProductSetProductPriceCustomTypeAction.builder()
             .priceId("{priceId}")
             .build()
 
  • Field Details

    • SET_PRODUCT_PRICE_CUSTOM_TYPE

      static final String SET_PRODUCT_PRICE_CUSTOM_TYPE
      discriminator value for ProductSetProductPriceCustomTypeAction
      See Also:
  • Method Details

    • getPriceId

      @NotNull @NotNull String getPriceId()

      The id of the Embedded Price to update.

      Returns:
      priceId
    • getStaged

      Boolean getStaged()

      If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price is updated.

      Returns:
      staged
    • getType

      @Valid @Valid TypeResourceIdentifier getType()

      Defines the Type that extends the Price with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Embedded Price.

      Returns:
      type
    • getFields

      @Valid @Valid FieldContainer getFields()

      Sets the Custom Fields fields for the Embedded Price.

      Returns:
      fields
    • setPriceId

      void setPriceId(String priceId)

      The id of the Embedded Price to update.

      Parameters:
      priceId - value to be set
    • setStaged

      void setStaged(Boolean staged)

      If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price is updated.

      Parameters:
      staged - value to be set
    • setType

      void setType(TypeResourceIdentifier type)

      Defines the Type that extends the Price with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Embedded Price.

      Parameters:
      type - value to be set
    • setFields

      void setFields(FieldContainer fields)

      Sets the Custom Fields fields for the Embedded Price.

      Parameters:
      fields - value to be set
    • of

      factory method
      Returns:
      instance of ProductSetProductPriceCustomTypeAction
    • of

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

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

      builder factory method for ProductSetProductPriceCustomTypeAction
      Returns:
      builder
    • builder

      create builder for ProductSetProductPriceCustomTypeAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductSetProductPriceCustomTypeAction

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