/* Options: Date: 2026-04-04 01:04:35 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SaveUserProfile.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ContactDetailModel implements IConvertible { /** * Id of the Contact Method */ // @ApiMember(DataType="Guid", Description="Id of the Contact Method", Name="ContactMethodId", ParameterType="body") String? ContactMethodId; /** * Contact Method Name */ // @ApiMember(DataType="string", Description="Contact Method Name", Name="ContactMethodName", ParameterType="body") String? ContactMethodName; /** * 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") ContactAddressModel? ContactAddress; /** * 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") PhoneModel? ContactPhone; /** * Id of the country */ // @ApiMember(DataType="Guid?", Description="Id of the country", Name="CountryId", ParameterType="body") String? CountryId; /** * A summary string representing the contact details */ // @ApiMember(DataType="string", Description="A summary string representing the contact details", Name="ContactDetails", ParameterType="body") String? ContactDetails; /** * Notes about the contact details */ // @ApiMember(DataType="string", Description="Notes about the contact details", Name="Notes", ParameterType="body") String? Notes; /** * 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") String? ContactDetailsCode; /** * Order number of the contact method */ // @ApiMember(DataType="int", Description="Order number of the contact method", Name="OrderContactMethod", ParameterType="body") int? OrderContactMethod; /** * True if this is the primary contact method */ // @ApiMember(DataType="bool", Description="True if this is the primary contact method", Name="IsPrimaryContactMethod", ParameterType="body") bool? IsPrimaryContactMethod; /** * True if this contact method is an address */ // @ApiMember(DataType="bool", Description="True if this contact method is an address", Name="IsAddress", ParameterType="body") bool? IsAddress; ContactDetailModel({this.ContactMethodId,this.ContactMethodName,this.ContactAddress,this.ContactPhone,this.CountryId,this.ContactDetails,this.Notes,this.ContactDetailsCode,this.OrderContactMethod,this.IsPrimaryContactMethod,this.IsAddress}); ContactDetailModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactMethodId = json['ContactMethodId']; ContactMethodName = json['ContactMethodName']; ContactAddress = JsonConverters.fromJson(json['ContactAddress'],'ContactAddressModel',context!); ContactPhone = JsonConverters.fromJson(json['ContactPhone'],'PhoneModel',context!); CountryId = json['CountryId']; ContactDetails = json['ContactDetails']; Notes = json['Notes']; ContactDetailsCode = json['ContactDetailsCode']; OrderContactMethod = json['OrderContactMethod']; IsPrimaryContactMethod = json['IsPrimaryContactMethod']; IsAddress = json['IsAddress']; return this; } Map toJson() => { 'ContactMethodId': ContactMethodId, 'ContactMethodName': ContactMethodName, 'ContactAddress': JsonConverters.toJson(ContactAddress,'ContactAddressModel',context!), 'ContactPhone': JsonConverters.toJson(ContactPhone,'PhoneModel',context!), 'CountryId': CountryId, 'ContactDetails': ContactDetails, 'Notes': Notes, 'ContactDetailsCode': ContactDetailsCode, 'OrderContactMethod': OrderContactMethod, 'IsPrimaryContactMethod': IsPrimaryContactMethod, 'IsAddress': IsAddress }; getTypeName() => "ContactDetailModel"; TypeContext? context = _ctx; } class ContactDetailModel implements IConvertible { /** * Contact Method Id */ // @ApiMember(DataType="Guid", Description="Contact Method Id", Name="ContactMethodId", ParameterType="query") String? ContactMethodId; /** * Contact Method Name */ // @ApiMember(DataType="string", Description="Contact Method Name", Name="ContactMethodName", ParameterType="query") String? ContactMethodName; /** * Contact Address Details */ // @ApiMember(DataType="ContactAddressModel", Description="Contact Address Details", Name="ContactAddress", ParameterType="query") ContactAddressModel? ContactAddress; /** * Contact Phone Details */ // @ApiMember(DataType="PhoneModel", Description="Contact Phone Details", Name="ContactPhone", ParameterType="query") PhoneModel? ContactPhone; /** * Country id */ // @ApiMember(DataType="Guid", Description="Country id", Name="CountryId", ParameterType="query") String? CountryId; /** * Contact Details */ // @ApiMember(DataType="string", Description="Contact Details", Name="ContactDetails", ParameterType="query") String? ContactDetails; /** * Notes */ // @ApiMember(DataType="string", Description="Notes", Name="Notes", ParameterType="query") String? Notes; /** * Contact Details Code */ // @ApiMember(DataType="string", Description="Contact Details Code", Name="ContactDetailsCode", ParameterType="query") String? ContactDetailsCode; /** * Order of Contact Method Id */ // @ApiMember(DataType="int", Description="Order of Contact Method Id", Name="OrderContactMethod", ParameterType="query") int? OrderContactMethod; /** * Contact Method Id */ // @ApiMember(DataType="bool", Description="Contact Method Id", Name="IsPrimaryContactMethod", ParameterType="query") bool? IsPrimaryContactMethod; /** * Is contact details an address */ // @ApiMember(DataType="bool", Description="Is contact details an address", Name="IsAddress", ParameterType="query") bool? IsAddress; /** * Contact Contact Detail Id */ // @ApiMember(DataType="Guid", Description="Contact Contact Detail Id", Name="ContactContactDetailId", ParameterType="query") String? ContactContactDetailId; /** * Contact Id */ // @ApiMember(DataType="Guid", Description="Contact Id", Name="ContactId", ParameterType="query") String? ContactId; /** * Contact Details Id */ // @ApiMember(DataType="Guid", Description="Contact Details Id", Name="ContactDetailId", ParameterType="query") String? ContactDetailId; /** * Is contact details a primary location */ // @ApiMember(DataType="bool", Description="Is contact details a primary location", Name="IsPrimaryLocation", ParameterType="query") bool? IsPrimaryLocation; /** * Is contact details a registered location */ // @ApiMember(DataType="bool", Description="Is contact details a registered location", Name="IsRegisteredLocation", ParameterType="query") bool? IsRegisteredLocation; /** * Is contact details a postal address */ // @ApiMember(DataType="bool", Description="Is contact details a postal address", Name="IsPostal", ParameterType="query") bool? IsPostal; /** * Is contact details a phone number */ // @ApiMember(DataType="bool", Description="Is contact details a phone number", Name="IsPhone", ParameterType="query") bool? IsPhone; /** * Email Signature Id */ // @ApiMember(DataType="Guid", Description="Email Signature Id", Name="EmailSignatureId", ParameterType="query") String? EmailSignatureId; /** * Email Signature HTML */ // @ApiMember(DataType="string", Description="Email Signature HTML", Name="EmailSignatureHTML", ParameterType="query") String? EmailSignatureHTML; /** * Email Signature Text */ // @ApiMember(DataType="string", Description="Email Signature Text", Name="EmailSignatureText", ParameterType="query") String? EmailSignatureText; /** * API Key from Framework */ // @ApiMember(DataType="string", Description="API Key from Framework", Name="ApiFrameworkAlternateKey", ParameterType="query") String? ApiFrameworkAlternateKey; ContactDetailModel({this.ContactMethodId,this.ContactMethodName,this.ContactAddress,this.ContactPhone,this.CountryId,this.ContactDetails,this.Notes,this.ContactDetailsCode,this.OrderContactMethod,this.IsPrimaryContactMethod,this.IsAddress,this.ContactContactDetailId,this.ContactId,this.ContactDetailId,this.IsPrimaryLocation,this.IsRegisteredLocation,this.IsPostal,this.IsPhone,this.EmailSignatureId,this.EmailSignatureHTML,this.EmailSignatureText,this.ApiFrameworkAlternateKey}); ContactDetailModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactMethodId = json['ContactMethodId']; ContactMethodName = json['ContactMethodName']; ContactAddress = JsonConverters.fromJson(json['ContactAddress'],'ContactAddressModel',context!); ContactPhone = JsonConverters.fromJson(json['ContactPhone'],'PhoneModel',context!); CountryId = json['CountryId']; ContactDetails = json['ContactDetails']; Notes = json['Notes']; ContactDetailsCode = json['ContactDetailsCode']; OrderContactMethod = json['OrderContactMethod']; IsPrimaryContactMethod = json['IsPrimaryContactMethod']; IsAddress = json['IsAddress']; ContactContactDetailId = json['ContactContactDetailId']; ContactId = json['ContactId']; ContactDetailId = json['ContactDetailId']; IsPrimaryLocation = json['IsPrimaryLocation']; IsRegisteredLocation = json['IsRegisteredLocation']; IsPostal = json['IsPostal']; IsPhone = json['IsPhone']; EmailSignatureId = json['EmailSignatureId']; EmailSignatureHTML = json['EmailSignatureHTML']; EmailSignatureText = json['EmailSignatureText']; ApiFrameworkAlternateKey = json['ApiFrameworkAlternateKey']; return this; } Map toJson() => { 'ContactMethodId': ContactMethodId, 'ContactMethodName': ContactMethodName, 'ContactAddress': JsonConverters.toJson(ContactAddress,'ContactAddressModel',context!), 'ContactPhone': JsonConverters.toJson(ContactPhone,'PhoneModel',context!), 'CountryId': CountryId, 'ContactDetails': ContactDetails, 'Notes': Notes, 'ContactDetailsCode': ContactDetailsCode, 'OrderContactMethod': OrderContactMethod, 'IsPrimaryContactMethod': IsPrimaryContactMethod, 'IsAddress': IsAddress, 'ContactContactDetailId': ContactContactDetailId, 'ContactId': ContactId, 'ContactDetailId': ContactDetailId, 'IsPrimaryLocation': IsPrimaryLocation, 'IsRegisteredLocation': IsRegisteredLocation, 'IsPostal': IsPostal, 'IsPhone': IsPhone, 'EmailSignatureId': EmailSignatureId, 'EmailSignatureHTML': EmailSignatureHTML, 'EmailSignatureText': EmailSignatureText, 'ApiFrameworkAlternateKey': ApiFrameworkAlternateKey }; getTypeName() => "ContactDetailModel"; TypeContext? context = _ctx; } /** * Updates a Users Profile information' */ // @Api(Description="Updates a Users Profile information'") class SaveUserProfile implements IReturn, IConvertible, IPost { /** * The users profile Guid. */ // @ApiMember(DataType="Guid", Description="The users profile Guid.", IsRequired=true, Name="UserProfileId", ParameterType="query") String? UserProfileId; /** * 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") String? UserId; /** * The users contact Guid. */ // @ApiMember(DataType="Guid", Description="The users contact Guid.", IsRequired=true, Name="ContactId", ParameterType="query") String? ContactId; /** * The users profile name. */ // @ApiMember(DataType="string", Description="The users profile name.", IsRequired=true, Name="ProfileName", ParameterType="query") String? ProfileName; /** * The users (contact) title. */ // @ApiMember(DataType="string", Description="The users (contact) title.", Name="Title", ParameterType="query") String? Title; /** * The users (contact) first name(s). */ // @ApiMember(DataType="string", Description="The users (contact) first name(s).", IsRequired=true, Name="FirstName", ParameterType="query") String? FirstName; /** * The users (contact) surname. */ // @ApiMember(DataType="string", Description="The users (contact) surname.", IsRequired=true, Name="Surname", ParameterType="query") String? Surname; /** * The contact profile description. */ // @ApiMember(DataType="string", Description="The contact profile description.", Name="Description", ParameterType="query") String? Description; /** * The contacts profession/trade/industry details. */ // @ApiMember(DataType="string", Description="The contacts profession/trade/industry details.", Name="EmploymentIndustry", ParameterType="query") String? EmploymentIndustry; /** * 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") String? EmploymentRole; /** * The contacts work area/suburbs. */ // @ApiMember(DataType="string", Description="The contacts work area/suburbs.", Name="EmploymentGeographicArea", ParameterType="query") String? EmploymentGeographicArea; /** * The contacts timezone. */ // @ApiMember(DataType="Guid", Description="The contacts timezone.", Name="Timezone", ParameterType="query") String? Timezone; /** * 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") List? ContactDetails = []; /** * 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") String? ContactType; /** * Legal name of contact linked to the profile */ // @ApiMember(DataType="string", Description="Legal name of contact linked to the profile", Name="LegalName") String? LegalName; /** * Trading name of contact linked to the profile */ // @ApiMember(DataType="string", Description="Trading name of contact linked to the profile", Name="TradingName") String? TradingName; /** * Abn of contact linked to the profile */ // @ApiMember(DataType="string", Description="Abn of contact linked to the profile", Name="Abn") String? Abn; /** * Acn of contact linked to the profile */ // @ApiMember(DataType="string", Description="Acn of contact linked to the profile", Name="Acn") String? Acn; /** * Arbn of contact linked to the profile */ // @ApiMember(DataType="string", Description="Arbn of contact linked to the profile", Name="Arbn") String? Arbn; /** * Indicates if the Contact is registered for GST. */ // @ApiMember(DataType="bool", Description="Indicates if the Contact is registered for GST.", Name="GstRegistered", ParameterType="query") bool? GstRegistered; /** * The Gender Guid of the contact. */ // @ApiMember(DataType="Guid", Description="The Gender Guid of the contact.", Name="GenderId", ParameterType="query") String? GenderId; SaveUserProfile({this.UserProfileId,this.UserId,this.ContactId,this.ProfileName,this.Title,this.FirstName,this.Surname,this.Description,this.EmploymentIndustry,this.EmploymentRole,this.EmploymentGeographicArea,this.Timezone,this.ContactDetails,this.ContactType,this.LegalName,this.TradingName,this.Abn,this.Acn,this.Arbn,this.GstRegistered,this.GenderId}); SaveUserProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserProfileId = json['UserProfileId']; UserId = json['UserId']; ContactId = json['ContactId']; ProfileName = json['ProfileName']; Title = json['Title']; FirstName = json['FirstName']; Surname = json['Surname']; Description = json['Description']; EmploymentIndustry = json['EmploymentIndustry']; EmploymentRole = json['EmploymentRole']; EmploymentGeographicArea = json['EmploymentGeographicArea']; Timezone = json['Timezone']; ContactDetails = JsonConverters.fromJson(json['ContactDetails'],'List',context!); ContactType = json['ContactType']; LegalName = json['LegalName']; TradingName = json['TradingName']; Abn = json['Abn']; Acn = json['Acn']; Arbn = json['Arbn']; GstRegistered = json['GstRegistered']; GenderId = json['GenderId']; return this; } Map toJson() => { 'UserProfileId': UserProfileId, 'UserId': UserId, 'ContactId': ContactId, 'ProfileName': ProfileName, 'Title': Title, 'FirstName': FirstName, 'Surname': Surname, 'Description': Description, 'EmploymentIndustry': EmploymentIndustry, 'EmploymentRole': EmploymentRole, 'EmploymentGeographicArea': EmploymentGeographicArea, 'Timezone': Timezone, 'ContactDetails': JsonConverters.toJson(ContactDetails,'List',context!), 'ContactType': ContactType, 'LegalName': LegalName, 'TradingName': TradingName, 'Abn': Abn, 'Acn': Acn, 'Arbn': Arbn, 'GstRegistered': GstRegistered, 'GenderId': GenderId }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "SaveUserProfile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'ContactDetailModel': TypeInfo(TypeOf.Class, create:() => ContactDetailModel()), 'ContactAddressModel': TypeInfo(TypeOf.Class, create:() => ContactAddressModel()), 'PhoneModel': TypeInfo(TypeOf.Class, create:() => PhoneModel()), 'SaveUserProfile': TypeInfo(TypeOf.Class, create:() => SaveUserProfile()), 'List': TypeInfo(TypeOf.Class, create:() => []), });