public final class DefaultBookingsApi extends BaseApi implements BookingsApi
BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultBookingsApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultBookingsApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultBookingsApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.public DefaultBookingsApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers, HttpCallback httpCallback)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.httpCallback - Callback to be called before and after the HTTP call.public ListBookingsResponse listBookings(Integer limit, String cursor, String teamMemberId, String locationId, String startAtMin, String startAtMax) throws ApiException, IOException
listBookings in interface BookingsApilimit - 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.public CompletableFuture<ListBookingsResponse> listBookingsAsync(Integer limit, String cursor, String teamMemberId, String locationId, String startAtMin, String startAtMax)
listBookingsAsync in interface BookingsApilimit - 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.public CreateBookingResponse createBooking(CreateBookingRequest body) throws ApiException, IOException
createBooking in interface BookingsApibody - 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.public CompletableFuture<CreateBookingResponse> createBookingAsync(CreateBookingRequest body)
createBookingAsync in interface BookingsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public SearchAvailabilityResponse searchAvailability(SearchAvailabilityRequest body) throws ApiException, IOException
searchAvailability in interface BookingsApibody - 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.public CompletableFuture<SearchAvailabilityResponse> searchAvailabilityAsync(SearchAvailabilityRequest body)
searchAvailabilityAsync in interface BookingsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public RetrieveBusinessBookingProfileResponse retrieveBusinessBookingProfile() throws ApiException, IOException
retrieveBusinessBookingProfile in interface BookingsApiApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveBusinessBookingProfileResponse> retrieveBusinessBookingProfileAsync()
retrieveBusinessBookingProfileAsync in interface BookingsApipublic ListTeamMemberBookingProfilesResponse listTeamMemberBookingProfiles(Boolean bookableOnly, Integer limit, String cursor, String locationId) throws ApiException, IOException
listTeamMemberBookingProfiles in interface BookingsApibookableOnly - 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.public CompletableFuture<ListTeamMemberBookingProfilesResponse> listTeamMemberBookingProfilesAsync(Boolean bookableOnly, Integer limit, String cursor, String locationId)
listTeamMemberBookingProfilesAsync in interface BookingsApibookableOnly - 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.public RetrieveTeamMemberBookingProfileResponse retrieveTeamMemberBookingProfile(String teamMemberId) throws ApiException, IOException
retrieveTeamMemberBookingProfile in interface BookingsApiteamMemberId - 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.public CompletableFuture<RetrieveTeamMemberBookingProfileResponse> retrieveTeamMemberBookingProfileAsync(String teamMemberId)
retrieveTeamMemberBookingProfileAsync in interface BookingsApiteamMemberId - Required parameter: The ID of the team member to retrieve.public RetrieveBookingResponse retrieveBooking(String bookingId) throws ApiException, IOException
retrieveBooking in interface BookingsApibookingId - 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.public CompletableFuture<RetrieveBookingResponse> retrieveBookingAsync(String bookingId)
retrieveBookingAsync in interface BookingsApibookingId - Required parameter: The ID of the [Booking]($m/Booking) object
representing the to-be-retrieved booking.public UpdateBookingResponse updateBooking(String bookingId, UpdateBookingRequest body) throws ApiException, IOException
updateBooking in interface BookingsApibookingId - 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.public CompletableFuture<UpdateBookingResponse> updateBookingAsync(String bookingId, UpdateBookingRequest body)
updateBookingAsync in interface BookingsApibookingId - 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.public CancelBookingResponse cancelBooking(String bookingId, CancelBookingRequest body) throws ApiException, IOException
cancelBooking in interface BookingsApibookingId - 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.public CompletableFuture<CancelBookingResponse> cancelBookingAsync(String bookingId, CancelBookingRequest body)
cancelBookingAsync in interface BookingsApibookingId - 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.