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