Package io.voucherify.client.api
Class ValidationsApi
java.lang.Object
io.voucherify.client.api.ValidationsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) validateStackedDiscounts(ValidationsValidateRequestBody validationsValidateRequestBody) Validate Stackable Discounts Verify redeemables provided in the request.okhttp3.CallvalidateStackedDiscountsAsync(ValidationsValidateRequestBody validationsValidateRequestBody, ApiCallback<ValidationsValidateResponseBody> _callback) Validate Stackable Discounts (asynchronously) Verify redeemables provided in the request.okhttp3.CallvalidateStackedDiscountsCall(ValidationsValidateRequestBody validationsValidateRequestBody, ApiCallback _callback) Build call for validateStackedDiscountsvalidateStackedDiscountsWithHttpInfo(ValidationsValidateRequestBody validationsValidateRequestBody) Validate Stackable Discounts Verify redeemables provided in the request.
-
Constructor Details
-
ValidationsApi
public ValidationsApi() -
ValidationsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
validateStackedDiscountsCall
public okhttp3.Call validateStackedDiscountsCall(ValidationsValidateRequestBody validationsValidateRequestBody, ApiCallback _callback) throws ApiException Build call for validateStackedDiscounts- Parameters:
validationsValidateRequestBody- (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
validateStackedDiscounts
public ValidationsValidateResponseBody validateStackedDiscounts(ValidationsValidateRequestBody validationsValidateRequestBody) throws ApiException Validate Stackable Discounts Verify redeemables provided in the request. This method is designed for server side integration which means that it is accessible only through private keys.- Parameters:
validationsValidateRequestBody- (optional)- Returns:
- ValidationsValidateResponseBody
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
validateStackedDiscountsWithHttpInfo
public ApiResponse<ValidationsValidateResponseBody> validateStackedDiscountsWithHttpInfo(ValidationsValidateRequestBody validationsValidateRequestBody) throws ApiException Validate Stackable Discounts Verify redeemables provided in the request. This method is designed for server side integration which means that it is accessible only through private keys.- Parameters:
validationsValidateRequestBody- (optional)- Returns:
- ApiResponse<ValidationsValidateResponseBody>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
validateStackedDiscountsAsync
public okhttp3.Call validateStackedDiscountsAsync(ValidationsValidateRequestBody validationsValidateRequestBody, ApiCallback<ValidationsValidateResponseBody> _callback) throws ApiException Validate Stackable Discounts (asynchronously) Verify redeemables provided in the request. This method is designed for server side integration which means that it is accessible only through private keys.- Parameters:
validationsValidateRequestBody- (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
-