Class DefaultCreditCardMappingService
- java.lang.Object
-
- de.hybris.platform.integration.cis.subscription.service.impl.DefaultCreditCardMappingService
-
- All Implemented Interfaces:
CreditCardMappingService
public class DefaultCreditCardMappingService extends java.lang.Object implements CreditCardMappingService
Implements the functionality of converting the credit card codes in hybris to those of the provider
-
-
Constructor Summary
Constructors Constructor Description DefaultCreditCardMappingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconvertCCToProviderSpecificName(java.util.Collection<CardTypeData> creditCards, java.lang.String vendor)Converts the code of a credit card to the appropriate code of the providerjava.util.Map<java.lang.String,java.lang.String>initialize()Load vendor credit card mapping from property file.
-
-
-
Method Detail
-
initialize
public java.util.Map<java.lang.String,java.lang.String> initialize()
Load vendor credit card mapping from property file.- Returns:
- vendor credit card mapping
-
convertCCToProviderSpecificName
public boolean convertCCToProviderSpecificName(@Nonnull java.util.Collection<CardTypeData> creditCards, java.lang.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
-
-