Table of Contents

Class MarketingStatsFilter

Namespace
Mailtrap.Marketing.Models
Assembly
Mailtrap.Abstractions.dll

Represents a set of filtering parameters for the Email Marketing stats fetching.

public sealed record MarketingStatsFilter : IEquatable<MarketingStatsFilter>
Inheritance
MarketingStatsFilter
Implements

Properties

EmailServiceProviders

Gets email service providers to filter by.

public IList<string> EmailServiceProviders { get; }

Property Value

IList<string>

EndDate

Gets or sets the end date for the stats period (inclusive), in YYYY-MM-DD format.

public string EndDate { get; set; }

Property Value

string

Remarks

Required. Serialized to the end_date query parameter.

SendingDomainIds

Gets sending domain IDs to filter by.

public IList<long> SendingDomainIds { get; }

Property Value

IList<long>

Sources

Gets Email Marketing sources to filter by: campaigns and/or automations.

public IList<string> Sources { get; }

Property Value

IList<string>

Remarks

A single value narrows the stats to that source. None or both mean all Email Marketing traffic.

StartDate

Gets or sets the start date for the stats period (inclusive), in YYYY-MM-DD format.

public string StartDate { get; set; }

Property Value

string

Remarks

Required. Serialized to the start_date query parameter.