aboutsummaryrefslogtreecommitdiffstats
path: root/notes
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-05-11 16:16:24 -0400
committerSam Anthony <sam@samanthony.xyz>2026-05-11 16:16:24 -0400
commitaf2de318402df1fd8d33192d71613c21c4ee96bf (patch)
tree473c33981032bc73f5a5f4282ef8b1292333ce28 /notes
parentfcfe73600c8548d45820176d58f1c8cfc2327810 (diff)
downloadlulu-af2de318402df1fd8d33192d71613c21c4ee96bf.zip
implement POST /print-job-cost-calculations
Diffstat (limited to 'notes')
-rw-r--r--notes11
1 files changed, 11 insertions, 0 deletions
diff --git a/notes b/notes
new file mode 100644
index 0000000..331cabe
--- /dev/null
+++ b/notes
@@ -0,0 +1,11 @@
+-- Print Job Cost --
+
+The API doc is either out of date or was never correct to begin with.
+The response fields in the doc are different from what the server
+actually responds with. Therefore testdata/printjobcostresp.json is
+the union of the doc example and a real response from the sandbox
+server. For instance, the doc example has a "fees" field while the
+real response did not; thus "fees" is included in the testdata. The
+real response had "first_name" and "last_name" rather than just
+"name", so ShippingAddress has a custom UnmarshalJSON() function to
+account for both. And so on...