Class DefaultStoreCreditPaymentGatewayPaymentValidator
java.lang.Object
com.broadleafcommerce.payment.service.gateway.DefaultStoreCreditPaymentGatewayPaymentValidator
- All Implemented Interfaces:
StoreCreditPaymentGatewayPaymentValidator,com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentValidator,com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
public class DefaultStoreCreditPaymentGatewayPaymentValidator
extends Object
implements StoreCreditPaymentGatewayPaymentValidator
The default implementation of
StoreCreditPaymentGatewayPaymentValidator.- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.context.ContextInfobuildContextInfoForRead(String applicationId, String tenantId) protected Optional<CreditAccount>getStoreCreditAccount(@NonNull String accountNumber, String applicationId, String tenantId) protected StoreCreditAccountProviderprotected com.broadleafcommerce.common.extension.TypeFactoryvoidsetStoreCreditAccountProvider(StoreCreditAccountProvider storeCreditAccountProvider) voidsetTypeFactory(com.broadleafcommerce.common.extension.TypeFactory typeFactory) protected voidvalidateAccessToStoreCreditAccount(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentValidationRequest paymentValidationRequest, @NonNull CreditAccount creditAccount) voidvalidatePayment(com.broadleafcommerce.paymentgateway.domain.PaymentValidationRequest paymentValidationRequest, String applicationId, String tenantId)
-
Constructor Details
-
DefaultStoreCreditPaymentGatewayPaymentValidator
public DefaultStoreCreditPaymentGatewayPaymentValidator()
-
-
Method Details
-
validatePayment
public void validatePayment(com.broadleafcommerce.paymentgateway.domain.PaymentValidationRequest paymentValidationRequest, @Nullable String applicationId, @Nullable String tenantId) - Specified by:
validatePaymentin interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentValidator
-
getStoreCreditAccount
protected Optional<CreditAccount> getStoreCreditAccount(@NonNull @NonNull String accountNumber, @Nullable String applicationId, @Nullable String tenantId) -
buildContextInfoForRead
-
validateAccessToStoreCreditAccount
protected void validateAccessToStoreCreditAccount(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentValidationRequest paymentValidationRequest, @NonNull @NonNull CreditAccount creditAccount) -
getGatewayType
- Specified by:
getGatewayTypein interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
-
getStoreCreditAccountProvider
-
setStoreCreditAccountProvider
@Autowired public void setStoreCreditAccountProvider(StoreCreditAccountProvider storeCreditAccountProvider) -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
setTypeFactory
@Autowired public void setTypeFactory(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-