Skip to content

fix(ressources): update Message struct #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 20 additions & 19 deletions resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,28 +624,29 @@ type Message struct {
ArrivedAt *RFC3339DateTime `json:",omitempty"`
AttachmentCount int `json:",omitempty"`
AttemptCount int `json:",omitempty"`
CampaignID int64 `json:",omitempty"`
CampaignALT string `json:",omitempty"`
ContactID int64 `json:",omitempty"`
CampaignID int64 `json:",omitempty"`
ContactALT string `json:",omitempty"`
ContactID int64 `json:",omitempty"`
CustomID string `json:",omitempty"`
Delay float64 `json:",omitempty"`
Destination Destination
FilterTime int `json:",omitempty"`
FromID int64 `json:",omitempty"`
FromALT string `json:",omitempty"`
ID int64 `mailjet:"read_only"`
IsClickTracked bool `json:",omitempty"`
IsHTMLPartIncluded bool `json:",omitempty"`
IsOpenTracked bool `json:",omitempty"`
IsTextPartIncluded bool `json:",omitempty"`
IsUnsubTracked bool `json:",omitempty"`
MessageSize int64 `json:",omitempty"`
SpamassassinScore float64 `json:",omitempty"`
SpamassRules string `json:",omitempty"`
Subject string `json:",omitempty"`
StateID int64 `json:",omitempty"`
StatePermanent bool `json:",omitempty"`
Status string `json:",omitempty"`
DestinationID int64 `json:",omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DestinationID int64 `json:",omitempty"`
Destination int64 `json:",omitempty"`

https://dev.mailjet.com/email/reference/messages/#v3_get_message_message_ID

FilterTime int `json:",omitempty"`
ID int64 `mailjet:"read_only"`
IsClickTracked bool `json:",omitempty"`
IsHTMLPartIncluded bool `json:",omitempty"`
IsOpenTracked bool `json:",omitempty"`
IsTextPartIncluded bool `json:",omitempty"`
IsUnsubTracked bool `json:",omitempty"`
MessageSize int64 `json:",omitempty"`
SenderID int64 `json:",omitempty"`
SpamassassinScore float64 `json:",omitempty"`
SpamassRules string `json:",omitempty"`
StateID int `json:",omitempty"`
StatePermanent bool `json:",omitempty"`
Status string `json:",omitempty"`
Subject string `json:",omitempty"`
UUID string `json:",omitempty"`
}

// Messagehistory: Event history of a message.
Expand Down
Loading