stripe 10.1.0.pre.beta.2 → 10.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +44 -235
  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 +0 -20
  9. data/lib/stripe/resources/exchange_rate.rb +25 -10
  10. data/lib/stripe/resources/financial_connections/account.rb +0 -39
  11. data/lib/stripe/resources/quote.rb +0 -94
  12. data/lib/stripe/resources/subscription_schedule.rb +0 -18
  13. data/lib/stripe/resources/terminal/reader.rb +0 -54
  14. data/lib/stripe/resources.rb +0 -19
  15. data/lib/stripe/stripe_client.rb +26 -60
  16. data/lib/stripe/stripe_configuration.rb +0 -2
  17. data/lib/stripe/util.rb +1 -8
  18. data/lib/stripe/version.rb +1 -1
  19. data/lib/stripe.rb +0 -46
  20. metadata +4 -24
  21. data/lib/stripe/request_signing_authenticator.rb +0 -83
  22. data/lib/stripe/resources/account_notice.rb +0 -14
  23. data/lib/stripe/resources/capital/financing_offer.rb +0 -32
  24. data/lib/stripe/resources/capital/financing_summary.rb +0 -12
  25. data/lib/stripe/resources/capital/financing_transaction.rb +0 -13
  26. data/lib/stripe/resources/confirmation_token.rb +0 -11
  27. data/lib/stripe/resources/customer_session.rb +0 -12
  28. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -13
  29. data/lib/stripe/resources/financial_connections/transaction.rb +0 -13
  30. data/lib/stripe/resources/gift_cards/card.rb +0 -25
  31. data/lib/stripe/resources/gift_cards/transaction.rb +0 -56
  32. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -69
  33. data/lib/stripe/resources/issuing/personalization_design.rb +0 -77
  34. data/lib/stripe/resources/issuing/physical_bundle.rb +0 -13
  35. data/lib/stripe/resources/margin.rb +0 -14
  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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a59a9272d721346ce0981f56d161ae578e115fc877ae16933aef5ef79ffccb4b
4
- data.tar.gz: 36deaaee3ff623ae88748944c71ec59b29e6962623da0b86c784081ef0ff4053
3
+ metadata.gz: 161eba8138b975aa9911f0fb43639b9732d11368b870d56b2a40dc394d8ae23c
4
+ data.tar.gz: 49cda1fbae2fe6731646e00d795406d03bcf5cdc0f3973e700c12a3b048098db
5
5
  SHA512:
6
- metadata.gz: 83fcb4fe1b20b6dce2a8b547cc065eda4dbaf315fa669ef9367e5b5ab319f48809a2fb1385d2d244c004e5cf1af019c00fbb2c2bf024fadab9194022aab92bea
7
- data.tar.gz: 8259b4b7e5241732f8a1629c607a1f6ac47b3fddce59446500739e620947b0b47cc43e1e1c341a31eb9ff8b11c267188f0fea90c0d840c6a2209bfcd48c32ac3
6
+ metadata.gz: d80cdfbfeb61f3012e1e94483adb2221a7921e12b1a3461681c592cebf95937898fd438458d1feaa351824820f4711a42ddd7d3ebc20ed02a59d9896085e0fe5
7
+ data.tar.gz: a8d56ab530687777b348080757e53f20dc83a0121ce5e3578e4ff7fee31ea024be48b68fef318a9d7433d1d246a84e6a97d461942986dee5d684eeb04558db2a
data/CHANGELOG.md CHANGED
@@ -1,14 +1,8 @@
1
1
  # Changelog
2
-
3
- ## 10.1.0-beta.2 - 2023-10-26
4
- * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
5
- * Add support for new resource `Margin`
6
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Margin`
7
-
8
- ## 10.1.0-beta.1 - 2023-10-17
9
- * [#1284](https://github.com/stripe/stripe-ruby/pull/1284) Update generated code for beta
10
- - Update pinned API version to `2023-10-16`
11
- * [#1282](https://github.com/stripe/stripe-ruby/pull/1282) Update generated code for beta
2
+ ## 10.1.0 - 2023-11-02
3
+ * [#1286](https://github.com/stripe/stripe-ruby/pull/1286) Update generated code
4
+ * Add support for new resource `Tax.Registration`
5
+ * Add support for `create`, `list`, and `update` methods on resource `Registration`
12
6
 
13
7
  ## 10.0.0 - 2023-10-16
14
8
  * 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`.
