CenResService

<back to all web services

HotelInventorySnapshot

The following routes are available for this service:
POST/hotelinventorysnapshot/{SubscriptionId}/{CendynPropertyId}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class HotelInventorySnapshot
    {
        public InventorySnapshot inventorySnapshot = null;
        public String subscriptionId = null;
        public String cendynPropertyId = null;
        
        public InventorySnapshot getInventorySnapshot() { return inventorySnapshot; }
        public HotelInventorySnapshot setInventorySnapshot(InventorySnapshot value) { this.inventorySnapshot = value; return this; }
        public String getSubscriptionId() { return subscriptionId; }
        public HotelInventorySnapshot setSubscriptionId(String value) { this.subscriptionId = value; return this; }
        public String getCendynPropertyId() { return cendynPropertyId; }
        public HotelInventorySnapshot setCendynPropertyId(String value) { this.cendynPropertyId = value; return this; }
    }

    public static class InventorySnapshot
    {
        public String cendynPropertyID = null;
        public String hotelCode = null;
        public Date inventoryDay = null;
        public Integer physicalRooms = null;
        public Integer outOfOrder = null;
        public Integer definitiveSold = null;
        public Integer blockCount = null;
        public BigDecimal expectedBlockRevenue = null;
        public Integer casinoBlockCount = null;
        public BigDecimal expectedCasinoRevenue = null;
        public String sourceName = null;
        public String sourceID = null;
        public ArrayList<InventoryRoom> inventoryRooms = null;
        
        public String getCendynPropertyID() { return cendynPropertyID; }
        public InventorySnapshot setCendynPropertyID(String value) { this.cendynPropertyID = value; return this; }
        public String getHotelCode() { return hotelCode; }
        public InventorySnapshot setHotelCode(String value) { this.hotelCode = value; return this; }
        public Date getInventoryDay() { return inventoryDay; }
        public InventorySnapshot setInventoryDay(Date value) { this.inventoryDay = value; return this; }
        public Integer getPhysicalRooms() { return physicalRooms; }
        public InventorySnapshot setPhysicalRooms(Integer value) { this.physicalRooms = value; return this; }
        public Integer getOutOfOrder() { return outOfOrder; }
        public InventorySnapshot setOutOfOrder(Integer value) { this.outOfOrder = value; return this; }
        public Integer getDefinitiveSold() { return definitiveSold; }
        public InventorySnapshot setDefinitiveSold(Integer value) { this.definitiveSold = value; return this; }
        public Integer getBlockCount() { return blockCount; }
        public InventorySnapshot setBlockCount(Integer value) { this.blockCount = value; return this; }
        public BigDecimal getExpectedBlockRevenue() { return expectedBlockRevenue; }
        public InventorySnapshot setExpectedBlockRevenue(BigDecimal value) { this.expectedBlockRevenue = value; return this; }
        public Integer getCasinoBlockCount() { return casinoBlockCount; }
        public InventorySnapshot setCasinoBlockCount(Integer value) { this.casinoBlockCount = value; return this; }
        public BigDecimal getExpectedCasinoRevenue() { return expectedCasinoRevenue; }
        public InventorySnapshot setExpectedCasinoRevenue(BigDecimal value) { this.expectedCasinoRevenue = value; return this; }
        public String getSourceName() { return sourceName; }
        public InventorySnapshot setSourceName(String value) { this.sourceName = value; return this; }
        public String getSourceID() { return sourceID; }
        public InventorySnapshot setSourceID(String value) { this.sourceID = value; return this; }
        public ArrayList<InventoryRoom> getInventoryRooms() { return inventoryRooms; }
        public InventorySnapshot setInventoryRooms(ArrayList<InventoryRoom> value) { this.inventoryRooms = value; return this; }
    }

    public static class InventoryRoom
    {
        public String roomType = null;
        public Integer physicalRooms = null;
        public Integer outOfOrder = null;
        public Integer definitiveAvailable = null;
        public Integer definitiveSold = null;
        public Integer blockCount = null;
        public BigDecimal expectedBlockRevenue = null;
        public Integer casinoBlockCount = null;
        public BigDecimal expectedCasinoRevenue = null;
        
        public String getRoomType() { return roomType; }
        public InventoryRoom setRoomType(String value) { this.roomType = value; return this; }
        public Integer getPhysicalRooms() { return physicalRooms; }
        public InventoryRoom setPhysicalRooms(Integer value) { this.physicalRooms = value; return this; }
        public Integer getOutOfOrder() { return outOfOrder; }
        public InventoryRoom setOutOfOrder(Integer value) { this.outOfOrder = value; return this; }
        public Integer getDefinitiveAvailable() { return definitiveAvailable; }
        public InventoryRoom setDefinitiveAvailable(Integer value) { this.definitiveAvailable = value; return this; }
        public Integer getDefinitiveSold() { return definitiveSold; }
        public InventoryRoom setDefinitiveSold(Integer value) { this.definitiveSold = value; return this; }
        public Integer getBlockCount() { return blockCount; }
        public InventoryRoom setBlockCount(Integer value) { this.blockCount = value; return this; }
        public BigDecimal getExpectedBlockRevenue() { return expectedBlockRevenue; }
        public InventoryRoom setExpectedBlockRevenue(BigDecimal value) { this.expectedBlockRevenue = value; return this; }
        public Integer getCasinoBlockCount() { return casinoBlockCount; }
        public InventoryRoom setCasinoBlockCount(Integer value) { this.casinoBlockCount = value; return this; }
        public BigDecimal getExpectedCasinoRevenue() { return expectedCasinoRevenue; }
        public InventoryRoom setExpectedCasinoRevenue(BigDecimal value) { this.expectedCasinoRevenue = 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 HotelInventorySnapshot 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 /hotelinventorysnapshot/{SubscriptionId}/{CendynPropertyId} HTTP/1.1 
Host: cert.cendyn.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<HotelInventorySnapshot xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenResSS.ServiceModel">
  <CendynPropertyId>String</CendynPropertyId>
  <InventorySnapshot>
    <BlockCount>0</BlockCount>
    <CasinoBlockCount>0</CasinoBlockCount>
    <CendynPropertyID>String</CendynPropertyID>
    <DefinitiveSold>0</DefinitiveSold>
    <ExpectedBlockRevenue>0</ExpectedBlockRevenue>
    <ExpectedCasinoRevenue>0</ExpectedCasinoRevenue>
    <HotelCode>String</HotelCode>
    <InventoryDay>0001-01-01T00:00:00</InventoryDay>
    <InventoryRooms>
      <InventoryRoom>
        <BlockCount>0</BlockCount>
        <CasinoBlockCount>0</CasinoBlockCount>
        <DefinitiveAvailable>0</DefinitiveAvailable>
        <DefinitiveSold>0</DefinitiveSold>
        <ExpectedBlockRevenue>0</ExpectedBlockRevenue>
        <ExpectedCasinoRevenue>0</ExpectedCasinoRevenue>
        <OutOfOrder>0</OutOfOrder>
        <PhysicalRooms>0</PhysicalRooms>
        <RoomType>String</RoomType>
      </InventoryRoom>
    </InventoryRooms>
    <OutOfOrder>0</OutOfOrder>
    <PhysicalRooms>0</PhysicalRooms>
    <SourceID>String</SourceID>
    <SourceName>String</SourceName>
  </InventorySnapshot>
  <SubscriptionId>String</SubscriptionId>
</HotelInventorySnapshot>
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>