| GET | /v2/reservation/notice/{Query} | ||
|---|---|---|---|
| GET | /v2/reservation/notice/{Query}/{CendynPropertyId} |
namespace CenResSS.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
type RequestStatus =
| Success = 0
| Warning = 1
| Error = 2
| NotAuthorized = 3
| Failure = 4
[<AllowNullLiteral>]
type CenResResponse() =
member val Status:RequestStatus = new RequestStatus() with get,set
member val StatusMessage:String = null with get,set
member val RecordsReturned:Int32 = new Int32() with get,set
member val RecordsAvailable:Int32 = new Int32() with get,set
member val PageNumber:Int32 = new Int32() with get,set
member val PageSize: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 ReservationStatusNoticeResponse() =
inherit CenResResponse()
member val Records:ResizeArray<ReservationStatusNotice> = new ResizeArray<ReservationStatusNotice>() with get,set
type ReservationStatusNoticeQueryType =
| ResId = 0
| ProfileId = 1
| RoomId = 2
[<AllowNullLiteral>]
type ReservationStatusNoticeRequest() =
member val CendynPropertyId:String = null with get,set
member val Query:ReservationStatusNoticeQueryType = new ReservationStatusNoticeQueryType() with get,set
member val Id:String = null with get,set
member val StayDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
F# ReservationStatusNoticeRequest DTOs
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 /v2/reservation/notice/{Query} HTTP/1.1
Host: cert.cendyn.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ReservationStatusNoticeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenResSS.ServiceModel">
<PageNumber>0</PageNumber>
<PageSize>0</PageSize>
<RecordsAvailable>0</RecordsAvailable>
<RecordsReturned>0</RecordsReturned>
<Status>Success</Status>
<StatusMessage>String</StatusMessage>
<Records>
<ReservationStatusNotice>
<CancellationDate>0001-01-01T00:00:00</CancellationDate>
<CancellationID>String</CancellationID>
<CendynPropertyId>String</CendynPropertyId>
<Currency>String</Currency>
<DateResUpdated>0001-01-01T00:00:00</DateResUpdated>
<ExternalProfileID>String</ExternalProfileID>
<ExternalResId1>String</ExternalResId1>
<ExternalResId2>String</ExternalResId2>
<ResArriveDate>0001-01-01T00:00:00</ResArriveDate>
<ResDepartDate>0001-01-01T00:00:00</ResDepartDate>
<ResStatus>String</ResStatus>
<ResUpdatedBy>String</ResUpdatedBy>
<RoomNumber>String</RoomNumber>
<RoomNumberEndDate>0001-01-01T00:00:00</RoomNumberEndDate>
<RoomNumberStartDate>0001-01-01T00:00:00</RoomNumberStartDate>
<RoomType>String</RoomType>
<StayHistoryRevenueCollection>
<StayHistoryRevenue>
<Amount>0</Amount>
<CurrencyCode>String</CurrencyCode>
<FolioWindow>String</FolioWindow>
<InactiveDate>0001-01-01T00:00:00</InactiveDate>
<RecordStatus>String</RecordStatus>
<RevenueGroup>String</RevenueGroup>
<RevenueType>String</RevenueType>
<TransactionDate>0001-01-01T00:00:00</TransactionDate>
</StayHistoryRevenue>
</StayHistoryRevenueCollection>
<UniqueIDs>
<UniqueIDType>
<Context>String</Context>
<ID>String</ID>
<Type>String</Type>
</UniqueIDType>
</UniqueIDs>
</ReservationStatusNotice>
</Records>
</ReservationStatusNoticeResponse>