public final class VoucherModule
extends java.lang.Object
| Constructor and Description |
|---|
VoucherModule(VoucherifyApi api,
java.util.concurrent.Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
pl.rspective.voucherify.client.module.BaseModule.ExtAsync |
async()
Returns the asynchronous extension of this module.
|
T |
fetchVoucher(java.lang.String identifier)
Fetch a single resource with an identifier.
|
RR |
redeem(java.lang.String identifier,
java.lang.String trackingId)
Redeem a voucher identified by code
|
RR |
redeem(java.lang.String identifier,
VoucherRedemptionContext redemptionContext)
Redeem a voucher identified by code
|
R |
redemption(java.lang.String identifier)
Fetch information about voucher redemption
|
pl.rspective.voucherify.client.module.BaseModule.ExtRxJava |
rx()
Returns the RxJava extension of this module.
|
public VoucherModule(VoucherifyApi api, java.util.concurrent.Executor executor)
api - describes Voucherify REST APIexecutor - of threads for current platformpublic pl.rspective.voucherify.client.module.BaseModule.ExtAsync async()
public pl.rspective.voucherify.client.module.BaseModule.ExtRxJava rx()
public T fetchVoucher(java.lang.String identifier)
identifier - resource idpublic RR redeem(java.lang.String identifier,
java.lang.String trackingId)
identifier - code of the voucherpublic RR redeem(java.lang.String identifier,
VoucherRedemptionContext redemptionContext)
identifier - code of the voucherpublic R redemption(java.lang.String identifier)
identifier - of the voucher for which we fetch the redemption details