/* Options:
Date: 2026-02-04 04:50:21
Version: 8.52
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://production-eros-platform-apisubscription.azurewebsites.net/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: SaveContactRole.*
//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.Library.ValidationEngine;
using Eros.Saguna.Common.WebAPI.ServiceModel;
using Eros.Subtle.Canvara.WebAPIModel.ServiceModelSubscription;
namespace Eros.Saguna.Common.Library.ValidationEngine
{
public partial class RuleValidationResult
{
///
///Validation/Error message details
///
[ApiMember(DataType="Guid", Description="Validation/Error message details", Name="Message", ParameterType="body")]
public virtual string Message { get; set; }
///
///Summary/label of validation/error
///
[ApiMember(DataType="Guid", Description="Summary/label of validation/error", Name="Key", ParameterType="body")]
public virtual string Key { get; set; }
///
///Key/code representing validation/error
///
[ApiMember(DataType="Guid", Description="Key/code representing validation/error", Name="ErrorCode", ParameterType="body")]
public virtual string ErrorCode { get; set; }
}
public partial class ValidationErrorList
{
///
///List of any validation/errors occuring during a method call
///
[ApiMember(DataType="List", Description="List of any validation/errors occuring during a method call", Name="ValidationErrors", ParameterType="body")]
public virtual List ValidationErrors { get; set; }
}
}
namespace Eros.Saguna.Common.WebAPI.ServiceModel
{
public partial interface ISubscription
{
Guid SuiteDataSourceInstanceId { get; set; }
Guid ObjectId { get; set; }
string AlternateKey { get; set; }
bool IgnoreValidation { get; set; }
}
}
namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModelSubscription
{
public partial class SaveContactRole
: ValidationErrorList, IReturn, ISubscription
{
///
///Guid representing the external systems data source information.
///
[ApiMember(DataType="Guid", Description="Guid representing the external systems data source information.", IsRequired=true, Name="SuiteDataSourceInstanceId", ParameterType="body")]
public virtual Guid SuiteDataSourceInstanceId { get; set; }
///
///The unique key that represents the contact role on the external system.
///
[ApiMember(DataType="string", Description="The unique key that represents the contact role on the external system.", IsRequired=true, Name="AlternateKey", ParameterType="body")]
public virtual string AlternateKey { get; set; }
///
///Guid of the contact role object within PSTPF. If ObjectId is known, the external system may pass this instead of the alternate key.
///
[ApiMember(DataType="Guid", Description="Guid of the contact role object within PSTPF. If ObjectId is known, the external system may pass this instead of the alternate key.", Name="ObjectId", ParameterType="body")]
public virtual Guid ObjectId { get; set; }
///
///Object containing all details of the contact role to be inserted or updated.
///
[ApiMember(DataType="SubscriptionContactRoleModel", Description="Object containing all details of the contact role to be inserted or updated.", IsRequired=true, Name="ContactRole", ParameterType="body")]
public virtual SubscriptionContactRoleModel ContactRole { get; set; }
}
public partial class SubscriptionContactRoleModel
{
///
///Name of the role.
///
[ApiMember(DataType="string", Description="Name of the role.", Name="RoleName", ParameterType="body")]
public virtual string RoleName { get; set; }
///
///Short version of the role name.
///
[ApiMember(DataType="string", Description="Short version of the role name.", Name="RoleShortName", ParameterType="body")]
public virtual string RoleShortName { get; set; }
///
///Description of the role purpose.
///
[ApiMember(DataType="string", Description="Description of the role purpose.", Name="RoleDescription", ParameterType="body")]
public virtual string RoleDescription { get; set; }
///
///If true, the role will be pending for a contact until they accept it.
///
[ApiMember(DataType="bool", Description="If true, the role will be pending for a contact until they accept it.", Name="RequireContactsToAccept", ParameterType="body")]
public virtual bool RequireContactsToAccept { get; set; }
///
///Contact Types that may have this role.
///
[ApiMember(DataType="List", Description="Contact Types that may have this role.", Name="ContactTypes", ParameterType="body")]
public virtual List ContactTypes { get; set; }
///
///Role Filters this role should be added to.
///
[ApiMember(DataType="List", Description="Role Filters this role should be added to.", Name="ListItemFilters", ParameterType="body")]
public virtual List ListItemFilters { get; set; }
}
}