BokaMera.API.Host

<back to all web services

CreateCompany

The following routes are available for this service:
POST/companies/Create new companyCreate your company information.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
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; }
        ///<summary>
        ///The settings for how to display week number. 1 = ShowWeekNumberFromDate, 2 = ShowWeekNumberToDate, 3 = ShowWeekNumberFromToDate, 4 = DontShowWeekNumber  
        ///</summary>
        [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; }
        ///<summary>
        ///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
        ///</summary>
        [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; }

        ///<summary>
        ///If it's only allowed for existing customers to book
        ///</summary>
        [ApiMember(DataType="boolean", Description="If it's only allowed for existing customers to book")]
        public virtual bool BookOnlyOnExistingCustomers { get; set; }

        ///<summary>
        ///If payment is enabled
        ///</summary>
        [ApiMember(DataType="boolean", Description="If payment is enabled")]
        public virtual bool PaymentEnabled { get; set; }
    }

    public partial class CompanyQueryResponse
    {
        public CompanyQueryResponse()
        {
            Reviews = new List<RatingReviewResponse>{};
            CustomerCustomFields = new List<CustomFieldConfigData>{};
        }

        public virtual Guid Id { get; set; }
        public virtual string Name { get; set; }
        ///<summary>
        ///The organisation number will only be visible if your owner to the company
        ///</summary>
        [ApiMember(DataType="string", Description="The organisation number will only be visible if your owner to the company")]
        public virtual string OrganisationNumber { get; set; }

        ///<summary>
        ///What type of company. If it's used for personal use or as a company.
        ///</summary>
        [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; }
        ///<summary>
        ///Will show when the company was updated, note it will only be shown if your logged in as admin for the company.
        ///</summary>
        [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; }

        ///<summary>
        ///Will show when the company was created, note it will only be shown if your logged in as admin for the company.
        ///</summary>
        [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; }
        ///<summary>
        ///If the company is marked as favourite for the logged in user
        ///</summary>
        [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<RatingReviewResponse> Reviews { get; set; }
        public virtual List<CustomFieldConfigData> CustomerCustomFields { get; set; }
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

    public partial class CompanyRatingSummary
    {
        ///<summary>
        ///The average rating score
        ///</summary>
        [ApiMember(Description="The average rating score")]
        public virtual double AverageScore { get; set; }

        ///<summary>
        ///The number of ratings of score 1
        ///</summary>
        [ApiMember(Description="The number of ratings of score 1")]
        public virtual int RatingScore1Count { get; set; }

        ///<summary>
        ///The number of ratings of score 2
        ///</summary>
        [ApiMember(Description="The number of ratings of score 2")]
        public virtual int RatingScore2Count { get; set; }

        ///<summary>
        ///The number of ratings of score 3
        ///</summary>
        [ApiMember(Description="The number of ratings of score 3")]
        public virtual int RatingScore3Count { get; set; }

        ///<summary>
        ///The number of ratings of score 4
        ///</summary>
        [ApiMember(Description="The number of ratings of score 4")]
        public virtual int RaingScore4Count { get; set; }

        ///<summary>
        ///The number of ratings of score 5
        ///</summary>
        [ApiMember(Description="The number of ratings of score 5")]
        public virtual int RatingScore5Count { get; set; }

        ///<summary>
        ///The number of ratings
        ///</summary>
        [ApiMember(Description="The number of ratings")]
        public virtual int Count { get; set; }
    }

    public partial class CompanySystemSettings
    {
        ///<summary>
        ///If the booking is active or not
        ///</summary>
        [ApiMember(DataType="bool", Description="If the booking is active or not")]
        public virtual bool Active { get; set; }

        ///<summary>
        ///If the booking is not active, what message to show to the customers
        ///</summary>
        [ApiMember(DataType="string", Description="If the booking is not active, what message to show to the customers")]
        public virtual string InactiveMessage { get; set; }

        ///<summary>
        ///If the company should be visible in search results on hompage
        ///</summary>
        [ApiMember(DataType="bool", Description="If the company should be visible in search results on hompage")]
        public virtual bool Searchable { get; set; }

        ///<summary>
        ///If you have a google analytics account and want to track your customers behaviors.
        ///</summary>
        [ApiMember(DataType="string", Description="If you have a google analytics account and want to track your customers behaviors.")]
        public virtual string GATrackingId { get; set; }

        ///<summary>
        ///If you have a google Ads Conversion Id account and want to track your customers behaviors.
        ///</summary>
        [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; }

        ///<summary>
        ///If you have a LinkedIn account and want to track your customers behaviors.
        ///</summary>
        [ApiMember(DataType="string", Description="If you have a LinkedIn account and want to track your customers behaviors.")]
        public virtual string LinkedinTagId { get; set; }

        ///<summary>
        ///If you have a Google Ads Conversion Label and want to track your customers behaviors.
        ///</summary>
        [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; }

        ///<summary>
        ///If you have a google tag manager account and want to track your customers behaviors.
        ///</summary>
        [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; }

        ///<summary>
        ///If you have a facebook account and want to track your customers behaviors.
        ///</summary>
        [ApiMember(DataType="string", Description="If you have a facebook account and want to track your customers behaviors.")]
        public virtual string FacebookPixelId { get; set; }

        ///<summary>
        ///If you want your customers to be albe to change language on your homepage
        ///</summary>
        [ApiMember(DataType="bool", Description="If you want your customers to be albe to change language on your homepage")]
        public virtual bool MultiLanguage { get; set; }

        ///<summary>
        ///If the company should be visible on the marketplace
        ///</summary>
        [ApiMember(DataType="bool", Description="If the company should be visible on the marketplace")]
        public virtual bool ShowOnMarketplace { get; set; }

        ///<summary>
        ///If you want your own written text on your homepage to be translated using google analytics when a user changes language
        ///</summary>
        [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; }

        ///<summary>
        ///What is the standard language your homepage information is written in. Select from the different countries, ie. SE,NO,EN
        ///</summary>
        [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; }

        ///<summary>
        ///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. 
        ///</summary>
        [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
    {
        ///<summary>
        ///The service layouts id.
        ///</summary>
        [ApiMember(Description="The service layouts id.")]
        public virtual int ServiceLayoutId { get; set; }

        ///<summary>
        ///The time layouts id.
        ///</summary>
        [ApiMember(Description="The time layouts id.")]
        public virtual int TimeLayoutId { get; set; }

        ///<summary>
        ///The booking layouts id.
        ///</summary>
        [ApiMember(Description="The booking layouts id.")]
        public virtual int BookingLayoutId { get; set; }

        ///<summary>
        ///The primary color of the booking widget.
        ///</summary>
        [ApiMember(Description="The primary color of the booking widget.")]
        public virtual string PrimaryColor { get; set; }

        ///<summary>
        ///If you should show the service image in the booking widget.
        ///</summary>
        [ApiMember(Description="If you should show the service image in the booking widget.")]
        public virtual bool ShowServiceImage { get; set; }

        ///<summary>
        ///If you should show the rebate code field in the booking widget.
        ///</summary>
        [ApiMember(Description="If you should show the rebate code field in the booking widget.")]
        public virtual bool ShowRebateCodeField { get; set; }

        ///<summary>
        ///If you should show the next available time in the booking widget.
        ///</summary>
        [ApiMember(Description="If you should show the next available time in the booking widget.")]
        public virtual bool ShowNextAvailableTime { get; set; }

        ///<summary>
        ///If you should show the end time in the booking widget.
        ///</summary>
        [ApiMember(Description="If you should show the end time in the booking widget.")]
        public virtual bool ShowEndTime { get; set; }

        ///<summary>
        ///What text to show on booked time slots. Default text is Booked
        ///</summary>
        [ApiMember(Description="What text to show on booked time slots. Default text is Booked")]
        public virtual string BookedTimeSlotText { get; set; }

        ///<summary>
        ///If the widget should be displayed in dark theme
        ///</summary>
        [ApiMember(Description="If the widget should be displayed in dark theme")]
        public virtual bool DarkTheme { get; set; }

        ///<summary>
        ///If you should show the subscribe to newsletter checkbox in the booking widget.
        ///</summary>
        [ApiMember(Description="If you should show the subscribe to newsletter checkbox in the booking widget.")]
        public virtual bool ShowSubscribeToNewsletter { get; set; }
    }

    [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
    public partial class CreateCompany
    {
        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="", IsRequired=true)]
        public virtual string Name { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="", IsRequired=true)]
        public virtual string OrganisationNumber { get; set; }

        ///<summary>
        ///What type of company. If it's used for personal use or as a company. 1 = Company use, 2 = Personal use
        ///</summary>
        [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", IsRequired=true)]
        public virtual int TypeId { get; set; }

        ///<summary>
        ///What company owner.  1 = BokaMera (default)
        ///</summary>
        [ApiMember(DataType="int", Description="What company owner.  1 = BokaMera (default)", IsRequired=true)]
        public virtual int CompanyOwnerId { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="", IsRequired=true)]
        public virtual string OpeningHours { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="")]
        public virtual string Details { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="", IsRequired=true)]
        public virtual int CategoryId { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="uri", Description="", IsRequired=true)]
        public virtual Uri LogoType { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="")]
        public virtual string Street1 { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="")]
        public virtual string Street2 { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="")]
        public virtual string ZipCode { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="")]
        public virtual string City { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="")]
        public virtual string CountryId { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="", IsRequired=true)]
        public virtual string Longitude { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="")]
        public virtual string Latitude { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="")]
        public virtual string Phone { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="", IsRequired=true)]
        public virtual string Email { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="")]
        public virtual string Fax { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="")]
        public virtual string Homepage { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="", IsRequired=true)]
        public virtual string SitePath { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(Description="", IsRequired=true)]
        public virtual CreateCompanyCompanyUser CompanyUser { get; set; }

        public virtual CreateCompanyBillingInformation BillingInformation { get; set; }
        ///<summary>
        ///Id of the license type. If none is set it's free license
        ///</summary>
        [ApiMember(Description="Id of the license type. If none is set it's free license", IsRequired=true)]
        public virtual int LicenseTypeId { get; set; }

        ///<summary>
        ///
        ///</summary>
        [ApiMember(DataType="string", Description="")]
        public virtual string DomainName { get; set; }
    }

    public partial class CreateCompanyBillingInformation
    {
        ///<summary>
        ///The prefered billing method.
        ///</summary>
        [ApiMember(Description="The prefered billing method.", IsRequired=true)]
        public virtual int BillingMethodId { get; set; }

        ///<summary>
        ///The name that should be printed on the billing information, normally this would be your company name.
        ///</summary>
        [ApiMember(Description="The name that should be printed on the billing information, normally this would be your company name.")]
        public virtual string Name { get; set; }

        ///<summary>
        ///If you want to add the attention to the billing address.
        ///</summary>
        [ApiMember(Description="If you want to add the attention to the billing address.")]
        public virtual string Attention { get; set; }

        ///<summary>
        ///The street for the billing adress. This is required when having postal invoice as billing method.
        ///</summary>
        [ApiMember(Description="The street for the billing adress. This is required when having postal invoice as billing method.")]
        public virtual string Street1 { get; set; }

        ///<summary>
        ///The street for the billing adress.
        ///</summary>
        [ApiMember(Description="The street for the billing adress.")]
        public virtual string Street2 { get; set; }

        ///<summary>
        ///The zip code (postal code) for the billing adress. This is required when having postal invoice as billing method.
        ///</summary>
        [ApiMember(Description="The zip code (postal code) for the billing adress. This is required when having postal invoice as billing method.")]
        public virtual string ZipCode { get; set; }

        ///<summary>
        ///The city for the billing adress. This is required when having postal invoice as billing method.
        ///</summary>
        [ApiMember(Description="The city for the billing adress. This is required when having postal invoice as billing method.")]
        public virtual string City { get; set; }

        ///<summary>
        ///The country for the billing adress. This is required when having postal invoice as billing method.
        ///</summary>
        [ApiMember(Description="The country for the billing adress. This is required when having postal invoice as billing method.")]
        public virtual string CountryId { get; set; }

        ///<summary>
        ///The billing email. This is required when having email invoice as billing method.
        ///</summary>
        [ApiMember(Description="The billing email. This is required when having email invoice as billing method.")]
        public virtual string Email { get; set; }

        ///<summary>
        ///The billing payment terms in days. This is default 15 days.
        ///</summary>
        [ApiMember(Description="The billing payment terms in days. This is default 15 days.")]
        public virtual int? PaymentTermsDays { get; set; }

        ///<summary>
        ///The company vat registration number.
        ///</summary>
        [ApiMember(Description="The company vat registration number.")]
        public virtual string VatRegistrationNumber { get; set; }
    }

    public partial class CreateCompanyCompanyUser
    {
        [ApiMember(IsRequired=true)]
        public virtual string Firstname { get; set; }

        [ApiMember(IsRequired=true)]
        public virtual string Lastname { get; set; }

        [ApiMember(IsRequired=true)]
        public virtual string Phone { get; set; }

        [ApiMember(IsRequired=true)]
        public virtual string Email { get; set; }

        [ApiMember]
        public virtual int? WorkerId { get; set; }
    }

    public partial class CustomFieldConfigData
    {
        public CustomFieldConfigData()
        {
            Values = new List<CustomFieldValueResponse>{};
        }

        ///<summary>
        ///Custom field id
        ///</summary>
        [ApiMember(Description="Custom field id")]
        public virtual int Id { get; set; }

        ///<summary>
        ///Configuration name. Example: 'Number of persons'.
        ///</summary>
        [ApiMember(Description="Configuration name. Example: 'Number of persons'.")]
        public virtual string Name { get; set; }

        ///<summary>
        ///Custom field description. Example: 'For how many persons is this booking?'
        ///</summary>
        [ApiMember(Description="Custom field description. Example: 'For how many persons is this booking?'")]
        public virtual string Description { get; set; }

        ///<summary>
        ///Field width. Example: 20 for 20px
        ///</summary>
        [ApiMember(Description="Field width. Example: 20 for 20px")]
        public virtual int? Width { get; set; }

        ///<summary>
        ///Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'
        ///</summary>
        [ApiMember(Description="Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'")]
        public virtual string DataType { get; set; }

        ///<summary>
        ///Default value of the field. Example: '3'
        ///</summary>
        [ApiMember(Description="Default value of the field. Example: '3'")]
        public virtual string DefaultValue { get; set; }

        ///<summary>
        ///Determines if the field is required to have a value or not
        ///</summary>
        [ApiMember(Description="Determines if the field is required to have a value or not")]
        public virtual bool IsMandatory { get; set; }

        ///<summary>
        ///Error message shown to the user if the field data is required but not entered
        ///</summary>
        [ApiMember(Description="Error message shown to the user if the field data is required but not entered")]
        public virtual string MandatoryErrorMessage { get; set; }

        ///<summary>
        ///Max lenght of the field
        ///</summary>
        [ApiMember(Description="Max lenght of the field")]
        public virtual int MaxLength { get; set; }

        ///<summary>
        ///If the field should have multiple lines
        ///</summary>
        [ApiMember(Description="If the field should have multiple lines")]
        public virtual bool MultipleLineText { get; set; }

        ///<summary>
        ///Regular expression used for validation of the field
        ///</summary>
        [ApiMember(Description="Regular expression used for validation of the field")]
        public virtual string RegEx { get; set; }

        ///<summary>
        ///Error message shown if the regular expression validation failed
        ///</summary>
        [ApiMember(Description="Error message shown if the regular expression validation failed")]
        public virtual string RegExErrorMessage { get; set; }

        ///<summary>
        ///The values to select from if Datatype is DropDown for this custom field
        ///</summary>
        [ApiMember(Description="The values to select from if Datatype is DropDown for this custom field")]
        public virtual List<CustomFieldValueResponse> Values { get; set; }
    }

    public partial class CustomFieldValueResponse
    {
        public virtual string Value { get; set; }
    }

    public partial class HomepageSettingsResponse
    {
        ///<summary>
        ///The text for homepage heading
        ///</summary>
        [ApiMember(Description="The text for homepage heading")]
        public virtual string HomepageHeading { get; set; }

        ///<summary>
        ///The text for homepage startpage heading
        ///</summary>
        [ApiMember(Description="The text for homepage startpage heading")]
        public virtual string WelcomePageHeading { get; set; }

        ///<summary>
        ///The text for homepage startpage body
        ///</summary>
        [ApiMember(Description="The text for homepage startpage body")]
        public virtual string WelcomePageBody { get; set; }

        ///<summary>
        ///The text for homepage about us page heading
        ///</summary>
        [ApiMember(Description="The text for homepage about us page heading")]
        public virtual string AboutUsPageHeading { get; set; }

        ///<summary>
        ///The text for homepage about us page body
        ///</summary>
        [ApiMember(Description="The text for homepage about us page body")]
        public virtual string AboutUsPageBody { get; set; }

        ///<summary>
        ///The startpage image url
        ///</summary>
        [ApiMember(Description="The startpage image url")]
        public virtual Uri ImageUrl { get; set; }

        ///<summary>
        ///The cover image url
        ///</summary>
        [ApiMember(Description="The cover image url")]
        public virtual Uri CoverImage { get; set; }

        ///<summary>
        ///Show rating on the page
        ///</summary>
        [ApiMember(Description="Show rating on the page")]
        public virtual bool ShowRating { get; set; }

        ///<summary>
        ///The template for the homepage
        ///</summary>
        [ApiMember(Description="The template for the homepage")]
        public virtual int HomePageTemplateId { get; set; }

        ///<summary>
        ///The hero section style for the homepage
        ///</summary>
        [ApiMember(Description="The hero section style for the homepage")]
        public virtual int HeroSectionStyleId { get; set; }

        ///<summary>
        ///Enable the BokaMera Homepage
        ///</summary>
        [ApiMember(Description="Enable the BokaMera Homepage")]
        public virtual bool EnableHomepage { get; set; }
    }

    public partial class RatingReviewResponse
    {
        ///<summary>
        ///The title for the review
        ///</summary>
        [ApiMember(Description="The title for the review")]
        public virtual string Title { get; set; }

        ///<summary>
        ///The description for the review
        ///</summary>
        [ApiMember(Description="The description for the review")]
        public virtual string Description { get; set; }

        ///<summary>
        ///The rating score
        ///</summary>
        [ApiMember(Description="The rating score")]
        public virtual int RatingScore { get; set; }

        ///<summary>
        ///The review author
        ///</summary>
        [ApiMember(Description="The review author")]
        public virtual string Author { get; set; }

        ///<summary>
        ///The created date
        ///</summary>
        [ApiMember(Description="The created date")]
        public virtual DateTime Created { get; set; }

        ///<summary>
        ///The review answer from the company
        ///</summary>
        [ApiMember(Description="The review answer from the company")]
        public virtual string ReviewAnswer { get; set; }
    }

}

