/* Options: Date: 2024-06-26 11:00:27 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: CompanyTrialsQuery.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/trials/company/", "GET") // @ValidateRequest(Validator="IsAuthenticated") public class CompanyTrialsQuery : IReturn, ICompany, Codable { public typealias Return = CompanyTrialQueryResponse /** * Enter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown */ // @ApiMember(Description="Enter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown ", IsRequired=true, ParameterType="query") public var companyId:String? /** * Trial Id */ // @ApiMember(Description="Trial Id", IsRequired=true, ParameterType="query") public var id:Int required public init(){} } public class CompanyTrialQueryResponse : Codable { public var trialTypeId:Int public var trialType:TrialQueryResponse public var started:Date? public var created:Date public var validTo:Date? public var active:Bool required public init(){} } public protocol ICompany { var companyId:String? { get set } } public class TrialQueryResponse : Codable { public var id:Int public var name:String public var trialDays:Int required public init(){} }