1
0
mirror of synced 2024-11-24 05:56:04 +03:00

Added template quality field

This commit is contained in:
Vlasov 2024-02-13 15:42:45 +03:00
parent 70a0132f22
commit 16c84c5ddf
2 changed files with 11 additions and 0 deletions

View File

@ -47,6 +47,7 @@ type Template struct {
Category string `json:"category,omitempty"`
Example *TemplateExample `json:"example,omitempty"`
VerificationStatus TemplateVerificationStatus `json:"verification_status"`
Quality *TemplateQuality `json:"quality,omitempty"`
RejectionReason TemplateRejectionReason `json:"rejection_reason,omitempty"`
Header *TemplateHeader `json:"header,omitempty"`
Footer string `json:"footer,omitempty"`

View File

@ -595,6 +595,7 @@ type UpdateTemplateRequest struct {
Category string `json:"category,omitempty"`
Example *TemplateExample `json:"example,omitempty"`
VerificationStatus TemplateVerificationStatus `json:"verification_status"`
Quality *TemplateQuality `json:"quality,omitempty"`
RejectionReason TemplateRejectionReason `json:"rejection_reason,omitempty"`
Header *TemplateHeader `json:"header,omitempty"`
Footer string `json:"footer,omitempty"`
@ -734,6 +735,15 @@ const (
TemplateStatusNew TemplateVerificationStatus = "new"
)
type TemplateQuality string
const (
TemplateQualityPending TemplateQuality = "pending"
TemplateQualityHigh TemplateQuality = "high"
TemplateQualityMedium TemplateQuality = "medium"
TemplateQualityLow TemplateQuality = "low"
)
type TemplateRejectionReason string
const (