/* Options: Date: 2025-09-14 04:36:47 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateWebhookEndpoint.* //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.* @Route(Path="/webhook/endpoints/{Id}", Verbs="PUT") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") open class UpdateWebhookEndpoint : IReturn, ICompany { /** * The company id, if empty will use the company id for the user you are logged in with. */ @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.", IsRequired=true, ParameterType="query") override var CompanyId:UUID? = null /** * The webhook endpoint URL. */ @ApiMember(Description="The webhook endpoint URL.", IsRequired=true) open var Url:String? = null /** * The ID of the webhook endpoint. */ @ApiMember(Description="The ID of the webhook endpoint.", IsRequired=true, ParameterType="path") open var Id:String? = null /** * List of event types. At least one event type is required. */ @ApiMember(Description="List of event types. At least one event type is required.", IsRequired=true) @Validate(Validator="NotEmpty", ErrorCode="At least one event type is required.") open var EventTypes:ArrayList = ArrayList() open var Description:String? = null open var Disabled:Boolean? = null companion object { private val responseType = WebhookEndpoint::class.java } override fun getResponseType(): Any? = UpdateWebhookEndpoint.responseType } open class WebhookEndpoint { open var Description:String? = null open var Url:String? = null open var Id:String? = null open var Disabled:Boolean? = null open var EventTypes:ArrayList? = null open var Secret:String? = null } interface ICompany { var CompanyId:UUID? }