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