Requires any of the roles: | bookingsupplier-administrator-write, superadmin, bookingsupplier-administrator-read |
GET | /settings | Get settings for the currently logged in user | Get settings for the currently logged in user. |
---|
namespace BokaMera.API.ServiceModel.Db
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type ScheduleViewResponse() =
member val Id:Int32 = new Int32() with get,set
member val Name:String = null with get,set
[<AllowNullLiteral>]
type WeekNumberSettingResponse() =
member val Id:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val Description:String = null with get,set
[<AllowNullLiteral>]
type BookingTemplateResponse() =
member val Id:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val Description:String = null with get,set
member val UsedByApplication:String = null with get,set
[<AllowNullLiteral>]
type CalendarTypeResponse() =
member val Id:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val Description:String = null with get,set
member val Active:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type BookingStatusOptions() =
member val Id:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val Description:String = null with get,set
[<AllowNullLiteral>]
type FreeSpotTextsResponse() =
member val Id:Int32 = new Int32() with get,set
member val TextSingular:String = null with get,set
member val TextPlural:String = null with get,set
[<AllowNullLiteral>]
type SettingResponse() =
member val CompanyId:Guid = new Guid() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="int", Description="")>]
member val BookingStatusId:Int32 = new Int32() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="int", Description="")>]
member val ScheduleViewId:Int32 = new Int32() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="int", Description="")>]
member val BookingTemplateId:Int32 = new Int32() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="int", Description="")>]
member val CalendarTypeId:Int32 = new Int32() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="boolean", Description="")>]
member val AllowBookingOnUnbookedTimes:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<DataMember(Name="SendEmailReminder")>]
[<ApiMember(DataType="boolean", Description="")>]
member val SendEmailReminder:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<DataMember(Name="SendSmsReminder")>]
[<ApiMember(DataType="boolean", Description="")>]
member val SendSmsReminder:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<DataMember(Name="SendEmailConfirmation")>]
[<ApiMember(DataType="boolean", Description="")>]
member val SendEmailConfirmation:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<DataMember(Name="SendSmsConfirmation")>]
[<ApiMember(DataType="boolean", Description="")>]
member val SendSmsConfirmation:Boolean = new Boolean() with get,set
///<summary>
///Message text field that could be used inside message templates using [MessageText].
///</summary>
[<ApiMember(DataType="string", Description="Message text field that could be used inside message templates using [MessageText].")>]
member val MessageText:String = null with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="int", Description="")>]
member val EmailReminderTime:Int32 = new Int32() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="int", Description="")>]
member val SmsReminderTime:Int32 = new Int32() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="int", Description="")>]
member val MaxActiveBookings:Int32 = new Int32() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="boolean", Description="")>]
member val SendNotifications:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="string", Description="")>]
member val SendNotificationsEmail:String = null with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="boolean", Description="")>]
member val EnableMobileApp:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<ApiMember(Description="")>]
member val ScheduleStartTime:Nullable<TimeSpan> = new Nullable<TimeSpan>() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="boolean", Description="")>]
member val ScheduleEndTime:Nullable<TimeSpan> = new Nullable<TimeSpan>() with get,set
///<summary>
///The admin scheduler if each resources should be shown in a seperate group
///</summary>
[<ApiMember(DataType="boolean", Description="The admin scheduler if each resources should be shown in a seperate group")>]
member val ScheduleGroupResources:Boolean = new Boolean() with get,set
///<summary>
///The admin scheduler if the horizontal scrolling should be turned off
///</summary>
[<ApiMember(DataType="boolean", Description="The admin scheduler if the horizontal scrolling should be turned off")>]
member val SchedulerDisableHorizontalScrolling:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="string", Description="")>]
member val ReceiptTemplate:String = null with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="int", Description="")>]
member val ScheduleTimeSlotMinutes:Int32 = new Int32() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="boolean", Description="")>]
member val ShowFreeTimesLeft:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="int", Description="")>]
member val FreeSpotTextsId:Int32 = new Int32() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="boolean", Description="")>]
member val EnableICalGroupBookings:Boolean = new Boolean() with get,set
///<summary>
///Booking agreement text. All html needs to entered using markup. Read about markup here https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet. Use this editor to create markup https://stackedit.io/app#
///</summary>
[<ApiMember(DataType="string", Description="Booking agreement text. All html needs to entered using markup. Read about markup here https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet. Use this editor to create markup https://stackedit.io/app#")>]
member val AgreementTemplate:String = null with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="boolean", Description="")>]
member val ScheduleShowTimeExeptions:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="boolean", Description="")>]
member val EnableBookingsOnSameTime:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="int", Description="")>]
member val ShowWeekNumberSettingId:Int32 = new Int32() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="boolean", Description="")>]
member val EnableShowBookedTimes:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="", Description="")>]
member val BookSpotUserResponseMinutes:Nullable<Int32> = new Nullable<Int32>() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="", Description="")>]
member val IsBookSpotDirectly:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="", Description="")>]
member val BookSpotDirectlyTimeLeftMinutes:Int32 = new Int32() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="", Description="")>]
member val SendEmailNotificationQueue:Nullable<Boolean> = new Nullable<Boolean>() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="", Description="")>]
member val SendSMSNotificationQueue:Nullable<Boolean> = new Nullable<Boolean>() with get,set
///<summary>
///
///</summary>
[<ApiMember(Description="")>]
member val EnableSendFollowUpMessage:Boolean = new Boolean() with get,set
///<summary>
///When follow up message should be sent in hours after the booking.
///</summary>
[<ApiMember(Description="When follow up message should be sent in hours after the booking.")>]
member val FollowUpMessageTime:Int32 = new Int32() with 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")>]
member val BookOnlyOnExistingCustomers:Boolean = new Boolean() with get,set
///<summary>
///If a unique pin code should be generated for the customer
///</summary>
[<ApiMember(DataType="boolean", Description="If a unique pin code should be generated for the customer")>]
member val AutoGenerateUniquePinCode:Boolean = new Boolean() with get,set
///<summary>
///If a user profile should be created when customer is booking time. With the property customer can login.
///</summary>
[<ApiMember(DataType="boolean", Description="If a user profile should be created when customer is booking time. With the property customer can login.")>]
member val AutoCreateUserProfile:Boolean = new Boolean() with get,set
///<summary>
///The available schedule view options to choose from
///</summary>
[<ApiMember(Description="The available schedule view options to choose from")>]
member val ScheduleViewOptions:ResizeArray<ScheduleViewResponse> = new ResizeArray<ScheduleViewResponse>() with get,set
///<summary>
///The available week number options to choose from
///</summary>
[<ApiMember(Description="The available week number options to choose from")>]
member val WeekNumberOptions:ResizeArray<WeekNumberSettingResponse> = new ResizeArray<WeekNumberSettingResponse>() with get,set
///<summary>
///The booking template options to choose from
///</summary>
[<ApiMember(Description="The booking template options to choose from")>]
member val BookingTemplateOptions:ResizeArray<BookingTemplateResponse> = new ResizeArray<BookingTemplateResponse>() with get,set
///<summary>
///The calendar type options to choose from
///</summary>
[<ApiMember(Description="The calendar type options to choose from")>]
member val CalendarTypeOptions:ResizeArray<CalendarTypeResponse> = new ResizeArray<CalendarTypeResponse>() with get,set
///<summary>
///The booking status options to choose from
///</summary>
[<ApiMember(Description="The booking status options to choose from")>]
member val BookingStatusOptions:ResizeArray<BookingStatusOptions> = new ResizeArray<BookingStatusOptions>() with get,set
///<summary>
///The free spot text options to choose from
///</summary>
[<ApiMember(Description="The free spot text options to choose from")>]
member val FreeSpotTextOptions:ResizeArray<FreeSpotTextsResponse> = new ResizeArray<FreeSpotTextsResponse>() with get,set
///<summary>
///If you have different prices over different times per day and want it to calculate the weighted price for the booked time.
///</summary>
[<ApiMember(DataType="boolean", Description="If you have different prices over different times per day and want it to calculate the weighted price for the booked time.")>]
member val WeightedPrices:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="boolean", Description="")>]
member val ShowMultiDayAsTime:Boolean = new Boolean() with get,set
///<summary>
///
///</summary>
[<ApiMember(DataType="boolean", Description="")>]
member val ShowMultipleResourcesAsOne:Boolean = new Boolean() with get,set
///<summary>
///If booking should be restricted by a pin code
///</summary>
[<ApiMember(Description="If booking should be restricted by a pin code")>]
member val BookingPinCodeRestriction:String = null with get,set
[<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")>]
[<AllowNullLiteral>]
type SettingQuery() =
///<summary>
///If you want to include the schedule views to select from
///</summary>
[<ApiMember(DataType="boolean", Description="If you want to include the schedule views to select from", ParameterType="query")>]
member val IncludeScheduleViewOptions:Boolean = new Boolean() with get,set
///<summary>
///If you want to include the week number settings to select from
///</summary>
[<ApiMember(DataType="boolean", Description="If you want to include the week number settings to select from", ParameterType="query")>]
member val IncludeWeekNumberOptions:Boolean = new Boolean() with get,set
///<summary>
///If you want to include the booking template options to select from
///</summary>
[<ApiMember(DataType="boolean", Description="If you want to include the booking template options to select from", ParameterType="query")>]
member val IncludeBookingTemplateOptions:Boolean = new Boolean() with get,set
///<summary>
///If you want to include the calendar type options to select from
///</summary>
[<ApiMember(DataType="boolean", Description="If you want to include the calendar type options to select from", ParameterType="query")>]
member val IncludeCalendarTypeOptions:Boolean = new Boolean() with get,set
///<summary>
///If you want to include the booking status options to select from
///</summary>
[<ApiMember(DataType="boolean", Description="If you want to include the booking status options to select from", ParameterType="query")>]
member val IncludeBookingStatusOptions:Boolean = new Boolean() with get,set
///<summary>
///If you want to include the Free spot text options to select from
///</summary>
[<ApiMember(DataType="boolean", Description="If you want to include the Free spot text options to select from", ParameterType="query")>]
member val IncludeFreeSpotTextOptions:Boolean = new Boolean() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /settings HTTP/1.1 Host: testapi.bokamera.se Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SettingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos"> <AgreementTemplate>String</AgreementTemplate> <AllowBookingOnUnbookedTimes>false</AllowBookingOnUnbookedTimes> <AutoCreateUserProfile>false</AutoCreateUserProfile> <AutoGenerateUniquePinCode>false</AutoGenerateUniquePinCode> <BookOnlyOnExistingCustomers>false</BookOnlyOnExistingCustomers> <BookSpotDirectlyTimeLeftMinutes>0</BookSpotDirectlyTimeLeftMinutes> <BookSpotUserResponseMinutes>0</BookSpotUserResponseMinutes> <BookingPinCodeRestriction>String</BookingPinCodeRestriction> <BookingStatusId>0</BookingStatusId> <BookingStatusOptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Db"> <d2p1:BookingStatusOptions> <d2p1:Description>String</d2p1:Description> <d2p1:Id>0</d2p1:Id> <d2p1:Name>String</d2p1:Name> </d2p1:BookingStatusOptions> </BookingStatusOptions> <BookingTemplateId>0</BookingTemplateId> <BookingTemplateOptions> <BookingTemplateResponse> <Description>String</Description> <Id>0</Id> <Name>String</Name> <UsedByApplication>String</UsedByApplication> </BookingTemplateResponse> </BookingTemplateOptions> <CalendarTypeId>0</CalendarTypeId> <CalendarTypeOptions> <CalendarTypeResponse> <Active>false</Active> <Description>String</Description> <Id>0</Id> <Name>String</Name> </CalendarTypeResponse> </CalendarTypeOptions> <CompanyId>00000000-0000-0000-0000-000000000000</CompanyId> <EmailReminderTime>0</EmailReminderTime> <EnableBookingsOnSameTime>false</EnableBookingsOnSameTime> <EnableICalGroupBookings>false</EnableICalGroupBookings> <EnableMobileApp>false</EnableMobileApp> <EnableSendFollowUpMessage>false</EnableSendFollowUpMessage> <EnableShowBookedTimes>false</EnableShowBookedTimes> <FollowUpMessageTime>0</FollowUpMessageTime> <FreeSpotTextOptions> <FreeSpotTextsResponse> <Id>0</Id> <TextPlural>String</TextPlural> <TextSingular>String</TextSingular> </FreeSpotTextsResponse> </FreeSpotTextOptions> <FreeSpotTextsId>0</FreeSpotTextsId> <IsBookSpotDirectly>false</IsBookSpotDirectly> <MaxActiveBookings>0</MaxActiveBookings> <MessageText>String</MessageText> <ReceiptTemplate>String</ReceiptTemplate> <ScheduleEndTime>PT0S</ScheduleEndTime> <ScheduleGroupResources>false</ScheduleGroupResources> <ScheduleShowTimeExeptions>false</ScheduleShowTimeExeptions> <ScheduleStartTime>PT0S</ScheduleStartTime> <ScheduleTimeSlotMinutes>0</ScheduleTimeSlotMinutes> <ScheduleViewId>0</ScheduleViewId> <ScheduleViewOptions> <ScheduleViewResponse> <Id>0</Id> <Name>String</Name> </ScheduleViewResponse> </ScheduleViewOptions> <SchedulerDisableHorizontalScrolling>false</SchedulerDisableHorizontalScrolling> <SendEmailConfirmation>false</SendEmailConfirmation> <SendEmailNotificationQueue>false</SendEmailNotificationQueue> <SendEmailReminder>false</SendEmailReminder> <SendNotifications>false</SendNotifications> <SendNotificationsEmail>String</SendNotificationsEmail> <SendSMSNotificationQueue>false</SendSMSNotificationQueue> <SendSmsConfirmation>false</SendSmsConfirmation> <SendSmsReminder>false</SendSmsReminder> <ShowFreeTimesLeft>false</ShowFreeTimesLeft> <ShowMultiDayAsTime>false</ShowMultiDayAsTime> <ShowMultipleResourcesAsOne>false</ShowMultipleResourcesAsOne> <ShowWeekNumberSettingId>0</ShowWeekNumberSettingId> <SmsReminderTime>0</SmsReminderTime> <WeekNumberOptions> <WeekNumberSettingResponse> <Description>String</Description> <Id>0</Id> <Name>String</Name> </WeekNumberSettingResponse> </WeekNumberOptions> <WeightedPrices>false</WeightedPrices> </SettingResponse>