basket update

This commit is contained in:
Piotr Biernat 2022-12-22 20:59:47 +01:00
parent cb2e0ac34e
commit 2e64d106aa

View File

@ -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 {