public interface VoucherifyApi
| Modifier and Type | Method and Description |
|---|---|
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/{code}")
Voucher fetchVoucher(@Path(value="code")
java.lang.String code)
code - of the voucher@POST(value="/vouchers/{code}/usage")
VoucherUsage useVoucher(@Path(value="code")
java.lang.String code)
code - of the voucher