Interface MyCustomerChangeAddressAction

All Superinterfaces:
MyCustomerUpdateAction, ResourceUpdateAction<MyCustomerUpdateAction>

public interface MyCustomerChangeAddressAction extends MyCustomerUpdateAction

Changing an address of the Customer produces the CustomerAddressChanged Message.

Either addressId or addressKey is required.


Example to create an instance using the builder pattern

     MyCustomerChangeAddressAction myCustomerChangeAddressAction = MyCustomerChangeAddressAction.builder()
             .address(addressBuilder -> addressBuilder)
             .build()
 
  • Field Details

    • CHANGE_ADDRESS

      static final String CHANGE_ADDRESS
      discriminator value for MyCustomerChangeAddressAction
      See Also:
  • Method Details

    • getAddressId

      String getAddressId()

      id of the Address to change.

      Returns:
      addressId
    • getAddressKey

      String getAddressKey()

      key of the Address to change.

      Returns:
      addressKey
    • getAddress

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

      Value to set.

      Returns:
      address
    • setAddressId

      void setAddressId(String addressId)

      id of the Address to change.

      Parameters:
      addressId - value to be set
    • setAddressKey

      void setAddressKey(String addressKey)

      key of the Address to change.

      Parameters:
      addressKey - value to be set
    • setAddress

      void setAddress(BaseAddress address)

      Value to set.

      Parameters:
      address - value to be set
    • of

      factory method
      Returns:
      instance of MyCustomerChangeAddressAction
    • of

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

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

      builder factory method for MyCustomerChangeAddressAction
      Returns:
      builder
    • builder

      create builder for MyCustomerChangeAddressAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyCustomerChangeAddressAction

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