Interface CustomerSetAddressCustomTypeAction

All Superinterfaces:
CustomerUpdateAction, ResourceUpdateAction<CustomerUpdateAction>

public interface CustomerSetAddressCustomTypeAction extends CustomerUpdateAction

Adding or updating a Custom Type on an Address of a Customer generates the CustomerAddressCustomTypeSet Message, and removing one generates the CustomerAddressCustomTypeRemoved Message.


Example to create an instance using the builder pattern

     CustomerSetAddressCustomTypeAction customerSetAddressCustomTypeAction = CustomerSetAddressCustomTypeAction.builder()
             .addressId("{addressId}")
             .build()
 
  • Field Details

    • SET_ADDRESS_CUSTOM_TYPE

      static final String SET_ADDRESS_CUSTOM_TYPE
      discriminator value for CustomerSetAddressCustomTypeAction
      See Also:
  • Method Details

    • getAddressId

      @NotNull @NotNull String getAddressId()

      User-defined unique identifier of the Address to be updated.

      Returns:
      addressId
    • getType

      @Valid @Valid TypeResourceIdentifier getType()

      Defines the Type that extends the address with Custom Fields. If absent, any existing Type and Custom Fields are removed from the address.

      Returns:
      type
    • getFields

      @Valid @Valid FieldContainer getFields()

      Sets the Custom Fields fields for the address.

      Returns:
      fields
    • setAddressId

      void setAddressId(String addressId)

      User-defined unique identifier of the Address to be updated.

      Parameters:
      addressId - value to be set
    • setType

      void setType(TypeResourceIdentifier type)

      Defines the Type that extends the address with Custom Fields. If absent, any existing Type and Custom Fields are removed from the address.

      Parameters:
      type - value to be set
    • setFields

      void setFields(FieldContainer fields)

      Sets the Custom Fields fields for the address.

      Parameters:
      fields - value to be set
    • of

      factory method
      Returns:
      instance of CustomerSetAddressCustomTypeAction
    • of

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

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

      builder factory method for CustomerSetAddressCustomTypeAction
      Returns:
      builder
    • builder

      create builder for CustomerSetAddressCustomTypeAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerSetAddressCustomTypeAction

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