stripe 8.8.0.pre.beta.1 → 9.0.0.pre.beta.1

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: b0de08fc5f1cb9d9c47b3d80f1368ca40a6706663dfa0d23a0d21a460cdc5825
4
- data.tar.gz: fbc517ff91bb982af50f3d2e669d543f76bc1c6dd7af0c1f1721ecc172a56f27
3
+ metadata.gz: c62d866b56389eb171d9cfaa34f2b507bf9b21bb9e1d11948ffd8b1a77a4cced
4
+ data.tar.gz: f44c404d31d51e5c7b89fb316a3e9d76764c371d15f95f0df401dd8e6be96bd0
5
5
  SHA512:
6
- metadata.gz: 4b1ce589c5e10c768b2417562b8c5f741dd15928bfd2af38560113da1739fb1297ddb77ac39eea27d8c78637de8bb285961e550d1b75c78b5c2f810bfde44730
7
- data.tar.gz: e347a8acb938323c4754dfea8f75fc313764c3698e31f49c4231f56970b278486e6644df11435d244e9a4606dd1dc87499fa88beeb3aa1ce19313fd440e89f65
6
+ metadata.gz: b5ad7e53127a3818832043d3ad5deb0ec4c55197196ab4ad12756afbeab54e92c434279d16a332892a8f1be4ff0ab8e17d09f3d04196bb9aad0441b5aadacd20
7
+ data.tar.gz: 8ff6539c7217087a7f57d174eaf44868229043b810c285b5dd3744c0ff09362d76eae13ca83194db12a3adf773ab42ccaefa4193ff78a78d63f8ba8e9749acd7
data/CHANGELOG.md CHANGED
@@ -1,9 +1,51 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.0.0-beta.1 - 2023-08-24
4
+ * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
5
+ * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
6
+ * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
7
+
8
+
9
+ ## 9.0.0 - 2023-08-16
10
+ **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
11
+
12
+ * [#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
13
+
14
+ 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).
15
+
16
+ To successfully upgrade to stripe-ruby v9, you must either
17
+
18
+ 1. **(Recommended) Upgrade your integration to be compatible with API Version `2023-08-16`.**
19
+
20
+ 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.
21
+
22
+ You can read the [v9 migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v9) for more detailed instructions.
23
+ 2. **(Alternative option) Specify a version other than `2023-08-16` when initializing `stripe-ruby`.**
24
+
25
+ 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:
26
+
27
+ ```diff
28
+ require 'stripe'
29
+ Stripe.api_key = "sk_test_..."
30
+ + Stripe.api_version = '2020-08-27'
31
+ ```
32
+
33
+ If you were already initializing stripe-ruby with an explicit API Version, upgrading to v9 will not affect your integration.
34
+
35
+ Read the [v9 migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v9) for more details.
36
+
37
+ Going forward, each major release of this library will be *pinned* by default to the latest Stripe API Version at the time of release.
38
+
39
+ 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.
40
+
3
41
  ## 8.8.0-beta.1 - 2023-08-10
4
42
  * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
5
43
  * Updated stable APIs to the latest version
6
44
 
45
+ ## 8.7.0 - 2023-08-10
46
+ * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
47
+ 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.
48
+
7
49
  ## 8.7.0-beta.3 - 2023-08-03
8
50
  * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
9
51
  * Add support for `submit_card` test helper method on resource `Issuing.Card`
