' Options: 'Date: 2024-06-26 16:49:16 'Version: 8.23 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://testapi.bokamera.se ' '''GlobalNamespace: '''MakePartial: True '''MakeVirtual: True '''MakeDataContractsExtensible: 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 Imports System Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports System.Globalization Imports System.IO Imports BokaMera.API.ServiceModel.Interfaces Imports BokaMera.API.ServiceModel.Dtos Imports BokaMera.CodeLock.Model.Api Namespace Global Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class CompanyBookingSettings Public Overridable Property EnableMobileApp As Boolean Public Overridable Property BookingReceiptMessage As String Public Overridable Property ShowFreeTimesLeft As Boolean Public Overridable Property EnableShowBookedTimes As Boolean Public Overridable Property BookingAgreement As String ''' '''The settings for how to display week number. 1 = ShowWeekNumberFromDate, 2 = ShowWeekNumberToDate, 3 = ShowWeekNumberFromToDate, 4 = DontShowWeekNumber ''' Public Overridable Property WeekNumberSetting As Integer Public Overridable Property ShowBookedTimes As Boolean ''' '''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 Overridable Property PaymentProviderId As Integer ''' '''If it's only allowed for existing customers to book ''' Public Overridable Property BookOnlyOnExistingCustomers As Boolean ''' '''If payment is enabled ''' Public Overridable Property PaymentEnabled As Boolean End Class Public Partial Class CompanyQueryResponse Public Sub New() Reviews = New List(Of RatingReviewResponse) CustomerCustomFields = New List(Of CustomFieldConfigData) End Sub Public Overridable Property Id As Guid Public Overridable Property Name As String ''' '''The organisation number will only be visible if your owner to the company ''' Public Overridable Property OrganisationNumber As String ''' '''What type of company. If it's used for personal use or as a company. ''' Public Overridable Property TypeId As Nullable(Of Integer) Public Overridable Property Details As String Public Overridable Property CategoryId As Integer Public Overridable Property Category As String Public Overridable Property LogoType As Uri Public Overridable Property CoverImage As Uri Public Overridable Property Street1 As String Public Overridable Property Street2 As String Public Overridable Property ZipCode As String Public Overridable Property City As String Public Overridable Property CountryId As String Public Overridable Property Longitude As String Public Overridable Property Latitude As String Public Overridable Property Distance As Nullable(Of Double) Public Overridable Property Phone As String Public Overridable Property Email As String Public Overridable Property Homepage As String Public Overridable Property SitePath As String Public Overridable Property Active As Boolean Public Overridable Property CodeLockSystem As Nullable(Of CodeLockSystemType) Public Overridable Property IsFreeAccount As Boolean ''' '''Will show when the company was updated, note it will only be shown if your logged in as admin for the company. ''' Public Overridable Property Updated As Nullable(Of Date) ''' '''Will show when the company was created, note it will only be shown if your logged in as admin for the company. ''' Public Overridable Property Created As Nullable(Of Date) Public Overridable Property StatusId As Integer ''' '''If the company is marked as favourite for the logged in user ''' Public Overridable Property IsFavorite As Boolean Public Overridable Property BookingAgreements As String Public Overridable Property BookingSettings As CompanyBookingSettings Public Overridable Property SystemSettings As CompanySystemSettings Public Overridable Property WidgetSettings As CompanyWidgetSettings Public Overridable Property HomepageSettings As HomepageSettingsResponse Public Overridable Property RatingSummary As CompanyRatingSummary Public Overridable Property Reviews As List(Of RatingReviewResponse) Public Overridable Property CustomerCustomFields As List(Of CustomFieldConfigData) Public Overridable Property ResponseStatus As ResponseStatus End Class Public Partial Class CompanyRatingSummary ''' '''The average rating score ''' Public Overridable Property AverageScore As Double ''' '''The number of ratings of score 1 ''' Public Overridable Property RatingScore1Count As Integer ''' '''The number of ratings of score 2 ''' Public Overridable Property RatingScore2Count As Integer ''' '''The number of ratings of score 3 ''' Public Overridable Property RatingScore3Count As Integer ''' '''The number of ratings of score 4 ''' Public Overridable Property RaingScore4Count As Integer ''' '''The number of ratings of score 5 ''' Public Overridable Property RatingScore5Count As Integer ''' '''The number of ratings ''' Public Overridable Property Count As Integer End Class Public Partial Class CompanySystemSettings ''' '''If the booking is active or not ''' Public Overridable Property Active As Boolean ''' '''If the booking is not active, what message to show to the customers ''' Public Overridable Property InactiveMessage As String ''' '''If the company should be visible in search results on hompage ''' Public Overridable Property Searchable As Boolean ''' '''If you have a google analytics account and want to track your customers behaviors. ''' Public Overridable Property GATrackingId As String ''' '''If you have a google Ads Conversion Id account and want to track your customers behaviors. ''' Public Overridable Property GoogleAdsConversionId As String ''' '''If you have a LinkedIn account and want to track your customers behaviors. ''' Public Overridable Property LinkedinTagId As String ''' '''If you have a Google Ads Conversion Label and want to track your customers behaviors. ''' Public Overridable Property GoogleAdsConversionLabel As String ''' '''If you have a google tag manager account and want to track your customers behaviors. ''' Public Overridable Property GTMTrackingId As String ''' '''If you have a facebook account and want to track your customers behaviors. ''' Public Overridable Property FacebookPixelId As String ''' '''If you want your customers to be albe to change language on your homepage ''' Public Overridable Property MultiLanguage As Boolean ''' '''If the company should be visible on the marketplace ''' Public Overridable Property ShowOnMarketplace As Boolean ''' '''If you want your own written text on your homepage to be translated using google analytics when a user changes language ''' Public Overridable Property EnableAPITranslation As Boolean ''' '''What is the standard language your homepage information is written in. Select from the different countries, ie. SE,NO,EN ''' Public Overridable Property DefaultLanguage As String End Class Public Partial Class CompanyWidgetSettings ''' '''The service layouts id. ''' Public Overridable Property ServiceLayoutId As Integer ''' '''The time layouts id. ''' Public Overridable Property TimeLayoutId As Integer ''' '''The booking layouts id. ''' Public Overridable Property BookingLayoutId As Integer ''' '''The primary color of the booking widget. ''' Public Overridable Property PrimaryColor As String ''' '''If you should show the service image in the booking widget. ''' Public Overridable Property ShowServiceImage As Boolean ''' '''If you should show the rebate code field in the booking widget. ''' Public Overridable Property ShowRebateCodeField As Boolean ''' '''If you should show the next available time in the booking widget. ''' Public Overridable Property ShowNextAvailableTime As Boolean ''' '''If you should show the end time in the booking widget. ''' Public Overridable Property ShowEndTime As Boolean ''' '''What text to show on booked time slots. Default text is Booked ''' Public Overridable Property BookedTimeSlotText As String ''' '''If the widget should be displayed in dark theme ''' Public Overridable Property DarkTheme As Boolean End Class Public Partial Class CustomFieldConfigData Public Sub New() Values = New List(Of CustomFieldValueResponse) End Sub ''' '''Custom field id ''' Public Overridable Property Id As Integer ''' '''Configuration name. Example: 'Number of persons'. ''' Public Overridable Property Name As String ''' '''Custom field description. Example: 'For how many persons is this booking?' ''' Public Overridable Property Description As String ''' '''Field width. Example: 20 for 20px ''' Public Overridable Property Width As Nullable(Of Integer) ''' '''Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' ''' Public Overridable Property DataType As String ''' '''Default value of the field. Example: '3' ''' Public Overridable Property DefaultValue As String ''' '''Determines if the field is required to have a value or not ''' Public Overridable Property IsMandatory As Boolean ''' '''Error message shown to the user if the field data is required but not entered ''' Public Overridable Property MandatoryErrorMessage As String ''' '''Max lenght of the field ''' Public Overridable Property MaxLength As Integer ''' '''If the field should have multiple lines ''' Public Overridable Property MultipleLineText As Boolean ''' '''Regular expression used for validation of the field ''' Public Overridable Property RegEx As String ''' '''Error message shown if the regular expression validation failed ''' Public Overridable Property RegExErrorMessage As String ''' '''The values to select from if Datatype is DropDown for this custom field ''' Public Overridable Property Values As List(Of CustomFieldValueResponse) End Class Public Partial Class CustomFieldValueResponse Public Overridable Property Value As String End Class Public Partial Class HomepageSettingsResponse ''' '''The text for homepage heading ''' Public Overridable Property HomepageHeading As String ''' '''The text for homepage startpage heading ''' Public Overridable Property WelcomePageHeading As String ''' '''The text for homepage startpage body ''' Public Overridable Property WelcomePageBody As String ''' '''The text for homepage about us page heading ''' Public Overridable Property AboutUsPageHeading As String ''' '''The text for homepage about us page body ''' Public Overridable Property AboutUsPageBody As String ''' '''The startpage image url ''' Public Overridable Property ImageUrl As Uri ''' '''The cover image url ''' Public Overridable Property CoverImage As Uri ''' '''Show rating on the page ''' Public Overridable Property ShowRating As Boolean ''' '''The template for the homepage ''' Public Overridable Property HomePageTemplateId As Integer ''' '''The hero section style for the homepage ''' Public Overridable Property HeroSectionStyleId As Integer ''' '''Enable the BokaMera Homepage ''' Public Overridable Property EnableHomepage As Boolean End Class Public Partial Class RatingReviewResponse ''' '''The title for the review ''' Public Overridable Property Title As String ''' '''The description for the review ''' Public Overridable Property Description As String ''' '''The rating score ''' Public Overridable Property RatingScore As Integer ''' '''The review author ''' Public Overridable Property Author As String ''' '''The created date ''' Public Overridable Property Created As Date ''' '''The review answer from the company ''' Public Overridable Property ReviewAnswer As String End Class Public Partial Class UpdateCompany Implements IReturn(Of CompanyQueryResponse) Implements ICompany ''' '''The company id, if empty will use the company id for the user you are logged in with. ''' Public Overridable Property CompanyId As Nullable(Of Guid) Public Overridable Property Name As String Public Overridable Property OrganisationNumber As String ''' '''What type of company. If it's used for personal use or as a company. 1 = Company use, 2 = Personal use ''' Public Overridable Property TypeId As Nullable(Of Integer) Public Overridable Property OpeningHours As String Public Overridable Property Details As String Public Overridable Property CategoryId As Nullable(Of Integer) Public Overridable Property LogoType As Uri Public Overridable Property Street1 As String Public Overridable Property Street2 As String Public Overridable Property ZipCode As String Public Overridable Property City As String Public Overridable Property CountryId As String Public Overridable Property Longitude As String Public Overridable Property Latitude As String Public Overridable Property Phone As String Public Overridable Property Email As String Public Overridable Property Fax As String Public Overridable Property Homepage As String Public Overridable Property SitePath As String End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Nullable(Of Guid) End Interface End Namespace Namespace BokaMera.CodeLock.Model.Api Public Enum CodeLockSystemType Sample RcoM5 AxemaVaka VanderbiltOmnis ParakeyParakey AmidoDax TelkeyTelkey TechSolutionsSiedle Accessy Zesec Enabla End Enum End Namespace End Namespace