aboutsummaryrefslogtreecommitdiff
path: root/Emails.Transactional.Client/TransactionResult.cs
blob: 5c97b3d7e33e3eaf686543ccddac64fd5846d025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Emails.Transactional.Client
{
    /// <summary>
    /// A JSON serializable object that contains the results of the transaction
    /// </summary>
    public class TransactionResult
    {
        [JsonPropertyName("transaction_id")]
        public string TransactionId { get; set; }
        [JsonPropertyName("smtp_status")]
        public string SmtpStatus { get; set; }
        [JsonPropertyName("success")]
        public bool Success { get; set; }

        [JsonPropertyName("error_code")]
        public string ErrorCode { get; set; }

        [JsonPropertyName("error_description")]
        public string ErrorDescription { get; set; }

        [JsonPropertyName("errors")]
        public ICollection<ValidationErrorMessage> ValidationErrors { get; set; }
    }
}