update ActivateTemplateRequest
This commit is contained in:
parent
724b009a56
commit
43e1116214
@ -367,6 +367,8 @@ func (t *MGClientTest) Test_ActivateTemplate() {
|
|||||||
Text: "!",
|
Text: "!",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
RejectionReason: "",
|
||||||
|
VerificationStatus: "approved",
|
||||||
}
|
}
|
||||||
|
|
||||||
defer gock.Off()
|
defer gock.Off()
|
||||||
|
14
v1/types.go
14
v1/types.go
@ -558,12 +558,14 @@ type TransportRequestMeta struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ActivateTemplateRequest struct {
|
type ActivateTemplateRequest struct {
|
||||||
Code string `binding:"required,min=1,max=512" json:"code"`
|
Code string `binding:"required,min=1,max=512" json:"code"`
|
||||||
Name string `binding:"required,min=1,max=512" json:"name"`
|
Name string `binding:"required,min=1,max=512" json:"name"`
|
||||||
Type string `binding:"required" json:"type"`
|
Type string `binding:"required" json:"type"`
|
||||||
Template []TemplateItem `json:"template"`
|
Template []TemplateItem `json:"template"`
|
||||||
Lang string `json:"lang,omitempty"`
|
Lang string `json:"lang,omitempty"`
|
||||||
Category string `json:"category,omitempty"`
|
Category string `json:"category,omitempty"`
|
||||||
|
RejectionReason string `json:"rejection_reason,omitempty"`
|
||||||
|
VerificationStatus string `json:"verification_status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var ErrInvalidOriginator = errors.New("invalid originator")
|
var ErrInvalidOriginator = errors.New("invalid originator")
|
||||||
|
Loading…
Reference in New Issue
Block a user