added tracking response

This commit is contained in:
Bastian de Byl
2023-02-25 16:40:03 -05:00
parent ee3e1cffa1
commit 3627712c9b

View File

@@ -36,20 +36,22 @@ type SnipcartItem struct {
} }
type SnipcartOrder struct { type SnipcartOrder struct {
Token string `json:"token"` Token string `json:"token"`
Invoice string `json:"invoiceNumber"` Invoice string `json:"invoiceNumber"`
Status string `json:"status"` Status string `json:"status"`
TotalWeight float64 `json:"totalWeight"` TotalWeight float64 `json:"totalWeight"`
Email string `json:"email"` Email string `json:"email"`
Name string `json:"shippingAddressName"` Name string `json:"shippingAddressName"`
Address1 string `json:"shippingAddressAddress1"` Address1 string `json:"shippingAddressAddress1"`
Address2 string `json:"shippingAddressAddress2"` Address2 string `json:"shippingAddressAddress2"`
City string `json:"shippingAddressCity"` City string `json:"shippingAddressCity"`
Province string `json:"shippingAddressProvince"` Province string `json:"shippingAddressProvince"`
Country string `json:"shippingAddressCountry"` Country string `json:"shippingAddressCountry"`
PostalCode string `json:"shippingAddressPostalCode"` PostalCode string `json:"shippingAddressPostalCode"`
Phone string `json:"shippingAddressPhone"` Phone string `json:"shippingAddressPhone"`
Items []SnipcartItem `json:"items"` TrackingNumber string `json:"trackingNumber"`
TrackingUrl string `json:"trackingUrl"`
Items []SnipcartItem `json:"items"`
} }
type SnipcartOrders struct { type SnipcartOrders struct {