diff --git a/v1/client_test.go b/v1/client_test.go index df3080a..42b0caa 100644 --- a/v1/client_test.go +++ b/v1/client_test.go @@ -271,7 +271,7 @@ func TestMgClient_MessageSendOrder(t *testing.T) { Delivery: &MessageOrderDelivery{ Name: "Курьерская доставка", Address: "г. Москва, Проспект Мира, 9", - Amount: &MessageOrderCost{ + Price: &MessageOrderCost{ Value: 1100, Currency: MsgCurrencyRub, }, @@ -279,6 +279,8 @@ func TestMgClient_MessageSendOrder(t *testing.T) { Items: []MessageOrderItem{ { Name: "iPhone 6", + Url: "https://example.com/product.html", + Img: "https://example.com/picture.png", Price: &MessageOrderCost{ Value: 29900, Currency: MsgCurrencyRub, diff --git a/v1/types.go b/v1/types.go index 6279637..c795922 100644 --- a/v1/types.go +++ b/v1/types.go @@ -398,6 +398,7 @@ type ( MessageOrderItem struct { Name string `json:"name,omitempty"` Url string `json:"url,omitempty"` + Img string `json:"img,omitempty"` Quantity *MessageOrderQuantity `json:"quantity,omitempty"` Price *MessageOrderCost `json:"price,omitempty"` } @@ -425,8 +426,9 @@ type ( MessageOrderDelivery struct { Name string `json:"name"` - Amount *MessageOrderCost `json:"amount"` + Price *MessageOrderCost `json:"price"` Address string `json:"address"` + Comment string `json:"comment,omitempty"` } UserRef struct {