/* Options: Date: 2025-09-14 19:08:35 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: CompanyTrialsQuery.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //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 /** * 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") 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(){} }