/* Options:
Date: 2026-04-04 02:54:57
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: SaveAutoNotification.*
//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 AutomationModel
{
///
///The unique automation Id
///
[ApiMember(Description="The unique automation Id", ParameterType="query")]
public virtual Guid AutomationId { get; set; }
///
///The automation type Id
///
[ApiMember(Description="The automation type Id", ParameterType="query")]
public virtual Guid AutomationTypeId { get; set; }
///
///The automation type
///
[ApiMember(Description="The automation type", ParameterType="query")]
public virtual string AutomationType { get; set; }
///
///The object this automation applies to
///
[ApiMember(Description="The object this automation applies to", ParameterType="query")]
public virtual Guid ObjectId { get; set; }
///
///The object name this automation applies to
///
[ApiMember(Description="The object name this automation applies to", ParameterType="query")]
public virtual string ObjectName { get; set; }
///
///The Id of the object type that this automation applies to.
///
[ApiMember(Description="The Id of the object type that this automation applies to. ", ParameterType="query")]
public virtual Guid RmsTableCtxIdObject { get; set; }
///
///The name of the object type that this automation applies to.
///
[ApiMember(Description="The name of the object type that this automation applies to.", ParameterType="query")]
public virtual string RmsTableCtxName { get; set; }
///
///A guid list containing the selected system action Id's that trigger this automation.
///
[ApiMember(Description="A guid list containing the selected system action Id's that trigger this automation.", ParameterType="query")]
public virtual List ActionList { get; set; }
///
///A comma separated string of the selected system action names that trigger this automation.
///
[ApiMember(Description="A comma separated string of the selected system action names that trigger this automation.", ParameterType="query")]
public virtual string Actions { get; set; }
///
///Name of the automation.
///
[ApiMember(Description="Name of the automation.", ParameterType="query")]
public virtual string Name { get; set; }
///
///Description of the automation
///
[ApiMember(Description="Description of the automation", ParameterType="query")]
public virtual string Description { get; set; }
///
///Owner Contact Id
///
[ApiMember(Description="Owner Contact Id", ParameterType="query")]
public virtual Guid OwnerContactId { get; set; }
///
///Record Status of the automation.
///
[ApiMember(Description="Record Status of the automation.", ParameterType="query")]
public virtual string RecordStatus { get; set; }
}
public partial class AutoNotificationModel
: AutomationModel
{
///
///Contact Id of the licensee this notification has been created for.
///
[ApiMember(Description="Contact Id of the licensee this notification has been created for.", ParameterType="query")]
public virtual Guid ContactIdLicensee { get; set; }
///
///Contact Role Group Id. If the notification is setup for people in a specified contact role group.
///
[ApiMember(Description="Contact Role Group Id. If the notification is setup for people in a specified contact role group.", ParameterType="query")]
public virtual Guid ContactRoleGroupId { get; set; }
///
///Contact Role Id. If the notification is setup for people in a specified role.
///
[ApiMember(Description="Contact Role Id. If the notification is setup for people in a specified role.", ParameterType="query")]
public virtual Guid ContactRoleId { get; set; }
///
///Contact Role Name. If the notification is setup for people in a specified role.
///
[ApiMember(Description="Contact Role Name. If the notification is setup for people in a specified role.", ParameterType="query")]
public virtual string ContactRoleName { get; set; }
///
///Contact Id. If the notification is setup for a specific person.
///
[ApiMember(Description="Contact Id. If the notification is setup for a specific person.", ParameterType="query")]
public virtual Guid ContactId { get; set; }
///
///If true, then only contacts who are connected to the relevant object are notified.
///
[ApiMember(Description="If true, then only contacts who are connected to the relevant object are notified.", ParameterType="query")]
public virtual bool ObjectContactConnectionRequired { get; set; }
///
///Document Notification: If true, then the notification will include a link to download the document.
///
[ApiMember(Description="Document Notification: If true, then the notification will include a link to download the document.", ParameterType="query")]
public virtual bool AllowDirectAccess { get; set; }
///
///If true, the notification is sent as soon as it can be processed
///
[ApiMember(Description="If true, the notification is sent as soon as it can be processed", ParameterType="query")]
public virtual bool SendImmediately { get; set; }
///
///If true, the notification is flagged and sent out when subscription/batch emails are next sent.
///
[ApiMember(Description="If true, the notification is flagged and sent out when subscription/batch emails are next sent.", ParameterType="query")]
public virtual bool Batched { get; set; }
///
///Document Notification: If true, the notification is sent when a document has a status of draft.
///
[ApiMember(Description="Document Notification: If true, the notification is sent when a document has a status of draft.", ParameterType="query")]
public virtual bool DraftStatus { get; set; }
///
///Document Notification: If true, the notification is sent when a document has a status of final.
///
[ApiMember(Description="Document Notification: If true, the notification is sent when a document has a status of final.", ParameterType="query")]
public virtual bool FinalStatus { get; set; }
///
///True if we want to include a report on an email notification.
///
[ApiMember(Description="True if we want to include a report on an email notification. ", ParameterType="query")]
public virtual bool IncludeReport { get; set; }
///
///True if this notification is based on a template.
///
[ApiMember(Description="True if this notification is based on a template.", ParameterType="query")]
public virtual bool IsTemplateNotification { get; set; }
///
///When Inserting a new notification we can have 1+ roles. They should be passed to this field when inserting.
///
[ApiMember(Description="When Inserting a new notification we can have 1+ roles. They should be passed to this field when inserting.", ParameterType="query")]
public virtual List Roles { get; set; }
///
///Communication Type Id.
///
[ApiMember(Description="Communication Type Id.", ParameterType="query")]
public virtual Guid CommunicationTypeId { get; set; }
///
///Communication Type.
///
[ApiMember(Description="Communication Type.", ParameterType="query")]
public virtual string CommunicationType { get; set; }
///
///If communication type is email, this is the subject of the email to be sent.
///
[ApiMember(Description="If communication type is email, this is the subject of the email to be sent.", ParameterType="query")]
public virtual string Subject { get; set; }
///
///This is the notification details to be sent.
///
[ApiMember(Description="This is the notification details to be sent.", ParameterType="query")]
public virtual string Body { get; set; }
///
///If true, we will include the relevant project URL in the notification.
///
[ApiMember(Description="If true, we will include the relevant project URL in the notification.", ParameterType="query")]
public virtual bool IncludeURL { get; set; }
///
///The notification Id of a notification setup in Workflow Notification Management to use for the notification.
///
[ApiMember(Description="The notification Id of a notification setup in Workflow Notification Management to use for the notification.", ParameterType="query")]
public virtual Guid NotificationId { get; set; }
///
///The notification nameof a notification setup in Workflow Notification Management to use for the notification.
///
[ApiMember(Description="The notification nameof a notification setup in Workflow Notification Management to use for the notification.", ParameterType="query")]
public virtual string NotificationName { get; set; }
///
///The suite id the notification is setup for
///
[ApiMember(Description="The suite id the notification is setup for", ParameterType="query")]
public virtual Guid SuiteId { get; set; }
///
///The suite name the notification is setup for
///
[ApiMember(Description="The suite name the notification is setup for", ParameterType="query")]
public virtual string SuiteName { get; set; }
}
}
namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModel
{
[ApiResponse(Description="List of (automation) notifications that are setup for an object.")]
public partial class GetAutomationNotificationsForObjectResponse
{
///
///List of (automation) notifications.
///
[ApiMember(Description="List of (automation) notifications.")]
public virtual List Notifications { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
///
///Add or update an (automation) notification for an object
///
[Route("/automation/notification", "POST")]
[Route("/automation/notification/{AutomationId}", "PUT")]
[Api(Description="Add or update an (automation) notification for an object")]
public partial class SaveAutoNotification
: IReturn
{
///
///Details of the (automation) notification to be added or updated.
///
[ApiMember(Description="Details of the (automation) notification to be added or updated.", ParameterType="query")]
public virtual AutoNotificationModel Notification { get; set; }
///
///Id of the automation.
///
[ApiMember(Description="Id of the automation.", ParameterType="path")]
public virtual Guid AutomationId { 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; }
}
}