Compare commits

...

3 Commits

Author SHA1 Message Date
Bastian de Byl
db81f246bf corrected TaxContent time for epoch (unix time) int from time.Time 2023-06-06 19:12:01 -04:00
Bastian de Byl
9c7218f937 added TaxWebhook struct 2023-06-06 19:07:14 -04:00
Bastian de Byl
543935289f removed unused snipcart/client.go file 2023-06-06 18:38:42 -04:00
2 changed files with 6 additions and 3 deletions

View File

View File

@@ -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"`
@@ -38,6 +37,10 @@ type TaxContent struct {
Metadata any `json:"metadata"`
}
type TaxWebhook struct {
Content TaxContent `json:"content"`
}
type Tax struct {
Name string `json:"name"`
Amount float64 `json:"amount"`