Interface MyCartSetBusinessUnitAction

All Superinterfaces:
MyCartUpdateAction, ResourceUpdateAction<MyCartUpdateAction>
All Known Implementing Classes:
MyCartSetBusinessUnitActionImpl

public interface MyCartSetBusinessUnitAction extends MyCartUpdateAction

Updates the Business Unit on the Cart. The Cart must have an existing Business Unit assigned already.


Example to create an instance using the builder pattern

     MyCartSetBusinessUnitAction myCartSetBusinessUnitAction = MyCartSetBusinessUnitAction.builder()
             .businessUnit(businessUnitBuilder -> businessUnitBuilder)
             .build()
 
  • Field Details

    • SET_BUSINESS_UNIT

      static final String SET_BUSINESS_UNIT
      discriminator value for MyCartSetBusinessUnitAction
      See Also:
  • Method Details

    • getBusinessUnit

      @NotNull @Valid @NotNull @Valid BusinessUnitResourceIdentifier getBusinessUnit()

      New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart. Additionally, the authenticated user must be an Associate in the Business Unit.

      Returns:
      businessUnit
    • setBusinessUnit

      void setBusinessUnit(BusinessUnitResourceIdentifier businessUnit)

      New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart. Additionally, the authenticated user must be an Associate in the Business Unit.

      Parameters:
      businessUnit - value to be set
    • of

      factory method
      Returns:
      instance of MyCartSetBusinessUnitAction
    • of

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

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

      builder factory method for MyCartSetBusinessUnitAction
      Returns:
      builder
    • builder

      create builder for MyCartSetBusinessUnitAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyCartSetBusinessUnitAction

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