1
0
mirror of synced 2024-11-22 04:56:06 +03:00

added field MessageDataProduct.Unit and MessageDataProduct.Quantity mark deprecated

This commit is contained in:
Alexander Kulinich 2020-04-29 18:32:48 +03:00
parent 43886089ef
commit 86b792b86b

View File

@ -340,12 +340,14 @@ type MessageDataBot struct {
// MessageDataProduct product data from webhook
type MessageDataProduct struct {
ID uint64 `json:"id"`
Name string `json:"name"`
Article string `json:"article,omitempty"`
Url string `json:"url,omitempty"`
Img string `json:"img,omitempty"`
Cost *MessageDataOrderCost `json:"cost,omitempty"`
ID uint64 `json:"id"`
Name string `json:"name"`
Article string `json:"article,omitempty"`
Url string `json:"url,omitempty"`
Img string `json:"img,omitempty"`
Cost *MessageDataOrderCost `json:"cost,omitempty"`
Unit string `json:"unit,omitempty"`
// Deprecated: now you need to use Unit instead of this field
Quantity *MessageDataOrderQuantity `json:"quantity,omitempty"`
}