| POST | /stayhistory/{SubscriptionId}/{CendynPropertyId} |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CenResSS.ServiceModel
Imports Cendyn.CenRes.DataLib.Models
Namespace Global
Namespace Cendyn.CenRes.DataLib.Models
Public Partial Class Response
Public Overridable Property StatusCode As String
Public Overridable Property RecordCount As Integer
Public Overridable Property ErrorCount As Integer
End Class
Public Partial Class StayHistory
Public Sub New()
UniqueIDs = New List(Of UniqueIDType)
StayHistoryRevenueCollection = New List(Of StayHistoryRevenue)
StayHistoryDailyRateCollection = New List(Of StayHistoryDailyRate)
End Sub
Public Overridable Property CendynPropertyID As String
Public Overridable Property ResortID As String
Public Overridable Property ExternalProfileID1 As String
Public Overridable Property ExternalResId1 As String
Public Overridable Property CRSBookNo As String
Public Overridable Property ResortBookNo As String
Public Overridable Property ResortLegNo As Nullable(Of Integer)
Public Overridable Property ConfirmationID As String
Public Overridable Property ReservationStatus As String
Public Overridable Property HasDailyRooms As Nullable(Of Boolean)
Public Overridable Property RateRoomType As String
Public Overridable Property ActualArrivalDate As Nullable(Of Date)
Public Overridable Property ActualDepartureDate As Nullable(Of Date)
Public Overridable Property BookDate As Nullable(Of Date)
Public Overridable Property BookedArrivalDate As Nullable(Of Date)
Public Overridable Property BookedDepartureDate As Nullable(Of Date)
Public Overridable Property CompYN As String
Public Overridable Property Adults As Nullable(Of Integer)
Public Overridable Property Children As Nullable(Of Integer)
Public Overridable Property RoomCategory As String
Public Overridable Property RoomNumber As String
Public Overridable Property RateAmount As Nullable(Of Decimal)
Public Overridable Property RateCode As String
Public Overridable Property RateAmountCurrencyCode As String
Public Overridable Property CurrencyCode As String
Public Overridable Property SourceCode As String
Public Overridable Property MarketCode As String
Public Overridable Property TravelAgentID As String
Public Overridable Property CompanyID As String
Public Overridable Property Channel As String
Public Overridable Property PaymentMethod As String
Public Overridable Property RateCurrencyCode As String
Public Overridable Property TotalRevenue As Nullable(Of Decimal)
Public Overridable Property RoomRevenue As Nullable(Of Decimal)
Public Overridable Property FbRevenue As Nullable(Of Decimal)
Public Overridable Property MembershipType As String
Public Overridable Property MembershipID As String
Public Overridable Property TransactionID As String
Public Overridable Property TransactionStatus As String
Public Overridable Property UniqueIDs As List(Of UniqueIDType)
Public Overridable Property StayHistoryRevenueCollection As List(Of StayHistoryRevenue)
Public Overridable Property StayHistoryDailyRateCollection As List(Of StayHistoryDailyRate)
End Class
Public Partial Class StayHistoryContainer
Public Sub New()
StayHistoryList = New List(Of StayHistory)
End Sub
Public Overridable Property EchoToken As String
Public Overridable Property StayHistoryList As List(Of StayHistory)
End Class
Public Partial Class StayHistoryDailyRate
Public Overridable Property RecordStatus As String
Public Overridable Property TransactionDate As Nullable(Of Date)
Public Overridable Property RateCode As String
Public Overridable Property MarketCode As String
Public Overridable Property Amount As Decimal
Public Overridable Property CurrencyCode As String
Public Overridable Property RoomNumber As String
Public Overridable Property ResourceID As String
Public Overridable Property PseudoRoom As String
Public Overridable Property RoomCategory As String
Public Overridable Property RateRoomType As String
Public Overridable Property InactiveDate As Nullable(Of Date)
End Class
Public Partial Class StayHistoryRevenue
Public Overridable Property RecordStatus As String
<DataMember(IsRequired:=true)>
Public Overridable Property RevenueGroup As String
<DataMember(IsRequired:=true)>
Public Overridable Property RevenueType As String
<DataMember(IsRequired:=true)>
Public Overridable Property Amount As Decimal
Public Overridable Property CurrencyCode As String
Public Overridable Property FolioWindow As String
Public Overridable Property TransactionDate As Nullable(Of Date)
Public Overridable Property InactiveDate As Nullable(Of Date)
End Class
Public Partial Class UniqueIDType
Public Overridable Property ID As String
Public Overridable Property Type As String
Public Overridable Property Context As String
End Class
End Namespace
Namespace CenResSS.ServiceModel
Public Partial Class StayHistoryPost
Public Overridable Property StayHistoryContainer As StayHistoryContainer
Public Overridable Property SubscriptionId As String
Public Overridable Property CendynPropertyId As String
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /stayhistory/{SubscriptionId}/{CendynPropertyId} HTTP/1.1
Host: cert.cendyn.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<StayHistoryPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenResSS.ServiceModel">
<CendynPropertyId>String</CendynPropertyId>
<StayHistoryContainer>
<EchoToken>String</EchoToken>
<StayHistoryList>
<StayHistory>
<ActualArrivalDate>0001-01-01T00:00:00</ActualArrivalDate>
<ActualDepartureDate>0001-01-01T00:00:00</ActualDepartureDate>
<Adults>0</Adults>
<BookDate>0001-01-01T00:00:00</BookDate>
<BookedArrivalDate>0001-01-01T00:00:00</BookedArrivalDate>
<BookedDepartureDate>0001-01-01T00:00:00</BookedDepartureDate>
<CRSBookNo>String</CRSBookNo>
<CendynPropertyID>String</CendynPropertyID>
<Channel>String</Channel>
<Children>0</Children>
<CompYN>String</CompYN>
<CompanyID>String</CompanyID>
<ConfirmationID>String</ConfirmationID>
<CurrencyCode>String</CurrencyCode>
<ExternalProfileID1>String</ExternalProfileID1>
<ExternalResId1>String</ExternalResId1>
<FbRevenue>0</FbRevenue>
<HasDailyRooms>false</HasDailyRooms>
<MarketCode>String</MarketCode>
<MembershipID>String</MembershipID>
<MembershipType>String</MembershipType>
<PaymentMethod>String</PaymentMethod>
<RateAmount>0</RateAmount>
<RateAmountCurrencyCode>String</RateAmountCurrencyCode>
<RateCode>String</RateCode>
<RateCurrencyCode>String</RateCurrencyCode>
<RateRoomType>String</RateRoomType>
<ReservationStatus>String</ReservationStatus>
<ResortBookNo>String</ResortBookNo>
<ResortID>String</ResortID>
<ResortLegNo>0</ResortLegNo>
<RoomCategory>String</RoomCategory>
<RoomNumber>String</RoomNumber>
<RoomRevenue>0</RoomRevenue>
<SourceCode>String</SourceCode>
<StayHistoryDailyRateCollection>
<StayHistoryDailyRate>
<Amount>0</Amount>
<CurrencyCode>String</CurrencyCode>
<InactiveDate>0001-01-01T00:00:00</InactiveDate>
<MarketCode>String</MarketCode>
<PseudoRoom>String</PseudoRoom>
<RateCode>String</RateCode>
<RateRoomType>String</RateRoomType>
<RecordStatus>String</RecordStatus>
<ResourceID>String</ResourceID>
<RoomCategory>String</RoomCategory>
<RoomNumber>String</RoomNumber>
<TransactionDate>0001-01-01T00:00:00</TransactionDate>
</StayHistoryDailyRate>
</StayHistoryDailyRateCollection>
<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>
<TotalRevenue>0</TotalRevenue>
<TransactionID>String</TransactionID>
<TransactionStatus>String</TransactionStatus>
<TravelAgentID>String</TravelAgentID>
<UniqueIDs>
<UniqueIDType>
<Context>String</Context>
<ID>String</ID>
<Type>String</Type>
</UniqueIDType>
</UniqueIDs>
</StayHistory>
</StayHistoryList>
</StayHistoryContainer>
<SubscriptionId>String</SubscriptionId>
</StayHistoryPost>
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>