/* Options: Date: 2024-06-26 09:02:25 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: AddCompanyTrial.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //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(){} }