""" Options: Date: 2024-06-18 09:26:35 Version: 8.23 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://testapi.bokamera.se #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: DeleteFavorite.* #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 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class CompanyQueryResponse: id: Optional[str] = None name: Optional[str] = None # @ApiMember(DataType="string", Description="The organisation number will only be visible if your owner to the company") organisation_number: Optional[str] = None """ The organisation number will only be visible if your owner to the company """ # @ApiMember(DataType="int", Description="What type of company. If it's used for personal use or as a company.") type_id: Optional[int] = None """ What type of company. If it's used for personal use or as a company. """ details: Optional[str] = None category_id: int = 0 category: Optional[str] = None logo_type: Optional[str] = None cover_image: Optional[str] = None street1: Optional[str] = None street2: Optional[str] = None zip_code: Optional[str] = None city: Optional[str] = None country_id: Optional[str] = None longitude: Optional[str] = None latitude: Optional[str] = None distance: Optional[float] = None phone: Optional[str] = None email: Optional[str] = None homepage: Optional[str] = None site_path: Optional[str] = None active: bool = False code_lock_system: Optional[CodeLockSystemType] = None is_free_account: bool = False # @ApiMember(DataType="datetime", Description="Will show when the company was updated, note it will only be shown if your logged in as admin for the company.") updated: Optional[datetime.datetime] = None """ Will show when the company was updated, note it will only be shown if your logged in as admin for the company. """ # @ApiMember(DataType="datetime", Description="Will show when the company was created, note it will only be shown if your logged in as admin for the company.") created: Optional[datetime.datetime] = None """ Will show when the company was created, note it will only be shown if your logged in as admin for the company. """ status_id: int = 0 # @ApiMember(DataType="boolean", Description="If the company is marked as favourite for the logged in user") is_favorite: bool = False """ If the company is marked as favourite for the logged in user """ booking_agreements: Optional[str] = None booking_settings: Optional[CompanyBookingSettings] = None system_settings: Optional[CompanySystemSettings] = None widget_settings: Optional[CompanyWidgetSettings] = None homepage_settings: Optional[HomepageSettingsResponse] = None rating_summary: Optional[CompanyRatingSummary] = None reviews: Optional[List[RatingReviewResponse]] = None customer_custom_fields: Optional[List[CustomFieldConfigData]] = None response_status: Optional[ResponseStatus] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class UserFavorites: company_id: Optional[str] = None company: Optional[CompanyQueryResponse] = None # @Route("/users/favorite", "DELETE") # @ValidateRequest(Validator="IsAuthenticated") # @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) # @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class DeleteFavorite(IReturn[UserFavorites]): # @ApiMember(Description="Id of the company", IsRequired=true, ParameterType="path") company_id: Optional[str] = None """ Id of the company """