From f80f35f5d5587e5c5f1da4c324934059e17d567b Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Sun, 26 Feb 2023 01:31:28 -0500 Subject: [PATCH] changed dimension types in SnipcartItem struct --- snipcart/snipcart.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snipcart/snipcart.go b/snipcart/snipcart.go index a7b6027..1cd3435 100644 --- a/snipcart/snipcart.go +++ b/snipcart/snipcart.go @@ -30,12 +30,12 @@ type SnipcartItem struct { UUID string `json:"uniqueId"` ID string `json:"id"` Name string `json:"name"` - Quantity float64 `json:"quantity"` + Quantity int `json:"quantity"` TotalWeight float64 `json:"totalWeight,omitempty"` CustomFieldsJSON string `json:"customFieldsJson"` - Length string `json:"length,omitempty"` - Width string `json:"width,omitempty"` - Height string `json:"height,omitempty"` + Length float64 `json:"length,omitempty"` + Width float64 `json:"width,omitempty"` + Height float64 `json:"height,omitempty"` Weight float64 `json:"weight,omitempty"` Shippable bool `json:"shippable,omitempty"` }