All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.rocketbase.commons.dto.registration.RegistrationRequest Maven / Gradle / Ivy

There is a newer version: 4.4.1
Show newest version
package io.rocketbase.commons.dto.registration;

import io.rocketbase.commons.model.HasFirstAndLastName;
import io.rocketbase.commons.model.HasKeyValue;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.annotation.Nullable;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Map;

/**
 * body for registration as new user
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString(exclude = {"password"})
@Schema(description = "body for registration as new user")
public class RegistrationRequest implements Serializable, HasKeyValue, HasFirstAndLastName {

    @NotNull
    private String username;

    @Nullable
    private String firstName;

    @Nullable
    private String lastName;

    @NotNull
    @Email
    private String email;

    @NotNull
    private String password;

    @Nullable
    private Map keyValues;

    /**
     * optional parameter to overwrite system default
     * 

* full qualified url to a custom UI that proceed the verification
* * ?verification=VALUE will get append */ @Nullable @Schema(description = "optional parameter to overwrite system default.\n" + "full qualified url to a custom UI that proceed the verification.\n" + "* ?verification=VALUE will get append") private String verificationUrl; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy