mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2024-11-24 05:46:04 +03:00
update order & product structs
This commit is contained in:
parent
6ec32f4791
commit
5f509e4f2c
26
v1/types.go
26
v1/types.go
@ -347,20 +347,20 @@ type (
|
||||
}
|
||||
|
||||
MessageProduct 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 string `json:"cost,omitempty"`
|
||||
Quantity string `json:"quantity,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 *MessageOrderCost `json:"cost,omitempty"`
|
||||
Quantity *MessageOrderQuantity `json:"quantity,omitempty"`
|
||||
}
|
||||
|
||||
MessageOrder struct {
|
||||
Number string `json:"number"`
|
||||
Url string `json:"url,omitempty"`
|
||||
Date string `json:"date,omitempty"`
|
||||
Cost string `json:"cost,omitempty"`
|
||||
Cost *MessageOrderCost `json:"cost,omitempty"`
|
||||
Status *MessageOrderStatus `json:"status,omitempty"`
|
||||
Items []MessageOrderItem `json:"items,omitempty"`
|
||||
}
|
||||
@ -377,6 +377,16 @@ type (
|
||||
Price string `json:"price,omitempty"`
|
||||
}
|
||||
|
||||
MessageOrderCost struct {
|
||||
Value float32 `json:"value,omitempty"`
|
||||
Currency string `json:"currency"`
|
||||
}
|
||||
|
||||
MessageOrderQuantity struct {
|
||||
Value float32 `json:"value"`
|
||||
Unit string `json:"unit"`
|
||||
}
|
||||
|
||||
UserRef struct {
|
||||
ID uint64 `json:"id"`
|
||||
Avatar string `json:"avatar"`
|
||||
|
Loading…
Reference in New Issue
Block a user