Class DefaultSavedPaymentMethodSummaryService
java.lang.Object
com.broadleafcommerce.paymenttransaction.service.summary.DefaultSavedPaymentMethodSummaryService
- All Implemented Interfaces:
SavedPaymentMethodSummaryService
public class DefaultSavedPaymentMethodSummaryService
extends Object
implements SavedPaymentMethodSummaryService
Default implementation of the
SavedPaymentMethodSummaryService
.- Author:
- Dima Myroniuk (dmyroniuk), Sunny Yu
-
Constructor Summary
ConstructorDescriptionDefaultSavedPaymentMethodSummaryService
(com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionbuildSummary
(@NonNull SavedPaymentMethod savedPaymentMethod) DeterminesSavedPaymentMethodSummary
based on theSavedPaymentMethod
.protected com.broadleafcommerce.common.extension.TypeFactory
-
Constructor Details
-
DefaultSavedPaymentMethodSummaryService
public DefaultSavedPaymentMethodSummaryService(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
buildSummary
public SavedPaymentMethodSummary buildSummary(@NonNull @NonNull SavedPaymentMethod savedPaymentMethod) Description copied from interface:SavedPaymentMethodSummaryService
DeterminesSavedPaymentMethodSummary
based on theSavedPaymentMethod
.- Specified by:
buildSummary
in interfaceSavedPaymentMethodSummaryService
- Parameters:
savedPaymentMethod
- the saved payment method used to build the summary- Returns:
- the saved payment summary for the specified saved payment method
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-