/* Options: Date: 2026-04-04 01:06:22 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: SaveUserProfile.* //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 } @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 ContactDetailModel { /** * Id of the Contact Method */ @ApiMember(DataType="Guid", Description="Id of the Contact Method", Name="ContactMethodId", ParameterType="body") open var ContactMethodId:UUID? = null /** * Contact Method Name */ @ApiMember(DataType="string", Description="Contact Method Name", Name="ContactMethodName", ParameterType="body") open var ContactMethodName:String? = null /** * If the contact method is an address, this will contain the address details. */ @ApiMember(DataType="ContactAddressModel", Description="If the contact method is an address, this will contain the address details.", Name="ContactAddress", ParameterType="body") open var ContactAddress:ContactAddressModel? = null /** * If the contact method is a phone, this will contain the phone details */ @ApiMember(DataType="PhoneModel", Description="If the contact method is a phone, this will contain the phone details", Name="ContactPhone", ParameterType="body") open var ContactPhone:PhoneModel? = null /** * Id of the country */ @ApiMember(DataType="Guid?", Description="Id of the country", Name="CountryId", ParameterType="body") open var CountryId:UUID? = null /** * A summary string representing the contact details */ @ApiMember(DataType="string", Description="A summary string representing the contact details", Name="ContactDetails", ParameterType="body") open var ContactDetails:String? = null /** * Notes about the contact details */ @ApiMember(DataType="string", Description="Notes about the contact details", Name="Notes", ParameterType="body") open var Notes:String? = null /** * Area Code if contact details are a phone number */ @ApiMember(DataType="string", Description="Area Code if contact details are a phone number", Name="ContactDetailsCode", ParameterType="body") open var ContactDetailsCode:String? = null /** * Order number of the contact method */ @ApiMember(DataType="int", Description="Order number of the contact method", Name="OrderContactMethod", ParameterType="body") open var OrderContactMethod:Int? = null /** * True if this is the primary contact method */ @ApiMember(DataType="bool", Description="True if this is the primary contact method", Name="IsPrimaryContactMethod", ParameterType="body") open var IsPrimaryContactMethod:Boolean? = null /** * True if this contact method is an address */ @ApiMember(DataType="bool", Description="True if this contact method is an address", Name="IsAddress", ParameterType="body") open var IsAddress:Boolean? = null } open class ContactDetailModel { /** * Contact Method Id */ @ApiMember(DataType="Guid", Description="Contact Method Id", Name="ContactMethodId", ParameterType="query") open var ContactMethodId:UUID? = null /** * Contact Method Name */ @ApiMember(DataType="string", Description="Contact Method Name", Name="ContactMethodName", ParameterType="query") open var ContactMethodName:String? = null /** * Contact Address Details */ @ApiMember(DataType="ContactAddressModel", Description="Contact Address Details", Name="ContactAddress", ParameterType="query") open var ContactAddress:ContactAddressModel? = null /** * Contact Phone Details */ @ApiMember(DataType="PhoneModel", Description="Contact Phone Details", Name="ContactPhone", ParameterType="query") open var ContactPhone:PhoneModel? = null /** * Country id */ @ApiMember(DataType="Guid", Description="Country id", Name="CountryId", ParameterType="query") open var CountryId:UUID? = null /** * Contact Details */ @ApiMember(DataType="string", Description="Contact Details", Name="ContactDetails", ParameterType="query") open var ContactDetails:String? = null /** * Notes */ @ApiMember(DataType="string", Description="Notes", Name="Notes", ParameterType="query") open var Notes:String? = null /** * Contact Details Code */ @ApiMember(DataType="string", Description="Contact Details Code", Name="ContactDetailsCode", ParameterType="query") open var ContactDetailsCode:String? = null /** * Order of Contact Method Id */ @ApiMember(DataType="int", Description="Order of Contact Method Id", Name="OrderContactMethod", ParameterType="query") open var OrderContactMethod:Int? = null /** * Contact Method Id */ @ApiMember(DataType="bool", Description="Contact Method Id", Name="IsPrimaryContactMethod", ParameterType="query") open var IsPrimaryContactMethod:Boolean? = null /** * Is contact details an address */ @ApiMember(DataType="bool", Description="Is contact details an address", Name="IsAddress", ParameterType="query") open var IsAddress:Boolean? = null /** * Contact Contact Detail Id */ @ApiMember(DataType="Guid", Description="Contact Contact Detail Id", Name="ContactContactDetailId", ParameterType="query") open var ContactContactDetailId:UUID? = null /** * Contact Id */ @ApiMember(DataType="Guid", Description="Contact Id", Name="ContactId", ParameterType="query") open var ContactId:UUID? = null /** * Contact Details Id */ @ApiMember(DataType="Guid", Description="Contact Details Id", Name="ContactDetailId", ParameterType="query") open var ContactDetailId:UUID? = null /** * Is contact details a primary location */ @ApiMember(DataType="bool", Description="Is contact details a primary location", Name="IsPrimaryLocation", ParameterType="query") open var IsPrimaryLocation:Boolean? = null /** * Is contact details a registered location */ @ApiMember(DataType="bool", Description="Is contact details a registered location", Name="IsRegisteredLocation", ParameterType="query") open var IsRegisteredLocation:Boolean? = null /** * Is contact details a postal address */ @ApiMember(DataType="bool", Description="Is contact details a postal address", Name="IsPostal", ParameterType="query") open var IsPostal:Boolean? = null /** * Is contact details a phone number */ @ApiMember(DataType="bool", Description="Is contact details a phone number", Name="IsPhone", ParameterType="query") open var IsPhone:Boolean? = null /** * Email Signature Id */ @ApiMember(DataType="Guid", Description="Email Signature Id", Name="EmailSignatureId", ParameterType="query") open var EmailSignatureId:UUID? = null /** * Email Signature HTML */ @ApiMember(DataType="string", Description="Email Signature HTML", Name="EmailSignatureHTML", ParameterType="query") open var EmailSignatureHTML:String? = null /** * Email Signature Text */ @ApiMember(DataType="string", Description="Email Signature Text", Name="EmailSignatureText", ParameterType="query") open var EmailSignatureText:String? = null /** * API Key from Framework */ @ApiMember(DataType="string", Description="API Key from Framework", Name="ApiFrameworkAlternateKey", ParameterType="query") open var ApiFrameworkAlternateKey:String? = null }