Interface TransactionExecutionRequestValidator
- All Known Implementing Classes:
DefaultTransactionExecutionRequestValidator
public interface TransactionExecutionRequestValidator
Validation component used to ensure that a
TransactionExecutionRequest
is acting within
the bounds of what's possible/available for the Payment
.- Author:
- Chris Kittrell (ckittrell)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(TransactionExecutionRequest request, Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Checks whether or not theTransactionExecutionRequest
is valid.
-
Method Details
-
validate
void validate(TransactionExecutionRequest request, Payment payment, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Checks whether or not theTransactionExecutionRequest
is valid.- Parameters:
request
- TheTransactionExecutionRequest
to be checked.payment
- The relatedPayment
that the request will act against.contextInfo
- Context information related to multitenancy.- Throws:
InvalidTransactionExecutionRequestException
- if theTransactionExecutionRequest
is invalid.
-