Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf4ad9642d | ||
|
|
e1adf8cf4f | ||
|
|
73195a090f |
@@ -54,6 +54,7 @@ type Order struct {
|
|||||||
ShippingMethod string `json:"shippingMethod,omitempty"`
|
ShippingMethod string `json:"shippingMethod,omitempty"`
|
||||||
ShippingRateId string `json:"shippingRateUserDefinedId,omitempty"`
|
ShippingRateId string `json:"shippingRateUserDefinedId,omitempty"`
|
||||||
Items []Item `json:"items"`
|
Items []Item `json:"items"`
|
||||||
|
Taxes []Tax `json:"taxes,omitempty"`
|
||||||
Metadata any `json:"metadata"`
|
Metadata any `json:"metadata"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,6 +69,8 @@ type OrderUpdate struct {
|
|||||||
|
|
||||||
type Orders struct {
|
type Orders struct {
|
||||||
TotalItems int
|
TotalItems int
|
||||||
|
Offest int
|
||||||
|
Limit int
|
||||||
Items []Order
|
Items []Order
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,15 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user