CenResService

<back to all web services

ActivityPost

The following routes are available for this service:
POST/activity/{SubscriptionId}/{CendynPropertyId}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ActivityPost
    {
        public ActivityContainer activityContainer = null;
        public String subscriptionId = null;
        public String cendynPropertyId = null;
        
        public ActivityContainer getActivityContainer() { return activityContainer; }
        public ActivityPost setActivityContainer(ActivityContainer value) { this.activityContainer = value; return this; }
        public String getSubscriptionId() { return subscriptionId; }
        public ActivityPost setSubscriptionId(String value) { this.subscriptionId = value; return this; }
        public String getCendynPropertyId() { return cendynPropertyId; }
        public ActivityPost setCendynPropertyId(String value) { this.cendynPropertyId = value; return this; }
    }

    public static class ActivityContainer
    {
        public String echoToken = null;
        public ArrayList<Activity> activities = null;
        
        public String getEchoToken() { return echoToken; }
        public ActivityContainer setEchoToken(String value) { this.echoToken = value; return this; }
        public ArrayList<Activity> getActivities() { return activities; }
        public ActivityContainer setActivities(ArrayList<Activity> value) { this.activities = value; return this; }
    }

    public static class Activity
    {
        public String cendynPropertyID = null;
        public String reservationID = null;
        public String profileID = null;
        public String activityStatus = null;
        public String activityCategory = null;
        public String activityID1 = null;
        public String activitySource1 = null;
        public String activityID2 = null;
        public String activitySource2 = null;
        public String activityName = null;
        public String activityDescription = null;
        public String activityNotes = null;
        public String groupCode = null;
        public String currencyCode = null;
        public BigDecimal amount = null;
        public BigDecimal depositRequired = null;
        public String depositCollectorType = null;
        public Date inactiveDate = null;
        public String urlLink = null;
        public String confirmationNum = null;
        public String activityClass = null;
        public String activityCode = null;
        public String activitySubCode = null;
        public String languageCode = null;
        public Integer numAdults = null;
        public Integer numYouths = null;
        public Integer numChildren = null;
        public Date startDate = null;
        public String startTaskType = null;
        public String startLocationCode = null;
        public String startLocationName = null;
        public Date endDate = null;
        public String endTaskType = null;
        public String endLocationCode = null;
        public String durationUnit = null;
        public Date relatedDate = null;
        public String relatedType = null;
        public String relatedLocationCode = null;
        public String relatedDescription = null;
        public String vipCode = null;
        public String assignedUser = null;
        public Date bookedDate = null;
        public String bookedBy = null;
        public Date lastUpdatedDate = null;
        public String lastUpdatedBy = null;
        public String cancellationCode = null;
        public String customField1 = null;
        public String customField2 = null;
        public String customField3 = null;
        public String customField4 = null;
        public String customField5 = null;
        
        public String getCendynPropertyID() { return cendynPropertyID; }
        public Activity setCendynPropertyID(String value) { this.cendynPropertyID = value; return this; }
        public String getReservationID() { return reservationID; }
        public Activity setReservationID(String value) { this.reservationID = value; return this; }
        public String getProfileID() { return profileID; }
        public Activity setProfileID(String value) { this.profileID = value; return this; }
        public String getActivityStatus() { return activityStatus; }
        public Activity setActivityStatus(String value) { this.activityStatus = value; return this; }
        public String getActivityCategory() { return activityCategory; }
        public Activity setActivityCategory(String value) { this.activityCategory = value; return this; }
        public String getActivityID1() { return activityID1; }
        public Activity setActivityID1(String value) { this.activityID1 = value; return this; }
        public String getActivitySource1() { return activitySource1; }
        public Activity setActivitySource1(String value) { this.activitySource1 = value; return this; }
        public String getActivityID2() { return activityID2; }
        public Activity setActivityID2(String value) { this.activityID2 = value; return this; }
        public String getActivitySource2() { return activitySource2; }
        public Activity setActivitySource2(String value) { this.activitySource2 = value; return this; }
        public String getActivityName() { return activityName; }
        public Activity setActivityName(String value) { this.activityName = value; return this; }
        public String getActivityDescription() { return activityDescription; }
        public Activity setActivityDescription(String value) { this.activityDescription = value; return this; }
        public String getActivityNotes() { return activityNotes; }
        public Activity setActivityNotes(String value) { this.activityNotes = value; return this; }
        public String getGroupCode() { return groupCode; }
        public Activity setGroupCode(String value) { this.groupCode = value; return this; }
        public String getCurrencyCode() { return currencyCode; }
        public Activity setCurrencyCode(String value) { this.currencyCode = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public Activity setAmount(BigDecimal value) { this.amount = value; return this; }
        public BigDecimal getDepositRequired() { return depositRequired; }
        public Activity setDepositRequired(BigDecimal value) { this.depositRequired = value; return this; }
        public String getDepositCollectorType() { return depositCollectorType; }
        public Activity setDepositCollectorType(String value) { this.depositCollectorType = value; return this; }
        public Date getInactiveDate() { return inactiveDate; }
        public Activity setInactiveDate(Date value) { this.inactiveDate = value; return this; }
        public String getUrlLink() { return urlLink; }
        public Activity setUrlLink(String value) { this.urlLink = value; return this; }
        public String getConfirmationNum() { return confirmationNum; }
        public Activity setConfirmationNum(String value) { this.confirmationNum = value; return this; }
        public String getActivityClass() { return activityClass; }
        public Activity setActivityClass(String value) { this.activityClass = value; return this; }
        public String getActivityCode() { return activityCode; }
        public Activity setActivityCode(String value) { this.activityCode = value; return this; }
        public String getActivitySubCode() { return activitySubCode; }
        public Activity setActivitySubCode(String value) { this.activitySubCode = value; return this; }
        public String getLanguageCode() { return languageCode; }
        public Activity setLanguageCode(String value) { this.languageCode = value; return this; }
        public Integer getNumAdults() { return numAdults; }
        public Activity setNumAdults(Integer value) { this.numAdults = value; return this; }
        public Integer getNumYouths() { return numYouths; }
        public Activity setNumYouths(Integer value) { this.numYouths = value; return this; }
        public Integer getNumChildren() { return numChildren; }
        public Activity setNumChildren(Integer value) { this.numChildren = value; return this; }
        public Date getStartDate() { return startDate; }
        public Activity setStartDate(Date value) { this.startDate = value; return this; }
        public String getStartTaskType() { return startTaskType; }
        public Activity setStartTaskType(String value) { this.startTaskType = value; return this; }
        public String getStartLocationCode() { return startLocationCode; }
        public Activity setStartLocationCode(String value) { this.startLocationCode = value; return this; }
        public String getStartLocationName() { return startLocationName; }
        public Activity setStartLocationName(String value) { this.startLocationName = value; return this; }
        public Date getEndDate() { return endDate; }
        public Activity setEndDate(Date value) { this.endDate = value; return this; }
        public String getEndTaskType() { return endTaskType; }
        public Activity setEndTaskType(String value) { this.endTaskType = value; return this; }
        public String getEndLocationCode() { return endLocationCode; }
        public Activity setEndLocationCode(String value) { this.endLocationCode = value; return this; }
        public String getDurationUnit() { return durationUnit; }
        public Activity setDurationUnit(String value) { this.durationUnit = value; return this; }
        public Date getRelatedDate() { return relatedDate; }
        public Activity setRelatedDate(Date value) { this.relatedDate = value; return this; }
        public String getRelatedType() { return relatedType; }
        public Activity setRelatedType(String value) { this.relatedType = value; return this; }
        public String getRelatedLocationCode() { return relatedLocationCode; }
        public Activity setRelatedLocationCode(String value) { this.relatedLocationCode = value; return this; }
        public String getRelatedDescription() { return relatedDescription; }
        public Activity setRelatedDescription(String value) { this.relatedDescription = value; return this; }
        public String getVipCode() { return vipCode; }
        public Activity setVipCode(String value) { this.vipCode = value; return this; }
        public String getAssignedUser() { return assignedUser; }
        public Activity setAssignedUser(String value) { this.assignedUser = value; return this; }
        public Date getBookedDate() { return bookedDate; }
        public Activity setBookedDate(Date value) { this.bookedDate = value; return this; }
        public String getBookedBy() { return bookedBy; }
        public Activity setBookedBy(String value) { this.bookedBy = value; return this; }
        public Date getLastUpdatedDate() { return lastUpdatedDate; }
        public Activity setLastUpdatedDate(Date value) { this.lastUpdatedDate = value; return this; }
        public String getLastUpdatedBy() { return lastUpdatedBy; }
        public Activity setLastUpdatedBy(String value) { this.lastUpdatedBy = value; return this; }
        public String getCancellationCode() { return cancellationCode; }
        public Activity setCancellationCode(String value) { this.cancellationCode = value; return this; }
        public String getCustomField1() { return customField1; }
        public Activity setCustomField1(String value) { this.customField1 = value; return this; }
        public String getCustomField2() { return customField2; }
        public Activity setCustomField2(String value) { this.customField2 = value; return this; }
        public String getCustomField3() { return customField3; }
        public Activity setCustomField3(String value) { this.customField3 = value; return this; }
        public String getCustomField4() { return customField4; }
        public Activity setCustomField4(String value) { this.customField4 = value; return this; }
        public String getCustomField5() { return customField5; }
        public Activity setCustomField5(String value) { this.customField5 = value; return this; }
    }

    public static class Response
    {
        public String statusCode = null;
        public Integer recordCount = null;
        public Integer errorCount = null;
        
        public String getStatusCode() { return statusCode; }
        public Response setStatusCode(String value) { this.statusCode = value; return this; }
        public Integer getRecordCount() { return recordCount; }
        public Response setRecordCount(Integer value) { this.recordCount = value; return this; }
        public Integer getErrorCount() { return errorCount; }
        public Response setErrorCount(Integer value) { this.errorCount = value; return this; }
    }

}

