| POST | /hotelinventorysnapshot/{SubscriptionId}/{CendynPropertyId} |
|---|
namespace CenResSS.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type Response() =
member val StatusCode:String = null with get,set
member val RecordCount:Int32 = new Int32() with get,set
member val ErrorCount:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type InventoryRoom() =
member val RoomType:String = null with get,set
member val PhysicalRooms:Nullable<Int32> = new Nullable<Int32>() with get,set
member val OutOfOrder:Nullable<Int32> = new Nullable<Int32>() with get,set
member val DefinitiveAvailable:Nullable<Int32> = new Nullable<Int32>() with get,set
member val DefinitiveSold:Nullable<Int32> = new Nullable<Int32>() with get,set
member val BlockCount:Nullable<Int32> = new Nullable<Int32>() with get,set
member val ExpectedBlockRevenue:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val CasinoBlockCount:Nullable<Int32> = new Nullable<Int32>() with get,set
member val ExpectedCasinoRevenue:Nullable<Decimal> = new Nullable<Decimal>() with get,set
[<AllowNullLiteral>]
type InventorySnapshot() =
member val CendynPropertyID:String = null with get,set
member val HotelCode:String = null with get,set
member val InventoryDay:DateTime = new DateTime() with get,set
member val PhysicalRooms:Nullable<Int32> = new Nullable<Int32>() with get,set
member val OutOfOrder:Nullable<Int32> = new Nullable<Int32>() with get,set
member val DefinitiveSold:Nullable<Int32> = new Nullable<Int32>() with get,set
member val BlockCount:Nullable<Int32> = new Nullable<Int32>() with get,set
member val ExpectedBlockRevenue:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val CasinoBlockCount:Nullable<Int32> = new Nullable<Int32>() with get,set
member val ExpectedCasinoRevenue:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val SourceName:String = null with get,set
member val SourceID:String = null with get,set
member val InventoryRooms:ResizeArray<InventoryRoom> = new ResizeArray<InventoryRoom>() with get,set
[<AllowNullLiteral>]
type HotelInventorySnapshot() =
member val InventorySnapshot:InventorySnapshot = null with get,set
member val SubscriptionId:String = null with get,set
member val CendynPropertyId:String = null with get,set
F# HotelInventorySnapshot DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /hotelinventorysnapshot/{SubscriptionId}/{CendynPropertyId} HTTP/1.1
Host: cert.cendyn.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"inventorySnapshot":{"cendynPropertyID":"String","hotelCode":"String","inventoryDay":"0001-01-01T00:00:00.0000000","physicalRooms":0,"outOfOrder":0,"definitiveSold":0,"blockCount":0,"expectedBlockRevenue":0,"casinoBlockCount":0,"expectedCasinoRevenue":0,"sourceName":"String","sourceID":"String","inventoryRooms":[{"roomType":"String","physicalRooms":0,"outOfOrder":0,"definitiveAvailable":0,"definitiveSold":0,"blockCount":0,"expectedBlockRevenue":0,"casinoBlockCount":0,"expectedCasinoRevenue":0}]},"subscriptionId":"String","cendynPropertyId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"statusCode":"String","recordCount":0,"errorCount":0}