""" Options: Date: 2026-05-29 19:05:51 Version: 10.05 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://api.bookmore.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: SetCompanyFeatureFlag.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum Object = TypeVar('Object') class ICompany: company_id: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class CompanyFeatureFlagResponse: id: int = 0 name: Optional[str] = None is_enabled: bool = False is_public: bool = False company_admin_can_toggle: bool = False response_status: Optional[ResponseStatus] = None # @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") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SetCompanyFeatureFlag(IReturn[CompanyFeatureFlagResponse], ICompany): # @ApiMember(Description="The company id.", IsRequired=true, ParameterType="path") company_id: Optional[str] = None """ The company id. """ # @ApiMember(Description="The feature flag id.", IsRequired=true, ParameterType="path") id: int = 0 """ The feature flag id. """ # @ApiMember(Description="Whether the feature is enabled for this company.", IsRequired=true) is_enabled: bool = False """ Whether the feature is enabled for this company. """