public class TaxesApi extends Object
| Constructor and Description |
|---|
TaxesApi() |
TaxesApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
VasV2PaymentsPost201Response |
calculateTax(TaxRequest taxRequest)
Calculate Taxes
Get tax details for a transaction.
|
okhttp3.Call |
calculateTaxAsync(TaxRequest taxRequest,
ApiCallback<VasV2PaymentsPost201Response> callback)
Calculate Taxes (asynchronously)
Get tax details for a transaction.
|
okhttp3.Call |
calculateTaxCall(TaxRequest taxRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for calculateTax
|
ApiResponse<VasV2PaymentsPost201Response> |
calculateTaxWithHttpInfo(TaxRequest taxRequest)
Calculate Taxes
Get tax details for a transaction.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
VasV2TaxVoid200Response |
voidTax(VoidTaxRequest voidTaxRequest,
String id)
Void Taxes
Pass the Tax Request ID in the PATCH request to void the committed tax calculation.
|
okhttp3.Call |
voidTaxAsync(VoidTaxRequest voidTaxRequest,
String id,
ApiCallback<VasV2TaxVoid200Response> callback)
Void Taxes (asynchronously)
Pass the Tax Request ID in the PATCH request to void the committed tax calculation.
|
okhttp3.Call |
voidTaxCall(VoidTaxRequest voidTaxRequest,
String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for voidTax
|
ApiResponse<VasV2TaxVoid200Response> |
voidTaxWithHttpInfo(VoidTaxRequest voidTaxRequest,
String id)
Void Taxes
Pass the Tax Request ID in the PATCH request to void the committed tax calculation.
|
public TaxesApi()
public TaxesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call calculateTaxCall(TaxRequest taxRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
taxRequest - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic VasV2PaymentsPost201Response calculateTax(TaxRequest taxRequest) throws ApiException
taxRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<VasV2PaymentsPost201Response> calculateTaxWithHttpInfo(TaxRequest taxRequest) throws ApiException
taxRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call calculateTaxAsync(TaxRequest taxRequest, ApiCallback<VasV2PaymentsPost201Response> callback) throws ApiException
taxRequest - (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call voidTaxCall(VoidTaxRequest voidTaxRequest, String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
voidTaxRequest - (required)id - The tax ID returned from a previous request. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic VasV2TaxVoid200Response voidTax(VoidTaxRequest voidTaxRequest, String id) throws ApiException
voidTaxRequest - (required)id - The tax ID returned from a previous request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<VasV2TaxVoid200Response> voidTaxWithHttpInfo(VoidTaxRequest voidTaxRequest, String id) throws ApiException
voidTaxRequest - (required)id - The tax ID returned from a previous request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call voidTaxAsync(VoidTaxRequest voidTaxRequest, String id, ApiCallback<VasV2TaxVoid200Response> callback) throws ApiException
voidTaxRequest - (required)id - The tax ID returned from a previous request. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2020. All rights reserved.