Skip to content

Commit

Permalink
events.DeliveryStatus: expose mx-host and additional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jehiah committed Jul 31, 2023
1 parent 782a41e commit 97782a0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions events/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

0 comments on commit 97782a0

Please sign in to comment.