| Constructor and Description |
|---|
HookApiImpl(MangoPayApi root)
Instantiates new HookApiImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
Hook |
create(Hook hook)
Creates new hook.
|
Hook |
create(java.lang.String idempotencyKey,
Hook hook)
Creates new hook.
|
Hook |
get(java.lang.String hookId)
Gets hook.
|
java.util.List<Hook> |
getAll()
Gets all hooks.
|
java.util.List<Hook> |
getAll(Pagination pagination,
Sorting sorting)
Gets all hooks.
|
Hook |
update(Hook hook)
Saves hook.
|
createObject, createObject, createObject, getList, getList, getList, getList, getList, getList, getListNoClientId, getObject, getObjectNoClientId, getRequestType, getRequestUrl, getRoot, updateObject, updateObject, updateObject, updateObjectpublic HookApiImpl(MangoPayApi root)
root - Root/parent instance that holds the OAuthToken and Configuration instance.public Hook create(Hook hook) throws java.lang.Exception
HookApipublic Hook create(java.lang.String idempotencyKey, Hook hook) throws java.lang.Exception
HookApipublic Hook get(java.lang.String hookId) throws java.lang.Exception
HookApipublic Hook update(Hook hook) throws java.lang.Exception
HookApipublic java.util.List<Hook> getAll(Pagination pagination, Sorting sorting) throws java.lang.Exception
HookApi