| POST | /membership/{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 ActionComment
Public Overridable Property ExternalID As String
Public Overridable Property CommentType As String
Public Overridable Property CommentTitle As String
Public Overridable Property CommentClass As String
Public Overridable Property ActionType As String
Public Overridable Property Comment As String
Public Overridable Property ActionDate As Nullable(Of Date)
Public Overridable Property InactiveDate As Nullable(Of Date)
Public Overridable Property GuestViewable As Nullable(Of Boolean)
Public Overridable Property CreatorCode As String
Public Overridable Property DateCommentCreated As Nullable(Of Date)
Public Overridable Property ResortCode As String
End Class
Public Partial Class Address
Public Overridable Property AddressTypeCode As String
Public Overridable Property AddressTypeDescription As String
Public Overridable Property AddressStatus As String
Public Overridable Property Attn As String
Public Overridable Property Address1 As String
Public Overridable Property Address2 As String
Public Overridable Property City As String
Public Overridable Property StateProvince As String
Public Overridable Property PostalCode As String
Public Overridable Property CountryCode As String
Public Overridable Property IsPrimary As Nullable(Of Boolean)
Public Overridable Property AddressLanguage As String
Public Overridable Property AddressCleansed As Nullable(Of Boolean)
Public Overridable Property OptOutMarketing As Nullable(Of Boolean)
Public Overridable Property OptOutDate As Nullable(Of Date)
End Class
Public Partial Class ContactMethod
Public Overridable Property Type As String
Public Overridable Property Category As String
Public Overridable Property DataValue As String
Public Overridable Property ExtraData As String
Public Overridable Property OptOut As Nullable(Of Boolean)
Public Overridable Property SourceDate As Nullable(Of Date)
Public Overridable Property IsPrimary As Nullable(Of Boolean)
Public Overridable Property Confirmation As Nullable(Of Boolean)
Public Overridable Property InactiveDate As Nullable(Of Date)
Public Overridable Property OptOutMarketing As Nullable(Of Boolean)
Public Overridable Property OptOutDate As Nullable(Of Date)
End Class
Public Partial Class Document
Public Overridable Property DocumentID As String
Public Overridable Property DocumentType As String
Public Overridable Property DocumentSource As String
Public Overridable Property CodeOnDocument As String
Public Overridable Property DocumentNotes As String
Public Overridable Property NameOnDocument As String
Public Overridable Property NationalityOnDocument As String
Public Overridable Property EffectiveDate As Nullable(Of Date)
Public Overridable Property ExpirationDate As Nullable(Of Date)
Public Overridable Property Issuer As String
Public Overridable Property IssuerCountry As String
Public Overridable Property IsPrimary As Nullable(Of Boolean)
Public Overridable Property PII_StoredAs As String
Public Overridable Property InactiveDate As Nullable(Of Date)
End Class
Public Partial Class Lead
Public Overridable Property FK_Reservation As Nullable(Of Guid)
Public Overridable Property ExternalLeadID As String
Public Overridable Property ExternalLeadSource As String
Public Overridable Property LeadStatus As String
Public Overridable Property LeadAcquired As Nullable(Of Date)
Public Overridable Property TentativeStartDate As Nullable(Of Date)
Public Overridable Property TentativeEndDate As Nullable(Of Date)
Public Overridable Property AssignedAgent As String
Public Overridable Property AssignedDate As Nullable(Of Date)
Public Overridable Property ContactMethod As String
Public Overridable Property ContactAgent As String
Public Overridable Property ContactDate As Nullable(Of Date)
Public Overridable Property LastFollowupMethod As String
Public Overridable Property LastFollowupAgent As String
Public Overridable Property LastFollowupDate As Nullable(Of Date)
Public Overridable Property BookingMethod As String
Public Overridable Property BookingAgent As String
Public Overridable Property BookingDate As Nullable(Of Date)
Public Overridable Property ReasonforStay As String
Public Overridable Property MarketCode As String
Public Overridable Property CampaignCode As String
Public Overridable Property CampaignName As String
Public Overridable Property PriceEstimate As Nullable(Of Decimal)
Public Overridable Property FlaggedForAttention As Nullable(Of Boolean)
End Class
Public Partial Class Membership
Public Overridable Property ExternalID As String
Public Overridable Property ProgramCode As String
Public Overridable Property MembershipID As String
Public Overridable Property MembershipCategory As String
Public Overridable Property MembershipName As String
Public Overridable Property MembershipLevel As String
Public Overridable Property MembershipStatus As String
Public Overridable Property EnrollmentCode As String
Public Overridable Property DateMembershipStarts As Nullable(Of Date)
Public Overridable Property DateMembershipExpires As Nullable(Of Date)
Public Overridable Property TotalStays As Nullable(Of Integer)
Public Overridable Property AwardCredits As Nullable(Of Integer)
Public Overridable Property AwardAvailable As Nullable(Of Integer)
Public Overridable Property PrimaryAirline As Nullable(Of Boolean)
Public Overridable Property DisplaySequence As Nullable(Of Integer)
Public Overridable Property SourceName As String
Public Overridable Property SourceID As String
Public Overridable Property IsActive As Boolean
Public Overridable Property InactiveDate As Nullable(Of Date)
Public Overridable Property PointsIndicator As Nullable(Of Boolean)
End Class
Public Partial Class Profile
Public Sub New()
UniqueIDs = New List(Of UniqueIDType)
Addresses = New List(Of Address)
Memberships = New List(Of Membership)
ContactMethods = New List(Of ContactMethod)
ActionComments = New List(Of ActionComment)
SpecialRequests = New List(Of SpecialRequest)
UDFDataCollection = New List(Of UDFDataType)
RelatedTravelers = New List(Of RelatedTraveler)
Documents = New List(Of Document)
Vouchers = New List(Of Voucher)
ProfilePolicies = New List(Of ProfilePolicy)
End Sub
Public Overridable Property CendynPropertyID As String
Public Overridable Property PropertyName As String
Public Overridable Property UniqueIDs As List(Of UniqueIDType)
Public Overridable Property ProfileTypeCode As String
Public Overridable Property ProfileTypeDescription As String
Public Overridable Property NameCode As String
Public Overridable Property ProfileTypeCategory As String
Public Overridable Property JobTitle As String
Public Overridable Property Salutation As String
Public Overridable Property FirstName As String
Public Overridable Property FamiliarName As String
Public Overridable Property MiddleName As String
Public Overridable Property LastName As String
Public Overridable Property FullName As String
Public Overridable Property NameSuffix As String
Public Overridable Property VIPID As String
Public Overridable Property VIPCode As String
Public Overridable Property PrimaryLanguage As String
Public Overridable Property GenderCode As String
Public Overridable Property DOBYear As String
Public Overridable Property DOBMonth As String
Public Overridable Property DOBDayOfMonth As String
Public Overridable Property CompanyName As String
Public Overridable Property ARNumber As String
Public Overridable Property AllowMail As Nullable(Of Boolean)
Public Overridable Property AllowEMail As Nullable(Of Boolean)
Public Overridable Property GuestPriv As Nullable(Of Boolean)
Public Overridable Property AllowPhone As Nullable(Of Boolean)
Public Overridable Property AllowSMS As Nullable(Of Boolean)
Public Overridable Property AllowHistory As Nullable(Of Boolean)
Public Overridable Property AllowMarketResearch As Nullable(Of Boolean)
Public Overridable Property AllowThirdParty As Nullable(Of Boolean)
Public Overridable Property AllowLoyaltyProgram As Nullable(Of Boolean)
Public Overridable Property CreatorCode As String
Public Overridable Property LastUpdaterCode As String
Public Overridable Property DateProfileCreated As Nullable(Of Date)
Public Overridable Property DateProfileUpdated As Nullable(Of Date)
Public Overridable Property InactiveDate As Nullable(Of Date)
Public Overridable Property Nationality As String
Public Overridable Property ResortCode As String
Public Overridable Property RetiredProfileId As String
Public Overridable Property TransferredSubscriptionId As String
Public Overridable Property SourceName As String
Public Overridable Property SourceID As String
Public Overridable Property OptOutMarketing As Nullable(Of Boolean)
Public Overridable Property OptOutDate As Nullable(Of Date)
Public Overridable Property ProfileExtension As ProfileExtension
Public Overridable Property Addresses As List(Of Address)
Public Overridable Property Memberships As List(Of Membership)
Public Overridable Property ContactMethods As List(Of ContactMethod)
Public Overridable Property ActionComments As List(Of ActionComment)
Public Overridable Property SpecialRequests As List(Of SpecialRequest)
Public Overridable Property UDFDataCollection As List(Of UDFDataType)
Public Overridable Property Lead As Lead
Public Overridable Property RelatedTravelers As List(Of RelatedTraveler)
Public Overridable Property Documents As List(Of Document)
Public Overridable Property Vouchers As List(Of Voucher)
Public Overridable Property ProfilePolicies As List(Of ProfilePolicy)
End Class
Public Partial Class ProfileContainer
Public Sub New()
Profiles = New List(Of Profile)
End Sub
Public Overridable Property EchoToken As String
Public Overridable Property ChangeAction As String
Public Overridable Property Profiles As List(Of Profile)
End Class
Public Partial Class ProfileExtension
Public Overridable Property LanguageCode As String
Public Overridable Property SalutationExt As String
Public Overridable Property FirstNameExt As String
Public Overridable Property FamiliarNameExt As String
Public Overridable Property MiddleNameExt As String
Public Overridable Property LastNameExt As String
Public Overridable Property NameSuffixExt As String
Public Overridable Property CompanyNameExt As String
Public Overridable Property Blacklist As String
Public Overridable Property BlackListMessage As String
Public Overridable Property AnonymizationStatus As String
End Class
Public Partial Class ProfilePolicy
Public Overridable Property PolicyType As String
Public Overridable Property AttributeName As String
Public Overridable Property IntegerValue As Nullable(Of Integer)
Public Overridable Property StringValue As String
Public Overridable Property EffectiveDate As Nullable(Of Date)
Public Overridable Property ExpirationDate As Nullable(Of Date)
Public Overridable Property Comments As String
Public Overridable Property ExternalID As String
Public Overridable Property AppliesTo As String
Public Overridable Property AppliesToDescriptor As String
End Class
Public Partial Class RelatedTraveler
Public Sub New()
UniqueIDs = New List(Of UniqueIDType)
End Sub
Public Overridable Property CendynPropertyID As String
Public Overridable Property PropertyName As String
Public Overridable Property UniqueIDs As List(Of UniqueIDType)
Public Overridable Property Salutation As String
Public Overridable Property FirstName As String
Public Overridable Property FamiliarName As String
Public Overridable Property MiddleName As String
Public Overridable Property LastName As String
Public Overridable Property FullName As String
Public Overridable Property Suffix As String
Public Overridable Property Relation As String
Public Overridable Property IsPrimary As Nullable(Of Boolean)
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 SpecialRequest
Public Overridable Property ExternalID As String
Public Overridable Property RequestType As String
Public Overridable Property RequestCode As String
Public Overridable Property RequestComments As String
Public Overridable Property ResortField As String
Public Overridable Property ActionTypeCode As String
Public Overridable Property ActionType As String
Public Overridable Property InactiveDate As Nullable(Of Date)
End Class
Public Partial Class UDFDataType
Public Overridable Property CendynPropertyID As String
Public Overridable Property ModuleName As String
Public Overridable Property TableName As String
Public Overridable Property ColumnName As String
Public Overridable Property UDFValue As String
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
Public Partial Class Voucher
Public Overridable Property HotelCode As String
Public Overridable Property VoucherID As String
Public Overridable Property VoucherID2 As String
Public Overridable Property AppliedToResort As String
Public Overridable Property ReservationID As String
Public Overridable Property ProfileIDRecipient As String
Public Overridable Property SubscriberIDRecipient As String
Public Overridable Property RecipientName As String
Public Overridable Property Emailaddress As String
Public Overridable Property ProfileIDPurchaser As String
Public Overridable Property PurchaserName As String
Public Overridable Property VoucherStatus As String
Public Overridable Property VoucherType As String
Public Overridable Property MembershipType As String
Public Overridable Property CertCode As String
Public Overridable Property CertNo As String
Public Overridable Property ShortDescription As String
Public Overridable Property GiftMessage As String
Public Overridable Property Comments As String
Public Overridable Property VoucherAmount As Nullable(Of Decimal)
Public Overridable Property CurrencyCode As String
Public Overridable Property IssueType As String
Public Overridable Property DateConsumed As Nullable(Of Date)
Public Overridable Property ExpirationDate As Nullable(Of Date)
Public Overridable Property AwardPoints As Nullable(Of Integer)
Public Overridable Property RuleType As String
Public Overridable Property RuleValue As String
Public Overridable Property CancelAllowed As Nullable(Of Boolean)
Public Overridable Property MaxExtensions As Nullable(Of Integer)
Public Overridable Property ReferenceType As String
Public Overridable Property ReferenceID As String
Public Overridable Property PromotionCode As String
Public Overridable Property ReservationConsumed As Nullable(Of Boolean)
Public Overridable Property WebConsumed As Nullable(Of Boolean)
Public Overridable Property PMSConsumed As Nullable(Of Boolean)
Public Overridable Property VerifyCertNo As Nullable(Of Boolean)
Public Overridable Property GenerateInLieu As Nullable(Of Boolean)
Public Overridable Property CreatorCode As String
Public Overridable Property LastUpdaterCode As String
Public Overridable Property FolioID As String
Public Overridable Property InactiveDate As Nullable(Of Date)
End Class
End Namespace
Namespace CenResSS.ServiceModel
Public Partial Class MembershipPost
Public Overridable Property ProfileContainer As ProfileContainer
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 /membership/{SubscriptionId}/{CendynPropertyId} HTTP/1.1
Host: cert.cendyn.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"profileContainer":{"echoToken":"String","changeAction":"String","profiles":[{"cendynPropertyID":"String","propertyName":"String","uniqueIDs":[{"id":"String","type":"String","context":"String"}],"profileTypeCode":"String","profileTypeDescription":"String","nameCode":"String","profileTypeCategory":"String","jobTitle":"String","salutation":"String","firstName":"String","familiarName":"String","middleName":"String","lastName":"String","fullName":"String","nameSuffix":"String","vipid":"String","vipCode":"String","primaryLanguage":"String","genderCode":"String","dobYear":"String","dobMonth":"String","dobDayOfMonth":"String","companyName":"String","arNumber":"String","allowMail":false,"allowEMail":false,"guestPriv":false,"allowPhone":false,"allowSMS":false,"allowHistory":false,"allowMarketResearch":false,"allowThirdParty":false,"allowLoyaltyProgram":false,"creatorCode":"String","lastUpdaterCode":"String","dateProfileCreated":"0001-01-01T00:00:00.0000000","dateProfileUpdated":"0001-01-01T00:00:00.0000000","inactiveDate":"0001-01-01T00:00:00.0000000","nationality":"String","resortCode":"String","retiredProfileId":"String","transferredSubscriptionId":"String","sourceName":"String","sourceID":"String","optOutMarketing":false,"optOutDate":"0001-01-01T00:00:00.0000000","profileExtension":{"languageCode":"String","salutationExt":"String","firstNameExt":"String","familiarNameExt":"String","middleNameExt":"String","lastNameExt":"String","nameSuffixExt":"String","companyNameExt":"String","blacklist":"String","blackListMessage":"String","anonymizationStatus":"String"},"addresses":[{"addressTypeCode":"String","addressTypeDescription":"String","addressStatus":"String","attn":"String","address1":"String","address2":"String","city":"String","stateProvince":"String","postalCode":"String","countryCode":"String","isPrimary":false,"addressLanguage":"String","addressCleansed":false,"optOutMarketing":false,"optOutDate":"0001-01-01T00:00:00.0000000"}],"memberships":[{"externalID":"String","programCode":"String","membershipID":"String","membershipCategory":"String","membershipName":"String","membershipLevel":"String","membershipStatus":"String","enrollmentCode":"String","dateMembershipStarts":"0001-01-01T00:00:00.0000000","dateMembershipExpires":"0001-01-01T00:00:00.0000000","totalStays":0,"awardCredits":0,"awardAvailable":0,"primaryAirline":false,"displaySequence":0,"sourceName":"String","sourceID":"String","isActive":false,"inactiveDate":"0001-01-01T00:00:00.0000000","pointsIndicator":false}],"contactMethods":[{"type":"String","category":"String","dataValue":"String","extraData":"String","optOut":false,"sourceDate":"0001-01-01T00:00:00.0000000","isPrimary":false,"confirmation":false,"inactiveDate":"0001-01-01T00:00:00.0000000","optOutMarketing":false,"optOutDate":"0001-01-01T00:00:00.0000000"}],"actionComments":[{"externalID":"String","commentType":"String","commentTitle":"String","commentClass":"String","actionType":"String","comment":"String","actionDate":"0001-01-01T00:00:00.0000000","inactiveDate":"0001-01-01T00:00:00.0000000","guestViewable":false,"creatorCode":"String","dateCommentCreated":"0001-01-01T00:00:00.0000000","resortCode":"String"}],"specialRequests":[{"externalID":"String","requestType":"String","requestCode":"String","requestComments":"String","resortField":"String","actionTypeCode":"String","actionType":"String","inactiveDate":"0001-01-01T00:00:00.0000000"}],"udfDataCollection":[{"cendynPropertyID":"String","moduleName":"String","tableName":"String","columnName":"String","udfValue":"String"}],"lead":{"fK_Reservation":"00000000000000000000000000000000","externalLeadID":"String","externalLeadSource":"String","leadStatus":"String","leadAcquired":"0001-01-01T00:00:00.0000000","tentativeStartDate":"0001-01-01T00:00:00.0000000","tentativeEndDate":"0001-01-01T00:00:00.0000000","assignedAgent":"String","assignedDate":"0001-01-01T00:00:00.0000000","contactMethod":"String","contactAgent":"String","contactDate":"0001-01-01T00:00:00.0000000","lastFollowupMethod":"String","lastFollowupAgent":"String","lastFollowupDate":"0001-01-01T00:00:00.0000000","bookingMethod":"String","bookingAgent":"String","bookingDate":"0001-01-01T00:00:00.0000000","reasonforStay":"String","marketCode":"String","campaignCode":"String","campaignName":"String","priceEstimate":0,"flaggedForAttention":false},"relatedTravelers":[{"cendynPropertyID":"String","propertyName":"String","uniqueIDs":[{"id":"String","type":"String","context":"String"}],"salutation":"String","firstName":"String","familiarName":"String","middleName":"String","lastName":"String","fullName":"String","suffix":"String","relation":"String","isPrimary":false}],"documents":[{"documentID":"String","documentType":"String","documentSource":"String","codeOnDocument":"String","documentNotes":"String","nameOnDocument":"String","nationalityOnDocument":"String","effectiveDate":"0001-01-01T00:00:00.0000000","expirationDate":"0001-01-01T00:00:00.0000000","issuer":"String","issuerCountry":"String","isPrimary":false,"piI_StoredAs":"String","inactiveDate":"0001-01-01T00:00:00.0000000"}],"vouchers":[{"hotelCode":"String","voucherID":"String","voucherID2":"String","appliedToResort":"String","reservationID":"String","profileIDRecipient":"String","subscriberIDRecipient":"String","recipientName":"String","emailaddress":"String","profileIDPurchaser":"String","purchaserName":"String","voucherStatus":"String","voucherType":"String","membershipType":"String","certCode":"String","certNo":"String","shortDescription":"String","giftMessage":"String","comments":"String","voucherAmount":0,"currencyCode":"String","issueType":"String","dateConsumed":"0001-01-01T00:00:00.0000000","expirationDate":"0001-01-01T00:00:00.0000000","awardPoints":0,"ruleType":"String","ruleValue":"String","cancelAllowed":false,"maxExtensions":0,"referenceType":"String","referenceID":"String","promotionCode":"String","reservationConsumed":false,"webConsumed":false,"pmsConsumed":false,"verifyCertNo":false,"generateInLieu":false,"creatorCode":"String","lastUpdaterCode":"String","folioID":"String","inactiveDate":"0001-01-01T00:00:00.0000000"}],"profilePolicies":[{"policyType":"String","attributeName":"String","integerValue":0,"stringValue":"String","effectiveDate":"0001-01-01T00:00:00.0000000","expirationDate":"0001-01-01T00:00:00.0000000","comments":"String","externalID":"String","appliesTo":"String","appliesToDescriptor":"String"}]}]},"subscriptionId":"String","cendynPropertyId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"statusCode":"String","recordCount":0,"errorCount":0}