stripe 10.13.0 → 10.14.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +305 -46
  3. data/OPENAPI_VERSION +1 -1
  4. data/README.md +11 -0
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_operations/request.rb +2 -1
  7. data/lib/stripe/api_version.rb +1 -0
  8. data/lib/stripe/object_types.rb +23 -0
  9. data/lib/stripe/request_signing_authenticator.rb +79 -0
  10. data/lib/stripe/resources/account_notice.rb +32 -0
  11. data/lib/stripe/resources/billing/meter.rb +83 -0
  12. data/lib/stripe/resources/billing/meter_event.rb +27 -0
  13. data/lib/stripe/resources/billing/meter_event_adjustment.rb +26 -0
  14. data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
  15. data/lib/stripe/resources/capital/financing_offer.rb +49 -0
  16. data/lib/stripe/resources/capital/financing_summary.rb +15 -0
  17. data/lib/stripe/resources/capital/financing_transaction.rb +27 -0
  18. data/lib/stripe/resources/entitlements/active_entitlement.rb +26 -0
  19. data/lib/stripe/resources/entitlements/feature.rb +38 -0
  20. data/lib/stripe/resources/financial_connections/account.rb +3 -0
  21. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +14 -0
  22. data/lib/stripe/resources/gift_cards/card.rb +59 -0
  23. data/lib/stripe/resources/gift_cards/transaction.rb +93 -0
  24. data/lib/stripe/resources/invoice.rb +113 -0
  25. data/lib/stripe/resources/invoice_payment.rb +12 -0
  26. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +88 -0
  27. data/lib/stripe/resources/margin.rb +37 -0
  28. data/lib/stripe/resources/order.rb +120 -0
  29. data/lib/stripe/resources/payment_intent.rb +50 -0
  30. data/lib/stripe/resources/product.rb +3 -0
  31. data/lib/stripe/resources/product_feature.rb +13 -0
  32. data/lib/stripe/resources/quote.rb +106 -2
  33. data/lib/stripe/resources/quote_phase.rb +39 -0
  34. data/lib/stripe/resources/quote_preview_invoice.rb +43 -0
  35. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +11 -0
  36. data/lib/stripe/resources/subscription_schedule.rb +20 -0
  37. data/lib/stripe/resources/tax/form.rb +49 -0
  38. data/lib/stripe/resources/terminal/reader.rb +60 -0
  39. data/lib/stripe/resources.rb +22 -0
  40. data/lib/stripe/stripe_client.rb +62 -28
  41. data/lib/stripe/stripe_configuration.rb +2 -1
  42. data/lib/stripe/util.rb +8 -1
  43. data/lib/stripe/version.rb +1 -1
  44. data/lib/stripe.rb +54 -0
  45. metadata +26 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97c811b2b459b17181407a3623e59762e40d4673adc0fd73b5be8ebc6b6dc6e0
4
- data.tar.gz: a548789eb483613398223cfb9edf9113f8c30fc11bb8e75b16111ea7c6844ced
3
+ metadata.gz: 319701f2f5cc8e4e7df8abad5da7574864b5955fa966a274351b9a2183c5da1b
4
+ data.tar.gz: 19012e101d61352b58de75371588271307b63833f18400364e7fec6449d5a2ca
5
5
  SHA512:
6
- metadata.gz: 03d491204d0bc879e91771025e8755fdc65b927b3f6d49bdd88831d994d2ae5db7865d8d1b79b64969369cf473fb46df87920d97fe60a239a9e5c2e660d660c6
7
- data.tar.gz: 32638e41755069eacce29e7a4a2e2e4847d7b9c890f868eb15eb1ad254c33d4b802724769010df046c50f239b30ff8a72bfe34824c3ee13dfe940b223e3571a3
6
+ metadata.gz: 51cdb2c1e44856bae9d1275e034ddddc9e2efb436792abb623be317ea017e95ffa95abb5485a88a8a618c0e69a6b068ebb72ea1cde63ac19143fd506ada0dc5d
7
+ data.tar.gz: f206c5d6bee06cb1d9a609b9eab33344ce22004192118ac6cf76787e954c442cb800742496e66b387297a499ac5b560d66adeee3d4d9afe17c251907e43e2b63
data/CHANGELOG.md CHANGED
@@ -1,10 +1,17 @@
1
1
  # Changelog
