public interface MerchantCustomAttributesApi
| Modifier and Type | Method and Description |
|---|---|
BulkDeleteMerchantCustomAttributesResponse |
bulkDeleteMerchantCustomAttributes(BulkDeleteMerchantCustomAttributesRequest body)
Deletes [custom attributes]($m/CustomAttribute) for a merchant as a bulk operation.
|
CompletableFuture<BulkDeleteMerchantCustomAttributesResponse> |
bulkDeleteMerchantCustomAttributesAsync(BulkDeleteMerchantCustomAttributesRequest body)
Deletes [custom attributes]($m/CustomAttribute) for a merchant as a bulk operation.
|
BulkUpsertMerchantCustomAttributesResponse |
bulkUpsertMerchantCustomAttributes(BulkUpsertMerchantCustomAttributesRequest body)
Creates or updates [custom attributes]($m/CustomAttribute) for a merchant as a bulk
operation.
|
CompletableFuture<BulkUpsertMerchantCustomAttributesResponse> |
bulkUpsertMerchantCustomAttributesAsync(BulkUpsertMerchantCustomAttributesRequest body)
Creates or updates [custom attributes]($m/CustomAttribute) for a merchant as a bulk
operation.
|
CreateMerchantCustomAttributeDefinitionResponse |
createMerchantCustomAttributeDefinition(CreateMerchantCustomAttributeDefinitionRequest body)
Creates a merchant-related [custom attribute definition]($m/CustomAttributeDefinition) for a
Square seller account.
|
CompletableFuture<CreateMerchantCustomAttributeDefinitionResponse> |
createMerchantCustomAttributeDefinitionAsync(CreateMerchantCustomAttributeDefinitionRequest body)
Creates a merchant-related [custom attribute definition]($m/CustomAttributeDefinition) for a
Square seller account.
|
DeleteMerchantCustomAttributeResponse |
deleteMerchantCustomAttribute(String merchantId,
String key)
Deletes a [custom attribute]($m/CustomAttribute) associated with a merchant.
|
CompletableFuture<DeleteMerchantCustomAttributeResponse> |
deleteMerchantCustomAttributeAsync(String merchantId,
String key)
Deletes a [custom attribute]($m/CustomAttribute) associated with a merchant.
|
DeleteMerchantCustomAttributeDefinitionResponse |
deleteMerchantCustomAttributeDefinition(String key)
Deletes a merchant-related [custom attribute definition]($m/CustomAttributeDefinition) from a
Square seller account.
|
CompletableFuture<DeleteMerchantCustomAttributeDefinitionResponse> |
deleteMerchantCustomAttributeDefinitionAsync(String key)
Deletes a merchant-related [custom attribute definition]($m/CustomAttributeDefinition) from a
Square seller account.
|
ListMerchantCustomAttributeDefinitionsResponse |
listMerchantCustomAttributeDefinitions(String visibilityFilter,
Integer limit,
String cursor)
Lists the merchant-related [custom attribute definitions]($m/CustomAttributeDefinition) that
belong to a Square seller account.
|
CompletableFuture<ListMerchantCustomAttributeDefinitionsResponse> |
listMerchantCustomAttributeDefinitionsAsync(String visibilityFilter,
Integer limit,
String cursor)
Lists the merchant-related [custom attribute definitions]($m/CustomAttributeDefinition) that
belong to a Square seller account.
|
ListMerchantCustomAttributesResponse |
listMerchantCustomAttributes(String merchantId,
String visibilityFilter,
Integer limit,
String cursor,
Boolean withDefinitions)
Lists the [custom attributes]($m/CustomAttribute) associated with a merchant.
|
CompletableFuture<ListMerchantCustomAttributesResponse> |
listMerchantCustomAttributesAsync(String merchantId,
String visibilityFilter,
Integer limit,
String cursor,
Boolean withDefinitions)
Lists the [custom attributes]($m/CustomAttribute) associated with a merchant.
|
RetrieveMerchantCustomAttributeResponse |
retrieveMerchantCustomAttribute(String merchantId,
String key,
Boolean withDefinition,
Integer version)
Retrieves a [custom attribute]($m/CustomAttribute) associated with a merchant.
|
CompletableFuture<RetrieveMerchantCustomAttributeResponse> |
retrieveMerchantCustomAttributeAsync(String merchantId,
String key,
Boolean withDefinition,
Integer version)
Retrieves a [custom attribute]($m/CustomAttribute) associated with a merchant.
|
RetrieveMerchantCustomAttributeDefinitionResponse |
retrieveMerchantCustomAttributeDefinition(String key,
Integer version)
Retrieves a merchant-related [custom attribute definition]($m/CustomAttributeDefinition) from
a Square seller account.
|
CompletableFuture<RetrieveMerchantCustomAttributeDefinitionResponse> |
retrieveMerchantCustomAttributeDefinitionAsync(String key,
Integer version)
Retrieves a merchant-related [custom attribute definition]($m/CustomAttributeDefinition) from
a Square seller account.
|
UpdateMerchantCustomAttributeDefinitionResponse |
updateMerchantCustomAttributeDefinition(String key,
UpdateMerchantCustomAttributeDefinitionRequest body)
Updates a merchant-related [custom attribute definition]($m/CustomAttributeDefinition) for a
Square seller account.
|
CompletableFuture<UpdateMerchantCustomAttributeDefinitionResponse> |
updateMerchantCustomAttributeDefinitionAsync(String key,
UpdateMerchantCustomAttributeDefinitionRequest body)
Updates a merchant-related [custom attribute definition]($m/CustomAttributeDefinition) for a
Square seller account.
|
UpsertMerchantCustomAttributeResponse |
upsertMerchantCustomAttribute(String merchantId,
String key,
UpsertMerchantCustomAttributeRequest body)
Creates or updates a [custom attribute]($m/CustomAttribute) for a merchant.
|
CompletableFuture<UpsertMerchantCustomAttributeResponse> |
upsertMerchantCustomAttributeAsync(String merchantId,
String key,
UpsertMerchantCustomAttributeRequest body)
Creates or updates a [custom attribute]($m/CustomAttribute) for a merchant.
|
ListMerchantCustomAttributeDefinitionsResponse listMerchantCustomAttributeDefinitions(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<ListMerchantCustomAttributeDefinitionsResponse> listMerchantCustomAttributeDefinitionsAsync(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).CreateMerchantCustomAttributeDefinitionResponse createMerchantCustomAttributeDefinition(CreateMerchantCustomAttributeDefinitionRequest 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<CreateMerchantCustomAttributeDefinitionResponse> createMerchantCustomAttributeDefinitionAsync(CreateMerchantCustomAttributeDefinitionRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.DeleteMerchantCustomAttributeDefinitionResponse deleteMerchantCustomAttributeDefinition(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<DeleteMerchantCustomAttributeDefinitionResponse> deleteMerchantCustomAttributeDefinitionAsync(String key)
key - Required parameter: The key of the custom attribute definition to delete.RetrieveMerchantCustomAttributeDefinitionResponse retrieveMerchantCustomAttributeDefinition(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<RetrieveMerchantCustomAttributeDefinitionResponse> retrieveMerchantCustomAttributeDefinitionAsync(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.UpdateMerchantCustomAttributeDefinitionResponse updateMerchantCustomAttributeDefinition(String key, UpdateMerchantCustomAttributeDefinitionRequest 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<UpdateMerchantCustomAttributeDefinitionResponse> updateMerchantCustomAttributeDefinitionAsync(String key, UpdateMerchantCustomAttributeDefinitionRequest 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.BulkDeleteMerchantCustomAttributesResponse bulkDeleteMerchantCustomAttributes(BulkDeleteMerchantCustomAttributesRequest 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<BulkDeleteMerchantCustomAttributesResponse> bulkDeleteMerchantCustomAttributesAsync(BulkDeleteMerchantCustomAttributesRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.BulkUpsertMerchantCustomAttributesResponse bulkUpsertMerchantCustomAttributes(BulkUpsertMerchantCustomAttributesRequest 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<BulkUpsertMerchantCustomAttributesResponse> bulkUpsertMerchantCustomAttributesAsync(BulkUpsertMerchantCustomAttributesRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ListMerchantCustomAttributesResponse listMerchantCustomAttributes(String merchantId, String visibilityFilter, Integer limit, String cursor, Boolean withDefinitions) throws ApiException, IOException
merchantId - Required parameter: The ID of the target [merchant](entity:Merchant).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<ListMerchantCustomAttributesResponse> listMerchantCustomAttributesAsync(String merchantId, String visibilityFilter, Integer limit, String cursor, Boolean withDefinitions)
merchantId - Required parameter: The ID of the target [merchant](entity:Merchant).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`.DeleteMerchantCustomAttributeResponse deleteMerchantCustomAttribute(String merchantId, String key) throws ApiException, IOException
merchantId - Required parameter: The ID of the target [merchant](entity:Merchant).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<DeleteMerchantCustomAttributeResponse> deleteMerchantCustomAttributeAsync(String merchantId, String key)
merchantId - Required parameter: The ID of the target [merchant](entity:Merchant).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.RetrieveMerchantCustomAttributeResponse retrieveMerchantCustomAttribute(String merchantId, String key, Boolean withDefinition, Integer version) throws ApiException, IOException
merchantId - Required parameter: The ID of the target [merchant](entity:Merchant).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<RetrieveMerchantCustomAttributeResponse> retrieveMerchantCustomAttributeAsync(String merchantId, String key, Boolean withDefinition, Integer version)
merchantId - Required parameter: The ID of the target [merchant](entity:Merchant).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.UpsertMerchantCustomAttributeResponse upsertMerchantCustomAttribute(String merchantId, String key, UpsertMerchantCustomAttributeRequest body) throws ApiException, IOException
merchantId - Required parameter: The ID of the target [merchant](entity:Merchant).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<UpsertMerchantCustomAttributeResponse> upsertMerchantCustomAttributeAsync(String merchantId, String key, UpsertMerchantCustomAttributeRequest body)
merchantId - Required parameter: The ID of the target [merchant](entity:Merchant).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.