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.
|
R |
consumeVoucher(java.lang.String identifier) |
java.util.List<T> |
fetchAll()
Fetch all resources of the type associated with this module.
|
T |
fetchOne(java.lang.String identifier)
Fetch a single resource with an identifier.
|
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 Voucherif 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 java.util.List<T> fetchAll()
public T fetchOne(java.lang.String identifier)
identifier - resource idpublic R consumeVoucher(java.lang.String identifier)
identifier -