Class DefaultPaymentTTLValidationService

java.lang.Object
com.broadleafcommerce.paymenttransaction.service.validation.DefaultPaymentTTLValidationService
All Implemented Interfaces:
PaymentTTLValidationService

public class DefaultPaymentTTLValidationService extends Object implements PaymentTTLValidationService
Default implementation of PaymentTTLValidationService.
Author:
mariestandeven
  • Constructor Details

  • Method Details

    • validatePaymentTTL

      public void validatePaymentTTL(@NonNull @NonNull Payment payment, @Nullable String lockToken, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Description copied from interface: PaymentTTLValidationService
      Validates the payment's time-to-live.
      Specified by:
      validatePaymentTTL in interface PaymentTTLValidationService
      Parameters:
      payment - the payment to validate
      lockToken - Token granted to resource that owns the payment lock.
      context - Context information related to multitenancy.
    • isExpired

      protected boolean isExpired(@NonNull @NonNull Payment payment)
    • isCustomerMutabilityBlocked

      protected boolean isCustomerMutabilityBlocked(@NonNull @NonNull Payment payment)
    • isCustomerMutabilityBlockedForPaymentFinalization

      protected boolean isCustomerMutabilityBlockedForPaymentFinalization(@NonNull @NonNull Payment payment)
    • getPaymentManagementService

      protected PaymentManagementService<Payment> getPaymentManagementService()
    • getPaymentTransactionServiceProperties

      protected PaymentTransactionServiceProperties getPaymentTransactionServiceProperties()