stripe 8.7.0 → 9.0.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: ff2d744f7713eb43a337ea7069114c02fa4a9ec886efc5e69332661ff9b90f7d
4
- data.tar.gz: a81af3893eb05270691d307ed0caa132a2ce5fa6b50497840f7d35606dbb7b45
3
+ metadata.gz: e7dfdb00614bcd3674779d258240b4c5e9cf5cb6806a9bc456d2384b19f652be
4
+ data.tar.gz: d4ab60d674524c92fbdf7c7fde52329ee2280685422c95673461fbb99ba3e3cb
5
5
  SHA512:
6
- metadata.gz: 951d8c44a5ed2d161946b139980de3290731d58fecd3ec3118604df28e88ca4a0d30c015fef53990a7cef665e3529b129cee34862f6c05e42865184c249966ef
7
- data.tar.gz: 7aacbdc98ce6c65b9f345d1f28aed3bcc149d6e2422f8688e2de89dd6b874884a2426018bb391fdb262bac77bd910e4bd896fdfbe83a707ddafd29c82e0d66f6
6
+ metadata.gz: c405ffc3f03cdb9da19dc5fcbac2a56f22dca4b9f3dc93e2a524655d12d84464a2788ce90f2b593dd8ca8c5475a4fb734e882fc9c7eb3e88fc460fe743025c16
7
+ data.tar.gz: 34063f3c3d73a69c89584f0eb381739634a91f3b7e57d7c1cf1ed7b08a64fcc1c40938bb2b0fdd8e5305d72fbe9c4313a5de64c598dbd870cfb29a86d8ea37a0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.0.0 - 2023-08-16
4
+ **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
5
+
6
+ * [#1253](https://github.com/stripe/stripe-ruby/pull/1253) [#1260](https://github.com/stripe/stripe-ruby/pull/1260) Pin latest API version as the default
7
+ In this release, Stripe API Version `2023-08-16` (the latest at time of release) will be sent by default on all requests. This is a significant change with wide ramifications. The API version affects the properties you see on responses, the parameters you are allowed to send on requests, and so on. The previous default was to use your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version).
8
+
9
+ To successfully upgrade to stripe-ruby v9, you must either
10
+
11
+ 1. **(Recommended) Upgrade your integration to be compatible with API Version `2023-08-16`.**
12
+
13
+ Please read the API Changelog carefully for each API Version from `2023-08-16` back to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). Determine if you are using any of the APIs that have changed in a breaking way, and adjust your integration accordingly. Carefully test your changes with Stripe [Test Mode](https://stripe.com/docs/keys#test-live-modes) before deploying them to production.
14
+
15
+ You can read the [v9 migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v9) for more detailed instructions.
16
+ 2. **(Alternative option) Specify a version other than `2023-08-16` when initializing `stripe-ruby`.**
17
+
18
+ If you were previously initializing stripe-ruby without an explicit API Version, you can postpone modifying your integration by specifying a version equal to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). For example:
19
+
20
+ ```diff
21
+ require 'stripe'
22
+ Stripe.api_key = "sk_test_..."
23
+ + Stripe.api_version = '2020-08-27'
24
+ ```
25
+
26
+ If you were already initializing stripe-ruby with an explicit API Version, upgrading to v9 will not affect your integration.
27
+
28
+ Read the [v9 migration guide](https://github.com/stripe-ruby/wiki/Migration-guide-for-v9) for more details.
29
+
30
+ Going forward, each major release of this library will be *pinned* by default to the latest Stripe API Version at the time of release.
31
+
32
+ That is, instead of upgrading stripe-ruby and separately upgrading your Stripe API Version through the Stripe Dashboard. whenever you upgrade major versions of stripe-ruby, you should also upgrade your integration to be compatible with the latest Stripe API version.
33
+
3
34
  ## 8.7.0 - 2023-08-10
4
35
  * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
5
36
  Add resources `Tax::CalculationLineItem`, `Tax::TransactionLineItem`, and `Treasury::FinancialAccountFeatures`. These resources have no methods on them, but do represent the return type of methods elsewhere.
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v457
1
+ v461
data/VERSION CHANGED
@@ -1 +1 @@
1
- 8.7.0
1
+ 9.0.0
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2022-11-15"
6
+ CURRENT = "2023-08-16"
7
7
  end
8
8
  end
@@ -63,6 +63,7 @@ module Stripe
63
63
  end
64
64
 
65
65
  def initialize
66
+ @api_version = ApiVersion::CURRENT
66
67
  @ca_bundle_path = Stripe::DEFAULT_CA_BUNDLE_PATH
67
68
  @enable_telemetry = true
68
69
  @verify_ssl_certs = true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "8.7.0"
4
+ VERSION = "9.0.0"
5
5
  end
data/lib/stripe.rb CHANGED
@@ -15,6 +15,7 @@ require "uri"
15
15
  require "forwardable"
16
16
 
17
17
  # Version
18
+ require "stripe/api_version"
18
19
  require "stripe/version"
19
20
 
20
21
  # API operations
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: 8.7.0
4
+ version: 9.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-11 00:00:00.000000000 Z
11
+ date: 2023-08-16 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.