added more fields to SnipcartItem struct
This commit is contained in:
@@ -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 string `json:"weight,omitempty"`
|
||||||
|
Shippable bool `json:"shippable,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SnipcartOrder struct {
|
type SnipcartOrder struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user