-
Notifications
You must be signed in to change notification settings - Fork 552
Migration guide for v8
anniel-stripe edited this page Nov 22, 2022
·
6 revisions
- The
save
method is deprecated. Prefer the staticupdate
method that doesn't require retrieval of the resource to update it.If you were using# before refund = Stripe::Refund.retrieve("re_123") refund.description = "Refund description" refund.save # after Stripe::Refund.update("re_123", description: "Refund description")
save
to unset a parameter by assigning it anil
value, when switching toupdate
please assign the parameter to an empty string""
to preserve the previous behavior.# before refund = Stripe::Refund.retrieve("re_123") refund.description = nil refund.save # after Stripe::Refund.update("re_123", description: "")