Interface CustomerSetDateOfBirthAction

All Superinterfaces:
CustomerUpdateAction, ResourceUpdateAction<CustomerUpdateAction>

public interface CustomerSetDateOfBirthAction extends CustomerUpdateAction

Setting the date of birth of the Customer produces the CustomerDateOfBirthSet Message.


Example to create an instance using the builder pattern

     CustomerSetDateOfBirthAction customerSetDateOfBirthAction = CustomerSetDateOfBirthAction.builder()
             .build()
 
  • Field Details

    • SET_DATE_OF_BIRTH

      static final String SET_DATE_OF_BIRTH
      discriminator value for CustomerSetDateOfBirthAction
      See Also:
  • Method Details

    • getDateOfBirth

      LocalDate getDateOfBirth()

      Value to set. If empty, any existing value is removed.

      Returns:
      dateOfBirth
    • setDateOfBirth

      void setDateOfBirth(LocalDate dateOfBirth)

      Value to set. If empty, any existing value is removed.

      Parameters:
      dateOfBirth - value to be set
    • of

      factory method
      Returns:
      instance of CustomerSetDateOfBirthAction
    • of

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

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

      builder factory method for CustomerSetDateOfBirthAction
      Returns:
      builder
    • builder

      create builder for CustomerSetDateOfBirthAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerSetDateOfBirthAction

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