(* Options: Date: 2024-12-04 18:49:35 Version: 8.12 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://vue-vite-api.jamstacks.net //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: CreateBooking.* //ExcludeTypes: //InitializeCollections: True //AddNamespaces: *) namespace MyApp.ServiceModel open System open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations type RoomType = | Single = 0 | Double = 1 | Queen = 2 | Twin = 3 | Suite = 4 /// ///Booking Details /// [] type Booking() = inherit AuditBase() member val Id:Int32 = new Int32() with get,set member val Name:String = null with get,set member val RoomType:RoomType = new RoomType() with get,set member val RoomNumber:Int32 = new Int32() with get,set member val BookingStartDate:DateTime = new DateTime() with get,set member val BookingEndDate:Nullable = new Nullable() with get,set member val Cost:Decimal = new Decimal() with get,set member val Notes:String = null with get,set member val Cancelled:Nullable = new Nullable() with get,set [] member val CreatedDate:DateTime = new DateTime() with get,set [] [] member val CreatedBy:String = null with get,set [] member val ModifiedDate:DateTime = new DateTime() with get,set [] [] member val ModifiedBy:String = null with get,set [] member val DeletedDate:Nullable = new Nullable() with get,set [] member val DeletedBy:String = null with get,set /// ///Create a new Booking /// [] [] [] type CreateBooking() = interface IReturn /// ///Name this Booking is for /// [] member val Name:String = null with get,set member val RoomType:RoomType = new RoomType() with get,set [] member val RoomNumber:Int32 = new Int32() with get,set [] member val Cost:Decimal = new Decimal() with get,set member val BookingStartDate:DateTime = new DateTime() with get,set member val BookingEndDate:Nullable = new Nullable() with get,set member val Notes:String = null with get,set