/* Options: Date: 2026-02-04 04:56:57 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://production-eros-platform-apisubscription.azurewebsites.net/api //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SaveContactRole.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* open 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") override var SuiteDataSourceInstanceId:UUID? = null /** * 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") override var AlternateKey:String? = null /** * 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") override var ObjectId:UUID? = null /** * 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") open var ContactRole:SubscriptionContactRoleModel? = null companion object { private val responseType = ResponseStatus::class.java } override fun getResponseType(): Any? = SaveContactRole.responseType } @DataContract open class ResponseStatus { @DataMember(Order=1) open var ErrorCode:String? = null @DataMember(Order=2) open var Message:String? = null @DataMember(Order=3) open var StackTrace:String? = null @DataMember(Order=4) open var Errors:ArrayList? = null @DataMember(Order=5) open var Meta:HashMap? = null } open class RuleValidationResult { /** * Validation/Error message details */ @ApiMember(DataType="Guid", Description="Validation/Error message details", Name="Message", ParameterType="body") open var Message:String? = null /** * Summary/label of validation/error */ @ApiMember(DataType="Guid", Description="Summary/label of validation/error", Name="Key", ParameterType="body") open var Key:String? = null /** * Key/code representing validation/error */ @ApiMember(DataType="Guid", Description="Key/code representing validation/error", Name="ErrorCode", ParameterType="body") open var ErrorCode:String? = null } open 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") open var ValidationErrors:ArrayList? = null } interface ISubscription { var SuiteDataSourceInstanceId:UUID? var ObjectId:UUID? var AlternateKey:String? var IgnoreValidation:Boolean? } open class SubscriptionContactRoleModel { /** * Name of the role. */ @ApiMember(DataType="string", Description="Name of the role.", Name="RoleName", ParameterType="body") open var RoleName:String? = null /** * Short version of the role name. */ @ApiMember(DataType="string", Description="Short version of the role name.", Name="RoleShortName", ParameterType="body") open var RoleShortName:String? = null /** * Description of the role purpose. */ @ApiMember(DataType="string", Description="Description of the role purpose.", Name="RoleDescription", ParameterType="body") open var RoleDescription:String? = null /** * 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") open var RequireContactsToAccept:Boolean? = null /** * Contact Types that may have this role. */ @ApiMember(DataType="List", Description="Contact Types that may have this role.", Name="ContactTypes", ParameterType="body") open var ContactTypes:ArrayList? = null /** * Role Filters this role should be added to. */ @ApiMember(DataType="List", Description="Role Filters this role should be added to.", Name="ListItemFilters", ParameterType="body") open var ListItemFilters:ArrayList? = null }