/* Options:
Date: 2026-04-04 08:36:41
Version: 8.52
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://pfapi.pstpf.com.au/api
//GlobalNamespace:
//MakePartial: True
//MakeVirtual: True
//MakeInternal: False
//MakeDataContractsExtensible: False
//AddNullableAnnotations: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//InitializeCollections: False
//ExportValueTypes: False
IncludeTypes: GetRolesForConnection.*
//ExcludeTypes:
//AddNamespaces:
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Eros.Saguna.Common.WebAPIModel.Models;
using Eros.Subtle.Canvara.WebAPIModel.ServiceModel;
namespace Eros.Saguna.Common.WebAPIModel.Models
{
public partial class RoleModel
{
///
///Role Id
///
[ApiMember(DataType="Guid", Description="Role Id", IsRequired=true, Name="RoleId")]
public virtual Guid RoleId { get; set; }
///
///Role Name
///
[ApiMember(DataType="string", Description="Role Name", Name="RoleName")]
public virtual string RoleName { get; set; }
///
///Is the role a licensee role?
///
[ApiMember(DataType="bool", Description="Is the role a licensee role?", Name="IsLicensee")]
public virtual bool IsLicenseeRole { get; set; }
///
///Is manage contacts role?
///
[ApiMember(DataType="bool", Description="Is manage contacts role?", Name="IsManageContacts")]
public virtual bool IsManageContacts { get; set; }
///
///Is the role a Platform role?
///
[ApiMember(DataType="bool", Description="Is the role a Platform role?", Name="IsPlatformRole")]
public virtual bool IsPlatformRole { get; set; }
///
///Is the role a services role?
///
[ApiMember(DataType="bool", Description="Is the role a services role?", Name="IsServiceRole")]
public virtual bool IsServiceRole { get; set; }
///
///Is the role a customer role?
///
[ApiMember(DataType="bool", Description="Is the role a customer role?", Name="IsCustomerRole")]
public virtual bool IsCustomerRole { get; set; }
///
///Is the role a functional role?
///
[ApiMember(DataType="bool", Description="Is the role a functional role?", Name="IsFunctionalRole")]
public virtual bool IsFunctionalRole { get; set; }
///
///Is the role an auto-accept role?
///
[ApiMember(DataType="bool", Description="Is the role an auto-accept role?", Name="IsRequestAutoAccepted")]
public virtual bool IsRequestAutoAccepted { get; set; }
///
///Suite that the role belongs to
///
[ApiMember(DataType="Guid", Description="Suite that the role belongs to", Name="SuiteId")]
public virtual Guid SuiteId { get; set; }
///
///Suite that the role belongs to
///
[ApiMember(DataType="string", Description="Suite that the role belongs to", Name="SuiteName")]
public virtual string SuiteName { get; set; }
///
///'A' (Active) or 'I' (Inactive)
///
[ApiMember(DataType="string", Description="'A' (Active) or 'I' (Inactive)", Name="RecordStatus")]
public virtual string RecordStatus { get; set; }
///
///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")]
public virtual Guid ObjectConnectionId { get; set; }
}
}
namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModel
{
///
///Get roles for the specified contact
///
[Route("/roles/connection/{FromContactId}")]
[Api(Description="Get roles for the specified contact")]
public partial class GetRolesForConnection
: IReturn
{
///
///Get roles available for connection from this contact
///
[ApiMember(Description="Get roles available for connection from this contact", IsRequired=true, Name="FromContactId")]
public virtual Guid FromContactId { get; set; }
///
///Get roles available for connection to this contact
///
[ApiMember(Description="Get roles available for connection to this contact", Name="ContactId")]
public virtual Guid? ContactId { get; set; }
///
///Get roles available for connection for the specified contact type
///
[ApiMember(Description="Get roles available for connection for the specified contact type", IsRequired=true, Name="ContactTypeId")]
public virtual Guid ContactTypeId { get; set; }
}
[ApiResponse(Description="List of roles available for connection from the specified contact for specified contact types")]
public partial class GetRolesForConnectionResponse
{
public virtual List Roles { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
}
namespace ServiceStack
{
[DataContract]
public partial class ResponseStatus
: IMeta
{
[DataMember(Order=1)]
public virtual string ErrorCode { get; set; }
[DataMember(Order=2)]
public virtual string Message { get; set; }
[DataMember(Order=3)]
public virtual string StackTrace { get; set; }
[DataMember(Order=4)]
public virtual List Errors { get; set; }
[DataMember(Order=5)]
public virtual Dictionary Meta { get; set; }
}
}