/* Options: Date: 2026-04-04 02:55:13 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: RegisterNewUser.* //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 { /** * Registers a new user with the platform as a 'Perspective Platform - Platform Member' */ @Route(Path="/register") @Api(Description="Registers a new user with the platform as a 'Perspective Platform - Platform Member'") public static class RegisterNewUser implements IReturn { /** * Details of the contacts primary/default user profile. */ @ApiMember(DataType="string", Description="Details of the contacts primary/default user profile.", IsRequired=true, Name="EmailAddress", ParameterType="query") public String EmailAddress = null; /** * Details of the contacts primary/default user profile. */ @ApiMember(DataType="string", Description="Details of the contacts primary/default user profile.", IsRequired=true, Name="Password", ParameterType="query") public String Password = null; /** * Details of the contacts primary/default user profile. */ @ApiMember(DataType="string", Description="Details of the contacts primary/default user profile.", IsRequired=true, Name="FirstName", ParameterType="query") public String FirstName = null; /** * The users surname. */ @ApiMember(DataType="string", Description="The users surname.", IsRequired=true, Name="Surname", ParameterType="query") public String Surname = null; /** * The users public profile description. */ @ApiMember(DataType="string", Description="The users public profile description.", IsRequired=true, Name="Description", ParameterType="query") public String Description = null; /** * The users industry they work in and what they do (Profession/Trade/Industry). */ @ApiMember(DataType="string", Description="The users industry they work in and what they do (Profession/Trade/Industry).", IsRequired=true, Name="EmploymentIndustry", ParameterType="query") public String EmploymentIndustry = null; /** * The users company/trading name and any major businesses they contract to (Working/Subcontracting for). */ @ApiMember(DataType="string", Description="The users company/trading name and any major businesses they contract to (Working/Subcontracting for).", IsRequired=true, Name="EmploymentRole", ParameterType="query") public String EmploymentRole = null; /** * The users areas or geographic regions they work in (Work Areas/Suburbs). */ @ApiMember(DataType="string", Description="The users areas or geographic regions they work in (Work Areas/Suburbs).", IsRequired=true, Name="EmploymentGeographicArea", ParameterType="query") public String EmploymentGeographicArea = null; /** * The users timezone. */ @ApiMember(DataType="Guid", Description="The users timezone.", Name="Timezone", ParameterType="query") public UUID Timezone = null; /** * The users business profile information (if they have a business). */ @ApiMember(DataType="SaveUserProfile", Description="The users business profile information (if they have a business).", Name="BusinessProfile", ParameterType="query") public SaveUserProfile BusinessProfile = null; public String getEmailAddress() { return EmailAddress; } public RegisterNewUser setEmailAddress(String value) { this.EmailAddress = value; return this; } public String getPassword() { return Password; } public RegisterNewUser setPassword(String value) { this.Password = value; return this; } public String getFirstName() { return FirstName; } public RegisterNewUser setFirstName(String value) { this.FirstName = value; return this; } public String getSurname() { return Surname; } public RegisterNewUser setSurname(String value) { this.Surname = value; return this; } public String getDescription() { return Description; } public RegisterNewUser setDescription(String value) { this.Description = value; return this; } public String getEmploymentIndustry() { return EmploymentIndustry; } public RegisterNewUser setEmploymentIndustry(String value) { this.EmploymentIndustry = value; return this; } public String getEmploymentRole() { return EmploymentRole; } public RegisterNewUser setEmploymentRole(String value) { this.EmploymentRole = value; return this; } public String getEmploymentGeographicArea() { return EmploymentGeographicArea; } public RegisterNewUser setEmploymentGeographicArea(String value) { this.EmploymentGeographicArea = value; return this; } public UUID getTimezone() { return Timezone; } public RegisterNewUser setTimezone(UUID value) { this.Timezone = value; return this; } public SaveUserProfile getBusinessProfile() { return BusinessProfile; } public RegisterNewUser setBusinessProfile(SaveUserProfile value) { this.BusinessProfile = value; return this; } private static Object responseType = ResponseStatus.class; public Object getResponseType() { return responseType; } } /** * Updates a Users Profile information' */ @Api(Description="Updates a Users Profile information'") public static class SaveUserProfile implements IReturn { /** * The users profile Guid. */ @ApiMember(DataType="Guid", Description="The users profile Guid.", IsRequired=true, Name="UserProfileId", ParameterType="query") public UUID UserProfileId = null; /** * The users Guid. This is used for validation to ensure the user in the session is only changing his own user information. */ @ApiMember(DataType="Guid", Description="The users Guid. This is used for validation to ensure the user in the session is only changing his own user information.", IsRequired=true, Name="UserId", ParameterType="query") public UUID UserId = null; /** * The users contact Guid. */ @ApiMember(DataType="Guid", Description="The users contact Guid.", IsRequired=true, Name="ContactId", ParameterType="query") public UUID ContactId = null; /** * The users profile name. */ @ApiMember(DataType="string", Description="The users profile name.", IsRequired=true, Name="ProfileName", ParameterType="query") public String ProfileName = null; /** * The users (contact) title. */ @ApiMember(DataType="string", Description="The users (contact) title.", Name="Title", ParameterType="query") public String Title = null; /** * The users (contact) first name(s). */ @ApiMember(DataType="string", Description="The users (contact) first name(s).", IsRequired=true, Name="FirstName", ParameterType="query") public String FirstName = null; /** * The users (contact) surname. */ @ApiMember(DataType="string", Description="The users (contact) surname.", IsRequired=true, Name="Surname", ParameterType="query") public String Surname = null; /** * The contact profile description. */ @ApiMember(DataType="string", Description="The contact profile description.", Name="Description", ParameterType="query") public String Description = null; /** * The contacts profession/trade/industry details. */ @ApiMember(DataType="string", Description="The contacts profession/trade/industry details.", Name="EmploymentIndustry", ParameterType="query") public String EmploymentIndustry = null; /** * The contact details of who they work/subcontract for. */ @ApiMember(DataType="string", Description="The contact details of who they work/subcontract for.", Name="EmploymentRole", ParameterType="query") public String EmploymentRole = null; /** * The contacts work area/suburbs. */ @ApiMember(DataType="string", Description="The contacts work area/suburbs.", Name="EmploymentGeographicArea", ParameterType="query") public String EmploymentGeographicArea = null; /** * The contacts timezone. */ @ApiMember(DataType="Guid", Description="The contacts timezone.", Name="Timezone", ParameterType="query") public UUID Timezone = null; /** * A list of the contact details for the contact. Note: an email must always be set for a business. */ @ApiMember(DataType="List", Description="A list of the contact details for the contact. Note: an email must always be set for a business.", IsRequired=true, Name="ContactDetails", ParameterType="query") public ArrayList ContactDetails = new ArrayList(); /** * Type of contact (person, organisation etc.) linked to the profile */ @ApiMember(DataType="string", Description="Type of contact (person, organisation etc.) linked to the profile", Name="ContactType") public UUID ContactType = null; /** * Legal name of contact linked to the profile */ @ApiMember(DataType="string", Description="Legal name of contact linked to the profile", Name="LegalName") public String LegalName = null; /** * Trading name of contact linked to the profile */ @ApiMember(DataType="string", Description="Trading name of contact linked to the profile", Name="TradingName") public String TradingName = null; /** * Abn of contact linked to the profile */ @ApiMember(DataType="string", Description="Abn of contact linked to the profile", Name="Abn") public String Abn = null; /** * Acn of contact linked to the profile */ @ApiMember(DataType="string", Description="Acn of contact linked to the profile", Name="Acn") public String Acn = null; /** * Arbn of contact linked to the profile */ @ApiMember(DataType="string", Description="Arbn of contact linked to the profile", Name="Arbn") public String Arbn = null; /** * Indicates if the Contact is registered for GST. */ @ApiMember(DataType="bool", Description="Indicates if the Contact is registered for GST.", Name="GstRegistered", ParameterType="query") public Boolean GstRegistered = null; /** * The Gender Guid of the contact. */ @ApiMember(DataType="Guid", Description="The Gender Guid of the contact.", Name="GenderId", ParameterType="query") public UUID GenderId = null; public UUID getUserProfileId() { return UserProfileId; } public SaveUserProfile setUserProfileId(UUID value) { this.UserProfileId = value; return this; } public UUID getUserId() { return UserId; } public SaveUserProfile setUserId(UUID value) { this.UserId = value; return this; } public UUID getContactId() { return ContactId; } public SaveUserProfile setContactId(UUID value) { this.ContactId = value; return this; } public String getProfileName() { return ProfileName; } public SaveUserProfile setProfileName(String value) { this.ProfileName = value; return this; } public String getTitle() { return Title; } public SaveUserProfile setTitle(String value) { this.Title = value; return this; } public String getFirstName() { return FirstName; } public SaveUserProfile setFirstName(String value) { this.FirstName = value; return this; } public String getSurname() { return Surname; } public SaveUserProfile setSurname(String value) { this.Surname = value; return this; } public String getDescription() { return Description; } public SaveUserProfile setDescription(String value) { this.Description = value; return this; } public String getEmploymentIndustry() { return EmploymentIndustry; } public SaveUserProfile setEmploymentIndustry(String value) { this.EmploymentIndustry = value; return this; } public String getEmploymentRole() { return EmploymentRole; } public SaveUserProfile setEmploymentRole(String value) { this.EmploymentRole = value; return this; } public String getEmploymentGeographicArea() { return EmploymentGeographicArea; } public SaveUserProfile setEmploymentGeographicArea(String value) { this.EmploymentGeographicArea = value; return this; } public UUID getTimezone() { return Timezone; } public SaveUserProfile setTimezone(UUID value) { this.Timezone = value; return this; } public ArrayList getContactDetails() { return ContactDetails; } public SaveUserProfile setContactDetails(ArrayList value) { this.ContactDetails = value; return this; } public UUID getContactType() { return ContactType; } public SaveUserProfile setContactType(UUID value) { this.ContactType = value; return this; } public String getLegalName() { return LegalName; } public SaveUserProfile setLegalName(String value) { this.LegalName = value; return this; } public String getTradingName() { return TradingName; } public SaveUserProfile setTradingName(String value) { this.TradingName = value; return this; } public String getAbn() { return Abn; } public SaveUserProfile setAbn(String value) { this.Abn = value; return this; } public String getAcn() { return Acn; } public SaveUserProfile setAcn(String value) { this.Acn = value; return this; } public String getArbn() { return Arbn; } public SaveUserProfile setArbn(String value) { this.Arbn = value; return this; } public Boolean isGstRegistered() { return GstRegistered; } public SaveUserProfile setGstRegistered(Boolean value) { this.GstRegistered = value; return this; } public UUID getGenderId() { return GenderId; } public SaveUserProfile setGenderId(UUID value) { this.GenderId = value; return this; } private static Object responseType = ResponseStatus.class; public Object getResponseType() { return responseType; } } @DataContract public static class ResponseStatus { @DataMember(Order=1) public String ErrorCode = null; @DataMember(Order=2) public String Message = null; @DataMember(Order=3) public String StackTrace = null; @DataMember(Order=4) public ArrayList Errors = null; @DataMember(Order=5) public HashMap Meta = null; public String getErrorCode() { return ErrorCode; } public ResponseStatus setErrorCode(String value) { this.ErrorCode = value; return this; } public String getMessage() { return Message; } public ResponseStatus setMessage(String value) { this.Message = value; return this; } public String getStackTrace() { return StackTrace; } public ResponseStatus setStackTrace(String value) { this.StackTrace = value; return this; } public ArrayList getErrors() { return Errors; } public ResponseStatus setErrors(ArrayList value) { this.Errors = value; return this; } public HashMap getMeta() { return Meta; } public ResponseStatus setMeta(HashMap value) { this.Meta = value; return this; } } }