Class Suppression
- Namespace
- Mailtrap.Suppressions.Models
- Assembly
- Mailtrap.Abstractions.dll
Represents suppression details.
public sealed record Suppression : IEquatable<Suppression>
- Inheritance
-
Suppression
- Implements
Properties
CreatedAt
Gets or sets suppression creation date and time.
[JsonPropertyName("created_at")]
[JsonPropertyOrder(3)]
public DateTimeOffset? CreatedAt { get; set; }
Property Value
- DateTimeOffset?
Suppression creation date and time.
DomainName
Gets or sets domain name associated with the suppression.
[JsonPropertyName("domain_name")]
[JsonPropertyOrder(6)]
public string? DomainName { get; set; }
Property Value
Gets or sets suppressed email address.
[JsonPropertyName("email")]
[JsonPropertyOrder(4)]
public string Email { get; set; }
Property Value
- string
Suppressed email address.
Id
Gets or sets suppression identifier.
[JsonPropertyName("id")]
[JsonPropertyOrder(1)]
[JsonRequired]
public string Id { get; set; }
Property Value
- string
Suppression identifier.
MessageBounceCategory
Gets or sets message bounce category.
[JsonPropertyName("message_bounce_category")]
[JsonPropertyOrder(7)]
public string? MessageBounceCategory { get; set; }
Property Value
MessageCategory
Gets or sets message category.
[JsonPropertyName("message_category")]
[JsonPropertyOrder(8)]
public string? MessageCategory { get; set; }
Property Value
MessageClientIp
Gets or sets message client IP.
[JsonPropertyName("message_client_ip")]
[JsonPropertyOrder(9)]
public string? MessageClientIp { get; set; }
Property Value
MessageCreatedAt
Gets or sets message creation date and time.
[JsonPropertyName("message_created_at")]
[JsonPropertyOrder(10)]
public DateTimeOffset? MessageCreatedAt { get; set; }
Property Value
- DateTimeOffset?
Message creation date and time, or null if not available.
MessageEspResponse
Gets or sets ESP response.
[JsonPropertyName("message_esp_response")]
[JsonPropertyOrder(11)]
public string? MessageEspResponse { get; set; }
Property Value
MessageEspServerType
Gets or sets ESP server type.
[JsonPropertyName("message_esp_server_type")]
[JsonPropertyOrder(12)]
public string? MessageEspServerType { get; set; }
Property Value
MessageOutgoingIp
Gets or sets outgoing IP used for the message.
[JsonPropertyName("message_outgoing_ip")]
[JsonPropertyOrder(13)]
public string? MessageOutgoingIp { get; set; }
Property Value
MessageRecipientMxName
Gets or sets recipient MX server name.
[JsonPropertyName("message_recipient_mx_name")]
[JsonPropertyOrder(14)]
public string? MessageRecipientMxName { get; set; }
Property Value
MessageSenderEmail
Gets or sets sender email address.
[JsonPropertyName("message_sender_email")]
[JsonPropertyOrder(15)]
public string? MessageSenderEmail { get; set; }
Property Value
MessageSubject
Gets or sets message subject.
[JsonPropertyName("message_subject")]
[JsonPropertyOrder(16)]
public string? MessageSubject { get; set; }
Property Value
SendingStream
Gets or sets sending stream.
[JsonPropertyName("sending_stream")]
[JsonPropertyOrder(5)]
public SuppressionSendingStream SendingStream { get; set; }
Property Value
- SuppressionSendingStream
Sending stream. Allowed values: "any", "transactional", "bulk".
Type
Gets or sets suppression type.
[JsonPropertyName("type")]
[JsonPropertyOrder(2)]
public SuppressionType Type { get; set; }
Property Value
- SuppressionType
Suppression type. Allowed values: "hard bounce", "spam complaint", "unsubscription", "manual import".