stripe 9.5.0.pre.beta.2 → 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +46 -225
  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 +0 -2
  7. data/lib/stripe/api_version.rb +1 -2
  8. data/lib/stripe/object_types.rb +0 -20
  9. data/lib/stripe/resources/financial_connections/account.rb +0 -39
  10. data/lib/stripe/resources/issuing/token.rb +1 -1
  11. data/lib/stripe/resources/payment_method_configuration.rb +1 -1
  12. data/lib/stripe/resources/quote.rb +0 -94
  13. data/lib/stripe/resources/subscription_schedule.rb +0 -18
  14. data/lib/stripe/resources/terminal/reader.rb +0 -54
  15. data/lib/stripe/resources.rb +0 -19
  16. data/lib/stripe/stripe_client.rb +26 -60
  17. data/lib/stripe/stripe_configuration.rb +0 -2
  18. data/lib/stripe/util.rb +1 -8
  19. data/lib/stripe/version.rb +1 -1
  20. data/lib/stripe.rb +0 -46
  21. metadata +4 -24
  22. data/lib/stripe/request_signing_authenticator.rb +0 -83
  23. data/lib/stripe/resources/account_notice.rb +0 -14
  24. data/lib/stripe/resources/capital/financing_offer.rb +0 -32
  25. data/lib/stripe/resources/capital/financing_summary.rb +0 -12
  26. data/lib/stripe/resources/capital/financing_transaction.rb +0 -13
  27. data/lib/stripe/resources/confirmation_token.rb +0 -11
  28. data/lib/stripe/resources/customer_session.rb +0 -12
  29. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -13
  30. data/lib/stripe/resources/financial_connections/transaction.rb +0 -13
  31. data/lib/stripe/resources/gift_cards/card.rb +0 -25
  32. data/lib/stripe/resources/gift_cards/transaction.rb +0 -56
  33. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -69
  34. data/lib/stripe/resources/issuing/personalization_design.rb +0 -77
  35. data/lib/stripe/resources/issuing/physical_bundle.rb +0 -13
  36. data/lib/stripe/resources/order.rb +0 -89
  37. data/lib/stripe/resources/quote_phase.rb +0 -29
  38. data/lib/stripe/resources/quote_preview_invoice.rb +0 -42
  39. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -10
  40. data/lib/stripe/resources/tax/form.rb +0 -39
  41. data/lib/stripe/resources/tax/registration.rb +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3ac921745f7f9ade50f258d6121845a356fffd5c9567d0749da1020ee89fd2e
4
- data.tar.gz: bcc1603ef1c753693a20a154788192fbb509224aa5421ed0a339abf391027de5
3
+ metadata.gz: 76448416c1df0ac03d3260177ca84da33666d30abaa718f10125aad8cca4c73f
4
+ data.tar.gz: 66f51f68a2215fe7471cf7725884ce5a0d4f6b61fcfa9fccfdcb0dc57f371cda
5
5
  SHA512:
6
- metadata.gz: a4a22ab9d347bb9db0f0f58a6a20b0d5d09f94ab0b56060bbfe8a271024d4db904c9a537af8cb9bcfef93171f83bc7555abc3b484e71efc174a80d6309005fe6
7
- data.tar.gz: f9ac4cddfd786a136737580feaf4f381c6fa362336ea9c026c414e22b2c9375658f4326306a54728d9156817d571cf530207a05cac393674a3cf39b8aa9206bd
6
+ metadata.gz: b42d5ec5761ac7888993ee5975f8095555928bb13d509416905e92acae34d5d100c5d19baf1927a31b93e3c861c2f18433e288cb28c8cdc75d590ce0a33ba22c
7
+ data.tar.gz: 6ffb359b25abeef93496918a50e498cac65d3dc7c51a502002e7c3fa330f0eacaf5603e931dfff05087b10ae035134b3321739a43bd06ed38598ec4b2cca9fc3
data/CHANGELOG.md CHANGED
@@ -1,32 +1,16 @@
1
1
  # Changelog
