(* Options: Date: 2024-06-26 17:08:56 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: DeleteResource.* //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 ICompany = abstract CompanyId:Nullable with get,set type BookingStatusEnum = | Booked = 1 | Unbooked = 2 | Reserved = 3 | Canceled = 4 | AwaitingPayment = 5 | AwaitingPaymentNoTimeLimit = 6 | Payed = 7 | AwaitingPaymentRequestFromAdmin = 8 | AwaitingPaymentFromProvider = 9 | Invoiced = 10 [] type IInterval = abstract From:DateTime with get,set abstract To:DateTime with get,set [] type BookedCustomer() = member val Id:Guid = new Guid() with get,set member val Firstname:String = null with get,set member val Lastname:String = null with get,set member val Email:String = null with get,set member val Phone:String = null with get,set member val FacebookUserName:String = null with get,set member val ImageUrl:String = null with get,set member val CorporateIdentityNumber:String = null with get,set member val InvoiceAddress1:String = null with get,set member val InvoiceAddress2:String = null with get,set member val InvoiceCity:String = null with get,set member val InvoicePostalCode:String = null with get,set member val InvoiceCountryCode:String = null with get,set [] type TimeException() = /// ///Time exception id /// [] member val Id:Int32 = new Int32() with get,set /// ///Indicates whether or not the time exception is recurring /// [] member val IsRecurring:Boolean = new Boolean() with get,set /// ///Indicates whether the time exception is blocking the time or not /// [] member val IsBlock:Boolean = new Boolean() with get,set /// ///The reason of the time exception, example: Vacation, doctors appointment, ... /// [] member val ReasonText:String = null with get,set /// ///The public reason of the time exception, example: Vacation, doctors appointment, ... /// [] member val ReasonTextPublic:String = null with get,set /// ///Time exception start /// [] member val From:DateTime = new DateTime() with get,set /// ///Time exception end /// [] member val To:DateTime = new DateTime() with get,set /// ///Resources that owns this exception /// [] member val ResourceIds:Int32[] = [||] with get,set [] type BookedTime() = /// ///Booking id /// [] member val Id:Int32 = new Int32() with get,set /// ///The booked service /// [] member val ServiceId:Int32 = new Int32() with get,set /// ///Booking start /// [] member val From:DateTime = new DateTime() with get,set /// ///Booking end /// [] member val To:DateTime = new DateTime() with get,set /// ///Number of booked spots /// [] member val BookedSpots:Int32 = new Int32() with get,set /// ///Number of total spots for the service /// [] member val TotalSpots:Int32 = new Int32() with get,set /// ///The pause after the booking /// [] member val PauseAfterInMinutes:Int32 = new Int32() with get,set /// ///The booking status /// [] member val StatusId:Int32 = new Int32() with get,set member val Status:BookingStatusEnum = new BookingStatusEnum() with get,set /// ///The customer the booking belongs to /// [] member val Customer:BookedCustomer = null with get,set [] type ITimeException = abstract Id:Int32 with get,set abstract ReasonText:String with get,set abstract IsBlock:Boolean with get,set abstract ReasonTextPublic:String with get,set abstract IsRecurring:Boolean with get,set abstract ResourceIds:Int32[] with get,set [] type IBookedTime = abstract Id:Int32 with get,set abstract ServiceId:Int32 with get,set abstract BookedSpots:Int32 with get,set abstract TotalSpots:Int32 with get,set abstract PauseAfterInMinutes:Int32 with get,set abstract Status:BookingStatusEnum with get,set abstract StatusId:Int32 with get,set abstract Customer:BookedCustomer with get,set [] type ResourceQueryResponse() = /// ///The resource id /// [] member val Id:Int32 = new Int32() with get,set /// ///The resource name /// [] member val Name:String = null with get,set /// ///The resource description /// [] member val Description:String = null with get,set /// ///If resource is active or not /// [] member val Active:Boolean = new Boolean() with get,set /// ///The resource color in scheduler in hexadecimal color code. Example: #00b0f0 for blue. /// [] member val Color:String = null with get,set /// ///The email of the resource /// [] member val Email:String = null with get,set /// ///The image url of the resource /// [] member val ImageUrl:Uri = null with get,set /// ///The mobile phone number of the resource /// [] member val MobilePhone:String = null with get,set /// ///Used by example code locks to know what access group the resource is assigned to /// [] member val AccessGroup:String = null with get,set /// ///If the resource should receive email notification when booked /// [] member val EmailNotification:Boolean = new Boolean() with get,set /// ///If the resource should receive SMS notification when booked /// [] member val SMSNotification:Boolean = new Boolean() with get,set /// ///If the resource should receive email reminders on bookings /// [] member val SendEmailReminder:Nullable = new Nullable() with get,set /// ///If the resource should receive SMS reminders on bookings /// [] member val SendSMSReminder:Nullable = new Nullable() with get,set /// ///The resource time exceptions /// [] member val Exceptions:ResizeArray = new ResizeArray() with get,set /// ///The resource bookings /// [] member val Bookings:ResizeArray = new ResizeArray() with get,set /// ///Then date when the resource was created /// [] member val Created:DateTime = new DateTime() with get,set /// ///Then date when the resource was updated /// [] member val Updated:DateTime = new DateTime() with get,set member val ResponseStatus:ResponseStatus = null with get,set [] [] [] [] [] [] type DeleteResource() = interface IReturn /// ///Enter the company id, if blank company id and you are an admin, your company id will be used. /// [] member val CompanyId:Nullable = new Nullable() with get,set /// ///Id of the resource to delete /// [] member val Id:Int32 = new Int32() with get,set /// ///If this equals true it will force to set the resource as active = false, this is used when bookings exists on the resource and it can't be deleted. /// [] member val Force:Boolean = new Boolean() with get,set