| Package | Description |
|---|---|
| com.bymdev.voucherhub | |
| com.bymdev.voucherhub.api |
| Modifier and Type | Method and Description |
|---|---|
<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.
|
| Modifier and Type | Method and Description |
|---|---|
ApiResponse<GenericStatusDTO> |
VoucherResourceApi.cancelValidationWithHttpInfo(String transactionTag,
String reason,
OrderNoteParamDTO note)
[V2] Cancel validation for the voucher
Required permissions: CAN_CANCEL_VALIDATION
|
ApiResponse<GenericStatusDTO> |
VoucherResourceApi.cancelVoucherWithHttpInfo(Long orderId,
String voucherId,
OrderNoteParamDTO note)
cancelVoucher
Required permissions: CAN_CANCEL_ORDER
|
ApiResponse<JSONObject> |
VoucherResourceApi.convertVoucherWithHttpInfo(String oldVoucherId,
String newVoucherId)
convertVoucher
Required permissions: CAN_CONVERT_VOUCHER
|
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.
|
ApiResponse<List<ProductDTO>> |
ProductResourceApi.findProductsByVendorWithHttpInfo(Long vendorId)
findProductsByVendor
Required permissions: CAN_GET_PRODUCTS_BY_VENDOR
|
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
|
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
|
ApiResponse<List<VendorDetailDTO>> |
VendorResourceApi.getAllVendorsWithHttpInfo(String query,
Integer size,
Integer page,
String sortBy,
String sortOrder)
getAllVendors
Required permissions: CAN_GET_VENDORS
|
ApiResponse<OrderRecordExtendDTO> |
OrderRecordResourceApi.getOrderRecordWithHttpInfo(Long id)
getOrderRecord
Required permissions: CAN_GET_ORDERS
|
ApiResponse<GenericStatusDTO> |
OrderRecordResourceApi.mergeVouchersWithHttpInfo(Long orderId,
String newVoucherId)
mergeVouchers
Replaces voucher IDs of order items with new voucher ID in the specified order.
|
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.
|
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.