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
Constructors Constructor Description 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 Summary
 
 - 
 
- 
- 
Constructor Detail
- 
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 Detail
- 
getConfiguration
public PaymentGatewayConfiguration getConfiguration(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayConfigurationthat matches the givenPaymentGatewayType.- Specified by:
 getConfigurationin interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 
- 
getTransactionService
public PaymentGatewayTransactionService getTransactionService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayTransactionServicethat matches the givenPaymentGatewayType.- Specified by:
 getTransactionServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 
- 
getRollbackService
public PaymentGatewayRollbackService getRollbackService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayRollbackServicethat matches the givenPaymentGatewayType.- Specified by:
 getRollbackServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 
- 
getWebhookHandler
public PaymentGatewayWebhookHandler getWebhookHandler(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayWebhookHandlerthat matches the givenPaymentGatewayType.- Specified by:
 getWebhookHandlerin interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 
- 
getReportingService
public PaymentGatewayReportingService getReportingService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayReportingServicethat matches the givenPaymentGatewayType.- Specified by:
 getReportingServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 
- 
getCustomerService
public PaymentGatewayCustomerService getCustomerService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayCustomerServicethat matches the givenPaymentGatewayType.- Specified by:
 getCustomerServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 
- 
getHostedService
public PaymentGatewayHostedService getHostedService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProviderReturns the firstPaymentGatewayHostedServicethat matches the givenPaymentGatewayType.- Specified by:
 getHostedServicein interfacePaymentGatewayResourceProvider- Parameters:
 gatewayType- a String representation of thePaymentGatewayType
 
- 
getPaymentValidator
public PaymentGatewayPaymentValidator getPaymentValidator(@NonNull @NonNull String gatewayType)
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
protected List<PaymentGatewayConfiguration> getPaymentGatewayConfigurations()
 
- 
getTransactionServices
protected List<PaymentGatewayTransactionService> getTransactionServices()
 
- 
getRollbackServices
protected List<PaymentGatewayRollbackService> getRollbackServices()
 
- 
getPaymentGatewayWebhookHandlers
protected List<PaymentGatewayWebhookHandler> getPaymentGatewayWebhookHandlers()
 
- 
setPaymentGatewayWebhookHandlers
@Autowired(required=false) public void setPaymentGatewayWebhookHandlers(List<PaymentGatewayWebhookHandler> paymentGatewayWebhookHandlers)
 
- 
getReportingServices
protected List<PaymentGatewayReportingService> getReportingServices()
 
- 
getCustomerServices
protected List<PaymentGatewayCustomerService> getCustomerServices()
 
- 
getHostedServices
protected List<PaymentGatewayHostedService> getHostedServices()
 
- 
getPaymentValidators
protected List<PaymentGatewayPaymentValidator> getPaymentValidators()
 
- 
getTransactionResponseServices
protected List<PaymentGatewayTransactionResponseService> getTransactionResponseServices()
 
- 
getTransactionResponseValidators
protected List<PaymentGatewayTransactionResponseValidator> getTransactionResponseValidators()
 
- 
getSavedPaymentMethodServices
@Nullable protected List<PaymentGatewaySavedPaymentMethodService> 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
@Nullable protected List<PaymentGatewayPaymentModificationService> getPaymentModificationServices()
 
- 
setPaymentModificationServices
@Autowired(required=false) public void setPaymentModificationServices(@Nullable List<PaymentGatewayPaymentModificationService> paymentModificationServices) 
 - 
 
 -