stripe 10.3.0.pre.beta.1 → 10.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -243
  3. data/Makefile +1 -1
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +4 -14
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_operations/request.rb +13 -13
  8. data/lib/stripe/api_operations/save.rb +1 -1
  9. data/lib/stripe/api_version.rb +0 -1
  10. data/lib/stripe/object_types.rb +0 -21
  11. data/lib/stripe/resources/financial_connections/account.rb +0 -39
  12. data/lib/stripe/resources/invoice.rb +0 -21
  13. data/lib/stripe/resources/quote.rb +0 -94
  14. data/lib/stripe/resources/subscription_schedule.rb +0 -18
  15. data/lib/stripe/resources/terminal/reader.rb +0 -54
  16. data/lib/stripe/resources.rb +0 -20
  17. data/lib/stripe/singleton_api_resource.rb +19 -2
  18. data/lib/stripe/stripe_client.rb +40 -68
  19. data/lib/stripe/stripe_configuration.rb +1 -2
  20. data/lib/stripe/util.rb +1 -8
  21. data/lib/stripe/version.rb +1 -1
  22. data/lib/stripe.rb +0 -46
  23. metadata +4 -25
  24. data/lib/stripe/request_signing_authenticator.rb +0 -79
  25. data/lib/stripe/resources/account_notice.rb +0 -14
  26. data/lib/stripe/resources/capital/financing_offer.rb +0 -32
  27. data/lib/stripe/resources/capital/financing_summary.rb +0 -12
  28. data/lib/stripe/resources/capital/financing_transaction.rb +0 -13
  29. data/lib/stripe/resources/confirmation_token.rb +0 -11
  30. data/lib/stripe/resources/customer_session.rb +0 -12
  31. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -13
  32. data/lib/stripe/resources/financial_connections/transaction.rb +0 -13
  33. data/lib/stripe/resources/gift_cards/card.rb +0 -25
  34. data/lib/stripe/resources/gift_cards/transaction.rb +0 -56
  35. data/lib/stripe/resources/invoice_payment.rb +0 -11
  36. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -69
  37. data/lib/stripe/resources/issuing/personalization_design.rb +0 -77
  38. data/lib/stripe/resources/issuing/physical_bundle.rb +0 -13
  39. data/lib/stripe/resources/margin.rb +0 -14
  40. data/lib/stripe/resources/order.rb +0 -89
  41. data/lib/stripe/resources/quote_phase.rb +0 -29
  42. data/lib/stripe/resources/quote_preview_invoice.rb +0 -42
  43. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -10
  44. data/lib/stripe/resources/tax/form.rb +0 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99e6b9749e8b1212d2c4b42f40c49b220ea10132346b5c8a4eb96894bc06247f
4
- data.tar.gz: 76680576e92e252db64df9543df2b1befde7dd1bff4c2d4d74fe946af068a60c
3
+ metadata.gz: 78c3e10c5e7afde049a2affb5bbb230e4e4525193353bcf4921ff2bdb7219ce9
4
+ data.tar.gz: 6e194c85cf1fe5b37289e5912be22a9ae885ad8aa4c66752a5181d7767cbdc1c
5
5
  SHA512:
