stripe / stripe-ruby

Ruby library for the Stripe API.
https://stripe.com
MIT License
1.96k stars 548 forks source link

Add deprecation warning for `APIResource.request` #1435

Closed helenye-stripe closed 3 months ago

helenye-stripe commented 3 months ago

After releasing raw_request, this method should be deprecated. This TODO comment to remove in the next major has been here for ages, we should finally take action now that a more visible alternative exists. Doesn't change any behavior besides logging the message below.

Tested locally by calling the function, shows up with:

NOTE: Stripe::Account#request is deprecated; use Stripe.raw_request instead. It will be removed on or after 2024-07.