/* Options: Date: 2025-09-14 07:27:49 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="query") 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="query") override var AlternateKey:String? = null /** * Guid of the contact role object within Eros. 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 Eros. If ObjectId is known, the external system may pass this instead of the alternate key.", Name="ObjectId", ParameterType="query") 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="query") open var ContactRole:SubscriptionContactRoleModel? = null override var IgnoreValidation:Boolean? = 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 { open var RuleCode:String? = null open var Message:String? = null open var Key:String? = null open var Tag:String? = null open var ErrorCode:String? = null } open class ValidationErrorList { 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="query") open var RoleName:String? = null /** * Short version of the role name. */ @ApiMember(DataType="string", Description="Short version of the role name.", Name="RoleShortName", ParameterType="query") open var RoleShortName:String? = null /** * Description of the role purpose. */ @ApiMember(DataType="string", Description="Description of the role purpose.", Name="RoleDescription", ParameterType="query") 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="query") 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="query") 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="query") open var ListItemFilters:ArrayList? = null }