From 43e111621480d378fe980d4c3c2d216af1d7ea82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=BB=D0=B0?= Date: Wed, 18 Oct 2023 09:43:51 +0300 Subject: [PATCH] update ActivateTemplateRequest --- v1/client_test.go | 2 ++ v1/types.go | 14 ++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/v1/client_test.go b/v1/client_test.go index 4ef9f79..d30cb9c 100644 --- a/v1/client_test.go +++ b/v1/client_test.go @@ -367,6 +367,8 @@ func (t *MGClientTest) Test_ActivateTemplate() { Text: "!", }, }, + RejectionReason: "", + VerificationStatus: "approved", } defer gock.Off() diff --git a/v1/types.go b/v1/types.go index 778e93d..567bd77 100644 --- a/v1/types.go +++ b/v1/types.go @@ -558,12 +558,14 @@ type TransportRequestMeta struct { } type ActivateTemplateRequest struct { - Code string `binding:"required,min=1,max=512" json:"code"` - Name string `binding:"required,min=1,max=512" json:"name"` - Type string `binding:"required" json:"type"` - Template []TemplateItem `json:"template"` - Lang string `json:"lang,omitempty"` - Category string `json:"category,omitempty"` + Code string `binding:"required,min=1,max=512" json:"code"` + Name string `binding:"required,min=1,max=512" json:"name"` + Type string `binding:"required" json:"type"` + Template []TemplateItem `json:"template"` + Lang string `json:"lang,omitempty"` + Category string `json:"category,omitempty"` + RejectionReason string `json:"rejection_reason,omitempty"` + VerificationStatus string `json:"verification_status,omitempty"` } var ErrInvalidOriginator = errors.New("invalid originator")