CenResService

<back to all web services

ReservationStatusNoticeRequest

The following routes are available for this service:
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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"records":[{"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"}]}],"status":"Success","statusMessage":"String","recordsReturned":0,"recordsAvailable":0,"pageNumber":0,"pageSize":0}