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:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayConfiguration
that matches the givenPaymentGatewayType
.- Specified by:
getConfiguration
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getTransactionService
public PaymentGatewayTransactionService getTransactionService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayTransactionService
that matches the givenPaymentGatewayType
.- Specified by:
getTransactionService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getRollbackService
public PaymentGatewayRollbackService getRollbackService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayRollbackService
that matches the givenPaymentGatewayType
.- Specified by:
getRollbackService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getWebhookHandler
public PaymentGatewayWebhookHandler getWebhookHandler(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayWebhookHandler
that matches the givenPaymentGatewayType
.- Specified by:
getWebhookHandler
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getReportingService
public PaymentGatewayReportingService getReportingService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayReportingService
that matches the givenPaymentGatewayType
.- Specified by:
getReportingService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getCustomerService
public PaymentGatewayCustomerService getCustomerService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayCustomerService
that matches the givenPaymentGatewayType
.- Specified by:
getCustomerService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getHostedService
public PaymentGatewayHostedService getHostedService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayHostedService
that matches the givenPaymentGatewayType
.- Specified by:
getHostedService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getPaymentValidator
public PaymentGatewayPaymentValidator getPaymentValidator(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayPaymentValidator
that matches the givenPaymentGatewayType
.- Specified by:
getPaymentValidator
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getTransactionResponseService
public PaymentGatewayTransactionResponseService getTransactionResponseService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayTransactionResponseService
that matches the givenPaymentGatewayType
.- Specified by:
getTransactionResponseService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getTransactionResponseValidator
public PaymentGatewayTransactionResponseValidator getTransactionResponseValidator(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayTransactionResponseValidator
that matches the givenPaymentGatewayType
.- Specified by:
getTransactionResponseValidator
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getSavedPaymentMethodService
@Nullable public PaymentGatewaySavedPaymentMethodService getSavedPaymentMethodService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProvider
Returns the implementation ofPaymentGatewaySavedPaymentMethodService
for the specified gateway type or null.- Specified by:
getSavedPaymentMethodService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- thePaymentGatewayType
related to implementing resource- Returns:
- the implementation of
PaymentGatewaySavedPaymentMethodService
for the specified gateway type or null
-
get3DSTransactionLookupService
public PaymentGateway3DSTransactionLookupService get3DSTransactionLookupService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProvider
Returns the implementation ofPaymentGateway3DSTransactionLookupService
for the specified gateway type.- Specified by:
get3DSTransactionLookupService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- thePaymentGatewayType
related to implementing resource- Returns:
- the implementation of
PaymentGateway3DSTransactionLookupService
for the specified gateway type
-
getPaymentModificationService
@Nullable public PaymentGatewayPaymentModificationService getPaymentModificationService(@NonNull @NonNull String gatewayType)
Description copied from interface:PaymentGatewayResourceProvider
Returns the implementation ofPaymentGatewayPaymentModificationService
for the specified gateway type.- Specified by:
getPaymentModificationService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- thePaymentGatewayType
related to implementing resource- Returns:
- the implementation of
PaymentGatewayPaymentModificationService
for 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)
-
-