6
- metadata.gz: c65eb672e988647ccb5844d722f57cb82d6d7ac2da7e4ee095678104ae8f2a04c2e2bb65abf34aecfcf235838b18cb4a93f6cd3b7d96075f2e4d8a7308b57efc
7
- data.tar.gz: 8225c92b8ee117d57a968bbe13b2f9edc274ffae4fd3fd669a749a1e34a9efa1f34965db93ac435d7f8026ed5a1c40fc373b487e80a30be36a5eb0f2728037b0
6
+ metadata.gz: 28c94abdfad1445b7c4f059bbda77e05638fd5b0fe3347a2cac7529ea632ede0a17db8e43dff34ed3e22488853cfa0494f05776dcdd042ace5362de5d920e106
7
+ data.tar.gz: b06f47d94deb9782211c81046795942a4b8787b13238e0e85c2dbee4f1aa946de9242d488031a0d87abe78ab0e3a61ca0a9689c19562fc9e41c5ec0d13720e39
data/CHANGELOG.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Changelog
2
-
3
- ## 10.3.0-beta.1 - 2023-11-30
4
- * [#1298](https://github.com/stripe/stripe-ruby/pull/1298) Update generated code for beta
5
- * [#1296](https://github.com/stripe/stripe-ruby/pull/1296) Merge master into beta
2
+ ## 10.3.0 - 2023-12-14
3
+ * [#1294](https://github.com/stripe/stripe-ruby/pull/1294) Support sending parameters inside singleton retrieve
6
4
 
7
5
  ## 10.2.0 - 2023-11-30
8
6
  * [#1292](https://github.com/stripe/stripe-ruby/pull/1292) Update generated code
@@ -16,26 +14,12 @@
16
14
 
17
15
  * [#1288](https://github.com/stripe/stripe-ruby/pull/1288) Update generated code
18
16
 
19
- ## 10.2.0-beta.1 - 2023-11-02
20
- * [#1287](https://github.com/stripe/stripe-ruby/pull/1287) Update generated code for beta
21
- * Add support for `attach_payment_intent` method on resource `Invoice`
22
- * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
23
17
 
24
18
  ## 10.1.0 - 2023-11-02
25
19
  * [#1286](https://github.com/stripe/stripe-ruby/pull/1286) Update generated code
26
20
  * Add support for new resource `Tax.Registration`
27
21
  * Add support for `create`, `list`, and `update` methods on resource `Registration`
28
22
 
29
- ## 10.1.0-beta.2 - 2023-10-26
30
- * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
31
- * Add support for new resource `Margin`
32
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Margin`
33
-
34
- ## 10.1.0-beta.1 - 2023-10-17
35
- * [#1284](https://github.com/stripe/stripe-ruby/pull/1284) Update generated code for beta
36
- - Update pinned API version to `2023-10-16`
37
- * [#1282](https://github.com/stripe/stripe-ruby/pull/1282) Update generated code for beta
38
-
39
23
  ## 10.0.0 - 2023-10-16
40
24
  * This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe-ruby`.
41
25
  * [#1283](https://github.com/stripe/stripe-ruby/pull/1283) Update generated code
@@ -43,33 +27,11 @@
43
27
  * [#1281](https://github.com/stripe/stripe-ruby/pull/1281) Update generated code
44
28
  * Documentation only changes
45
29
 
46
- ## 9.5.0-beta.2 - 2023-10-12
47
- * [#1280](https://github.com/stripe/stripe-ruby/pull/1280) Update generated code for beta
48
- * Add support for new resources `AccountNotice` and `Issuing.CreditUnderwritingRecord`
49
- * Add support for `list`, `retrieve`, and `update` methods on resource `AccountNotice`
50
- * Add support for `correct`, `create_from_application`, `create_from_proactive_review`, `list`, `report_decision`, and `retrieve` methods on resource `CreditUnderwritingRecord`
51
-
52
- ## 9.5.0-beta.1 - 2023-10-05
53
- * [#1278](https://github.com/stripe/stripe-ruby/pull/1278) Update generated code for beta
54
- * Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
55
- * Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
56
- * Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote`
57
-
58
30
  ## 9.4.0 - 2023-10-05
59
31
  * [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code
60
32
  * Add support for new resources `Issuing.Token`
61
33
  * Add support for `list`, `retrieve`, and `update` methods on resource `Token`
62
34
 
63
- ## 9.4.0-beta.3 - 2023-09-28
64
- * [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
65
- * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
66
-
67
- ## 9.4.0-beta.2 - 2023-09-21
68
- * [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
69
-
70
- ## 9.4.0-beta.1 - 2023-09-14
71
- * Updated stable APIs to the latest version
72
-
73
35
  ## 9.3.0 - 2023-09-14
74
36
  * [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
75
37
  * Add support for new resource `PaymentMethodConfiguration`
@@ -78,38 +40,18 @@
78
40
  * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
79
41
  * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
80
42
 
81
- ## 9.3.0-beta.1 - 2023-09-07
82
- * [#1269](https://github.com/stripe/stripe-ruby/pull/1269) Update generated code for beta
83
- * Release specs are identical.
84
- * [#1268](https://github.com/stripe/stripe-ruby/pull/1268) Update generated code for beta
85
- * Remove support for `submit_card` test helper method on resource `Issuing.Card`
86
- * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
87
- * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
88
- * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
89
- * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
90
- * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
91
-
92
- * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
93
-
94
- * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
95
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
96
- * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
97
-
98
43
  ## 9.2.0 - 2023-09-07
99
44
  * [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
100
45
  * Add support for new resource `PaymentMethodDomain`
101
46
  * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
102
47
 
103
- ## 9.2.0-beta.1 - 2023-08-31
104
- * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
105
- * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
106
-
107
48
  ## 9.1.0 - 2023-08-31
108
49
  * [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
109
50
  * Add support for new resource `AccountSession`
110
51
  * Add support for `create` method on resource `AccountSession`
111
52
  * [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
112
53
 
54
+
113
55
  ## 9.0.0 - 2023-08-16
114
56
  **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
115
57
 
@@ -142,39 +84,10 @@
142
84
 
143
85
  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.
144
86
 
145
- ## 9.0.0-beta.1 - 2023-08-24
146
- * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
147
- * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
148
- * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
149
-
150
- ## 8.8.0-beta.1 - 2023-08-10
151
- * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
152
- * Updated stable APIs to the latest version
153
-
154
87
  ## 8.7.0 - 2023-08-10
155
88
  * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
156
89
  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.
157
90
 
158
- ## 8.7.0-beta.3 - 2023-08-03
159
- * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
160
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
161
- * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
162
-
163
- ## 8.7.0-beta.2 - 2023-07-28
164
- * [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
165
- * Add support for new resource `Tax.Form`
166
- * Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
167
- * [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
168
- * [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
169
-
170
- ## 8.7.0-beta.1 - 2023-07-13
171
- * [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
172
- Release specs are identical.
173
- * [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
174
- * Add support for new resource `PaymentMethodConfiguration`
175
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
176
- * [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
177
-
178
91
  ## 8.6.0 - 2023-07-13
179
92
  * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
180
93
  * Add support for new resource `Tax.Settings`
@@ -203,37 +116,6 @@
203
116
 
204
117
  * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
205
118
 
206
- ## 8.6.0-beta.6 - 2023-06-22
207
- * [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
208
- * Add support for new resource `CustomerSession`
209
- * Add support for `create` method on resource `CustomerSession`
210
- * [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
211
- * [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
212
-
213
- ## 8.6.0-beta.5 - 2023-06-01
214
- * [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
215
- * [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
216
- * [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
217
- * [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
218
-
219
- ## 8.6.0-beta.4 - 2023-05-19
220
- * [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
221
- * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
222
- * [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
223
- * [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
224
- * [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
225
-
226
- ## 8.6.0-beta.3 - 2023-04-17
227
- * [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
228
- * [#1210](https://github.com/stripe/stripe-ruby/pull/1210), [#1212](https://github.com/stripe/stripe-ruby/pull/1212), [#1213](https://github.com/stripe/stripe-ruby/pull/1213) Add support for request signing
229
-
230
- ## 8.6.0-beta.2 - 2023-04-13
231
- * [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
232
- * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
233
- * [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
234
-
235
- ## 8.6.0-beta.1 - 2023-03-30
236
- * [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
237
119
 
238
120
  ## 8.5.0 - 2023-03-30
239
121
  * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
@@ -241,11 +123,6 @@
241
123
  * 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.
242
124
  * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
243
125
 
244
- ## 8.5.0-beta.1 - 2023-03-23
245
- * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
246
- * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
247
- * Add support for `collect_inputs` method on resource `Terminal.Reader`
248
-
249
126
  ## 8.4.0 - 2023-03-23
250
127
  * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
251
128
  * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
@@ -253,91 +130,18 @@
253
130
  * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
254
131
  * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
255
132
 
256
- ## 8.4.0-beta.4 - 2023-03-16
257
- * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
258
- * Add support for `create_from_calculation` method on resource `Tax.Transaction`
259
- * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
260
- * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
261
- * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
262
- * Remove support for `retrieve` method on resource `FinancingSummary`
263
- * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
264
-
265
- ## 8.4.0-beta.3 - 2023-03-09
266
- * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
267
- * Updated stable APIs to the latest version
268
- * Remove support for `list_transactions` method on resource `Tax.Transaction`
269
-
270
- ## 8.4.0-beta.2 - 2023-03-03
271
- * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
272
- * Updated stable APIs to the latest version
273
- * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
274
- * Add support for `list` and `retrieve` methods on resource `CardBundle`
275
- * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
276
-
277
- ## 8.4.0-beta.1 - 2023-02-23
278
- * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
279
- * Updated stable APIs to the latest version
280
-
281
133
  ## 8.3.0 - 2023-02-16
282
134
  * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
283
135
  * Add support for `refund_payment` method on resource `Terminal.Reader`
284
136
 
285
- ## 8.3.0-beta.1 - 2023-02-02
286
- * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
287
- * Updated stable APIs to the latest version
288
- * Add support for new resource `FinancialConnections.Transaction`
289
- * Add support for `list` method on resource `Transaction`
290
-
291
137
  ## 8.2.0 - 2023-02-02
292
138
  * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
293
139
  * Add support for `resume` method on resource `Subscription`
294
140
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
295
141
 
296
- ## 8.2.0-beta.3 - 2023-01-26
297
- * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
298
- * Updated stable APIs to the latest version
299
- * Add support for `list_transactions` method on resource `Tax.Transaction`
300
-
301
- ## 8.2.0-beta.2 - 2023-01-19
302
- * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
303
- * Updated stable APIs to the latest version
304
- * Add support for `Tax.Settings` resource.
305
-
306
- ## 8.2.0-beta.1 - 2023-01-12
307
- * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
308
- * Updated stable APIs to the latest version
309
- * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
310
- * Add support for `Tax::Register` resource
311
-
312
142
  ## 8.1.0 - 2023-01-12
313
143
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
314
144
 
315
- ## 8.1.0-beta.4 - 2023-01-05
316
- * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
317
- * Updated stable APIs to the latest version
318
- * Add support for `mark_stale_quote` method on resource `Quote`
319
-
320
- ## 8.1.0-beta.3 - 2022-12-22
321
- * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
322
- * Updated stable APIs to the latest version
323
- * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
324
-
325
- ## 8.1.0-beta.2 - 2022-12-15
326
- * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
327
- * Updated stable APIs to the latest version
328
- * Add support for new resources `TaxCalculation`, and `TaxTransaction`
329
- * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
330
- * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
331
- * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
332
- * Updated stable APIs to the latest version
333
- * Add support for new resource `QuoteLine`.
334
-
335
- ## 8.1.0-beta.1 - 2022-12-08
336
- * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
337
- * Updated stable APIs to the latest version
338
- * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
339
- * Updated stable APIs to the latest version
340
-
341
145
  ## 8.0.0 - 2022-11-16
342
146
  * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
343
147
 
@@ -345,29 +149,30 @@ Breaking changes that arose during code generation of the library that we postpo
345
149
 
346
150
  "⚠️" symbol highlights breaking changes.
347
151
 
348
- ## 7.2.0-beta.5 - 2022-11-02
349
- * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
350
- * Updated beta APIs to the latest stable version
351
- * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
352
- * Updated stable APIs to the latest version
353
-
354
- ## 7.2.0-beta.4 - 2022-10-07
355
- * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
152
+ ### Deprecated
153
+ - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
154
+ ``` ruby
155
+ # before
156
+ refund = Stripe::Refund.retrieve("re_123")
157
+ refund.description = "Refund description"
158
+ refund.save
159
+
160
+ # after
161
+ Stripe::Refund.update("re_123", description: "Refund description")
162
+ ```
356
163
 
357
- ## 7.2.0-beta.3 - 2022-09-26
358
- * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
359
- * Updated stable APIs to the latest version
360
- * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
164
+ ### ⚠️ Removed
165
+ - Removed deprecated `Sku` resource.
166
+ - Removed deprecated `Orders` resource.
167
+ - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
168
+ ```ruby
169
+ # before
170
+ Stripe::Subscription::delete("sub_12345")
361
171
 
362
- ## 7.2.0-beta.2 - 2022-08-26
363
- * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
364
- * Updated stable APIs to the latest version
365
- * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
172
+ # after
173
+ Stripe::Subscription::cancel("sub_12345")
174
+ ```
366
175
 
367
- ## 7.2.0-beta.1 - 2022-08-23
368
- * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
369
- - Updated stable APIs to the latest version
370
- - `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)
371
176
 
372
177
  ## 7.1.0 - 2022-08-19
373
178
  * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@@ -376,16 +181,6 @@ Breaking changes that arose during code generation of the library that we postpo
376
181
  * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
377
182
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
378
183
 
379
- ## 7.1.0-beta.2 - 2022-08-11
380
- * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
381
- - Updated stable APIs to the latest version
382
- - Add `refund_payment` method to Terminal resource
383
-
384
- ## 7.1.0-beta.1 - 2022-08-03
385
- * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
386
- - Updated stable APIs to the latest version
387
- - Added the `Order` resource support
388
-
389
184
  ## 7.0.0 - 2022-08-02
390
185
 
391
186
  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.
@@ -397,19 +192,21 @@ Breaking changes that arose during code generation of the library that we postpo
397
192
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
398
193
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
399
194
 
400
- ## 6.6.0-beta.1 - 2022-07-22
401
- * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
402
- - Updated stable APIs to the latest version
403
- - Add `QuotePhase` resource
404
- * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
405
- - Updated stable APIs to the latest version
406
- - Add `SubscriptionSchedule.amend` method.
407
- * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
408
- - Include `server_side_confirmation_beta=v1` beta
409
- - Add `secretKeyConfirmation` to `PaymentIntent`
410
- * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
411
- - Updated stable APIs to the latest version
412
- * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
195
+ ### ⚠️ Changed
196
+ * `retrieve_cash_balance` and `update_cash_balance` methods on `Customer` resource no longer requires the second argument to always be `nil`. The methods now now take in `customer_id`, `params`, and `opts` parameters.
197
+ * Update default bundle of CA certificates to April 26, 2022.
198
+
199
+ ### Deprecated
200
+ * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
201
+
202
+ ### ⚠️ Removed
203
+ * Remove `details` method from `Issuing.Card` resource. The method was not supported.
204
+ * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
205
+ * Remove `create` method from `ReportType` resource. The method was not supported.
206
+ * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
207
+ * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
208
+ * Remove ability to list `Card` resource for a `Recipient`.
209
+ * Remove `cancel` method from `Transfer` resource. The method was deprecated.
413
210
 
414
211
  ## 6.5.0 - 2022-06-29
415
212
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -439,6 +236,8 @@ Breaking changes that arose during code generation of the library that we postpo
439
236
  * 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`
440
237
  * Add support for `retrieve_payment_method` method on resource `Customer`
441
238
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
239
+
240
+
442
241
 
443
242
  ## 6.0.0 - 2022-05-09
444
243
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -454,6 +253,7 @@ Breaking changes that arose during code generation of the library that we postpo
454
253
  ## 5.55.0 - 2022-05-05
455
254
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
456
255
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
256
+
457
257
 
458
258
  ## 5.54.0 - 2022-05-03
459
259
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1484,4 +1284,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1484
1284
  <!--
1485
1285
  # vim: set tw=0:
1486
1286
  -->
1487
-
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 --auto-correct
8
+ bundle exec rubocop -o /dev/null --autocorrect
9
9
 
10
10
  ci-test:
11
11
  bundle install && bundle exec rake test
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v691
1
+ v682
data/README.md CHANGED
@@ -291,10 +291,11 @@ Stripe.set_app_info('MyAwesomePlugin', version: '1.2.34', url: 'https://myawesom
291
291
  This information is passed along when the library makes calls to the Stripe
292
292
  API.
293
293
 
294
- ### Request latency telemetry
294
+ ### Telemetry
295
295
 
296
- By default, the library sends request latency telemetry to Stripe. These
297
- numbers help Stripe improve the overall latency of its API for all users.
296
+ By default, the library sends telemetry to Stripe regarding request latency and feature usage. These
297
+ numbers help Stripe improve the overall latency of its API for all users, and
298
+ improve popular features.
298
299
 
299
300
  You can disable this behavior if you prefer:
300
301
 
@@ -323,17 +324,6 @@ If your beta feature requires a `Stripe-Version` header to be sent, use the `Str
323
324
  Stripe.api_version += "; feature_beta=v3"
324
325
  ```
325
326
 
326
- ### Custom requests
327
-
328
- If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `raw_request` method on `Stripe`.
329
-
330
- ```ruby
331
- resp = Stripe.raw_request(:post, "/v1/beta_endpoint", {param: 123}, {stripe_version: "2022-11-15; feature_beta=v3"})
332
-
333
- # (Optional) resp is a StripeResponse. You can use `Stripe.deserialize` to get a StripeObject.
334
- deserialized_resp = Stripe.deserialize(resp.http_body)
335
- ```
336
-
337
327
  ## Support
338
328
 
339
329
  New features and bug fixes are released on the latest major version of the Stripe Ruby library. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.3.0-beta.1
1
+ 10.3.0
@@ -5,14 +5,14 @@ module Stripe
5
5
  module Request
6
6
  module ClassMethods
7
7
  def execute_resource_request(method, url,
8
- params = {}, opts = {})
8
+ params = {}, opts = {}, usage = [])
9
9
  execute_resource_request_internal(
10
- :execute_request, method, url, params, opts
10
+ :execute_request, method, url, params, opts, usage
11
11
  )
12
12
  end
13
13
 
14
14
  def execute_resource_request_stream(method, url,
15
- params = {}, opts = {},
15
+ params = {}, opts = {}, usage = [],
16
16
  &read_body_chunk_block)
17
17
  execute_resource_request_internal(
18
18
  :execute_request_stream,
@@ -20,18 +20,19 @@ module Stripe
20
20
  url,
21
21
  params,
22
22
  opts,
23
+ usage,
23
24
  &read_body_chunk_block
24
25
  )
25
26
  end
26
27
 
27
- private def request_stripe_object(method:, path:, params:, opts: {})
28
- resp, opts = execute_resource_request(method, path, params, opts)
28
+ private def request_stripe_object(method:, path:, params:, opts: {}, usage: [])
29
+ resp, opts = execute_resource_request(method, path, params, opts, usage)
29
30
  Util.convert_to_stripe_object_with_params(resp.data, params, opts)
30
31
  end
31
32
 
32
33
  private def execute_resource_request_internal(client_request_method_sym,
33
34
  method, url,
34
- params, opts,
35
+ params, opts, usage,
35
36
  &read_body_chunk_block)
36
37
  params ||= {}
37
38
 
@@ -47,15 +48,13 @@ module Stripe
47
48
  api_key = headers.delete(:api_key)
48
49
  api_base = headers.delete(:api_base)
49
50
  client = headers.delete(:client)
50
- api_mode = headers.delete(:api_mode)
51
51
  # Assume all remaining opts must be headers
52
52
 
53
53
  resp, opts[:api_key] = client.send(
54
54
  client_request_method_sym,
55
55
  method, url,
56
56
  api_base: api_base, api_key: api_key,
57
- headers: headers, params: params,
58
- api_mode: api_mode,
57
+ headers: headers, params: params, usage: usage,
59
58
  &read_body_chunk_block
60
59
  )
61
60
 
@@ -68,6 +67,7 @@ module Stripe
68
67
  [resp, opts_to_persist]
69
68
  end
70
69
 
70
+ # TODO: (major)
71
71
  # This method used to be called `request`, but it's such a short name
72
72
  # that it eventually conflicted with the name of a field on an API
73
73
  # resource (specifically, `Event#request`), so it was renamed to
@@ -113,9 +113,9 @@ module Stripe
113
113
  end
114
114
 
115
115
  protected def execute_resource_request(method, url,
116
- params = {}, opts = {})
116
+ params = {}, opts = {}, usage = [])
117
117
  opts = @opts.merge(Util.normalize_opts(opts))
118
- self.class.execute_resource_request(method, url, params, opts)
118
+ self.class.execute_resource_request(method, url, params, opts, usage)
119
119
  end
120
120
 
121
121
  protected def execute_resource_request_stream(method, url,
@@ -127,8 +127,8 @@ module Stripe
127
127
  )
128
128
  end
129
129
 
130
- private def request_stripe_object(method:, path:, params:, opts: {})
131
- resp, opts = execute_resource_request(method, path, params, opts)
130
+ private def request_stripe_object(method:, path:, params:, opts: {}, usage: [])
131
+ resp, opts = execute_resource_request(method, path, params, opts, usage)
132
132
  Util.convert_to_stripe_object_with_params(resp.data, params, opts)
133
133
  end
134
134
 
@@ -66,7 +66,7 @@ module Stripe
66
66
  # generated a uri for this object with an identifier baked in
67
67
  values.delete(:id)
68
68
 
69
- resp, opts = execute_resource_request(:post, save_url, values, opts)
69
+ resp, opts = execute_resource_request(:post, save_url, values, opts, ["save"])
70
70
  initialize_from(resp.data, opts)
71
71
  end
72
72
  extend Gem::Deprecate
@@ -4,6 +4,5 @@
4
4
  module Stripe
5
5
  module ApiVersion
6
6
  CURRENT = "2023-10-16"
7
- PREVIEW = "2023-10-26.preview-v2"
8
7
  end
9
8
  end