1
0
mirror of synced 2024-11-25 14:36:03 +03:00

update struct for templates

This commit is contained in:
Akolzin Dmitry 2020-06-11 14:00:09 +03:00
parent 4206ad2695
commit b821553586

View File

@ -314,8 +314,12 @@ type WebhookData struct {
Product *MessageDataProduct `json:"product,omitempty"` Product *MessageDataProduct `json:"product,omitempty"`
Order *MessageDataOrder `json:"order,omitempty"` Order *MessageDataOrder `json:"order,omitempty"`
Items *[]FileItem `json:"items,omitempty"` Items *[]FileItem `json:"items,omitempty"`
TemplateCode string `json:"template_code,omitempty"` Template *TemplateInfo `json:"template,omitempty"`
TemplateArgs []string `json:"template_args,omitempty"` }
type TemplateInfo struct {
Code string `json:"code,omitempty"`
Args []string `json:"args,omitempty"`
} }
// FileItem struct // FileItem struct