""" Options: Date: 2024-11-21 11:41:02 Version: 8.23 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://api.bokamera.se #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: UpdateSystemSetting.* #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 class ICompany: company_id: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class LanguageResponse: id: Optional[str] = None name: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SystemSettingsResponse: # @ApiMember(Description="The country options to choose from") language_options: Optional[List[LanguageResponse]] = None """ The country options to choose from """ # @ApiMember(DataType="bool", Description="If the booking is active or not") active: bool = False """ If the booking is active or not """ # @ApiMember(DataType="string", Description="If the booking is not active, what message to show to the customers") inactive_message: Optional[str] = None """ If the booking is not active, what message to show to the customers """ # @ApiMember(DataType="bool", Description="If the company should be visible in search results on hompage") searchable: bool = False """ If the company should be visible in search results on hompage """ # @ApiMember(DataType="string", Description="If you have a google analytics account and want to track your customers behaviors.") ga_tracking_id: Optional[str] = None """ If you have a google analytics account and want to track your customers behaviors. """ # @ApiMember(DataType="string", Description="If you have a google Ads Conversion Id account and want to track your customers behaviors.") google_ads_conversion_id: Optional[str] = None """ If you have a google Ads Conversion Id account and want to track your customers behaviors. """ # @ApiMember(DataType="string", Description="If you have a LinkedIn account and want to track your customers behaviors.") linkedin_tag_id: Optional[str] = None """ If you have a LinkedIn account and want to track your customers behaviors. """ # @ApiMember(DataType="string", Description="If you have a Google Ads Conversion Label and want to track your customers behaviors.") google_ads_conversion_label: Optional[str] = None """ If you have a Google Ads Conversion Label and want to track your customers behaviors. """ # @ApiMember(DataType="string", Description="If you have a google tag manager account and want to track your customers behaviors.") gtm_tracking_id: Optional[str] = None """ If you have a google tag manager account and want to track your customers behaviors. """ # @ApiMember(DataType="string", Description="If you have a facebook account and want to track your customers behaviors.") facebook_pixel_id: Optional[str] = None """ If you have a facebook account and want to track your customers behaviors. """ # @ApiMember(DataType="bool", Description="If the company should be visible on the marketplace") show_on_marketplace: bool = False """ If the company should be visible on the marketplace """ # @ApiMember(DataType="bool", Description="If you want your customers to be albe to change language on your homepage") multi_language: bool = False """ If you want your customers to be albe to change language on your homepage """ # @ApiMember(DataType="bool", Description="If you want your own written text on your homepage to be translated using google analytics when a user changes language") enable_a_p_i_translation: bool = False """ If you want your own written text on your homepage to be translated using google analytics when a user changes language """ # @ApiMember(DataType="string", Description="What is the standard language your homepage information is written in. Select from the different countries, ie. SE,NO,EN") default_language: Optional[str] = None """ What is the standard language your homepage information is written in. Select from the different countries, ie. SE,NO,EN """ # @ApiMember(Description="If you want to allow to send customer information in the tracking events to the external providers. Note you as a company are responsible for informing your customers and handling the data in terms of GDPR. ") send_customer_information_to_external_providers: bool = False """ If you want to allow to send customer information in the tracking events to the external providers. Note you as a company are responsible for informing your customers and handling the data in terms of GDPR. """ # @Route("/settings/system", "PUT") # @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) # @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) # @ValidateRequest(Validator="IsAuthenticated") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class UpdateSystemSetting(IReturn[SystemSettingsResponse], ICompany): # @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") company_id: Optional[str] = None """ The company id, if empty will use the company id for the user you are logged in with. """ # @ApiMember(DataType="bool", Description="If the booking is active or not") active: Optional[bool] = None """ If the booking is active or not """ # @ApiMember(DataType="string", Description="If the booking is not active, what message to show to the customers") inactive_message: Optional[str] = None """ If the booking is not active, what message to show to the customers """ # @ApiMember(DataType="bool", Description="If the company should be visible in search results on hompage") searchable: Optional[bool] = None """ If the company should be visible in search results on hompage """ # @ApiMember(DataType="string", Description="If you have a google analytics account and want to track your customers behaviors.") ga_tracking_id: Optional[str] = None """ If you have a google analytics account and want to track your customers behaviors. """ # @ApiMember(DataType="string", Description="If you have a google Ads Conversion Id account and want to track your customers behaviors.") google_ads_conversion_id: Optional[str] = None """ If you have a google Ads Conversion Id account and want to track your customers behaviors. """ # @ApiMember(DataType="string", Description="If you have a LinkedIn account and want to track your customers behaviors.") linkedin_tag_id: Optional[str] = None """ If you have a LinkedIn account and want to track your customers behaviors. """ # @ApiMember(DataType="string", Description="If you have a Google Ads Conversion Label and want to track your customers behaviors.") google_ads_conversion_label: Optional[str] = None """ If you have a Google Ads Conversion Label and want to track your customers behaviors. """ # @ApiMember(DataType="string", Description="If you have a google tag manager account and want to track your customers behaviors.") gtm_tracking_id: Optional[str] = None """ If you have a google tag manager account and want to track your customers behaviors. """ # @ApiMember(DataType="string", Description="If you have a facebook account and want to track your customers behaviors.") facebook_pixel_id: Optional[str] = None """ If you have a facebook account and want to track your customers behaviors. """ # @ApiMember(DataType="bool", Description="If the company should be visible on the marketplace") show_on_marketplace: Optional[bool] = None """ If the company should be visible on the marketplace """ # @ApiMember(DataType="bool", Description="If you want your customers to be albe to change language on your homepage") multi_language: Optional[bool] = None """ If you want your customers to be albe to change language on your homepage """ # @ApiMember(DataType="bool", Description="If you want your own written text on your homepage to be translated using google analytics when a user changes language") enable_a_p_i_translation: Optional[bool] = None """ If you want your own written text on your homepage to be translated using google analytics when a user changes language """ # @ApiMember(DataType="string", Description="What is the standard language your homepage information is written in. Select from the different countries, ie. SE,NO,EN") default_language: Optional[str] = None """ What is the standard language your homepage information is written in. Select from the different countries, ie. SE,NO,EN """ # @ApiMember(Description="If you want to allow to send customer information in the tracking events to the external providers. Note you as a company are responsible for informing your customers and handling the data in terms of GDPR. ") send_customer_information_to_external_providers: Optional[bool] = None """ If you want to allow to send customer information in the tracking events to the external providers. Note you as a company are responsible for informing your customers and handling the data in terms of GDPR. """