stripe 9.4.0.pre.beta.3 → 9.4.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 +44 -213
  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 +0 -1
  8. data/lib/stripe/object_types.rb +1 -17
  9. data/lib/stripe/resources/financial_connections/account.rb +0 -39
  10. data/lib/stripe/resources/issuing/token.rb +14 -0
  11. data/lib/stripe/resources/payment_method_configuration.rb +14 -1
  12. data/lib/stripe/resources/quote.rb +0 -94
  13. data/lib/stripe/resources/setup_intent.rb +11 -12
  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/token.rb +11 -11
  17. data/lib/stripe/resources.rb +1 -17
  18. data/lib/stripe/stripe_client.rb +26 -60
  19. data/lib/stripe/stripe_configuration.rb +0 -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 +5 -22
  24. data/lib/stripe/request_signing_authenticator.rb +0 -83
  25. data/lib/stripe/resources/capital/financing_offer.rb +0 -32
  26. data/lib/stripe/resources/capital/financing_summary.rb +0 -12
  27. data/lib/stripe/resources/capital/financing_transaction.rb +0 -13
  28. data/lib/stripe/resources/confirmation_token.rb +0 -11
  29. data/lib/stripe/resources/customer_session.rb +0 -12
  30. data/lib/stripe/resources/financial_connections/inferred_balance.rb +0 -13
  31. data/lib/stripe/resources/financial_connections/transaction.rb +0 -13
  32. data/lib/stripe/resources/gift_cards/card.rb +0 -25
  33. data/lib/stripe/resources/gift_cards/transaction.rb +0 -56
  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_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: 5a614dc902059fe7cd8fc457e2b3074fe27852175e85149506696e59e6383f09
4
- data.tar.gz: e337556039216583207283b2cf00c5e8e3853e76c087dc3fb97f9efb46317048
3
+ metadata.gz: 85d94c600ad7cd7fb6fab1d870eb140b39d296335f605660fcfad7540c550f32
4
+ data.tar.gz: 5d3a71f6f20d3043aaa7119b4d0652fd76acc05362d3e689726f24befa9bfd99
5
5
  SHA512:
6
- metadata.gz: 8a5a634c8a31aea738af218070c71e0d138a4132f18701928e677c0166571b67bc65d5a960f3c1e7f506d478072e61f4311d03555844c1f2c39514dd96d02286
7
- data.tar.gz: c9e0957347da262d0141e070b941192b1f3ffcb7c2939676abf50cc8c3ef6fbc2c548a3adff0fc814f7b0b15fc84ed2e8e75b05fb29fb315bd428390e0963c8a
6
+ metadata.gz: 0cd999a50074d35b9e46482556ff499aa157a114237e42b4c662678a40669e953d9534de2422478290786e0bd5ec8e9641faa321a7d00057f47feb6d192c17db
7
+ data.tar.gz: 63ff32f66d8b1fd7f0d168e90a92b18c002a7485b5ea776e2c3fcdbf9516ef5caf864518f9051598d092a9685d0c7e30fb3e10a8fe9f856aef23b8904e241596
data/CHANGELOG.md CHANGED
@@ -1,14 +1,8 @@
1
1
  # Changelog
