MessageDataProduct.Unit
* Add MessageDataProduct.Unit field * MessageDataProduct.Quantity marked as deprecated
This commit is contained in:
commit
e144eba7c0
14
v1/types.go
14
v1/types.go
@ -340,12 +340,14 @@ type MessageDataBot struct {
|
|||||||
|
|
||||||
// MessageDataProduct product data from webhook
|
// MessageDataProduct product data from webhook
|
||||||
type MessageDataProduct struct {
|
type MessageDataProduct struct {
|
||||||
ID uint64 `json:"id"`
|
ID uint64 `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Article string `json:"article,omitempty"`
|
Article string `json:"article,omitempty"`
|
||||||
Url string `json:"url,omitempty"`
|
Url string `json:"url,omitempty"`
|
||||||
Img string `json:"img,omitempty"`
|
Img string `json:"img,omitempty"`
|
||||||
Cost *MessageDataOrderCost `json:"cost,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"`
|
Quantity *MessageDataOrderQuantity `json:"quantity,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user