| POST | /activity/{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 Activity
Public Overridable Property CendynPropertyID As String
Public Overridable Property ReservationID As String
Public Overridable Property ProfileID As String
Public Overridable Property ActivityStatus As String
Public Overridable Property ActivityCategory As String
Public Overridable Property ActivityID1 As String
Public Overridable Property ActivitySource1 As String
Public Overridable Property ActivityID2 As String
Public Overridable Property ActivitySource2 As String
Public Overridable Property ActivityName As String
Public Overridable Property ActivityDescription As String
Public Overridable Property ActivityNotes As String
Public Overridable Property GroupCode As String
Public Overridable Property CurrencyCode As String
Public Overridable Property Amount As Nullable(Of Decimal)
Public Overridable Property DepositRequired As Nullable(Of Decimal)
Public Overridable Property DepositCollectorType As String
Public Overridable Property InactiveDate As Nullable(Of Date)
Public Overridable Property URLLink As String
Public Overridable Property ConfirmationNum As String
Public Overridable Property ActivityClass As String
Public Overridable Property ActivityCode As String
Public Overridable Property ActivitySubCode As String
Public Overridable Property LanguageCode As String
Public Overridable Property NumAdults As Nullable(Of Integer)
Public Overridable Property NumYouths As Nullable(Of Integer)
Public Overridable Property NumChildren As Nullable(Of Integer)
Public Overridable Property StartDate As Nullable(Of Date)
Public Overridable Property StartTaskType As String
Public Overridable Property StartLocationCode As String
Public Overridable Property StartLocationName As String
Public Overridable Property EndDate As Nullable(Of Date)
Public Overridable Property EndTaskType As String
Public Overridable Property EndLocationCode As String
Public Overridable Property DurationUnit As String
Public Overridable Property RelatedDate As Nullable(Of Date)
Public Overridable Property RelatedType As String
Public Overridable Property RelatedLocationCode As String
Public Overridable Property RelatedDescription As String
Public Overridable Property VipCode As String
Public Overridable Property AssignedUser As String
Public Overridable Property BookedDate As Nullable(Of Date)
Public Overridable Property BookedBy As String
Public Overridable Property LastUpdatedDate As Nullable(Of Date)
Public Overridable Property LastUpdatedBy As String
Public Overridable Property CancellationCode As String
Public Overridable Property CustomField1 As String
Public Overridable Property CustomField2 As String
Public Overridable Property CustomField3 As String
Public Overridable Property CustomField4 As String
Public Overridable Property CustomField5 As String
End Class
Public Partial Class ActivityContainer
Public Sub New()
Activities = New List(Of Activity)
End Sub
Public Overridable Property EchoToken As String
Public Overridable Property Activities As List(Of Activity)
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
End Namespace
Namespace CenResSS.ServiceModel
Public Partial Class ActivityPost
Public Overridable Property ActivityContainer As ActivityContainer
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 .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 /activity/{SubscriptionId}/{CendynPropertyId} HTTP/1.1
Host: cert.cendyn.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"activityContainer":{"echoToken":"String","activities":[{"cendynPropertyID":"String","reservationID":"String","profileID":"String","activityStatus":"String","activityCategory":"String","activityID1":"String","activitySource1":"String","activityID2":"String","activitySource2":"String","activityName":"String","activityDescription":"String","activityNotes":"String","groupCode":"String","currencyCode":"String","amount":0,"depositRequired":0,"depositCollectorType":"String","inactiveDate":"0001-01-01T00:00:00.0000000","urlLink":"String","confirmationNum":"String","activityClass":"String","activityCode":"String","activitySubCode":"String","languageCode":"String","numAdults":0,"numYouths":0,"numChildren":0,"startDate":"0001-01-01T00:00:00.0000000","startTaskType":"String","startLocationCode":"String","startLocationName":"String","endDate":"0001-01-01T00:00:00.0000000","endTaskType":"String","endLocationCode":"String","durationUnit":"String","relatedDate":"0001-01-01T00:00:00.0000000","relatedType":"String","relatedLocationCode":"String","relatedDescription":"String","vipCode":"String","assignedUser":"String","bookedDate":"0001-01-01T00:00:00.0000000","bookedBy":"String","lastUpdatedDate":"0001-01-01T00:00:00.0000000","lastUpdatedBy":"String","cancellationCode":"String","customField1":"String","customField2":"String","customField3":"String","customField4":"String","customField5":"String"}]},"subscriptionId":"String","cendynPropertyId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"statusCode":"String","recordCount":0,"errorCount":0}