/* Options: Date: 2024-11-21 11:58:49 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: UpdateCompany.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using System.IO; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; using BokaMera.CodeLock.Model.Api; namespace BokaMera.API.ServiceModel.Dtos { public partial class CompanyBookingSettings { public virtual bool EnableMobileApp { get; set; } public virtual string BookingReceiptMessage { get; set; } public virtual bool ShowFreeTimesLeft { get; set; } public virtual bool EnableShowBookedTimes { get; set; } public virtual string BookingAgreement { get; set; } /// ///The settings for how to display week number. 1 = ShowWeekNumberFromDate, 2 = ShowWeekNumberToDate, 3 = ShowWeekNumberFromToDate, 4 = DontShowWeekNumber /// [ApiMember(DataType="int", Description="The settings for how to display week number. 1 = ShowWeekNumberFromDate, 2 = ShowWeekNumberToDate, 3 = ShowWeekNumberFromToDate, 4 = DontShowWeekNumber ")] public virtual int WeekNumberSetting { get; set; } public virtual bool ShowBookedTimes { get; set; } /// ///The payment provider id. 1 = Payson Checkout 1.0, 2= Payson Checkout 2.0 ... To get the full payment provider for the company call GET /payment/settings /// [ApiMember(Description="The payment provider id. 1 = Payson Checkout 1.0, 2= Payson Checkout 2.0 ... To get the full payment provider for the company call GET /payment/settings")] public virtual int PaymentProviderId { get; set; } /// ///If it's only allowed for existing customers to book /// [ApiMember(DataType="boolean", Description="If it's only allowed for existing customers to book")] public virtual bool BookOnlyOnExistingCustomers { get; set; } /// ///If payment is enabled /// [ApiMember(DataType="boolean", Description="If payment is enabled")] public virtual bool PaymentEnabled { get; set; } } public partial class CompanyQueryResponse { public CompanyQueryResponse() { Reviews = new List{}; CustomerCustomFields = new List{}; } public virtual Guid Id { get; set; } public virtual string Name { get; set; } /// ///The organisation number will only be visible if your owner to the company /// [ApiMember(DataType="string", Description="The organisation number will only be visible if your owner to the company")] public virtual string OrganisationNumber { get; set; } /// ///What type of company. If it's used for personal use or as a company. /// [ApiMember(DataType="int", Description="What type of company. If it's used for personal use or as a company.")] public virtual int? TypeId { get; set; } public virtual string Details { get; set; } public virtual int CategoryId { get; set; } public virtual string Category { get; set; } public virtual Uri LogoType { get; set; } public virtual Uri CoverImage { get; set; } public virtual string Street1 { get; set; } public virtual string Street2 { get; set; } public virtual string ZipCode { get; set; } public virtual string City { get; set; } public virtual string CountryId { get; set; } public virtual string Longitude { get; set; } public virtual string Latitude { get; set; } public virtual double? Distance { get; set; } public virtual string Phone { get; set; } public virtual string Email { get; set; } public virtual string Homepage { get; set; } public virtual string SitePath { get; set; } public virtual bool Active { get; set; } public virtual CodeLockSystemType? CodeLockSystem { get; set; } public virtual bool IsFreeAccount { get; set; } /// ///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 updated, note it will only be shown if your logged in as admin for the company.")] public virtual DateTime? Updated { get; set; } /// ///Will show when the company was created, 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.")] public virtual DateTime? Created { get; set; } public virtual int StatusId { get; set; } /// ///If the company is marked as favourite for the logged in user /// [ApiMember(DataType="boolean", Description="If the company is marked as favourite for the logged in user")] public virtual bool IsFavorite { get; set; } public virtual string BookingAgreements { get; set; } public virtual CompanyBookingSettings BookingSettings { get; set; } public virtual CompanySystemSettings SystemSettings { get; set; } public virtual CompanyWidgetSettings WidgetSettings { get; set; } public virtual HomepageSettingsResponse HomepageSettings { get; set; } public virtual CompanyRatingSummary RatingSummary { get; set; } public virtual List Reviews { get; set; } public virtual List CustomerCustomFields { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } public partial class CompanyRatingSummary { /// ///The average rating score /// [ApiMember(Description="The average rating score")] public virtual double AverageScore { get; set; } /// ///The number of ratings of score 1 /// [ApiMember(Description="The number of ratings of score 1")] public virtual int RatingScore1Count { get; set; } /// ///The number of ratings of score 2 /// [ApiMember(Description="The number of ratings of score 2")] public virtual int RatingScore2Count { get; set; } /// ///The number of ratings of score 3 /// [ApiMember(Description="The number of ratings of score 3")] public virtual int RatingScore3Count { get; set; } /// ///The number of ratings of score 4 /// [ApiMember(Description="The number of ratings of score 4")] public virtual int RaingScore4Count { get; set; } /// ///The number of ratings of score 5 /// [ApiMember(Description="The number of ratings of score 5")] public virtual int RatingScore5Count { get; set; } /// ///The number of ratings /// [ApiMember(Description="The number of ratings")] public virtual int Count { get; set; } } public partial class CompanySystemSettings { /// ///If the booking is active or not /// [ApiMember(DataType="bool", Description="If the booking is active or not")] public virtual bool Active { get; set; } /// ///If the booking is not active, what message to show to the customers /// [ApiMember(DataType="string", Description="If the booking is not active, what message to show to the customers")] public virtual string InactiveMessage { get; set; } /// ///If the company should be visible in search results on hompage /// [ApiMember(DataType="bool", Description="If the company should be visible in search results on hompage")] public virtual bool Searchable { get; set; } /// ///If you have a google analytics account and want to track your customers behaviors. /// [ApiMember(DataType="string", Description="If you have a google analytics account and want to track your customers behaviors.")] public virtual string GATrackingId { get; set; } /// ///If you have a google Ads Conversion Id 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.")] public virtual string GoogleAdsConversionId { get; set; } /// ///If you have a LinkedIn 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.")] public virtual string LinkedinTagId { get; set; } /// ///If you have a Google Ads Conversion Label 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.")] public virtual string GoogleAdsConversionLabel { get; set; } /// ///If you have a google tag manager account 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.")] public virtual string GTMTrackingId { get; set; } /// ///If you have a facebook 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.")] public virtual string FacebookPixelId { get; set; } /// ///If you want your customers to be albe to change language on your homepage /// [ApiMember(DataType="bool", Description="If you want your customers to be albe to change language on your homepage")] public virtual bool MultiLanguage { get; set; } /// ///If the company should be visible on the marketplace /// [ApiMember(DataType="bool", Description="If the company should be visible on the marketplace")] public virtual bool ShowOnMarketplace { get; set; } /// ///If you want your own written text on your homepage to be translated using google analytics when a user changes language /// [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")] public virtual bool EnableAPITranslation { get; set; } /// ///What is the standard language your homepage information is written in. Select from the different countries, ie. SE,NO,EN /// [ApiMember(DataType="string", Description="What is the standard language your homepage information is written in. Select from the different countries, ie. SE,NO,EN")] public virtual string DefaultLanguage { get; set; } /// ///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. /// [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. ")] public virtual bool SendCustomerInformationToExternalProviders { get; set; } } public partial class CompanyWidgetSettings { /// ///The service layouts id. /// [ApiMember(Description="The service layouts id.")] public virtual int ServiceLayoutId { get; set; } /// ///The time layouts id. /// [ApiMember(Description="The time layouts id.")] public virtual int TimeLayoutId { get; set; } /// ///The booking layouts id. /// [ApiMember(Description="The booking layouts id.")] public virtual int BookingLayoutId { get; set; } /// ///The primary color of the booking widget. /// [ApiMember(Description="The primary color of the booking widget.")] public virtual string PrimaryColor { get; set; } /// ///If you should show the service image in the booking widget. /// [ApiMember(Description="If you should show the service image in the booking widget.")] public virtual bool ShowServiceImage { get; set; } /// ///If you should show the rebate code field in the booking widget. /// [ApiMember(Description="If you should show the rebate code field in the booking widget.")] public virtual bool ShowRebateCodeField { get; set; } /// ///If you should show the next available time in the booking widget. /// [ApiMember(Description="If you should show the next available time in the booking widget.")] public virtual bool ShowNextAvailableTime { get; set; } /// ///If you should show the end time in the booking widget. /// [ApiMember(Description="If you should show the end time in the booking widget.")] public virtual bool ShowEndTime { get; set; } /// ///What text to show on booked time slots. Default text is Booked /// [ApiMember(Description="What text to show on booked time slots. Default text is Booked")] public virtual string BookedTimeSlotText { get; set; } /// ///If the widget should be displayed in dark theme /// [ApiMember(Description="If the widget should be displayed in dark theme")] public virtual bool DarkTheme { get; set; } /// ///If you should show the subscribe to newsletter checkbox in the booking widget. /// [ApiMember(Description="If you should show the subscribe to newsletter checkbox in the booking widget.")] public virtual bool ShowSubscribeToNewsletter { get; set; } } public partial class CustomFieldConfigData { public CustomFieldConfigData() { Values = new List{}; } /// ///Custom field id /// [ApiMember(Description="Custom field id")] public virtual int Id { get; set; } /// ///Configuration name. Example: 'Number of persons'. /// [ApiMember(Description="Configuration name. Example: 'Number of persons'.")] public virtual string Name { get; set; } /// ///Custom field description. Example: 'For how many persons is this booking?' /// [ApiMember(Description="Custom field description. Example: 'For how many persons is this booking?'")] public virtual string Description { get; set; } /// ///Field width. Example: 20 for 20px /// [ApiMember(Description="Field width. Example: 20 for 20px")] public virtual int? Width { get; set; } /// ///Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' /// [ApiMember(Description="Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'")] public virtual string DataType { get; set; } /// ///Default value of the field. Example: '3' /// [ApiMember(Description="Default value of the field. Example: '3'")] public virtual string DefaultValue { get; set; } /// ///Determines if the field is required to have a value or not /// [ApiMember(Description="Determines if the field is required to have a value or not")] public virtual bool IsMandatory { get; set; } /// ///Error message shown to the user if the field data is required but not entered /// [ApiMember(Description="Error message shown to the user if the field data is required but not entered")] public virtual string MandatoryErrorMessage { get; set; } /// ///Max lenght of the field /// [ApiMember(Description="Max lenght of the field")] public virtual int MaxLength { get; set; } /// ///If the field should have multiple lines /// [ApiMember(Description="If the field should have multiple lines")] public virtual bool MultipleLineText { get; set; } /// ///Regular expression used for validation of the field /// [ApiMember(Description="Regular expression used for validation of the field")] public virtual string RegEx { get; set; } /// ///Error message shown if the regular expression validation failed /// [ApiMember(Description="Error message shown if the regular expression validation failed")] public virtual string RegExErrorMessage { get; set; } /// ///The values to select from if Datatype is DropDown for this custom field /// [ApiMember(Description="The values to select from if Datatype is DropDown for this custom field")] public virtual List Values { get; set; } } public partial class CustomFieldValueResponse { public virtual string Value { get; set; } } public partial class HomepageSettingsResponse { /// ///The text for homepage heading /// [ApiMember(Description="The text for homepage heading")] public virtual string HomepageHeading { get; set; } /// ///The text for homepage startpage heading /// [ApiMember(Description="The text for homepage startpage heading")] public virtual string WelcomePageHeading { get; set; } /// ///The text for homepage startpage body /// [ApiMember(Description="The text for homepage startpage body")] public virtual string WelcomePageBody { get; set; } /// ///The text for homepage about us page heading /// [ApiMember(Description="The text for homepage about us page heading")] public virtual string AboutUsPageHeading { get; set; } /// ///The text for homepage about us page body /// [ApiMember(Description="The text for homepage about us page body")] public virtual string AboutUsPageBody { get; set; } /// ///The startpage image url /// [ApiMember(Description="The startpage image url")] public virtual Uri ImageUrl { get; set; } /// ///The cover image url /// [ApiMember(Description="The cover image url")] public virtual Uri CoverImage { get; set; } /// ///Show rating on the page /// [ApiMember(Description="Show rating on the page")] public virtual bool ShowRating { get; set; } /// ///The template for the homepage /// [ApiMember(Description="The template for the homepage")] public virtual int HomePageTemplateId { get; set; } /// ///The hero section style for the homepage /// [ApiMember(Description="The hero section style for the homepage")] public virtual int HeroSectionStyleId { get; set; } /// ///Enable the BokaMera Homepage /// [ApiMember(Description="Enable the BokaMera Homepage")] public virtual bool EnableHomepage { get; set; } } public partial class RatingReviewResponse { /// ///The title for the review /// [ApiMember(Description="The title for the review")] public virtual string Title { get; set; } /// ///The description for the review /// [ApiMember(Description="The description for the review")] public virtual string Description { get; set; } /// ///The rating score /// [ApiMember(Description="The rating score")] public virtual int RatingScore { get; set; } /// ///The review author /// [ApiMember(Description="The review author")] public virtual string Author { get; set; } /// ///The created date /// [ApiMember(Description="The created date")] public virtual DateTime Created { get; set; } /// ///The review answer from the company /// [ApiMember(Description="The review answer from the company")] public virtual string ReviewAnswer { get; set; } } [Route("/companies/{CompanyId}", "PUT")] [ValidateRequest("IsAuthenticated")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] public partial class UpdateCompany : IReturn, ICompany { /// ///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.", IsRequired=true, ParameterType="path")] public virtual Guid? CompanyId { get; set; } public virtual string Name { get; set; } public virtual string OrganisationNumber { get; set; } /// ///What type of company. If it's used for personal use or as a company. 1 = Company use, 2 = Personal use /// [ApiMember(DataType="int", Description="What type of company. If it's used for personal use or as a company. 1 = Company use, 2 = Personal use")] public virtual int? TypeId { get; set; } public virtual string OpeningHours { get; set; } public virtual string Details { get; set; } public virtual int? CategoryId { get; set; } public virtual Uri LogoType { get; set; } public virtual string Street1 { get; set; } public virtual string Street2 { get; set; } public virtual string ZipCode { get; set; } public virtual string City { get; set; } public virtual string CountryId { get; set; } public virtual string Longitude { get; set; } public virtual string Latitude { get; set; } public virtual string Phone { get; set; } public virtual string Email { get; set; } public virtual string Fax { get; set; } public virtual string Homepage { get; set; } public virtual string SitePath { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } } namespace BokaMera.CodeLock.Model.Api { public enum CodeLockSystemType { Sample, RcoM5, AxemaVaka, VanderbiltOmnis, ParakeyParakey, AmidoDax, TelkeyTelkey, TechSolutionsSiedle, Accessy, Zesec, Enabla, } }