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
ConstructorDescriptionDefaultPaymentTTLValidationService
(PaymentManagementService<Payment> paymentManagementService, PaymentTransactionServiceProperties paymentTransactionServiceProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected PaymentManagementService<Payment>
protected PaymentTransactionServiceProperties
protected boolean
isCustomerMutabilityBlocked
(@NonNull Payment payment) protected boolean
isCustomerMutabilityBlockedForPaymentFinalization
(@NonNull Payment payment) protected boolean
void
validatePaymentTTL
(@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:PaymentTTLValidationService
Validates the payment's time-to-live.- Specified by:
validatePaymentTTL
in interfacePaymentTTLValidationService
- Parameters:
payment
- the payment to validatelockToken
- Token granted to resource that owns the payment lock.context
- Context information related to multitenancy.
-
isExpired
-
isCustomerMutabilityBlocked
-
isCustomerMutabilityBlockedForPaymentFinalization
protected boolean isCustomerMutabilityBlockedForPaymentFinalization(@NonNull @NonNull Payment payment) -
getPaymentManagementService
-
getPaymentTransactionServiceProperties
-