public final class DefaultBookingsApi extends BaseApi implements BookingsApi
AUTHENTICATION_KEY, GLOBAL_ERROR_CASES| Constructor and Description |
|---|
DefaultBookingsApi(io.apimatic.core.GlobalConfiguration globalConfig)
Initializes the controller.
|
getClientInstance, getGlobalConfiguration, getHttpCallbackpublic DefaultBookingsApi(io.apimatic.core.GlobalConfiguration globalConfig)
globalConfig - Configurations added in client.public ListBookingsResponse listBookings(Integer limit, String cursor, String customerId, 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.customerId - Optional parameter: The [customer](entity:Customer) for whom to retrieve
bookings. If this is not set, bookings for all customers are retrieved.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 customerId, 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.customerId - Optional parameter: The [customer](entity:Customer) for whom to retrieve
bookings. If this is not set, bookings for all customers are retrieved.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 BulkRetrieveBookingsResponse bulkRetrieveBookings(BulkRetrieveBookingsRequest body) throws ApiException, IOException
bulkRetrieveBookings 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<BulkRetrieveBookingsResponse> bulkRetrieveBookingsAsync(BulkRetrieveBookingsRequest body)
bulkRetrieveBookingsAsync 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 ListLocationBookingProfilesResponse listLocationBookingProfiles(Integer limit, String cursor) throws ApiException, IOException
listLocationBookingProfiles in interface BookingsApilimit - 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.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ListLocationBookingProfilesResponse> listLocationBookingProfilesAsync(Integer limit, String cursor)
listLocationBookingProfilesAsync in interface BookingsApilimit - 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.public RetrieveLocationBookingProfileResponse retrieveLocationBookingProfile(String locationId) throws ApiException, IOException
retrieveLocationBookingProfile in interface BookingsApilocationId - Required parameter: The ID of the location to retrieve the booking
profile.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveLocationBookingProfileResponse> retrieveLocationBookingProfileAsync(String locationId)
retrieveLocationBookingProfileAsync in interface BookingsApilocationId - Required parameter: The ID of the location to retrieve the booking
profile.public 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 BulkRetrieveTeamMemberBookingProfilesResponse bulkRetrieveTeamMemberBookingProfiles(BulkRetrieveTeamMemberBookingProfilesRequest body) throws ApiException, IOException
bulkRetrieveTeamMemberBookingProfiles 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<BulkRetrieveTeamMemberBookingProfilesResponse> bulkRetrieveTeamMemberBookingProfilesAsync(BulkRetrieveTeamMemberBookingProfilesRequest body)
bulkRetrieveTeamMemberBookingProfilesAsync in interface BookingsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.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](entity: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](entity: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](entity: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](entity: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](entity: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](entity: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 © 2024. All rights reserved.