Skip to content

Commit

Permalink
Merge pull request #311 from jehiah/delivery_status_mx_host_311
Browse files Browse the repository at this point in the history
events.DeliveryStatus: expose mx-host and additional fields
  • Loading branch information
thrawn01 authored Aug 8, 2023
2 parents 782a41e + 90ec5e7 commit b3130dc
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,omitempty"`
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 b3130dc

Please sign in to comment.