Package io.voucherify.client.api
Class SegmentsApi
java.lang.Object
io.voucherify.client.api.SegmentsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSegment(SegmentsCreateRequestBody segmentsCreateRequestBody) Create Segment Create a customer segment.okhttp3.CallcreateSegmentAsync(SegmentsCreateRequestBody segmentsCreateRequestBody, ApiCallback<SegmentsCreateResponseBody> _callback) Create Segment (asynchronously) Create a customer segment.okhttp3.CallcreateSegmentCall(SegmentsCreateRequestBody segmentsCreateRequestBody, ApiCallback _callback) Build call for createSegmentcreateSegmentWithHttpInfo(SegmentsCreateRequestBody segmentsCreateRequestBody) Create Segment Create a customer segment.voiddeleteSegment(String segmentId) Delete Segment This method deletes a customer segment.okhttp3.CalldeleteSegmentAsync(String segmentId, ApiCallback<Void> _callback) Delete Segment (asynchronously) This method deletes a customer segment.okhttp3.CalldeleteSegmentCall(String segmentId, ApiCallback _callback) Build call for deleteSegmentdeleteSegmentWithHttpInfo(String segmentId) Delete Segment This method deletes a customer segment.intgetSegment(String segmentId) Get Segment Retrieves the segment with given segment ID.okhttp3.CallgetSegmentAsync(String segmentId, ApiCallback<SegmentsGetResponseBody> _callback) Get Segment (asynchronously) Retrieves the segment with given segment ID.okhttp3.CallgetSegmentCall(String segmentId, ApiCallback _callback) Build call for getSegmentgetSegmentWithHttpInfo(String segmentId) Get Segment Retrieves the segment with given segment ID.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
SegmentsApi
public SegmentsApi() -
SegmentsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
createSegmentCall
public okhttp3.Call createSegmentCall(SegmentsCreateRequestBody segmentsCreateRequestBody, ApiCallback _callback) throws ApiException Build call for createSegment- Parameters:
segmentsCreateRequestBody- Specify the boundary conditions for the customer segment. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
createSegment
public SegmentsCreateResponseBody createSegment(SegmentsCreateRequestBody segmentsCreateRequestBody) throws ApiException Create Segment Create a customer segment. 🚧 Limit on Static Segments There is a cap on the number of customers that you can assign to a static segment: **20,000**. If you would like to create a bigger segment, then you can use the unlimited auto-update segment instead and use some customer metadata to build this segment.- Parameters:
segmentsCreateRequestBody- Specify the boundary conditions for the customer segment. (optional)- Returns:
- SegmentsCreateResponseBody
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createSegmentWithHttpInfo
public ApiResponse<SegmentsCreateResponseBody> createSegmentWithHttpInfo(SegmentsCreateRequestBody segmentsCreateRequestBody) throws ApiException Create Segment Create a customer segment. 🚧 Limit on Static Segments There is a cap on the number of customers that you can assign to a static segment: **20,000**. If you would like to create a bigger segment, then you can use the unlimited auto-update segment instead and use some customer metadata to build this segment.- Parameters:
segmentsCreateRequestBody- Specify the boundary conditions for the customer segment. (optional)- Returns:
- ApiResponse<SegmentsCreateResponseBody>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createSegmentAsync
public okhttp3.Call createSegmentAsync(SegmentsCreateRequestBody segmentsCreateRequestBody, ApiCallback<SegmentsCreateResponseBody> _callback) throws ApiException Create Segment (asynchronously) Create a customer segment. 🚧 Limit on Static Segments There is a cap on the number of customers that you can assign to a static segment: **20,000**. If you would like to create a bigger segment, then you can use the unlimited auto-update segment instead and use some customer metadata to build this segment.- Parameters:
segmentsCreateRequestBody- Specify the boundary conditions for the customer segment. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
deleteSegmentCall
Build call for deleteSegment- Parameters:
segmentId- A unique customer segment ID. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
deleteSegment
Delete Segment This method deletes a customer segment.- Parameters:
segmentId- A unique customer segment ID. (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteSegmentWithHttpInfo
Delete Segment This method deletes a customer segment.- Parameters:
segmentId- A unique customer segment ID. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteSegmentAsync
public okhttp3.Call deleteSegmentAsync(String segmentId, ApiCallback<Void> _callback) throws ApiException Delete Segment (asynchronously) This method deletes a customer segment.- Parameters:
segmentId- A unique customer segment ID. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getSegmentCall
Build call for getSegment- Parameters:
segmentId- A unique customer segment ID. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getSegment
Get Segment Retrieves the segment with given segment ID.- Parameters:
segmentId- A unique customer segment ID. (required)- Returns:
- SegmentsGetResponseBody
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getSegmentWithHttpInfo
public ApiResponse<SegmentsGetResponseBody> getSegmentWithHttpInfo(String segmentId) throws ApiException Get Segment Retrieves the segment with given segment ID.- Parameters:
segmentId- A unique customer segment ID. (required)- Returns:
- ApiResponse<SegmentsGetResponseBody>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getSegmentAsync
public okhttp3.Call getSegmentAsync(String segmentId, ApiCallback<SegmentsGetResponseBody> _callback) throws ApiException Get Segment (asynchronously) Retrieves the segment with given segment ID.- Parameters:
segmentId- A unique customer segment ID. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-