public final class DefaultLocationCustomAttributesApi extends BaseApi implements LocationCustomAttributesApi
AUTHENTICATION_KEY, GLOBAL_ERROR_CASES| Constructor and Description |
|---|
DefaultLocationCustomAttributesApi(io.apimatic.core.GlobalConfiguration globalConfig)
Initializes the controller.
|
| Modifier and Type | Method and Description |
|---|---|
BulkDeleteLocationCustomAttributesResponse |
bulkDeleteLocationCustomAttributes(BulkDeleteLocationCustomAttributesRequest body)
Deletes [custom attributes]($m/CustomAttribute) for locations as a bulk operation.
|
CompletableFuture<BulkDeleteLocationCustomAttributesResponse> |
bulkDeleteLocationCustomAttributesAsync(BulkDeleteLocationCustomAttributesRequest body)
Deletes [custom attributes]($m/CustomAttribute) for locations as a bulk operation.
|
BulkUpsertLocationCustomAttributesResponse |
bulkUpsertLocationCustomAttributes(BulkUpsertLocationCustomAttributesRequest body)
Creates or updates [custom attributes]($m/CustomAttribute) for locations as a bulk operation.
|
CompletableFuture<BulkUpsertLocationCustomAttributesResponse> |
bulkUpsertLocationCustomAttributesAsync(BulkUpsertLocationCustomAttributesRequest body)
Creates or updates [custom attributes]($m/CustomAttribute) for locations as a bulk operation.
|
CreateLocationCustomAttributeDefinitionResponse |
createLocationCustomAttributeDefinition(CreateLocationCustomAttributeDefinitionRequest body)
Creates a location-related [custom attribute definition]($m/CustomAttributeDefinition) for a
Square seller account.
|
CompletableFuture<CreateLocationCustomAttributeDefinitionResponse> |
createLocationCustomAttributeDefinitionAsync(CreateLocationCustomAttributeDefinitionRequest body)
Creates a location-related [custom attribute definition]($m/CustomAttributeDefinition) for a
Square seller account.
|
DeleteLocationCustomAttributeResponse |
deleteLocationCustomAttribute(String locationId,
String key)
Deletes a [custom attribute]($m/CustomAttribute) associated with a location.
|
CompletableFuture<DeleteLocationCustomAttributeResponse> |
deleteLocationCustomAttributeAsync(String locationId,
String key)
Deletes a [custom attribute]($m/CustomAttribute) associated with a location.
|
DeleteLocationCustomAttributeDefinitionResponse |
deleteLocationCustomAttributeDefinition(String key)
Deletes a location-related [custom attribute definition]($m/CustomAttributeDefinition) from a
Square seller account.
|
CompletableFuture<DeleteLocationCustomAttributeDefinitionResponse> |
deleteLocationCustomAttributeDefinitionAsync(String key)
Deletes a location-related [custom attribute definition]($m/CustomAttributeDefinition) from a
Square seller account.
|
ListLocationCustomAttributeDefinitionsResponse |
listLocationCustomAttributeDefinitions(String visibilityFilter,
Integer limit,
String cursor)
Lists the location-related [custom attribute definitions]($m/CustomAttributeDefinition) that
belong to a Square seller account.
|
CompletableFuture<ListLocationCustomAttributeDefinitionsResponse> |
listLocationCustomAttributeDefinitionsAsync(String visibilityFilter,
Integer limit,
String cursor)
Lists the location-related [custom attribute definitions]($m/CustomAttributeDefinition) that
belong to a Square seller account.
|
ListLocationCustomAttributesResponse |
listLocationCustomAttributes(String locationId,
String visibilityFilter,
Integer limit,
String cursor,
Boolean withDefinitions)
Lists the [custom attributes]($m/CustomAttribute) associated with a location.
|
CompletableFuture<ListLocationCustomAttributesResponse> |
listLocationCustomAttributesAsync(String locationId,
String visibilityFilter,
Integer limit,
String cursor,
Boolean withDefinitions)
Lists the [custom attributes]($m/CustomAttribute) associated with a location.
|
RetrieveLocationCustomAttributeResponse |
retrieveLocationCustomAttribute(String locationId,
String key,
Boolean withDefinition,
Integer version)
Retrieves a [custom attribute]($m/CustomAttribute) associated with a location.
|
CompletableFuture<RetrieveLocationCustomAttributeResponse> |
retrieveLocationCustomAttributeAsync(String locationId,
String key,
Boolean withDefinition,
Integer version)
Retrieves a [custom attribute]($m/CustomAttribute) associated with a location.
|
RetrieveLocationCustomAttributeDefinitionResponse |
retrieveLocationCustomAttributeDefinition(String key,
Integer version)
Retrieves a location-related [custom attribute definition]($m/CustomAttributeDefinition) from
a Square seller account.
|
CompletableFuture<RetrieveLocationCustomAttributeDefinitionResponse> |
retrieveLocationCustomAttributeDefinitionAsync(String key,
Integer version)
Retrieves a location-related [custom attribute definition]($m/CustomAttributeDefinition) from
a Square seller account.
|
UpdateLocationCustomAttributeDefinitionResponse |
updateLocationCustomAttributeDefinition(String key,
UpdateLocationCustomAttributeDefinitionRequest body)
Updates a location-related [custom attribute definition]($m/CustomAttributeDefinition) for a
Square seller account.
|
CompletableFuture<UpdateLocationCustomAttributeDefinitionResponse> |
updateLocationCustomAttributeDefinitionAsync(String key,
UpdateLocationCustomAttributeDefinitionRequest body)
Updates a location-related [custom attribute definition]($m/CustomAttributeDefinition) for a
Square seller account.
|
UpsertLocationCustomAttributeResponse |
upsertLocationCustomAttribute(String locationId,
String key,
UpsertLocationCustomAttributeRequest body)
Creates or updates a [custom attribute]($m/CustomAttribute) for a location.
|
CompletableFuture<UpsertLocationCustomAttributeResponse> |
upsertLocationCustomAttributeAsync(String locationId,
String key,
UpsertLocationCustomAttributeRequest body)
Creates or updates a [custom attribute]($m/CustomAttribute) for a location.
|
getClientInstance, getGlobalConfiguration, getHttpCallbackpublic DefaultLocationCustomAttributesApi(io.apimatic.core.GlobalConfiguration globalConfig)
globalConfig - Configurations added in client.public ListLocationCustomAttributeDefinitionsResponse listLocationCustomAttributeDefinitions(String visibilityFilter, Integer limit, String cursor) throws ApiException, IOException
listLocationCustomAttributeDefinitions in interface LocationCustomAttributesApivisibilityFilter - Optional parameter: Filters the `CustomAttributeDefinition` results
by their `visibility` values.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).ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ListLocationCustomAttributeDefinitionsResponse> listLocationCustomAttributeDefinitionsAsync(String visibilityFilter, Integer limit, String cursor)
listLocationCustomAttributeDefinitionsAsync in interface LocationCustomAttributesApivisibilityFilter - Optional parameter: Filters the `CustomAttributeDefinition` results
by their `visibility` values.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).public CreateLocationCustomAttributeDefinitionResponse createLocationCustomAttributeDefinition(CreateLocationCustomAttributeDefinitionRequest body) throws ApiException, IOException
createLocationCustomAttributeDefinition in interface LocationCustomAttributesApibody - 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<CreateLocationCustomAttributeDefinitionResponse> createLocationCustomAttributeDefinitionAsync(CreateLocationCustomAttributeDefinitionRequest body)
createLocationCustomAttributeDefinitionAsync in interface LocationCustomAttributesApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public DeleteLocationCustomAttributeDefinitionResponse deleteLocationCustomAttributeDefinition(String key) throws ApiException, IOException
deleteLocationCustomAttributeDefinition in interface LocationCustomAttributesApikey - 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<DeleteLocationCustomAttributeDefinitionResponse> deleteLocationCustomAttributeDefinitionAsync(String key)
deleteLocationCustomAttributeDefinitionAsync in interface LocationCustomAttributesApikey - Required parameter: The key of the custom attribute definition to delete.public RetrieveLocationCustomAttributeDefinitionResponse retrieveLocationCustomAttributeDefinition(String key, Integer version) throws ApiException, IOException
retrieveLocationCustomAttributeDefinition in interface LocationCustomAttributesApikey - 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<RetrieveLocationCustomAttributeDefinitionResponse> retrieveLocationCustomAttributeDefinitionAsync(String key, Integer version)
retrieveLocationCustomAttributeDefinitionAsync in interface LocationCustomAttributesApikey - 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 UpdateLocationCustomAttributeDefinitionResponse updateLocationCustomAttributeDefinition(String key, UpdateLocationCustomAttributeDefinitionRequest body) throws ApiException, IOException
updateLocationCustomAttributeDefinition in interface LocationCustomAttributesApikey - 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<UpdateLocationCustomAttributeDefinitionResponse> updateLocationCustomAttributeDefinitionAsync(String key, UpdateLocationCustomAttributeDefinitionRequest body)
updateLocationCustomAttributeDefinitionAsync in interface LocationCustomAttributesApikey - 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 BulkDeleteLocationCustomAttributesResponse bulkDeleteLocationCustomAttributes(BulkDeleteLocationCustomAttributesRequest body) throws ApiException, IOException
bulkDeleteLocationCustomAttributes in interface LocationCustomAttributesApibody - 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<BulkDeleteLocationCustomAttributesResponse> bulkDeleteLocationCustomAttributesAsync(BulkDeleteLocationCustomAttributesRequest body)
bulkDeleteLocationCustomAttributesAsync in interface LocationCustomAttributesApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public BulkUpsertLocationCustomAttributesResponse bulkUpsertLocationCustomAttributes(BulkUpsertLocationCustomAttributesRequest body) throws ApiException, IOException
bulkUpsertLocationCustomAttributes in interface LocationCustomAttributesApibody - 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<BulkUpsertLocationCustomAttributesResponse> bulkUpsertLocationCustomAttributesAsync(BulkUpsertLocationCustomAttributesRequest body)
bulkUpsertLocationCustomAttributesAsync in interface LocationCustomAttributesApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public ListLocationCustomAttributesResponse listLocationCustomAttributes(String locationId, String visibilityFilter, Integer limit, String cursor, Boolean withDefinitions) throws ApiException, IOException
listLocationCustomAttributes in interface LocationCustomAttributesApilocationId - Required parameter: The ID of the target [location](entity:Location).visibilityFilter - Optional parameter: Filters the `CustomAttributeDefinition` results
by their `visibility` values.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<ListLocationCustomAttributesResponse> listLocationCustomAttributesAsync(String locationId, String visibilityFilter, Integer limit, String cursor, Boolean withDefinitions)
listLocationCustomAttributesAsync in interface LocationCustomAttributesApilocationId - Required parameter: The ID of the target [location](entity:Location).visibilityFilter - Optional parameter: Filters the `CustomAttributeDefinition` results
by their `visibility` values.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 DeleteLocationCustomAttributeResponse deleteLocationCustomAttribute(String locationId, String key) throws ApiException, IOException
deleteLocationCustomAttribute in interface LocationCustomAttributesApilocationId - Required parameter: The ID of the target [location](entity:Location).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<DeleteLocationCustomAttributeResponse> deleteLocationCustomAttributeAsync(String locationId, String key)
deleteLocationCustomAttributeAsync in interface LocationCustomAttributesApilocationId - Required parameter: The ID of the target [location](entity:Location).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 RetrieveLocationCustomAttributeResponse retrieveLocationCustomAttribute(String locationId, String key, Boolean withDefinition, Integer version) throws ApiException, IOException
retrieveLocationCustomAttribute in interface LocationCustomAttributesApilocationId - Required parameter: The ID of the target [location](entity:Location).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<RetrieveLocationCustomAttributeResponse> retrieveLocationCustomAttributeAsync(String locationId, String key, Boolean withDefinition, Integer version)
retrieveLocationCustomAttributeAsync in interface LocationCustomAttributesApilocationId - Required parameter: The ID of the target [location](entity:Location).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 UpsertLocationCustomAttributeResponse upsertLocationCustomAttribute(String locationId, String key, UpsertLocationCustomAttributeRequest body) throws ApiException, IOException
upsertLocationCustomAttribute in interface LocationCustomAttributesApilocationId - Required parameter: The ID of the target [location](entity:Location).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<UpsertLocationCustomAttributeResponse> upsertLocationCustomAttributeAsync(String locationId, String key, UpsertLocationCustomAttributeRequest body)
upsertLocationCustomAttributeAsync in interface LocationCustomAttributesApilocationId - Required parameter: The ID of the target [location](entity:Location).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 © 2023. All rights reserved.