Skip to content

Commit

Permalink
feat: add mobile_app templates for integration resource (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyorlando authored Sep 24, 2024
1 parent 27e604b commit d1edb87
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ type Templates struct {
PhoneCall *TitleTemplate `json:"phone_call"`
SMS *TitleTemplate `json:"sms"`
Email *TitleMessageTemplate `json:"email"`
MobileApp *TitleMessageTemplate `json:"mobile_app"`
}

type TitleMessageImageTemplate struct {
Expand Down
10 changes: 9 additions & 1 deletion integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ var testIntegration = &Integration{
nil,
nil,
},
&TitleMessageTemplate{ // Mobile app
nil,
nil,
},
},
}

Expand Down Expand Up @@ -102,7 +106,11 @@ var testIntegrationBody = `{
"title":null,
"message":null,
"image_url":null
}
},
"mobile_app":{
"title":null,
"message":null
},
}
}`

Expand Down

0 comments on commit d1edb87

Please sign in to comment.