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.ContextInfo
buildContextInfoForRead
(String applicationId, String tenantId) protected Optional<CreditAccount>
getStoreCreditAccount
(@NonNull String accountNumber, String applicationId, String tenantId) protected StoreCreditAccountProvider
protected com.broadleafcommerce.common.extension.TypeFactory
void
setStoreCreditAccountProvider
(StoreCreditAccountProvider storeCreditAccountProvider) void
setTypeFactory
(com.broadleafcommerce.common.extension.TypeFactory typeFactory) protected void
validateAccessToStoreCreditAccount
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentValidationRequest paymentValidationRequest, @NonNull CreditAccount creditAccount) void
validatePayment
(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:
validatePayment
in 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:
getGatewayType
in 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)
-