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.*;

public class dtos
{

    public static class ReservationStatusNoticePost
    {
        public ReservationStatusNotice noticeMessage = null;
        public String subscriptionId = null;
        
        public ReservationStatusNotice getNoticeMessage() { return noticeMessage; }
        public ReservationStatusNoticePost setNoticeMessage(ReservationStatusNotice value) { this.noticeMessage = value; return this; }
        public String getSubscriptionId() { return subscriptionId; }
        public ReservationStatusNoticePost setSubscriptionId(String value) { this.subscriptionId = value; return this; }
    }

    public static class ReservationStatusNotice
    {
        public String cendynPropertyId = null;
        public String externalResId1 = null;
        public String externalResId2 = null;
        public String resStatus = null;
        public String cancellationID = null;
        public Date cancellationDate = null;
        public Date dateResUpdated = null;
        public String resUpdatedBy = null;
        public String roomNumber = null;
        public Date roomNumberStartDate = null;
        public Date roomNumberEndDate = null;
        public ArrayList<StayHistoryRevenue> stayHistoryRevenueCollection = null;
        public Date resArriveDate = null;
        public Date resDepartDate = null;
        public String currency = null;
        public String roomType = null;
        public String externalProfileID = null;
        public ArrayList<UniqueIDType> uniqueIDs = null;
        
        public String getCendynPropertyId() { return cendynPropertyId; }
        public ReservationStatusNotice setCendynPropertyId(String value) { this.cendynPropertyId = value; return this; }
        public String getExternalResId1() { return externalResId1; }
        public ReservationStatusNotice setExternalResId1(String value) { this.externalResId1 = value; return this; }
        public String getExternalResId2() { return externalResId2; }
        public ReservationStatusNotice setExternalResId2(String value) { this.externalResId2 = value; return this; }
        public String getResStatus() { return resStatus; }
        public ReservationStatusNotice setResStatus(String value) { this.resStatus = value; return this; }
        public String getCancellationID() { return cancellationID; }
        public ReservationStatusNotice setCancellationID(String value) { this.cancellationID = value; return this; }
        public Date getCancellationDate() { return cancellationDate; }
        public ReservationStatusNotice setCancellationDate(Date value) { this.cancellationDate = value; return this; }
        public Date getDateResUpdated() { return dateResUpdated; }
        public ReservationStatusNotice setDateResUpdated(Date value) { this.dateResUpdated = value; return this; }
        public String getResUpdatedBy() { return resUpdatedBy; }
        public ReservationStatusNotice setResUpdatedBy(String value) { this.resUpdatedBy = value; return this; }
        public String getRoomNumber() { return roomNumber; }
        public ReservationStatusNotice setRoomNumber(String value) { this.roomNumber = value; return this; }
        public Date getRoomNumberStartDate() { return roomNumberStartDate; }
        public ReservationStatusNotice setRoomNumberStartDate(Date value) { this.roomNumberStartDate = value; return this; }
        public Date getRoomNumberEndDate() { return roomNumberEndDate; }
        public ReservationStatusNotice setRoomNumberEndDate(Date value) { this.roomNumberEndDate = value; return this; }
        public ArrayList<StayHistoryRevenue> getStayHistoryRevenueCollection() { return stayHistoryRevenueCollection; }
        public ReservationStatusNotice setStayHistoryRevenueCollection(ArrayList<StayHistoryRevenue> value) { this.stayHistoryRevenueCollection = value; return this; }
        public Date getResArriveDate() { return resArriveDate; }
        public ReservationStatusNotice setResArriveDate(Date value) { this.resArriveDate = value; return this; }
        public Date getResDepartDate() { return resDepartDate; }
        public ReservationStatusNotice setResDepartDate(Date value) { this.resDepartDate = value; return this; }
        public String getCurrency() { return currency; }
        public ReservationStatusNotice setCurrency(String value) { this.currency = value; return this; }
        public String getRoomType() { return roomType; }
        public ReservationStatusNotice setRoomType(String value) { this.roomType = value; return this; }
        public String getExternalProfileID() { return externalProfileID; }
        public ReservationStatusNotice setExternalProfileID(String value) { this.externalProfileID = value; return this; }
        public ArrayList<UniqueIDType> getUniqueIDs() { return uniqueIDs; }
        public ReservationStatusNotice setUniqueIDs(ArrayList<UniqueIDType> value) { this.uniqueIDs = value; return this; }
    }

    public static class StayHistoryRevenue
    {
        public String recordStatus = null;
        @DataMember(IsRequired=true)
        public String revenueGroup = null;

        @DataMember(IsRequired=true)
        public String revenueType = null;

        @DataMember(IsRequired=true)
        public BigDecimal amount = null;

        public String currencyCode = null;
        public String folioWindow = null;
        public Date transactionDate = null;
        public Date inactiveDate = null;
        
        public String getRecordStatus() { return recordStatus; }
        public StayHistoryRevenue setRecordStatus(String value) { this.recordStatus = value; return this; }
        public String getRevenueGroup() { return revenueGroup; }
        public StayHistoryRevenue setRevenueGroup(String value) { this.revenueGroup = value; return this; }
        public String getRevenueType() { return revenueType; }
        public StayHistoryRevenue setRevenueType(String value) { this.revenueType = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public StayHistoryRevenue setAmount(BigDecimal value) { this.amount = value; return this; }
        public String getCurrencyCode() { return currencyCode; }
        public StayHistoryRevenue setCurrencyCode(String value) { this.currencyCode = value; return this; }
        public String getFolioWindow() { return folioWindow; }
        public StayHistoryRevenue setFolioWindow(String value) { this.folioWindow = value; return this; }
        public Date getTransactionDate() { return transactionDate; }
        public StayHistoryRevenue setTransactionDate(Date value) { this.transactionDate = value; return this; }
        public Date getInactiveDate() { return inactiveDate; }
        public StayHistoryRevenue setInactiveDate(Date value) { this.inactiveDate = value; return this; }
    }

    public static class UniqueIDType
    {
        public String id = null;
        public String type = null;
        public String context = null;
        
        public String getId() { return id; }
        public UniqueIDType setId(String value) { this.id = value; return this; }
        public String getType() { return type; }
        public UniqueIDType setType(String value) { this.type = value; return this; }
        public String getContext() { return context; }
        public UniqueIDType setContext(String value) { this.context = value; return this; }
    }

    public static class Response
    {
        public String statusCode = null;
        public Integer recordCount = null;
        public Integer errorCount = null;
        
        public String getStatusCode() { return statusCode; }
        public Response setStatusCode(String value) { this.statusCode = value; return this; }
        public Integer getRecordCount() { return recordCount; }
        public Response setRecordCount(Integer value) { this.recordCount = value; return this; }
        public Integer getErrorCount() { return errorCount; }
        public Response setErrorCount(Integer value) { this.errorCount = value; return this; }
    }

}

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