diff --git a/core/client_option.go b/core/client_option.go index 9259972..b3ab443 100644 --- a/core/client_option.go +++ b/core/client_option.go @@ -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 } diff --git a/messages.go b/messages.go index 03ae4eb..d43b8f1 100644 --- a/messages.go +++ b/messages.go @@ -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. diff --git a/messages/client.go b/messages/client.go index 0c1e540..9571d7f 100644 --- a/messages/client.go +++ b/messages/client.go @@ -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))