These methods were deprecated years ago, and still remained in the API. We'd like to discourage their use as alternatives exist and we are changing requestor patterns.
Also updates the README for correct raw_request snippets.
Changelog
⚠️ Remove APIResource.request. Instead, use StripeClient.raw_request now.
# Instead of
Stripe::APIResource.request(:get, "/v1/endpoint", params, opts)
Why?
These methods were deprecated years ago, and still remained in the API. We'd like to discourage their use as alternatives exist and we are changing requestor patterns.
Also updates the README for correct raw_request snippets.
Changelog
APIResource.request
. Instead, useStripeClient.raw_request
now.do
client = Stripe::StripeClient.new(...) resp = client.raw_request(:get, "/v1/endpoint", params: params, opts: opts)