Interface OrderSetCustomerIdAction

All Superinterfaces:
OrderUpdateAction, ResourceUpdateAction<OrderUpdateAction>

public interface OrderSetCustomerIdAction extends OrderUpdateAction

Setting the Order's customerId does not recalculate prices or discounts on the Order. If the Customer belongs to a Customer Group, customerGroup on the Order is updated automatically.

Produces the OrderCustomerSet Message.


Example to create an instance using the builder pattern

     OrderSetCustomerIdAction orderSetCustomerIdAction = OrderSetCustomerIdAction.builder()
             .build()
 
  • Field Details

    • SET_CUSTOMER_ID

      static final String SET_CUSTOMER_ID
      discriminator value for OrderSetCustomerIdAction
      See Also:
  • Method Details

    • getCustomerId

      String getCustomerId()

      id of an existing Customer. If empty, any existing value is removed.

      Returns:
      customerId
    • setCustomerId

      void setCustomerId(String customerId)

      id of an existing Customer. If empty, any existing value is removed.

      Parameters:
      customerId - value to be set
    • of

      factory method
      Returns:
      instance of OrderSetCustomerIdAction
    • of

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

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

      builder factory method for OrderSetCustomerIdAction
      Returns:
      builder
    • builder

      create builder for OrderSetCustomerIdAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderSetCustomerIdAction

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