public final class DefaultBookingCustomAttributesApi extends BaseApi implements BookingCustomAttributesApi
AUTHENTICATION_KEY, GLOBAL_ERROR_CASES| Constructor and Description |
|---|
DefaultBookingCustomAttributesApi(io.apimatic.core.GlobalConfiguration globalConfig)
Initializes the controller.
|
getClientInstance, getGlobalConfiguration, getHttpCallbackpublic DefaultBookingCustomAttributesApi(io.apimatic.core.GlobalConfiguration globalConfig)
globalConfig - Configurations added in client.public ListBookingCustomAttributeDefinitionsResponse listBookingCustomAttributeDefinitions(Integer limit, String cursor) throws ApiException, IOException
listBookingCustomAttributeDefinitions in interface BookingCustomAttributesApilimit - Optional parameter: The maximum number of results to return in a single paged
response. This limit is advisory. The response might contain more or fewer results.
The minimum value is 1 and the maximum value is 100. The default value is 20. For
more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).cursor - Optional parameter: The cursor returned in the paged response from the
previous call to this endpoint. Provide this cursor to retrieve the next page of
results for your original request. For more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ListBookingCustomAttributeDefinitionsResponse> listBookingCustomAttributeDefinitionsAsync(Integer limit, String cursor)
listBookingCustomAttributeDefinitionsAsync in interface BookingCustomAttributesApilimit - Optional parameter: The maximum number of results to return in a single paged
response. This limit is advisory. The response might contain more or fewer results.
The minimum value is 1 and the maximum value is 100. The default value is 20. For
more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).cursor - Optional parameter: The cursor returned in the paged response from the
previous call to this endpoint. Provide this cursor to retrieve the next page of
results for your original request. For more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).public CreateBookingCustomAttributeDefinitionResponse createBookingCustomAttributeDefinition(CreateBookingCustomAttributeDefinitionRequest body) throws ApiException, IOException
createBookingCustomAttributeDefinition in interface BookingCustomAttributesApibody - 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<CreateBookingCustomAttributeDefinitionResponse> createBookingCustomAttributeDefinitionAsync(CreateBookingCustomAttributeDefinitionRequest body)
createBookingCustomAttributeDefinitionAsync in interface BookingCustomAttributesApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public DeleteBookingCustomAttributeDefinitionResponse deleteBookingCustomAttributeDefinition(String key) throws ApiException, IOException
deleteBookingCustomAttributeDefinition in interface BookingCustomAttributesApikey - Required parameter: The key of the custom attribute definition to delete.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<DeleteBookingCustomAttributeDefinitionResponse> deleteBookingCustomAttributeDefinitionAsync(String key)
deleteBookingCustomAttributeDefinitionAsync in interface BookingCustomAttributesApikey - Required parameter: The key of the custom attribute definition to delete.public RetrieveBookingCustomAttributeDefinitionResponse retrieveBookingCustomAttributeDefinition(String key, Integer version) throws ApiException, IOException
retrieveBookingCustomAttributeDefinition in interface BookingCustomAttributesApikey - Required parameter: The key of the custom attribute definition to retrieve. If
the requesting application is not the definition owner, you must use the qualified
key.version - Optional parameter: The current version of the custom attribute definition,
which is used for strongly consistent reads to guarantee that you receive the most
up-to-date data. When included in the request, Square returns the specified version
or a higher version if one exists. If the specified version is higher than the
current version, Square returns a `BAD_REQUEST` error.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveBookingCustomAttributeDefinitionResponse> retrieveBookingCustomAttributeDefinitionAsync(String key, Integer version)
retrieveBookingCustomAttributeDefinitionAsync in interface BookingCustomAttributesApikey - Required parameter: The key of the custom attribute definition to retrieve. If
the requesting application is not the definition owner, you must use the qualified
key.version - Optional parameter: The current version of the custom attribute definition,
which is used for strongly consistent reads to guarantee that you receive the most
up-to-date data. When included in the request, Square returns the specified version
or a higher version if one exists. If the specified version is higher than the
current version, Square returns a `BAD_REQUEST` error.public UpdateBookingCustomAttributeDefinitionResponse updateBookingCustomAttributeDefinition(String key, UpdateBookingCustomAttributeDefinitionRequest body) throws ApiException, IOException
updateBookingCustomAttributeDefinition in interface BookingCustomAttributesApikey - Required parameter: The key of the custom attribute definition to update.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<UpdateBookingCustomAttributeDefinitionResponse> updateBookingCustomAttributeDefinitionAsync(String key, UpdateBookingCustomAttributeDefinitionRequest body)
updateBookingCustomAttributeDefinitionAsync in interface BookingCustomAttributesApikey - Required parameter: The key of the custom attribute definition to update.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public BulkDeleteBookingCustomAttributesResponse bulkDeleteBookingCustomAttributes(BulkDeleteBookingCustomAttributesRequest body) throws ApiException, IOException
bulkDeleteBookingCustomAttributes in interface BookingCustomAttributesApibody - 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<BulkDeleteBookingCustomAttributesResponse> bulkDeleteBookingCustomAttributesAsync(BulkDeleteBookingCustomAttributesRequest body)
bulkDeleteBookingCustomAttributesAsync in interface BookingCustomAttributesApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public BulkUpsertBookingCustomAttributesResponse bulkUpsertBookingCustomAttributes(BulkUpsertBookingCustomAttributesRequest body) throws ApiException, IOException
bulkUpsertBookingCustomAttributes in interface BookingCustomAttributesApibody - 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<BulkUpsertBookingCustomAttributesResponse> bulkUpsertBookingCustomAttributesAsync(BulkUpsertBookingCustomAttributesRequest body)
bulkUpsertBookingCustomAttributesAsync in interface BookingCustomAttributesApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public ListBookingCustomAttributesResponse listBookingCustomAttributes(String bookingId, Integer limit, String cursor, Boolean withDefinitions) throws ApiException, IOException
listBookingCustomAttributes in interface BookingCustomAttributesApibookingId - Required parameter: The ID of the target [booking](entity:Booking).limit - Optional parameter: The maximum number of results to return in a single paged
response. This limit is advisory. The response might contain more or fewer results.
The minimum value is 1 and the maximum value is 100. The default value is 20. For
more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).cursor - Optional parameter: The cursor returned in the paged response from the
previous call to this endpoint. Provide this cursor to retrieve the next page of
results for your original request. For more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).withDefinitions - Optional parameter: Indicates whether to return the [custom
attribute definition](entity:CustomAttributeDefinition) in the `definition` field of
each custom attribute. Set this parameter to `true` to get the name and description
of each custom attribute, information about the data type, or other definition
details. The default value is `false`.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ListBookingCustomAttributesResponse> listBookingCustomAttributesAsync(String bookingId, Integer limit, String cursor, Boolean withDefinitions)
listBookingCustomAttributesAsync in interface BookingCustomAttributesApibookingId - Required parameter: The ID of the target [booking](entity:Booking).limit - Optional parameter: The maximum number of results to return in a single paged
response. This limit is advisory. The response might contain more or fewer results.
The minimum value is 1 and the maximum value is 100. The default value is 20. For
more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).cursor - Optional parameter: The cursor returned in the paged response from the
previous call to this endpoint. Provide this cursor to retrieve the next page of
results for your original request. For more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).withDefinitions - Optional parameter: Indicates whether to return the [custom
attribute definition](entity:CustomAttributeDefinition) in the `definition` field of
each custom attribute. Set this parameter to `true` to get the name and description
of each custom attribute, information about the data type, or other definition
details. The default value is `false`.public DeleteBookingCustomAttributeResponse deleteBookingCustomAttribute(String bookingId, String key) throws ApiException, IOException
deleteBookingCustomAttribute in interface BookingCustomAttributesApibookingId - Required parameter: The ID of the target [booking](entity:Booking).key - Required parameter: The key of the custom attribute to delete. This key must
match the `key` of a custom attribute definition in the Square seller account. If the
requesting application is not the definition owner, you must use the qualified key.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<DeleteBookingCustomAttributeResponse> deleteBookingCustomAttributeAsync(String bookingId, String key)
deleteBookingCustomAttributeAsync in interface BookingCustomAttributesApibookingId - Required parameter: The ID of the target [booking](entity:Booking).key - Required parameter: The key of the custom attribute to delete. This key must
match the `key` of a custom attribute definition in the Square seller account. If the
requesting application is not the definition owner, you must use the qualified key.public RetrieveBookingCustomAttributeResponse retrieveBookingCustomAttribute(String bookingId, String key, Boolean withDefinition, Integer version) throws ApiException, IOException
retrieveBookingCustomAttribute in interface BookingCustomAttributesApibookingId - Required parameter: The ID of the target [booking](entity:Booking).key - Required parameter: The key of the custom attribute to retrieve. This key must
match the `key` of a custom attribute definition in the Square seller account. If the
requesting application is not the definition owner, you must use the qualified key.withDefinition - Optional parameter: Indicates whether to return the [custom attribute
definition](entity:CustomAttributeDefinition) in the `definition` field of the custom
attribute. Set this parameter to `true` to get the name and description of the custom
attribute, information about the data type, or other definition details. The default
value is `false`.version - Optional parameter: The current version of the custom attribute, which is
used for strongly consistent reads to guarantee that you receive the most up-to-date
data. When included in the request, Square returns the specified version or a higher
version if one exists. If the specified version is higher than the current version,
Square returns a `BAD_REQUEST` error.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveBookingCustomAttributeResponse> retrieveBookingCustomAttributeAsync(String bookingId, String key, Boolean withDefinition, Integer version)
retrieveBookingCustomAttributeAsync in interface BookingCustomAttributesApibookingId - Required parameter: The ID of the target [booking](entity:Booking).key - Required parameter: The key of the custom attribute to retrieve. This key must
match the `key` of a custom attribute definition in the Square seller account. If the
requesting application is not the definition owner, you must use the qualified key.withDefinition - Optional parameter: Indicates whether to return the [custom attribute
definition](entity:CustomAttributeDefinition) in the `definition` field of the custom
attribute. Set this parameter to `true` to get the name and description of the custom
attribute, information about the data type, or other definition details. The default
value is `false`.version - Optional parameter: The current version of the custom attribute, which is
used for strongly consistent reads to guarantee that you receive the most up-to-date
data. When included in the request, Square returns the specified version or a higher
version if one exists. If the specified version is higher than the current version,
Square returns a `BAD_REQUEST` error.public UpsertBookingCustomAttributeResponse upsertBookingCustomAttribute(String bookingId, String key, UpsertBookingCustomAttributeRequest body) throws ApiException, IOException
upsertBookingCustomAttribute in interface BookingCustomAttributesApibookingId - Required parameter: The ID of the target [booking](entity:Booking).key - Required parameter: The key of the custom attribute to create or update. This
key must match the `key` of a custom attribute definition in the Square seller
account. If the requesting application is not the definition owner, you must use the
qualified key.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<UpsertBookingCustomAttributeResponse> upsertBookingCustomAttributeAsync(String bookingId, String key, UpsertBookingCustomAttributeRequest body)
upsertBookingCustomAttributeAsync in interface BookingCustomAttributesApibookingId - Required parameter: The ID of the target [booking](entity:Booking).key - Required parameter: The key of the custom attribute to create or update. This
key must match the `key` of a custom attribute definition in the Square seller
account. If the requesting application is not the definition owner, you must use the
qualified key.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.