From 2e64d106aae07b0ea092fd84d930312f43b1c6bb Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Thu, 22 Dec 2022 20:59:47 +0100 Subject: [PATCH] basket update --- http/basket.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/basket.go b/http/basket.go index 32741c1..3d1e268 100644 --- a/http/basket.go +++ b/http/basket.go @@ -10,7 +10,7 @@ type GetBasketResponse struct { ID string `json:"id"` State string `json:"state"` CreatedAt time.Duration `json:"created_at"` - UpdatedAt time.Duration `json:"updated_at"` + UpdatedAt time.Duration `json:"updated_at,omitempty"` } type GetBasketItemsRequest struct { @@ -23,7 +23,7 @@ type GetBasketItemsResponse struct { Quantity int `json:"quantity"` Price float64 `json:"price"` CreatedAt time.Duration `json:"created_at"` - UpdatedAt time.Duration `json:"updated_at"` + UpdatedAt time.Duration `json:"updated_at,omitempty"` } type BasketCheckoutRequest struct {