added SnipcartTax and SnipcartWebhookTaxResponse
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -15,3 +15,7 @@ type SnipcartShippingAddress struct {
|
||||
Phone string `json:"phone"`
|
||||
VatNumber string `json:"vatNumber,omitempty"`
|
||||
}
|
||||
|
||||
type SnipcartWebhookTaxResponse struct {
|
||||
Taxes []SnipcartTax `json:"taxes"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user