stripe 10.6.0.pre.beta.1 → 10.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +44 -254
  3. data/OPENAPI_VERSION +1 -1
  4. data/README.md +0 -11
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_operations/request.rb +1 -2
  7. data/lib/stripe/api_operations/search.rb +1 -0
  8. data/lib/stripe/api_version.rb +0 -1
  9. data/lib/stripe/object_types.rb +0 -19
  10. data/lib/stripe/resources/charge.rb +1 -1
  11. data/lib/stripe/resources/customer.rb +1 -1
  12. data/lib/stripe/resources/financial_connections/account.rb +0 -3
  13. data/lib/stripe/resources/invoice.rb +1 -40
  14. data/lib/stripe/resources/payment_intent.rb +6 -1
  15. data/lib/stripe/resources/price.rb +1 -1
  16. data/lib/stripe/resources/product.rb +1 -1
  17. data/lib/stripe/resources/quote.rb +0 -104
  18. data/lib/stripe/resources/subscription.rb +6 -1
  19. data/lib/stripe/resources/subscription_schedule.rb +0 -20
  20. data/lib/stripe/resources/terminal/reader.rb +0 -60
  21. data/lib/stripe/resources.rb +0 -18
  22. data/lib/stripe/stripe_client.rb +28 -62
  23. data/lib/stripe/stripe_configuration.rb +1 -2
  24. data/lib/stripe/util.rb +1 -8
  25. data/lib/stripe/version.rb +1 -1
  26. data/lib/stripe.rb +0 -46
  27. metadata +4 -23
  28. data/lib/stripe/request_signing_authenticator.rb +0 -79
  29. data/lib/stripe/resources/account_notice.rb +0 -14
  30. data/lib/stripe/resources/capital/financing_offer.rb +0 -36
  31. data/lib/stripe/resources/capital/financing_summary.rb +0 -12
  32. data/lib/stripe/resources/capital/financing_transaction.rb +0 -13
  33. data/lib/stripe/resources/confirmation_token.rb +0 -13
  34. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -13
  35. data/lib/stripe/resources/gift_cards/card.rb +0 -26
  36. data/lib/stripe/resources/gift_cards/transaction.rb +0 -60
  37. data/lib/stripe/resources/invoice_payment.rb +0 -11
  38. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -75
  39. data/lib/stripe/resources/issuing/personalization_design.rb +0 -83
  40. data/lib/stripe/resources/issuing/physical_bundle.rb +0 -13
  41. data/lib/stripe/resources/margin.rb +0 -14
  42. data/lib/stripe/resources/order.rb +0 -97
  43. data/lib/stripe/resources/quote_phase.rb +0 -31
  44. data/lib/stripe/resources/quote_preview_invoice.rb +0 -42
  45. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -10
  46. data/lib/stripe/resources/tax/form.rb +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4dd553363be8cc8d8a5f06ff9d6772935def2baa681c7be37e49bf5b4433a10c
4
- data.tar.gz: cb3b1684976ad90db8973c871db910ab7eb22e0a3705893bc4ae62fd19a293c7
3
+ metadata.gz: f9d7dcdb6a8fce8d331f7666a8dae6f578abb66f9ece00837494f22805b9d66f
4
+ data.tar.gz: 81b1b86f6b56af5f6f95ecc029ba1be1398e554032dde711d5daed2fef54e95d
5
5
  SHA512:
6
- metadata.gz: 5944cccbb0b5680830e66b306dca977bf4ee0963e85faeae0392df0cd4dfb795942ee1069b1a45c8cb79621d78756975f5c1ed672bd3d1fec6e4e6338a481334
7
- data.tar.gz: c8563e4b7ce2bb6ac372ac50cd3644969f901137ff352538df1abb1b849e402d48873005cbcee6f9cc3c34e6bc19dc8fc9e124c95d837b15cfac5fd80fd725af
6
+ metadata.gz: 21b329aeaa584237de1e5a104fae127dc329292a83438f30458d9d5a2636a81277b6f03fb7ef326ec45f917f23f81402f8085755e54b5512d368a7d426cd5a0d
7
+ data.tar.gz: 2875c4ed5e9ed30832ba19142ce3a6e6421d0a8583ad7643db7819d4393fd055b882b2124baf6d6dabe8f1c77dfb1fc069bf5627eb9526a2b8cb1daea4abdf56
data/CHANGELOG.md CHANGED
@@ -1,17 +1,13 @@
1
1
  # Changelog
