Package ai.promoted.delivery.client
Interface DeliveryRequestValidator
-
- All Known Implementing Classes:
DefaultDeliveryRequestValidator
public interface DeliveryRequestValidatorPerforms validation on delivery requests during a deliver call when performChecks is true in the client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>validate(DeliveryRequest request)Checks the state of this delivery requests and collects/returns any validation errors.
-
-
-
Method Detail
-
validate
List<String> validate(DeliveryRequest request)
Checks the state of this delivery requests and collects/returns any validation errors.- Parameters:
request- the delivery request to validate- Returns:
- a list of validation errors, which may be empty.
-
-