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

update ActivateTemplateRequest

This commit is contained in:
Суханов Данила 2023-10-18 09:43:51 +03:00
parent 724b009a56
commit 43e1116214
2 changed files with 10 additions and 6 deletions

View File

@ -367,6 +367,8 @@ func (t *MGClientTest) Test_ActivateTemplate() {
Text: "!",
},
},
RejectionReason: "",
VerificationStatus: "approved",
}
defer gock.Off()

View File

@ -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")