Class DefaultCreditCardMappingService
java.lang.Object
de.hybris.platform.integration.cis.subscription.service.impl.DefaultCreditCardMappingService
- All Implemented Interfaces:
CreditCardMappingService
Implements the functionality of converting the credit card codes in hybris to those of the provider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconvertCCToProviderSpecificName(Collection<CardTypeData> creditCards, String vendor) Converts the code of a credit card to the appropriate code of the providerLoad vendor credit card mapping from property file.
-
Constructor Details
-
DefaultCreditCardMappingService
public DefaultCreditCardMappingService()
-
-
Method Details
-
initialize
Load vendor credit card mapping from property file.- Returns:
- vendor credit card mapping
-
convertCCToProviderSpecificName
public boolean convertCCToProviderSpecificName(@Nonnull Collection<CardTypeData> creditCards, String vendor) Description copied from interface:CreditCardMappingServiceConverts the code of a credit card to the appropriate code of the provider- Specified by:
convertCCToProviderSpecificNamein interfaceCreditCardMappingService- Parameters:
creditCards- the credit cardsvendor- the name of the billing provider- Returns:
- true if conversion is done
-