Class DefaultPaymentGatewayResourceProvider
java.lang.Object
com.broadleafcommerce.paymentgateway.service.provider.DefaultPaymentGatewayResourceProvider
- All Implemented Interfaces:
 PaymentGatewayResourceProvider
public class DefaultPaymentGatewayResourceProvider
extends Object
implements PaymentGatewayResourceProvider
- Author:
 - Chris Kittrell (ckittrell)
 
- 
Constructor Summary
ConstructorsConstructorDescriptionDefaultPaymentGatewayResourceProvider(List<PaymentGatewayConfiguration> paymentGatewayConfigurations, List<PaymentGatewayTransactionService> transactionServices, List<PaymentGatewayRollbackService> rollbackServices, List<PaymentGatewayReportingService> reportingServices, List<PaymentGatewayCustomerService> customerServices, List<PaymentGatewayHostedService> hostedServices, List<PaymentGatewayPaymentValidator> paymentValidators, List<PaymentGatewayTransactionResponseService> transactionResponseServices, List<PaymentGatewayTransactionResponseValidator> transactionResponseValidators)  - 
Method Summary
Modifier and TypeMethodDescriptionget3DSTransactionLookupService(@NonNull String gatewayType) Returns the implementation ofPaymentGateway3DSTransactionLookupServicefor the specified gateway type.getConfiguration(@NonNull String gatewayType) Returns the firstPaymentGatewayConfigurationthat matches the givenPaymentGatewayType.getCustomerService(@NonNull String gatewayType) Returns the firstPaymentGatewayCustomerServicethat matches the givenPaymentGatewayType.protected List<PaymentGatewayCustomerService>getHostedService(@NonNull String gatewayType) Returns the firstPaymentGatewayHostedServicethat matches the givenPaymentGatewayType.protected List<PaymentGatewayHostedService>protected List<PaymentGatewayConfiguration>protected List<PaymentGatewayWebhookHandler>getPaymentModificationService(@NonNull String gatewayType) Returns the implementation ofPaymentGatewayPaymentModificationServicefor the specified gateway type.protected List<PaymentGatewayPaymentModificationService>getPaymentValidator(@NonNull String gatewayType) Returns the firstPaymentGatewayPaymentValidatorthat matches the givenPaymentGatewayType.protected List<PaymentGatewayPaymentValidator>getReportingService(@NonNull String gatewayType) Returns the firstPaymentGatewayReportingServicethat matches the givenPaymentGatewayType.protected List<PaymentGatewayReportingService>getRollbackService(@NonNull String gatewayType) Returns the firstPaymentGatewayRollbackServicethat matches the givenPaymentGatewayType.protected List<PaymentGatewayRollbackService>getSavedPaymentMethodService(@NonNull String gatewayType) Returns the implementation ofPaymentGatewaySavedPaymentMethodServicefor the specified gateway type or null.protected List<PaymentGatewaySavedPaymentMethodService>protected List<PaymentGateway3DSTransactionLookupService>getTransactionResponseService(@NonNull String gatewayType) Returns the firstPaymentGatewayTransactionResponseServicethat matches the givenPaymentGatewayType.protected List<PaymentGatewayTransactionResponseService>getTransactionResponseValidator(@NonNull String gatewayType) Returns the firstPaymentGatewayTransactionResponseValidatorthat matches the givenPaymentGatewayType.protected List<PaymentGatewayTransactionResponseValidator>getTransactionService(@NonNull String gatewayType) Returns the firstPaymentGatewayTransactionServicethat matches the givenPaymentGatewayType.protected List<PaymentGatewayTransactionService>getWebhookHandler(@NonNull String gatewayType) Returns the firstPaymentGatewayWebhookHandlerthat matches the givenPaymentGatewayType.voidsetPaymentGatewayWebhookHandlers(List<PaymentGatewayWebhookHandler> paymentGatewayWebhookHandlers) voidsetPaymentModificationServices(List<PaymentGatewayPaymentModificationService> paymentModificationServices) voidsetSavedPaymentMethodServices(List<PaymentGatewaySavedPaymentMethodService> savedPaymentMethodServices) voidsetThreeDSTransactionLookupServices(List<PaymentGateway3DSTransactionLookupService> threeDSTransactionLookupServices)  
- 
Constructor Details
- 
DefaultPaymentGatewayResourceProvider
public DefaultPaymentGatewayResourceProvider(List<PaymentGatewayConfiguration> paymentGatewayConfigurations, List<PaymentGatewayTransactionService> transactionServices, List<PaymentGatewayRollbackService> rollbackServices, List<PaymentGatewayReportingService> reportingServices, List<PaymentGatewayCustomerService> customerServices, List<PaymentGatewayHostedService> hostedServices, List<PaymentGatewayPaymentValidator> paymentValidators, List<PaymentGatewayTransactionResponseService> transactionResponseServices, List<PaymentGatewayTransactionResponseValidator> transactionResponseValidators)  
 - 
 - 
