Compare commits

..

4 Commits

Author SHA1 Message Date
Bastian de Byl
f80f35f5d5 changed dimension types in SnipcartItem struct 2023-02-26 01:31:28 -05:00
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
Bastian de Byl
8fee81d8a4 added ShippingCost to SnipcartOrder 2023-02-26 00:07:03 -05:00

View File

@@ -30,10 +30,14 @@ type SnipcartItem struct {
UUID string `json:"uniqueId"`
ID string `json:"id"`
Name string `json:"name"`
Quantity float64 `json:"quantity"`
Weight string `json:"weight"`
TotalWeight float64 `json:"totalWeight"`
Quantity int `json:"quantity"`
TotalWeight float64 `json:"totalWeight,omitempty"`
CustomFieldsJSON string `json:"customFieldsJson"`
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"`
}
type SnipcartOrder struct {
@@ -52,6 +56,7 @@ type SnipcartOrder struct {
Phone string `json:"shippingAddressPhone"`
TrackingNumber string `json:"trackingNumber"`
TrackingUrl string `json:"trackingUrl"`
ShippingCost string `json:"shippingFees"`
Items []SnipcartItem `json:"items"`
}