/* Options: Date: 2025-05-04 22:10:13 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: NewUser.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { /** * Creates a new login with the specified email address and password. Note: Any given email address can only exist once in the entire Evo Voice system. */ @Route(Path="/users", Verbs="POST") @Api(Description="Creates a new login with the specified email address and password. Note: Any given email address can only exist once in the entire Evo Voice system.") public static class NewUser implements IReturn, IPost { /** * The account ID you want to create this user under */ @ApiMember(Description="The account ID you want to create this user under") public String accountId = null; /** * The email address of the new user */ @ApiMember(Description="The email address of the new user") public String emailAddress = null; /** * The user's first name */ @ApiMember(Description="The user's first name") public String firstName = null; /** * The user's last name */ @ApiMember(Description="The user's last name") public String lastName = null; /** * The password for the new user */ @ApiMember(Description="The password for the new user") public String password = null; public String getAccountId() { return accountId; } public NewUser setAccountId(String value) { this.accountId = value; return this; } public String getEmailAddress() { return emailAddress; } public NewUser setEmailAddress(String value) { this.emailAddress = value; return this; } public String getFirstName() { return firstName; } public NewUser setFirstName(String value) { this.firstName = value; return this; } public String getLastName() { return lastName; } public NewUser setLastName(String value) { this.lastName = value; return this; } public String getPassword() { return password; } public NewUser setPassword(String value) { this.password = value; return this; } private static Object responseType = UserInfo.class; public Object getResponseType() { return responseType; } } public static class UserInfo { public String id = null; public Boolean isAuthenticated = null; public String firstName = null; public String lastName = null; public String name = null; public String avatarUrl = null; public String emailAddress = null; public ArrayList roles = null; public ArrayList accountIds = null; public ArrayList accountNames = null; public ArrayList dashboardPermissions = null; public String getId() { return id; } public UserInfo setId(String value) { this.id = value; return this; } public Boolean getIsAuthenticated() { return isAuthenticated; } public UserInfo setIsAuthenticated(Boolean value) { this.isAuthenticated = value; return this; } public String getFirstName() { return firstName; } public UserInfo setFirstName(String value) { this.firstName = value; return this; } public String getLastName() { return lastName; } public UserInfo setLastName(String value) { this.lastName = value; return this; } public String getName() { return name; } public UserInfo setName(String value) { this.name = value; return this; } public String getAvatarUrl() { return avatarUrl; } public UserInfo setAvatarUrl(String value) { this.avatarUrl = value; return this; } public String getEmailAddress() { return emailAddress; } public UserInfo setEmailAddress(String value) { this.emailAddress = value; return this; } public ArrayList getRoles() { return roles; } public UserInfo setRoles(ArrayList value) { this.roles = value; return this; } public ArrayList getAccountIds() { return accountIds; } public UserInfo setAccountIds(ArrayList value) { this.accountIds = value; return this; } public ArrayList getAccountNames() { return accountNames; } public UserInfo setAccountNames(ArrayList value) { this.accountNames = value; return this; } public ArrayList getDashboardPermissions() { return dashboardPermissions; } public UserInfo setDashboardPermissions(ArrayList value) { this.dashboardPermissions = value; return this; } } public static enum DashboardPermissions { ViewFiles, ViewNotifications, ViewSessions, ViewEndpoints, ViewReports, ViewCustomers, ViewFlows; } }