CenResService

<back to all web services

ReservationStatusNoticePost

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

namespace Cendyn.CenRes.DataLib.Models
{
    public partial class ReservationStatusNotice
    {
        public ReservationStatusNotice()
        {
            StayHistoryRevenueCollection = new List<StayHistoryRevenue>{};
            UniqueIDs = new List<UniqueIDType>{};
        }

        public virtual string CendynPropertyId { get; set; }
        public virtual string ExternalResId1 { get; set; }
        public virtual string ExternalResId2 { get; set; }
        public virtual string ResStatus { get; set; }
        public virtual string CancellationID { get; set; }
        public virtual DateTime? CancellationDate { get; set; }
        public virtual DateTime? DateResUpdated { get; set; }
        public virtual string ResUpdatedBy { get; set; }
        public virtual string RoomNumber { get; set; }
        public virtual DateTime? RoomNumberStartDate { get; set; }
        public virtual DateTime? RoomNumberEndDate { get; set; }
        public virtual List<StayHistoryRevenue> StayHistoryRevenueCollection { get; set; }
        public virtual DateTime? ResArriveDate { get; set; }
        public virtual DateTime? ResDepartDate { get; set; }
        public virtual string Currency { get; set; }
        public virtual string RoomType { get; set; }
        public virtual string ExternalProfileID { get; set; }
        public virtual List<UniqueIDType> UniqueIDs { get; set; }
    }

    public partial class Response
    {
        public virtual string StatusCode { get; set; }
        public virtual int RecordCount { get; set; }
        public virtual int ErrorCount { get; set; }
    }

    public partial class StayHistoryRevenue
    {
        public virtual string RecordStatus { get; set; }
        [DataMember(IsRequired=true)]
        public virtual string RevenueGroup { get; set; }

        [DataMember(IsRequired=true)]
        public virtual string RevenueType { get; set; }

        [DataMember(IsRequired=true)]
        public virtual decimal Amount { get; set; }

        public virtual string CurrencyCode { get; set; }
        public virtual string FolioWindow { get; set; }
        public virtual DateTime? TransactionDate { get; set; }
        public virtual DateTime? InactiveDate { get; set; }
    }

    public partial class UniqueIDType
    {
        public virtual string ID { get; set; }
        public virtual string Type { get; set; }
        public virtual string Context { get; set; }
    }

}

namespace CenResSS.ServiceModel
{
    public partial class ReservationStatusNoticePost
    {
        public virtual ReservationStatusNotice NoticeMessage { get; set; }
        public virtual string SubscriptionId { get; set; }
    }

}

C# 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}