namespace BokaMera.CodeLock.Model.Api
{
    public enum CodeLockSystemType
    {
        Sample,
        RcoM5,
        AxemaVaka,
        VanderbiltOmnis,
        ParakeyParakey,
        AmidoDax,
        TelkeyTelkey,
        TechSolutionsSiedle,
        Accessy,
        Zesec,
        Enabla,
    }

}

C# CreateCompany DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /companies/ HTTP/1.1 
Host: api.bokamera.se 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CreateCompany xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
  <BillingInformation>
    <Attention>String</Attention>
    <BillingMethodId>0</BillingMethodId>
    <City>String</City>
    <CountryId>String</CountryId>
    <Email>String</Email>
    <Name>String</Name>
    <PaymentTermsDays>0</PaymentTermsDays>
    <Street1>String</Street1>
    <Street2>String</Street2>
    <VatRegistrationNumber>String</VatRegistrationNumber>
    <ZipCode>String</ZipCode>
  </BillingInformation>
  <CategoryId>0</CategoryId>
  <City>String</City>
  <CompanyOwnerId>0</CompanyOwnerId>
  <CompanyUser>
    <Email>String</Email>
    <Firstname>String</Firstname>
    <Lastname>String</Lastname>
    <Phone>String</Phone>
    <WorkerId>0</WorkerId>
  </CompanyUser>
  <CountryId>String</CountryId>
  <Details>String</Details>
  <DomainName>String</DomainName>
  <Email>String</Email>
  <Fax>String</Fax>
  <Homepage>String</Homepage>
  <Latitude>String</Latitude>
  <LicenseTypeId>0</LicenseTypeId>
  <LogoType i:nil="true" />
  <Longitude>String</Longitude>
  <Name>String</Name>
  <OpeningHours>String</OpeningHours>
  <OrganisationNumber>String</OrganisationNumber>
  <Phone>String</Phone>
  <SitePath>String</SitePath>
  <Street1>String</Street1>
  <Street2>String</Street2>
  <TypeId>0</TypeId>
  <ZipCode>String</ZipCode>
