/* Options: Date: 2026-04-04 01:18:41 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: AddBusinessProfile.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AddBusinessProfileResponse implements IConvertible { /** * 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") String? Message; /** * Holds a code representing the exception type. */ // @ApiMember(DataType="string", Description="Holds a code representing the exception type.", Name="ErrorCode", ParameterType="query") String? ErrorCode; /** * 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") List? Errors; /** * 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") String? UserProfileId; /** * Service Stack Response Status. */ // @ApiMember(DataType="ResponseStatus", Description="Service Stack Response Status.", Name="ResponseStatus", ParameterType="query") ResponseStatus? ResponseStatus; AddBusinessProfileResponse({this.Message,this.ErrorCode,this.Errors,this.UserProfileId,this.ResponseStatus}); AddBusinessProfileResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Message = json['Message']; ErrorCode = json['ErrorCode']; Errors = JsonConverters.fromJson(json['Errors'],'List',context!); UserProfileId = json['UserProfileId']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Message': Message, 'ErrorCode': ErrorCode, 'Errors': JsonConverters.toJson(Errors,'List',context!), 'UserProfileId': UserProfileId, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "AddBusinessProfileResponse"; 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; } /** * Updates a Users Profile information' */ // @Route("/profile/business") // @Api(Description="Updates a Users Profile information'") class AddBusinessProfile implements IReturn, IConvertible, IPost { /** * 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") SaveUserProfile? BusinessProfile; AddBusinessProfile({this.BusinessProfile}); AddBusinessProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BusinessProfile = JsonConverters.fromJson(json['BusinessProfile'],'SaveUserProfile',context!); return this; } Map toJson() => { 'BusinessProfile': JsonConverters.toJson(BusinessProfile,'SaveUserProfile',context!) }; createResponse() => AddBusinessProfileResponse(); getResponseTypeName() => "AddBusinessProfileResponse"; getTypeName() => "AddBusinessProfile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'AddBusinessProfileResponse': TypeInfo(TypeOf.Class, create:() => AddBusinessProfileResponse()), 'SaveUserProfile': TypeInfo(TypeOf.Class, create:() => SaveUserProfile()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ContactDetailModel': TypeInfo(TypeOf.Class, create:() => ContactDetailModel()), 'AddBusinessProfile': TypeInfo(TypeOf.Class, create:() => AddBusinessProfile()), });