CenResService

<back to all web services

HotelInventoryRestriction

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

public class dtos
{

    public static class HotelInventoryRestriction
    {
        public InventoryRestriction inventoryRestriction = null;
        public String subscriptionId = null;
        public String cendynPropertyId = null;
        
        public InventoryRestriction getInventoryRestriction() { return inventoryRestriction; }
        public HotelInventoryRestriction setInventoryRestriction(InventoryRestriction value) { this.inventoryRestriction = value; return this; }
        public String getSubscriptionId() { return subscriptionId; }
        public HotelInventoryRestriction setSubscriptionId(String value) { this.subscriptionId = value; return this; }
        public String getCendynPropertyId() { return cendynPropertyId; }
        public HotelInventoryRestriction setCendynPropertyId(String value) { this.cendynPropertyId = value; return this; }
    }

    public static class InventoryRestriction
    {
        public String hotelCode = null;
        public String restrictionType = null;
        public String restrictionCode = null;
        public String restrictRateBy = null;
        public String restrictRoomBy = null;
        public String rateCode = null;
        public String roomCode = null;
        public String roomClass = null;
        public Date startDate = null;
        public Date endDate = null;
        public Boolean available = null;
        public Integer minLOS = null;
        public Integer minLOSThruStay = null;
        public Integer maxLOS = null;
        public Integer maxLOSThruStay = null;
        public Boolean closedToArrival = null;
        public Boolean closedToDeparture = null;
        public Boolean includeMonday = null;
        public Boolean includeTuesday = null;
        public Boolean includeWednesday = null;
        public Boolean includeThursday = null;
        public Boolean includeFriday = null;
        public Boolean includeSaturday = null;
        public Boolean includeSunday = null;
        public String sourceName = null;
        public String sourceID = null;
        
        public String getHotelCode() { return hotelCode; }
        public InventoryRestriction setHotelCode(String value) { this.hotelCode = value; return this; }
        public String getRestrictionType() { return restrictionType; }
        public InventoryRestriction setRestrictionType(String value) { this.restrictionType = value; return this; }
        public String getRestrictionCode() { return restrictionCode; }
        public InventoryRestriction setRestrictionCode(String value) { this.restrictionCode = value; return this; }
        public String getRestrictRateBy() { return restrictRateBy; }
        public InventoryRestriction setRestrictRateBy(String value) { this.restrictRateBy = value; return this; }
        public String getRestrictRoomBy() { return restrictRoomBy; }
        public InventoryRestriction setRestrictRoomBy(String value) { this.restrictRoomBy = value; return this; }
        public String getRateCode() { return rateCode; }
        public InventoryRestriction setRateCode(String value) { this.rateCode = value; return this; }
        public String getRoomCode() { return roomCode; }
        public InventoryRestriction setRoomCode(String value) { this.roomCode = value; return this; }
        public String getRoomClass() { return roomClass; }
        public InventoryRestriction setRoomClass(String value) { this.roomClass = value; return this; }
        public Date getStartDate() { return startDate; }
        public InventoryRestriction setStartDate(Date value) { this.startDate = value; return this; }
        public Date getEndDate() { return endDate; }
        public InventoryRestriction setEndDate(Date value) { this.endDate = value; return this; }
        public Boolean isAvailable() { return available; }
        public InventoryRestriction setAvailable(Boolean value) { this.available = value; return this; }
        public Integer getMinLOS() { return minLOS; }
        public InventoryRestriction setMinLOS(Integer value) { this.minLOS = value; return this; }
        public Integer getMinLOSThruStay() { return minLOSThruStay; }
        public InventoryRestriction setMinLOSThruStay(Integer value) { this.minLOSThruStay = value; return this; }
        public Integer getMaxLOS() { return maxLOS; }
        public InventoryRestriction setMaxLOS(Integer value) { this.maxLOS = value; return this; }
        public Integer getMaxLOSThruStay() { return maxLOSThruStay; }
        public InventoryRestriction setMaxLOSThruStay(Integer value) { this.maxLOSThruStay = value; return this; }
        public Boolean isClosedToArrival() { return closedToArrival; }
        public InventoryRestriction setClosedToArrival(Boolean value) { this.closedToArrival = value; return this; }
        public Boolean isClosedToDeparture() { return closedToDeparture; }
        public InventoryRestriction setClosedToDeparture(Boolean value) { this.closedToDeparture = value; return this; }
        public Boolean isIncludeMonday() { return includeMonday; }
        public InventoryRestriction setIncludeMonday(Boolean value) { this.includeMonday = value; return this; }
        public Boolean isIncludeTuesday() { return includeTuesday; }
        public InventoryRestriction setIncludeTuesday(Boolean value) { this.includeTuesday = value; return this; }
        public Boolean isIncludeWednesday() { return includeWednesday; }
        public InventoryRestriction setIncludeWednesday(Boolean value) { this.includeWednesday = value; return this; }
        public Boolean isIncludeThursday() { return includeThursday; }
        public InventoryRestriction setIncludeThursday(Boolean value) { this.includeThursday = value; return this; }
        public Boolean isIncludeFriday() { return includeFriday; }
        public InventoryRestriction setIncludeFriday(Boolean value) { this.includeFriday = value; return this; }
        public Boolean isIncludeSaturday() { return includeSaturday; }
        public InventoryRestriction setIncludeSaturday(Boolean value) { this.includeSaturday = value; return this; }
        public Boolean isIncludeSunday() { return includeSunday; }
        public InventoryRestriction setIncludeSunday(Boolean value) { this.includeSunday = value; return this; }
        public String getSourceName() { return sourceName; }
        public InventoryRestriction setSourceName(String value) { this.sourceName = value; return this; }
        public String getSourceID() { return sourceID; }
        public InventoryRestriction setSourceID(String value) { this.sourceID = 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 HotelInventoryRestriction 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 /hotelinventoryrestriction/{SubscriptionId}/{CendynPropertyId} HTTP/1.1 
Host: cert.cendyn.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"inventoryRestriction":{"hotelCode":"String","restrictionType":"String","restrictionCode":"String","restrictRateBy":"String","restrictRoomBy":"String","rateCode":"String","roomCode":"String","roomClass":"String","startDate":"0001-01-01T00:00:00.0000000","endDate":"0001-01-01T00:00:00.0000000","available":false,"minLOS":0,"minLOSThruStay":0,"maxLOS":0,"maxLOSThruStay":0,"closedToArrival":false,"closedToDeparture":false,"includeMonday":false,"includeTuesday":false,"includeWednesday":false,"includeThursday":false,"includeFriday":false,"includeSaturday":false,"includeSunday":false,"sourceName":"String","sourceID":"String"},"subscriptionId":"String","cendynPropertyId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"statusCode":"String","recordCount":0,"errorCount":0}