com.payu.auth.client.model.operation.UpdateUserPhoneNumber Maven / Gradle / Ivy
package com.payu.auth.client.model.operation;
import static com.payu.auth.client.constant.Validation.PHONE_NUMBER_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 User phone number Model operation")
public class UpdateUserPhoneNumber {
@Schema(description = "Phone number")
@NotNull(message = "Phone number is require")
@NotBlank(message = "Phone number is require")
@Pattern(regexp = PHONE_NUMBER_PATTERN, message = "Invalid phone number format")
private String phoneNumber;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy