public interface LocationCustomAttributesApi
| 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.
|
ListLocationCustomAttributeDefinitionsResponse listLocationCustomAttributeDefinitions(String visibilityFilter, Integer limit, String cursor) throws ApiException, IOException
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).ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<ListLocationCustomAttributeDefinitionsResponse> listLocationCustomAttributeDefinitionsAsync(String visibilityFilter, Integer limit, String cursor)
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).CreateLocationCustomAttributeDefinitionResponse createLocationCustomAttributeDefinition(CreateLocationCustomAttributeDefinitionRequest 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<CreateLocationCustomAttributeDefinitionResponse> createLocationCustomAttributeDefinitionAsync(CreateLocationCustomAttributeDefinitionRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.DeleteLocationCustomAttributeDefinitionResponse deleteLocationCustomAttributeDefinition(String key) throws ApiException, IOException
key - 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.CompletableFuture<DeleteLocationCustomAttributeDefinitionResponse> deleteLocationCustomAttributeDefinitionAsync(String key)
key - Required parameter: The key of the custom attribute definition to delete.RetrieveLocationCustomAttributeDefinitionResponse retrieveLocationCustomAttributeDefinition(String key, Integer version) throws ApiException, IOException
key - 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.CompletableFuture<RetrieveLocationCustomAttributeDefinitionResponse> retrieveLocationCustomAttributeDefinitionAsync(String key, Integer version)
key - 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.UpdateLocationCustomAttributeDefinitionResponse updateLocationCustomAttributeDefinition(String key, UpdateLocationCustomAttributeDefinitionRequest body) throws ApiException, IOException
key - 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.CompletableFuture<UpdateLocationCustomAttributeDefinitionResponse> updateLocationCustomAttributeDefinitionAsync(String key, UpdateLocationCustomAttributeDefinitionRequest body)
key - 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.BulkDeleteLocationCustomAttributesResponse bulkDeleteLocationCustomAttributes(BulkDeleteLocationCustomAttributesRequest 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<BulkDeleteLocationCustomAttributesResponse> bulkDeleteLocationCustomAttributesAsync(BulkDeleteLocationCustomAttributesRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.BulkUpsertLocationCustomAttributesResponse bulkUpsertLocationCustomAttributes(BulkUpsertLocationCustomAttributesRequest 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<BulkUpsertLocationCustomAttributesResponse> bulkUpsertLocationCustomAttributesAsync(BulkUpsertLocationCustomAttributesRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ListLocationCustomAttributesResponse listLocationCustomAttributes(String locationId, String visibilityFilter, Integer limit, String cursor, Boolean withDefinitions) throws ApiException, IOException
locationId - 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.CompletableFuture<ListLocationCustomAttributesResponse> listLocationCustomAttributesAsync(String locationId, String visibilityFilter, Integer limit, String cursor, Boolean withDefinitions)
locationId - 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`.DeleteLocationCustomAttributeResponse deleteLocationCustomAttribute(String locationId, String key) throws ApiException, IOException
locationId - 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.CompletableFuture<DeleteLocationCustomAttributeResponse> deleteLocationCustomAttributeAsync(String locationId, String key)
locationId - 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.RetrieveLocationCustomAttributeResponse retrieveLocationCustomAttribute(String locationId, String key, Boolean withDefinition, Integer version) throws ApiException, IOException
locationId - 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.CompletableFuture<RetrieveLocationCustomAttributeResponse> retrieveLocationCustomAttributeAsync(String locationId, String key, Boolean withDefinition, Integer version)
locationId - 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.UpsertLocationCustomAttributeResponse upsertLocationCustomAttribute(String locationId, String key, UpsertLocationCustomAttributeRequest body) throws ApiException, IOException
locationId - 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.CompletableFuture<UpsertLocationCustomAttributeResponse> upsertLocationCustomAttributeAsync(String locationId, String key, UpsertLocationCustomAttributeRequest body)
locationId - 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.