| Package | Description |
|---|---|
| com.bymdev.voucherhub | |
| com.bymdev.voucherhub.api |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
ApiClient.executeAsync(com.squareup.okhttp.Call call,
ApiCallback<T> callback)
|
<T> void |
ApiClient.executeAsync(com.squareup.okhttp.Call call,
Type returnType,
ApiCallback<T> callback)
Execute HTTP call asynchronously.
|
| Modifier and Type | Method and Description |
|---|---|
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.cancelVoucherAsync(Long orderId,
String voucherId,
OrderNoteParamDTO note,
ApiCallback<GenericStatusDTO> callback)
cancelVoucher (asynchronously)
Required permissions: CAN_CANCEL_ORDER
|
com.squareup.okhttp.Call |
VoucherResourceApi.convertVoucherAsync(String oldVoucherId,
String newVoucherId,
ApiCallback<JSONObject> callback)
convertVoucher (asynchronously)
Required permissions: CAN_CONVERT_VOUCHER
|
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 |
ProductResourceApi.findProductsByVendorAsync(Long vendorId,
ApiCallback<List<ProductDTO>> callback)
findProductsByVendor (asynchronously)
Required permissions: CAN_GET_PRODUCTS_BY_VENDOR
|
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 |
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 |
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 |
OrderRecordResourceApi.getOrderRecordAsync(Long id,
ApiCallback<OrderRecordExtendDTO> callback)
getOrderRecord (asynchronously)
Required permissions: CAN_GET_ORDERS
|
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.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 |
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.
|
Copyright © 2018. All rights reserved.