Driftwatch

Stripe / Stripe API /

Breakingdirection flip: their tools call this safe

type can now return "print_content"

What changed

Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

Affects type on terminal_reader_reader_resource_reader_action reachable from 15 operations.

New value: print_content.

can now return "print_content"

Who is affected

Code that reads Stripe's terminal_reader_reader_resource_reader_action objects, used by 15 Stripe operations.

Before and after

WhereBeforeAfter
terminal_reader_reader_resource_reader_action.type"collect_inputs", "collect_payment_method", "confirm_payment_intent", "process_payment_intent", "process_setup_intent", "refund_payment", "set_reader_display""collect_inputs", "collect_payment_method", "confirm_payment_intent", "print_content", "process_payment_intent", "process_setup_intent", "refund_payment", "set_reader_display"

Code that breaks

switch (response.type) {
  // existing branches …
  // no branch for "print_content"
  default:
    throw new Error("unexpected type");
}

Based on Stripe’s published API specification. How severity is decided.