Skip to content

Commit

Permalink
Deprecate regular request on API resource (#1435)
Browse files Browse the repository at this point in the history
  • Loading branch information
helenye-stripe committed Jul 16, 2024
1 parent 6225d34 commit ec36441
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/stripe/api_operations/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def execute_resource_request_stream(method, url,
# place for backwards compatibility. Consider removing it on the next
# major.
alias request execute_resource_request
extend Gem::Deprecate
deprecate :request, "Stripe.raw_request", 2024, 7

private def error_on_non_string_user_opts(opts)
Util::OPTS_USER_SPECIFIED.each do |opt|
Expand Down Expand Up @@ -134,6 +136,8 @@ def self.included(base)

# See notes on `alias` above.
alias request execute_resource_request
extend Gem::Deprecate
deprecate :request, "Stripe.raw_request", 2024, 7
end
end
end

0 comments on commit ec36441

Please sign in to comment.