Class AdyenCreditCard
java.lang.Object
org.machanism.macha.core.entities.payment.CreditCard
org.machanism.macha.core.adapters.adyen.payment.model.AdyenCreditCard
The `AdyenCreditCard` class extends the `CreditCard` class to provide a
specialized implementation for handling Adyen credit card payment details. By
parsing Adyen-specific response data, this class maps card properties to the
reusable `CreditCard` entity and supports additional features such as funding
source detection and token handling.
This class plays a pivotal role in adapting Adyen payment elements into a unified credit card abstraction.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Constant for raw AVS result response from Adyen.static final String
Constant representing the name of the bank issuing the card.static final String
Constant representing the issuing country of the card.static final String
Constant representing the payment method for card transactions.static final String
Constant representing the commercial scheme of the card.static final String
Constant for the customer's location (country code).static final String
Constant for raw CVC result response from Adyen.static final String
Value indicating a debit card funding source.static final String
Constant representing the funding source of the card (e.g., debit, prepaid).static final String
Value indicating a negative ("NO") assessment.static final String
Value indicating a prepaid card funding source.static final String
Constant for retrieving recurring detail reference for payment tokens.static final String
Default value for unknown fields.static final String
Value indicating a positive ("YES") assessment. -
Constructor Summary
ConstructorsConstructorDescriptionAdyenCreditCard
(Map<String, String> cardDetails) Creates a new `AdyenCreditCard` object by parsing the provided card details. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if any mandatory credit card properties are missing.Methods inherited from class org.machanism.macha.core.entities.payment.CreditCard
getAvsResponseCode, getCardholderName, getCardType, getCommercial, getCountryOfIssuance, getCreatedAt, getCustomerLocation, getCvvResponseCode, getDebit, getExpirationMonth, getExpirationYear, getIssuingBank, getLast4, getPrepaid, getToken, setAvsResponseCode, setCardholderName, setCardType, setCommercial, setCountryOfIssuance, setCreatedAt, setCustomerLocation, setCvvResponseCode, setDebit, setExpirationMonth, setExpirationYear, setIssuingBank, setLast4, setPrepaid, setToken, toString
-
Field Details
-
UNKNOWN
-
CARD_PAYMENT_METHOD
Constant representing the payment method for card transactions.- See Also:
-
CARD_SCHEME_COMMERCIAL
Constant representing the commercial scheme of the card.- See Also:
-
CARD_ISSUING_COUNTRY
Constant representing the issuing country of the card.- See Also:
-
COUNTRY_CODE
Constant for the customer's location (country code).- See Also:
-
FUNDING_SOURCE
Constant representing the funding source of the card (e.g., debit, prepaid).- See Also:
-
CARD_ISSUING_BANK
Constant representing the name of the bank issuing the card.- See Also:
-
RECURRING_DETAIL_REFERENCE_RESULT
Constant for retrieving recurring detail reference for payment tokens.- See Also:
-
CVC_RESULT_RAW
Constant for raw CVC result response from Adyen.- See Also:
-
AVS_RESULT_RAW
Constant for raw AVS result response from Adyen.- See Also:
-
DEBIT
-
PREPAID
-
YES
-
NO
-
-
Constructor Details
-
AdyenCreditCard
Creates a new `AdyenCreditCard` object by parsing the provided card details.- Parameters:
cardDetails
- AMap
containing key-value pairs of card details from the Adyen response.
-
-
Method Details
-
isMissingFields
Checks if any mandatory credit card properties are missing.- Returns:
true
if any required fields are missing;false
otherwise.
-