public final class DefaultMerchantCustomAttributesApi extends BaseApi implements MerchantCustomAttributesApi
AUTHENTICATION_KEY, GLOBAL_ERROR_CASES| Constructor and Description |
|---|
DefaultMerchantCustomAttributesApi(io.apimatic.core.GlobalConfiguration globalConfig)
Initializes the controller.
|
| 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.
|
getClientInstance, getGlobalConfiguration, getHttpCallbackpublic DefaultMerchantCustomAttributesApi(io.apimatic.core.GlobalConfiguration globalConfig)
globalConfig - Configurations added in client.public ListMerchantCustomAttributeDefinitionsResponse listMerchantCustomAttributeDefinitions(String visibilityFilter, Integer limit, String cursor) throws ApiException, IOException
listMerchantCustomAttributeDefinitions in interface MerchantCustomAttributesApivisibilityFilter - 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<ListMerchantCustomAttributeDefinitionsResponse> listMerchantCustomAttributeDefinitionsAsync(String visibilityFilter, Integer limit, String cursor)
listMerchantCustomAttributeDefinitionsAsync in interface MerchantCustomAttributesApivisibilityFilter - 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 CreateMerchantCustomAttributeDefinitionResponse createMerchantCustomAttributeDefinition(CreateMerchantCustomAttributeDefinitionRequest body) throws ApiException, IOException
createMerchantCustomAttributeDefinition in interface MerchantCustomAttributesApibody - 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<CreateMerchantCustomAttributeDefinitionResponse> createMerchantCustomAttributeDefinitionAsync(CreateMerchantCustomAttributeDefinitionRequest body)
createMerchantCustomAttributeDefinitionAsync in interface MerchantCustomAttributesApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public DeleteMerchantCustomAttributeDefinitionResponse deleteMerchantCustomAttributeDefinition(String key) throws ApiException, IOException
deleteMerchantCustomAttributeDefinition in interface MerchantCustomAttributesApikey - 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<DeleteMerchantCustomAttributeDefinitionResponse> deleteMerchantCustomAttributeDefinitionAsync(String key)
deleteMerchantCustomAttributeDefinitionAsync in interface MerchantCustomAttributesApikey - Required parameter: The key of the custom attribute definition to delete.public RetrieveMerchantCustomAttributeDefinitionResponse retrieveMerchantCustomAttributeDefinition(String key, Integer version) throws ApiException, IOException
retrieveMerchantCustomAttributeDefinition in interface MerchantCustomAttributesApikey - 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<RetrieveMerchantCustomAttributeDefinitionResponse> retrieveMerchantCustomAttributeDefinitionAsync(String key, Integer version)
retrieveMerchantCustomAttributeDefinitionAsync in interface MerchantCustomAttributesApikey - 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 UpdateMerchantCustomAttributeDefinitionResponse updateMerchantCustomAttributeDefinition(String key, UpdateMerchantCustomAttributeDefinitionRequest body) throws ApiException, IOException
updateMerchantCustomAttributeDefinition in interface MerchantCustomAttributesApikey - 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<UpdateMerchantCustomAttributeDefinitionResponse> updateMerchantCustomAttributeDefinitionAsync(String key, UpdateMerchantCustomAttributeDefinitionRequest body)
updateMerchantCustomAttributeDefinitionAsync in interface MerchantCustomAttributesApikey - 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 BulkDeleteMerchantCustomAttributesResponse bulkDeleteMerchantCustomAttributes(BulkDeleteMerchantCustomAttributesRequest body) throws ApiException, IOException
bulkDeleteMerchantCustomAttributes in interface MerchantCustomAttributesApibody - 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<BulkDeleteMerchantCustomAttributesResponse> bulkDeleteMerchantCustomAttributesAsync(BulkDeleteMerchantCustomAttributesRequest body)
bulkDeleteMerchantCustomAttributesAsync in interface MerchantCustomAttributesApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public BulkUpsertMerchantCustomAttributesResponse bulkUpsertMerchantCustomAttributes(BulkUpsertMerchantCustomAttributesRequest body) throws ApiException, IOException
bulkUpsertMerchantCustomAttributes in interface MerchantCustomAttributesApibody - 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<BulkUpsertMerchantCustomAttributesResponse> bulkUpsertMerchantCustomAttributesAsync(BulkUpsertMerchantCustomAttributesRequest body)
bulkUpsertMerchantCustomAttributesAsync in interface MerchantCustomAttributesApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public ListMerchantCustomAttributesResponse listMerchantCustomAttributes(String merchantId, String visibilityFilter, Integer limit, String cursor, Boolean withDefinitions) throws ApiException, IOException
listMerchantCustomAttributes in interface MerchantCustomAttributesApimerchantId - 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.public CompletableFuture<ListMerchantCustomAttributesResponse> listMerchantCustomAttributesAsync(String merchantId, String visibilityFilter, Integer limit, String cursor, Boolean withDefinitions)
listMerchantCustomAttributesAsync in interface MerchantCustomAttributesApimerchantId - 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`.public DeleteMerchantCustomAttributeResponse deleteMerchantCustomAttribute(String merchantId, String key) throws ApiException, IOException
deleteMerchantCustomAttribute in interface MerchantCustomAttributesApimerchantId - 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.public CompletableFuture<DeleteMerchantCustomAttributeResponse> deleteMerchantCustomAttributeAsync(String merchantId, String key)
deleteMerchantCustomAttributeAsync in interface MerchantCustomAttributesApimerchantId - 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.public RetrieveMerchantCustomAttributeResponse retrieveMerchantCustomAttribute(String merchantId, String key, Boolean withDefinition, Integer version) throws ApiException, IOException
retrieveMerchantCustomAttribute in interface MerchantCustomAttributesApimerchantId - 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.public CompletableFuture<RetrieveMerchantCustomAttributeResponse> retrieveMerchantCustomAttributeAsync(String merchantId, String key, Boolean withDefinition, Integer version)
retrieveMerchantCustomAttributeAsync in interface MerchantCustomAttributesApimerchantId - 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.public UpsertMerchantCustomAttributeResponse upsertMerchantCustomAttribute(String merchantId, String key, UpsertMerchantCustomAttributeRequest body) throws ApiException, IOException
upsertMerchantCustomAttribute in interface MerchantCustomAttributesApimerchantId - 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.public CompletableFuture<UpsertMerchantCustomAttributeResponse> upsertMerchantCustomAttributeAsync(String merchantId, String key, UpsertMerchantCustomAttributeRequest body)
upsertMerchantCustomAttributeAsync in interface MerchantCustomAttributesApimerchantId - 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 © 2023. All rights reserved.