From dc9f9acba2d9a8f595d9f2170e1d247c5c9bc9c6 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Thu, 13 Sep 2018 22:33:43 +0300 Subject: [PATCH] structured quantity & cost --- v1/types.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v1/types.go b/v1/types.go index 8bcd12e..97fec24 100644 --- a/v1/types.go +++ b/v1/types.go @@ -380,10 +380,10 @@ type ( } MessageOrderItem struct { - Name string `json:"name,omitempty"` - Url string `json:"url,omitempty"` - Quantity string `json:"quantity,omitempty"` - Price string `json:"price,omitempty"` + Name string `json:"name,omitempty"` + Url string `json:"url,omitempty"` + Quantity *MessageOrderQuantity `json:"quantity,omitempty"` + Price *MessageOrderCost `json:"price,omitempty"` } MessageOrderCost struct {