public interface BookingsApi
ListBookingsResponse listBookings(Integer limit, String cursor, String teamMemberId, String locationId, String startAtMin, String startAtMax) throws ApiException, IOException
limit - Optional parameter: The maximum number of results per page to return in a
paged response.cursor - Optional parameter: The pagination cursor from the preceding response to
return the next page of the results. Do not set this when retrieving the first page
of the results.teamMemberId - Optional parameter: The team member for whom to retrieve bookings. If
this is not set, bookings of all members are retrieved.locationId - Optional parameter: The location for which to retrieve bookings. If this
is not set, all locations' bookings are retrieved.startAtMin - Optional parameter: The RFC 3339 timestamp specifying the earliest of the
start time. If this is not set, the current time is used.startAtMax - Optional parameter: The RFC 3339 timestamp specifying the latest of the
start time. If this is not set, the time of 31 days after `start_at_min` is used.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<ListBookingsResponse> listBookingsAsync(Integer limit, String cursor, String teamMemberId, String locationId, String startAtMin, String startAtMax)
limit - Optional parameter: The maximum number of results per page to return in a
paged response.cursor - Optional parameter: The pagination cursor from the preceding response to
return the next page of the results. Do not set this when retrieving the first page
of the results.teamMemberId - Optional parameter: The team member for whom to retrieve bookings. If
this is not set, bookings of all members are retrieved.locationId - Optional parameter: The location for which to retrieve bookings. If this
is not set, all locations' bookings are retrieved.startAtMin - Optional parameter: The RFC 3339 timestamp specifying the earliest of the
start time. If this is not set, the current time is used.startAtMax - Optional parameter: The RFC 3339 timestamp specifying the latest of the
start time. If this is not set, the time of 31 days after `start_at_min` is used.CreateBookingResponse createBooking(CreateBookingRequest body) throws ApiException, IOException
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<CreateBookingResponse> createBookingAsync(CreateBookingRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.SearchAvailabilityResponse searchAvailability(SearchAvailabilityRequest body) throws ApiException, IOException
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<SearchAvailabilityResponse> searchAvailabilityAsync(SearchAvailabilityRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.RetrieveBusinessBookingProfileResponse retrieveBusinessBookingProfile() throws ApiException, IOException
ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveBusinessBookingProfileResponse> retrieveBusinessBookingProfileAsync()
ListTeamMemberBookingProfilesResponse listTeamMemberBookingProfiles(Boolean bookableOnly, Integer limit, String cursor, String locationId) throws ApiException, IOException
bookableOnly - Optional parameter: Indicates whether to include only bookable team
members in the returned result (`true`) or not (`false`).limit - Optional parameter: The maximum number of results to return in a paged
response.cursor - Optional parameter: The pagination cursor from the preceding response to
return the next page of the results. Do not set this when retrieving the first page
of the results.locationId - Optional parameter: Indicates whether to include only team members
enabled at the given location in the returned result.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<ListTeamMemberBookingProfilesResponse> listTeamMemberBookingProfilesAsync(Boolean bookableOnly, Integer limit, String cursor, String locationId)
bookableOnly - Optional parameter: Indicates whether to include only bookable team
members in the returned result (`true`) or not (`false`).limit - Optional parameter: The maximum number of results to return in a paged
response.cursor - Optional parameter: The pagination cursor from the preceding response to
return the next page of the results. Do not set this when retrieving the first page
of the results.locationId - Optional parameter: Indicates whether to include only team members
enabled at the given location in the returned result.RetrieveTeamMemberBookingProfileResponse retrieveTeamMemberBookingProfile(String teamMemberId) throws ApiException, IOException
teamMemberId - Required parameter: The ID of the team member to retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveTeamMemberBookingProfileResponse> retrieveTeamMemberBookingProfileAsync(String teamMemberId)
teamMemberId - Required parameter: The ID of the team member to retrieve.RetrieveBookingResponse retrieveBooking(String bookingId) throws ApiException, IOException
bookingId - Required parameter: The ID of the [Booking]($m/Booking) object
representing the to-be-retrieved booking.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveBookingResponse> retrieveBookingAsync(String bookingId)
bookingId - Required parameter: The ID of the [Booking]($m/Booking) object
representing the to-be-retrieved booking.UpdateBookingResponse updateBooking(String bookingId, UpdateBookingRequest body) throws ApiException, IOException
bookingId - Required parameter: The ID of the [Booking]($m/Booking) object
representing the to-be-updated booking.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<UpdateBookingResponse> updateBookingAsync(String bookingId, UpdateBookingRequest body)
bookingId - Required parameter: The ID of the [Booking]($m/Booking) object
representing the to-be-updated booking.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.CancelBookingResponse cancelBooking(String bookingId, CancelBookingRequest body) throws ApiException, IOException
bookingId - Required parameter: The ID of the [Booking]($m/Booking) object
representing the to-be-cancelled booking.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<CancelBookingResponse> cancelBookingAsync(String bookingId, CancelBookingRequest body)
bookingId - Required parameter: The ID of the [Booking]($m/Booking) object
representing the to-be-cancelled booking.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.Copyright © 2022. All rights reserved.