public interface VoucherifyApi
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Voucher> |
fetchAllVouchers()
Method used to download all vouchers
|
Voucher |
fetchVoucher(java.lang.String code) |
VoucherUsage |
useVoucher(java.lang.String code)
Method used to consume the voucher based on his code
|
@GET(value="/vouchers") java.util.List<Voucher> fetchAllVouchers()
@GET(value="/vouchers/{code}")
Voucher fetchVoucher(@Path(value="code")
java.lang.String code)
code - of the voucher@PUT(value="/vouchers/{code}/usage")
VoucherUsage useVoucher(@Path(value="code")
java.lang.String code)
code - of the voucher