Method Details
- 
getConfiguration
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayConfigurationthat matches the givenPaymentGatewayType.- Specified by:
 getConfigurationin interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 - 
getTransactionService
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayTransactionServicethat matches the givenPaymentGatewayType.- Specified by:
 getTransactionServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 - 
getRollbackService
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayRollbackServicethat matches the givenPaymentGatewayType.- Specified by:
 getRollbackServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 - 
getWebhookHandler
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayWebhookHandlerthat matches the givenPaymentGatewayType.- Specified by:
 getWebhookHandlerin interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 - 
getReportingService
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayReportingServicethat matches the givenPaymentGatewayType.- Specified by:
 getReportingServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 - 
getCustomerService
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayCustomerServicethat matches the givenPaymentGatewayType.- Specified by:
 getCustomerServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 - 
getHostedService
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayHostedServicethat matches the givenPaymentGatewayType.- Specified by:
 getHostedServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 - 
getPaymentValidator
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayPaymentValidatorthat matches the givenPaymentGatewayType.- Specified by:
 getPaymentValidatorin interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 - 
getTransactionResponseService
public PaymentGatewayTransactionResponseService getTransactionResponseService(@NonNull @NonNull String gatewayType) Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayTransactionResponseServicethat matches the givenPaymentGatewayType.- Specified by:
 getTransactionResponseServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 - 
getTransactionResponseValidator
public PaymentGatewayTransactionResponseValidator getTransactionResponseValidator(@NonNull @NonNull String gatewayType) Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayTransactionResponseValidatorthat matches the givenPaymentGatewayType.- Specified by:
 getTransactionResponseValidatorin interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 - 
getSavedPaymentMethodService
@Nullable public PaymentGatewaySavedPaymentMethodService getSavedPaymentMethodService(@NonNull @NonNull String gatewayType) Description copied from interface:PaymentGatewayResourceProviderReturns the implementation ofPaymentGatewaySavedPaymentMethodServicefor the specified gateway type or null.- Specified by:
 getSavedPaymentMethodServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- thePaymentGatewayTyperelated to implementing resource- Returns:
 - the implementation of 
PaymentGatewaySavedPaymentMethodServicefor the specified gateway type or null 
 - 
get3DSTransactionLookupService
public PaymentGateway3DSTransactionLookupService get3DSTransactionLookupService(@NonNull @NonNull String gatewayType) Description copied from interface:PaymentGatewayResourceProviderReturns the implementation ofPaymentGateway3DSTransactionLookupServicefor the specified gateway type.- Specified by:
 get3DSTransactionLookupServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- thePaymentGatewayTyperelated to implementing resource- Returns:
 - the implementation of 
PaymentGateway3DSTransactionLookupServicefor the specified gateway type 
 - 
getPaymentModificationService
@Nullable public PaymentGatewayPaymentModificationService getPaymentModificationService(@NonNull @NonNull String gatewayType) Description copied from interface:PaymentGatewayResourceProviderReturns the implementation ofPaymentGatewayPaymentModificationServicefor the specified gateway type.- Specified by:
 getPaymentModificationServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- thePaymentGatewayTyperelated to implementing resource- Returns:
 - the implementation of 
PaymentGatewayPaymentModificationServicefor the specified gateway type 
 - 
getPaymentGatewayConfigurations
 - 
getTransactionServices
 - 
getRollbackServices
 - 
getPaymentGatewayWebhookHandlers
 - 
setPaymentGatewayWebhookHandlers
@Autowired(required=false) public void setPaymentGatewayWebhookHandlers(List<PaymentGatewayWebhookHandler> paymentGatewayWebhookHandlers)  - 
getReportingServices
 - 
getCustomerServices
 - 
getHostedServices
 - 
getPaymentValidators
 - 
getTransactionResponseServices
 - 
getTransactionResponseValidators
 - 
getSavedPaymentMethodServices
 - 
setSavedPaymentMethodServices
@Autowired(required=false) public void setSavedPaymentMethodServices(@Nullable List<PaymentGatewaySavedPaymentMethodService> savedPaymentMethodServices)  - 
getThreeDSTransactionLookupServices
@Nullable protected List<PaymentGateway3DSTransactionLookupService> getThreeDSTransactionLookupServices() - 
setThreeDSTransactionLookupServices
@Autowired(required=false) public void setThreeDSTransactionLookupServices(@Nullable List<PaymentGateway3DSTransactionLookupService> threeDSTransactionLookupServices)  - 
getPaymentModificationServices
 - 
setPaymentModificationServices
@Autowired(required=false) public void setPaymentModificationServices(@Nullable List<PaymentGatewayPaymentModificationService> paymentModificationServices)  
 -