1
0
mirror of synced 2024-11-25 06:26:03 +03:00

add template quality field

Added template quality field
This commit is contained in:
Pavel 2024-02-14 11:13:56 +03:00 committed by GitHub
commit a97e52a98b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

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

View File

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