From 97782a046a424db660bef6ff077db74f5248175e Mon Sep 17 00:00:00 2001 From: Jehiah Czebotar Date: Mon, 31 Jul 2023 16:01:03 -0400 Subject: [PATCH] events.DeliveryStatus: expose mx-host and additional fields --- events/objects.go | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/events/objects.go b/events/objects.go index cf46ffa9..5311bd26 100644 --- a/events/objects.go +++ b/events/objects.go @@ -71,9 +71,15 @@ type Campaign struct { } type DeliveryStatus struct { - Code int `json:"code"` - AttemptNo int `json:"attempt-no"` - Description string `json:"description"` - Message string `json:"message"` - SessionSeconds float64 `json:"session-seconds"` + Code int `json:"code"` + AttemptNo int `json:"attempt-no"` + Description string `json:"description,ommitempty"` + Message string `json:"message"` + SessionSeconds float64 `json:"session-seconds"` + EnhancedCode string `json:"enhanced-code,omitempty"` + MxHost string `json:"mx-host,omitempty"` + RetrySeconds int `json:"retry-seconds,omitempty"` + CertificateVerified *bool `json:"certificate-verified,omitempty"` + TLS *bool `json:"tls,omitempty"` + Utf8 *bool `json:"utf8,omitempty"` }