Skip to content
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

🌿 Fern Regeneration -- February 13, 2024 #72

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion core/client_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ func (c *ClientOptions) cloneHeader() http.Header {
headers := c.HTTPHeader.Clone()
headers.Set("X-Fern-Language", "Go")
headers.Set("X-Fern-SDK-Name", "github.com/trycourier/courier-go/v3")
headers.Set("X-Fern-SDK-Version", "v3.0.4")
headers.Set("X-Fern-SDK-Version", "v3.0.5")
return headers
}
2 changes: 1 addition & 1 deletion messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type ListMessagesRequest struct {
// A unique identifier representing the recipient associated with the requested profile.
Recipient *string `json:"-"`
// An indicator of the current status of the message. Multiple status values can be passed in.
Status *string `json:"-"`
Status []*string `json:"-"`
// A comma delimited list of 'tags'. Messages will be returned if they match any of the tags passed in.
Tags *string `json:"-"`
// The enqueued datetime of a message to filter out messages received before.
Expand Down
4 changes: 2 additions & 2 deletions messages/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func (c *Client) List(ctx context.Context, request *v3.ListMessagesRequest) (*v3
if request.Recipient != nil {
queryParams.Add("recipient", fmt.Sprintf("%v", *request.Recipient))
}
if request.Status != nil {
queryParams.Add("status", fmt.Sprintf("%v", *request.Status))
for _, value := range request.Status {
queryParams.Add("status", fmt.Sprintf("%v", *value))
}
if request.Tags != nil {
queryParams.Add("tags", fmt.Sprintf("%v", *request.Tags))
Expand Down
Loading