Skip to content

Commit c423a05

Browse files
Format breaking change warning to improve discoverability (#1741)
1 parent 6a5c8af commit c423a05

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

lib/stripe/stripe_object.rb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,17 @@ class << self; self; end
448448
# see also: https://go/j/DEVSDK-2835
449449
if is_a?(Invoice) && name == :payment_intent
450450
raise NoMethodError,
451-
"The 'payment_intent' attribute is no longer available on Invoice objects. " \
452-
"See the docs for more details: https://docs.stripe.com/changelog/basil/2025-03-31/" \
453-
"add-support-for-multiple-partial-payments-on-invoices#why-is-this-a-breaking-change"
451+
"\n\n" \
452+
"-----------------\n" \
453+
" BREAKING CHANGE \n" \
454+
"-----------------\n" \
455+
"The 'payment_intent' attribute is no longer available on Invoice objects.\n\n" \
456+
"See the docs for more details:\n" \
457+
"https://docs.stripe.com/changelog/basil/2025-03-31/" \
458+
"add-support-for-multiple-partial-payments-on-invoices#why-is-this-a-breaking-change\n" \
459+
"-----------------\n" \
460+
" BREAKING CHANGE \n" \
461+
"-----------------" \
454462
end
455463

456464
# If we notice the accessed name of our set of transient values we can

0 commit comments

Comments
 (0)