2
-
3
- ## 9.4.0-beta.3 - 2023-09-28
4
- * [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
5
- * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
6
-
7
- ## 9.4.0-beta.2 - 2023-09-21
8
- * [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
9
-
10
- ## 9.4.0-beta.1 - 2023-09-14
11
- * Updated stable APIs to the latest version
2
+ ## 9.4.0 - 2023-10-05
3
+ * [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code
4
+ * Add support for new resources `Issuing.Token`
5
+ * Add support for `list`, `retrieve`, and `update` methods on resource `Token`
12
6
 
13
7
  ## 9.3.0 - 2023-09-14
14
8
  * [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
@@ -18,38 +12,18 @@
18
12
  * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
19
13
  * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
20
14
 
21
- ## 9.3.0-beta.1 - 2023-09-07
22
- * [#1269](https://github.com/stripe/stripe-ruby/pull/1269) Update generated code for beta
23
- * Release specs are identical.
24
- * [#1268](https://github.com/stripe/stripe-ruby/pull/1268) Update generated code for beta
25
- * Remove support for `submit_card` test helper method on resource `Issuing.Card`
26
- * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
27
- * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
28
- * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
29
- * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
30
- * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
31
-
32
- * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
33
-
34
- * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
35
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
36
- * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
37
-
38
15
  ## 9.2.0 - 2023-09-07
39
16
  * [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
40
17
  * Add support for new resource `PaymentMethodDomain`
41
18
  * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
42
19
 
43
- ## 9.2.0-beta.1 - 2023-08-31
44
- * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
45
- * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
46
-
47
20
  ## 9.1.0 - 2023-08-31
48
21
  * [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
49
22
  * Add support for new resource `AccountSession`
50
23
  * Add support for `create` method on resource `AccountSession`
51
24
  * [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
52
25
 
26
+
53
27
  ## 9.0.0 - 2023-08-16
54
28
  **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
55
29
 
@@ -82,39 +56,10 @@
82
56
 
83
57
  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.
84
58
 
85
- ## 9.0.0-beta.1 - 2023-08-24
86
- * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
87
- * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
88
- * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
89
-
90
- ## 8.8.0-beta.1 - 2023-08-10
91
- * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
92
- * Updated stable APIs to the latest version
93
-
94
59
  ## 8.7.0 - 2023-08-10
95
60
  * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
96
61
  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.
97
62
 
98
- ## 8.7.0-beta.3 - 2023-08-03
99
- * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
100
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
101
- * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
102
-
103
- ## 8.7.0-beta.2 - 2023-07-28
104
- * [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
105
- * Add support for new resource `Tax.Form`
106
- * Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
107
- * [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
108
- * [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
109
-
110
- ## 8.7.0-beta.1 - 2023-07-13
111
- * [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
112
- Release specs are identical.
113
- * [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
114
- * Add support for new resource `PaymentMethodConfiguration`
115
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
116
- * [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
117
-
118
63
  ## 8.6.0 - 2023-07-13
119
64
  * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
120
65
  * Add support for new resource `Tax.Settings`
@@ -143,37 +88,6 @@
143
88
 
144
89
  * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
145
90
 
146
- ## 8.6.0-beta.6 - 2023-06-22
147
- * [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
148
- * Add support for new resource `CustomerSession`
149
- * Add support for `create` method on resource `CustomerSession`
150
- * [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
151
- * [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
152
-
153
- ## 8.6.0-beta.5 - 2023-06-01
154
- * [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
155
- * [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
156
- * [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
157
- * [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
158
-
159
- ## 8.6.0-beta.4 - 2023-05-19
160
- * [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
161
- * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
162
- * [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
163
- * [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
164
- * [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
165
-
166
- ## 8.6.0-beta.3 - 2023-04-17
167
- * [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
168
- * [#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
169
-
170
- ## 8.6.0-beta.2 - 2023-04-13
171
- * [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
172
- * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
173
- * [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
174
-
175
- ## 8.6.0-beta.1 - 2023-03-30
176
- * [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
177
91
 
178
92
  ## 8.5.0 - 2023-03-30
179
93
  * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
@@ -181,11 +95,6 @@
181
95
  * 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.
182
96
  * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
183
97
 
184
- ## 8.5.0-beta.1 - 2023-03-23
185
- * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
186
- * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
187
- * Add support for `collect_inputs` method on resource `Terminal.Reader`
188
-
189
98
  ## 8.4.0 - 2023-03-23
190
99
  * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
191
100
  * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
@@ -193,91 +102,18 @@
193
102
  * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
194
103
  * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
195
104
 
196
- ## 8.4.0-beta.4 - 2023-03-16
197
- * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
198
- * Add support for `create_from_calculation` method on resource `Tax.Transaction`
199
- * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
200
- * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
201
- * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
202
- * Remove support for `retrieve` method on resource `FinancingSummary`
203
- * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
204
-
205
- ## 8.4.0-beta.3 - 2023-03-09
206
- * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
207
- * Updated stable APIs to the latest version
208
- * Remove support for `list_transactions` method on resource `Tax.Transaction`
209
-
210
- ## 8.4.0-beta.2 - 2023-03-03
211
- * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
212
- * Updated stable APIs to the latest version
213
- * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
214
- * Add support for `list` and `retrieve` methods on resource `CardBundle`
215
- * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
216
-
217
- ## 8.4.0-beta.1 - 2023-02-23
218
- * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
219
- * Updated stable APIs to the latest version
220
-
221
105
  ## 8.3.0 - 2023-02-16
222
106
  * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
223
107
  * Add support for `refund_payment` method on resource `Terminal.Reader`
224
108
 
225
- ## 8.3.0-beta.1 - 2023-02-02
226
- * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
227
- * Updated stable APIs to the latest version
228
- * Add support for new resource `FinancialConnections.Transaction`
229
- * Add support for `list` method on resource `Transaction`
230
-
231
109
  ## 8.2.0 - 2023-02-02
232
110
  * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
233
111
  * Add support for `resume` method on resource `Subscription`
234
112
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
235
113
 
236
- ## 8.2.0-beta.3 - 2023-01-26
237
- * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
238
- * Updated stable APIs to the latest version
239
- * Add support for `list_transactions` method on resource `Tax.Transaction`
240
-
241
- ## 8.2.0-beta.2 - 2023-01-19
242
- * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
243
- * Updated stable APIs to the latest version
244
- * Add support for `Tax.Settings` resource.
245
-
246
- ## 8.2.0-beta.1 - 2023-01-12
247
- * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
248
- * Updated stable APIs to the latest version
249
- * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
250
- * Add support for `Tax::Register` resource
251
-
252
114
  ## 8.1.0 - 2023-01-12
253
115
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
254
116
 
255
- ## 8.1.0-beta.4 - 2023-01-05
256
- * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
257
- * Updated stable APIs to the latest version
258
- * Add support for `mark_stale_quote` method on resource `Quote`
259
-
260
- ## 8.1.0-beta.3 - 2022-12-22
261
- * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
262
- * Updated stable APIs to the latest version
263
- * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
264
-
265
- ## 8.1.0-beta.2 - 2022-12-15
266
- * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
267
- * Updated stable APIs to the latest version
268
- * Add support for new resources `TaxCalculation`, and `TaxTransaction`
269
- * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
270
- * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
271
- * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
272
- * Updated stable APIs to the latest version
273
- * Add support for new resource `QuoteLine`.
274
-
275
- ## 8.1.0-beta.1 - 2022-12-08
276
- * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
277
- * Updated stable APIs to the latest version
278
- * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
279
- * Updated stable APIs to the latest version
280
-
281
117
  ## 8.0.0 - 2022-11-16
282
118
  * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
283
119
 
@@ -285,29 +121,30 @@ Breaking changes that arose during code generation of the library that we postpo
285
121
 
286
122
  "⚠️" symbol highlights breaking changes.
287
123
 
288
- ## 7.2.0-beta.5 - 2022-11-02
289
- * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
290
- * Updated beta APIs to the latest stable version
291
- * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
292
- * Updated stable APIs to the latest version
293
-
294
- ## 7.2.0-beta.4 - 2022-10-07
295
- * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
124
+ ### Deprecated
125
+ - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
126
+ ``` ruby
127
+ # before
128
+ refund = Stripe::Refund.retrieve("re_123")
129
+ refund.description = "Refund description"
130
+ refund.save
131
+
132
+ # after
133
+ Stripe::Refund.update("re_123", description: "Refund description")
134
+ ```
296
135
 
297
- ## 7.2.0-beta.3 - 2022-09-26
298
- * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
299
- * Updated stable APIs to the latest version
300
- * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
136
+ ### ⚠️ Removed
137
+ - Removed deprecated `Sku` resource.
138
+ - Removed deprecated `Orders` resource.
139
+ - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
140
+ ```ruby
141
+ # before
142
+ Stripe::Subscription::delete("sub_12345")
301
143
 
302
- ## 7.2.0-beta.2 - 2022-08-26
303
- * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
304
- * Updated stable APIs to the latest version
305
- * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
144
+ # after
145
+ Stripe::Subscription::cancel("sub_12345")
146
+ ```
306
147
 
307
- ## 7.2.0-beta.1 - 2022-08-23
308
- * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
309
- - Updated stable APIs to the latest version
310
- - `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)
311
148
 
312
149
  ## 7.1.0 - 2022-08-19
313
150
  * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@@ -316,16 +153,6 @@ Breaking changes that arose during code generation of the library that we postpo
316
153
  * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
317
154
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
318
155
 
319
- ## 7.1.0-beta.2 - 2022-08-11
320
- * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
321
- - Updated stable APIs to the latest version
322
- - Add `refund_payment` method to Terminal resource
323
-
324
- ## 7.1.0-beta.1 - 2022-08-03
325
- * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
326
- - Updated stable APIs to the latest version
327
- - Added the `Order` resource support
328
-
329
156
  ## 7.0.0 - 2022-08-02
330
157
 
331
158
  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.
@@ -337,19 +164,21 @@ Breaking changes that arose during code generation of the library that we postpo
337
164
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
338
165
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
339
166
 
340
- ## 6.6.0-beta.1 - 2022-07-22
341
- * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
342
- - Updated stable APIs to the latest version
343
- - Add `QuotePhase` resource
344
- * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
345
- - Updated stable APIs to the latest version
346
- - Add `SubscriptionSchedule.amend` method.
347
- * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
348
- - Include `server_side_confirmation_beta=v1` beta
349
- - Add `secretKeyConfirmation` to `PaymentIntent`
350
- * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
351
- - Updated stable APIs to the latest version
352
- * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
167
+ ### ⚠️ Changed
168
+ * `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.
169
+ * Update default bundle of CA certificates to April 26, 2022.
170
+
171
+ ### Deprecated
172
+ * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
173
+
174
+ ### ⚠️ Removed
175
+ * Remove `details` method from `Issuing.Card` resource. The method was not supported.
176
+ * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
177
+ * Remove `create` method from `ReportType` resource. The method was not supported.
178
+ * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
179
+ * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
180
+ * Remove ability to list `Card` resource for a `Recipient`.
181
+ * Remove `cancel` method from `Transfer` resource. The method was deprecated.
353
182
 
354
183
  ## 6.5.0 - 2022-06-29
355
184
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -379,6 +208,8 @@ Breaking changes that arose during code generation of the library that we postpo
379
208
  * 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`
380
209
  * Add support for `retrieve_payment_method` method on resource `Customer`
381
210
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
211
+
212
+
382
213
 
383
214
  ## 6.0.0 - 2022-05-09
384
215
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -394,6 +225,7 @@ Breaking changes that arose during code generation of the library that we postpo
394
225
  ## 5.55.0 - 2022-05-05
395
226
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
396
227
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
228
+
397
229
 
398
230
  ## 5.54.0 - 2022-05-03
399
231
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1424,4 +1256,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1424
1256
  <!--
1425
1257
  # vim: set tw=0:
1426
1258
  -->
1427
-
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v569
1
+ v580
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.4.0-beta.3
1
+ 9.4.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
 
@@ -4,6 +4,5 @@
4
4
  module Stripe
5
5
  module ApiVersion
6
6
  CURRENT = "2023-08-16"
7
- PREVIEW = "2023-09-15.preview-v2"
8
7
  end
9
8
  end
@@ -25,14 +25,10 @@ module Stripe
25
25
  BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration,
26
26
  BillingPortal::Session::OBJECT_NAME => BillingPortal::Session,
27
27
  Capability::OBJECT_NAME => Capability,
28
- Capital::FinancingOffer::OBJECT_NAME => Capital::FinancingOffer,
29
- Capital::FinancingSummary::OBJECT_NAME => Capital::FinancingSummary,
30
- Capital::FinancingTransaction::OBJECT_NAME => Capital::FinancingTransaction,
31
28
  Card::OBJECT_NAME => Card,
32
29
  CashBalance::OBJECT_NAME => CashBalance,
33
30
  Charge::OBJECT_NAME => Charge,
34
31
  Checkout::Session::OBJECT_NAME => Checkout::Session,
35
- ConfirmationToken::OBJECT_NAME => ConfirmationToken,
36
32
  CountrySpec::OBJECT_NAME => CountrySpec,
37
33
  Coupon::OBJECT_NAME => Coupon,
38
34
  CreditNote::OBJECT_NAME => CreditNote,
@@ -40,7 +36,6 @@ module Stripe
40
36
  Customer::OBJECT_NAME => Customer,
41
37
  CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction,
42
38
  CustomerCashBalanceTransaction::OBJECT_NAME => CustomerCashBalanceTransaction,
43
- CustomerSession::OBJECT_NAME => CustomerSession,
44
39
  Discount::OBJECT_NAME => Discount,
45
40
  Dispute::OBJECT_NAME => Dispute,
46
41
  EphemeralKey::OBJECT_NAME => EphemeralKey,
@@ -53,12 +48,8 @@ module Stripe
53
48
  FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
54
49
  FinancialConnections::AccountOwnership::OBJECT_NAME =>
55
50
  FinancialConnections::AccountOwnership,
56
- FinancialConnections::InferredBalance::OBJECT_NAME => FinancialConnections::InferredBalance,
57
51
  FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
58
- FinancialConnections::Transaction::OBJECT_NAME => FinancialConnections::Transaction,
59
52
  FundingInstructions::OBJECT_NAME => FundingInstructions,
60
- GiftCards::Card::OBJECT_NAME => GiftCards::Card,
61
- GiftCards::Transaction::OBJECT_NAME => GiftCards::Transaction,
62
53
  Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
63
54
  Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
64
55
  Invoice::OBJECT_NAME => Invoice,
@@ -68,13 +59,11 @@ module Stripe
68
59
  Issuing::Card::OBJECT_NAME => Issuing::Card,
69
60
  Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
70
61
  Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
71
- Issuing::PersonalizationDesign::OBJECT_NAME => Issuing::PersonalizationDesign,
72
- Issuing::PhysicalBundle::OBJECT_NAME => Issuing::PhysicalBundle,
62
+ Issuing::Token::OBJECT_NAME => Issuing::Token,
73
63
  Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
74
64
  LineItem::OBJECT_NAME => LineItem,
75
65
  LoginLink::OBJECT_NAME => LoginLink,
76
66
  Mandate::OBJECT_NAME => Mandate,
77
- Order::OBJECT_NAME => Order,
78
67
  PaymentIntent::OBJECT_NAME => PaymentIntent,
79
68
  PaymentLink::OBJECT_NAME => PaymentLink,
80
69
  PaymentMethod::OBJECT_NAME => PaymentMethod,
@@ -87,9 +76,6 @@ module Stripe
87
76
  Product::OBJECT_NAME => Product,
88
77
  PromotionCode::OBJECT_NAME => PromotionCode,
89
78
  Quote::OBJECT_NAME => Quote,
90
- QuotePhase::OBJECT_NAME => QuotePhase,
91
- QuotePreviewInvoice::OBJECT_NAME => QuotePreviewInvoice,
92
- QuotePreviewSchedule::OBJECT_NAME => QuotePreviewSchedule,
93
79
  Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
94
80
  Radar::ValueList::OBJECT_NAME => Radar::ValueList,
95
81
  Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@@ -109,8 +95,6 @@ module Stripe
109
95
  SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
110
96
  Tax::Calculation::OBJECT_NAME => Tax::Calculation,
111
97
  Tax::CalculationLineItem::OBJECT_NAME => Tax::CalculationLineItem,
112
- Tax::Form::OBJECT_NAME => Tax::Form,
113
- Tax::Registration::OBJECT_NAME => Tax::Registration,
114
98
  Tax::Settings::OBJECT_NAME => Tax::Settings,
115
99
  Tax::Transaction::OBJECT_NAME => Tax::Transaction,
116
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
@@ -0,0 +1,14 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
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.
7
+ class Token < APIResource
8
+ extend Stripe::APIOperations::List
9
+ include Stripe::APIOperations::Save
10
+
11
+ OBJECT_NAME = "issuing.token"
12
+ end
13
+ end
14
+ end
@@ -2,7 +2,20 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # An object detailing payment method configurations.
5
+ # PaymentMethodConfigurations control which payment methods are displayed to your customers when you don't explicitly specify payment method types. You can have multiple configurations with different sets of payment methods for different scenarios.
6
+ #
7
+ # There are two types of PaymentMethodConfigurations. Which is used depends on the [charge type](https://stripe.com/docs/connect/charges):
8
+ #
9
+ # **Direct** configurations apply to payments created on your account, including Connect destination charges, Connect separate charges and transfers, and payments not involving Connect.
10
+ #
11
+ # **Child** configurations apply to payments created on your connected accounts using direct charges, and charges with the on_behalf_of parameter.
12
+ #
13
+ # Child configurations have a `parent` that sets default values and controls which settings connected accounts may override. You can specify a parent ID at payment time, and Stripe will automatically resolve the connected account's associated child configuration. Parent configurations are [managed in the dashboard](https://dashboard.stripe.com/settings/payment_methods/connected_accounts) and are not available in this API.
14
+ #
15
+ # Related guides:
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)
18
+ # - [Multiple configurations for your Connect accounts](https://stripe.com/docs/connect/multiple-payment-method-configurations)
6
19
  class PaymentMethodConfiguration < APIResource
7
20
  extend Stripe::APIOperations::Create
8
21
  extend Stripe::APIOperations::List