2
-
3
- ## 9.5.0-beta.2 - 2023-10-12
4
- * [#1280](https://github.com/stripe/stripe-ruby/pull/1280) Update generated code for beta
5
- * Add support for new resources `AccountNotice` and `Issuing.CreditUnderwritingRecord`
6
- * Add support for `list`, `retrieve`, and `update` methods on resource `AccountNotice`
7
- * Add support for `correct`, `create_from_application`, `create_from_proactive_review`, `list`, `report_decision`, and `retrieve` methods on resource `CreditUnderwritingRecord`
8
-
9
- ## 9.5.0-beta.1 - 2023-10-05
10
- * [#1278](https://github.com/stripe/stripe-ruby/pull/1278) Update generated code for beta
11
- * Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
12
- * Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
13
- * Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote`
2
+ ## 10.0.0 - 2023-10-16
3
+ * 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`.
4
+ * [#1283](https://github.com/stripe/stripe-ruby/pull/1283) Update generated code
5
+ - Updated pinned API version
6
+ * [#1281](https://github.com/stripe/stripe-ruby/pull/1281) Update generated code
7
+ * Documentation only changes
14
8
 
15
9
  ## 9.4.0 - 2023-10-05
16
10
  * [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code
17
11
  * Add support for new resources `Issuing.Token`
18
12
  * Add support for `list`, `retrieve`, and `update` methods on resource `Token`
19
13
 
20
- ## 9.4.0-beta.3 - 2023-09-28
21
- * [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
22
- * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
23
-
24
- ## 9.4.0-beta.2 - 2023-09-21
25
- * [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
26
-
27
- ## 9.4.0-beta.1 - 2023-09-14
28
- * Updated stable APIs to the latest version
29
-
30
14
  ## 9.3.0 - 2023-09-14
31
15
  * [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
32
16
  * Add support for new resource `PaymentMethodConfiguration`
@@ -35,38 +19,18 @@
35
19
  * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
36
20
  * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
37
21
 
38
- ## 9.3.0-beta.1 - 2023-09-07
39
- * [#1269](https://github.com/stripe/stripe-ruby/pull/1269) Update generated code for beta
40
- * Release specs are identical.
41
- * [#1268](https://github.com/stripe/stripe-ruby/pull/1268) Update generated code for beta
42
- * Remove support for `submit_card` test helper method on resource `Issuing.Card`
43
- * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
44
- * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
45
- * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
46
- * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
47
- * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
48
-
49
- * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
50
-
51
- * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
52
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
53
- * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
54
-
55
22
  ## 9.2.0 - 2023-09-07
56
23
  * [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
57
24
  * Add support for new resource `PaymentMethodDomain`
58
25
  * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
59
26
 
60
- ## 9.2.0-beta.1 - 2023-08-31
61
- * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
62
- * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
63
-
64
27
  ## 9.1.0 - 2023-08-31
65
28
  * [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
66
29
  * Add support for new resource `AccountSession`
67
30
  * Add support for `create` method on resource `AccountSession`
68
31
  * [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
69
32
 
33
+
70
34
  ## 9.0.0 - 2023-08-16
71
35
  **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
72
36
 
@@ -99,39 +63,10 @@
99
63
 
100
64
  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.
101
65
 
102
- ## 9.0.0-beta.1 - 2023-08-24
103
- * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
104
- * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
105
- * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
106
-
107
- ## 8.8.0-beta.1 - 2023-08-10
108
- * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
109
- * Updated stable APIs to the latest version
110
-
111
66
  ## 8.7.0 - 2023-08-10
112
67
  * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
113
68
  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.
114
69
 
115
- ## 8.7.0-beta.3 - 2023-08-03
116
- * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
117
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
118
- * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
119
-
120
- ## 8.7.0-beta.2 - 2023-07-28
121
- * [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
122
- * Add support for new resource `Tax.Form`
123
- * Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
124
- * [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
125
- * [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
126
-
127
- ## 8.7.0-beta.1 - 2023-07-13
128
- * [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
129
- Release specs are identical.
130
- * [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
131
- * Add support for new resource `PaymentMethodConfiguration`
132
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
133
- * [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
134
-
135
70
  ## 8.6.0 - 2023-07-13
136
71
  * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
137
72
  * Add support for new resource `Tax.Settings`
@@ -160,37 +95,6 @@
160
95
 
161
96
  * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
162
97
 
163
- ## 8.6.0-beta.6 - 2023-06-22
164
- * [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
165
- * Add support for new resource `CustomerSession`
166
- * Add support for `create` method on resource `CustomerSession`
167
- * [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
168
- * [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
169
-
170
- ## 8.6.0-beta.5 - 2023-06-01
171
- * [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
172
- * [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
173
- * [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
174
- * [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
175
-
176
- ## 8.6.0-beta.4 - 2023-05-19
177
- * [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
178
- * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
179
- * [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
180
- * [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
181
- * [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
182
-
183
- ## 8.6.0-beta.3 - 2023-04-17
184
- * [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
185
- * [#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
186
-
187
- ## 8.6.0-beta.2 - 2023-04-13
188
- * [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
189
- * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
190
- * [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
191
-
192
- ## 8.6.0-beta.1 - 2023-03-30
193
- * [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
194
98
 
195
99
  ## 8.5.0 - 2023-03-30
196
100
  * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
@@ -198,11 +102,6 @@
198
102
  * 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.
199
103
  * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
200
104
 
201
- ## 8.5.0-beta.1 - 2023-03-23
202
- * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
203
- * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
204
- * Add support for `collect_inputs` method on resource `Terminal.Reader`
205
-
206
105
  ## 8.4.0 - 2023-03-23
207
106
  * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
208
107
  * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
@@ -210,91 +109,18 @@
210
109
  * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
211
110
  * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
212
111
 
213
- ## 8.4.0-beta.4 - 2023-03-16
214
- * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
215
- * Add support for `create_from_calculation` method on resource `Tax.Transaction`
216
- * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
217
- * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
218
- * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
219
- * Remove support for `retrieve` method on resource `FinancingSummary`
220
- * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
221
-
222
- ## 8.4.0-beta.3 - 2023-03-09
223
- * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
224
- * Updated stable APIs to the latest version
225
- * Remove support for `list_transactions` method on resource `Tax.Transaction`
226
-
227
- ## 8.4.0-beta.2 - 2023-03-03
228
- * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
229
- * Updated stable APIs to the latest version
230
- * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
231
- * Add support for `list` and `retrieve` methods on resource `CardBundle`
232
- * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
233
-
234
- ## 8.4.0-beta.1 - 2023-02-23
235
- * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
236
- * Updated stable APIs to the latest version
237
-
238
112
  ## 8.3.0 - 2023-02-16
239
113
  * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
240
114
  * Add support for `refund_payment` method on resource `Terminal.Reader`
241
115
 
242
- ## 8.3.0-beta.1 - 2023-02-02
243
- * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
244
- * Updated stable APIs to the latest version
245
- * Add support for new resource `FinancialConnections.Transaction`
246
- * Add support for `list` method on resource `Transaction`
247
-
248
116
  ## 8.2.0 - 2023-02-02
249
117
  * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
250
118
  * Add support for `resume` method on resource `Subscription`
251
119
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
252
120
 
253
- ## 8.2.0-beta.3 - 2023-01-26
254
- * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
255
- * Updated stable APIs to the latest version
256
- * Add support for `list_transactions` method on resource `Tax.Transaction`
257
-
258
- ## 8.2.0-beta.2 - 2023-01-19
259
- * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
260
- * Updated stable APIs to the latest version
261
- * Add support for `Tax.Settings` resource.
262
-
263
- ## 8.2.0-beta.1 - 2023-01-12
264
- * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
265
- * Updated stable APIs to the latest version
266
- * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
267
- * Add support for `Tax::Register` resource
268
-
269
121
  ## 8.1.0 - 2023-01-12
270
122
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
271
123
 
272
- ## 8.1.0-beta.4 - 2023-01-05
273
- * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
274
- * Updated stable APIs to the latest version
275
- * Add support for `mark_stale_quote` method on resource `Quote`
276
-
277
- ## 8.1.0-beta.3 - 2022-12-22
278
- * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
279
- * Updated stable APIs to the latest version
280
- * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
281
-
282
- ## 8.1.0-beta.2 - 2022-12-15
283
- * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
284
- * Updated stable APIs to the latest version
285
- * Add support for new resources `TaxCalculation`, and `TaxTransaction`
286
- * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
287
- * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
288
- * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
289
- * Updated stable APIs to the latest version
290
- * Add support for new resource `QuoteLine`.
291
-
292
- ## 8.1.0-beta.1 - 2022-12-08
293
- * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
294
- * Updated stable APIs to the latest version
295
- * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
296
- * Updated stable APIs to the latest version
297
-
298
124
  ## 8.0.0 - 2022-11-16
299
125
  * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
300
126
 
@@ -302,29 +128,30 @@ Breaking changes that arose during code generation of the library that we postpo
302
128
 
303
129
  "⚠️" symbol highlights breaking changes.
304
130
 
305
- ## 7.2.0-beta.5 - 2022-11-02
306
- * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
307
- * Updated beta APIs to the latest stable version
308
- * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
309
- * Updated stable APIs to the latest version
310
-
311
- ## 7.2.0-beta.4 - 2022-10-07
312
- * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
131
+ ### Deprecated
132
+ - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
133
+ ``` ruby
134
+ # before
135
+ refund = Stripe::Refund.retrieve("re_123")
136
+ refund.description = "Refund description"
137
+ refund.save
138
+
139
+ # after
140
+ Stripe::Refund.update("re_123", description: "Refund description")
141
+ ```
313
142
 
314
- ## 7.2.0-beta.3 - 2022-09-26
315
- * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
316
- * Updated stable APIs to the latest version
317
- * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
143
+ ### ⚠️ Removed
144
+ - Removed deprecated `Sku` resource.
145
+ - Removed deprecated `Orders` resource.
146
+ - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
147
+ ```ruby
148
+ # before
149
+ Stripe::Subscription::delete("sub_12345")
318
150
 
319
- ## 7.2.0-beta.2 - 2022-08-26
320
- * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
321
- * Updated stable APIs to the latest version
322
- * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
151
+ # after
152
+ Stripe::Subscription::cancel("sub_12345")
153
+ ```
323
154
 
324
- ## 7.2.0-beta.1 - 2022-08-23
325
- * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
326
- - Updated stable APIs to the latest version
327
- - `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)
328
155
 
329
156
  ## 7.1.0 - 2022-08-19
330
157
  * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@@ -333,16 +160,6 @@ Breaking changes that arose during code generation of the library that we postpo
333
160
  * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
334
161
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
335
162
 
336
- ## 7.1.0-beta.2 - 2022-08-11
337
- * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
338
- - Updated stable APIs to the latest version
339
- - Add `refund_payment` method to Terminal resource
340
-
341
- ## 7.1.0-beta.1 - 2022-08-03
342
- * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
343
- - Updated stable APIs to the latest version
344
- - Added the `Order` resource support
345
-
346
163
  ## 7.0.0 - 2022-08-02
347
164
 
348
165
  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.
@@ -354,19 +171,21 @@ Breaking changes that arose during code generation of the library that we postpo
354
171
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
355
172
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
356
173
 
357
- ## 6.6.0-beta.1 - 2022-07-22
358
- * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
359
- - Updated stable APIs to the latest version
360
- - Add `QuotePhase` resource
361
- * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
362
- - Updated stable APIs to the latest version
363
- - Add `SubscriptionSchedule.amend` method.
364
- * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
365
- - Include `server_side_confirmation_beta=v1` beta
366
- - Add `secretKeyConfirmation` to `PaymentIntent`
367
- * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
368
- - Updated stable APIs to the latest version
369
- * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
174
+ ### ⚠️ Changed
175
+ * `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.
176
+ * Update default bundle of CA certificates to April 26, 2022.
177
+
178
+ ### Deprecated
179
+ * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
180
+
181
+ ### ⚠️ Removed
182
+ * Remove `details` method from `Issuing.Card` resource. The method was not supported.
183
+ * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
184
+ * Remove `create` method from `ReportType` resource. The method was not supported.
185
+ * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
186
+ * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
187
+ * Remove ability to list `Card` resource for a `Recipient`.
188
+ * Remove `cancel` method from `Transfer` resource. The method was deprecated.
370
189
 
371
190
  ## 6.5.0 - 2022-06-29
372
191
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -396,6 +215,8 @@ Breaking changes that arose during code generation of the library that we postpo
396
215
  * 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`
397
216
  * Add support for `retrieve_payment_method` method on resource `Customer`
398
217
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
218
+
219
+
399
220
 
400
221
  ## 6.0.0 - 2022-05-09
401
222
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -411,6 +232,7 @@ Breaking changes that arose during code generation of the library that we postpo
411
232
  ## 5.55.0 - 2022-05-05
412
233
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
413
234
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
235
+
414
236
 
415
237
  ## 5.54.0 - 2022-05-03
416
238
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1441,4 +1263,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1441
1263
  <!--
1442
1264
  # vim: set tw=0:
1443
1265
  -->
1444
-
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v591
1
+ v603
data/README.md CHANGED
@@ -323,17 +323,6 @@ If your beta feature requires a `Stripe-Version` header to be sent, use the `Str
323
323
  Stripe.api_version += "; feature_beta=v3"
324
324
  ```
325
325
 
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
326
  ## Support
338
327
 
339
328
  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
- 9.5.0-beta.2
1
+ 10.0.0
@@ -47,7 +47,6 @@ module Stripe
47
47
  api_key = headers.delete(:api_key)
48
48
  api_base = headers.delete(:api_base)
49
49
  client = headers.delete(:client)
50
- api_mode = headers.delete(:api_mode)
51
50
  # Assume all remaining opts must be headers
52
51
 
53
52
  resp, opts[:api_key] = client.send(
@@ -55,7 +54,6 @@ module Stripe
55
54
  method, url,
56
55
  api_base: api_base, api_key: api_key,
57
56
  headers: headers, params: params,
58
- api_mode: api_mode,
59
57
  &read_body_chunk_block
60
58
  )
61
59
 
@@ -3,7 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2023-08-16"
7
- PREVIEW = "2023-09-15.preview-v2"
6
+ CURRENT = "2023-10-16"
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,14 +25,10 @@ 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,
35
31
  Checkout::Session::OBJECT_NAME => Checkout::Session,
36
- ConfirmationToken::OBJECT_NAME => ConfirmationToken,
37
32
  CountrySpec::OBJECT_NAME => CountrySpec,
38
33
  Coupon::OBJECT_NAME => Coupon,
39
34
  CreditNote::OBJECT_NAME => CreditNote,
@@ -41,7 +36,6 @@ module Stripe
41
36
  Customer::OBJECT_NAME => Customer,
42
37
  CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction,
43
38
  CustomerCashBalanceTransaction::OBJECT_NAME => CustomerCashBalanceTransaction,
44
- CustomerSession::OBJECT_NAME => CustomerSession,
45
39
  Discount::OBJECT_NAME => Discount,
46
40
  Dispute::OBJECT_NAME => Dispute,
47
41
  EphemeralKey::OBJECT_NAME => EphemeralKey,
@@ -51,16 +45,11 @@ module Stripe
51
45
  File::OBJECT_NAME_ALT => File,
52
46
  FileLink::OBJECT_NAME => FileLink,
53
47
  FinancialConnections::Account::OBJECT_NAME => FinancialConnections::Account,
54
- FinancialConnections::AccountInferredBalance::OBJECT_NAME =>
55
- FinancialConnections::AccountInferredBalance,
56
48
  FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
57
49
  FinancialConnections::AccountOwnership::OBJECT_NAME =>
58
50
  FinancialConnections::AccountOwnership,
59
51
  FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
60
- FinancialConnections::Transaction::OBJECT_NAME => FinancialConnections::Transaction,
61
52
  FundingInstructions::OBJECT_NAME => FundingInstructions,
62
- GiftCards::Card::OBJECT_NAME => GiftCards::Card,
63
- GiftCards::Transaction::OBJECT_NAME => GiftCards::Transaction,
64
53
  Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
65
54
  Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
66
55
  Invoice::OBJECT_NAME => Invoice,
@@ -69,16 +58,12 @@ module Stripe
69
58
  Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
70
59
  Issuing::Card::OBJECT_NAME => Issuing::Card,
71
60
  Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
72
- Issuing::CreditUnderwritingRecord::OBJECT_NAME => Issuing::CreditUnderwritingRecord,
73
61
  Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
74
- Issuing::PersonalizationDesign::OBJECT_NAME => Issuing::PersonalizationDesign,
75
- Issuing::PhysicalBundle::OBJECT_NAME => Issuing::PhysicalBundle,
76
62
  Issuing::Token::OBJECT_NAME => Issuing::Token,
77
63
  Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
78
64
  LineItem::OBJECT_NAME => LineItem,
79
65
  LoginLink::OBJECT_NAME => LoginLink,
80
66
  Mandate::OBJECT_NAME => Mandate,
81
- Order::OBJECT_NAME => Order,
82
67
  PaymentIntent::OBJECT_NAME => PaymentIntent,
83
68
  PaymentLink::OBJECT_NAME => PaymentLink,
84
69
  PaymentMethod::OBJECT_NAME => PaymentMethod,
@@ -91,9 +76,6 @@ module Stripe
91
76
  Product::OBJECT_NAME => Product,
92
77
  PromotionCode::OBJECT_NAME => PromotionCode,
93
78
  Quote::OBJECT_NAME => Quote,
94
- QuotePhase::OBJECT_NAME => QuotePhase,
95
- QuotePreviewInvoice::OBJECT_NAME => QuotePreviewInvoice,
96
- QuotePreviewSubscriptionSchedule::OBJECT_NAME => QuotePreviewSubscriptionSchedule,
97
79
  Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
98
80
  Radar::ValueList::OBJECT_NAME => Radar::ValueList,
99
81
  Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@@ -113,8 +95,6 @@ module Stripe
113
95
  SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
114
96
  Tax::Calculation::OBJECT_NAME => Tax::Calculation,
115
97
  Tax::CalculationLineItem::OBJECT_NAME => Tax::CalculationLineItem,
116
- Tax::Form::OBJECT_NAME => Tax::Form,
117
- Tax::Registration::OBJECT_NAME => Tax::Registration,
118
98
  Tax::Settings::OBJECT_NAME => Tax::Settings,
119
99
  Tax::Transaction::OBJECT_NAME => Tax::Transaction,
120
100
  Tax::TransactionLineItem::OBJECT_NAME => Tax::TransactionLineItem,
@@ -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
  def disconnect(params = {}, opts = {})
16
13
  request_stripe_object(
17
14
  method: :post,
@@ -39,24 +36,6 @@ module Stripe
39
36
  )
40
37
  end
41
38
 
42
- def subscribe(params = {}, opts = {})
43
- request_stripe_object(
44
- method: :post,
45
- path: format("/v1/financial_connections/accounts/%<account>s/subscribe", { account: CGI.escape(self["id"]) }),
46
- params: params,
47
- opts: opts
48
- )
49
- end
50
-
51
- def unsubscribe(params = {}, opts = {})
52
- request_stripe_object(
53
- method: :post,
54
- path: format("/v1/financial_connections/accounts/%<account>s/unsubscribe", { account: CGI.escape(self["id"]) }),
55
- params: params,
56
- opts: opts
57
- )
58
- end
59
-
60
39
  def self.disconnect(account, params = {}, opts = {})
61
40
  request_stripe_object(
62
41
  method: :post,
@@ -83,24 +62,6 @@ module Stripe
83
62
  opts: opts
84
63
  )
85
64
  end
86
-
87
- def self.subscribe(account, params = {}, opts = {})
88
- request_stripe_object(
89
- method: :post,
90
- path: format("/v1/financial_connections/accounts/%<account>s/subscribe", { account: CGI.escape(account) }),
91
- params: params,
92
- opts: opts
93
- )
94
- end
95
-
96
- def self.unsubscribe(account, params = {}, opts = {})
97
- request_stripe_object(
98
- method: :post,
99
- path: format("/v1/financial_connections/accounts/%<account>s/unsubscribe", { account: CGI.escape(account) }),
100
- params: params,
101
- opts: opts
102
- )
103
- end
104
65
  end
105
66
  end
106
67
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module Issuing
6
- # An issuing token object is created when an issued card is added to a digital wallet. As a [card issuer](https://stripe.com/docs/issuing), you can view and manage these tokens through Stripe.
6
+ # An issuing token object is created when an issued card is added to a digital wallet. As a [card issuer](https://stripe.com/docs/issuing), you can [view and manage these tokens](https://stripe.com/docs/issuing/controls/token-management) through Stripe.
7
7
  class Token < APIResource
8
8
  extend Stripe::APIOperations::List
9
9
  include Stripe::APIOperations::Save
@@ -14,7 +14,7 @@ module Stripe
14
14
  #
15
15
  # Related guides:
16
16
  # - [Payment Method Configurations API](https://stripe.com/docs/connect/payment-method-configurations)
17
- # - [Multiple payment method configurations on dynamic payment methods](https://stripe.com/docs/payments/multiple-payment-method-configs)
17
+ # - [Multiple configurations on dynamic payment methods](https://stripe.com/docs/payments/multiple-payment-method-configs)
18
18
  # - [Multiple configurations for your Connect accounts](https://stripe.com/docs/connect/multiple-payment-method-configurations)
19
19
  class PaymentMethodConfiguration < APIResource
20
20
  extend Stripe::APIOperations::Create