aboutsummaryrefslogtreecommitdiffstats
path: root/cost.go
diff options
context:
space:
mode:
Diffstat (limited to 'cost.go')
-rw-r--r--cost.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cost.go b/cost.go
index ac7ad7d..de2080e 100644
--- a/cost.go
+++ b/cost.go
@@ -60,7 +60,9 @@ type printJobCostReq struct {
ShipOpt ShippingLevel `json:"shipping_option"`
}
-// TODO: just use ShippingAddress?
+// printJobCostReqShipAddr is a subset of a shipping address. It is
+// necessary because the API returns an error if the address in a
+// /print-job-cost-calculations/ request has any extra fields.
type printJobCostReqShipAddr struct {
City string `json:"city"`
Country string `json:"country_code"`