Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf4ad9642d | ||
|
|
e1adf8cf4f | ||
|
|
73195a090f | ||
|
|
db81f246bf | ||
|
|
9c7218f937 |
@@ -54,6 +54,7 @@ type Order struct {
|
||||
ShippingMethod string `json:"shippingMethod,omitempty"`
|
||||
ShippingRateId string `json:"shippingRateUserDefinedId,omitempty"`
|
||||
Items []Item `json:"items"`
|
||||
Taxes []Tax `json:"taxes,omitempty"`
|
||||
Metadata any `json:"metadata"`
|
||||
}
|
||||
|
||||
@@ -68,6 +69,8 @@ type OrderUpdate struct {
|
||||
|
||||
type Orders struct {
|
||||
TotalItems int
|
||||
Offest int
|
||||
Limit int
|
||||
Items []Order
|
||||
}
|
||||
|
||||
|
||||
@@ -4,17 +4,25 @@ import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
type ShippingError struct {
|
||||
Key string `json:"key"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
type ShippingErrors struct {
|
||||
Errors []ShippingError `json:"errors"`
|
||||
}
|
||||
|
||||
type TaxShippingInfo struct {
|
||||
Fees float64 `json:"fees"`
|
||||
Method string `json:"method"`
|
||||
}
|
||||
|
||||
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 +46,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"`
|
||||
|
||||
Reference in New Issue
Block a user