Java ActivityPost DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<ActivityPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenResSS.ServiceModel">
  <ActivityContainer>
    <Activities>
      <Activity>
        <ActivityCategory>String</ActivityCategory>
        <ActivityClass>String</ActivityClass>
        <ActivityCode>String</ActivityCode>
        <ActivityDescription>String</ActivityDescription>
        <ActivityID1>String</ActivityID1>
        <ActivityID2>String</ActivityID2>
        <ActivityName>String</ActivityName>
        <ActivityNotes>String</ActivityNotes>
        <ActivitySource1>String</ActivitySource1>
        <ActivitySource2>String</ActivitySource2>
        <ActivityStatus>String</ActivityStatus>
        <ActivitySubCode>String</ActivitySubCode>
        <Amount>0</Amount>
        <AssignedUser>String</AssignedUser>
        <BookedBy>String</BookedBy>
        <BookedDate>0001-01-01T00:00:00</BookedDate>
        <CancellationCode>String</CancellationCode>
        <CendynPropertyID>String</CendynPropertyID>
        <ConfirmationNum>String</ConfirmationNum>
        <CurrencyCode>String</CurrencyCode>
        <CustomField1>String</CustomField1>
        <CustomField2>String</CustomField2>
        <CustomField3>String</CustomField3>
        <CustomField4>String</CustomField4>
        <CustomField5>String</CustomField5>
        <DepositCollectorType>String</DepositCollectorType>
        <DepositRequired>0</DepositRequired>
        <DurationUnit>String</DurationUnit>
        <EndDate>0001-01-01T00:00:00</EndDate>
        <EndLocationCode>String</EndLocationCode>
        <EndTaskType>String</EndTaskType>
        <GroupCode>String</GroupCode>
        <InactiveDate>0001-01-01T00:00:00</InactiveDate>
        <LanguageCode>String</LanguageCode>
        <LastUpdatedBy>String</LastUpdatedBy>
        <LastUpdatedDate>0001-01-01T00:00:00</LastUpdatedDate>
        <NumAdults>0</NumAdults>
        <NumChildren>0</NumChildren>
        <NumYouths>0</NumYouths>
        <ProfileID>String</ProfileID>
        <RelatedDate>0001-01-01T00:00:00</RelatedDate>
        <RelatedDescription>String</RelatedDescription>
        <RelatedLocationCode>String</RelatedLocationCode>
        <RelatedType>String</RelatedType>
        <ReservationID>String</ReservationID>
        <StartDate>0001-01-01T00:00:00</StartDate>
        <StartLocationCode>String</StartLocationCode>
        <StartLocationName>String</StartLocationName>
        <StartTaskType>String</StartTaskType>
        <URLLink>String</URLLink>
        <VipCode>String</VipCode>
      </Activity>
    </Activities>
    <EchoToken>String</EchoToken>
  </ActivityContainer>
  <CendynPropertyId>String</CendynPropertyId>
  <SubscriptionId>String</SubscriptionId>
</ActivityPost>
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>