From e6ffe724af9e9a7cee8ed009d4f83bafece3ae35 Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Sun, 26 Feb 2023 01:28:02 -0500 Subject: [PATCH] added more fields to SnipcartItem struct --- snipcart/snipcart.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/snipcart/snipcart.go b/snipcart/snipcart.go index c928b28..86e4f50 100644 --- a/snipcart/snipcart.go +++ b/snipcart/snipcart.go @@ -31,9 +31,13 @@ type SnipcartItem struct { ID string `json:"id"` Name string `json:"name"` Quantity float64 `json:"quantity"` - Weight string `json:"weight"` - TotalWeight float64 `json:"totalWeight"` + TotalWeight float64 `json:"totalWeight,omitempty"` CustomFieldsJSON string `json:"customFieldsJson"` + Length string `json:"length,omitempty"` + Width string `json:"width,omitempty"` + Height string `json:"height,omitempty"` + Weight string `json:"weight,omitempty"` + Shippable bool `json:"shippable,omitempty"` } type SnipcartOrder struct {