/* Options: Date: 2024-11-21 16:56:20 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddSupportCaseAttachment.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/support/cases/{Id}/attachments", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) @ValidateRequest(Validator="IsAuthenticated") open class AddSupportCaseAttachment : IReturn, ISupportCase { /** * Enter the company id, if blank company id and you are an admin, your company id will be used. */ @ApiMember(Description="Enter the company id, if blank company id and you are an admin, your company id will be used.", IsRequired=true) var CompanyId:UUID? = null /** * The support case id */ @ApiMember(Description="The support case id", ParameterType="path") var Id:Int? = null /** * The case attachment url. Only images are allowed to attach. */ @ApiMember(Description="The case attachment url. Only images are allowed to attach.") var FileUrl:String? = null companion object { private val responseType = SupportCaseAttachmentResponse::class.java } override fun getResponseType(): Any? = AddSupportCaseAttachment.responseType } open class SupportCaseAttachmentResponse { /** * The attachment id */ @ApiMember(Description="The attachment id") var Id:Int? = null /** * The attachment file url */ @ApiMember(Description="The attachment file url") var FileUrl:String? = null } open interface ICompany { var CompanyId:UUID? } open interface ISupportCase : ICompany { var Id:Int? }