/* Options: Date: 2026-04-04 06:54:49 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SaveUserProfile.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export class ContactDetailModel { /** @description Id of the Contact Method */ // @ApiMember(DataType="Guid", Description="Id of the Contact Method", Name="ContactMethodId", ParameterType="body") public ContactMethodId: string; /** @description Contact Method Name */ // @ApiMember(DataType="string", Description="Contact Method Name", Name="ContactMethodName", ParameterType="body") public ContactMethodName: string; /** @description 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") public ContactAddress: ContactAddressModel; /** @description 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") public ContactPhone: PhoneModel; /** @description Id of the country */ // @ApiMember(DataType="Guid?", Description="Id of the country", Name="CountryId", ParameterType="body") public CountryId?: string; /** @description A summary string representing the contact details */ // @ApiMember(DataType="string", Description="A summary string representing the contact details", Name="ContactDetails", ParameterType="body") public ContactDetails: string; /** @description Notes about the contact details */ // @ApiMember(DataType="string", Description="Notes about the contact details", Name="Notes", ParameterType="body") public Notes: string; /** @description 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") public ContactDetailsCode: string; /** @description Order number of the contact method */ // @ApiMember(DataType="int", Description="Order number of the contact method", Name="OrderContactMethod", ParameterType="body") public OrderContactMethod: number; /** @description True if this is the primary contact method */ // @ApiMember(DataType="bool", Description="True if this is the primary contact method", Name="IsPrimaryContactMethod", ParameterType="body") public IsPrimaryContactMethod: boolean; /** @description True if this contact method is an address */ // @ApiMember(DataType="bool", Description="True if this contact method is an address", Name="IsAddress", ParameterType="body") public IsAddress: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseError { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public FieldName: string; // @DataMember(Order=3) public Message: string; // @DataMember(Order=4) public Meta: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ContactDetailModel { /** @description Contact Method Id */ // @ApiMember(DataType="Guid", Description="Contact Method Id", Name="ContactMethodId", ParameterType="query") public ContactMethodId: string; /** @description Contact Method Name */ // @ApiMember(DataType="string", Description="Contact Method Name", Name="ContactMethodName", ParameterType="query") public ContactMethodName: string; /** @description Contact Address Details */ // @ApiMember(DataType="ContactAddressModel", Description="Contact Address Details", Name="ContactAddress", ParameterType="query") public ContactAddress: ContactAddressModel; /** @description Contact Phone Details */ // @ApiMember(DataType="PhoneModel", Description="Contact Phone Details", Name="ContactPhone", ParameterType="query") public ContactPhone: PhoneModel; /** @description Country id */ // @ApiMember(DataType="Guid", Description="Country id", Name="CountryId", ParameterType="query") public CountryId?: string; /** @description Contact Details */ // @ApiMember(DataType="string", Description="Contact Details", Name="ContactDetails", ParameterType="query") public ContactDetails: string; /** @description Notes */ // @ApiMember(DataType="string", Description="Notes", Name="Notes", ParameterType="query") public Notes: string; /** @description Contact Details Code */ // @ApiMember(DataType="string", Description="Contact Details Code", Name="ContactDetailsCode", ParameterType="query") public ContactDetailsCode: string; /** @description Order of Contact Method Id */ // @ApiMember(DataType="int", Description="Order of Contact Method Id", Name="OrderContactMethod", ParameterType="query") public OrderContactMethod: number; /** @description Contact Method Id */ // @ApiMember(DataType="bool", Description="Contact Method Id", Name="IsPrimaryContactMethod", ParameterType="query") public IsPrimaryContactMethod: boolean; /** @description Is contact details an address */ // @ApiMember(DataType="bool", Description="Is contact details an address", Name="IsAddress", ParameterType="query") public IsAddress: boolean; /** @description Contact Contact Detail Id */ // @ApiMember(DataType="Guid", Description="Contact Contact Detail Id", Name="ContactContactDetailId", ParameterType="query") public ContactContactDetailId: string; /** @description Contact Id */ // @ApiMember(DataType="Guid", Description="Contact Id", Name="ContactId", ParameterType="query") public ContactId: string; /** @description Contact Details Id */ // @ApiMember(DataType="Guid", Description="Contact Details Id", Name="ContactDetailId", ParameterType="query") public ContactDetailId: string; /** @description Is contact details a primary location */ // @ApiMember(DataType="bool", Description="Is contact details a primary location", Name="IsPrimaryLocation", ParameterType="query") public IsPrimaryLocation: boolean; /** @description Is contact details a registered location */ // @ApiMember(DataType="bool", Description="Is contact details a registered location", Name="IsRegisteredLocation", ParameterType="query") public IsRegisteredLocation: boolean; /** @description Is contact details a postal address */ // @ApiMember(DataType="bool", Description="Is contact details a postal address", Name="IsPostal", ParameterType="query") public IsPostal: boolean; /** @description Is contact details a phone number */ // @ApiMember(DataType="bool", Description="Is contact details a phone number", Name="IsPhone", ParameterType="query") public IsPhone: boolean; /** @description Email Signature Id */ // @ApiMember(DataType="Guid", Description="Email Signature Id", Name="EmailSignatureId", ParameterType="query") public EmailSignatureId: string; /** @description Email Signature HTML */ // @ApiMember(DataType="string", Description="Email Signature HTML", Name="EmailSignatureHTML", ParameterType="query") public EmailSignatureHTML: string; /** @description Email Signature Text */ // @ApiMember(DataType="string", Description="Email Signature Text", Name="EmailSignatureText", ParameterType="query") public EmailSignatureText: string; /** @description API Key from Framework */ // @ApiMember(DataType="string", Description="API Key from Framework", Name="ApiFrameworkAlternateKey", ParameterType="query") public ApiFrameworkAlternateKey: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message: string; // @DataMember(Order=3) public StackTrace: string; // @DataMember(Order=4) public Errors: ResponseError[]; // @DataMember(Order=5) public Meta: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } /** @description Updates a Users Profile information' */ // @Api(Description="Updates a Users Profile information'") export class SaveUserProfile implements IReturn { /** @description The users profile Guid. */ // @ApiMember(DataType="Guid", Description="The users profile Guid.", IsRequired=true, Name="UserProfileId", ParameterType="query") public UserProfileId: string; /** @description 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 UserId: string; /** @description The users contact Guid. */ // @ApiMember(DataType="Guid", Description="The users contact Guid.", IsRequired=true, Name="ContactId", ParameterType="query") public ContactId: string; /** @description The users profile name. */ // @ApiMember(DataType="string", Description="The users profile name.", IsRequired=true, Name="ProfileName", ParameterType="query") public ProfileName: string; /** @description The users (contact) title. */ // @ApiMember(DataType="string", Description="The users (contact) title.", Name="Title", ParameterType="query") public Title: string; /** @description The users (contact) first name(s). */ // @ApiMember(DataType="string", Description="The users (contact) first name(s).", IsRequired=true, Name="FirstName", ParameterType="query") public FirstName: string; /** @description The users (contact) surname. */ // @ApiMember(DataType="string", Description="The users (contact) surname.", IsRequired=true, Name="Surname", ParameterType="query") public Surname: string; /** @description The contact profile description. */ // @ApiMember(DataType="string", Description="The contact profile description.", Name="Description", ParameterType="query") public Description: string; /** @description The contacts profession/trade/industry details. */ // @ApiMember(DataType="string", Description="The contacts profession/trade/industry details.", Name="EmploymentIndustry", ParameterType="query") public EmploymentIndustry: string; /** @description 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 EmploymentRole: string; /** @description The contacts work area/suburbs. */ // @ApiMember(DataType="string", Description="The contacts work area/suburbs.", Name="EmploymentGeographicArea", ParameterType="query") public EmploymentGeographicArea: string; /** @description The contacts timezone. */ // @ApiMember(DataType="Guid", Description="The contacts timezone.", Name="Timezone", ParameterType="query") public Timezone: string; /** @description 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 ContactDetails: ContactDetailModel[] = []; /** @description 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 ContactType: string; /** @description Legal name of contact linked to the profile */ // @ApiMember(DataType="string", Description="Legal name of contact linked to the profile", Name="LegalName") public LegalName: string; /** @description Trading name of contact linked to the profile */ // @ApiMember(DataType="string", Description="Trading name of contact linked to the profile", Name="TradingName") public TradingName: string; /** @description Abn of contact linked to the profile */ // @ApiMember(DataType="string", Description="Abn of contact linked to the profile", Name="Abn") public Abn: string; /** @description Acn of contact linked to the profile */ // @ApiMember(DataType="string", Description="Acn of contact linked to the profile", Name="Acn") public Acn: string; /** @description Arbn of contact linked to the profile */ // @ApiMember(DataType="string", Description="Arbn of contact linked to the profile", Name="Arbn") public Arbn: string; /** @description 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 GstRegistered: boolean; /** @description The Gender Guid of the contact. */ // @ApiMember(DataType="Guid", Description="The Gender Guid of the contact.", Name="GenderId", ParameterType="query") public GenderId?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SaveUserProfile'; } public getMethod() { return 'POST'; } public createResponse() { return new ResponseStatus(); } }