Package ai.promoted.delivery.client
Interface DeliveryRequestValidator
- All Known Implementing Classes:
DefaultDeliveryRequestValidator
public interface DeliveryRequestValidator
Performs validation on delivery requests during a deliver call when performChecks is true in the client.
-
Method Summary
Modifier and TypeMethodDescriptionvalidate(DeliveryRequest request, boolean isShadowTraffic) Checks the state of this delivery requests and collects/returns any validation errors.
-
Method Details
-
validate
Checks the state of this delivery requests and collects/returns any validation errors.- Parameters:
request- the delivery request to validateisShadowTraffic- whether or not we're in shadow traffic mode, which changes some validation logic- Returns:
- a list of validation errors, which may be empty.
-