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 Summary
ConstructorsConstructorDescriptionDefaultPaymentTTLValidationService(PaymentManagementService<Payment> paymentManagementService, PaymentTransactionServiceProperties paymentTransactionServiceProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected PaymentManagementService<Payment>protected PaymentTransactionServicePropertiesvoidvalidatePaymentTTL(@NonNull Payment payment, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Validates the payment's time-to-live.
-
Constructor Details
-
DefaultPaymentTTLValidationService
public DefaultPaymentTTLValidationService(PaymentManagementService<Payment> paymentManagementService, PaymentTransactionServiceProperties paymentTransactionServiceProperties)
-
-
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:PaymentTTLValidationServiceValidates the payment's time-to-live.- Specified by:
validatePaymentTTLin interfacePaymentTTLValidationService- Parameters:
payment- the payment to validatelockToken- Token granted to resource that owns the payment lock.context- Context information related to multitenancy.
-
getPaymentManagementService
-
getPaymentTransactionServiceProperties
-