Interface CartDiscountChangeIsActiveAction

All Superinterfaces:
CartDiscountUpdateAction, ResourceUpdateAction<CartDiscountUpdateAction>

public interface CartDiscountChangeIsActiveAction extends CartDiscountUpdateAction
CartDiscountChangeIsActiveAction
Example to create an instance using the builder pattern

     CartDiscountChangeIsActiveAction cartDiscountChangeIsActiveAction = CartDiscountChangeIsActiveAction.builder()
             .isActive(true)
             .build()
 
  • Field Details

    • CHANGE_IS_ACTIVE

      static final String CHANGE_IS_ACTIVE
      discriminator value for CartDiscountChangeIsActiveAction
      See Also:
  • Method Details

    • getIsActive

      @NotNull @NotNull Boolean getIsActive()

      New value to set. If set to true, the Discount will be applied to the Cart.

      If the limit for active Cart Discounts is reached, a MaxCartDiscountsReached error is returned.

      Returns:
      isActive
    • setIsActive

      void setIsActive(Boolean isActive)

      New value to set. If set to true, the Discount will be applied to the Cart.

      If the limit for active Cart Discounts is reached, a MaxCartDiscountsReached error is returned.

      Parameters:
      isActive - value to be set
    • of

      factory method
      Returns:
      instance of CartDiscountChangeIsActiveAction
    • of

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

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

      builder factory method for CartDiscountChangeIsActiveAction
      Returns:
      builder
    • builder

      create builder for CartDiscountChangeIsActiveAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartDiscountChangeIsActiveAction

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