diff --git a/go/messageattempt.go b/go/messageattempt.go index 3bd469de5..fbe29f516 100644 --- a/go/messageattempt.go +++ b/go/messageattempt.go @@ -35,6 +35,7 @@ type MessageAttemptListOptions struct { Channel *string EndpointId *string WithContent *bool + Tag *string } // Deprecated: use `ListByMsg` or `ListByEndpoint` instead @@ -75,6 +76,9 @@ func (m *MessageAttempt) ListByMsg(ctx context.Context, appId string, msgId stri if options.WithContent != nil { req = req.WithContent(*options.WithContent) } + if options.Tag != nil { + req = req.Tag(*options.Tag) + } } out, res, err := req.Execute() if err != nil { @@ -114,6 +118,9 @@ func (m *MessageAttempt) ListByEndpoint(ctx context.Context, appId string, endpo if options.WithContent != nil { req = req.WithContent(*options.WithContent) } + if options.Tag != nil { + req = req.Tag(*options.Tag) + } } out, res, err := req.Execute() if err != nil { @@ -175,6 +182,9 @@ func (m *MessageAttempt) ListAttemptedMessages(ctx context.Context, appId string if options.EventTypes != nil { req = req.EventTypes(*options.EventTypes) } + if options.Tag != nil { + req = req.Tag(*options.Tag) + } } out, res, err := req.Execute() if err != nil { @@ -226,6 +236,9 @@ func (m *MessageAttempt) ListAttemptsForEndpoint(ctx context.Context, appId stri if options.Channel != nil { req = req.Channel(*options.Channel) } + if options.Tag != nil { + req = req.Tag(*options.Tag) + } } out, res, err := req.Execute() if err != nil {