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 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 interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentValidator
    • getStoreCreditAccount

      protected Optional<CreditAccount> getStoreCreditAccount(@NonNull @NonNull String accountNumber, @Nullable String applicationId, @Nullable String tenantId)
    • buildContextInfoForRead

      protected com.broadleafcommerce.data.tracking.core.context.ContextInfo buildContextInfoForRead(@Nullable String applicationId, @Nullable String tenantId)
    • validateAccessToStoreCreditAccount

      protected void validateAccessToStoreCreditAccount(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentValidationRequest paymentValidationRequest, @NonNull @NonNull CreditAccount creditAccount)
    • getGatewayType

      public String getGatewayType()
      Specified by:
      getGatewayType in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
    • getStoreCreditAccountProvider

      protected StoreCreditAccountProvider 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)