CenResService

<back to all web services

ReservationStatusNoticePost

The following routes are available for this service:
POST/reservation/notice/{SubscriptionId}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CenResSS.ServiceModel
Imports Cendyn.CenRes.DataLib.Models

Namespace Global

    Namespace Cendyn.CenRes.DataLib.Models

        Public Partial Class ReservationStatusNotice
            Public Sub New()
                StayHistoryRevenueCollection = New List(Of StayHistoryRevenue)
                UniqueIDs = New List(Of UniqueIDType)
            End Sub

            Public Overridable Property CendynPropertyId As String
            Public Overridable Property ExternalResId1 As String
            Public Overridable Property ExternalResId2 As String
            Public Overridable Property ResStatus As String
            Public Overridable Property CancellationID As String
            Public Overridable Property CancellationDate As Nullable(Of Date)
            Public Overridable Property DateResUpdated As Nullable(Of Date)
            Public Overridable Property ResUpdatedBy As String
            Public Overridable Property RoomNumber As String
            Public Overridable Property RoomNumberStartDate As Nullable(Of Date)
            Public Overridable Property RoomNumberEndDate As Nullable(Of Date)
            Public Overridable Property StayHistoryRevenueCollection As List(Of StayHistoryRevenue)
            Public Overridable Property ResArriveDate As Nullable(Of Date)
            Public Overridable Property ResDepartDate As Nullable(Of Date)
            Public Overridable Property Currency As String
            Public Overridable Property RoomType As String
            Public Overridable Property ExternalProfileID As String
            Public Overridable Property UniqueIDs As List(Of UniqueIDType)
        End Class

        Public Partial Class Response
            Public Overridable Property StatusCode As String
            Public Overridable Property RecordCount As Integer
            Public Overridable Property ErrorCount As Integer
        End Class

        Public Partial Class StayHistoryRevenue
            Public Overridable Property RecordStatus As String
            <DataMember(IsRequired:=true)>
            Public Overridable Property RevenueGroup As String

            <DataMember(IsRequired:=true)>
            Public Overridable Property RevenueType As String

            <DataMember(IsRequired:=true)>
            Public Overridable Property Amount As Decimal

            Public Overridable Property CurrencyCode As String
            Public Overridable Property FolioWindow As String
            Public Overridable Property TransactionDate As Nullable(Of Date)
            Public Overridable Property InactiveDate As Nullable(Of Date)
        End Class

        Public Partial Class UniqueIDType
            Public Overridable Property ID As String
            Public Overridable Property Type As String
            Public Overridable Property Context As String
        End Class
    End Namespace

    Namespace CenResSS.ServiceModel

        Public Partial Class ReservationStatusNoticePost
            Public Overridable Property NoticeMessage As ReservationStatusNotice
            Public Overridable Property SubscriptionId As String
        End Class
    End Namespace
End Namespace

VB.NET 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}