public final class CustomerModule
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
pl.rspective.voucherify.client.module.AbsModule.Async |
static class |
pl.rspective.voucherify.client.module.AbsModule.Rx |
class |
CustomerModule.ExtAsync
Async extension.
|
class |
CustomerModule.ExtRxJava
RxJava extension.
|
| Constructor and Description |
|---|
CustomerModule(VoucherifyApi api,
java.util.concurrent.Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
CustomerModule.ExtAsync |
async()
Returns the asynchronous extension of this module.
|
Customer |
createCustomer(Customer customer)
Create a customer.
|
void |
deleteCustomer(java.lang.String customerId)
Delete a customer.
|
Customer |
getCustomer(java.lang.String customerId)
Get a single resource with an customerId.
|
CustomerModule.ExtRxJava |
rx()
Returns the RxJava extension of this module.
|
Customer |
updateCustomer(Customer customer)
Update a customer.
|
public CustomerModule(VoucherifyApi api, java.util.concurrent.Executor executor)
api - describes Voucherify REST APIexecutor - of threads for current platformpublic Customer getCustomer(java.lang.String customerId)
customerId - resource idpublic Customer createCustomer(Customer customer)
customer - customer to be createdpublic Customer updateCustomer(Customer customer)
customer - customer to be updatedpublic void deleteCustomer(java.lang.String customerId)
customerId - id of a customer to be deletedpublic CustomerModule.ExtAsync async()
public CustomerModule.ExtRxJava rx()