Interface CustomerChangePassword


public interface CustomerChangePassword
CustomerChangePassword
Example to create an instance using the builder pattern

     CustomerChangePassword customerChangePassword = CustomerChangePassword.builder()
             .id("{id}")
             .version(0.3)
             .currentPassword("{currentPassword}")
             .newPassword("{newPassword}")
             .build()
 
  • Method Details

    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the Customer.

      Returns:
      id
    • getVersion

      @NotNull @NotNull Long getVersion()

      Expected version of the Customer on which the changes should be applied.

      Returns:
      version
    • getCurrentPassword

      @NotNull @NotNull String getCurrentPassword()

      Current password of the Customer.

      If the current password does not match, an InvalidCurrentPassword error is returned.

      Returns:
      currentPassword
    • getNewPassword

      @NotNull @NotNull String getNewPassword()

      New password to be set.

      Returns:
      newPassword
    • setId

      void setId(String id)

      Unique identifier of the Customer.

      Parameters:
      id - value to be set
    • setVersion

      void setVersion(Long version)

      Expected version of the Customer on which the changes should be applied.

      Parameters:
      version - value to be set
    • setCurrentPassword

      void setCurrentPassword(String currentPassword)

      Current password of the Customer.

      If the current password does not match, an InvalidCurrentPassword error is returned.

      Parameters:
      currentPassword - value to be set
    • setNewPassword

      void setNewPassword(String newPassword)

      New password to be set.

      Parameters:
      newPassword - value to be set
    • of

      factory method
      Returns:
      instance of CustomerChangePassword
    • of

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

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

      builder factory method for CustomerChangePassword
      Returns:
      builder
    • builder

      create builder for CustomerChangePassword instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerChangePassword

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