/* Options: Date: 2026-01-25 12:24:53 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://evovoice.io //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PatchAlert.* //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.* /** * Update a specific alert */ @Route(Path="/alerts/{alertId}", Verbs="PATCH") @Api(Description="Update a specific alert") open class PatchAlert : IReturn, IPatch { /** * The ID of the alert you want to update */ @ApiMember(Description="The ID of the alert you want to update") open var alertId:String? = null /** * The name for the alert */ @ApiMember(Description="The name for the alert") open var name:String? = null /** * The trigger alert */ @ApiMember(Description="The trigger alert") open var trigger:AlertTriggers? = null /** * The number of hours for the window over which the alert will trigger */ @ApiMember(Description="The number of hours for the window over which the alert will trigger") open var windowHours:Double? = null /** * The value at which the alert will trigger */ @ApiMember(Description="The value at which the alert will trigger") open var threshold:Double? = null /** * The email addresses (one per line) to notify */ @ApiMember(Description="The email addresses (one per line) to notify") open var notificationEmailAddresses:String? = null companion object { private val responseType = AlertInfo::class.java } override fun getResponseType(): Any? = PatchAlert.responseType } open class AlertInfo : EntityInfo() { /** * The ID of the account associated with this alert */ @ApiMember(Description="The ID of the account associated with this alert") open var accountId:String? = null /** * The name of the alert */ @ApiMember(Description="The name of the alert") open var name:String? = null /** * The trigger alert */ @ApiMember(Description="The trigger alert") open var trigger:AlertTriggers? = null /** * The number of hours for the window over which the alert will trigger */ @ApiMember(Description="The number of hours for the window over which the alert will trigger") open var windowHours:Double? = null /** * The value at which the alert will trigger */ @ApiMember(Description="The value at which the alert will trigger") open var threshold:Double? = null /** * The email addresses (one per line) to notify */ @ApiMember(Description="The email addresses (one per line) to notify") open var notificationEmailAddresses:String? = null } enum class AlertTriggers { CallSpend, } open class EntityInfo { /** * The ID of the object */ @ApiMember(Description="The ID of the object") open var id:String? = null /** * The date the object was created */ @ApiMember(Description="The date the object was created") open var dateCreated:String? = null /** * The date the object was last modified */ @ApiMember(Description="The date the object was last modified") open var dateLastModified:String? = null /** * The user that created this object */ @ApiMember(Description="The user that created this object") open var createdBy:String? = null /** * The user that last modified this object */ @ApiMember(Description="The user that last modified this object") open var lastModifiedBy:String? = null }