Skip to content

Commit c40744c

Browse files
feat(tem): add support for MessageID (#1467)
Co-authored-by: Rémy Léone <[email protected]>
1 parent ce01279 commit c40744c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/tem/v1alpha1/tem_sdk.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ type ListEmailsRequest struct {
458458
ProjectID *string `json:"-"`
459459
// DomainID: optional ID of the domain for which to list the emails
460460
DomainID *string `json:"-"`
461+
// MessageID: optional ID of the message for which to list the emails
462+
MessageID *string `json:"-"`
461463
// Since: optional, list emails created after this date
462464
Since *time.Time `json:"-"`
463465
// Until: optional, list emails created before this date
@@ -489,6 +491,7 @@ func (s *API) ListEmails(req *ListEmailsRequest, opts ...scw.RequestOption) (*Li
489491
parameter.AddToQuery(query, "page_size", req.PageSize)
490492
parameter.AddToQuery(query, "project_id", req.ProjectID)
491493
parameter.AddToQuery(query, "domain_id", req.DomainID)
494+
parameter.AddToQuery(query, "message_id", req.MessageID)
492495
parameter.AddToQuery(query, "since", req.Since)
493496
parameter.AddToQuery(query, "until", req.Until)
494497
parameter.AddToQuery(query, "mail_from", req.MailFrom)

0 commit comments

Comments
 (0)