com.payu.auth.client.model.operation.UpdateAdminPassword Maven / Gradle / Ivy
package com.payu.auth.client.model.operation;
import static com.payu.auth.client.constant.Validation.PASSWORD_ERROR_MESSAGE;
import static com.payu.auth.client.constant.Validation.PASSWORD_PATTERN;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "Update admin password Model operation")
public class UpdateAdminPassword {
@Schema(description = "current password")
@NotNull(message = "current password is require")
@NotBlank(message = "current password is require")
@Pattern(regexp = PASSWORD_PATTERN, message = PASSWORD_ERROR_MESSAGE)
private String currentPassword;
@Schema(description = "new password")
@NotNull(message = "new password is require")
@NotBlank(message = "new password is require")
@Pattern(regexp = PASSWORD_PATTERN, message = PASSWORD_ERROR_MESSAGE)
private String newPassword;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy