add template quality field
Added template quality field
This commit is contained in:
commit
a97e52a98b
@ -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"`
|
||||||
|
10
v1/types.go
10
v1/types.go
@ -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 (
|
||||||
|
Loading…
Reference in New Issue
Block a user