Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions lib/stripe/stripe_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,17 @@ class << self; self; end
# see also: https://go/j/DEVSDK-2835
if is_a?(Invoice) && name == :payment_intent
raise NoMethodError,
"The 'payment_intent' attribute is no longer available on Invoice objects. " \
"See the docs for more details: https://docs.stripe.com/changelog/basil/2025-03-31/" \
"add-support-for-multiple-partial-payments-on-invoices#why-is-this-a-breaking-change"
"\n\n" \
"-----------------\n" \
" BREAKING CHANGE \n" \
"-----------------\n" \
"The 'payment_intent' attribute is no longer available on Invoice objects.\n\n" \
"See the docs for more details:\n" \
"https://docs.stripe.com/changelog/basil/2025-03-31/" \
"add-support-for-multiple-partial-payments-on-invoices#why-is-this-a-breaking-change\n" \
"-----------------\n" \
" BREAKING CHANGE \n" \
"-----------------" \
end

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