/* Options: Date: 2026-04-04 01:20:56 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddBusinessProfile.* //ExcludeTypes: //InitializeCollections: False //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.* /** * Updates a Users Profile information' */ @Api(Description="Updates a Users Profile information'") open class SaveUserProfile : IReturn { /** * The users profile Guid. */ @ApiMember(DataType="Guid", Description="The users profile Guid.", IsRequired=true, Name="UserProfileId", ParameterType="query") open var UserProfileId:UUID? = 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") open var UserId:UUID? = null /** * The users contact Guid. */ @ApiMember(DataType="Guid", Description="The users contact Guid.", IsRequired=true, Name="ContactId", ParameterType="query") open var ContactId:UUID? = null /** * The users profile name. */ @ApiMember(DataType="string", Description="The users profile name.", IsRequired=true, Name="ProfileName", ParameterType="query") open var ProfileName:String? = null /** * The users (contact) title. */ @ApiMember(DataType="string", Description="The users (contact) title.", Name="Title", ParameterType="query") open var Title:String? = null /** * The users (contact) first name(s). */ @ApiMember(DataType="string", Description="The users (contact) first name(s).", IsRequired=true, Name="FirstName", ParameterType="query") open var FirstName:String? = null /** * The users (contact) surname. */ @ApiMember(DataType="string", Description="The users (contact) surname.", IsRequired=true, Name="Surname", ParameterType="query") open var Surname:String? = null /** * The contact profile description. */ @ApiMember(DataType="string", Description="The contact profile description.", Name="Description", ParameterType="query") open var Description:String? = null /** * The contacts profession/trade/industry details. */ @ApiMember(DataType="string", Description="The contacts profession/trade/industry details.", Name="EmploymentIndustry", ParameterType="query") open var EmploymentIndustry:String? = 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") open var EmploymentRole:String? = null /** * The contacts work area/suburbs. */ @ApiMember(DataType="string", Description="The contacts work area/suburbs.", Name="EmploymentGeographicArea", ParameterType="query") open var EmploymentGeographicArea:String? = null /** * The contacts timezone. */ @ApiMember(DataType="Guid", Description="The contacts timezone.", Name="Timezone", ParameterType="query") open var Timezone:UUID? = 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") open var ContactDetails:ArrayList = 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") open var ContactType:UUID? = null /** * Legal name of contact linked to the profile */ @ApiMember(DataType="string", Description="Legal name of contact linked to the profile", Name="LegalName") open var LegalName:String? = null /** * Trading name of contact linked to the profile */ @ApiMember(DataType="string", Description="Trading name of contact linked to the profile", Name="TradingName") open var TradingName:String? = null /** * Abn of contact linked to the profile */ @ApiMember(DataType="string", Description="Abn of contact linked to the profile", Name="Abn") open var Abn:String? = null /** * Acn of contact linked to the profile */ @ApiMember(DataType="string", Description="Acn of contact linked to the profile", Name="Acn") open var Acn:String? = null /** * Arbn of contact linked to the profile */ @ApiMember(DataType="string", Description="Arbn of contact linked to the profile", Name="Arbn") open var Arbn:String? = 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") open var GstRegistered:Boolean? = null /** * The Gender Guid of the contact. */ @ApiMember(DataType="Guid", Description="The Gender Guid of the contact.", Name="GenderId", ParameterType="query") open var GenderId:UUID? = null companion object { private val responseType = ResponseStatus::class.java } override fun getResponseType(): Any? = SaveUserProfile.responseType } /** * Updates a Users Profile information' */ @Route(Path="/profile/business") @Api(Description="Updates a Users Profile information'") open class AddBusinessProfile : IReturn { /** * The users business profile information to link to their user ID. */ @ApiMember(DataType="SaveUserProfile", Description="The users business profile information to link to their user ID.", Name="BusinessProfile", ParameterType="query") open var BusinessProfile:SaveUserProfile? = null companion object { private val responseType = AddBusinessProfileResponse::class.java } override fun getResponseType(): Any? = AddBusinessProfile.responseType } @DataContract open class ResponseStatus { @DataMember(Order=1) open var ErrorCode:String? = null @DataMember(Order=2) open var Message:String? = null @DataMember(Order=3) open var StackTrace:String? = null @DataMember(Order=4) open var Errors:ArrayList? = null @DataMember(Order=5) open var Meta:HashMap? = null } open class AddBusinessProfileResponse { /** * Short description of the overall status of the web service response. */ @ApiMember(DataType="string", Description="Short description of the overall status of the web service response.", Name="Message", ParameterType="query") open var Message:String? = null /** * Holds a code representing the exception type. */ @ApiMember(DataType="string", Description="Holds a code representing the exception type.", Name="ErrorCode", ParameterType="query") open var ErrorCode:String? = null /** * Details of 1 or more validation errors from the web service */ @ApiMember(DataType="List", Description="Details of 1 or more validation errors from the web service", Name="Errors", ParameterType="query") open var Errors:ArrayList? = null /** * Guid representing the object that is the Businesses User Profile Id in Eros. */ @ApiMember(DataType="Guid", Description="Guid representing the object that is the Businesses User Profile Id in Eros.", Name="UserProfileId", ParameterType="query") open var UserProfileId:UUID? = null /** * Service Stack Response Status. */ @ApiMember(DataType="ResponseStatus", Description="Service Stack Response Status.", Name="ResponseStatus", ParameterType="query") open var ResponseStatus:ResponseStatus? = null }