ClubManager.Api

<back to all web services

ZapierBookingRequest

The following routes are available for this service:
POST/zapier/v1/booking
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ZapierBookingRequest
    {
        public String Title = null;
        public String Forenames = null;
        public String Surname = null;
        public String EmailAddress = null;
        public String MobilePhone = null;
        public String HomePhone = null;
        public Date DateOfBirth = null;
        public ArrayList<String> Tags = null;
        public Boolean OptInEmail = null;
        public Boolean OptInSms = null;
        public Integer BookingTemplateId = null;
        public String Name = null;
        public String StartDate = null;
        public Integer Duration = null;
        public String EndDate = null;
        public Integer StaffId = null;
        public String StaffName = null;
        public Integer FacilityId = null;
        public Integer MaxAttendees = null;
        public String Notes = null;
        public Boolean AddToExisting = null;
        
        public String getTitle() { return Title; }
        public ZapierBookingRequest setTitle(String value) { this.Title = value; return this; }
        public String getForenames() { return Forenames; }
        public ZapierBookingRequest setForenames(String value) { this.Forenames = value; return this; }
        public String getSurname() { return Surname; }
        public ZapierBookingRequest setSurname(String value) { this.Surname = value; return this; }
        public String getEmailAddress() { return EmailAddress; }
        public ZapierBookingRequest setEmailAddress(String value) { this.EmailAddress = value; return this; }
        public String getMobilePhone() { return MobilePhone; }
        public ZapierBookingRequest setMobilePhone(String value) { this.MobilePhone = value; return this; }
        public String getHomePhone() { return HomePhone; }
        public ZapierBookingRequest setHomePhone(String value) { this.HomePhone = value; return this; }
        public Date getDateOfBirth() { return DateOfBirth; }
        public ZapierBookingRequest setDateOfBirth(Date value) { this.DateOfBirth = value; return this; }
        public ArrayList<String> getTags() { return Tags; }
        public ZapierBookingRequest setTags(ArrayList<String> value) { this.Tags = value; return this; }
        public Boolean isOptInEmail() { return OptInEmail; }
        public ZapierBookingRequest setOptInEmail(Boolean value) { this.OptInEmail = value; return this; }
        public Boolean isOptInSms() { return OptInSms; }
        public ZapierBookingRequest setOptInSms(Boolean value) { this.OptInSms = value; return this; }
        public Integer getBookingTemplateId() { return BookingTemplateId; }
        public ZapierBookingRequest setBookingTemplateId(Integer value) { this.BookingTemplateId = value; return this; }
        public String getName() { return Name; }
        public ZapierBookingRequest setName(String value) { this.Name = value; return this; }
        public String getStartDate() { return StartDate; }
        public ZapierBookingRequest setStartDate(String value) { this.StartDate = value; return this; }
        public Integer getDuration() { return Duration; }
        public ZapierBookingRequest setDuration(Integer value) { this.Duration = value; return this; }
        public String getEndDate() { return EndDate; }
        public ZapierBookingRequest setEndDate(String value) { this.EndDate = value; return this; }
        public Integer getStaffId() { return StaffId; }
        public ZapierBookingRequest setStaffId(Integer value) { this.StaffId = value; return this; }
        public String getStaffName() { return StaffName; }
        public ZapierBookingRequest setStaffName(String value) { this.StaffName = value; return this; }
        public Integer getFacilityId() { return FacilityId; }
        public ZapierBookingRequest setFacilityId(Integer value) { this.FacilityId = value; return this; }
        public Integer getMaxAttendees() { return MaxAttendees; }
        public ZapierBookingRequest setMaxAttendees(Integer value) { this.MaxAttendees = value; return this; }
        public String getNotes() { return Notes; }
        public ZapierBookingRequest setNotes(String value) { this.Notes = value; return this; }
        public Boolean isAddToExisting() { return AddToExisting; }
        public ZapierBookingRequest setAddToExisting(Boolean value) { this.AddToExisting = value; return this; }
    }

    public static class ZapierBookingResponse
    {
        public Integer MemberId = null;
        public UUID MemberKey = null;
        public Boolean MemberCreated = null;
        public Integer BookingId = null;
        public Boolean BookingCreated = null;
        public Integer BookingAttendeeId = null;
        public String Name = null;
        public Date StartDate = null;
        public Date EndDate = null;
        public Integer StaffId = null;
        public String StaffName = null;
        public Boolean InstructorMatched = null;
        
        public Integer getMemberId() { return MemberId; }
        public ZapierBookingResponse setMemberId(Integer value) { this.MemberId = value; return this; }
        public UUID getMemberKey() { return MemberKey; }
        public ZapierBookingResponse setMemberKey(UUID value) { this.MemberKey = value; return this; }
        public Boolean isMemberCreated() { return MemberCreated; }
        public ZapierBookingResponse setMemberCreated(Boolean value) { this.MemberCreated = value; return this; }
        public Integer getBookingId() { return BookingId; }
        public ZapierBookingResponse setBookingId(Integer value) { this.BookingId = value; return this; }
        public Boolean isBookingCreated() { return BookingCreated; }
        public ZapierBookingResponse setBookingCreated(Boolean value) { this.BookingCreated = value; return this; }
        public Integer getBookingAttendeeId() { return BookingAttendeeId; }
        public ZapierBookingResponse setBookingAttendeeId(Integer value) { this.BookingAttendeeId = value; return this; }
        public String getName() { return Name; }
        public ZapierBookingResponse setName(String value) { this.Name = value; return this; }
        public Date getStartDate() { return StartDate; }
        public ZapierBookingResponse setStartDate(Date value) { this.StartDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public ZapierBookingResponse setEndDate(Date value) { this.EndDate = value; return this; }
        public Integer getStaffId() { return StaffId; }
        public ZapierBookingResponse setStaffId(Integer value) { this.StaffId = value; return this; }
        public String getStaffName() { return StaffName; }
        public ZapierBookingResponse setStaffName(String value) { this.StaffName = value; return this; }
        public Boolean isInstructorMatched() { return InstructorMatched; }
        public ZapierBookingResponse setInstructorMatched(Boolean value) { this.InstructorMatched = value; return this; }
    }

}

