1
0
mirror of synced 2024-11-22 04:56:06 +03:00

add rejected_reason and verification_status fields for template

This commit is contained in:
Суханов Данила 2023-10-16 15:35:02 +03:00
parent bb843a6361
commit 35957ff156
2 changed files with 16 additions and 12 deletions

View File

@ -48,6 +48,8 @@ type Template struct {
ButtonParams []ButtonParam `json:"buttonParams,omitempty"`
Lang string `json:"lang,omitempty"`
Category string `json:"category,omitempty"`
RejectedReason string `json:"rejected_reason,omitempty"`
VerificationStatus string `json:"verification_status,omitempty"`
}
// TemplateItem is a part of template.

View File

@ -89,7 +89,9 @@ func TestUnmarshalMediaInteractiveTemplate(t *testing.T) {
"type": "QUICK_REPLY",
"text": "Yes"
}
]
],
"rejected_reason": "NONE",
"status": "APPROVED"
}`
assert.NoError(t, json.Unmarshal([]byte(input), &template))