Skip to content

Commit

Permalink
feat: Add from_email to postback struct for sending tx postbacks (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
joeirimpan committed Dec 11, 2023
1 parent e869f7b commit be62c50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/messenger/postback/postback.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
//easyjson:json
type postback struct {
Subject string `json:"subject"`
FromEmail string `json:"from_email"`
ContentType string `json:"content_type"`
Body string `json:"body"`
Recipients []recipient `json:"recipients"`
Expand Down Expand Up @@ -96,6 +97,7 @@ func (p *Postback) Name() string {
func (p *Postback) Push(m models.Message) error {
pb := postback{
Subject: m.Subject,
FromEmail: m.From,
ContentType: m.ContentType,
Body: string(m.Body),
Recipients: []recipient{{
Expand Down
7 changes: 7 additions & 0 deletions internal/messenger/postback/postback_easyjson.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit be62c50

Please sign in to comment.