CenResService

<back to all web services

ReservationStatusNoticePost

The following routes are available for this service:
POST/reservation/notice/{SubscriptionId}
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class ReservationStatusNoticePost
{
    var noticeMessage:ReservationStatusNotice? = null
    var subscriptionId:String? = null
}

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
}

open class Response
{
    var statusCode:String? = null
    var recordCount:Int? = null
    var errorCount:Int? = null
}

Kotlin ReservationStatusNoticePost 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.

POST /reservation/notice/{SubscriptionId} HTTP/1.1 
Host: cert.cendyn.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"noticeMessage":{"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"}]},"subscriptionId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"statusCode":"String","recordCount":0,"errorCount":0}