Compare commits

...

2 Commits

Author SHA1 Message Date
Bastian de Byl
73195a090f added ShippingError and ShippingErrors struct 2023-06-06 19:54:21 -04:00
Bastian de Byl
db81f246bf corrected TaxContent time for epoch (unix time) int from time.Time 2023-06-06 19:12:01 -04:00

View File

@@ -4,17 +4,25 @@ import (
"encoding/base64" "encoding/base64"
"fmt" "fmt"
"net/http" "net/http"
"time"
) )
type ShippingError struct {
Key string `json:"key"`
Message string `json:"message"`
}
type ShippingErrors struct {
Errors []ShippingError `json:"errors"`
}
type TaxShippingInfo struct { type TaxShippingInfo struct {
Fees float64 `json:"fees"` Fees float64 `json:"fees"`
Method string `json:"method"` Method string `json:"method"`
} }
type TaxContent struct { type TaxContent struct {
Created time.Time `json:"creationDate"` Created int `json:"creationDate"`
Modified time.Time `json:"modificationDate"` Modified int `json:"modificationDate"`
Token string `json:"token"` Token string `json:"token"`
Email string `json:"email"` Email string `json:"email"`
ShipToBillingAddress bool `json:"shipToBillingAddress"` ShipToBillingAddress bool `json:"shipToBillingAddress"`