What changed
Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.
Affects payment_method_types[] on payment_link reachable from 19 operations.
New value: bizum.
can now return "bizum"
Who is affected
Code that reads Stripe's payment_link objects, used by 19 Stripe operations.
Before and after
| Where | Before | After |
|---|---|---|
| payment_link.payment_method_types[] | "affirm", "afterpay_clearpay", "alipay", "alma", "au_becs_debit", "bacs_debit", "bancontact", "billie", "blik", "boleto", "card", "cashapp", "eps", "fpx", "giropay", "grabpay", "ideal", "klarna", "konbini", "link", "mb_way", "mobilepay", "multibanco", "oxxo", "p24", "pay_by_bank", "paynow", "paypal", "payto", "pix", "promptpay", "satispay", "sepa_debit", "sofort", "sunbit", "swish", "twint", "upi", "us_bank_account", "wechat_pay", "zip" | "affirm", "afterpay_clearpay", "alipay", "alma", "au_becs_debit", "bacs_debit", "bancontact", "billie", "bizum", "blik", "boleto", "card", "cashapp", "eps", "fpx", "giropay", "grabpay", "ideal", "klarna", "konbini", "link", "mb_way", "mobilepay", "multibanco", "oxxo", "p24", "pay_by_bank", "paynow", "paypal", "payto", "pix", "promptpay", "satispay", "sepa_debit", "sofort", "sunbit", "swish", "twint", "upi", "us_bank_account", "wechat_pay", "zip" |
Code that breaks
switch (response.payment_method_types[0]) {
// existing branches …
// no branch for "bizum"
default:
throw new Error("unexpected payment_method_types");
}Based on Stripe’s published API specification. How severity is decided.