public class VoucherResourceApi extends Object
| Constructor and Description |
|---|
VoucherResourceApi() |
VoucherResourceApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
GenericStatusDTO |
cancelValidation(String transactionTag,
String reason,
OrderNoteParamDTO note)
[V2] Cancel validation for the voucher
Required permissions: CAN_CANCEL_VALIDATION
|
com.squareup.okhttp.Call |
cancelValidationAsync(String transactionTag,
String reason,
OrderNoteParamDTO note,
ApiCallback<GenericStatusDTO> callback)
[V2] Cancel validation for the voucher (asynchronously)
Required permissions: CAN_CANCEL_VALIDATION
|
com.squareup.okhttp.Call |
cancelValidationCall(String transactionTag,
String reason,
OrderNoteParamDTO note,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for cancelValidation
|
ApiResponse<GenericStatusDTO> |
cancelValidationWithHttpInfo(String transactionTag,
String reason,
OrderNoteParamDTO note)
[V2] Cancel validation for the voucher
Required permissions: CAN_CANCEL_VALIDATION
|
GenericStatusDTO |
cancelVoucher(Long orderId,
String voucherId,
OrderNoteParamDTO note)
cancelVoucher
Required permissions: CAN_CANCEL_ORDER
|
com.squareup.okhttp.Call |
cancelVoucherAsync(Long orderId,
String voucherId,
OrderNoteParamDTO note,
ApiCallback<GenericStatusDTO> callback)
cancelVoucher (asynchronously)
Required permissions: CAN_CANCEL_ORDER
|
com.squareup.okhttp.Call |
cancelVoucherCall(Long orderId,
String voucherId,
OrderNoteParamDTO note,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for cancelVoucher
|
ApiResponse<GenericStatusDTO> |
cancelVoucherWithHttpInfo(Long orderId,
String voucherId,
OrderNoteParamDTO note)
cancelVoucher
Required permissions: CAN_CANCEL_ORDER
|
JSONObject |
convertVoucher(String oldVoucherId,
String newVoucherId)
convertVoucher
Required permissions: CAN_CONVERT_VOUCHER
|
com.squareup.okhttp.Call |
convertVoucherAsync(String oldVoucherId,
String newVoucherId,
ApiCallback<JSONObject> callback)
convertVoucher (asynchronously)
Required permissions: CAN_CONVERT_VOUCHER
|
com.squareup.okhttp.Call |
convertVoucherCall(String oldVoucherId,
String newVoucherId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for convertVoucher
|
ApiResponse<JSONObject> |
convertVoucherWithHttpInfo(String oldVoucherId,
String newVoucherId)
convertVoucher
Required permissions: CAN_CONVERT_VOUCHER
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
ValidationResult |
validateVoucher(String validationId,
Long vendorId,
String productTag,
List<Long> orderItemIds,
Boolean skipExpiryCheck,
ExtraValidationParamDTO extraParamDTO)
[V2] Validates voucher which represents single order item or group of them.
|
com.squareup.okhttp.Call |
validateVoucherAsync(String validationId,
Long vendorId,
String productTag,
List<Long> orderItemIds,
Boolean skipExpiryCheck,
ExtraValidationParamDTO extraParamDTO,
ApiCallback<ValidationResult> callback)
[V2] Validates voucher which represents single order item or group of them.
|
com.squareup.okhttp.Call |
validateVoucherCall(String validationId,
Long vendorId,
String productTag,
List<Long> orderItemIds,
Boolean skipExpiryCheck,
ExtraValidationParamDTO extraParamDTO,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for validateVoucher
|
ApiResponse<ValidationResult> |
validateVoucherWithHttpInfo(String validationId,
Long vendorId,
String productTag,
List<Long> orderItemIds,
Boolean skipExpiryCheck,
ExtraValidationParamDTO extraParamDTO)
[V2] Validates voucher which represents single order item or group of them.
|
public VoucherResourceApi()
public VoucherResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call cancelValidationCall(String transactionTag, String reason, OrderNoteParamDTO note, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
transactionTag - the transaction tag of validation (required)reason - the reason of validation (optional)note - the validation note dto (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic GenericStatusDTO cancelValidation(String transactionTag, String reason, OrderNoteParamDTO note) throws ApiException
transactionTag - the transaction tag of validation (required)reason - the reason of validation (optional)note - the validation note dto (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<GenericStatusDTO> cancelValidationWithHttpInfo(String transactionTag, String reason, OrderNoteParamDTO note) throws ApiException
transactionTag - the transaction tag of validation (required)reason - the reason of validation (optional)note - the validation note dto (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call cancelValidationAsync(String transactionTag, String reason, OrderNoteParamDTO note, ApiCallback<GenericStatusDTO> callback) throws ApiException
transactionTag - the transaction tag of validation (required)reason - the reason of validation (optional)note - the validation note dto (optional)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 com.squareup.okhttp.Call cancelVoucherCall(Long orderId, String voucherId, OrderNoteParamDTO note, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
orderId - the internal id of order (required)voucherId - the voucher id (optional)note - the voucher note dto (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic GenericStatusDTO cancelVoucher(Long orderId, String voucherId, OrderNoteParamDTO note) throws ApiException
orderId - the internal id of order (required)voucherId - the voucher id (optional)note - the voucher note dto (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<GenericStatusDTO> cancelVoucherWithHttpInfo(Long orderId, String voucherId, OrderNoteParamDTO note) throws ApiException
orderId - the internal id of order (required)voucherId - the voucher id (optional)note - the voucher note dto (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call cancelVoucherAsync(Long orderId, String voucherId, OrderNoteParamDTO note, ApiCallback<GenericStatusDTO> callback) throws ApiException
orderId - the internal id of order (required)voucherId - the voucher id (optional)note - the voucher note dto (optional)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 com.squareup.okhttp.Call convertVoucherCall(String oldVoucherId, String newVoucherId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
oldVoucherId - the old voucher id (required)newVoucherId - the new voucher id (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic JSONObject convertVoucher(String oldVoucherId, String newVoucherId) throws ApiException
oldVoucherId - the old voucher id (required)newVoucherId - the new voucher id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<JSONObject> convertVoucherWithHttpInfo(String oldVoucherId, String newVoucherId) throws ApiException
oldVoucherId - the old voucher id (required)newVoucherId - the new voucher id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call convertVoucherAsync(String oldVoucherId, String newVoucherId, ApiCallback<JSONObject> callback) throws ApiException
oldVoucherId - the old voucher id (required)newVoucherId - the new voucher id (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 com.squareup.okhttp.Call validateVoucherCall(String validationId, Long vendorId, String productTag, List<Long> orderItemIds, Boolean skipExpiryCheck, ExtraValidationParamDTO extraParamDTO, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
validationId - the voucher validation id (required)vendorId - the internal id of vendor (required)productTag - the product tag (optional)orderItemIds - the array of order item ids (optional)skipExpiryCheck - flag to skip expiry check within strategy (optional)extraParamDTO - the validation extra params dto (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic ValidationResult validateVoucher(String validationId, Long vendorId, String productTag, List<Long> orderItemIds, Boolean skipExpiryCheck, ExtraValidationParamDTO extraParamDTO) throws ApiException
validationId - the voucher validation id (required)vendorId - the internal id of vendor (required)productTag - the product tag (optional)orderItemIds - the array of order item ids (optional)skipExpiryCheck - flag to skip expiry check within strategy (optional)extraParamDTO - the validation extra params dto (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ValidationResult> validateVoucherWithHttpInfo(String validationId, Long vendorId, String productTag, List<Long> orderItemIds, Boolean skipExpiryCheck, ExtraValidationParamDTO extraParamDTO) throws ApiException
validationId - the voucher validation id (required)vendorId - the internal id of vendor (required)productTag - the product tag (optional)orderItemIds - the array of order item ids (optional)skipExpiryCheck - flag to skip expiry check within strategy (optional)extraParamDTO - the validation extra params dto (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call validateVoucherAsync(String validationId, Long vendorId, String productTag, List<Long> orderItemIds, Boolean skipExpiryCheck, ExtraValidationParamDTO extraParamDTO, ApiCallback<ValidationResult> callback) throws ApiException
validationId - the voucher validation id (required)vendorId - the internal id of vendor (required)productTag - the product tag (optional)orderItemIds - the array of order item ids (optional)skipExpiryCheck - flag to skip expiry check within strategy (optional)extraParamDTO - the validation extra params dto (optional)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 © 2018. All rights reserved.