Interface OrderSetBusinessUnitAction

All Superinterfaces:
OrderUpdateAction, ResourceUpdateAction<OrderUpdateAction>

public interface OrderSetBusinessUnitAction extends OrderUpdateAction

Updates the Business Unit on the Order. Setting the Order's businessUnit does not recalculate prices or discounts on the Order.

Produces the OrderBusinessUnitSet Message.


Example to create an instance using the builder pattern

     OrderSetBusinessUnitAction orderSetBusinessUnitAction = OrderSetBusinessUnitAction.builder()
             .build()
 
  • Field Details

    • SET_BUSINESS_UNIT

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

    • getBusinessUnit

      @Valid @Valid BusinessUnitResourceIdentifier getBusinessUnit()

      New Business Unit to assign to the Order. If empty, any existing value is removed.

      If the referenced Business Unit does not exist, a ReferencedResourceNotFound error is returned.

      Returns:
      businessUnit
    • setBusinessUnit

      void setBusinessUnit(BusinessUnitResourceIdentifier businessUnit)

      New Business Unit to assign to the Order. If empty, any existing value is removed.

      If the referenced Business Unit does not exist, a ReferencedResourceNotFound error is returned.

      Parameters:
      businessUnit - value to be set
    • of

      factory method
      Returns:
      instance of OrderSetBusinessUnitAction
    • of

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

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

      builder factory method for OrderSetBusinessUnitAction
      Returns:
      builder
    • builder

      create builder for OrderSetBusinessUnitAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderSetBusinessUnitAction

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