/* Options: Date: 2026-05-29 19:16:52 SwiftVersion: 6.0 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: SetCompanyFeatureFlag.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/feature/{CompanyId}/{Id}", "PUT") // @ApiResponse(Description="Returned if the flag is not toggleable for this caller", StatusCode=400) // @ApiResponse(Description="Returned if the feature flag or company was not found", StatusCode=404) // @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") public class SetCompanyFeatureFlag : IReturn, ICompany, Codable { public typealias Return = CompanyFeatureFlagResponse /** * The company id. */ // @ApiMember(Description="The company id.", IsRequired=true, ParameterType="path") public var companyId:String? /** * The feature flag id. */ // @ApiMember(Description="The feature flag id.", IsRequired=true, ParameterType="path") public var id:Int? /** * Whether the feature is enabled for this company. */ // @ApiMember(Description="Whether the feature is enabled for this company.", IsRequired=true) public var isEnabled:Bool? required public init(){} } public class CompanyFeatureFlagResponse : Codable { public var id:Int? public var name:String? public var isEnabled:Bool? public var isPublic:Bool? public var companyAdminCanToggle:Bool? public var responseStatus:ResponseStatus? required public init(){} } public protocol ICompany { var companyId:String? { get set } }