stripe 10.15.1 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c93bdaf5e7b9d0bd08462a86bdd9c6ee1358b7d444f9b14f23d2a74b7bd05c3
4
- data.tar.gz: 253bf3bac35668fcbbc8d4ddd9d2a0b4611fedb3497de203513003b940e88145
3
+ metadata.gz: 2a0119245798da8cac7237cbed7a7c09633ba072b170afc497403fafa31f78ed
4
+ data.tar.gz: a0f4f05a488055d587e40b46ffab95076ad31fe61d2f647595a96a305f17a06a
5
5
  SHA512:
6
- metadata.gz: 8f34ab2292fe8c8f631e98cec907c1b691e432e00ecde74b9103c9ddd4422dcb9b684e0b94b1cd7b482514f16b936ac239eda96e96cb7e0ef09150cbdb58a70f
7
- data.tar.gz: b6067a33463d22146ed4037436d8333f4aafc2026011f022133b0e15a0dac5fbcd53f5e83ea60575177a04ef71c9a680020ae19ea35b10d2130752e1a254f996
6
+ metadata.gz: 728ba1fb75583945b56486273261846fa9ec55e98066e6a1361a81ac98ab91a35378e7851ba5f441ef9b0e896e21c40587b668a8c988eacdd0cf63fd00570ed0
7
+ data.tar.gz: f8a4c1336a7819186d4e0781bb50e3eba2e367b00fc9e88a8005df6ddd6cbb319ef5ab79941f25552a49654fc3270030bd38971f099461f3031ef67bc1c2f7cc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
- ## 10.15.1 - 2026-10-27
3
- * Update the bundled CA certificates
2
+ ## 11.0.0 - 2024-04-10
3
+ * [#1374](https://github.com/stripe/stripe-ruby/pull/1374)
4
+
5
+ * This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) and carefully review the API changes before upgrading.
6
+
7
+ ### ⚠️ Breaking changes
8
+
9
+ * When no `x-stripe-should-retry` header is set in the response, the library now retries all requests with `status >= 500`, not just non-POST methods.
4
10
 
5
11
  ## 10.15.0 - 2024-04-09
