| POST | /reservation/notice/{SubscriptionId} |
|---|
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 StayHistoryRevenue() =
member val RecordStatus:String = null with get,set
[<DataMember(IsRequired=true)>]
member val RevenueGroup:String = null with get,set
[<DataMember(IsRequired=true)>]
member val RevenueType:String = null with get,set
[<DataMember(IsRequired=true)>]
member val Amount:Decimal = new Decimal() with get,set
member val CurrencyCode:String = null with get,set
member val FolioWindow:String = null with get,set
member val TransactionDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val InactiveDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
[<AllowNullLiteral>]
type UniqueIDType() =
member val ID:String = null with get,set
member val Type:String = null with get,set
member val Context:String = null with get,set
[<AllowNullLiteral>]
type ReservationStatusNotice() =
member val CendynPropertyId:String = null with get,set
member val ExternalResId1:String = null with get,set
member val ExternalResId2:String = null with get,set
member val ResStatus:String = null with get,set
member val CancellationID:String = null with get,set
member val CancellationDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val DateResUpdated:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ResUpdatedBy:String = null with get,set
member val RoomNumber:String = null with get,set
member val RoomNumberStartDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val RoomNumberEndDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val StayHistoryRevenueCollection:ResizeArray<StayHistoryRevenue> = new ResizeArray<StayHistoryRevenue>() with get,set
member val ResArriveDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ResDepartDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val Currency:String = null with get,set
member val RoomType:String = null with get,set
member val ExternalProfileID:String = null with get,set
member val UniqueIDs:ResizeArray<UniqueIDType> = new ResizeArray<UniqueIDType>() with get,set
[<AllowNullLiteral>]
type ReservationStatusNoticePost() =
member val NoticeMessage:ReservationStatusNotice = null with get,set
member val SubscriptionId:String = null with get,set
F# ReservationStatusNoticePost 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 /reservation/notice/{SubscriptionId} HTTP/1.1
Host: cert.cendyn.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"noticeMessage":{"cendynPropertyId":"String","externalResId1":"String","externalResId2":"String","resStatus":"String","cancellationID":"String","cancellationDate":"0001-01-01T00:00:00.0000000","dateResUpdated":"0001-01-01T00:00:00.0000000","resUpdatedBy":"String","roomNumber":"String","roomNumberStartDate":"0001-01-01T00:00:00.0000000","roomNumberEndDate":"0001-01-01T00:00:00.0000000","stayHistoryRevenueCollection":[{"recordStatus":"String","revenueGroup":"String","revenueType":"String","amount":0,"currencyCode":"String","folioWindow":"String","transactionDate":"0001-01-01T00:00:00.0000000","inactiveDate":"0001-01-01T00:00:00.0000000"}],"resArriveDate":"0001-01-01T00:00:00.0000000","resDepartDate":"0001-01-01T00:00:00.0000000","currency":"String","roomType":"String","externalProfileID":"String","uniqueIDs":[{"id":"String","type":"String","context":"String"}]},"subscriptionId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"statusCode":"String","recordCount":0,"errorCount":0}