stripe 11.6.0 → 11.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61738b3490f8138c890570db51cd52e07ce21bfcd9c87643bfb2ba2401883bfa
4
- data.tar.gz: 99794dd0299074291bbc59ad2b8d50d61b2a28ee15e98c646e1872f29c67b790
3
+ metadata.gz: 10d590e76f5c8524bee12dc767dee9b845fa9732aa4eed9621d0c10d05dfef4c
4
+ data.tar.gz: 803b1a9728c6322b40cce127b3464e1abff35c2ad515a73ec2b11ae1fe5b0476
5
5
  SHA512:
6
- metadata.gz: 768ee56dd32bab0c28faabbfd4ff48dfa65eaf678f0f980070b03a99d7d3a799cd1776a0b7866b7673af64b4daf677a7cab17f345ea92d38212873f54d245391
7
- data.tar.gz: ec247194d6b320a618ec972f7daaf3a2ff0dc70c244c97d5d46f332723e29f2d7e90bdcf302320a2bc8600af79c135aa552c30a96bc6390aa14817299d7c2c85
6
+ metadata.gz: 9f324debcf2d8d68f425a1fd934d981656f695d8440ca3c4cef5dab5b618d56407e324420b0ceee896f69c21281133d8fe4fb931b9bca34a9fece9fc281b6ef3
7
+ data.tar.gz: 6d17556b19ccac9ce7d9a102b6a3d7984b042f98fcaeb3014dd177a232fba50897bbba9b2ddf6addc76fad6a99b607e4f0069c994047e38217f53ee81b61ed7c
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Changelog
2
+ ## 11.7.0 - 2024-06-13
3
+ * [#1415](https://github.com/stripe/stripe-ruby/pull/1415) Deprecate StripeClient#request
4
+ * Add deprecation warning for `StripeClient#request`. This helper method will be removed in a future major version. To access response objects, use the `last_response` property on the returned resource instead. Refer to [Accessing a response object](https://github.com/stripe/stripe-ruby?tab=readme-ov-file#accessing-a-response-object) in the README for usage details.
5
+
2
6
  ## 11.6.0 - 2024-05-30
3
7
  * [#1404](https://github.com/stripe/stripe-ruby/pull/1404) Add method to list invoice line items
4
8
  * Add methods `list_lines()` on the class `Invoice` to list the invoice line items
data/VERSION CHANGED
@@ -1 +1 @@
1
- 11.6.0
1
+ 11.7.0
@@ -190,6 +190,7 @@ module Stripe
190
190
  # client = StripeClient.new
191
191
  # charge, resp = client.request { Charge.create }
192
192
  #
193
+
193
194
  def request
194
195
  @usage = ["stripe_client_request"]
195
196
  old_stripe_client = self.class.current_thread_context.active_client
@@ -211,6 +212,9 @@ module Stripe
211
212
  self.class.current_thread_context.last_responses.delete(object_id)
212
213
  end
213
214
  end
215
+ deprecate :request, "the `last_response` property on the returned resource (see " \
216
+ "https://github.com/stripe/stripe-ruby?tab=readme-ov-file#accessing-a-response-object " \
217
+ "for usage examples)", 2024, 6
214
218
 
215
219
  def execute_request(method, path,
216
220
  api_base: nil, api_key: nil, headers: {}, params: {}, usage: [])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "11.6.0"
4
+ VERSION = "11.7.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.6.0
4
+ version: 11.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-30 00:00:00.000000000 Z
11
+ date: 2024-06-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
14
14
  for details.