| Constructor and Description |
|---|
CardApiImpl(MangoPayApi root)
Instantiates new CardApiImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
Card |
disable(Card card)
Disables card (sets { INVALID } as the value of Validity field).
|
Card |
get(java.lang.String cardId)
Gets card.
|
java.util.List<Card> |
getByFingerprint(java.lang.String fingerprint)
Gets a list of cards having the same fingerprint.
|
java.util.List<CardPreAuthorization> |
getCardPreAuthorizations(java.lang.String cardId)
Get a list of card's preAuthorizations
|
java.util.List<Transaction> |
getTransactions(java.lang.String cardId)
Get first page of card's transactions
|
java.util.List<Transaction> |
getTransactions(java.lang.String cardId,
Pagination pagination,
Sorting sorting)
Get page of card's transactions
|
Card |
update(Card card)
Saves card.
|
CardValidation |
validate(java.lang.String cardId,
CardValidation cardValidation)
Validate a card
|
createObject, createObject, createObject, getList, getList, getList, getList, getList, getList, getListNoClientId, getObject, getObjectNoClientId, getRequestType, getRequestUrl, getRoot, updateObject, updateObject, updateObject, updateObjectpublic CardApiImpl(MangoPayApi root)
root - Root/parent instance that holds the OAuthToken and Configuration instancepublic Card get(java.lang.String cardId) throws java.lang.Exception
CardApipublic java.util.List<Card> getByFingerprint(java.lang.String fingerprint) throws java.lang.Exception
CardApigetByFingerprint in interface CardApifingerprint - The fingerprint hashjava.lang.Exceptionpublic Card update(Card card) throws java.lang.Exception
CardApipublic Card disable(Card card) throws java.lang.Exception
CardApipublic java.util.List<Transaction> getTransactions(java.lang.String cardId) throws java.lang.Exception
CardApigetTransactions in interface CardApicardId - Card identifierjava.lang.Exceptionpublic java.util.List<Transaction> getTransactions(java.lang.String cardId, Pagination pagination, Sorting sorting) throws java.lang.Exception
CardApigetTransactions in interface CardApijava.lang.Exceptionpublic java.util.List<CardPreAuthorization> getCardPreAuthorizations(java.lang.String cardId) throws java.lang.Exception
CardApigetCardPreAuthorizations in interface CardApicardId - Card identifierjava.lang.Exceptionpublic CardValidation validate(java.lang.String cardId, CardValidation cardValidation) throws java.lang.Exception
CardApi