6
12
  * [#1377](https://github.com/stripe/stripe-ruby/pull/1377) Add last_response to StripeObject
@@ -141,32 +147,32 @@
141
147
  **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
142
148
 
143
149
  * [#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
144
-
150
+
145
151
  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).
146
-
152
+
147
153
  To successfully upgrade to stripe-ruby v9, you must either
148
-
154
+
149
155
  1. **(Recommended) Upgrade your integration to be compatible with API Version `2023-08-16`.**
150
-
156
+
151
157
  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.
152
-
158
+
153
159
  You can read the [v9 migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v9) for more detailed instructions.
154
160
  2. **(Alternative option) Specify a version other than `2023-08-16` when initializing `stripe-ruby`.**
155
-
161
+
156
162
  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:
157
-
163
+
158
164
  ```diff
159
165
  require 'stripe'
160
166
  Stripe.api_key = "sk_test_..."
161
167
  + Stripe.api_version = '2020-08-27'
162
168
  ```
163
-
169
+
164
170
  If you were already initializing stripe-ruby with an explicit API Version, upgrading to v9 will not affect your integration.
165
-
171
+
166
172
  Read the [v9 migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v9) for more details.
167
-
173
+
168
174
  Going forward, each major release of this library will be *pinned* by default to the latest Stripe API Version at the time of release.
169
-
175
+
170
176
  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.
171
177
 
172
178
  ## 8.7.0 - 2023-08-10
@@ -193,7 +199,7 @@
193
199
 
194
200
  * [#1225](https://github.com/stripe/stripe-ruby/pull/1225) Downgrade jaro_winkler
195
201
  * [#1219](https://github.com/stripe/stripe-ruby/pull/1219) Update generated code
196
-
202
+
197
203
  Documentation updates.
198
204
  * [#1215](https://github.com/stripe/stripe-ruby/pull/1215) Update generated code
199
205
 
@@ -241,7 +247,7 @@ Breaking changes that arose during code generation of the library that we postpo
241
247
  refund = Stripe::Refund.retrieve("re_123")
242
248
  refund.description = "Refund description"
243
249
  refund.save
244
-
250
+
245
251
  # after
246
252
  Stripe::Refund.update("re_123", description: "Refund description")
247
253
  ```
@@ -305,7 +311,7 @@ Breaking changes that arose during code generation of the library that we postpo
305
311
  * [#1072](https://github.com/stripe/stripe-ruby/pull/1072) Trigger workflows on beta branches
306
312
  * [#1071](https://github.com/stripe/stripe-ruby/pull/1071) Use request_stripe_object for all requests
307
313
  * [#1070](https://github.com/stripe/stripe-ruby/pull/1070) API Updates
308
-
314
+
309
315
  Switch from using meta-programing to generating explicit methods for custom methods.
310
316
  * [#1069](https://github.com/stripe/stripe-ruby/pull/1069) chore: Stop special implementation of Account.persons method.
311
317
 
@@ -321,15 +327,15 @@ Breaking changes that arose during code generation of the library that we postpo
321
327
  * Add support for new resources `Treasury.CreditReversal`, `Treasury.DebitReversal`, `Treasury.FinancialAccountFeatures`, `Treasury.FinancialAccount`, `Treasury.FlowDetails`, `Treasury.InboundTransfer`, `Treasury.OutboundPayment`, `Treasury.OutboundTransfer`, `Treasury.ReceivedCredit`, `Treasury.ReceivedDebit`, `Treasury.TransactionEntry`, and `Treasury.Transaction`
322
328
  * Add support for `retrieve_payment_method` method on resource `Customer`
323
329
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
324
-
325
-
330
+
331
+
326
332
 
327
333
  ## 6.0.0 - 2022-05-09
328
334
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
329
335
  Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-Guide-for-v6) contains more information.
330
-
336
+
331
337
  (⚠️ = breaking changes):
332
- * ⚠️ Replace the legacy `Order` API with the new `Order` API.
338
+ * ⚠️ Replace the legacy `Order` API with the new `Order` API.
333
339
  * New methods: `cancel`, `list_line_items`, `reopen`, and `submit`
334
340
  * Removed methods: `pay` and `return_order`
335
341
  * Removed resources: `OrderItem` and `OrderReturn`
@@ -338,7 +344,7 @@ Breaking changes that arose during code generation of the library that we postpo
338
344
  ## 5.55.0 - 2022-05-05
339
345
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
340
346
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
341
-
347
+
342
348
 
343
349
  ## 5.54.0 - 2022-05-03
344
350
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -349,7 +355,7 @@ Breaking changes that arose during code generation of the library that we postpo
349
355
  * Add support for `expire` test helper method on resource `Refund`
350
356
 
351
357
  ## 5.52.0 - 2022-04-18
352
- * [#1046](https://github.com/stripe/stripe-ruby/pull/1046) [#1047](https://github.com/stripe/stripe-ruby/pull/1047) API Updates
358
+ * [#1046](https://github.com/stripe/stripe-ruby/pull/1046) [#1047](https://github.com/stripe/stripe-ruby/pull/1047) API Updates
353
359
  * Add support for new resources `FundingInstructions` and `Terminal.Configuration`
354
360
 
355
361
  ## 5.51.0 - 2022-04-15
@@ -371,7 +377,7 @@ Breaking changes that arose during code generation of the library that we postpo
371
377
  * [#1040](https://github.com/stripe/stripe-ruby/pull/1040) API Updates
372
378
  * Add support for Search API
373
379
  * Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription`
374
-
380
+
375
381
  * [#1034](https://github.com/stripe/stripe-ruby/pull/1034) Add supporting classes for test helper generation
376
382
 
377
383
  ## 5.46.0 - 2022-03-23
data/Makefile CHANGED
@@ -5,7 +5,7 @@ update-version:
5
5
 
6
6
  codegen-format:
7
7
  bundle install --quiet
8
- bundle exec rubocop -o /dev/null --autocorrect
8
+ bundle exec rubocop --autocorrect
9
9
 
10
10
  ci-test:
11
11
  bundle install && bundle exec rake test
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.15.1
1
+ 11.0.0