Skip to content

Commit

Permalink
add deprecation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
helenye-stripe committed Oct 3, 2024
1 parent 45552cc commit 58d0f6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/stripe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def execute(method, url, base_address: :api, params: {}, opts: {}, usage: [])
end

# Sends a request to Stripe REST API
# TODO: move to StripeClient
def self.raw_request(method, url, params = {}, opts = {}, base_address: :api)
req = RawRequest.new
req.execute(method, url, base_address: base_address, params: params, opts: opts,
Expand All @@ -173,6 +172,9 @@ def self.deserialize(data, api_mode: :v1)
data = JSON.parse(data) if data.is_a?(String)
Util.convert_to_stripe_object(data, {}, api_mode: api_mode)
end
extend Gem::Deprecate
deprecate :raw_request, "StripeClient#raw_request", 2024, 9
deprecate :deserialize, "StripeClient#deserialize", 2024, 9
end

Stripe.log_level = ENV["STRIPE_LOG"] unless ENV["STRIPE_LOG"].nil?

0 comments on commit 58d0f6e

Please sign in to comment.