From 86b792b86b31a82ff2070fb54fe33209bdb372c2 Mon Sep 17 00:00:00 2001 From: Alexander Kulinich Date: Wed, 29 Apr 2020 18:32:48 +0300 Subject: [PATCH] added field MessageDataProduct.Unit and MessageDataProduct.Quantity mark deprecated --- v1/types.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/v1/types.go b/v1/types.go index dc2ae8e..2243664 100644 --- a/v1/types.go +++ b/v1/types.go @@ -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"` }