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}
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class ResSummaryRequest
{
    var cendynPropertyId:String? = null
    var query:ReservationQueryType? = null
    var id:String? = null
    var firstName:String? = null
    var lastName:String? = null
    var startDate:Date? = null
    var endDate:Date? = null
    @DataMember(Name="Limit")
    @SerializedName("Limit")
    var pageSize:Int? = null

    @DataMember(Name="Page")
    @SerializedName("Page")
    var pageNumber:Int? = null
}

enum class ReservationQueryType
{
    ResId,
    ProfileId,
    Name,
    LastUpdated,
    ArrivalDate,
    DepartureDate,
    StayDate,
    DatePMSResUpdated,
}

open class ResSummaryResponse : CenResResponse()
{
    var records:ArrayList<ReservationSummary> = ArrayList<ReservationSummary>()
}

open class CenResResponse
{
    var status:RequestStatus? = null
    var statusMessage:String? = null
    var recordsReturned:Int? = null
    var recordsAvailable:Int? = null
    var pageNumber:Int? = null
    var pageSize:Int? = null
}

enum class RequestStatus
{
    Success,
    Warning,
    Error,
    NotAuthorized,
    Failure,
}

open class ReservationSummary
{
    var firstName:String? = null
    var lastName:String? = null
    var externalProfileId:String? = null
    var externalProfileId2:String? = null
    var externalResID1:String? = null
    var externalResID2:String? = null
    var cendynPropertyId:String? = null
    var propertyName:String? = null
    var resTypeCode:String? = null
    var resStatusCode:String? = null
    var confirmationNum:String? = null
    var centralResNum:String? = null
    var resArriveDate:Date? = null
    var resDepartDate:Date? = null
    var numRooms:Int? = null
    var roomTypeCode:String? = null
    var roomNumber:String? = null
    var rateCode:String? = null
    var marketSegmentCode:String? = null
    var marketCodeCategory:String? = null
    var marketRegionCode:String? = null
    var companyName:String? = null
    var numAdults:Int? = null
    var numYouths:Int? = null
    var numChildren:Int? = null
    var totalRoomNights:Int? = null
    var cancellationID:String? = null
    var cancellationDate:Date? = null
    var totalOtherRevenue:BigDecimal? = null
    var totalRoomRevenue:BigDecimal? = null
    var totalTax:BigDecimal? = null
    var totalRevenue:BigDecimal? = null
    var lastUpdated:Date? = null
}

Kotlin 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}