CenResService

<back to all web services

ResSummaryRequest

The following routes are available for this service:
GET/v2/reservation/summary/{Query}
GET/v2/reservation/summary/{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 ReservationSummary() = 
        member val FirstName:String = null with get,set
        member val LastName:String = null with get,set
        member val ExternalProfileId:String = null with get,set
        member val ExternalProfileId2:String = null with get,set
        member val ExternalResID1:String = null with get,set
        member val ExternalResID2:String = null with get,set
        member val CendynPropertyId:String = null with get,set
        member val PropertyName:String = null with get,set
        member val ResTypeCode:String = null with get,set
        member val ResStatusCode:String = null with get,set
        member val ConfirmationNum:String = null with get,set
        member val CentralResNum:String = null 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 NumRooms:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val RoomTypeCode:String = null with get,set
        member val RoomNumber:String = null with get,set
        member val RateCode:String = null with get,set
        member val MarketSegmentCode:String = null with get,set
        member val MarketCodeCategory:String = null with get,set
        member val MarketRegionCode:String = null with get,set
        member val CompanyName:String = null with get,set
        member val NumAdults:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val NumYouths:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val NumChildren:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val TotalRoomNights:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val CancellationID:String = null with get,set
        member val CancellationDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val TotalOtherRevenue:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val TotalRoomRevenue:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val TotalTax:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val TotalRevenue:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val LastUpdated:DateTime = new DateTime() with get,set

    [<AllowNullLiteral>]
    type ResSummaryResponse() = 
        inherit CenResResponse()
        member val Records:ResizeArray<ReservationSummary> = new ResizeArray<ReservationSummary>() with get,set

    type ReservationQueryType =
        | ResId = 0
        | ProfileId = 1
        | Name = 2
        | LastUpdated = 3
        | ArrivalDate = 4
        | DepartureDate = 5
        | StayDate = 6
        | DatePMSResUpdated = 7

    [<AllowNullLiteral>]
    type ResSummaryRequest() = 
        member val CendynPropertyId:String = null with get,set
        member val Query:ReservationQueryType = new ReservationQueryType() with get,set
        member val Id:String = null with get,set
        member val FirstName:String = null with get,set
        member val LastName:String = null with get,set
        member val StartDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val EndDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        [<DataMember(Name="Limit")>]
        member val PageSize:Int32 = new Int32() with get,set

        [<DataMember(Name="Page")>]
        member val PageNumber:Int32 = new Int32() with get,set

F# ResSummaryRequest 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/summary/{Query} HTTP/1.1 
Host: cert.cendyn.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"records":[{"firstName":"String","lastName":"String","externalProfileId":"String","externalProfileId2":"String","externalResID1":"String","externalResID2":"String","cendynPropertyId":"String","propertyName":"String","resTypeCode":"String","resStatusCode":"String","confirmationNum":"String","centralResNum":"String","resArriveDate":"0001-01-01T00:00:00.0000000","resDepartDate":"0001-01-01T00:00:00.0000000","numRooms":0,"roomTypeCode":"String","roomNumber":"String","rateCode":"String","marketSegmentCode":"String","marketCodeCategory":"String","marketRegionCode":"String","companyName":"String","numAdults":0,"numYouths":0,"numChildren":0,"totalRoomNights":0,"cancellationID":"String","cancellationDate":"0001-01-01T00:00:00.0000000","totalOtherRevenue":0,"totalRoomRevenue":0,"totalTax":0,"totalRevenue":0,"lastUpdated":"0001-01-01T00:00:00.0000000"}],"status":"Success","statusMessage":"String","recordsReturned":0,"recordsAvailable":0,"pageNumber":0,"pageSize":0}