| 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 .csv suffix or ?format=csv
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: text/csv
Content-Type: text/csv
Content-Length: length
{"Title":"String","Forenames":"String","Surname":"String","EmailAddress":"String","MobilePhone":"String","HomePhone":"String","DateOfBirth":"0001-01-01T00:00:00.0000000","Tags":["String"],"OptInEmail":false,"OptInSms":false,"BookingTemplateId":0,"Name":"String","StartDate":"String","Duration":0,"EndDate":"String","StaffId":0,"StaffName":"String","FacilityId":0,"MaxAttendees":0,"Notes":"String","AddToExisting":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"MemberId":0,"MemberKey":"00000000000000000000000000000000","MemberCreated":false,"BookingId":0,"BookingCreated":false,"BookingAttendeeId":0,"Name":"String","StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","StaffId":0,"StaffName":"String","InstructorMatched":false}