public interface CustomerGroupsApi
Modifier and Type | Method and Description |
---|---|
CreateCustomerGroupResponse |
createCustomerGroup(CreateCustomerGroupRequest body)
Creates a new customer group for a business.
|
CompletableFuture<CreateCustomerGroupResponse> |
createCustomerGroupAsync(CreateCustomerGroupRequest body)
Creates a new customer group for a business.
|
DeleteCustomerGroupResponse |
deleteCustomerGroup(String groupId)
Deletes a customer group as identified by the `group_id` value.
|
CompletableFuture<DeleteCustomerGroupResponse> |
deleteCustomerGroupAsync(String groupId)
Deletes a customer group as identified by the `group_id` value.
|
ListCustomerGroupsResponse |
listCustomerGroups(String cursor)
Retrieves the list of customer groups of a business.
|
CompletableFuture<ListCustomerGroupsResponse> |
listCustomerGroupsAsync(String cursor)
Retrieves the list of customer groups of a business.
|
RetrieveCustomerGroupResponse |
retrieveCustomerGroup(String groupId)
Retrieves a specific customer group as identified by the `group_id` value.
|
CompletableFuture<RetrieveCustomerGroupResponse> |
retrieveCustomerGroupAsync(String groupId)
Retrieves a specific customer group as identified by the `group_id` value.
|
UpdateCustomerGroupResponse |
updateCustomerGroup(String groupId,
UpdateCustomerGroupRequest body)
Updates a customer group as identified by the `group_id` value.
|
CompletableFuture<UpdateCustomerGroupResponse> |
updateCustomerGroupAsync(String groupId,
UpdateCustomerGroupRequest body)
Updates a customer group as identified by the `group_id` value.
|
ListCustomerGroupsResponse listCustomerGroups(String cursor) throws ApiException, IOException
cursor
- Optional parameter: A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information.ApiException
IOException
CompletableFuture<ListCustomerGroupsResponse> listCustomerGroupsAsync(String cursor)
cursor
- Optional parameter: A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information.CreateCustomerGroupResponse createCustomerGroup(CreateCustomerGroupRequest 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
IOException
CompletableFuture<CreateCustomerGroupResponse> createCustomerGroupAsync(CreateCustomerGroupRequest body)
body
- Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.DeleteCustomerGroupResponse deleteCustomerGroup(String groupId) throws ApiException, IOException
groupId
- Required parameter: The ID of the customer group to delete.ApiException
IOException
CompletableFuture<DeleteCustomerGroupResponse> deleteCustomerGroupAsync(String groupId)
groupId
- Required parameter: The ID of the customer group to delete.RetrieveCustomerGroupResponse retrieveCustomerGroup(String groupId) throws ApiException, IOException
groupId
- Required parameter: The ID of the customer group to retrieve.ApiException
IOException
CompletableFuture<RetrieveCustomerGroupResponse> retrieveCustomerGroupAsync(String groupId)
groupId
- Required parameter: The ID of the customer group to retrieve.UpdateCustomerGroupResponse updateCustomerGroup(String groupId, UpdateCustomerGroupRequest body) throws ApiException, IOException
groupId
- Required parameter: The ID of the customer group to update.body
- Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.ApiException
IOException
CompletableFuture<UpdateCustomerGroupResponse> updateCustomerGroupAsync(String groupId, UpdateCustomerGroupRequest body)
groupId
- Required parameter: The ID of the customer group to update.body
- Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.Copyright © 2020. All rights reserved.