/* Options: Date: 2026-10-08 22:15:53 Version: 6.21 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://cert.cendyn.com/CenResServiceR2Test //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: HotelInventoryRestriction.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/hotelinventoryrestriction/{SubscriptionId}/{CendynPropertyId}", Verbs="POST") public static class HotelInventoryRestriction implements IReturn { 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; } private static Object responseType = Response.class; public Object getResponseType() { return responseType; } } 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; } } 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; } } }