| POST | /acknowlegement/{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 Acknowledgement
Public Sub New()
UniqueIDs = New List(Of UniqueIDType)
Messages = New List(Of StatusMessage)
End Sub
Public Overridable Property CendynPropertyID As String
Public Overridable Property HotelCode As String
Public Overridable Property Success As Boolean
Public Overridable Property EchoToken As String
Public Overridable Property UniqueIDs As List(Of UniqueIDType)
Public Overridable Property Messages As List(Of StatusMessage)
End Class
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 StatusMessage
Public Overridable Property MessageType As StatusMessageType
Public Overridable Property Code As String
Public Overridable Property Message As String
Public Overridable Property Target As String
End Class
Public Enum StatusMessageType
Info
Warning
[Error]
End Enum
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 MessageAcknowledgement
Public Overridable Property Acknowledgement As Acknowledgement
Public Overridable Property SubscriptionId As String
Public Overridable Property CendynPropertyId As String
End Class
End Namespace
End Namespace
VB.NET MessageAcknowledgement 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.
POST /acknowlegement/{SubscriptionId}/{CendynPropertyId} HTTP/1.1
Host: cert.cendyn.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"acknowledgement":{"cendynPropertyID":"String","hotelCode":"String","success":false,"echoToken":"String","uniqueIDs":[{"id":"String","type":"String","context":"String"}],"messages":[{"messageType":"Info","code":"String","message":"String","target":"String"}]},"subscriptionId":"String","cendynPropertyId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"statusCode":"String","recordCount":0,"errorCount":0}