Skip to content

Commit

Permalink
feat(tem): add field to accept new headers in create email endpoint (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot committed Jan 5, 2024
1 parent ab21447 commit df6cb2a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api/tem/v1alpha1/tem_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,15 @@ type CreateEmailRequestAttachment struct {
Content []byte `json:"content"`
}

// CreateEmailRequestHeader: create email request header.
type CreateEmailRequestHeader struct {
// Key: email header key.
Key string `json:"key"`

// Value: email header value.
Value string `json:"value"`
}

// Email: email.
type Email struct {
// ID: technical ID of the email.
Expand Down Expand Up @@ -585,6 +594,9 @@ type CreateEmailRequest struct {

// SendBefore: maximum date to deliver the email.
SendBefore *time.Time `json:"send_before,omitempty"`

// AdditionalHeaders: array of additional headers as key-value.
AdditionalHeaders []*CreateEmailRequestHeader `json:"additional_headers"`
}

// CreateEmailResponse: create email response.
Expand Down

0 comments on commit df6cb2a

Please sign in to comment.