| Package | Description |
|---|---|
| com.bymdev.voucherhub | |
| com.bymdev.voucherhub.api |
| Modifier and Type | Method and Description |
|---|---|
void |
ApiCallback.onFailure(ApiException e,
int statusCode,
Map<String,List<String>> responseHeaders)
This is called when the API call fails.
|
| Modifier and Type | Method and Description |
|---|---|
com.squareup.okhttp.Call |
ApiClient.buildCall(String path,
String method,
List<Pair> queryParams,
List<Pair> collectionQueryParams,
Object body,
Map<String,String> headerParams,
Map<String,Object> formParams,
String[] authNames,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build HTTP call with the given options.
|
com.squareup.okhttp.Request |
ApiClient.buildRequest(String path,
String method,
List<Pair> queryParams,
List<Pair> collectionQueryParams,
Object body,
Map<String,String> headerParams,
Map<String,Object> formParams,
String[] authNames,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build an HTTP request with the given options.
|
<T> T |
ApiClient.deserialize(com.squareup.okhttp.Response response,
Type returnType)
Deserialize response body to Java object, according to the return type and
the Content-Type response header.
|
File |
ApiClient.downloadFileFromResponse(com.squareup.okhttp.Response response)
Download file from the given response.
|
<T> ApiResponse<T> |
ApiClient.execute(com.squareup.okhttp.Call call)
|
<T> ApiResponse<T> |
ApiClient.execute(com.squareup.okhttp.Call call,
Type returnType)
Execute HTTP call and deserialize the HTTP response body into the given return type.
|
<T> T |
ApiClient.handleResponse(com.squareup.okhttp.Response response,
Type returnType)
Handle the given response, return the deserialized object when the response is successful.
|
com.squareup.okhttp.RequestBody |
ApiClient.serialize(Object obj,
String contentType)
Serialize the given Java object into request body according to the object's
class and the request Content-Type.
|
| Modifier and Type | Method and Description |
|---|---|
GenericStatusDTO |
VoucherResourceApi.cancelValidation(String transactionTag,
String reason,
OrderNoteParamDTO note)
[V2] Cancel validation for the voucher
Required permissions: CAN_CANCEL_VALIDATION
|
com.squareup.okhttp.Call |
VoucherResourceApi.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 |
VoucherResourceApi.cancelValidationCall(String transactionTag,
String reason,
OrderNoteParamDTO note,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for cancelValidation
|
ApiResponse<GenericStatusDTO> |
VoucherResourceApi.cancelValidationWithHttpInfo(String transactionTag,
String reason,
OrderNoteParamDTO note)
[V2] Cancel validation for the voucher
Required permissions: CAN_CANCEL_VALIDATION
|
GenericStatusDTO |
VoucherResourceApi.cancelVoucher(Long orderId,
String voucherId,
OrderNoteParamDTO note)
cancelVoucher
Required permissions: CAN_CANCEL_ORDER
|
com.squareup.okhttp.Call |
VoucherResourceApi.cancelVoucherAsync(Long orderId,
String voucherId,
OrderNoteParamDTO note,
ApiCallback<GenericStatusDTO> callback)
cancelVoucher (asynchronously)
Required permissions: CAN_CANCEL_ORDER
|
com.squareup.okhttp.Call |
VoucherResourceApi.cancelVoucherCall(Long orderId,
String voucherId,
OrderNoteParamDTO note,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for cancelVoucher
|
ApiResponse<GenericStatusDTO> |
VoucherResourceApi.cancelVoucherWithHttpInfo(Long orderId,
String voucherId,
OrderNoteParamDTO note)
cancelVoucher
Required permissions: CAN_CANCEL_ORDER
|
JSONObject |
VoucherResourceApi.convertVoucher(String oldVoucherId,
String newVoucherId)
convertVoucher
Required permissions: CAN_CONVERT_VOUCHER
|
com.squareup.okhttp.Call |
VoucherResourceApi.convertVoucherAsync(String oldVoucherId,
String newVoucherId,
ApiCallback<JSONObject> callback)
convertVoucher (asynchronously)
Required permissions: CAN_CONVERT_VOUCHER
|
com.squareup.okhttp.Call |
VoucherResourceApi.convertVoucherCall(String oldVoucherId,
String newVoucherId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for convertVoucher
|
ApiResponse<JSONObject> |
VoucherResourceApi.convertVoucherWithHttpInfo(String oldVoucherId,
String newVoucherId)
convertVoucher
Required permissions: CAN_CONVERT_VOUCHER
|
OrderRecordDTO |
OrderRecordResourceApi.createOrderRecord(OrderRecordDTO orderRecordDto)
createOrderRecord
1) Cellphone number must be in E.164 format;<br/>2) «PricePaid» is a price for 1 product;<br/>3) Required permissions: CAN_CREATE_ORDER.
|
com.squareup.okhttp.Call |
OrderRecordResourceApi.createOrderRecordAsync(OrderRecordDTO orderRecordDto,
ApiCallback<OrderRecordDTO> callback)
createOrderRecord (asynchronously)
1) Cellphone number must be in E.164 format;<br/>2) «PricePaid» is a price for 1 product;<br/>3) Required permissions: CAN_CREATE_ORDER.
|
com.squareup.okhttp.Call |
OrderRecordResourceApi.createOrderRecordCall(OrderRecordDTO orderRecordDto,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createOrderRecord
|
ApiResponse<OrderRecordDTO> |
OrderRecordResourceApi.createOrderRecordWithHttpInfo(OrderRecordDTO orderRecordDto)
createOrderRecord
1) Cellphone number must be in E.164 format;<br/>2) «PricePaid» is a price for 1 product;<br/>3) Required permissions: CAN_CREATE_ORDER.
|
List<ProductDTO> |
ProductResourceApi.findProductsByVendor(Long vendorId)
findProductsByVendor
Required permissions: CAN_GET_PRODUCTS_BY_VENDOR
|
com.squareup.okhttp.Call |
ProductResourceApi.findProductsByVendorAsync(Long vendorId,
ApiCallback<List<ProductDTO>> callback)
findProductsByVendor (asynchronously)
Required permissions: CAN_GET_PRODUCTS_BY_VENDOR
|
com.squareup.okhttp.Call |
ProductResourceApi.findProductsByVendorCall(Long vendorId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for findProductsByVendor
|
ApiResponse<List<ProductDTO>> |
ProductResourceApi.findProductsByVendorWithHttpInfo(Long vendorId)
findProductsByVendor
Required permissions: CAN_GET_PRODUCTS_BY_VENDOR
|
List<OrderRecordExtendDTO> |
OrderRecordResourceApi.getAllOrderRecords(String query,
String from,
String till,
String timeZone,
String deliveryMethod,
String deliveryStatus,
Integer size,
Integer page,
String sortBy,
String sortOrder)
getAllOrderRecords
Required permissions: CAN_GET_ORDERS
|
com.squareup.okhttp.Call |
OrderRecordResourceApi.getAllOrderRecordsAsync(String query,
String from,
String till,
String timeZone,
String deliveryMethod,
String deliveryStatus,
Integer size,
Integer page,
String sortBy,
String sortOrder,
ApiCallback<List<OrderRecordExtendDTO>> callback)
getAllOrderRecords (asynchronously)
Required permissions: CAN_GET_ORDERS
|
com.squareup.okhttp.Call |
OrderRecordResourceApi.getAllOrderRecordsCall(String query,
String from,
String till,
String timeZone,
String deliveryMethod,
String deliveryStatus,
Integer size,
Integer page,
String sortBy,
String sortOrder,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getAllOrderRecords
|
ApiResponse<List<OrderRecordExtendDTO>> |
OrderRecordResourceApi.getAllOrderRecordsWithHttpInfo(String query,
String from,
String till,
String timeZone,
String deliveryMethod,
String deliveryStatus,
Integer size,
Integer page,
String sortBy,
String sortOrder)
getAllOrderRecords
Required permissions: CAN_GET_ORDERS
|
List<ProductDTO> |
ProductResourceApi.getAllProducts(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder,
String type,
List<String> tagFilter,
String tagFilterMode)
getAllProducts
Required permissions: CAN_GET_PRODUCTS
|
com.squareup.okhttp.Call |
ProductResourceApi.getAllProductsAsync(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder,
String type,
List<String> tagFilter,
String tagFilterMode,
ApiCallback<List<ProductDTO>> callback)
getAllProducts (asynchronously)
Required permissions: CAN_GET_PRODUCTS
|
com.squareup.okhttp.Call |
ProductResourceApi.getAllProductsCall(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder,
String type,
List<String> tagFilter,
String tagFilterMode,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getAllProducts
|
ApiResponse<List<ProductDTO>> |
ProductResourceApi.getAllProductsWithHttpInfo(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder,
String type,
List<String> tagFilter,
String tagFilterMode)
getAllProducts
Required permissions: CAN_GET_PRODUCTS
|
List<VendorDetailDTO> |
VendorResourceApi.getAllVendors(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder)
getAllVendors
Required permissions: CAN_GET_VENDORS
|
com.squareup.okhttp.Call |
VendorResourceApi.getAllVendorsAsync(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder,
ApiCallback<List<VendorDetailDTO>> callback)
getAllVendors (asynchronously)
Required permissions: CAN_GET_VENDORS
|
com.squareup.okhttp.Call |
VendorResourceApi.getAllVendorsCall(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getAllVendors
|
ApiResponse<List<VendorDetailDTO>> |
VendorResourceApi.getAllVendorsWithHttpInfo(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder)
getAllVendors
Required permissions: CAN_GET_VENDORS
|
OrderRecordExtendDTO |
OrderRecordResourceApi.getOrderRecord(Long id)
getOrderRecord
Required permissions: CAN_GET_ORDERS
|
com.squareup.okhttp.Call |
OrderRecordResourceApi.getOrderRecordAsync(Long id,
ApiCallback<OrderRecordExtendDTO> callback)
getOrderRecord (asynchronously)
Required permissions: CAN_GET_ORDERS
|
com.squareup.okhttp.Call |
OrderRecordResourceApi.getOrderRecordCall(Long id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getOrderRecord
|
ApiResponse<OrderRecordExtendDTO> |
OrderRecordResourceApi.getOrderRecordWithHttpInfo(Long id)
getOrderRecord
Required permissions: CAN_GET_ORDERS
|
GenericStatusDTO |
OrderRecordResourceApi.mergeVouchers(Long orderId,
String newVoucherId)
mergeVouchers
Replaces voucher IDs of order items with new voucher ID in the specified order.
|
com.squareup.okhttp.Call |
OrderRecordResourceApi.mergeVouchersAsync(Long orderId,
String newVoucherId,
ApiCallback<GenericStatusDTO> callback)
mergeVouchers (asynchronously)
Replaces voucher IDs of order items with new voucher ID in the specified order.
|
com.squareup.okhttp.Call |
OrderRecordResourceApi.mergeVouchersCall(Long orderId,
String newVoucherId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for mergeVouchers
|
ApiResponse<GenericStatusDTO> |
OrderRecordResourceApi.mergeVouchersWithHttpInfo(Long orderId,
String newVoucherId)
mergeVouchers
Replaces voucher IDs of order items with new voucher ID in the specified order.
|
OrderRecordDTO |
OrderRecordResourceApi.updateOrderRecord(OrderRecordDTO orderRecordDto)
updateOrderRecord
1) Cellphone number must be in E.164 format;<br/>2) «PricePaid» is a price for 1 product;<br/>3) Required permissions: CAN_EDIT_ORDER.
|
com.squareup.okhttp.Call |
OrderRecordResourceApi.updateOrderRecordAsync(OrderRecordDTO orderRecordDto,
ApiCallback<OrderRecordDTO> callback)
updateOrderRecord (asynchronously)
1) Cellphone number must be in E.164 format;<br/>2) «PricePaid» is a price for 1 product;<br/>3) Required permissions: CAN_EDIT_ORDER.
|
com.squareup.okhttp.Call |
OrderRecordResourceApi.updateOrderRecordCall(OrderRecordDTO orderRecordDto,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateOrderRecord
|
ApiResponse<OrderRecordDTO> |
OrderRecordResourceApi.updateOrderRecordWithHttpInfo(OrderRecordDTO orderRecordDto)
updateOrderRecord
1) Cellphone number must be in E.164 format;<br/>2) «PricePaid» is a price for 1 product;<br/>3) Required permissions: CAN_EDIT_ORDER.
|
ValidationResult |
VoucherResourceApi.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 |
VoucherResourceApi.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 |
VoucherResourceApi.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> |
VoucherResourceApi.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.
|
Copyright © 2018. All rights reserved.