(* Options: Date: 2024-06-26 10:00:47 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: CreateCompany.* //ExcludeTypes: //InitializeCollections: True //AddNamespaces: *) namespace BokaMera.API.ServiceModel.Dtos open System open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations open System.Globalization open System.IO [] type CreateCompanyCompanyUser() = [] member val Firstname:String = null with get,set [] member val Lastname:String = null with get,set [] member val Phone:String = null with get,set [] member val Email:String = null with get,set [] member val WorkerId:Nullable = new Nullable() with get,set [] type CreateCompanyBillingInformation() = /// ///The prefered billing method. /// [] member val BillingMethodId:Int32 = new Int32() with get,set /// ///The name that should be printed on the billing information, normally this would be your company name. /// [] member val Name:String = null with get,set /// ///If you want to add the attention to the billing address. /// [] member val Attention:String = null with get,set /// ///The street for the billing adress. This is required when having postal invoice as billing method. /// [] member val Street1:String = null with get,set /// ///The street for the billing adress. /// [] member val Street2:String = null with get,set /// ///The zip code (postal code) for the billing adress. This is required when having postal invoice as billing method. /// [] member val ZipCode:String = null with get,set /// ///The city for the billing adress. This is required when having postal invoice as billing method. /// [] member val City:String = null with get,set /// ///The country for the billing adress. This is required when having postal invoice as billing method. /// [] member val CountryId:String = null with get,set /// ///The billing email. This is required when having email invoice as billing method. /// [] member val Email:String = null with get,set /// ///The billing payment terms in days. This is default 15 days. /// [] member val PaymentTermsDays:Nullable = new Nullable() with get,set /// ///The company vat registration number. /// [] member val VatRegistrationNumber:String = null with get,set [] type RatingReviewResponse() = /// ///The title for the review /// [] member val Title:String = null with get,set /// ///The description for the review /// [] member val Description:String = null with get,set /// ///The rating score /// [] member val RatingScore:Int32 = new Int32() with get,set /// ///The review author /// [] member val Author:String = null with get,set /// ///The created date /// [] member val Created:DateTime = new DateTime() with get,set /// ///The review answer from the company /// [] member val ReviewAnswer:String = null with get,set [] type CustomFieldValueResponse() = member val Value:String = null with get,set [] type CustomFieldConfigData() = /// ///Custom field id /// [] member val Id:Int32 = new Int32() with get,set /// ///Configuration name. Example: 'Number of persons'. /// [] member val Name:String = null with get,set /// ///Custom field description. Example: 'For how many persons is this booking?' /// [] member val Description:String = null with get,set /// ///Field width. Example: 20 for 20px /// [] member val Width:Nullable = new Nullable() with get,set /// ///Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' /// [] member val DataType:String = null with get,set /// ///Default value of the field. Example: '3' /// [] member val DefaultValue:String = null with get,set /// ///Determines if the field is required to have a value or not /// [] member val IsMandatory:Boolean = new Boolean() with get,set /// ///Error message shown to the user if the field data is required but not entered /// [] member val MandatoryErrorMessage:String = null with get,set /// ///Max lenght of the field /// [] member val MaxLength:Int32 = new Int32() with get,set /// ///If the field should have multiple lines /// [] member val MultipleLineText:Boolean = new Boolean() with get,set /// ///Regular expression used for validation of the field /// [] member val RegEx:String = null with get,set /// ///Error message shown if the regular expression validation failed /// [] member val RegExErrorMessage:String = null with get,set /// ///The values to select from if Datatype is DropDown for this custom field /// [] member val Values:ResizeArray = new ResizeArray() with get,set type CodeLockSystemType = | Sample = 0 | RcoM5 = 1 | AxemaVaka = 2 | VanderbiltOmnis = 3 | ParakeyParakey = 4 | AmidoDax = 5 | TelkeyTelkey = 6 | TechSolutionsSiedle = 7 | Accessy = 8 | Zesec = 9 | Enabla = 10 [] type CompanyBookingSettings() = member val EnableMobileApp:Boolean = new Boolean() with get,set member val BookingReceiptMessage:String = null with get,set member val ShowFreeTimesLeft:Boolean = new Boolean() with get,set member val EnableShowBookedTimes:Boolean = new Boolean() with get,set member val BookingAgreement:String = null with get,set /// ///The settings for how to display week number. 1 = ShowWeekNumberFromDate, 2 = ShowWeekNumberToDate, 3 = ShowWeekNumberFromToDate, 4 = DontShowWeekNumber /// [] member val WeekNumberSetting:Int32 = new Int32() with get,set member val ShowBookedTimes:Boolean = new Boolean() with 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 /// [] member val PaymentProviderId:Int32 = new Int32() with get,set /// ///If it's only allowed for existing customers to book /// [] member val BookOnlyOnExistingCustomers:Boolean = new Boolean() with get,set /// ///If payment is enabled /// [] member val PaymentEnabled:Boolean = new Boolean() with get,set [] type CompanySystemSettings() = /// ///If the booking is active or not /// [] member val Active:Boolean = new Boolean() with get,set /// ///If the booking is not active, what message to show to the customers /// [] member val InactiveMessage:String = null with get,set /// ///If the company should be visible in search results on hompage /// [] member val Searchable:Boolean = new Boolean() with get,set /// ///If you have a google analytics account and want to track your customers behaviors. /// [] member val GATrackingId:String = null with get,set /// ///If you have a google Ads Conversion Id account and want to track your customers behaviors. /// [] member val GoogleAdsConversionId:String = null with get,set /// ///If you have a LinkedIn account and want to track your customers behaviors. /// [] member val LinkedinTagId:String = null with get,set /// ///If you have a Google Ads Conversion Label and want to track your customers behaviors. /// [] member val GoogleAdsConversionLabel:String = null with get,set /// ///If you have a google tag manager account and want to track your customers behaviors. /// [] member val GTMTrackingId:String = null with get,set /// ///If you have a facebook account and want to track your customers behaviors. /// [] member val FacebookPixelId:String = null with get,set /// ///If you want your customers to be albe to change language on your homepage /// [] member val MultiLanguage:Boolean = new Boolean() with get,set /// ///If the company should be visible on the marketplace /// [] member val ShowOnMarketplace:Boolean = new Boolean() with get,set /// ///If you want your own written text on your homepage to be translated using google analytics when a user changes language /// [] member val EnableAPITranslation:Boolean = new Boolean() with get,set /// ///What is the standard language your homepage information is written in. Select from the different countries, ie. SE,NO,EN /// [] member val DefaultLanguage:String = null with get,set [] type CompanyWidgetSettings() = /// ///The service layouts id. /// [] member val ServiceLayoutId:Int32 = new Int32() with get,set /// ///The time layouts id. /// [] member val TimeLayoutId:Int32 = new Int32() with get,set /// ///The booking layouts id. /// [] member val BookingLayoutId:Int32 = new Int32() with get,set /// ///The primary color of the booking widget. /// [] member val PrimaryColor:String = null with get,set /// ///If you should show the service image in the booking widget. /// [] member val ShowServiceImage:Boolean = new Boolean() with get,set /// ///If you should show the rebate code field in the booking widget. /// [] member val ShowRebateCodeField:Boolean = new Boolean() with get,set /// ///If you should show the next available time in the booking widget. /// [] member val ShowNextAvailableTime:Boolean = new Boolean() with get,set /// ///If you should show the end time in the booking widget. /// [] member val ShowEndTime:Boolean = new Boolean() with get,set /// ///What text to show on booked time slots. Default text is Booked /// [] member val BookedTimeSlotText:String = null with get,set /// ///If the widget should be displayed in dark theme /// [] member val DarkTheme:Boolean = new Boolean() with get,set [] type HomepageSettingsResponse() = /// ///The text for homepage heading /// [] member val HomepageHeading:String = null with get,set /// ///The text for homepage startpage heading /// [] member val WelcomePageHeading:String = null with get,set /// ///The text for homepage startpage body /// [] member val WelcomePageBody:String = null with get,set /// ///The text for homepage about us page heading /// [] member val AboutUsPageHeading:String = null with get,set /// ///The text for homepage about us page body /// [] member val AboutUsPageBody:String = null with get,set /// ///The startpage image url /// [] member val ImageUrl:Uri = null with get,set /// ///The cover image url /// [] member val CoverImage:Uri = null with get,set /// ///Show rating on the page /// [] member val ShowRating:Boolean = new Boolean() with get,set /// ///The template for the homepage /// [] member val HomePageTemplateId:Int32 = new Int32() with get,set /// ///The hero section style for the homepage /// [] member val HeroSectionStyleId:Int32 = new Int32() with get,set /// ///Enable the BokaMera Homepage /// [] member val EnableHomepage:Boolean = new Boolean() with get,set [] type CompanyRatingSummary() = /// ///The average rating score /// [] member val AverageScore:Double = new Double() with get,set /// ///The number of ratings of score 1 /// [] member val RatingScore1Count:Int32 = new Int32() with get,set /// ///The number of ratings of score 2 /// [] member val RatingScore2Count:Int32 = new Int32() with get,set /// ///The number of ratings of score 3 /// [] member val RatingScore3Count:Int32 = new Int32() with get,set /// ///The number of ratings of score 4 /// [] member val RaingScore4Count:Int32 = new Int32() with get,set /// ///The number of ratings of score 5 /// [] member val RatingScore5Count:Int32 = new Int32() with get,set /// ///The number of ratings /// [] member val Count:Int32 = new Int32() with get,set [] type CompanyQueryResponse() = member val Id:Guid = new Guid() with get,set member val Name:String = null with get,set /// ///The organisation number will only be visible if your owner to the company /// [] member val OrganisationNumber:String = null with get,set /// ///What type of company. If it's used for personal use or as a company. /// [] member val TypeId:Nullable = new Nullable() with get,set member val Details:String = null with get,set member val CategoryId:Int32 = new Int32() with get,set member val Category:String = null with get,set member val LogoType:Uri = null with get,set member val CoverImage:Uri = null with get,set member val Street1:String = null with get,set member val Street2:String = null with get,set member val ZipCode:String = null with get,set member val City:String = null with get,set member val CountryId:String = null with get,set member val Longitude:String = null with get,set member val Latitude:String = null with get,set member val Distance:Nullable = new Nullable() with get,set member val Phone:String = null with get,set member val Email:String = null with get,set member val Homepage:String = null with get,set member val SitePath:String = null with get,set member val Active:Boolean = new Boolean() with get,set member val CodeLockSystem:Nullable = new Nullable() with get,set member val IsFreeAccount:Boolean = new Boolean() with get,set /// ///Will show when the company was updated, note it will only be shown if your logged in as admin for the company. /// [] member val Updated:Nullable = new Nullable() with get,set /// ///Will show when the company was created, note it will only be shown if your logged in as admin for the company. /// [] member val Created:Nullable = new Nullable() with get,set member val StatusId:Int32 = new Int32() with get,set /// ///If the company is marked as favourite for the logged in user /// [] member val IsFavorite:Boolean = new Boolean() with get,set member val BookingAgreements:String = null with get,set member val BookingSettings:CompanyBookingSettings = null with get,set member val SystemSettings:CompanySystemSettings = null with get,set member val WidgetSettings:CompanyWidgetSettings = null with get,set member val HomepageSettings:HomepageSettingsResponse = null with get,set member val RatingSummary:CompanyRatingSummary = null with get,set member val Reviews:ResizeArray = new ResizeArray() with get,set member val CustomerCustomFields:ResizeArray = new ResizeArray() with get,set member val ResponseStatus:ResponseStatus = null with get,set [] [] [] type CreateCompany() = interface IReturn /// /// /// [] member val Name:String = null with get,set /// /// /// [] member val OrganisationNumber:String = null with get,set /// ///What type of company. If it's used for personal use or as a company. 1 = Company use, 2 = Personal use /// [] member val TypeId:Int32 = new Int32() with get,set /// ///What company owner. 1 = BokaMera (default) /// [] member val CompanyOwnerId:Int32 = new Int32() with get,set /// /// /// [] member val OpeningHours:String = null with get,set /// /// /// [] member val Details:String = null with get,set /// /// /// [] member val CategoryId:Int32 = new Int32() with get,set /// /// /// [] member val LogoType:Uri = null with get,set /// /// /// [] member val Street1:String = null with get,set /// /// /// [] member val Street2:String = null with get,set /// /// /// [] member val ZipCode:String = null with get,set /// /// /// [] member val City:String = null with get,set /// /// /// [] member val CountryId:String = null with get,set /// /// /// [] member val Longitude:String = null with get,set /// /// /// [] member val Latitude:String = null with get,set /// /// /// [] member val Phone:String = null with get,set /// /// /// [] member val Email:String = null with get,set /// /// /// [] member val Fax:String = null with get,set /// /// /// [] member val Homepage:String = null with get,set /// /// /// [] member val SitePath:String = null with get,set /// /// /// [] member val CompanyUser:CreateCompanyCompanyUser = null with get,set member val BillingInformation:CreateCompanyBillingInformation = null with get,set /// ///Id of the license type. If none is set it's free license /// [] member val LicenseTypeId:Int32 = new Int32() with get,set /// /// /// [] member val DomainName:String = null with get,set