</CreateCompany>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CompanyQueryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
  <Active>false</Active>
  <BookingAgreements>String</BookingAgreements>
  <BookingSettings>
    <BookOnlyOnExistingCustomers>false</BookOnlyOnExistingCustomers>
    <BookingAgreement>String</BookingAgreement>
    <BookingReceiptMessage>String</BookingReceiptMessage>
    <EnableMobileApp>false</EnableMobileApp>
    <EnableShowBookedTimes>false</EnableShowBookedTimes>
    <PaymentEnabled>false</PaymentEnabled>
    <PaymentProviderId>0</PaymentProviderId>
    <ShowBookedTimes>false</ShowBookedTimes>
    <ShowFreeTimesLeft>false</ShowFreeTimesLeft>
    <WeekNumberSetting>0</WeekNumberSetting>
  </BookingSettings>
  <Category>String</Category>
  <CategoryId>0</CategoryId>
  <City>String</City>
  <CodeLockSystem>Sample</CodeLockSystem>
  <CountryId>String</CountryId>
  <CoverImage i:nil="true" />
  <Created>0001-01-01T00:00:00</Created>
  <CustomerCustomFields>
    <CustomFieldConfigData>
      <DataType>String</DataType>
      <DefaultValue>String</DefaultValue>
      <Description>String</Description>
      <Id>0</Id>
      <IsMandatory>false</IsMandatory>
      <MandatoryErrorMessage>String</MandatoryErrorMessage>
      <MaxLength>0</MaxLength>
      <MultipleLineText>false</MultipleLineText>
      <Name>String</Name>
      <RegEx>String</RegEx>
      <RegExErrorMessage>String</RegExErrorMessage>
      <Values>
        <CustomFieldValueResponse>
          <Value>String</Value>
        </CustomFieldValueResponse>
      </Values>
      <Width>0</Width>
    </CustomFieldConfigData>
  </CustomerCustomFields>
  <Details>String</Details>
  <Distance>0</Distance>
  <Email>String</Email>
  <Homepage>String</Homepage>
  <HomepageSettings>
    <AboutUsPageBody>String</AboutUsPageBody>
    <AboutUsPageHeading>String</AboutUsPageHeading>
    <CoverImage i:nil="true" />
    <EnableHomepage>false</EnableHomepage>
    <HeroSectionStyleId>0</HeroSectionStyleId>
    <HomePageTemplateId>0</HomePageTemplateId>
    <HomepageHeading>String</HomepageHeading>
    <ImageUrl i:nil="true" />
    <ShowRating>false</ShowRating>
    <WelcomePageBody>String</WelcomePageBody>
    <WelcomePageHeading>String</WelcomePageHeading>
  </HomepageSettings>
  <Id>00000000-0000-0000-0000-000000000000</Id>
  <IsFavorite>false</IsFavorite>
  <IsFreeAccount>false</IsFreeAccount>
  <Latitude>String</Latitude>
  <LogoType i:nil="true" />
  <Longitude>String</Longitude>
  <Name>String</Name>
  <OrganisationNumber>String</OrganisationNumber>
  <Phone>String</Phone>
  <RatingSummary>
    <AverageScore>0</AverageScore>
    <Count>0</Count>
    <RaingScore4Count>0</RaingScore4Count>
    <RatingScore1Count>0</RatingScore1Count>
    <RatingScore2Count>0</RatingScore2Count>
    <RatingScore3Count>0</RatingScore3Count>
    <RatingScore5Count>0</RatingScore5Count>
  </RatingSummary>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Reviews>
    <RatingReviewResponse>
      <Author>String</Author>
      <Created>0001-01-01T00:00:00</Created>
      <Description>String</Description>
      <RatingScore>0</RatingScore>
      <ReviewAnswer>String</ReviewAnswer>
      <Title>String</Title>
    </RatingReviewResponse>
  </Reviews>
  <SitePath>String</SitePath>
  <StatusId>0</StatusId>
  <Street1>String</Street1>
  <Street2>String</Street2>
  <SystemSettings>
    <Active>false</Active>
    <DefaultLanguage>String</DefaultLanguage>
    <EnableAPITranslation>false</EnableAPITranslation>
    <FacebookPixelId>String</FacebookPixelId>
    <GATrackingId>String</GATrackingId>
    <GTMTrackingId>String</GTMTrackingId>
    <GoogleAdsConversionId>String</GoogleAdsConversionId>
    <GoogleAdsConversionLabel>String</GoogleAdsConversionLabel>
    <InactiveMessage>String</InactiveMessage>
    <LinkedinTagId>String</LinkedinTagId>
    <MultiLanguage>false</MultiLanguage>
    <Searchable>false</Searchable>
    <SendCustomerInformationToExternalProviders>false</SendCustomerInformationToExternalProviders>
    <ShowOnMarketplace>false</ShowOnMarketplace>
  </SystemSettings>
  <TypeId>0</TypeId>
  <Updated>0001-01-01T00:00:00</Updated>
  <WidgetSettings>
    <BookedTimeSlotText>String</BookedTimeSlotText>
    <BookingLayoutId>0</BookingLayoutId>
    <DarkTheme>false</DarkTheme>
    <PrimaryColor>String</PrimaryColor>
    <ServiceLayoutId>0</ServiceLayoutId>
    <ShowEndTime>false</ShowEndTime>
    <ShowNextAvailableTime>false</ShowNextAvailableTime>
    <ShowRebateCodeField>false</ShowRebateCodeField>
    <ShowServiceImage>false</ShowServiceImage>
    <ShowSubscribeToNewsletter>false</ShowSubscribeToNewsletter>
    <TimeLayoutId>0</TimeLayoutId>
  </WidgetSettings>
  <ZipCode>String</ZipCode>
</CompanyQueryResponse>