Table of Contents

Namespace Mailtrap.EmailCampaigns.Validators

Classes

CreateEmailCampaignRequestValidator

Validator for CreateEmailCampaignRequest.
Ensures the campaign name, sending domain identifier, From local part and template subject are provided.

ScheduleEmailCampaignRequestValidator

Validator for ScheduleEmailCampaignRequest.
Ensures the scheduled time is in the future and no more than 1 month ahead, mirroring the API's own constraints.

UpdateEmailCampaignRequestValidator

Validator for UpdateEmailCampaignRequest.
All fields are optional; ensures a provided sending domain identifier is positive.