From db81f246bfceeba6344c12fddd3902f8af527498 Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Tue, 6 Jun 2023 19:12:01 -0400 Subject: [PATCH] corrected TaxContent time for epoch (unix time) int from time.Time --- snipcart/webhook.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/snipcart/webhook.go b/snipcart/webhook.go index b7becc0..7203733 100644 --- a/snipcart/webhook.go +++ b/snipcart/webhook.go @@ -4,7 +4,6 @@ import ( "encoding/base64" "fmt" "net/http" - "time" ) type TaxShippingInfo struct { @@ -13,8 +12,8 @@ type TaxShippingInfo struct { } type TaxContent struct { - Created time.Time `json:"creationDate"` - Modified time.Time `json:"modificationDate"` + Created int `json:"creationDate"` + Modified int `json:"modificationDate"` Token string `json:"token"` Email string `json:"email"` ShipToBillingAddress bool `json:"shipToBillingAddress"`