/* Options: Date: 2024-11-21 14:28:05 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: SuperAdminAddSupportCaseAttachment.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/superadmin/support/cases/{Id}/attachments", "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") public class SuperAdminAddSupportCaseAttachment : IReturn, ISupportCase, Codable { public typealias Return = SupportCaseAttachmentResponse /** * 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) public var companyId:String? /** * The support case id */ // @ApiMember(Description="The support case id", ParameterType="path") public var id:Int /** * The case attachment url. Only images are allowed to attach. */ // @ApiMember(Description="The case attachment url. Only images are allowed to attach.") public var fileUrl:String required public init(){} } public class SupportCaseAttachmentResponse : Codable { /** * The attachment id */ // @ApiMember(Description="The attachment id") public var id:Int /** * The attachment file url */ // @ApiMember(Description="The attachment file url") public var fileUrl:String required public init(){} } public protocol ICompany { var companyId:String? { get set } } public protocol ISupportCase : ICompany { var id:Int { get set } }