Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean convertCCToProviderSpecificName​(java.util.Collection<CardTypeData> creditCards, java.lang.String vendor)
      Converts the code of a credit card to the appropriate code of the provider
      java.util.Map<java.lang.String,​java.lang.String> initialize()
      Load vendor credit card mapping from property file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCreditCardMappingService

        public DefaultCreditCardMappingService()
    • 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: CreditCardMappingService
        Converts the code of a credit card to the appropriate code of the provider
        Specified by:
        convertCCToProviderSpecificName in interface CreditCardMappingService
        Parameters:
        creditCards - the credit cards
        vendor - the name of the billing provider
        Returns:
        true if conversion is done