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 .xml suffix or ?format=xml

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<ReservationStatusNoticePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenResSS.ServiceModel">
  <NoticeMessage>
    <CancellationDate>0001-01-01T00:00:00</CancellationDate>
    <CancellationID>String</CancellationID>
    <CendynPropertyId>String</CendynPropertyId>
    <Currency>String</Currency>
    <DateResUpdated>0001-01-01T00:00:00</DateResUpdated>
    <ExternalProfileID>String</ExternalProfileID>
    <ExternalResId1>String</ExternalResId1>
    <ExternalResId2>String</ExternalResId2>
    <ResArriveDate>0001-01-01T00:00:00</ResArriveDate>
    <ResDepartDate>0001-01-01T00:00:00</ResDepartDate>
    <ResStatus>String</ResStatus>
    <ResUpdatedBy>String</ResUpdatedBy>
    <RoomNumber>String</RoomNumber>
    <RoomNumberEndDate>0001-01-01T00:00:00</RoomNumberEndDate>
    <RoomNumberStartDate>0001-01-01T00:00:00</RoomNumberStartDate>
    <RoomType>String</RoomType>
    <StayHistoryRevenueCollection>
      <StayHistoryRevenue>
        <Amount>0</Amount>
        <CurrencyCode>String</CurrencyCode>
        <FolioWindow>String</FolioWindow>
        <InactiveDate>0001-01-01T00:00:00</InactiveDate>
        <RecordStatus>String</RecordStatus>
        <RevenueGroup>String</RevenueGroup>
        <RevenueType>String</RevenueType>
        <TransactionDate>0001-01-01T00:00:00</TransactionDate>
      </StayHistoryRevenue>
    </StayHistoryRevenueCollection>
    <UniqueIDs>
      <UniqueIDType>
        <Context>String</Context>
        <ID>String</ID>
        <Type>String</Type>
      </UniqueIDType>
    </UniqueIDs>
  </NoticeMessage>
  <SubscriptionId>String</SubscriptionId>
</ReservationStatusNoticePost>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenResSS.ServiceModel">
  <ErrorCount>0</ErrorCount>
  <RecordCount>0</RecordCount>
  <StatusCode>String</StatusCode>
</Response>