From e3dcd6b3840312a4601f979cd7e5a870e4998bc7 Mon Sep 17 00:00:00 2001 From: Joey Orlando Date: Tue, 24 Sep 2024 10:07:50 -0400 Subject: [PATCH] feat: add `mobile_app` templates for integration resource --- integration.go | 1 + integration_test.go | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/integration.go b/integration.go index 8f272cb..6963ca2 100644 --- a/integration.go +++ b/integration.go @@ -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 { diff --git a/integration_test.go b/integration_test.go index f3a4fd2..92b16d4 100644 --- a/integration_test.go +++ b/integration_test.go @@ -55,6 +55,10 @@ var testIntegration = &Integration{ nil, nil, }, + &TitleMessageTemplate{ // Mobile app + nil, + nil, + }, }, } @@ -102,7 +106,11 @@ var testIntegrationBody = `{ "title":null, "message":null, "image_url":null - } + }, + "mobile_app":{ + "title":null, + "message":null + }, } }`