/* Options: Date: 2026-04-04 08:50:55 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: GetContactRolesForLicensee.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class RoleModel implements IConvertible { /** * Role Id */ // @ApiMember(DataType="Guid", Description="Role Id", IsRequired=true, Name="RoleId") String? RoleId; /** * Role Name */ // @ApiMember(DataType="string", Description="Role Name", Name="RoleName") String? RoleName; /** * Is the role a licensee role? */ // @ApiMember(DataType="bool", Description="Is the role a licensee role?", Name="IsLicensee") bool? IsLicenseeRole; /** * Is manage contacts role? */ // @ApiMember(DataType="bool", Description="Is manage contacts role?", Name="IsManageContacts") bool? IsManageContacts; /** * Is the role a Platform role? */ // @ApiMember(DataType="bool", Description="Is the role a Platform role?", Name="IsPlatformRole") bool? IsPlatformRole; /** * Is the role a services role? */ // @ApiMember(DataType="bool", Description="Is the role a services role?", Name="IsServiceRole") bool? IsServiceRole; /** * Is the role a customer role? */ // @ApiMember(DataType="bool", Description="Is the role a customer role?", Name="IsCustomerRole") bool? IsCustomerRole; /** * Is the role a functional role? */ // @ApiMember(DataType="bool", Description="Is the role a functional role?", Name="IsFunctionalRole") bool? IsFunctionalRole; /** * Is the role an auto-accept role? */ // @ApiMember(DataType="bool", Description="Is the role an auto-accept role?", Name="IsRequestAutoAccepted") bool? IsRequestAutoAccepted; /** * Suite that the role belongs to */ // @ApiMember(DataType="Guid", Description="Suite that the role belongs to", Name="SuiteId") String? SuiteId; /** * Suite that the role belongs to */ // @ApiMember(DataType="string", Description="Suite that the role belongs to", Name="SuiteName") String? SuiteName; /** * 'A' (Active) or 'I' (Inactive) */ // @ApiMember(DataType="string", Description="'A' (Active) or 'I' (Inactive)", Name="RecordStatus") String? RecordStatus; /** * Object Connection Id, which is populated when the roles are returned based on those that are connected to an object. */ // @ApiMember(DataType="Guid", Description="Object Connection Id, which is populated when the roles are returned based on those that are connected to an object.", Name="ObjectConnectionId") String? ObjectConnectionId; RoleModel({this.RoleId,this.RoleName,this.IsLicenseeRole,this.IsManageContacts,this.IsPlatformRole,this.IsServiceRole,this.IsCustomerRole,this.IsFunctionalRole,this.IsRequestAutoAccepted,this.SuiteId,this.SuiteName,this.RecordStatus,this.ObjectConnectionId}); RoleModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RoleId = json['RoleId']; RoleName = json['RoleName']; IsLicenseeRole = json['IsLicenseeRole']; IsManageContacts = json['IsManageContacts']; IsPlatformRole = json['IsPlatformRole']; IsServiceRole = json['IsServiceRole']; IsCustomerRole = json['IsCustomerRole']; IsFunctionalRole = json['IsFunctionalRole']; IsRequestAutoAccepted = json['IsRequestAutoAccepted']; SuiteId = json['SuiteId']; SuiteName = json['SuiteName']; RecordStatus = json['RecordStatus']; ObjectConnectionId = json['ObjectConnectionId']; return this; } Map toJson() => { 'RoleId': RoleId, 'RoleName': RoleName, 'IsLicenseeRole': IsLicenseeRole, 'IsManageContacts': IsManageContacts, 'IsPlatformRole': IsPlatformRole, 'IsServiceRole': IsServiceRole, 'IsCustomerRole': IsCustomerRole, 'IsFunctionalRole': IsFunctionalRole, 'IsRequestAutoAccepted': IsRequestAutoAccepted, 'SuiteId': SuiteId, 'SuiteName': SuiteName, 'RecordStatus': RecordStatus, 'ObjectConnectionId': ObjectConnectionId }; getTypeName() => "RoleModel"; TypeContext? context = _ctx; } // @ApiResponse(Description="List of contact roles (custom and/or standard) for the specified licensee") class GetContactRolesForLicenseeResponse implements IConvertible { List? Roles; ResponseStatus? ResponseStatus; GetContactRolesForLicenseeResponse({this.Roles,this.ResponseStatus}); GetContactRolesForLicenseeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Roles = JsonConverters.fromJson(json['Roles'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Roles': JsonConverters.toJson(Roles,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "GetContactRolesForLicenseeResponse"; TypeContext? context = _ctx; } /** * Get contact roles (custom and/or standard) for the specified licensee */ // @Route("/contactroles/{LicenseeId}") // @Api(Description="Get contact roles (custom and/or standard) for the specified licensee") class GetContactRolesForLicensee implements IReturn, IConvertible, IGet { /** * Get contact roles (custom and/or standard) for the specified licensee */ // @ApiMember(DataType="Guid", Description="Get contact roles (custom and/or standard) for the specified licensee", IsRequired=true, Name="LicenseeId", ParameterType="query") String? LicenseeId; /** * Contact Types */ // @ApiMember(DataType="List", Description="Contact Types", Name="ContactTypes", ParameterType="query") List? ContactTypes; /** * Custom/Standard filter */ // @ApiMember(DataType="List", Description="Custom/Standard filter", Name="OwnerFilterIds", ParameterType="query") List? OwnerFilterIds; /** * Active/Archived filter */ // @ApiMember(DataType="string", Description="Active/Archived filter", Name="RecordStatus", ParameterType="query") String? RecordStatus; /** * Text filter */ // @ApiMember(DataType="string", Description="Text filter", Name="SearchText", ParameterType="query") String? SearchText; GetContactRolesForLicensee({this.LicenseeId,this.ContactTypes,this.OwnerFilterIds,this.RecordStatus,this.SearchText}); GetContactRolesForLicensee.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LicenseeId = json['LicenseeId']; ContactTypes = JsonConverters.fromJson(json['ContactTypes'],'List',context!); OwnerFilterIds = JsonConverters.fromJson(json['OwnerFilterIds'],'List',context!); RecordStatus = json['RecordStatus']; SearchText = json['SearchText']; return this; } Map toJson() => { 'LicenseeId': LicenseeId, 'ContactTypes': JsonConverters.toJson(ContactTypes,'List',context!), 'OwnerFilterIds': JsonConverters.toJson(OwnerFilterIds,'List',context!), 'RecordStatus': RecordStatus, 'SearchText': SearchText }; createResponse() => GetContactRolesForLicenseeResponse(); getResponseTypeName() => "GetContactRolesForLicenseeResponse"; getTypeName() => "GetContactRolesForLicensee"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'RoleModel': TypeInfo(TypeOf.Class, create:() => RoleModel()), 'GetContactRolesForLicenseeResponse': TypeInfo(TypeOf.Class, create:() => GetContactRolesForLicenseeResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetContactRolesForLicensee': TypeInfo(TypeOf.Class, create:() => GetContactRolesForLicensee()), });