public interface OrderCustomAttributesApi
| Modifier and Type | Method and Description |
|---|---|
BulkDeleteOrderCustomAttributesResponse |
bulkDeleteOrderCustomAttributes(BulkDeleteOrderCustomAttributesRequest body)
Deletes order [custom attributes]($m/CustomAttribute) as a bulk operation.
|
CompletableFuture<BulkDeleteOrderCustomAttributesResponse> |
bulkDeleteOrderCustomAttributesAsync(BulkDeleteOrderCustomAttributesRequest body)
Deletes order [custom attributes]($m/CustomAttribute) as a bulk operation.
|
BulkUpsertOrderCustomAttributesResponse |
bulkUpsertOrderCustomAttributes(BulkUpsertOrderCustomAttributesRequest body)
Creates or updates order [custom attributes]($m/CustomAttribute) as a bulk operation.
|
CompletableFuture<BulkUpsertOrderCustomAttributesResponse> |
bulkUpsertOrderCustomAttributesAsync(BulkUpsertOrderCustomAttributesRequest body)
Creates or updates order [custom attributes]($m/CustomAttribute) as a bulk operation.
|
CreateOrderCustomAttributeDefinitionResponse |
createOrderCustomAttributeDefinition(CreateOrderCustomAttributeDefinitionRequest body)
Creates an order-related custom attribute definition.
|
CompletableFuture<CreateOrderCustomAttributeDefinitionResponse> |
createOrderCustomAttributeDefinitionAsync(CreateOrderCustomAttributeDefinitionRequest body)
Creates an order-related custom attribute definition.
|
DeleteOrderCustomAttributeResponse |
deleteOrderCustomAttribute(String orderId,
String customAttributeKey)
Deletes a [custom attribute]($m/CustomAttribute) associated with a customer profile.
|
CompletableFuture<DeleteOrderCustomAttributeResponse> |
deleteOrderCustomAttributeAsync(String orderId,
String customAttributeKey)
Deletes a [custom attribute]($m/CustomAttribute) associated with a customer profile.
|
DeleteOrderCustomAttributeDefinitionResponse |
deleteOrderCustomAttributeDefinition(String key)
Deletes an order-related [custom attribute definition]($m/CustomAttributeDefinition) from a
Square seller account.
|
CompletableFuture<DeleteOrderCustomAttributeDefinitionResponse> |
deleteOrderCustomAttributeDefinitionAsync(String key)
Deletes an order-related [custom attribute definition]($m/CustomAttributeDefinition) from a
Square seller account.
|
ListOrderCustomAttributeDefinitionsResponse |
listOrderCustomAttributeDefinitions(String visibilityFilter,
String cursor,
Integer limit)
Lists the order-related [custom attribute definitions]($m/CustomAttributeDefinition) that
belong to a Square seller account.
|
CompletableFuture<ListOrderCustomAttributeDefinitionsResponse> |
listOrderCustomAttributeDefinitionsAsync(String visibilityFilter,
String cursor,
Integer limit)
Lists the order-related [custom attribute definitions]($m/CustomAttributeDefinition) that
belong to a Square seller account.
|
ListOrderCustomAttributesResponse |
listOrderCustomAttributes(String orderId,
String visibilityFilter,
String cursor,
Integer limit,
Boolean withDefinitions)
Lists the [custom attributes]($m/CustomAttribute) associated with an order.
|
CompletableFuture<ListOrderCustomAttributesResponse> |
listOrderCustomAttributesAsync(String orderId,
String visibilityFilter,
String cursor,
Integer limit,
Boolean withDefinitions)
Lists the [custom attributes]($m/CustomAttribute) associated with an order.
|
RetrieveOrderCustomAttributeResponse |
retrieveOrderCustomAttribute(String orderId,
String customAttributeKey,
Integer version,
Boolean withDefinition)
Retrieves a [custom attribute]($m/CustomAttribute) associated with an order.
|
CompletableFuture<RetrieveOrderCustomAttributeResponse> |
retrieveOrderCustomAttributeAsync(String orderId,
String customAttributeKey,
Integer version,
Boolean withDefinition)
Retrieves a [custom attribute]($m/CustomAttribute) associated with an order.
|
RetrieveOrderCustomAttributeDefinitionResponse |
retrieveOrderCustomAttributeDefinition(String key,
Integer version)
Retrieves an order-related [custom attribute definition]($m/CustomAttributeDefinition) from a
Square seller account.
|
CompletableFuture<RetrieveOrderCustomAttributeDefinitionResponse> |
retrieveOrderCustomAttributeDefinitionAsync(String key,
Integer version)
Retrieves an order-related [custom attribute definition]($m/CustomAttributeDefinition) from a
Square seller account.
|
UpdateOrderCustomAttributeDefinitionResponse |
updateOrderCustomAttributeDefinition(String key,
UpdateOrderCustomAttributeDefinitionRequest body)
Updates an order-related custom attribute definition for a Square seller account.
|
CompletableFuture<UpdateOrderCustomAttributeDefinitionResponse> |
updateOrderCustomAttributeDefinitionAsync(String key,
UpdateOrderCustomAttributeDefinitionRequest body)
Updates an order-related custom attribute definition for a Square seller account.
|
UpsertOrderCustomAttributeResponse |
upsertOrderCustomAttribute(String orderId,
String customAttributeKey,
UpsertOrderCustomAttributeRequest body)
Creates or updates a [custom attribute]($m/CustomAttribute) for an order.
|
CompletableFuture<UpsertOrderCustomAttributeResponse> |
upsertOrderCustomAttributeAsync(String orderId,
String customAttributeKey,
UpsertOrderCustomAttributeRequest body)
Creates or updates a [custom attribute]($m/CustomAttribute) for an order.
|
ListOrderCustomAttributeDefinitionsResponse listOrderCustomAttributeDefinitions(String visibilityFilter, String cursor, Integer limit) throws ApiException, IOException
visibilityFilter - Optional parameter: Requests that all of the custom attributes be
returned, or only those that are read-only or read-write.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/working-with-apis/pagination).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/working-with-apis/pagination).ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<ListOrderCustomAttributeDefinitionsResponse> listOrderCustomAttributeDefinitionsAsync(String visibilityFilter, String cursor, Integer limit)
visibilityFilter - Optional parameter: Requests that all of the custom attributes be
returned, or only those that are read-only or read-write.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/working-with-apis/pagination).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/working-with-apis/pagination).CreateOrderCustomAttributeDefinitionResponse createOrderCustomAttributeDefinition(CreateOrderCustomAttributeDefinitionRequest 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<CreateOrderCustomAttributeDefinitionResponse> createOrderCustomAttributeDefinitionAsync(CreateOrderCustomAttributeDefinitionRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.DeleteOrderCustomAttributeDefinitionResponse deleteOrderCustomAttributeDefinition(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<DeleteOrderCustomAttributeDefinitionResponse> deleteOrderCustomAttributeDefinitionAsync(String key)
key - Required parameter: The key of the custom attribute definition to delete.RetrieveOrderCustomAttributeDefinitionResponse retrieveOrderCustomAttributeDefinition(String key, Integer version) throws ApiException, IOException
key - Required parameter: The key of the custom attribute definition to retrieve.version - Optional parameter: To enable [optimistic
concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
control, include this optional field and specify the current version of the custom
attribute.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveOrderCustomAttributeDefinitionResponse> retrieveOrderCustomAttributeDefinitionAsync(String key, Integer version)
key - Required parameter: The key of the custom attribute definition to retrieve.version - Optional parameter: To enable [optimistic
concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
control, include this optional field and specify the current version of the custom
attribute.UpdateOrderCustomAttributeDefinitionResponse updateOrderCustomAttributeDefinition(String key, UpdateOrderCustomAttributeDefinitionRequest 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<UpdateOrderCustomAttributeDefinitionResponse> updateOrderCustomAttributeDefinitionAsync(String key, UpdateOrderCustomAttributeDefinitionRequest 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.BulkDeleteOrderCustomAttributesResponse bulkDeleteOrderCustomAttributes(BulkDeleteOrderCustomAttributesRequest 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<BulkDeleteOrderCustomAttributesResponse> bulkDeleteOrderCustomAttributesAsync(BulkDeleteOrderCustomAttributesRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.BulkUpsertOrderCustomAttributesResponse bulkUpsertOrderCustomAttributes(BulkUpsertOrderCustomAttributesRequest 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<BulkUpsertOrderCustomAttributesResponse> bulkUpsertOrderCustomAttributesAsync(BulkUpsertOrderCustomAttributesRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ListOrderCustomAttributesResponse listOrderCustomAttributes(String orderId, String visibilityFilter, String cursor, Integer limit, Boolean withDefinitions) throws ApiException, IOException
orderId - Required parameter: The ID of the target [order](entity:Order).visibilityFilter - Optional parameter: Requests that all of the custom attributes be
returned, or only those that are read-only or read-write.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/working-with-apis/pagination).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/working-with-apis/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<ListOrderCustomAttributesResponse> listOrderCustomAttributesAsync(String orderId, String visibilityFilter, String cursor, Integer limit, Boolean withDefinitions)
orderId - Required parameter: The ID of the target [order](entity:Order).visibilityFilter - Optional parameter: Requests that all of the custom attributes be
returned, or only those that are read-only or read-write.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/working-with-apis/pagination).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/working-with-apis/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`.DeleteOrderCustomAttributeResponse deleteOrderCustomAttribute(String orderId, String customAttributeKey) throws ApiException, IOException
orderId - Required parameter: The ID of the target [order](entity:Order).customAttributeKey - Required parameter: The key of the custom attribute to delete.
This key must match the key of an existing custom attribute definition.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<DeleteOrderCustomAttributeResponse> deleteOrderCustomAttributeAsync(String orderId, String customAttributeKey)
orderId - Required parameter: The ID of the target [order](entity:Order).customAttributeKey - Required parameter: The key of the custom attribute to delete.
This key must match the key of an existing custom attribute definition.RetrieveOrderCustomAttributeResponse retrieveOrderCustomAttribute(String orderId, String customAttributeKey, Integer version, Boolean withDefinition) throws ApiException, IOException
orderId - Required parameter: The ID of the target [order](entity:Order).customAttributeKey - Required parameter: The key of the custom attribute to retrieve.
This key must match the key of an existing custom attribute definition.version - Optional parameter: To enable [optimistic
concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
control, include this optional field and specify the current version of the custom
attribute.withDefinition - 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<RetrieveOrderCustomAttributeResponse> retrieveOrderCustomAttributeAsync(String orderId, String customAttributeKey, Integer version, Boolean withDefinition)
orderId - Required parameter: The ID of the target [order](entity:Order).customAttributeKey - Required parameter: The key of the custom attribute to retrieve.
This key must match the key of an existing custom attribute definition.version - Optional parameter: To enable [optimistic
concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
control, include this optional field and specify the current version of the custom
attribute.withDefinition - 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`.UpsertOrderCustomAttributeResponse upsertOrderCustomAttribute(String orderId, String customAttributeKey, UpsertOrderCustomAttributeRequest body) throws ApiException, IOException
orderId - Required parameter: The ID of the target [order](entity:Order).customAttributeKey - Required parameter: The key of the custom attribute to create or
update. This key must match the key of an existing custom attribute definition.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<UpsertOrderCustomAttributeResponse> upsertOrderCustomAttributeAsync(String orderId, String customAttributeKey, UpsertOrderCustomAttributeRequest body)
orderId - Required parameter: The ID of the target [order](entity:Order).customAttributeKey - Required parameter: The key of the custom attribute to create or
update. This key must match the key of an existing custom attribute definition.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.