public interface CustomerCustomAttributesApi
ListCustomerCustomAttributeDefinitionsResponse listCustomerCustomAttributeDefinitions(Integer limit, String cursor) throws ApiException, IOException
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<ListCustomerCustomAttributeDefinitionsResponse> listCustomerCustomAttributeDefinitionsAsync(Integer limit, String cursor)
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).CreateCustomerCustomAttributeDefinitionResponse createCustomerCustomAttributeDefinition(CreateCustomerCustomAttributeDefinitionRequest 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<CreateCustomerCustomAttributeDefinitionResponse> createCustomerCustomAttributeDefinitionAsync(CreateCustomerCustomAttributeDefinitionRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.DeleteCustomerCustomAttributeDefinitionResponse deleteCustomerCustomAttributeDefinition(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<DeleteCustomerCustomAttributeDefinitionResponse> deleteCustomerCustomAttributeDefinitionAsync(String key)
key - Required parameter: The key of the custom attribute definition to delete.RetrieveCustomerCustomAttributeDefinitionResponse retrieveCustomerCustomAttributeDefinition(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<RetrieveCustomerCustomAttributeDefinitionResponse> retrieveCustomerCustomAttributeDefinitionAsync(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.UpdateCustomerCustomAttributeDefinitionResponse updateCustomerCustomAttributeDefinition(String key, UpdateCustomerCustomAttributeDefinitionRequest 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<UpdateCustomerCustomAttributeDefinitionResponse> updateCustomerCustomAttributeDefinitionAsync(String key, UpdateCustomerCustomAttributeDefinitionRequest 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.BulkUpsertCustomerCustomAttributesResponse bulkUpsertCustomerCustomAttributes(BulkUpsertCustomerCustomAttributesRequest 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<BulkUpsertCustomerCustomAttributesResponse> bulkUpsertCustomerCustomAttributesAsync(BulkUpsertCustomerCustomAttributesRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ListCustomerCustomAttributesResponse listCustomerCustomAttributes(String customerId, Integer limit, String cursor, Boolean withDefinitions) throws ApiException, IOException
customerId - Required parameter: The ID of the target [customer profile]($m/Customer).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]($m/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<ListCustomerCustomAttributesResponse> listCustomerCustomAttributesAsync(String customerId, Integer limit, String cursor, Boolean withDefinitions)
customerId - Required parameter: The ID of the target [customer profile]($m/Customer).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]($m/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`.DeleteCustomerCustomAttributeResponse deleteCustomerCustomAttribute(String customerId, String key) throws ApiException, IOException
customerId - Required parameter: The ID of the target [customer profile]($m/Customer).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<DeleteCustomerCustomAttributeResponse> deleteCustomerCustomAttributeAsync(String customerId, String key)
customerId - Required parameter: The ID of the target [customer profile]($m/Customer).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.RetrieveCustomerCustomAttributeResponse retrieveCustomerCustomAttribute(String customerId, String key, Boolean withDefinition, Integer version) throws ApiException, IOException
customerId - Required parameter: The ID of the target [customer profile]($m/Customer).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]($m/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<RetrieveCustomerCustomAttributeResponse> retrieveCustomerCustomAttributeAsync(String customerId, String key, Boolean withDefinition, Integer version)
customerId - Required parameter: The ID of the target [customer profile]($m/Customer).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]($m/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.UpsertCustomerCustomAttributeResponse upsertCustomerCustomAttribute(String customerId, String key, UpsertCustomerCustomAttributeRequest body) throws ApiException, IOException
customerId - Required parameter: The ID of the target [customer profile]($m/Customer).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<UpsertCustomerCustomAttributeResponse> upsertCustomerCustomAttributeAsync(String customerId, String key, UpsertCustomerCustomAttributeRequest body)
customerId - Required parameter: The ID of the target [customer profile]($m/Customer).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 © 2022. All rights reserved.