Compare commits

..

1 Commits

Author SHA1 Message Date
Bastian de Byl
b08b64f5b2 added SnipcartTax and SnipcartWebhookTaxResponse 2023-04-06 17:59:48 -04:00
2 changed files with 11 additions and 0 deletions

View File

@@ -88,6 +88,13 @@ type SnipcartOrders struct {
Items []SnipcartOrder
}
type SnipcartTax struct {
Name string `json:"name"`
Amount float64 `json:"amount"`
NumberForInvoice string `json:"numberForInvoice"`
Rate float64 `json:"rate"`
}
func NewClient(snipcartApiKey string) Client {
return Client{
SnipcartKey: snipcartApiKey,

View File

@@ -15,3 +15,7 @@ type SnipcartShippingAddress struct {
Phone string `json:"phone"`
VatNumber string `json:"vatNumber,omitempty"`
}
type SnipcartWebhookTaxResponse struct {
Taxes []SnipcartTax `json:"taxes"`
}