@@ -16,7 +58,6 @@
16
58
  * [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
17
59
  * [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
18
60
 
19
-
20
61
  ## 8.7.0-beta.1 - 2023-07-13
21
62
  * [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
22
63
  Release specs are identical.
@@ -25,33 +66,32 @@
25
66
  * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
26
67
  * [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
27
68
 
28
-
29
69
  ## 8.6.0 - 2023-07-13
30
- * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
31
- * Add support for new resource `Tax.Settings`
32
- * Add support for `retrieve` and `update` methods on resource `Settings`
33
- * [#1241](https://github.com/stripe/stripe-ruby/pull/1241) Update generated code
34
-
35
- * [#1209](https://github.com/stripe/stripe-ruby/pull/1209) Update shoulda-context version
36
- * [#1235](https://github.com/stripe/stripe-ruby/pull/1235) Allow "error" string as log level
37
- * [#1238](https://github.com/stripe/stripe-ruby/pull/1238) Update log level error message to include `error`
38
- * [#1231](https://github.com/stripe/stripe-ruby/pull/1231) fix: variable typo in README for instrumentation
39
- * [#1234](https://github.com/stripe/stripe-ruby/pull/1234) Update generated code
40
-
41
- * [#1230](https://github.com/stripe/stripe-ruby/pull/1230) Update generated code
42
- * Release specs are identical.
43
- * [#1226](https://github.com/stripe/stripe-ruby/pull/1226) Update generated code
44
-
45
- * [#1223](https://github.com/stripe/stripe-ruby/pull/1223) Update generated code
46
-
47
- * [#1225](https://github.com/stripe/stripe-ruby/pull/1225) Downgrade jaro_winkler
48
- * [#1219](https://github.com/stripe/stripe-ruby/pull/1219) Update generated code
49
-
50
- Documentation updates.
51
- * [#1215](https://github.com/stripe/stripe-ruby/pull/1215) Update generated code
52
-
53
- * [#1208](https://github.com/stripe/stripe-ruby/pull/1208) Update generated code
54
-
70
+ * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
71
+ * Add support for new resource `Tax.Settings`
72
+ * Add support for `retrieve` and `update` methods on resource `Settings`
73
+ * [#1241](https://github.com/stripe/stripe-ruby/pull/1241) Update generated code
74
+
75
+ * [#1209](https://github.com/stripe/stripe-ruby/pull/1209) Update shoulda-context version
76
+ * [#1235](https://github.com/stripe/stripe-ruby/pull/1235) Allow "error" string as log level
77
+ * [#1238](https://github.com/stripe/stripe-ruby/pull/1238) Update log level error message to include `error`
78
+ * [#1231](https://github.com/stripe/stripe-ruby/pull/1231) fix: variable typo in README for instrumentation
79
+ * [#1234](https://github.com/stripe/stripe-ruby/pull/1234) Update generated code
80
+
81
+ * [#1230](https://github.com/stripe/stripe-ruby/pull/1230) Update generated code
82
+ * Release specs are identical.
83
+ * [#1226](https://github.com/stripe/stripe-ruby/pull/1226) Update generated code
84
+
85
+ * [#1223](https://github.com/stripe/stripe-ruby/pull/1223) Update generated code
86
+
87
+ * [#1225](https://github.com/stripe/stripe-ruby/pull/1225) Downgrade jaro_winkler
88
+ * [#1219](https://github.com/stripe/stripe-ruby/pull/1219) Update generated code
89
+
90
+ Documentation updates.
91
+ * [#1215](https://github.com/stripe/stripe-ruby/pull/1215) Update generated code
92
+
93
+ * [#1208](https://github.com/stripe/stripe-ruby/pull/1208) Update generated code
94
+
55
95
  * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
56
96
 
57
97
  ## 8.6.0-beta.6 - 2023-06-22
@@ -87,9 +127,9 @@
87
127
  * [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
88
128
 
89
129
  ## 8.5.0 - 2023-03-30
90
- * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
91
- * Remove support for `create` method on resource `Tax.Transaction`
92
- * This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `create_from_calculation` method.
130
+ * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
131
+ * Remove support for `create` method on resource `Tax.Transaction`
132
+ * This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `create_from_calculation` method.
93
133
  * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
94
134
 
95
135
  ## 8.5.0-beta.1 - 2023-03-23
@@ -98,10 +138,10 @@
98
138
  * Add support for `collect_inputs` method on resource `Terminal.Reader`
99
139
 
100
140
  ## 8.4.0 - 2023-03-23
101
- * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
102
- * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
103
- * Add support for `create` and `list_line_items` methods on resource `Calculation`
104
- * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
141
+ * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
142
+ * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
143
+ * Add support for `create` and `list_line_items` methods on resource `Calculation`
144
+ * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
105
145
  * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
106
146
 
107
147
  ## 8.4.0-beta.4 - 2023-03-16
@@ -130,7 +170,7 @@
130
170
  * Updated stable APIs to the latest version
131
171
 
132
172
  ## 8.3.0 - 2023-02-16
133
- * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
173
+ * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
134
174
  * Add support for `refund_payment` method on resource `Terminal.Reader`
135
175
 
136
176
  ## 8.3.0-beta.1 - 2023-02-02
@@ -140,8 +180,8 @@
140
180
  * Add support for `list` method on resource `Transaction`
141
181
 
142
182
  ## 8.2.0 - 2023-02-02
143
- * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
144
- * Add support for `resume` method on resource `Subscription`
183
+ * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
184
+ * Add support for `resume` method on resource `Subscription`
145
185
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
146
186
 
147
187
  ## 8.2.0-beta.3 - 2023-01-26
@@ -190,10 +230,10 @@
190
230
  * Updated stable APIs to the latest version
191
231
 
192
232
  ## 8.0.0 - 2022-11-16
193
- * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
194
-
195
- Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15.
196
-
233
+ * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
234
+
235
+ Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15.
236
+
197
237
  "⚠️" symbol highlights breaking changes.
198
238
 
199
239
  ## 7.2.0-beta.5 - 2022-11-02
@@ -221,10 +261,10 @@ Breaking changes that arose during code generation of the library that we postpo
221
261
  - `Stripe-Version` beta headers are not pinned by-default and need to be manually specified, please refer to [beta SDKs README section](https://github.com/stripe/stripe-ruby/blob/master/README.md#beta-sdks)
222
262
 
223
263
  ## 7.1.0 - 2022-08-19
224
- * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
225
- * Add support for new resource `CustomerCashBalanceTransaction`
226
- * [#1118](https://github.com/stripe/stripe-ruby/pull/1118) Update AllowedChars in rubocop config
227
- * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
264
+ * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
265
+ * Add support for new resource `CustomerCashBalanceTransaction`
266
+ * [#1118](https://github.com/stripe/stripe-ruby/pull/1118) Update AllowedChars in rubocop config
267
+ * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
228
268
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
229
269
 
230
270
  ## 7.1.0-beta.2 - 2022-08-11
@@ -238,14 +278,14 @@ Breaking changes that arose during code generation of the library that we postpo
238
278
  - Added the `Order` resource support
239
279
 
240
280
  ## 7.0.0 - 2022-08-02
241
-
242
- Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v7. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.
243
-
244
- "⚠️" symbol highlights breaking changes.
245
-
246
- * [#1106](https://github.com/stripe/stripe-ruby/pull/1106) API Updates
247
- * [#1092](https://github.com/stripe/stripe-ruby/pull/1092) API Updates
248
- * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
281
+
282
+ Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v7. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.
283
+
284
+ "⚠️" symbol highlights breaking changes.
285
+
286
+ * [#1106](https://github.com/stripe/stripe-ruby/pull/1106) API Updates
287
+ * [#1092](https://github.com/stripe/stripe-ruby/pull/1092) API Updates
288
+ * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
249
289
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
250
290
 
251
291
  ## 6.6.0-beta.1 - 2022-07-22
@@ -263,137 +303,137 @@ Breaking changes that arose during code generation of the library that we postpo
263
303
  * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
264
304
 
265
305
  ## 6.5.0 - 2022-06-29
266
- * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
267
- * Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card`
306
+ * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
307
+ * Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card`
268
308
  * [#1076](https://github.com/stripe/stripe-ruby/pull/1076) fix: Update logging to coerce ASCII-8BIT into UTF-8.
269
309
 
270
310
  ## 6.4.0 - 2022-06-17
271
- * [#1073](https://github.com/stripe/stripe-ruby/pull/1073) API Updates
272
- * Add support for `fund_cash_balance` test helper method on resource `Customer`
273
- * [#1074](https://github.com/stripe/stripe-ruby/pull/1074) Support updating pre-release versions
274
- * [#1072](https://github.com/stripe/stripe-ruby/pull/1072) Trigger workflows on beta branches
275
- * [#1071](https://github.com/stripe/stripe-ruby/pull/1071) Use request_stripe_object for all requests
276
- * [#1070](https://github.com/stripe/stripe-ruby/pull/1070) API Updates
277
-
278
- Switch from using meta-programing to generating explicit methods for custom methods.
311
+ * [#1073](https://github.com/stripe/stripe-ruby/pull/1073) API Updates
312
+ * Add support for `fund_cash_balance` test helper method on resource `Customer`
313
+ * [#1074](https://github.com/stripe/stripe-ruby/pull/1074) Support updating pre-release versions
314
+ * [#1072](https://github.com/stripe/stripe-ruby/pull/1072) Trigger workflows on beta branches
315
+ * [#1071](https://github.com/stripe/stripe-ruby/pull/1071) Use request_stripe_object for all requests
316
+ * [#1070](https://github.com/stripe/stripe-ruby/pull/1070) API Updates
317
+
318
+ Switch from using meta-programing to generating explicit methods for custom methods.
279
319
  * [#1069](https://github.com/stripe/stripe-ruby/pull/1069) chore: Stop special implementation of Account.persons method.
280
320
 
281
321
  ## 6.3.0 - 2022-06-08
282
322
  * [#1063](https://github.com/stripe/stripe-ruby/pull/1063) fix: Update cash balance methods to no longer require nested ID.
283
323
 
284
324
  ## 6.2.0 - 2022-05-23
285
- * [#1060](https://github.com/stripe/stripe-ruby/pull/1060) API Updates
325
+ * [#1060](https://github.com/stripe/stripe-ruby/pull/1060) API Updates
286
326
  * Add support for new resource `Apps.Secret`
287
327
 
288
328
  ## 6.1.0 - 2022-05-19
289
- * [#1057](https://github.com/stripe/stripe-ruby/pull/1057) API Updates
290
- * 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`
291
- * Add support for `retrieve_payment_method` method on resource `Customer`
329
+ * [#1057](https://github.com/stripe/stripe-ruby/pull/1057) API Updates
330
+ * 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`
331
+ * Add support for `retrieve_payment_method` method on resource `Customer`
292
332
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
293
333
 
294
334
  ## 6.0.0 - 2022-05-09
295
- * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
296
- Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-Guide-for-v6) contains more information.
297
-
298
- (⚠️ = breaking changes):
299
- * ⚠️ Replace the legacy `Order` API with the new `Order` API.
300
- * New methods: `cancel`, `list_line_items`, `reopen`, and `submit`
301
- * Removed methods: `pay` and `return_order`
302
- * Removed resources: `OrderItem` and `OrderReturn`
335
+ * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
336
+ Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-Guide-for-v6) contains more information.
337
+
338
+ (⚠️ = breaking changes):
339
+ * ⚠️ Replace the legacy `Order` API with the new `Order` API.
340
+ * New methods: `cancel`, `list_line_items`, `reopen`, and `submit`
341
+ * Removed methods: `pay` and `return_order`
342
+ * Removed resources: `OrderItem` and `OrderReturn`
303
343
  * ⚠️ Rename `FinancialConnections::Account.refresh` to `FinancialConnections::Account.refresh_account
304
344
 
305
345
  ## 5.55.0 - 2022-05-05
306
- * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
346
+ * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
307
347
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
308
348
 
309
349
  ## 5.54.0 - 2022-05-03
310
- * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
350
+ * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
311
351
  * Add support for new resource `CashBalance`
312
352
 
313
353
  ## 5.53.0 - 2022-04-21
314
- * [#1050](https://github.com/stripe/stripe-ruby/pull/1050) API Updates
354
+ * [#1050](https://github.com/stripe/stripe-ruby/pull/1050) API Updates
315
355
  * Add support for `expire` test helper method on resource `Refund`
316
356
 
317
357
  ## 5.52.0 - 2022-04-18
318
- * [#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
319
359
  * Add support for new resources `FundingInstructions` and `Terminal.Configuration`
320
360
 
321
361
  ## 5.51.0 - 2022-04-15
322
362
  * [#1046](https://github.com/stripe/stripe-ruby/pull/1046) This release was incomplete and was yanked from RubyGems immediately after it was published.
323
363
 
324
364
  ## 5.50.0 - 2022-04-13
325
- * [#1045](https://github.com/stripe/stripe-ruby/pull/1045) API Updates
365
+ * [#1045](https://github.com/stripe/stripe-ruby/pull/1045) API Updates
326
366
  * Add support for `increment_authorization` method on resource `PaymentIntent`
327
367
 
328
368
  ## 5.49.0 - 2022-04-08
329
- * [#1043](https://github.com/stripe/stripe-ruby/pull/1043) API Updates
369
+ * [#1043](https://github.com/stripe/stripe-ruby/pull/1043) API Updates
330
370
  * Add support for `apply_customer_balance` method on resource `PaymentIntent`
331
371
 
332
372
  ## 5.48.0 - 2022-03-30
333
- * [#1041](https://github.com/stripe/stripe-ruby/pull/1041) API Updates
373
+ * [#1041](https://github.com/stripe/stripe-ruby/pull/1041) API Updates
334
374
  * Add support for `cancel_action`, `process_payment_intent`, `process_setup_intent`, and `set_reader_display` methods on resource `Terminal.Reader`
335
375
 
336
376
  ## 5.47.0 - 2022-03-29
337
- * [#1040](https://github.com/stripe/stripe-ruby/pull/1040) API Updates
338
- * Add support for Search API
339
- * Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription`
340
-
377
+ * [#1040](https://github.com/stripe/stripe-ruby/pull/1040) API Updates
378
+ * Add support for Search API
379
+ * Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription`
380
+
341
381
  * [#1034](https://github.com/stripe/stripe-ruby/pull/1034) Add supporting classes for test helper generation
342
382
 
343
383
  ## 5.46.0 - 2022-03-23
344
- * [#1039](https://github.com/stripe/stripe-ruby/pull/1039) API Updates
345
- * Add support for `cancel` method on resource `Refund`
384
+ * [#1039](https://github.com/stripe/stripe-ruby/pull/1039) API Updates
385
+ * Add support for `cancel` method on resource `Refund`
346
386
  * [#992](https://github.com/stripe/stripe-ruby/pull/992) Add support for Search API
347
387
 
348
388
  ## 5.45.0 - 2022-03-01
349
- * [#1035](https://github.com/stripe/stripe-ruby/pull/1035) API Updates
389
+ * [#1035](https://github.com/stripe/stripe-ruby/pull/1035) API Updates
350
390
  * Add support for new resource `TestHelpers.TestClock`
351
391
 
352
392
  ## 5.44.0 - 2022-02-16
353
- * [#1032](https://github.com/stripe/stripe-ruby/pull/1032) API Updates
393
+ * [#1032](https://github.com/stripe/stripe-ruby/pull/1032) API Updates
354
394
  * Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent`
355
395
 
356
396
  ## 5.43.0 - 2022-01-20
357
- * [#1031](https://github.com/stripe/stripe-ruby/pull/1031) API Updates
397
+ * [#1031](https://github.com/stripe/stripe-ruby/pull/1031) API Updates
358
398
  * Add support for new resource `PaymentLink`
359
399
 
360
400
  ## 5.42.0 - 2021-12-13
361
401
  * [#1022](https://github.com/stripe/stripe-ruby/pull/1022) Add connection manager logging and include object IDs in logging.
362
402
 
363
403
  ## 5.41.0 - 2021-11-16
364
- * [#1017](https://github.com/stripe/stripe-ruby/pull/1017) API Updates
404
+ * [#1017](https://github.com/stripe/stripe-ruby/pull/1017) API Updates
365
405
  * Add support for new resource `ShippingRate`
366
406
 
367
407
  ## 5.40.0 - 2021-11-11
368
- * [#1015](https://github.com/stripe/stripe-ruby/pull/1015) API Updates
369
- * Add support for `expire` method on resource `Checkout.Session`
370
- * [#1013](https://github.com/stripe/stripe-ruby/pull/1013) Add tests for child resources.
371
- * [#1012](https://github.com/stripe/stripe-ruby/pull/1012) Add tests for namespaced resources.
408
+ * [#1015](https://github.com/stripe/stripe-ruby/pull/1015) API Updates
409
+ * Add support for `expire` method on resource `Checkout.Session`
410
+ * [#1013](https://github.com/stripe/stripe-ruby/pull/1013) Add tests for child resources.
411
+ * [#1012](https://github.com/stripe/stripe-ruby/pull/1012) Add tests for namespaced resources.
372
412
  * [#1011](https://github.com/stripe/stripe-ruby/pull/1011) codegen: 3 more files
373
413
 
374
414
  ## 5.39.0 - 2021-10-11
375
- * [#1010](https://github.com/stripe/stripe-ruby/pull/1010) API Updates
415
+ * [#1010](https://github.com/stripe/stripe-ruby/pull/1010) API Updates
376
416
  * Add support for `list_payment_methods` method on resource `Customer`
377
417
 
378
418
  ## 5.38.0 - 2021-08-10
379
- * [#993](https://github.com/stripe/stripe-ruby/pull/993) Add `request_id` to RequestEndEvent
380
- * [#991](https://github.com/stripe/stripe-ruby/pull/991) Codegen more files
419
+ * [#993](https://github.com/stripe/stripe-ruby/pull/993) Add `request_id` to RequestEndEvent
420
+ * [#991](https://github.com/stripe/stripe-ruby/pull/991) Codegen more files
381
421
  * [#989](https://github.com/stripe/stripe-ruby/pull/989) Remove unused API error types from docs.
382
422
 
383
423
  ## 5.37.0 - 2021-07-14
384
- * [#988](https://github.com/stripe/stripe-ruby/pull/988) API Updates
424
+ * [#988](https://github.com/stripe/stripe-ruby/pull/988) API Updates
385
425
  * Add support for `list_computed_upfront_line_items` method on resource `Quote`
386
426
 
387
427
  ## 5.36.0 - 2021-07-09
388
428
  * [#987](https://github.com/stripe/stripe-ruby/pull/987) Add support for `Quote` API
389
429
 
390
430
  ## 5.35.0 - 2021-06-30
391
- * [#985](https://github.com/stripe/stripe-ruby/pull/985) Update normalize_opts to use dup instead of clone.
392
- * [#982](https://github.com/stripe/stripe-ruby/pull/982) Deprecate travis
431
+ * [#985](https://github.com/stripe/stripe-ruby/pull/985) Update normalize_opts to use dup instead of clone.
432
+ * [#982](https://github.com/stripe/stripe-ruby/pull/982) Deprecate travis
393
433
  * [#983](https://github.com/stripe/stripe-ruby/pull/983) Add support for making a request and receiving the response as a stream.
394
434
 
395
435
  ## 5.34.0 - 2021-06-04
396
- * [#981](https://github.com/stripe/stripe-ruby/pull/981) API Updates
436
+ * [#981](https://github.com/stripe/stripe-ruby/pull/981) API Updates
397
437
  * Add support for `TaxCode` API.
398
438
 
399
439
  ## 5.33.0 - 2021-05-19
@@ -406,10 +446,10 @@ Breaking changes that arose during code generation of the library that we postpo
406
446
  * [#973](https://github.com/stripe/stripe-ruby/pull/973) Reduce packed gem size
407
447
 
408
448
  ## 5.31.0 - 2021-04-02
409
- * [#968](https://github.com/stripe/stripe-ruby/pull/968) Allow StripeClient to be configured per instance
410
- * [#971](https://github.com/stripe/stripe-ruby/pull/971) On config change, only clear connection managers for changed config
411
- * [#972](https://github.com/stripe/stripe-ruby/pull/972) Rename `Stripe.configuration` to `Stripe.config`
412
- * [#970](https://github.com/stripe/stripe-ruby/pull/970) Reserve some critical field names when adding `StripeObject` accessors
449
+ * [#968](https://github.com/stripe/stripe-ruby/pull/968) Allow StripeClient to be configured per instance
450
+ * [#971](https://github.com/stripe/stripe-ruby/pull/971) On config change, only clear connection managers for changed config
451
+ * [#972](https://github.com/stripe/stripe-ruby/pull/972) Rename `Stripe.configuration` to `Stripe.config`
452
+ * [#970](https://github.com/stripe/stripe-ruby/pull/970) Reserve some critical field names when adding `StripeObject` accessors
413
453
  * [#967](https://github.com/stripe/stripe-ruby/pull/967) CI: github actions
414
454
 
415
455
  ## 5.30.0 - 2021-02-22
@@ -434,7 +474,7 @@ Breaking changes that arose during code generation of the library that we postpo
434
474
  * [#944](https://github.com/stripe/stripe-ruby/pull/944) Add support for the Issuing Dispute Submit API
435
475
 
436
476
  ## 5.24.0 - 2020-08-26
437
- * [#939](https://github.com/stripe/stripe-ruby/pull/939) Extract configurations into separate object
477
+ * [#939](https://github.com/stripe/stripe-ruby/pull/939) Extract configurations into separate object
438
478
  * [#940](https://github.com/stripe/stripe-ruby/pull/940) Fix typo in documentation of `stripe_object.rb`
439
479
 
440
480
  ## 5.23.1 - 2020-08-05
@@ -462,16 +502,16 @@ Breaking changes that arose during code generation of the library that we postpo
462
502
  * [#907](https://github.com/stripe/stripe-ruby/pull/907) Add `StripeError#idempotent_replayed?`
463
503
 
464
504
  ## 5.16.0 - 2020-02-26
465
- * [#906](https://github.com/stripe/stripe-ruby/pull/906) Add support for listing Checkout sessions
505
+ * [#906](https://github.com/stripe/stripe-ruby/pull/906) Add support for listing Checkout sessions
466
506
  * [#903](https://github.com/stripe/stripe-ruby/pull/903) Upgrade to Rubocop 0.80
467
507
 
468
508
  ## 5.15.0 - 2020-02-10
469
509
  * [#902](https://github.com/stripe/stripe-ruby/pull/902) Add `request_begin` instrumentation callback
470
510
 
471
511
  ## 5.14.0 - 2020-01-14
472
- * [#896](https://github.com/stripe/stripe-ruby/pull/896) Add support for `CreditNoteLineItem`
473
- * [#894](https://github.com/stripe/stripe-ruby/pull/894) Clean up test output by capturing `$stderr` when we expect warnings
474
- * [#892](https://github.com/stripe/stripe-ruby/pull/892) Explicitly pass a parameter as hash to be more ruby 2.7 friendly
512
+ * [#896](https://github.com/stripe/stripe-ruby/pull/896) Add support for `CreditNoteLineItem`
513
+ * [#894](https://github.com/stripe/stripe-ruby/pull/894) Clean up test output by capturing `$stderr` when we expect warnings
514
+ * [#892](https://github.com/stripe/stripe-ruby/pull/892) Explicitly pass a parameter as hash to be more ruby 2.7 friendly
475
515
  * [#893](https://github.com/stripe/stripe-ruby/pull/893) Upgrade Rubocop to 0.79
476
516
 
477
517
  ## 5.13.0 - 2020-01-08
@@ -493,9 +533,9 @@ Breaking changes that arose during code generation of the library that we postpo
493
533
  * [#870](https://github.com/stripe/stripe-ruby/pull/870) Add request instrumentation callback (see `README.md` for usage example)
494
534
 
495
535
  ## 5.8.0 - 2019-11-05
496
- * [#879](https://github.com/stripe/stripe-ruby/pull/879) Add support for `Mandate`
497
- * [#876](https://github.com/stripe/stripe-ruby/pull/876) Add additional per-request configuration documentation
498
- * [#874](https://github.com/stripe/stripe-ruby/pull/874) Raise an error when requests params are invalid
536
+ * [#879](https://github.com/stripe/stripe-ruby/pull/879) Add support for `Mandate`
537
+ * [#876](https://github.com/stripe/stripe-ruby/pull/876) Add additional per-request configuration documentation
538
+ * [#874](https://github.com/stripe/stripe-ruby/pull/874) Raise an error when requests params are invalid
499
539
  * [#873](https://github.com/stripe/stripe-ruby/pull/873) Contributor Covenant
500
540
 
501
541
  ## 5.7.1 - 2019-10-15
@@ -532,33 +572,33 @@ Breaking changes that arose during code generation of the library that we postpo
532
572
  * [#836](https://github.com/stripe/stripe-ruby/pull/836) Increase connection keep alive timeout to 30 seconds
533
573
 
534
574
  ## 5.0.0 - 2019-08-20
535
- Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v5) contains a detailed list of backwards-incompatible changes with upgrade instructions.
536
-
537
- Pull requests included in this release (cf. [#815](https://github.com/stripe/stripe-ruby/pull/815)) (⚠️ = breaking changes):
538
- * ⚠️ [#813](https://github.com/stripe/stripe-ruby/pull/813): Convert library to use built-in `Net::HTTP`
539
- * ⚠️ [#816](https://github.com/stripe/stripe-ruby/pull/816): Make `code` argument in `CardError` named instead of positional.
540
- * ⚠️ [#817](https://github.com/stripe/stripe-ruby/pull/817): Drop support for very old Ruby versions.
541
- * [#818](https://github.com/stripe/stripe-ruby/pull/818): Bump Rubocop to latest version
542
- * [#819](https://github.com/stripe/stripe-ruby/pull/819): Ruby minimum version increase followup
543
- * ⚠️ [#820](https://github.com/stripe/stripe-ruby/pull/820): Remove old deprecated methods
544
- * ⚠️ [#823](https://github.com/stripe/stripe-ruby/pull/823): Remove all alias for list methods
545
- * ⚠️ [#826](https://github.com/stripe/stripe-ruby/pull/826): Remove `UsageRecord.create` method
546
- * ⚠️ [#827](https://github.com/stripe/stripe-ruby/pull/827): Remove `IssuerFraudRecord`
547
- * [#811](https://github.com/stripe/stripe-ruby/pull/811): Add `ErrorObject` to `StripeError` exceptions
548
- * [#828](https://github.com/stripe/stripe-ruby/pull/828): Tweak retry logic to be a little more like stripe-node
549
- * [#829](https://github.com/stripe/stripe-ruby/pull/829): Reset connections when connection-changing configuration changes (optional)
550
- * [#830](https://github.com/stripe/stripe-ruby/pull/830): Fix inverted sign for 500 retries
551
- * ⚠️[#831](https://github.com/stripe/stripe-ruby/pull/831): Remove a few more very old deprecated methods
552
- * [#832](https://github.com/stripe/stripe-ruby/pull/832): Minor cleanup in `StripeClient`
553
- * [#833](https://github.com/stripe/stripe-ruby/pull/833): Do better bookkeeping when tracking state in `Thread.current`
575
+ Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v5) contains a detailed list of backwards-incompatible changes with upgrade instructions.
576
+
577
+ Pull requests included in this release (cf. [#815](https://github.com/stripe/stripe-ruby/pull/815)) (⚠️ = breaking changes):
578
+ * ⚠️ [#813](https://github.com/stripe/stripe-ruby/pull/813): Convert library to use built-in `Net::HTTP`
579
+ * ⚠️ [#816](https://github.com/stripe/stripe-ruby/pull/816): Make `code` argument in `CardError` named instead of positional.
580
+ * ⚠️ [#817](https://github.com/stripe/stripe-ruby/pull/817): Drop support for very old Ruby versions.
581
+ * [#818](https://github.com/stripe/stripe-ruby/pull/818): Bump Rubocop to latest version
582
+ * [#819](https://github.com/stripe/stripe-ruby/pull/819): Ruby minimum version increase followup
583
+ * ⚠️ [#820](https://github.com/stripe/stripe-ruby/pull/820): Remove old deprecated methods
584
+ * ⚠️ [#823](https://github.com/stripe/stripe-ruby/pull/823): Remove all alias for list methods
585
+ * ⚠️ [#826](https://github.com/stripe/stripe-ruby/pull/826): Remove `UsageRecord.create` method
586
+ * ⚠️ [#827](https://github.com/stripe/stripe-ruby/pull/827): Remove `IssuerFraudRecord`
587
+ * [#811](https://github.com/stripe/stripe-ruby/pull/811): Add `ErrorObject` to `StripeError` exceptions
588
+ * [#828](https://github.com/stripe/stripe-ruby/pull/828): Tweak retry logic to be a little more like stripe-node
589
+ * [#829](https://github.com/stripe/stripe-ruby/pull/829): Reset connections when connection-changing configuration changes (optional)
590
+ * [#830](https://github.com/stripe/stripe-ruby/pull/830): Fix inverted sign for 500 retries
591
+ * ⚠️[#831](https://github.com/stripe/stripe-ruby/pull/831): Remove a few more very old deprecated methods
592
+ * [#832](https://github.com/stripe/stripe-ruby/pull/832): Minor cleanup in `StripeClient`
593
+ * [#833](https://github.com/stripe/stripe-ruby/pull/833): Do better bookkeeping when tracking state in `Thread.current`
554
594
  * [#834](https://github.com/stripe/stripe-ruby/pull/834): Add `Invoice.list_upcoming_line_items` method
555
595
 
556
596
  ## 4.24.0 - 2019-08-12
557
- * [#825](https://github.com/stripe/stripe-ruby/pull/825) Add `SubscriptionItem.create_usage_record` method
597
+ * [#825](https://github.com/stripe/stripe-ruby/pull/825) Add `SubscriptionItem.create_usage_record` method
558
598
  - This release also removed the `SubscriptionSchedule.revisions` method. This should have been included in the previous release (4.23.0)
559
599
 
560
600
  ## 4.23.0 - 2019-08-09
561
- * [#824](https://github.com/stripe/stripe-ruby/pull/824) Remove SubscriptionScheduleRevision
601
+ * [#824](https://github.com/stripe/stripe-ruby/pull/824) Remove SubscriptionScheduleRevision
562
602
  - This is technically a breaking change. We've chosen to release it as a minor vesion bump because the associated API is unused.
563
603
 
564
604
  ## 4.22.1 - 2019-08-09
@@ -610,15 +650,15 @@ Pull requests included in this release (cf. [#815](https://github.com/stripe/str
610
650
  * [#766](https://github.com/stripe/stripe-ruby/pull/766) Relax constraints on objects that we'll accept as a file (now they just need to respond to `#read`)
611
651
 
612
652
  ## 4.12.0 - 2019-04-02
613
- * [#752](https://github.com/stripe/stripe-ruby/pull/752) Add `.delete` class method on deletable API resources
653
+ * [#752](https://github.com/stripe/stripe-ruby/pull/752) Add `.delete` class method on deletable API resources
614
654
  * [#754](https://github.com/stripe/stripe-ruby/pull/754) Add class methods for all custom API requests (e.g. `Charge.capture`)
615
655
 
616
656
  ## 4.11.0 - 2019-03-26
617
657
  * [#753](https://github.com/stripe/stripe-ruby/pull/753) Add a global proxy configuration parameter
618
658
 
619
659
  ## 4.10.0 - 2019-03-18
620
- * [#745](https://github.com/stripe/stripe-ruby/pull/745) Add support for the `PaymentMethod` resource and APIs
621
- * [#747](https://github.com/stripe/stripe-ruby/pull/747) Add support for retrieving a Checkout `Session`
660
+ * [#745](https://github.com/stripe/stripe-ruby/pull/745) Add support for the `PaymentMethod` resource and APIs
661
+ * [#747](https://github.com/stripe/stripe-ruby/pull/747) Add support for retrieving a Checkout `Session`
622
662
  * [#748](https://github.com/stripe/stripe-ruby/pull/748) Add support for deleting a Terminal `Location` and `Reader`
623
663
 
624
664
  ## 4.9.1 - 2019-03-18
@@ -670,7 +710,7 @@ Pull requests included in this release (cf. [#815](https://github.com/stripe/str
670
710
  * [#699](https://github.com/stripe/stripe-ruby/pull/699) Only send telemetry if `Request-Id` was present in the response
671
711
 
672
712
  ## 4.0.0 - 2018-11-15
673
- * [#698](https://github.com/stripe/stripe-ruby/pull/698) Use persistent connections by default through `Net::HTTP::Persistent`
713
+ * [#698](https://github.com/stripe/stripe-ruby/pull/698) Use persistent connections by default through `Net::HTTP::Persistent`
674
714
  * [#698](https://github.com/stripe/stripe-ruby/pull/698) Drop support for Ruby 2.0 (which we consider a breaking change here)
675
715
 
676
716
  ## 3.31.1 - 2018-11-12
@@ -683,7 +723,7 @@ Pull requests included in this release (cf. [#815](https://github.com/stripe/str
683
723
  * [#693](https://github.com/stripe/stripe-ruby/pull/693) Add new API endpoints for the `Invoice` resource.
684
724
 
685
725
  ## 3.29.0 - 2018-10-30
686
- * [#692](https://github.com/stripe/stripe-ruby/pull/692) Add support for the `Person` resource
726
+ * [#692](https://github.com/stripe/stripe-ruby/pull/692) Add support for the `Person` resource
687
727
  * [#694](https://github.com/stripe/stripe-ruby/pull/694) Add support for the `WebhookEndpoint` resource
688
728
 
689
729
  ## 3.28.0 - 2018-09-24
@@ -780,16 +820,16 @@ Pull requests included in this release (cf. [#815](https://github.com/stripe/str
780
820
  * [#603](https://github.com/stripe/stripe-ruby/pull/603) Support for listing source transactions
781
821
 
782
822
  ## 3.6.0 - 2017-10-17
783
- * [#597](https://github.com/stripe/stripe-ruby/pull/597) Add static methods to manipulate resources from parent
784
- * `Account` gains methods for external accounts and login links (e.g. `.create_account`, `create_login_link`)
785
- * `ApplicationFee` gains methods for refunds
786
- * `Customer` gains methods for sources
823
+ * [#597](https://github.com/stripe/stripe-ruby/pull/597) Add static methods to manipulate resources from parent
824
+ * `Account` gains methods for external accounts and login links (e.g. `.create_account`, `create_login_link`)
825
+ * `ApplicationFee` gains methods for refunds
826
+ * `Customer` gains methods for sources
787
827
  * `Transfer` gains methods for reversals
788
828
 
789
829
  ## 3.5.3 - 2017-10-16
790
- * [#594](https://github.com/stripe/stripe-ruby/pull/594) Make sure that `StripeObject`'s `#deep_copy` maintains original class
791
- * [#595](https://github.com/stripe/stripe-ruby/pull/595) Allow `Object#method` to be called on `StripeObject` even if it conflicts with an accessor
792
- * [#596](https://github.com/stripe/stripe-ruby/pull/596) Encode arrays as integer-indexed hashes where appropriate
830
+ * [#594](https://github.com/stripe/stripe-ruby/pull/594) Make sure that `StripeObject`'s `#deep_copy` maintains original class
831
+ * [#595](https://github.com/stripe/stripe-ruby/pull/595) Allow `Object#method` to be called on `StripeObject` even if it conflicts with an accessor
832
+ * [#596](https://github.com/stripe/stripe-ruby/pull/596) Encode arrays as integer-indexed hashes where appropriate
793
833
  * [#598](https://github.com/stripe/stripe-ruby/pull/598) Don't persist `idempotency_key` opt between requests
794
834
 
795
835
  ## 3.5.2 - 2017-10-13
@@ -802,23 +842,23 @@ Pull requests included in this release (cf. [#815](https://github.com/stripe/str
802
842
  * [#589](https://github.com/stripe/stripe-ruby/pull/589) Rename source `delete` to `detach` (and deprecate the former)
803
843
 
804
844
  ## 3.4.1 - 2017-10-05
805
- * [#586](https://github.com/stripe/stripe-ruby/pull/586) Log query strings as well as form bodies with STRIPE_LOG
845
+ * [#586](https://github.com/stripe/stripe-ruby/pull/586) Log query strings as well as form bodies with STRIPE_LOG
806
846
  * [#588](https://github.com/stripe/stripe-ruby/pull/588) Require minimum Faraday 0.10 for bug fix in parameter encoding
807
847
 
808
848
  ## 3.4.0 - 2017-09-20
809
- * Mark legacy Bitcoin API as deprecated, and remove corresponding tests
849
+ * Mark legacy Bitcoin API as deprecated, and remove corresponding tests
810
850
  * Mark recipients API as deprecated, and remove recipient card tests
811
851
 
812
852
  ## 3.3.2 - 2017-09-20
813
853
  * Correct minimum required Ruby version in gemspec (it's 2.0.0)
814
854
 
815
855
  ## 3.3.1 - 2017-08-18
816
- * Only parse webhook payload after verification to decrease likelihood of
856
+ * Only parse webhook payload after verification to decrease likelihood of
817
857
  attack
818
858
 
819
859
  ## 3.3.0 - 2017-08-11
820
- * Add support for standard library logger interface with `Stripe.logger`
821
- * Error logs now go to stderr if using `Stripe.log_level`/`STRIPE_LOG`
860
+ * Add support for standard library logger interface with `Stripe.logger`
861
+ * Error logs now go to stderr if using `Stripe.log_level`/`STRIPE_LOG`
822
862
  * `Stripe.log_level`/`STRIPE_LOG` now support `Stipe::LEVEL_ERROR`
823
863
 
824
864
  ## 3.2.0 - 2017-08-03
@@ -828,16 +868,16 @@ Pull requests included in this release (cf. [#815](https://github.com/stripe/str
828
868
  * Implement request logging with `Stripe.log_level` and `STRIPE_LOG`
829
869
 
830
870
  ## 3.0.3 - 2017-07-28
831
- * Revert `nil` to empty string coercion from 3.0.2
832
- * Handle `invalid_client` OAuth error code
871
+ * Revert `nil` to empty string coercion from 3.0.2
872
+ * Handle `invalid_client` OAuth error code
833
873
  * Improve safety of error handling logic safer for unrecognized OAuth error codes
834
874
 
835
875
  ## 3.0.2 - 2017-07-12
836
- **Important:** This version is non-functional and has been yanked in favor of 3.0.3.
876
+ **Important:** This version is non-functional and has been yanked in favor of 3.0.3.
837
877
  * Convert `nil` to empty string when serializing parameters (instead of opaquely dropping it) -- NOTE: this change has since been reverted
838
878
 
839
879
  ## 3.0.1 - 2017-07-11
840
- * Properties set with an API resource will now serialize that resource's ID if possible
880
+ * Properties set with an API resource will now serialize that resource's ID if possible
841
881
  * API resources will throw an ArgumentError on save if a property has been with an API resource that cannot be serialized
842
882
 
843
883
  ## 3.0.0 - 2017-06-27
@@ -892,10 +932,10 @@ Pull requests included in this release (cf. [#815](https://github.com/stripe/str
892
932
  * Fix multipart parameter encoding to repair broken file uploads
893
933
 
894
934
  ## 2.0.0 - 2017-02-14
895
- * Drop support for Ruby 1.9
896
- * Allow HTTP client that makes Stripe calls to be configured via Faraday
897
- * Drop RestClient
898
- * Switch to OpenAPI 2.0 spec and generated fixtures in test suite
935
+ * Drop support for Ruby 1.9
936
+ * Allow HTTP client that makes Stripe calls to be configured via Faraday
937
+ * Drop RestClient
938
+ * Switch to OpenAPI 2.0 spec and generated fixtures in test suite
899
939
  * Switch to Webmock in test suite
900
940
 
901
941
  ## 1.58.0 - 2017-01-19
@@ -914,8 +954,8 @@ Pull requests included in this release (cf. [#815](https://github.com/stripe/str
914
954
  * Fix (fairly serious) memory like in `StripeObject`
915
955
 
916
956
  ## 1.56.0 - 2016-10-24
917
- * Add accessors for new fields added in `#update_attributes`
918
- * Handle multi-plan subscriptions through new subscription items
957
+ * Add accessors for new fields added in `#update_attributes`
958
+ * Handle multi-plan subscriptions through new subscription items
919
959
  * Handle 403 status codes from the API
920
960
 
921
961
  ## 1.55.1 - 2016-10-24
@@ -937,7 +977,7 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
937
977
  * Make sure `Account`'s `external_account` is saved with its parent
938
978
 
939
979
  ## 1.51.0 - 2016-08-26
940
- * Error when an array of maps is detected that cannot be accurately encoded
980
+ * Error when an array of maps is detected that cannot be accurately encoded
941
981
  * Start using strings for header names instead of symbols for better clarity
942
982
 
943
983
  ## 1.50.1 - 2016-08-25
@@ -968,7 +1008,7 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
968
1008
  * Fix type of resource returned from `Order#return_order`
969
1009
 
970
1010
  ## 1.43.0 - 2016-05-20
971
- * Allow Relay orders to be returned and add associated types
1011
+ * Allow Relay orders to be returned and add associated types
972
1012
  * Support Alipay account retrieval and deletion
973
1013
 
974
1014
  ## 1.42.0 - 2016-05-04
@@ -1002,7 +1042,7 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1002
1042
  * Add compatibility layer for old API versions on `Charge#refund`
1003
1043
 
1004
1044
  ## 1.35.0 - 2016-02-01
1005
- * Allow CA cert bundle location to be configured
1045
+ * Allow CA cert bundle location to be configured
1006
1046
  * Updated bundled CA certs
1007
1047
 
1008
1048
  ## 1.34.0 - 2016-01-25
@@ -1015,11 +1055,11 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1015
1055
  * Re-implement `Charge#refund` helper to use the modern endpoint suggested by docs
1016
1056
 
1017
1057
  ## 1.32.1 - 2016-01-07
1018
- * Fix bug where ivar left uninitialized in StripeObject could error on serialization
1058
+ * Fix bug where ivar left uninitialized in StripeObject could error on serialization
1019
1059
  * Fix bug where a nil customer from API could error Bitcoin model on refresh
1020
1060
 
1021
1061
  ## 1.32.0 - 2016-01-05
1022
- * Add configuration to optionally retry network failures
1062
+ * Add configuration to optionally retry network failures
1023
1063
  * Use modern API endpoint for producing application fee refunds
1024
1064
 
1025
1065
  ## 1.31.0 - 2015-10-29
@@ -1032,12 +1072,12 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1032
1072
  * Fix bug where `opts` didn't properly propagate to descendant `StripeObjects`
1033
1073
 
1034
1074
  ## 1.30.1 - 2015-10-10
1035
- * Fix bug that prevent lists of hashes from being URI-encoded properly
1075
+ * Fix bug that prevent lists of hashes from being URI-encoded properly
1036
1076
  * Fix bug where filter conditions were not making it past the first instantiated `ListObject`
1037
1077
 
1038
1078
  ## 1.30.0 - 2015-10-09
1039
- * Add `StripeObject#deleted?` for a reliable way to check whether an object is alive
1040
- * Deprecate `StripeObject#refresh_from`
1079
+ * Add `StripeObject#deleted?` for a reliable way to check whether an object is alive
1080
+ * Deprecate `StripeObject#refresh_from`
1041
1081
  * New parameter encoding scheme that doesn't use `URI.escape`
1042
1082
 
1043
1083
  ## 1.29.1 - 2015-10-06
@@ -1050,11 +1090,11 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1050
1090
  * Fix URI being referenced by file upload resources
1051
1091
 
1052
1092
  ## 1.28.0 - 2015-10-05
1053
- * Make StripeObject's #save "upsert"-like; creates an object if new
1054
- * Add #update_attributes to StripeObject for safe mass assignment
1055
- * Properly mass assign attributes on calls to #save
1056
- * Add question mark helpers for boolean fields (e.g. #paid? as well as old #paid)
1057
- * Fix a bug that broke the API for StripeObject initialization
1093
+ * Make StripeObject's #save "upsert"-like; creates an object if new
1094
+ * Add #update_attributes to StripeObject for safe mass assignment
1095
+ * Properly mass assign attributes on calls to #save
1096
+ * Add question mark helpers for boolean fields (e.g. #paid? as well as old #paid)
1097
+ * Fix a bug that broke the API for StripeObject initialization
1058
1098
  * Remove use of deprecated URI.escape
1059
1099
 
1060
1100
  ## 1.27.2 - 2015-09-25
@@ -1073,8 +1113,8 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1073
1113
  * Added support for refund listing and retrieval without an associated charge
1074
1114
 
1075
1115
  ## 1.24.0 - 2015-08-03
1076
- * Added support for deleting managed accounts
1077
- * Added support for dispute listing and retrieval
1116
+ * Added support for deleting managed accounts
1117
+ * Added support for dispute listing and retrieval
1078
1118
  * Bugfix: token objects now are the correct class
1079
1119
 
1080
1120
  ## 1.23.0 - 2015-07-06
@@ -1084,18 +1124,18 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1084
1124
  * Added support for bank accounts and debit cards in managed accounts (via the `external_accounts` param)
1085
1125
 
1086
1126
  ## 1.21.0 - 2015-04-14
1087
- * Remove TLS cert revocation check (all pre-heartbleed certs have expired)
1127
+ * Remove TLS cert revocation check (all pre-heartbleed certs have expired)
1088
1128
  * Bugfix: don't unset keys when they don't exist on StripeObject
1089
1129
 
1090
1130
  ## 1.20.4 - 2015-03-26
1091
- * Raise an error when explicitly passing nil as the API key on resource methods
1131
+ * Raise an error when explicitly passing nil as the API key on resource methods
1092
1132
  * Fix error when passing an API key to Balance.retrieve (github issue #232)
1093
1133
 
1094
1134
  ## 1.20.3 - 2015-03-13
1095
1135
  * Fixed error when updating certain resources (github issue #224)
1096
1136
 
1097
1137
  ## 1.20.2 - 2015-03-10
1098
- * Added support for updating nested hashes besides `metadata` (which was already supported)
1138
+ * Added support for updating nested hashes besides `metadata` (which was already supported)
1099
1139
  * Fixed bug in balance retrieval
1100
1140
 
1101
1141
  ## 1.20.1 - 2015-02-26
@@ -1108,231 +1148,231 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1108
1148
  * Fixed fetching upcoming invoice/paying invoice methods
1109
1149
 
1110
1150
  ## 1.19.0 - 2015-02-15
1111
- * Support for new Transfers /reversals endpoint
1112
- * Account retrieval now optionally accepts an account ID
1151
+ * Support for new Transfers /reversals endpoint
1152
+ * Account retrieval now optionally accepts an account ID
1113
1153
  * Better support for passing custom headers, like Stripe-Account, through requests
1114
1154
 
1115
1155
  ## 1.18.0 - 2015-01-21
1116
- * 1 major enhancement:
1156
+ * 1 major enhancement:
1117
1157
  * Added support for making bitcoin charges through BitcoinReceiver source object
1118
1158
 
1119
1159
  ## 1.17.3 - 2015-01-12
1120
- * 1 bugfix:
1160
+ * 1 bugfix:
1121
1161
  * Fixed API key propagation for ApplicationFee#refund
1122
1162
 
1123
1163
  ## 1.17.2 - 2015-01-08
1124
- * 1 bugfix:
1164
+ * 1 bugfix:
1125
1165
  * Fixed API key propagation for child resources
1126
1166
 
1127
1167
  ## 1.17.1 - 2015-01-07
1128
- * 2 minor enhacements:
1129
- * Fixed dependencies for Ruby versions less than 1.9.3
1168
+ * 2 minor enhacements:
1169
+ * Fixed dependencies for Ruby versions less than 1.9.3
1130
1170
  * Added deauthorize method to Account object
1131
1171
 
1132
1172
  ## 1.17.0 - 2014-12-15
1133
- * 1 major enhacement:
1173
+ * 1 major enhacement:
1134
1174
  * File uploads resource was added (for uploading pdf or image documents for disputes)
1135
1175
 
1136
1176
  ## 1.16.1 - 2014-12-19
1137
- * 2 minor enhancements:
1138
- * Ability to send idempotent requests
1177
+ * 2 minor enhancements:
1178
+ * Ability to send idempotent requests
1139
1179
  * Ability to specify stripe account as a header
1140
1180
 
1141
1181
  ## 1.16.0 - 2014-10-08
1142
- * 1 minor enhacement:
1182
+ * 1 minor enhacement:
1143
1183
  * Coupons now support update operations - useful for manipulating metadata
1144
1184
 
1145
1185
  ## 1.15.0 - 2014-07-26
1146
- * 1 major enhacement:
1186
+ * 1 major enhacement:
1147
1187
  * Application Fee refunds now a list instead of array
1148
1188
 
1149
1189
  ## 1.14.0 - 2014-06-17
1150
- * 1 major enhancement:
1190
+ * 1 major enhancement:
1151
1191
  * Add metadata for refunds and disputes
1152
1192
 
1153
1193
  ## 1.13.0 - 2014-05-28
1154
- * 1 major enhancement:
1194
+ * 1 major enhancement:
1155
1195
  * Support for canceling transfers
1156
1196
 
1157
1197
  ## 1.12.0 - 2014-05-21
1158
- * 1 major enhancement:
1198
+ * 1 major enhancement:
1159
1199
  * Support for cards for recipients
1160
1200
 
1161
1201
  ## 1.11.0 - 2014-04-09
1162
- * 2 minor enhancements:
1163
- * Update included ca bundles
1202
+ * 2 minor enhancements:
1203
+ * Update included ca bundles
1164
1204
  * Implement certificate blacklisting
1165
1205
 
1166
1206
  ## 1.10.2 - 2014-02-18
1167
- * 1 minor enhancement:
1168
- * Add create_subscription on Customer resources, so you can create
1169
- subscriptions without needing to retrieve the customer first (github
1207
+ * 1 minor enhancement:
1208
+ * Add create_subscription on Customer resources, so you can create
1209
+ subscriptions without needing to retrieve the customer first (github
1170
1210
  issue #120)
1171
1211
 
1172
1212
  ## 1.10.1 - 2014-02-03
1173
- * 1 bugfix:
1213
+ * 1 bugfix:
1174
1214
  * Fix marshaling of StripeObjects
1175
1215
 
1176
1216
  ## 1.10.0 - 2014-01-29
1177
- * 2 major enhancements
1178
- * Support for multiple subscriptions per customer
1179
- * Testing ruby 2.1.0
1180
-
1181
- * 2 minor enhancements
1182
- * Replace multi_json with json
1183
- * Allow #save to take opts (for :expand)
1184
-
1185
- * 1 bugfix
1217
+ * 2 major enhancements
1218
+ * Support for multiple subscriptions per customer
1219
+ * Testing ruby 2.1.0
1220
+
1221
+ * 2 minor enhancements
1222
+ * Replace multi_json with json
1223
+ * Allow #save to take opts (for :expand)
1224
+
1225
+ * 1 bugfix
1186
1226
  * Fix #try and #respond_to? on StripeObjects
1187
1227
 
1188
1228
  ## 1.9.9 - 2013-12-02
1189
- * 1 major enhancement
1229
+ * 1 major enhancement
1190
1230
  * Add ApplicationFee resource
1191
1231
 
1192
1232
  ## 1.8.9 - 2013-11-14
1193
- * 2 bugfixes:
1194
- * Fix gemspec dependencies so the gem doesn't break for Ruby 1.8 users
1233
+ * 2 bugfixes:
1234
+ * Fix gemspec dependencies so the gem doesn't break for Ruby 1.8 users
1195
1235
  * Fix api_resource_test to not use returns as a way of testing rescue behavior
1196
1236
 
1197
1237
  ## 1.8.8 - 2013-10-3
1198
- * 1 major enhancement
1238
+ * 1 major enhancement
1199
1239
  * Add support for metadata on resources
1200
1240
 
1201
1241
  ## 1.8.7 - 2013-08-18
1202
- * 1 minor enhancement
1242
+ * 1 minor enhancement
1203
1243
  * Add support for closing disputes.
1204
1244
 
1205
1245
  ## 1.8.6 - 2013-08-13
1206
- * 1 major enhancement
1246
+ * 1 major enhancement
1207
1247
  * Add Balance and BalanceTransaction resources
1208
1248
 
1209
1249
  ## 1.8.5 - 2013-08-12
1210
- * 1 major enhancement
1211
- * Add support for unsetting attributes by setting to nil. This permits unsetting email and description on customers and description on charges. Setting properties to a blank string is now an error.
1250
+ * 1 major enhancement
1251
+ * Add support for unsetting attributes by setting to nil. This permits unsetting email and description on customers and description on charges. Setting properties to a blank string is now an error.
1212
1252
  * Attempting to set an object's id is now an error
1213
1253
 
1214
1254
  ## 1.8.4 - 2013-07-11
1215
- * 1 major enhancement
1255
+ * 1 major enhancement
1216
1256
  * Add support for new cards API (Stripe API version - 2013-07-05)
1217
1257
 
1218
1258
  ## 1.8.3 - 2013-05-06
1219
- * 1 bugfix:
1259
+ * 1 bugfix:
1220
1260
  * Fix handling of per-call API keys (github issue #67)
1221
1261
 
1222
1262
  ## 1.8.2 - 2013-05-01
1223
- * 3 minor enhancements:
1224
- * Use to_sym instead of type checking for minor performance improvement (github issue #59)
1225
- * Handle low-memory situations without throwing an exception (github issue #61)
1226
- * Add an Customer#upcoming_invoice convenience method (github issue #65)
1227
-
1228
- * 1 bugfix:
1263
+ * 3 minor enhancements:
1264
+ * Use to_sym instead of type checking for minor performance improvement (github issue #59)
1265
+ * Handle low-memory situations without throwing an exception (github issue #61)
1266
+ * Add an Customer#upcoming_invoice convenience method (github issue #65)
1267
+
1268
+ * 1 bugfix:
1229
1269
  * Allow updating resources without first retrieving them (github issue #60)
1230
1270
 
1231
1271
  ## 1.8.1 - 2013-04-19
1232
- * 1 minor enhancement:
1272
+ * 1 minor enhancement:
1233
1273
  * Add support for specifying an API key when retrieving an upcoming invoice
1234
1274
 
1235
1275
  ## 1.8.0 - 2013-04-11
1236
- * 1 major enhancement:
1237
- * Add new Recipient resource
1276
+ * 1 major enhancement:
1277
+ * Add new Recipient resource
1238
1278
  * Allow Transfers to be createable
1239
1279
 
1240
1280
  ## 1.7.11 - 2013-02-21
1241
- * 1 minor enhancement
1281
+ * 1 minor enhancement
1242
1282
  * Add 'id' to the list of permanent attributes
1243
1283
 
1244
1284
  ## 1.7.10 - 2013-02-01
1245
- * 1 major enhancement
1285
+ * 1 major enhancement
1246
1286
  * Add support for passing options when retrieving Stripe objects e.g., Stripe::Charge.retrieve({id:"foo", expand:["customer"]}) Stripe::Charge("foo") is still supported as well
1247
1287
 
1248
1288
  ## 1.7.9 - 2013-01-15
1249
- * 1 major enhancement
1289
+ * 1 major enhancement
1250
1290
  * Add support for setting a Stripe API version override.
1251
1291
 
1252
1292
  ## 1.7.8 - 2012-11-21
1253
- * 1 bugfix
1293
+ * 1 bugfix
1254
1294
  * Relax the version constraint on multi_json (github issue #44)
1255
1295
 
1256
1296
  ## 1.7.7 - 2012-11-07
1257
- * 1 minor enhancement:
1258
- * Add support for updating charge disputes
1259
-
1260
- * 1 bugfix
1297
+ * 1 minor enhancement:
1298
+ * Add support for updating charge disputes
1299
+
1300
+ * 1 bugfix
1261
1301
  * Fix Account API resource bug
1262
1302
 
1263
1303
  ## 1.7.6 - 2012-10-30
1264
- * 1 major enhancement
1304
+ * 1 major enhancement
1265
1305
  * Add support for creating invoices
1266
1306
 
1267
1307
  ## 1.7.5 - 2012-10-25
1268
- * 1 major enhancement
1308
+ * 1 major enhancement
1269
1309
  * Add support for new API lists
1270
1310
 
1271
1311
  ## 1.7.4 - 2012-10-08
1272
- * 1 bugfix
1273
- * Fix bug introduced in 1.7.3 calling API methods that take no
1312
+ * 1 bugfix
1313
+ * Fix bug introduced in 1.7.3 calling API methods that take no
1274
1314
  arguments, like Stripe::Invoice#pay (github issue #42)
1275
1315
 
1276
1316
  ## 1.7.3 - 2012-09-14
1277
- * 2 bugfixes
1278
- * Make sure that both keys and values of GET params are URL-encoded. NOTE: If you were previously URL-encoding values yourself, you may need to adjust your code.
1317
+ * 2 bugfixes
1318
+ * Make sure that both keys and values of GET params are URL-encoded. NOTE: If you were previously URL-encoding values yourself, you may need to adjust your code.
1279
1319
  * URL-encode POST params directly, instead of allowing rest-client to do it to work around an unfortunate interaction with the hashery gem (github issue #38)
1280
1320
 
1281
1321
  ## 1.7.2 - 2012-08-31
1282
- * 1 major enhancement
1322
+ * 1 major enhancement
1283
1323
  * Add support for new pay and update methods for Invoice objects
1284
1324
 
1285
1325
  ## 1.7.1 - 2012-08-15
1286
- * 1 major enhancement
1326
+ * 1 major enhancement
1287
1327
  * Add new Account API resource
1288
1328
 
1289
1329
  ## 1.7.0 - 2012-05-17
1290
- * 3 major enhancements:
1291
- * Switch from vendored stripe-json to multi_json for all JSON parsing and rendering. This should not impact programmatic usage of the library, but may cause small rendering differences from, e.g., StripeObject#inspect (github issue #22)
1292
- * Add new delete_discount method to Customer objects
1293
- * Add new Transfer API resource
1294
-
1295
- * 2 minor enhancements:
1296
- * Switch from HTTP Basic auth to Bearer auth (Note: Stripe will support Basic auth for the indefinite future, but recommends Bearer auth when possible going forward)
1330
+ * 3 major enhancements:
1331
+ * Switch from vendored stripe-json to multi_json for all JSON parsing and rendering. This should not impact programmatic usage of the library, but may cause small rendering differences from, e.g., StripeObject#inspect (github issue #22)
1332
+ * Add new delete_discount method to Customer objects
1333
+ * Add new Transfer API resource
1334
+
1335
+ * 2 minor enhancements:
1336
+ * Switch from HTTP Basic auth to Bearer auth (Note: Stripe will support Basic auth for the indefinite future, but recommends Bearer auth when possible going forward)
1297
1337
  * Numerous test suite improvements
1298
1338
 
1299
1339
  ## 1.6.3 - 2012-03-22
1300
- * 1 bugfix:
1340
+ * 1 bugfix:
1301
1341
  * Encode GET query strings ourselves instead of using rest-client to work around a bug
1302
1342
 
1303
1343
  ## 1.6.2 - 2012-02-24
1304
- * 1 bugfix:
1344
+ * 1 bugfix:
1305
1345
  * Correct argument handling in StripeObject#as_json
1306
1346
 
1307
1347
  ## 1.6.1 - 2012-02-22
1308
- * 1 bugfix:
1348
+ * 1 bugfix:
1309
1349
  * Fix StripeObject#inspect when ActiveSupport 3.0 is loaded
1310
1350
 
1311
1351
  ## 1.6.0 - 2012-02-01
1312
- * A whole bunch of releases between 1.5.0 and 1.6.0, but few changes, mainly the addition of plans, coupons, events, and tokens
1352
+ * A whole bunch of releases between 1.5.0 and 1.6.0, but few changes, mainly the addition of plans, coupons, events, and tokens
1313
1353
  * 1.6.0 also contains a new inspect/to_string implementation
1314
1354
 
1315
1355
  ## 1.5.0 - 2011-05-09
1316
- * 1 major enhancement:
1356
+ * 1 major enhancement:
1317
1357
  * Update for new RESTful API
1318
1358
 
1319
1359
  ## 1.3.4 - 2011-01-07
1320
- * 1 major enhancement:
1360
+ * 1 major enhancement:
1321
1361
  * Rename to Stripe
1322
1362
 
1323
1363
  ## 1.2 - 2010-06-06
1324
- * 1 major enhancement:
1364
+ * 1 major enhancement:
1325
1365
  * Support for the set_customer_subscription and delete_customer API methods
1326
1366
 
1327
1367
  ## 1.1 - 2010-03-14
1328
- * 1 major enhancement:
1368
+ * 1 major enhancement:
1329
1369
  * Support for recurring billing
1330
1370
 
1331
1371
  ## 1.0 - 2010-01-05
1332
- * 1 major enhancement:
1333
- * Initial release
1334
-
1335
- <!--
1336
- # vim: set tw=0:
1372
+ * 1 major enhancement:
1373
+ * Initial release
1374
+
1375
+ <!--
1376
+ # vim: set tw=0:
1337
1377
  -->
1338
1378
 
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v457
1
+ v482
data/VERSION CHANGED
@@ -1 +1 @@
1
- 8.8.0-beta.1
1
+ 9.0.0-beta.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2022-11-15"
7
- PREVIEW = "2023-07-13.preview-v2"
6
+ CURRENT = "2023-08-16"
7
+ PREVIEW = "2023-08-11.preview-v2"
8
8
  end
9
9
  end
@@ -86,6 +86,8 @@ module Stripe
86
86
  PromotionCode::OBJECT_NAME => PromotionCode,
87
87
  Quote::OBJECT_NAME => Quote,
88
88
  QuotePhase::OBJECT_NAME => QuotePhase,
89
+ QuotePreviewInvoice::OBJECT_NAME => QuotePreviewInvoice,
90
+ QuotePreviewSchedule::OBJECT_NAME => QuotePreviewSchedule,
89
91
  Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
90
92
  Radar::ValueList::OBJECT_NAME => Radar::ValueList,
91
93
  Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@@ -0,0 +1,40 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Invoices are statements of amounts owed by a customer, and are either
6
+ # generated one-off, or generated periodically from a subscription.
7
+ #
8
+ # They contain [invoice items](https://stripe.com/docs/api#invoiceitems), and proration adjustments
9
+ # that may be caused by subscription upgrades/downgrades (if necessary).
10
+ #
11
+ # If your invoice is configured to be billed through automatic charges,
12
+ # Stripe automatically finalizes your invoice and attempts payment. Note
13
+ # that finalizing the invoice,
14
+ # [when automatic](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection), does
15
+ # not happen immediately as the invoice is created. Stripe waits
16
+ # until one hour after the last webhook was successfully sent (or the last
17
+ # webhook timed out after failing). If you (and the platforms you may have
18
+ # connected to) have no webhooks configured, Stripe waits one hour after
19
+ # creation to finalize the invoice.
20
+ #
21
+ # If your invoice is configured to be billed by sending an email, then based on your
22
+ # [email settings](https://dashboard.stripe.com/account/billing/automatic),
23
+ # Stripe will email the invoice to your customer and await payment. These
24
+ # emails can contain a link to a hosted page to pay the invoice.
25
+ #
26
+ # Stripe applies any customer credit on the account before determining the
27
+ # amount due for the invoice (i.e., the amount that will be actually
28
+ # charged). If the amount due for the invoice is less than Stripe's [minimum allowed charge
29
+ # per currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts), the
30
+ # invoice is automatically marked paid, and we add the amount due to the
31
+ # customer's credit balance which is applied to the next invoice.
32
+ #
33
+ # More details on the customer's credit balance are
34
+ # [here](https://stripe.com/docs/billing/customer/balance).
35
+ #
36
+ # Related guide: [Send invoices to customers](https://stripe.com/docs/billing/invoices/sending)
37
+ class QuotePreviewInvoice < APIResource
38
+ OBJECT_NAME = "quote_preview_invoice"
39
+ end
40
+ end
@@ -0,0 +1,8 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class QuotePreviewSchedule < APIResource
6
+ OBJECT_NAME = "quote_preview_schedule"
7
+ end
8
+ end
@@ -73,6 +73,8 @@ require "stripe/resources/product"
73
73
  require "stripe/resources/promotion_code"
74
74
  require "stripe/resources/quote"
75
75
  require "stripe/resources/quote_phase"
76
+ require "stripe/resources/quote_preview_invoice"
77
+ require "stripe/resources/quote_preview_schedule"
76
78
  require "stripe/resources/radar/early_fraud_warning"
77
79
  require "stripe/resources/radar/value_list"
78
80
  require "stripe/resources/radar/value_list_item"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "8.8.0-beta.1"
4
+ VERSION = "9.0.0-beta.1"
5
5
  end
@@ -108,8 +108,9 @@ module Stripe
108
108
  end
109
109
 
110
110
  if tolerance && timestamp < Time.now - tolerance
111
+ formatted_timestamp = Time.at(timestamp).strftime("%F %T")
111
112
  raise SignatureVerificationError.new(
112
- "Timestamp outside the tolerance zone (#{Time.at(timestamp)})",
113
+ "Timestamp outside the tolerance zone (#{formatted_timestamp})",
113
114
  header, http_body: payload
114
115
  )
115
116
  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: 8.8.0.pre.beta.1
4
+ version: 9.0.0.pre.beta.1
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-24 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.
@@ -125,6 +125,8 @@ files:
125
125
  - lib/stripe/resources/promotion_code.rb
126
126
  - lib/stripe/resources/quote.rb
127
127
  - lib/stripe/resources/quote_phase.rb
128
+ - lib/stripe/resources/quote_preview_invoice.rb
129
+ - lib/stripe/resources/quote_preview_schedule.rb
128
130
  - lib/stripe/resources/radar/early_fraud_warning.rb
129
131
  - lib/stripe/resources/radar/value_list.rb
130
132
  - lib/stripe/resources/radar/value_list_item.rb