/* Options: Date: 2024-06-17 07:15:30 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: AddSupportCaseAttachment.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/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 AddSupportCaseAttachment : 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 } }