| GET | /v2/reservation/notice/{Query} | ||
|---|---|---|---|
| GET | /v2/reservation/notice/{Query}/{CendynPropertyId} |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ReservationStatusNoticeRequest
{
public String cendynPropertyId = null;
public ReservationStatusNoticeQueryType query = null;
public String id = null;
public Date stayDate = null;
public String getCendynPropertyId() { return cendynPropertyId; }
public ReservationStatusNoticeRequest setCendynPropertyId(String value) { this.cendynPropertyId = value; return this; }
public ReservationStatusNoticeQueryType getQuery() { return query; }
public ReservationStatusNoticeRequest setQuery(ReservationStatusNoticeQueryType value) { this.query = value; return this; }
public String getId() { return id; }
public ReservationStatusNoticeRequest setId(String value) { this.id = value; return this; }
public Date getStayDate() { return stayDate; }
public ReservationStatusNoticeRequest setStayDate(Date value) { this.stayDate = value; return this; }
}
public static enum ReservationStatusNoticeQueryType
{
ResId,
ProfileId,
RoomId;
}
public static class ReservationStatusNoticeResponse extends CenResResponse
{
public ArrayList<ReservationStatusNotice> records = null;
public ArrayList<ReservationStatusNotice> getRecords() { return records; }
public ReservationStatusNoticeResponse setRecords(ArrayList<ReservationStatusNotice> value) { this.records = value; return this; }
}
public static class CenResResponse
{
public RequestStatus status = null;
public String statusMessage = null;
public Integer recordsReturned = null;
public Integer recordsAvailable = null;
public Integer pageNumber = null;
public Integer pageSize = null;
public RequestStatus getStatus() { return status; }
public CenResResponse setStatus(RequestStatus value) { this.status = value; return this; }
public String getStatusMessage() { return statusMessage; }
public CenResResponse setStatusMessage(String value) { this.statusMessage = value; return this; }
public Integer getRecordsReturned() { return recordsReturned; }
public CenResResponse setRecordsReturned(Integer value) { this.recordsReturned = value; return this; }
public Integer getRecordsAvailable() { return recordsAvailable; }
public CenResResponse setRecordsAvailable(Integer value) { this.recordsAvailable = value; return this; }
public Integer getPageNumber() { return pageNumber; }
public CenResResponse setPageNumber(Integer value) { this.pageNumber = value; return this; }
public Integer getPageSize() { return pageSize; }
public CenResResponse setPageSize(Integer value) { this.pageSize = value; return this; }
}
public static enum RequestStatus
{
Success,
Warning,
Error,
NotAuthorized,
Failure;
}
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; }
}
}
Java ReservationStatusNoticeRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v2/reservation/notice/{Query} HTTP/1.1
Host: cert.cendyn.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"records":[{"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"}]}],"status":"Success","statusMessage":"String","recordsReturned":0,"recordsAvailable":0,"pageNumber":0,"pageSize":0}