public interface VoucherifyApi
| Modifier and Type | Method and Description |
|---|---|
Voucher |
fetch(java.lang.String code)
Fetch details for specific voucher
|
VoucherUsage |
usage(java.lang.String code)
Fetch information about voucher usage details
|
Voucher |
use(java.lang.String code,
java.lang.String trackingId)
Method used to consume the voucher based on his code
|
@GET(value="/vouchers/{code}")
Voucher fetch(@Path(value="code")
java.lang.String code)
code - of the voucher@POST(value="/vouchers/{code}/usage")
Voucher use(@Path(value="code")
java.lang.String code,
@Query(value="tracking_id")
java.lang.String trackingId)
code - of the voucher@GET(value="/vouchers/{code}/usage")
VoucherUsage usage(@Path(value="code")
java.lang.String code)
code - of the voucher