public interface CustomerCustomAttributesApi
| Modifier and Type | Method and Description |
|---|---|
BulkUpsertCustomerCustomAttributesResponse |
bulkUpsertCustomerCustomAttributes(BulkUpsertCustomerCustomAttributesRequest body)
Creates or updates [custom attributes]($m/CustomAttribute) for customer profiles as a bulk
operation.
|
CompletableFuture<BulkUpsertCustomerCustomAttributesResponse> |
bulkUpsertCustomerCustomAttributesAsync(BulkUpsertCustomerCustomAttributesRequest body)
Creates or updates [custom attributes]($m/CustomAttribute) for customer profiles as a bulk
operation.
|
CreateCustomerCustomAttributeDefinitionResponse |
createCustomerCustomAttributeDefinition(CreateCustomerCustomAttributeDefinitionRequest body)
Creates a customer-related [custom attribute definition]($m/CustomAttributeDefinition) for a
Square seller account.
|
CompletableFuture<CreateCustomerCustomAttributeDefinitionResponse> |
createCustomerCustomAttributeDefinitionAsync(CreateCustomerCustomAttributeDefinitionRequest body)
Creates a customer-related [custom attribute definition]($m/CustomAttributeDefinition) for a
Square seller account.
|
DeleteCustomerCustomAttributeResponse |
deleteCustomerCustomAttribute(String customerId,
String key)
Deletes a [custom attribute]($m/CustomAttribute) associated with a customer profile.
|
CompletableFuture<DeleteCustomerCustomAttributeResponse> |
deleteCustomerCustomAttributeAsync(String customerId,
String key)
Deletes a [custom attribute]($m/CustomAttribute) associated with a customer profile.
|
DeleteCustomerCustomAttributeDefinitionResponse |
deleteCustomerCustomAttributeDefinition(String key)
Deletes a customer-related [custom attribute definition]($m/CustomAttributeDefinition) from a
Square seller account.
|
CompletableFuture<DeleteCustomerCustomAttributeDefinitionResponse> |
deleteCustomerCustomAttributeDefinitionAsync(String key)
Deletes a customer-related [custom attribute definition]($m/CustomAttributeDefinition) from a
Square seller account.
|
ListCustomerCustomAttributeDefinitionsResponse |
listCustomerCustomAttributeDefinitions(Integer limit,
String cursor)
Lists the customer-related [custom attribute definitions]($m/CustomAttributeDefinition) that
belong to a Square seller account.
|
CompletableFuture<ListCustomerCustomAttributeDefinitionsResponse> |
listCustomerCustomAttributeDefinitionsAsync(Integer limit,
String cursor)
Lists the customer-related [custom attribute definitions]($m/CustomAttributeDefinition) that
belong to a Square seller account.
|
ListCustomerCustomAttributesResponse |
listCustomerCustomAttributes(String customerId,
Integer limit,
String cursor,
Boolean withDefinitions)
Lists the [custom attributes]($m/CustomAttribute) associated with a customer profile.
|
CompletableFuture<ListCustomerCustomAttributesResponse> |
listCustomerCustomAttributesAsync(String customerId,
Integer limit,
String cursor,
Boolean withDefinitions)
Lists the [custom attributes]($m/CustomAttribute) associated with a customer profile.
|
RetrieveCustomerCustomAttributeResponse |
retrieveCustomerCustomAttribute(String customerId,
String key,
Boolean withDefinition,
Integer version)
Retrieves a [custom attribute]($m/CustomAttribute) associated with a customer profile.
|
CompletableFuture<RetrieveCustomerCustomAttributeResponse> |
retrieveCustomerCustomAttributeAsync(String customerId,
String key,
Boolean withDefinition,
Integer version)
Retrieves a [custom attribute]($m/CustomAttribute) associated with a customer profile.
|
RetrieveCustomerCustomAttributeDefinitionResponse |
retrieveCustomerCustomAttributeDefinition(String key,
Integer version)
Retrieves a customer-related [custom attribute definition]($m/CustomAttributeDefinition) from
a Square seller account.
|
CompletableFuture<RetrieveCustomerCustomAttributeDefinitionResponse> |
retrieveCustomerCustomAttributeDefinitionAsync(String key,
Integer version)
Retrieves a customer-related [custom attribute definition]($m/CustomAttributeDefinition) from
a Square seller account.
|
UpdateCustomerCustomAttributeDefinitionResponse |
updateCustomerCustomAttributeDefinition(String key,
UpdateCustomerCustomAttributeDefinitionRequest body)
Updates a customer-related [custom attribute definition]($m/CustomAttributeDefinition) for a
Square seller account.
|
CompletableFuture<UpdateCustomerCustomAttributeDefinitionResponse> |
updateCustomerCustomAttributeDefinitionAsync(String key,
UpdateCustomerCustomAttributeDefinitionRequest body)
Updates a customer-related [custom attribute definition]($m/CustomAttributeDefinition) for a
Square seller account.
|
UpsertCustomerCustomAttributeResponse |
upsertCustomerCustomAttribute(String customerId,
String key,
UpsertCustomerCustomAttributeRequest body)
Creates or updates a [custom attribute]($m/CustomAttribute) for a customer profile.
|
CompletableFuture<UpsertCustomerCustomAttributeResponse> |
upsertCustomerCustomAttributeAsync(String customerId,
String key,
UpsertCustomerCustomAttributeRequest body)
Creates or updates a [custom attribute]($m/CustomAttribute) for a customer profile.
|
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](entity: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](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<ListCustomerCustomAttributesResponse> listCustomerCustomAttributesAsync(String customerId, Integer limit, String cursor, Boolean withDefinitions)
customerId - Required parameter: The ID of the target [customer
profile](entity: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](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`.DeleteCustomerCustomAttributeResponse deleteCustomerCustomAttribute(String customerId, String key) throws ApiException, IOException
customerId - Required parameter: The ID of the target [customer
profile](entity: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](entity: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](entity: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](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<RetrieveCustomerCustomAttributeResponse> retrieveCustomerCustomAttributeAsync(String customerId, String key, Boolean withDefinition, Integer version)
customerId - Required parameter: The ID of the target [customer
profile](entity: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](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.UpsertCustomerCustomAttributeResponse upsertCustomerCustomAttribute(String customerId, String key, UpsertCustomerCustomAttributeRequest body) throws ApiException, IOException
customerId - Required parameter: The ID of the target [customer
profile](entity: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](entity: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 © 2024. All rights reserved.