Interface CustomerAddAddressAction

All Superinterfaces:
CustomerUpdateAction, ResourceUpdateAction<CustomerUpdateAction>

public interface CustomerAddAddressAction extends CustomerUpdateAction

Adding an address to the Customer produces the CustomerAddressAdded Message.


Example to create an instance using the builder pattern

     CustomerAddAddressAction customerAddAddressAction = CustomerAddAddressAction.builder()
             .address(addressBuilder -> addressBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getAddress

      @NotNull @Valid @NotNull @Valid BaseAddress getAddress()

      Value to append to the addresses array.

      Returns:
      address
    • setAddress

      void setAddress(BaseAddress address)

      Value to append to the addresses array.

      Parameters:
      address - value to be set
    • of

      factory method
      Returns:
      instance of CustomerAddAddressAction
    • of

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

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

      builder factory method for CustomerAddAddressAction
      Returns:
      builder
    • builder

      create builder for CustomerAddAddressAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerAddAddressAction

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