public interface CustomerSegmentsApi
| Modifier and Type | Method and Description |
|---|---|
ListCustomerSegmentsResponse |
listCustomerSegments(String cursor,
Integer limit)
Retrieves the list of customer segments of a business.
|
CompletableFuture<ListCustomerSegmentsResponse> |
listCustomerSegmentsAsync(String cursor,
Integer limit)
Retrieves the list of customer segments of a business.
|
RetrieveCustomerSegmentResponse |
retrieveCustomerSegment(String segmentId)
Retrieves a specific customer segment as identified by the `segment_id` value.
|
CompletableFuture<RetrieveCustomerSegmentResponse> |
retrieveCustomerSegmentAsync(String segmentId)
Retrieves a specific customer segment as identified by the `segment_id` value.
|
ListCustomerSegmentsResponse listCustomerSegments(String cursor, Integer limit) throws ApiException, IOException
cursor - Optional parameter: A pagination cursor returned by previous calls to
`ListCustomerSegments`. This cursor is used to retrieve the next set of query
results. For more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).limit - Optional parameter: The maximum number of results to return in a single page.
This limit is advisory. The response might contain more or fewer results. If the
specified limit is less than 1 or greater than 50, Square returns a `400
VALUE_TOO_LOW` or `400 VALUE_TOO_HIGH` error. The default value is 50. 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<ListCustomerSegmentsResponse> listCustomerSegmentsAsync(String cursor, Integer limit)
cursor - Optional parameter: A pagination cursor returned by previous calls to
`ListCustomerSegments`. This cursor is used to retrieve the next set of query
results. For more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).limit - Optional parameter: The maximum number of results to return in a single page.
This limit is advisory. The response might contain more or fewer results. If the
specified limit is less than 1 or greater than 50, Square returns a `400
VALUE_TOO_LOW` or `400 VALUE_TOO_HIGH` error. The default value is 50. For more
information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).RetrieveCustomerSegmentResponse retrieveCustomerSegment(String segmentId) throws ApiException, IOException
segmentId - Required parameter: The Square-issued ID of the customer segment.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveCustomerSegmentResponse> retrieveCustomerSegmentAsync(String segmentId)
segmentId - Required parameter: The Square-issued ID of the customer segment.Copyright © 2022. All rights reserved.