What changed
Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.
Affects this value on FulfillmentType reachable from 10 operations.
New value: IN_STORE.
can now return "IN_STORE"
Who is affected
Code that reads Square's FulfillmentType objects, used by 10 Square operations.
Before and after
| Where | Before | After |
|---|---|---|
| FulfillmentType | "DELIVERY", "PICKUP", "SHIPMENT" | "DELIVERY", "IN_STORE", "PICKUP", "SHIPMENT" |
Code that breaks
switch (response) {
// existing branches …
// no branch for "IN_STORE"
default:
throw new Error("unexpected value");
}Based on Square’s published API specification. How severity is decided.