From 73195a090f42fc6cb403da8f77987ee2a0d8dd45 Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Tue, 6 Jun 2023 19:54:21 -0400 Subject: [PATCH] added ShippingError and ShippingErrors struct --- snipcart/webhook.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/snipcart/webhook.go b/snipcart/webhook.go index 7203733..18d5ce6 100644 --- a/snipcart/webhook.go +++ b/snipcart/webhook.go @@ -6,6 +6,15 @@ import ( "net/http" ) +type ShippingError struct { + Key string `json:"key"` + Message string `json:"message"` +} + +type ShippingErrors struct { + Errors []ShippingError `json:"errors"` +} + type TaxShippingInfo struct { Fees float64 `json:"fees"` Method string `json:"method"`