public class CardPreAuthorizationApiImpl extends ApiBase implements CardPreAuthorizationApi
| Constructor and Description |
|---|
CardPreAuthorizationApiImpl(MangoPayApi root)
Instantiates new CardPreAuthorizationApiImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
CardPreAuthorization |
create(CardPreAuthorization cardPreAuthorization)
Creates new pre-authorization object.
|
CardPreAuthorization |
create(java.lang.String idempotencyKey,
CardPreAuthorization cardPreAuthorization)
Creates new pre-authorization object.
|
CardPreAuthorization |
get(java.lang.String cardPreAuthorizationId)
Gets pre-authorization object.
|
java.util.List<Transaction> |
getTransactions(java.lang.String cardPreAuthorizationId,
Pagination pagination) |
CardPreAuthorization |
update(CardPreAuthorization cardPreAuthorization)
Updates pre-authorization object.
|
createObject, createObject, createObject, getList, getList, getList, getList, getList, getList, getListNoClientId, getObject, getObjectNoClientId, getRequestType, getRequestUrl, getRoot, updateObject, updateObject, updateObject, updateObjectpublic CardPreAuthorizationApiImpl(MangoPayApi root)
root - Root/parent instance that holds the OAuthToken and Configuration instance.public CardPreAuthorization create(CardPreAuthorization cardPreAuthorization) throws java.lang.Exception
CardPreAuthorizationApicreate in interface CardPreAuthorizationApicardPreAuthorization - PreAuthorization object to be created.java.lang.Exceptionpublic CardPreAuthorization create(java.lang.String idempotencyKey, CardPreAuthorization cardPreAuthorization) throws java.lang.Exception
CardPreAuthorizationApicreate in interface CardPreAuthorizationApiidempotencyKey - idempotency key for this request.cardPreAuthorization - PreAuthorization object to be created.java.lang.Exceptionpublic CardPreAuthorization get(java.lang.String cardPreAuthorizationId) throws java.lang.Exception
CardPreAuthorizationApiget in interface CardPreAuthorizationApicardPreAuthorizationId - PreAuthorization identifier.java.lang.Exceptionpublic CardPreAuthorization update(CardPreAuthorization cardPreAuthorization) throws java.lang.Exception
CardPreAuthorizationApiupdate in interface CardPreAuthorizationApicardPreAuthorization - PreAuthorization object to be updated.java.lang.Exceptionpublic java.util.List<Transaction> getTransactions(java.lang.String cardPreAuthorizationId, Pagination pagination) throws java.lang.Exception
getTransactions in interface CardPreAuthorizationApijava.lang.Exception