added SnipcartTax and SnipcartWebhookTaxResponse

This commit is contained in:
Bastian de Byl
2023-04-06 17:59:48 -04:00
parent ad93704f41
commit b08b64f5b2
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,