@@ -17,33 +11,11 @@
17
11
  * [#1281](https://github.com/stripe/stripe-ruby/pull/1281) Update generated code
18
12
  * Documentation only changes
19
13
 
20
- ## 9.5.0-beta.2 - 2023-10-12
21
- * [#1280](https://github.com/stripe/stripe-ruby/pull/1280) Update generated code for beta
22
- * Add support for new resources `AccountNotice` and `Issuing.CreditUnderwritingRecord`
23
- * Add support for `list`, `retrieve`, and `update` methods on resource `AccountNotice`
24
- * Add support for `correct`, `create_from_application`, `create_from_proactive_review`, `list`, `report_decision`, and `retrieve` methods on resource `CreditUnderwritingRecord`
25
-
26
- ## 9.5.0-beta.1 - 2023-10-05
27
- * [#1278](https://github.com/stripe/stripe-ruby/pull/1278) Update generated code for beta
28
- * Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
29
- * Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
30
- * Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote`
31
-
32
14
  ## 9.4.0 - 2023-10-05
33
15
  * [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code
34
16
  * Add support for new resources `Issuing.Token`
35
17
  * Add support for `list`, `retrieve`, and `update` methods on resource `Token`
36
18
 
37
- ## 9.4.0-beta.3 - 2023-09-28
38
- * [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
39
- * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
40
-
41
- ## 9.4.0-beta.2 - 2023-09-21
42
- * [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
43
-
44
- ## 9.4.0-beta.1 - 2023-09-14
45
- * Updated stable APIs to the latest version
46
-
47
19
  ## 9.3.0 - 2023-09-14
48
20
  * [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
49
21
  * Add support for new resource `PaymentMethodConfiguration`
@@ -52,38 +24,18 @@
52
24
  * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
53
25
  * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
54
26
 
55
- ## 9.3.0-beta.1 - 2023-09-07
56
- * [#1269](https://github.com/stripe/stripe-ruby/pull/1269) Update generated code for beta
57
- * Release specs are identical.
58
- * [#1268](https://github.com/stripe/stripe-ruby/pull/1268) Update generated code for beta
59
- * Remove support for `submit_card` test helper method on resource `Issuing.Card`
60
- * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
61
- * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
62
- * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
63
- * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
64
- * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
65
-
66
- * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
67
-
68
- * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
69
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
70
- * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
71
-
72
27
  ## 9.2.0 - 2023-09-07
73
28
  * [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
74
29
  * Add support for new resource `PaymentMethodDomain`
75
30
  * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
76
31
 
77
- ## 9.2.0-beta.1 - 2023-08-31
78
- * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
79
- * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
80
-
81
32
  ## 9.1.0 - 2023-08-31
82
33
  * [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
83
34
  * Add support for new resource `AccountSession`
84
35
  * Add support for `create` method on resource `AccountSession`
85
36
  * [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
86
37
 
38
+
87
39
  ## 9.0.0 - 2023-08-16
88
40
  **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
89
41
 
@@ -116,39 +68,10 @@
116
68
 
117
69
  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.
118
70
 
119
- ## 9.0.0-beta.1 - 2023-08-24
120
- * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
121
- * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
122
- * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
123
-
124
- ## 8.8.0-beta.1 - 2023-08-10
125
- * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
126
- * Updated stable APIs to the latest version
127
-
128
71
  ## 8.7.0 - 2023-08-10
129
72
  * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
130
73
  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.
131
74
 
132
- ## 8.7.0-beta.3 - 2023-08-03
133
- * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
134
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
135
- * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
136
-
137
- ## 8.7.0-beta.2 - 2023-07-28
138
- * [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
139
- * Add support for new resource `Tax.Form`
140
- * Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
141
- * [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
142
- * [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
143
-
144
- ## 8.7.0-beta.1 - 2023-07-13
145
- * [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
146
- Release specs are identical.
147
- * [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
148
- * Add support for new resource `PaymentMethodConfiguration`
149
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
150
- * [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
151
-
152
75
  ## 8.6.0 - 2023-07-13
153
76
  * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
154
77
  * Add support for new resource `Tax.Settings`
@@ -177,37 +100,6 @@
177
100
 
178
101
  * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
179
102
 
180
- ## 8.6.0-beta.6 - 2023-06-22
181
- * [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
182
- * Add support for new resource `CustomerSession`
183
- * Add support for `create` method on resource `CustomerSession`
184
- * [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
185
- * [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
186
-
187
- ## 8.6.0-beta.5 - 2023-06-01
188
- * [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
189
- * [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
190
- * [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
191
- * [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
192
-
193
- ## 8.6.0-beta.4 - 2023-05-19
194
- * [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
195
- * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
196
- * [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
197
- * [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
198
- * [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
199
-
200
- ## 8.6.0-beta.3 - 2023-04-17
201
- * [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
202
- * [#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
203
-
204
- ## 8.6.0-beta.2 - 2023-04-13
205
- * [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
206
- * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
207
- * [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
208
-
209
- ## 8.6.0-beta.1 - 2023-03-30
210
- * [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
211
103
 
212
104
  ## 8.5.0 - 2023-03-30
213
105
  * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
@@ -215,11 +107,6 @@
215
107
  * 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.
216
108
  * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
217
109
 
218
- ## 8.5.0-beta.1 - 2023-03-23
219
- * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
220
- * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
221
- * Add support for `collect_inputs` method on resource `Terminal.Reader`
222
-
223
110
  ## 8.4.0 - 2023-03-23
224
111
  * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
225
112
  * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
@@ -227,91 +114,18 @@
227
114
  * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
228
115
  * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
229
116
 
230
- ## 8.4.0-beta.4 - 2023-03-16
231
- * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
232
- * Add support for `create_from_calculation` method on resource `Tax.Transaction`
233
- * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
234
- * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
235
- * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
236
- * Remove support for `retrieve` method on resource `FinancingSummary`
237
- * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
238
-
239
- ## 8.4.0-beta.3 - 2023-03-09
240
- * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
241
- * Updated stable APIs to the latest version
242
- * Remove support for `list_transactions` method on resource `Tax.Transaction`
243
-
244
- ## 8.4.0-beta.2 - 2023-03-03
245
- * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
246
- * Updated stable APIs to the latest version
247
- * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
248
- * Add support for `list` and `retrieve` methods on resource `CardBundle`
249
- * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
250
-
251
- ## 8.4.0-beta.1 - 2023-02-23
252
- * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
253
- * Updated stable APIs to the latest version
254
-
255
117
  ## 8.3.0 - 2023-02-16
256
118
  * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
257
119
  * Add support for `refund_payment` method on resource `Terminal.Reader`
258
120
 
259
- ## 8.3.0-beta.1 - 2023-02-02
260
- * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
261
- * Updated stable APIs to the latest version
262
- * Add support for new resource `FinancialConnections.Transaction`
263
- * Add support for `list` method on resource `Transaction`
264
-
265
121
  ## 8.2.0 - 2023-02-02
266
122
  * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
267
123
  * Add support for `resume` method on resource `Subscription`
268
124
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
269
125
 
270
- ## 8.2.0-beta.3 - 2023-01-26
271
- * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
272
- * Updated stable APIs to the latest version
273
- * Add support for `list_transactions` method on resource `Tax.Transaction`
274
-
275
- ## 8.2.0-beta.2 - 2023-01-19
276
- * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
277
- * Updated stable APIs to the latest version
278
- * Add support for `Tax.Settings` resource.
279
-
280
- ## 8.2.0-beta.1 - 2023-01-12
281
- * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
282
- * Updated stable APIs to the latest version
283
- * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
284
- * Add support for `Tax::Register` resource
285
-
286
126
  ## 8.1.0 - 2023-01-12
287
127
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
288
128
 
289
- ## 8.1.0-beta.4 - 2023-01-05
290
- * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
291
- * Updated stable APIs to the latest version
292
- * Add support for `mark_stale_quote` method on resource `Quote`
293
-
294
- ## 8.1.0-beta.3 - 2022-12-22
295
- * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
296
- * Updated stable APIs to the latest version
297
- * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
298
-
299
- ## 8.1.0-beta.2 - 2022-12-15
300
- * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
301
- * Updated stable APIs to the latest version
302
- * Add support for new resources `TaxCalculation`, and `TaxTransaction`
303
- * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
304
- * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
305
- * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
306
- * Updated stable APIs to the latest version
307
- * Add support for new resource `QuoteLine`.
308
-
309
- ## 8.1.0-beta.1 - 2022-12-08
310
- * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
311
- * Updated stable APIs to the latest version
312
- * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
313
- * Updated stable APIs to the latest version
314
-
315
129
  ## 8.0.0 - 2022-11-16
316
130
  * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
317
131
 
@@ -319,29 +133,30 @@ Breaking changes that arose during code generation of the library that we postpo
319
133
 
320
134
  "⚠️" symbol highlights breaking changes.
321
135
 
322
- ## 7.2.0-beta.5 - 2022-11-02
323
- * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
324
- * Updated beta APIs to the latest stable version
325
- * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
326
- * Updated stable APIs to the latest version
327
-
328
- ## 7.2.0-beta.4 - 2022-10-07
329
- * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
136
+ ### Deprecated
137
+ - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
138
+ ``` ruby
139
+ # before
140
+ refund = Stripe::Refund.retrieve("re_123")
141
+ refund.description = "Refund description"
142
+ refund.save
143
+
144
+ # after
145
+ Stripe::Refund.update("re_123", description: "Refund description")
146
+ ```
330
147
 
331
- ## 7.2.0-beta.3 - 2022-09-26
332
- * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
333
- * Updated stable APIs to the latest version
334
- * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
148
+ ### ⚠️ Removed
149
+ - Removed deprecated `Sku` resource.
150
+ - Removed deprecated `Orders` resource.
151
+ - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
152
+ ```ruby
153
+ # before
154
+ Stripe::Subscription::delete("sub_12345")
335
155
 
336
- ## 7.2.0-beta.2 - 2022-08-26
337
- * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
338
- * Updated stable APIs to the latest version
339
- * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
156
+ # after
157
+ Stripe::Subscription::cancel("sub_12345")
158
+ ```
340
159
 
341
- ## 7.2.0-beta.1 - 2022-08-23
342
- * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
343
- - Updated stable APIs to the latest version
344
- - `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)
345
160
 
346
161
  ## 7.1.0 - 2022-08-19
347
162
  * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@@ -350,16 +165,6 @@ Breaking changes that arose during code generation of the library that we postpo
350
165
  * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
351
166
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
352
167
 
353
- ## 7.1.0-beta.2 - 2022-08-11
354
- * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
355
- - Updated stable APIs to the latest version
356
- - Add `refund_payment` method to Terminal resource
357
-
358
- ## 7.1.0-beta.1 - 2022-08-03
359
- * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
360
- - Updated stable APIs to the latest version
361
- - Added the `Order` resource support
362
-
363
168
  ## 7.0.0 - 2022-08-02
364
169
 
365
170
  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.
@@ -371,19 +176,21 @@ Breaking changes that arose during code generation of the library that we postpo
371
176
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
372
177
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
373
178
 
374
- ## 6.6.0-beta.1 - 2022-07-22
375
- * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
376
- - Updated stable APIs to the latest version
377
- - Add `QuotePhase` resource
378
- * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
379
- - Updated stable APIs to the latest version
380
- - Add `SubscriptionSchedule.amend` method.
381
- * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
382
- - Include `server_side_confirmation_beta=v1` beta
383
- - Add `secretKeyConfirmation` to `PaymentIntent`
384
- * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
385
- - Updated stable APIs to the latest version
386
- * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
179
+ ### ⚠️ Changed
180
+ * `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.
181
+ * Update default bundle of CA certificates to April 26, 2022.
182
+
183
+ ### Deprecated
184
+ * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
185
+
186
+ ### ⚠️ Removed
187
+ * Remove `details` method from `Issuing.Card` resource. The method was not supported.
188
+ * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
189
+ * Remove `create` method from `ReportType` resource. The method was not supported.
190
+ * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
191
+ * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
192
+ * Remove ability to list `Card` resource for a `Recipient`.
193
+ * Remove `cancel` method from `Transfer` resource. The method was deprecated.
387
194
 
388
195
  ## 6.5.0 - 2022-06-29
389
196
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -413,6 +220,8 @@ Breaking changes that arose during code generation of the library that we postpo
413
220
  * 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`
414
221
  * Add support for `retrieve_payment_method` method on resource `Customer`
415
222
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
223
+
224
+
416
225
 
417
226
  ## 6.0.0 - 2022-05-09
418
227
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -428,6 +237,7 @@ Breaking changes that arose during code generation of the library that we postpo
428
237
  ## 5.55.0 - 2022-05-05
429
238
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
430
239
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
240
+
431
241
 
432
242
  ## 5.54.0 - 2022-05-03
433
243
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1458,4 +1268,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1458
1268
  <!--
1459
1269
  # vim: set tw=0:
1460
1270
  -->
1461
-
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v627
1
+ v640
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
- 10.1.0-beta.2
1
+ 10.1.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-10-16"
7
- PREVIEW = "2023-10-26.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,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,17 +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
- Margin::OBJECT_NAME => Margin,
82
- Order::OBJECT_NAME => Order,
83
67
  PaymentIntent::OBJECT_NAME => PaymentIntent,
84
68
  PaymentLink::OBJECT_NAME => PaymentLink,
85
69
  PaymentMethod::OBJECT_NAME => PaymentMethod,
@@ -92,9 +76,6 @@ module Stripe
92
76
  Product::OBJECT_NAME => Product,
93
77
  PromotionCode::OBJECT_NAME => PromotionCode,
94
78
  Quote::OBJECT_NAME => Quote,
95
- QuotePhase::OBJECT_NAME => QuotePhase,
96
- QuotePreviewInvoice::OBJECT_NAME => QuotePreviewInvoice,
97
- QuotePreviewSubscriptionSchedule::OBJECT_NAME => QuotePreviewSubscriptionSchedule,
98
79
  Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
99
80
  Radar::ValueList::OBJECT_NAME => Radar::ValueList,
100
81
  Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@@ -114,7 +95,6 @@ module Stripe
114
95
  SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
115
96
  Tax::Calculation::OBJECT_NAME => Tax::Calculation,
116
97
  Tax::CalculationLineItem::OBJECT_NAME => Tax::CalculationLineItem,
117
- Tax::Form::OBJECT_NAME => Tax::Form,
118
98
  Tax::Registration::OBJECT_NAME => Tax::Registration,
119
99
  Tax::Settings::OBJECT_NAME => Tax::Settings,
120
100
  Tax::Transaction::OBJECT_NAME => Tax::Transaction,
@@ -2,17 +2,32 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # `Exchange Rate` objects allow you to determine the rates that Stripe is
6
- # currently using to convert from one currency to another. Since this number is
7
- # variable throughout the day, there are various reasons why you might want to
8
- # know the current rate (for example, to dynamically price an item for a user
9
- # with a default payment in a foreign currency).
5
+ # `ExchangeRate` objects allow you to determine the rates that Stripe is currently
6
+ # using to convert from one currency to another. Since this number is variable
7
+ # throughout the day, there are various reasons why you might want to know the current
8
+ # rate (for example, to dynamically price an item for a user with a default
9
+ # payment in a foreign currency).
10
10
  #
11
- # If you want a guarantee that the charge is made with a certain exchange rate
12
- # you expect is current, you can pass in `exchange_rate` to charges endpoints.
13
- # If the value is no longer up to date, the charge won't go through. Please
14
- # refer to our [Exchange Rates API](https://stripe.com/docs/exchange-rates) guide for more
15
- # details.
11
+ # Please refer to our [Exchange Rates API](https://stripe.com/docs/fx-rates) guide for more details.
12
+ #
13
+ # *[Note: this integration path is supported but no longer recommended]* Additionally,
14
+ # you can guarantee that a charge is made with an exchange rate that you expect is
15
+ # current. To do so, you must pass in the exchange_rate to charges endpoints. If the
16
+ # value is no longer up to date, the charge won't go through. Please refer to our
17
+ # [Using with charges](https://stripe.com/docs/exchange-rates) guide for more details.
18
+ #
19
+ # -----
20
+ #
21
+ # &nbsp;
22
+ #
23
+ # *This Exchange Rates API is a Beta Service and is subject to Stripe's terms of service. You may use the API solely for the purpose of transacting on Stripe. For example, the API may be queried in order to:*
24
+ #
25
+ # - *localize prices for processing payments on Stripe*
26
+ # - *reconcile Stripe transactions*
27
+ # - *determine how much money to send to a connected account*
28
+ # - *determine app fees to charge a connected account*
29
+ #
30
+ # *Using this Exchange Rates API beta for any purpose other than to transact on Stripe is strictly prohibited and constitutes a violation of Stripe's terms of service.*
16
31
  class ExchangeRate < APIResource
17
32
  extend Stripe::APIOperations::List
18
33