Java ZapierBookingRequest 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 /zapier/v1/booking HTTP/1.1 
Host: api.clubmanagercentral.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ZapierBookingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClubManager.Api.Services.Zapier">
  <AddToExisting>false</AddToExisting>
  <BookingTemplateId>0</BookingTemplateId>
  <DateOfBirth>0001-01-01T00:00:00</DateOfBirth>
  <Duration>0</Duration>
  <EmailAddress>String</EmailAddress>
  <EndDate>String</EndDate>
  <FacilityId>0</FacilityId>
  <Forenames>String</Forenames>
  <HomePhone>String</HomePhone>
  <MaxAttendees>0</MaxAttendees>
  <MobilePhone>String</MobilePhone>
  <Name>String</Name>
  <Notes>String</Notes>
  <OptInEmail>false</OptInEmail>
  <OptInSms>false</OptInSms>
  <StaffId>0</StaffId>
  <StaffName>String</StaffName>
  <StartDate>String</StartDate>
  <Surname>String</Surname>
  <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Tags>
  <Title>String</Title>
</ZapierBookingRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ZapierBookingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClubManager.Api.Services.Zapier">
  <BookingAttendeeId>0</BookingAttendeeId>
  <BookingCreated>false</BookingCreated>
  <BookingId>0</BookingId>
  <EndDate>0001-01-01T00:00:00</EndDate>
  <InstructorMatched>false</InstructorMatched>
  <MemberCreated>false</MemberCreated>
  <MemberId>0</MemberId>
  <MemberKey>00000000-0000-0000-0000-000000000000</MemberKey>
  <Name>String</Name>
  <StaffId>0</StaffId>
  <StaffName>String</StaffName>
  <StartDate>0001-01-01T00:00:00</StartDate>
</ZapierBookingResponse>