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


open class ReservationStatusNoticeRequest
{
    var cendynPropertyId:String? = null
    var query:ReservationStatusNoticeQueryType? = null
    var id:String? = null
    var stayDate:Date? = null
}

enum class ReservationStatusNoticeQueryType
{
    ResId,
    ProfileId,
    RoomId,
}

open class ReservationStatusNoticeResponse : CenResResponse()
{
    var records:ArrayList<ReservationStatusNotice> = ArrayList<ReservationStatusNotice>()
}

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 ReservationStatusNotice
{
    var cendynPropertyId:String? = null
    var externalResId1:String? = null
    var externalResId2:String? = null
    var resStatus:String? = null
    var cancellationID:String? = null
    var cancellationDate:Date? = null
    var dateResUpdated:Date? = null
    var resUpdatedBy:String? = null
    var roomNumber:String? = null
    var roomNumberStartDate:Date? = null
    var roomNumberEndDate:Date? = null
    var stayHistoryRevenueCollection:ArrayList<StayHistoryRevenue> = ArrayList<StayHistoryRevenue>()
    var resArriveDate:Date? = null
    var resDepartDate:Date? = null
    var currency:String? = null
    var roomType:String? = null
    var externalProfileID:String? = null
    var uniqueIDs:ArrayList<UniqueIDType> = ArrayList<UniqueIDType>()
}

open class StayHistoryRevenue
{
    var recordStatus:String? = null
    @DataMember(IsRequired=true)
    var revenueGroup:String? = null

    @DataMember(IsRequired=true)
    var revenueType:String? = null

    @DataMember(IsRequired=true)
    var amount:BigDecimal? = null

    var currencyCode:String? = null
    var folioWindow:String? = null
    var transactionDate:Date? = null
    var inactiveDate:Date? = null
}

open class UniqueIDType
{
    var id:String? = null
    @SerializedName("type") var Type:String? = null
    var context:String? = null
}

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