2
- ## 10.13.0 - 2024-03-21
3
- * [#1367](https://github.com/stripe/stripe-ruby/pull/1367) Update generated code
4
- * Add support for new resources `ConfirmationToken` and `Forwarding.Request`
5
- * Add support for `retrieve` method on resource `ConfirmationToken`
6
- * Add support for `create`, `list`, and `retrieve` methods on resource `Request`
7
- * [#1362](https://github.com/stripe/stripe-ruby/pull/1362) Exclude sorbet directory and tapioca script when packing gem
2
+
3
+ ## 10.14.0-beta.1 - 2024-03-21
4
+ * [#1363](https://github.com/stripe/stripe-ruby/pull/1363) Update generated code for beta
5
+ * Add support for new resources `Entitlements.ActiveEntitlementSummary` and `Entitlements.ActiveEntitlement`
6
+ * Add support for `list` method on resource `ActiveEntitlement`
7
+
8
+ ## 10.13.0-beta.1 - 2024-03-14
9
+ * [#1360](https://github.com/stripe/stripe-ruby/pull/1360) Update generated code for beta
10
+ * Add support for new resources `Billing.MeterEventAdjustment`, `Billing.MeterEvent`, and `Billing.Meter`
11
+ * Add support for `create`, `deactivate`, `list`, `reactivate`, `retrieve`, and `update` methods on resource `Meter`
12
+ * Add support for `create` method on resources `MeterEventAdjustment` and `MeterEvent`
13
+ * Add support for `create` test helper method on resource `ConfirmationToken`
14
+ * Add support for `add_lines`, `remove_lines`, and `update_lines` methods on resource `Invoice`
8
15
 
9
16
  ## 10.12.0 - 2024-03-14
10
17
  * [#1359](https://github.com/stripe/stripe-ruby/pull/1359) Update generated code
@@ -16,12 +23,24 @@
16
23
  * [#1355](https://github.com/stripe/stripe-ruby/pull/1355) Disable Metrics/ClassLength
17
24
  * [#1351](https://github.com/stripe/stripe-ruby/pull/1351) Update CHANGELOG.md
18
25
 
26
+ ## 10.12.0-beta.1 - 2024-02-29
27
+ * [#1352](https://github.com/stripe/stripe-ruby/pull/1352) Update generated code for beta
28
+ Release specs are identical.
29
+ * [#1350](https://github.com/stripe/stripe-ruby/pull/1350) Update generated code for beta
30
+
31
+ * [#1341](https://github.com/stripe/stripe-ruby/pull/1341) Update generated code for beta
32
+ * Remove support for resource `Entitlements.Event`
33
+ * [#1343](https://github.com/stripe/stripe-ruby/pull/1343) Add a helper to add a beta version
34
+
19
35
  ## 10.11.0 - 2024-02-29
20
36
  * [#1348](https://github.com/stripe/stripe-ruby/pull/1348) Use sorbet gem instead of sorbet-static
21
37
  * [#1342](https://github.com/stripe/stripe-ruby/pull/1342) Update generated code
22
38
  * Add `list_refunds` and `retrieve_refund` methods on resource `Charge`.
23
39
  * [#1345](https://github.com/stripe/stripe-ruby/pull/1345) Update README to use add_beta_version
24
40
 
41
+ ## 10.11.0-beta.1 - 2024-02-22
42
+ * [#1335](https://github.com/stripe/stripe-ruby/pull/1335) Update generated code for beta
43
+
25
44
  ## 10.10.0 - 2024-02-22
26
45
  * [#1336](https://github.com/stripe/stripe-ruby/pull/1336) Update generated code
27
46
  - Add `InvoiceLineItem.update` method.
@@ -30,18 +49,33 @@
30
49
  * The `delete` method now sends a DELETE request to `/v1/tax_ids/{id}` instead of `/v1/customers/{customer}/tax_ids/{id}`. The endpoints are functionally the same when operating on a Customer Tax ID.
31
50
  * The `resource_url` method on `TaxId` now returns the top-level `/v1/tax_ids/{id}` path instead of the `/v1/customers/{customer}/tax_ids/{id}` path.
32
51
 
52
+ ## 10.10.0-beta.1 - 2024-02-16
53
+ * [#1332](https://github.com/stripe/stripe-ruby/pull/1332) Update generated code for beta
54
+ * Add support for `decrement_authorization` method on resource `PaymentIntent`
55
+ * [#1328](https://github.com/stripe/stripe-ruby/pull/1328) Update generated code for beta
56
+
33
57
  ## 10.9.0 - 2024-02-15
34
58
  * [#1329](https://github.com/stripe/stripe-ruby/pull/1329) Update generated code
35
59
  * Fixed bug where `TaxId` resource `delete` method sent request to wrong URL (https://github.com/stripe/stripe-ruby/issues/1333)
36
60
  * [#1324](https://github.com/stripe/stripe-ruby/pull/1324) Start running Sorbet in CI
37
61
  * [#1327](https://github.com/stripe/stripe-ruby/pull/1327) Add methods for dynamically referenced constants
38
62
 
63
+ ## 10.9.0-beta.1 - 2024-02-08
64
+ * [#1321](https://github.com/stripe/stripe-ruby/pull/1321) Update generated code for beta
65
+ * Release specs are identical.
66
+
39
67
  ## 10.8.0 - 2024-02-08
40
68
  * [#1322](https://github.com/stripe/stripe-ruby/pull/1322) Update generated code
41
69
  * [#1323](https://github.com/stripe/stripe-ruby/pull/1323) Extract other CRUDL api operations from mixins
42
70
  * Extract more CRUDL operations, namely `create`, `delete`, `update`, and `list` into the resources. These methods will no longer rely on the APIOperation mixins.
43
71
  * [#1314](https://github.com/stripe/stripe-ruby/pull/1314) Update mocha gem to 1.16
44
72
 
73
+ ## 10.8.0-beta.1 - 2024-02-01
74
+ * [#1318](https://github.com/stripe/stripe-ruby/pull/1318) Update generated code for beta
75
+ * Add support for new resources `Entitlements.Event` and `Entitlements.Feature`
76
+ * Add support for `create` method on resource `Event`
77
+ * Add support for `create` and `list` methods on resource `Feature`
78
+
45
79
  ## 10.7.1 - 2024-02-05
46
80
  * [#1320](https://github.com/stripe/stripe-ruby/pull/1320) Remove spurious _search deprecation messages (https://github.com/stripe/stripe-ruby/issues/1319)
47
81
 
@@ -50,15 +84,34 @@
50
84
  * Removes list method mixin from child resources, as these methods always return `InvalidRequestError` and never succeed
51
85
  * [#1311](https://github.com/stripe/stripe-ruby/pull/1311) Use the deprecation gem in search and clean up usage of the gem
52
86
 
87
+ ## 10.7.0-beta.3 - 2024-01-25
88
+ * [#1313](https://github.com/stripe/stripe-ruby/pull/1313) Update generated code for beta
89
+ * Add support for `create_preview` method on resource `Invoice`
90
+ * [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
91
+
92
+ ## 10.7.0-beta.2 - 2024-01-19
93
+ * [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
94
+
95
+ ## 10.7.0-beta.1 - 2024-01-12
96
+ * [#1309](https://github.com/stripe/stripe-ruby/pull/1309) Update generated code for beta
97
+ * [#1305](https://github.com/stripe/stripe-ruby/pull/1305) Update generated code for beta
98
+
53
99
  ## 10.6.0 - 2024-01-12
54
100
  * [#1310](https://github.com/stripe/stripe-ruby/pull/1310) Update generated code
55
101
  * Add support for new resource `CustomerSession`
56
102
  * Add support for `create` method on resource `CustomerSession`
57
103
 
104
+ ## 10.6.0-beta.1 - 2024-01-04
105
+ * [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
106
+ * Updated stable APIs to the latest version
107
+
58
108
  ## 10.5.0 - 2024-01-04
59
109
  * [#1306](https://github.com/stripe/stripe-ruby/pull/1306) Update generated code
60
110
  * Add support for `retrieve` method on resource `Tax.Registration`
61
111
 
112
+ ## 10.5.0-beta.1 - 2023-12-22
113
+ * [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
114
+
62
115
  ## 10.4.0 - 2023-12-22
63
116
  * [#1303](https://github.com/stripe/stripe-ruby/pull/1303) Update generated code
64
117
  * Add support for new resource `FinancialConnections.Transaction`
@@ -66,9 +119,16 @@
66
119
  * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
67
120
  * [#1304](https://github.com/stripe/stripe-ruby/pull/1304) Add support for updatable singleton resources
68
121
 
122
+ ## 10.4.0-beta.1 - 2023-12-14
123
+ Updated stable APIs to the latest version
124
+
69
125
  ## 10.3.0 - 2023-12-14
70
126
  * [#1294](https://github.com/stripe/stripe-ruby/pull/1294) Support sending parameters inside singleton retrieve
71
127
 
128
+ ## 10.3.0-beta.1 - 2023-11-30
129
+ * [#1298](https://github.com/stripe/stripe-ruby/pull/1298) Update generated code for beta
130
+ * [#1296](https://github.com/stripe/stripe-ruby/pull/1296) Merge master into beta
131
+
72
132
  ## 10.2.0 - 2023-11-30
73
133
  * [#1292](https://github.com/stripe/stripe-ruby/pull/1292) Update generated code
74
134
  * Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier`
@@ -81,12 +141,26 @@
81
141
 
82
142
  * [#1288](https://github.com/stripe/stripe-ruby/pull/1288) Update generated code
83
143
 
144
+ ## 10.2.0-beta.1 - 2023-11-02
145
+ * [#1287](https://github.com/stripe/stripe-ruby/pull/1287) Update generated code for beta
146
+ * Add support for `attach_payment_intent` method on resource `Invoice`
147
+ * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
84
148
 
85
149
  ## 10.1.0 - 2023-11-02
86
150
  * [#1286](https://github.com/stripe/stripe-ruby/pull/1286) Update generated code
87
151
  * Add support for new resource `Tax.Registration`
88
152
  * Add support for `create`, `list`, and `update` methods on resource `Registration`
89
153
 
154
+ ## 10.1.0-beta.2 - 2023-10-26
155
+ * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
156
+ * Add support for new resource `Margin`
157
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Margin`
158
+
159
+ ## 10.1.0-beta.1 - 2023-10-17
160
+ * [#1284](https://github.com/stripe/stripe-ruby/pull/1284) Update generated code for beta
161
+ - Update pinned API version to `2023-10-16`
162
+ * [#1282](https://github.com/stripe/stripe-ruby/pull/1282) Update generated code for beta
163
+
90
164
  ## 10.0.0 - 2023-10-16
91
165
  * 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`.
92
166
  * [#1283](https://github.com/stripe/stripe-ruby/pull/1283) Update generated code
@@ -94,11 +168,33 @@
94
168
  * [#1281](https://github.com/stripe/stripe-ruby/pull/1281) Update generated code
95
169
  * Documentation only changes
96
170
 
171
+ ## 9.5.0-beta.2 - 2023-10-12
172
+ * [#1280](https://github.com/stripe/stripe-ruby/pull/1280) Update generated code for beta
173
+ * Add support for new resources `AccountNotice` and `Issuing.CreditUnderwritingRecord`
174
+ * Add support for `list`, `retrieve`, and `update` methods on resource `AccountNotice`
175
+ * Add support for `correct`, `create_from_application`, `create_from_proactive_review`, `list`, `report_decision`, and `retrieve` methods on resource `CreditUnderwritingRecord`
176
+
177
+ ## 9.5.0-beta.1 - 2023-10-05
178
+ * [#1278](https://github.com/stripe/stripe-ruby/pull/1278) Update generated code for beta
179
+ * Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
180
+ * Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
181
+ * Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote`
182
+
97
183
  ## 9.4.0 - 2023-10-05
98
184
  * [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code
99
185
  * Add support for new resources `Issuing.Token`
100
186
  * Add support for `list`, `retrieve`, and `update` methods on resource `Token`
101
187
 
188
+ ## 9.4.0-beta.3 - 2023-09-28
189
+ * [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
190
+ * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
191
+
192
+ ## 9.4.0-beta.2 - 2023-09-21
193
+ * [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
194
+
195
+ ## 9.4.0-beta.1 - 2023-09-14
196
+ * Updated stable APIs to the latest version
197
+
102
198
  ## 9.3.0 - 2023-09-14
103
199
  * [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
104
200
  * Add support for new resource `PaymentMethodConfiguration`
@@ -107,18 +203,38 @@
107
203
  * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
108
204
  * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
109
205
 
206
+ ## 9.3.0-beta.1 - 2023-09-07
207
+ * [#1269](https://github.com/stripe/stripe-ruby/pull/1269) Update generated code for beta
208
+ * Release specs are identical.
209
+ * [#1268](https://github.com/stripe/stripe-ruby/pull/1268) Update generated code for beta
210
+ * Remove support for `submit_card` test helper method on resource `Issuing.Card`
211
+ * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
212
+ * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
213
+ * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
214
+ * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
215
+ * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
216
+
217
+ * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
218
+
219
+ * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
220
+ * Add support for `submit_card` test helper method on resource `Issuing.Card`
221
+ * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
222
+
110
223
  ## 9.2.0 - 2023-09-07
111
224
  * [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
112
225
  * Add support for new resource `PaymentMethodDomain`
113
226
  * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
114
227
 
228
+ ## 9.2.0-beta.1 - 2023-08-31
229
+ * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
230
+ * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
231
+
115
232
  ## 9.1.0 - 2023-08-31
116
233
  * [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
117
234
  * Add support for new resource `AccountSession`
118
235
  * Add support for `create` method on resource `AccountSession`
119
236
  * [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
120
237
 
121
-
122
238
  ## 9.0.0 - 2023-08-16
123
239
  **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
124
240
 
@@ -151,10 +267,39 @@
151
267
 
152
268
  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.
153
269
 
270
+ ## 9.0.0-beta.1 - 2023-08-24
271
+ * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
272
+ * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
273
+ * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
274
+
275
+ ## 8.8.0-beta.1 - 2023-08-10
276
+ * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
277
+ * Updated stable APIs to the latest version
278
+
154
279
  ## 8.7.0 - 2023-08-10
155
280
  * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
156
281
  Add resources `Tax::CalculationLineItem`, `Tax::TransactionLineItem`, and `Treasury::FinancialAccountFeatures`. These resources have no methods on them, but do represent the return type of methods elsewhere.
157
282
 
283
+ ## 8.7.0-beta.3 - 2023-08-03
284
+ * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
285
+ * Add support for `submit_card` test helper method on resource `Issuing.Card`
286
+ * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
287
+
288
+ ## 8.7.0-beta.2 - 2023-07-28
289
+ * [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
290
+ * Add support for new resource `Tax.Form`
291
+ * Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
292
+ * [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
293
+ * [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
294
+
295
+ ## 8.7.0-beta.1 - 2023-07-13
296
+ * [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
297
+ Release specs are identical.
298
+ * [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
299
+ * Add support for new resource `PaymentMethodConfiguration`
300
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
301
+ * [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
302
+
158
303
  ## 8.6.0 - 2023-07-13
159
304
  * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
160
305
  * Add support for new resource `Tax.Settings`
@@ -183,6 +328,37 @@
183
328
 
184
329
  * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
185
330
 
331
+ ## 8.6.0-beta.6 - 2023-06-22
332
+ * [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
333
+ * Add support for new resource `CustomerSession`
334
+ * Add support for `create` method on resource `CustomerSession`
335
+ * [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
336
+ * [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
337
+
338
+ ## 8.6.0-beta.5 - 2023-06-01
339
+ * [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
340
+ * [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
341
+ * [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
342
+ * [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
343
+
344
+ ## 8.6.0-beta.4 - 2023-05-19
345
+ * [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
346
+ * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
347
+ * [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
348
+ * [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
349
+ * [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
350
+
351
+ ## 8.6.0-beta.3 - 2023-04-17
352
+ * [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
353
+ * [#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
354
+
355
+ ## 8.6.0-beta.2 - 2023-04-13
356
+ * [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
357
+ * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
358
+ * [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
359
+
360
+ ## 8.6.0-beta.1 - 2023-03-30
361
+ * [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
186
362
 
187
363
  ## 8.5.0 - 2023-03-30
188
364
  * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
@@ -190,6 +366,11 @@
190
366
  * 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.
191
367
  * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
192
368
 
369
+ ## 8.5.0-beta.1 - 2023-03-23
370
+ * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
371
+ * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
372
+ * Add support for `collect_inputs` method on resource `Terminal.Reader`
373
+
193
374
  ## 8.4.0 - 2023-03-23
194
375
  * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
195
376
  * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
@@ -197,18 +378,91 @@
197
378
  * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
198
379
  * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
199
380
 
381
+ ## 8.4.0-beta.4 - 2023-03-16
382
+ * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
383
+ * Add support for `create_from_calculation` method on resource `Tax.Transaction`
384
+ * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
385
+ * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
386
+ * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
387
+ * Remove support for `retrieve` method on resource `FinancingSummary`
388
+ * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
389
+
390
+ ## 8.4.0-beta.3 - 2023-03-09
391
+ * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
392
+ * Updated stable APIs to the latest version
393
+ * Remove support for `list_transactions` method on resource `Tax.Transaction`
394
+
395
+ ## 8.4.0-beta.2 - 2023-03-03
396
+ * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
397
+ * Updated stable APIs to the latest version
398
+ * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
399
+ * Add support for `list` and `retrieve` methods on resource `CardBundle`
400
+ * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
401
+
402
+ ## 8.4.0-beta.1 - 2023-02-23
403
+ * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
404
+ * Updated stable APIs to the latest version
405
+
200
406
  ## 8.3.0 - 2023-02-16
201
407
  * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
202
408
  * Add support for `refund_payment` method on resource `Terminal.Reader`
203
409
 
410
+ ## 8.3.0-beta.1 - 2023-02-02
411
+ * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
412
+ * Updated stable APIs to the latest version
413
+ * Add support for new resource `FinancialConnections.Transaction`
414
+ * Add support for `list` method on resource `Transaction`
415
+
204
416
  ## 8.2.0 - 2023-02-02
205
417
  * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
206
418
  * Add support for `resume` method on resource `Subscription`
207
419
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
208
420
 
421
+ ## 8.2.0-beta.3 - 2023-01-26
422
+ * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
423
+ * Updated stable APIs to the latest version
424
+ * Add support for `list_transactions` method on resource `Tax.Transaction`
425
+
426
+ ## 8.2.0-beta.2 - 2023-01-19
427
+ * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
428
+ * Updated stable APIs to the latest version
429
+ * Add support for `Tax.Settings` resource.
430
+
431
+ ## 8.2.0-beta.1 - 2023-01-12
432
+ * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
433
+ * Updated stable APIs to the latest version
434
+ * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
435
+ * Add support for `Tax::Register` resource
436
+
209
437
  ## 8.1.0 - 2023-01-12
210
438
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
211
439
 
440
+ ## 8.1.0-beta.4 - 2023-01-05
441
+ * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
442
+ * Updated stable APIs to the latest version
443
+ * Add support for `mark_stale_quote` method on resource `Quote`
444
+
445
+ ## 8.1.0-beta.3 - 2022-12-22
446
+ * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
447
+ * Updated stable APIs to the latest version
448
+ * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
449
+
450
+ ## 8.1.0-beta.2 - 2022-12-15
451
+ * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
452
+ * Updated stable APIs to the latest version
453
+ * Add support for new resources `TaxCalculation`, and `TaxTransaction`
454
+ * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
455
+ * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
456
+ * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
457
+ * Updated stable APIs to the latest version
458
+ * Add support for new resource `QuoteLine`.
459
+
460
+ ## 8.1.0-beta.1 - 2022-12-08
461
+ * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
462
+ * Updated stable APIs to the latest version
463
+ * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
464
+ * Updated stable APIs to the latest version
465
+
212
466
  ## 8.0.0 - 2022-11-16
213
467
  * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
214
468
 
@@ -216,30 +470,29 @@ Breaking changes that arose during code generation of the library that we postpo
216
470
 
217
471
  "⚠️" symbol highlights breaking changes.
218
472
 
219
- ### Deprecated
220
- - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
221
- ``` ruby
222
- # before
223
- refund = Stripe::Refund.retrieve("re_123")
224
- refund.description = "Refund description"
225
- refund.save
226
-
227
- # after
228
- Stripe::Refund.update("re_123", description: "Refund description")
229
- ```
473
+ ## 7.2.0-beta.5 - 2022-11-02
474
+ * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
475
+ * Updated beta APIs to the latest stable version
476
+ * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
477
+ * Updated stable APIs to the latest version
230
478
 
231
- ### ⚠️ Removed
232
- - Removed deprecated `Sku` resource.
233
- - Removed deprecated `Orders` resource.
234
- - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
235
- ```ruby
236
- # before
237
- Stripe::Subscription::delete("sub_12345")
479
+ ## 7.2.0-beta.4 - 2022-10-07
480
+ * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
238
481
 
239
- # after
240
- Stripe::Subscription::cancel("sub_12345")
241
- ```
482
+ ## 7.2.0-beta.3 - 2022-09-26
483
+ * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
484
+ * Updated stable APIs to the latest version
485
+ * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
242
486
 
487
+ ## 7.2.0-beta.2 - 2022-08-26
488
+ * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
489
+ * Updated stable APIs to the latest version
490
+ * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
491
+
492
+ ## 7.2.0-beta.1 - 2022-08-23
493
+ * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
494
+ - Updated stable APIs to the latest version
495
+ - `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)
243
496
 
244
497
  ## 7.1.0 - 2022-08-19
245
498
  * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@@ -248,6 +501,16 @@ Breaking changes that arose during code generation of the library that we postpo
248
501
  * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
249
502
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
250
503
 
504
+ ## 7.1.0-beta.2 - 2022-08-11
505
+ * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
506
+ - Updated stable APIs to the latest version
507
+ - Add `refund_payment` method to Terminal resource
508
+
509
+ ## 7.1.0-beta.1 - 2022-08-03
510
+ * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
511
+ - Updated stable APIs to the latest version
512
+ - Added the `Order` resource support
513
+
251
514
  ## 7.0.0 - 2022-08-02
252
515
 
253
516
  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.
@@ -259,21 +522,19 @@ Breaking changes that arose during code generation of the library that we postpo
259
522
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
260
523
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
261
524
 
262
- ### ⚠️ Changed
263
- * `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.
264
- * Update default bundle of CA certificates to April 26, 2022.
265
-
266
- ### Deprecated
267
- * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
268
-
269
- ### ⚠️ Removed
270
- * Remove `details` method from `Issuing.Card` resource. The method was not supported.
271
- * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
272
- * Remove `create` method from `ReportType` resource. The method was not supported.
273
- * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
274
- * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
275
- * Remove ability to list `Card` resource for a `Recipient`.
276
- * Remove `cancel` method from `Transfer` resource. The method was deprecated.
525
+ ## 6.6.0-beta.1 - 2022-07-22
526
+ * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
527
+ - Updated stable APIs to the latest version
528
+ - Add `QuotePhase` resource
529
+ * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
530
+ - Updated stable APIs to the latest version
531
+ - Add `SubscriptionSchedule.amend` method.
532
+ * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
533
+ - Include `server_side_confirmation_beta=v1` beta
534
+ - Add `secretKeyConfirmation` to `PaymentIntent`
535
+ * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
536
+ - Updated stable APIs to the latest version
537
+ * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
277
538
 
278
539
  ## 6.5.0 - 2022-06-29
279
540
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -303,8 +564,6 @@ Breaking changes that arose during code generation of the library that we postpo
303
564
  * 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`
304
565
  * Add support for `retrieve_payment_method` method on resource `Customer`
305
566
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
306
-
307
-
308
567
 
309
568
  ## 6.0.0 - 2022-05-09
310
569
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -320,7 +579,6 @@ Breaking changes that arose during code generation of the library that we postpo
320
579
  ## 5.55.0 - 2022-05-05
321
580
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
322
581
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
323
-
324
582
 
325
583
  ## 5.54.0 - 2022-05-03
326
584
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1351,3 +1609,4 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1351
1609
  <!--
1352
1610
  # vim: set tw=0:
1353
1611
  -->
1612
+
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v889
1
+ v896
data/README.md CHANGED
@@ -341,6 +341,17 @@ If your beta feature requires a `Stripe-Version` header to be sent, set the `Str
341
341
  Stripe.add_beta_version("feature_beta", "v3")
342
342
  ```
343
343
 
344
+ ### Custom requests
345
+
346
+ 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`.
347
+
348
+ ```ruby
349
+ resp = Stripe.raw_request(:post, "/v1/beta_endpoint", {param: 123}, {stripe_version: "2022-11-15; feature_beta=v3"})
350
+
351
+ # (Optional) resp is a StripeResponse. You can use `Stripe.deserialize` to get a StripeObject.
352
+ deserialized_resp = Stripe.deserialize(resp.http_body)
353
+ ```
354
+
344
355
  ## Support
345
356
 
346
357
  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.13.0
1
+ 10.14.0-beta.1
@@ -48,13 +48,14 @@ module Stripe
48
48
  api_key = headers.delete(:api_key)
49
49
  api_base = headers.delete(:api_base)
50
50
  client = headers.delete(:client)
51
+ api_mode = headers.delete(:api_mode)
51
52
  # Assume all remaining opts must be headers
52
53
 
53
54
  resp, opts[:api_key] = client.send(
54
55
  client_request_method_sym,
55
56
  method, url,
56
57
  api_base: api_base, api_key: api_key,
57
- headers: headers, params: params, usage: usage,
58
+ headers: headers, params: params, usage: usage, api_mode: api_mode,
58
59
  &read_body_chunk_block
59
60
  )
60
61
 
@@ -4,5 +4,6 @@
4
4
  module Stripe
5
5
  module ApiVersion
6
6
  CURRENT = "2023-10-16"
7
+ PREVIEW = "2024-03-20.preview-v2"
7
8
  end
8
9
  end