2
-
3
- ## 10.6.0-beta.1 - 2024-01-04
4
- * [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
5
- * Updated stable APIs to the latest version
6
-
2
+ ## 10.6.0 - 2024-01-12
3
+ * [#1310](https://github.com/stripe/stripe-ruby/pull/1310) Update generated code
4
+ * Add support for new resource `CustomerSession`
5
+ * Add support for `create` method on resource `CustomerSession`
7
6
 
8
7
  ## 10.5.0 - 2024-01-04
9
8
  * [#1306](https://github.com/stripe/stripe-ruby/pull/1306) Update generated code
10
9
  * Add support for `retrieve` method on resource `Tax.Registration`
11
10
 
12
- ## 10.5.0-beta.1 - 2023-12-22
13
- * [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
14
-
15
11
  ## 10.4.0 - 2023-12-22
16
12
  * [#1303](https://github.com/stripe/stripe-ruby/pull/1303) Update generated code
17
13
  * Add support for new resource `FinancialConnections.Transaction`
@@ -19,16 +15,9 @@
19
15
  * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
20
16
  * [#1304](https://github.com/stripe/stripe-ruby/pull/1304) Add support for updatable singleton resources
21
17
 
22
- ## 10.4.0-beta.1 - 2023-12-14
23
- Updated stable APIs to the latest version
24
-
25
18
  ## 10.3.0 - 2023-12-14
26
19
  * [#1294](https://github.com/stripe/stripe-ruby/pull/1294) Support sending parameters inside singleton retrieve
27
20
 
28
- ## 10.3.0-beta.1 - 2023-11-30
29
- * [#1298](https://github.com/stripe/stripe-ruby/pull/1298) Update generated code for beta
30
- * [#1296](https://github.com/stripe/stripe-ruby/pull/1296) Merge master into beta
31
-
32
21
  ## 10.2.0 - 2023-11-30
33
22
  * [#1292](https://github.com/stripe/stripe-ruby/pull/1292) Update generated code
34
23
  * Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier`
@@ -41,26 +30,12 @@
41
30
 
42
31
  * [#1288](https://github.com/stripe/stripe-ruby/pull/1288) Update generated code
43
32
 
44
- ## 10.2.0-beta.1 - 2023-11-02
45
- * [#1287](https://github.com/stripe/stripe-ruby/pull/1287) Update generated code for beta
46
- * Add support for `attach_payment_intent` method on resource `Invoice`
47
- * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
48
33
 
49
34
  ## 10.1.0 - 2023-11-02
50
35
  * [#1286](https://github.com/stripe/stripe-ruby/pull/1286) Update generated code
51
36
  * Add support for new resource `Tax.Registration`
52
37
  * Add support for `create`, `list`, and `update` methods on resource `Registration`
53
38
 
54
- ## 10.1.0-beta.2 - 2023-10-26
55
- * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
56
- * Add support for new resource `Margin`
57
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Margin`
58
-
59
- ## 10.1.0-beta.1 - 2023-10-17
60
- * [#1284](https://github.com/stripe/stripe-ruby/pull/1284) Update generated code for beta
61
- - Update pinned API version to `2023-10-16`
62
- * [#1282](https://github.com/stripe/stripe-ruby/pull/1282) Update generated code for beta
63
-
64
39
  ## 10.0.0 - 2023-10-16
65
40
  * 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`.
66
41
  * [#1283](https://github.com/stripe/stripe-ruby/pull/1283) Update generated code
@@ -68,33 +43,11 @@
68
43
  * [#1281](https://github.com/stripe/stripe-ruby/pull/1281) Update generated code
69
44
  * Documentation only changes
70
45
 
71
- ## 9.5.0-beta.2 - 2023-10-12
72
- * [#1280](https://github.com/stripe/stripe-ruby/pull/1280) Update generated code for beta
73
- * Add support for new resources `AccountNotice` and `Issuing.CreditUnderwritingRecord`
74
- * Add support for `list`, `retrieve`, and `update` methods on resource `AccountNotice`
75
- * Add support for `correct`, `create_from_application`, `create_from_proactive_review`, `list`, `report_decision`, and `retrieve` methods on resource `CreditUnderwritingRecord`
76
-
77
- ## 9.5.0-beta.1 - 2023-10-05
78
- * [#1278](https://github.com/stripe/stripe-ruby/pull/1278) Update generated code for beta
79
- * Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
80
- * Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
81
- * Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote`
82
-
83
46
  ## 9.4.0 - 2023-10-05
84
47
  * [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code
85
48
  * Add support for new resources `Issuing.Token`
86
49
  * Add support for `list`, `retrieve`, and `update` methods on resource `Token`
87
50
 
88
- ## 9.4.0-beta.3 - 2023-09-28
89
- * [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
90
- * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
91
-
92
- ## 9.4.0-beta.2 - 2023-09-21
93
- * [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
94
-
95
- ## 9.4.0-beta.1 - 2023-09-14
96
- * Updated stable APIs to the latest version
97
-
98
51
  ## 9.3.0 - 2023-09-14
99
52
  * [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
100
53
  * Add support for new resource `PaymentMethodConfiguration`
@@ -103,38 +56,18 @@
103
56
  * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
104
57
  * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
105
58
 
106
- ## 9.3.0-beta.1 - 2023-09-07
107
- * [#1269](https://github.com/stripe/stripe-ruby/pull/1269) Update generated code for beta
108
- * Release specs are identical.
109
- * [#1268](https://github.com/stripe/stripe-ruby/pull/1268) Update generated code for beta
110
- * Remove support for `submit_card` test helper method on resource `Issuing.Card`
111
- * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
112
- * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
113
- * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
114
- * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
115
- * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
116
-
117
- * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
118
-
119
- * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
120
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
121
- * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
122
-
123
59
  ## 9.2.0 - 2023-09-07
124
60
  * [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
125
61
  * Add support for new resource `PaymentMethodDomain`
126
62
  * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
127
63
 
128
- ## 9.2.0-beta.1 - 2023-08-31
129
- * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
130
- * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
131
-
132
64
  ## 9.1.0 - 2023-08-31
133
65
  * [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
134
66
  * Add support for new resource `AccountSession`
135
67
  * Add support for `create` method on resource `AccountSession`
136
68
  * [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
137
69
 
70
+
138
71
  ## 9.0.0 - 2023-08-16
139
72
  **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
140
73
 
@@ -167,39 +100,10 @@
167
100
 
168
101
  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.
169
102
 
170
- ## 9.0.0-beta.1 - 2023-08-24
171
- * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
172
- * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
173
- * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
174
-
175
- ## 8.8.0-beta.1 - 2023-08-10
176
- * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
177
- * Updated stable APIs to the latest version
178
-
179
103
  ## 8.7.0 - 2023-08-10
180
104
  * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
181
105
  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.
182
106
 
183
- ## 8.7.0-beta.3 - 2023-08-03
184
- * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
185
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
186
- * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
187
-
188
- ## 8.7.0-beta.2 - 2023-07-28
189
- * [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
190
- * Add support for new resource `Tax.Form`
191
- * Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
192
- * [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
193
- * [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
194
-
195
- ## 8.7.0-beta.1 - 2023-07-13
196
- * [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
197
- Release specs are identical.
198
- * [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
199
- * Add support for new resource `PaymentMethodConfiguration`
200
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
201
- * [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
202
-
203
107
  ## 8.6.0 - 2023-07-13
204
108
  * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
205
109
  * Add support for new resource `Tax.Settings`
@@ -228,37 +132,6 @@
228
132
 
229
133
  * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
230
134
 
231
- ## 8.6.0-beta.6 - 2023-06-22
232
- * [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
233
- * Add support for new resource `CustomerSession`
234
- * Add support for `create` method on resource `CustomerSession`
235
- * [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
236
- * [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
237
-
238
- ## 8.6.0-beta.5 - 2023-06-01
239
- * [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
240
- * [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
241
- * [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
242
- * [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
243
-
244
- ## 8.6.0-beta.4 - 2023-05-19
245
- * [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
246
- * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
247
- * [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
248
- * [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
249
- * [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
250
-
251
- ## 8.6.0-beta.3 - 2023-04-17
252
- * [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
253
- * [#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
254
-
255
- ## 8.6.0-beta.2 - 2023-04-13
256
- * [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
257
- * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
258
- * [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
259
-
260
- ## 8.6.0-beta.1 - 2023-03-30
261
- * [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
262
135
 
263
136
  ## 8.5.0 - 2023-03-30
264
137
  * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
@@ -266,11 +139,6 @@
266
139
  * 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.
267
140
  * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
268
141
 
269
- ## 8.5.0-beta.1 - 2023-03-23
270
- * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
271
- * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
272
- * Add support for `collect_inputs` method on resource `Terminal.Reader`
273
-
274
142
  ## 8.4.0 - 2023-03-23
275
143
  * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
276
144
  * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
@@ -278,91 +146,18 @@
278
146
  * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
279
147
  * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
280
148
 
281
- ## 8.4.0-beta.4 - 2023-03-16
282
- * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
283
- * Add support for `create_from_calculation` method on resource `Tax.Transaction`
284
- * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
285
- * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
286
- * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
287
- * Remove support for `retrieve` method on resource `FinancingSummary`
288
- * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
289
-
290
- ## 8.4.0-beta.3 - 2023-03-09
291
- * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
292
- * Updated stable APIs to the latest version
293
- * Remove support for `list_transactions` method on resource `Tax.Transaction`
294
-
295
- ## 8.4.0-beta.2 - 2023-03-03
296
- * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
297
- * Updated stable APIs to the latest version
298
- * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
299
- * Add support for `list` and `retrieve` methods on resource `CardBundle`
300
- * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
301
-
302
- ## 8.4.0-beta.1 - 2023-02-23
303
- * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
304
- * Updated stable APIs to the latest version
305
-
306
149
  ## 8.3.0 - 2023-02-16
307
150
  * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
308
151
  * Add support for `refund_payment` method on resource `Terminal.Reader`
309
152
 
310
- ## 8.3.0-beta.1 - 2023-02-02
311
- * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
312
- * Updated stable APIs to the latest version
313
- * Add support for new resource `FinancialConnections.Transaction`
314
- * Add support for `list` method on resource `Transaction`
315
-
316
153
  ## 8.2.0 - 2023-02-02
317
154
  * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
318
155
  * Add support for `resume` method on resource `Subscription`
319
156
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
320
157
 
321
- ## 8.2.0-beta.3 - 2023-01-26
322
- * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
323
- * Updated stable APIs to the latest version
324
- * Add support for `list_transactions` method on resource `Tax.Transaction`
325
-
326
- ## 8.2.0-beta.2 - 2023-01-19
327
- * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
328
- * Updated stable APIs to the latest version
329
- * Add support for `Tax.Settings` resource.
330
-
331
- ## 8.2.0-beta.1 - 2023-01-12
332
- * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
333
- * Updated stable APIs to the latest version
334
- * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
335
- * Add support for `Tax::Register` resource
336
-
337
158
  ## 8.1.0 - 2023-01-12
338
159
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
339
160
 
340
- ## 8.1.0-beta.4 - 2023-01-05
341
- * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
342
- * Updated stable APIs to the latest version
343
- * Add support for `mark_stale_quote` method on resource `Quote`
344
-
345
- ## 8.1.0-beta.3 - 2022-12-22
346
- * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
347
- * Updated stable APIs to the latest version
348
- * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
349
-
350
- ## 8.1.0-beta.2 - 2022-12-15
351
- * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
352
- * Updated stable APIs to the latest version
353
- * Add support for new resources `TaxCalculation`, and `TaxTransaction`
354
- * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
355
- * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
356
- * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
357
- * Updated stable APIs to the latest version
358
- * Add support for new resource `QuoteLine`.
359
-
360
- ## 8.1.0-beta.1 - 2022-12-08
361
- * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
362
- * Updated stable APIs to the latest version
363
- * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
364
- * Updated stable APIs to the latest version
365
-
366
161
  ## 8.0.0 - 2022-11-16
367
162
  * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
368
163
 
@@ -370,29 +165,30 @@ Breaking changes that arose during code generation of the library that we postpo
370
165
 
371
166
  "⚠️" symbol highlights breaking changes.
372
167
 
373
- ## 7.2.0-beta.5 - 2022-11-02
374
- * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
375
- * Updated beta APIs to the latest stable version
376
- * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
377
- * Updated stable APIs to the latest version
378
-
379
- ## 7.2.0-beta.4 - 2022-10-07
380
- * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
168
+ ### Deprecated
169
+ - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
170
+ ``` ruby
171
+ # before
172
+ refund = Stripe::Refund.retrieve("re_123")
173
+ refund.description = "Refund description"
174
+ refund.save
175
+
176
+ # after
177
+ Stripe::Refund.update("re_123", description: "Refund description")
178
+ ```
381
179
 
382
- ## 7.2.0-beta.3 - 2022-09-26
383
- * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
384
- * Updated stable APIs to the latest version
385
- * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
180
+ ### ⚠️ Removed
181
+ - Removed deprecated `Sku` resource.
182
+ - Removed deprecated `Orders` resource.
183
+ - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
184
+ ```ruby
185
+ # before
186
+ Stripe::Subscription::delete("sub_12345")
386
187
 
387
- ## 7.2.0-beta.2 - 2022-08-26
388
- * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
389
- * Updated stable APIs to the latest version
390
- * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
188
+ # after
189
+ Stripe::Subscription::cancel("sub_12345")
190
+ ```
391
191
 
392
- ## 7.2.0-beta.1 - 2022-08-23
393
- * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
394
- - Updated stable APIs to the latest version
395
- - `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)
396
192
 
397
193
  ## 7.1.0 - 2022-08-19
398
194
  * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@@ -401,16 +197,6 @@ Breaking changes that arose during code generation of the library that we postpo
401
197
  * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
402
198
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
403
199
 
404
- ## 7.1.0-beta.2 - 2022-08-11
405
- * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
406
- - Updated stable APIs to the latest version
407
- - Add `refund_payment` method to Terminal resource
408
-
409
- ## 7.1.0-beta.1 - 2022-08-03
410
- * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
411
- - Updated stable APIs to the latest version
412
- - Added the `Order` resource support
413
-
414
200
  ## 7.0.0 - 2022-08-02
415
201
 
416
202
  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.
@@ -422,19 +208,21 @@ Breaking changes that arose during code generation of the library that we postpo
422
208
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
423
209
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
424
210
 
425
- ## 6.6.0-beta.1 - 2022-07-22
426
- * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
427
- - Updated stable APIs to the latest version
428
- - Add `QuotePhase` resource
429
- * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
430
- - Updated stable APIs to the latest version
431
- - Add `SubscriptionSchedule.amend` method.
432
- * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
433
- - Include `server_side_confirmation_beta=v1` beta
434
- - Add `secretKeyConfirmation` to `PaymentIntent`
435
- * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
436
- - Updated stable APIs to the latest version
437
- * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
211
+ ### ⚠️ Changed
212
+ * `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.
213
+ * Update default bundle of CA certificates to April 26, 2022.
214
+
215
+ ### Deprecated
216
+ * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
217
+
218
+ ### ⚠️ Removed
219
+ * Remove `details` method from `Issuing.Card` resource. The method was not supported.
220
+ * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
221
+ * Remove `create` method from `ReportType` resource. The method was not supported.
222
+ * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
223
+ * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
224
+ * Remove ability to list `Card` resource for a `Recipient`.
225
+ * Remove `cancel` method from `Transfer` resource. The method was deprecated.
438
226
 
439
227
  ## 6.5.0 - 2022-06-29
440
228
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -464,6 +252,8 @@ Breaking changes that arose during code generation of the library that we postpo
464
252
  * 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`
465
253
  * Add support for `retrieve_payment_method` method on resource `Customer`
466
254
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
255
+
256
+
467
257
 
468
258
  ## 6.0.0 - 2022-05-09
469
259
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -479,6 +269,7 @@ Breaking changes that arose during code generation of the library that we postpo
479
269
  ## 5.55.0 - 2022-05-05
480
270
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
481
271
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
272
+
482
273
 
483
274
  ## 5.54.0 - 2022-05-03
484
275
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1509,4 +1300,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1509
1300
  <!--
1510
1301
  # vim: set tw=0:
1511
1302
  -->
1512
-
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v742
1
+ v755
data/README.md CHANGED
@@ -324,17 +324,6 @@ If your beta feature requires a `Stripe-Version` header to be sent, use the `Str
324
324
  Stripe.api_version += "; feature_beta=v3"
325
325
  ```
326
326
 
327
- ### Custom requests
328
-
329
- 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`.
330
-
331
- ```ruby
332
- resp = Stripe.raw_request(:post, "/v1/beta_endpoint", {param: 123}, {stripe_version: "2022-11-15; feature_beta=v3"})
333
-
334
- # (Optional) resp is a StripeResponse. You can use `Stripe.deserialize` to get a StripeObject.
335
- deserialized_resp = Stripe.deserialize(resp.http_body)
336
- ```
337
-
338
327
  ## Support
339
328
 
340
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.6.0-beta.1
1
+ 10.6.0
@@ -48,14 +48,13 @@ module Stripe
48
48
  api_key = headers.delete(:api_key)
49
49
  api_base = headers.delete(:api_base)
50
50
  client = headers.delete(:client)
51
- api_mode = headers.delete(:api_mode)
52
51
  # Assume all remaining opts must be headers
53
52
 
54
53
  resp, opts[:api_key] = client.send(
55
54
  client_request_method_sym,
56
55
  method, url,
57
56
  api_base: api_base, api_key: api_key,
58
- headers: headers, params: params, usage: usage, api_mode: api_mode,
57
+ headers: headers, params: params, usage: usage,
59
58
  &read_body_chunk_block
60
59
  )
61
60
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # TODO: (major) Deprecated, Remove along with extends
3
4
  module Stripe
4
5
  module APIOperations
5
6
  module Search
@@ -4,6 +4,5 @@
4
4
  module Stripe
5
5
  module ApiVersion
6
6
  CURRENT = "2023-10-16"
7
- PREVIEW = "2023-12-11.preview-v2"
8
7
  end
9
8
  end
@@ -14,7 +14,6 @@ module Stripe
14
14
  # business objects
15
15
  Account::OBJECT_NAME => Account,
16
16
  AccountLink::OBJECT_NAME => AccountLink,
17
- AccountNotice::OBJECT_NAME => AccountNotice,
18
17
  AccountSession::OBJECT_NAME => AccountSession,
19
18
  ApplePayDomain::OBJECT_NAME => ApplePayDomain,
20
19
  ApplicationFee::OBJECT_NAME => ApplicationFee,
@@ -26,9 +25,6 @@ module Stripe
26
25
  BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration,
27
26
  BillingPortal::Session::OBJECT_NAME => BillingPortal::Session,
28
27
  Capability::OBJECT_NAME => Capability,
29
- Capital::FinancingOffer::OBJECT_NAME => Capital::FinancingOffer,
30
- Capital::FinancingSummary::OBJECT_NAME => Capital::FinancingSummary,
31
- Capital::FinancingTransaction::OBJECT_NAME => Capital::FinancingTransaction,
32
28
  Card::OBJECT_NAME => Card,
33
29
  CashBalance::OBJECT_NAME => CashBalance,
34
30
  Charge::OBJECT_NAME => Charge,
@@ -36,7 +32,6 @@ module Stripe
36
32
  Climate::Order::OBJECT_NAME => Climate::Order,
37
33
  Climate::Product::OBJECT_NAME => Climate::Product,
38
34
  Climate::Supplier::OBJECT_NAME => Climate::Supplier,
39
- ConfirmationToken::OBJECT_NAME => ConfirmationToken,
40
35
  CountrySpec::OBJECT_NAME => CountrySpec,
41
36
  Coupon::OBJECT_NAME => Coupon,
42
37
  CreditNote::OBJECT_NAME => CreditNote,
@@ -54,36 +49,26 @@ module Stripe
54
49
  File::OBJECT_NAME_ALT => File,
55
50
  FileLink::OBJECT_NAME => FileLink,
56
51
  FinancialConnections::Account::OBJECT_NAME => FinancialConnections::Account,
57
- FinancialConnections::AccountInferredBalance::OBJECT_NAME =>
58
- FinancialConnections::AccountInferredBalance,
59
52
  FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
60
53
  FinancialConnections::AccountOwnership::OBJECT_NAME =>
61
54
  FinancialConnections::AccountOwnership,
62
55
  FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
63
56
  FinancialConnections::Transaction::OBJECT_NAME => FinancialConnections::Transaction,
64
57
  FundingInstructions::OBJECT_NAME => FundingInstructions,
65
- GiftCards::Card::OBJECT_NAME => GiftCards::Card,
66
- GiftCards::Transaction::OBJECT_NAME => GiftCards::Transaction,
67
58
  Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
68
59
  Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
69
60
  Invoice::OBJECT_NAME => Invoice,
70
61
  InvoiceItem::OBJECT_NAME => InvoiceItem,
71
62
  InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
72
- InvoicePayment::OBJECT_NAME => InvoicePayment,
73
63
  Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
74
64
  Issuing::Card::OBJECT_NAME => Issuing::Card,
75
65
  Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
76
- Issuing::CreditUnderwritingRecord::OBJECT_NAME => Issuing::CreditUnderwritingRecord,
77
66
  Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
78
- Issuing::PersonalizationDesign::OBJECT_NAME => Issuing::PersonalizationDesign,
79
- Issuing::PhysicalBundle::OBJECT_NAME => Issuing::PhysicalBundle,
80
67
  Issuing::Token::OBJECT_NAME => Issuing::Token,
81
68
  Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
82
69
  LineItem::OBJECT_NAME => LineItem,
83
70
  LoginLink::OBJECT_NAME => LoginLink,
84
71
  Mandate::OBJECT_NAME => Mandate,
85
- Margin::OBJECT_NAME => Margin,
86
- Order::OBJECT_NAME => Order,
87
72
  PaymentIntent::OBJECT_NAME => PaymentIntent,
88
73
  PaymentLink::OBJECT_NAME => PaymentLink,
89
74
  PaymentMethod::OBJECT_NAME => PaymentMethod,
@@ -96,9 +81,6 @@ module Stripe
96
81
  Product::OBJECT_NAME => Product,
97
82
  PromotionCode::OBJECT_NAME => PromotionCode,
98
83
  Quote::OBJECT_NAME => Quote,
99
- QuotePhase::OBJECT_NAME => QuotePhase,
100
- QuotePreviewInvoice::OBJECT_NAME => QuotePreviewInvoice,
101
- QuotePreviewSubscriptionSchedule::OBJECT_NAME => QuotePreviewSubscriptionSchedule,
102
84
  Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
103
85
  Radar::ValueList::OBJECT_NAME => Radar::ValueList,
104
86
  Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@@ -118,7 +100,6 @@ module Stripe
118
100
  SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
119
101
  Tax::Calculation::OBJECT_NAME => Tax::Calculation,
120
102
  Tax::CalculationLineItem::OBJECT_NAME => Tax::CalculationLineItem,
121
- Tax::Form::OBJECT_NAME => Tax::Form,
122
103
  Tax::Registration::OBJECT_NAME => Tax::Registration,
123
104
  Tax::Settings::OBJECT_NAME => Tax::Settings,
124
105
  Tax::Transaction::OBJECT_NAME => Tax::Transaction,
@@ -43,7 +43,7 @@ module Stripe
43
43
  end
44
44
 
45
45
  def self.search(params = {}, opts = {})
46
- _search("/v1/charges/search", params, opts)
46
+ request_stripe_object(method: :get, path: "/v1/charges/search", params: params, opts: opts)
47
47
  end
48
48
 
49
49
  def self.search_auto_paging_each(params = {}, opts = {}, &blk)
@@ -114,7 +114,7 @@ module Stripe
114
114
  end
115
115
 
116
116
  def self.search(params = {}, opts = {})
117
- _search("/v1/customers/search", params, opts)
117
+ request_stripe_object(method: :get, path: "/v1/customers/search", params: params, opts: opts)
118
118
  end
119
119
 
120
120
  def self.search_auto_paging_each(params = {}, opts = {}, &blk)
@@ -6,12 +6,9 @@ module Stripe
6
6
  # A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access.
7
7
  class Account < APIResource
8
8
  extend Stripe::APIOperations::List
9
- extend Stripe::APIOperations::NestedResource
10
9
 
11
10
  OBJECT_NAME = "financial_connections.account"
12
11
 
13
- nested_resource_class_methods :inferred_balance, operations: %i[list]
14
-
15
12
  # Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions).
16
13
  def disconnect(params = {}, opts = {})
17
14
  request_stripe_object(