/* Options: Date: 2025-09-13 18:33:25 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: AddCompanyTrial.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/trials/company/", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") public class AddCompanyTrial : 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.") public var companyId:String? /** * Id of the trial type */ // @ApiMember(Description="Id of the trial type", IsRequired=true) public var trialTypeId: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(){} }