Compare commits

..

2 Commits

Author SHA1 Message Date
Bastian de Byl
13bef02dcb changed weight strinbg to float64 2023-02-26 01:30:13 -05:00
Bastian de Byl
e6ffe724af added more fields to SnipcartItem struct 2023-02-26 01:28:02 -05:00

View File

@@ -31,9 +31,13 @@ type SnipcartItem struct {
ID string `json:"id"` ID string `json:"id"`
Name string `json:"name"` Name string `json:"name"`
Quantity float64 `json:"quantity"` Quantity float64 `json:"quantity"`
Weight string `json:"weight"` TotalWeight float64 `json:"totalWeight,omitempty"`
TotalWeight float64 `json:"totalWeight"`
CustomFieldsJSON string `json:"customFieldsJson"` CustomFieldsJSON string `json:"customFieldsJson"`
Length string `json:"length,omitempty"`
Width string `json:"width,omitempty"`
Height string `json:"height,omitempty"`
Weight float64 `json:"weight,omitempty"`
Shippable bool `json:"shippable,omitempty"`
} }
type SnipcartOrder struct { type SnipcartOrder struct {