stripe 10.11.0 → 10.12.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +292 -48
  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 +22 -0
  9. data/lib/stripe/request_signing_authenticator.rb +79 -0
  10. data/lib/stripe/resources/account.rb +69 -69
  11. data/lib/stripe/resources/account_notice.rb +32 -0
  12. data/lib/stripe/resources/apple_pay_domain.rb +4 -4
  13. data/lib/stripe/resources/apps/secret.rb +5 -5
  14. data/lib/stripe/resources/capital/financing_offer.rb +49 -0
  15. data/lib/stripe/resources/capital/financing_summary.rb +15 -0
  16. data/lib/stripe/resources/capital/financing_transaction.rb +27 -0
  17. data/lib/stripe/resources/checkout/session.rb +21 -21
  18. data/lib/stripe/resources/confirmation_token.rb +16 -0
  19. data/lib/stripe/resources/credit_note.rb +35 -35
  20. data/lib/stripe/resources/customer.rb +66 -55
  21. data/lib/stripe/resources/customer_entitlement.rb +12 -0
  22. data/lib/stripe/resources/customer_entitlement_summary.rb +12 -0
  23. data/lib/stripe/resources/entitlements/feature.rb +38 -0
  24. data/lib/stripe/resources/ephemeral_key.rb +9 -9
  25. data/lib/stripe/resources/file.rb +5 -5
  26. data/lib/stripe/resources/financial_connections/account.rb +37 -34
  27. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +14 -0
  28. data/lib/stripe/resources/gift_cards/card.rb +59 -0
  29. data/lib/stripe/resources/gift_cards/transaction.rb +93 -0
  30. data/lib/stripe/resources/identity/verification_session.rb +38 -38
  31. data/lib/stripe/resources/invoice.rb +113 -60
  32. data/lib/stripe/resources/invoice_payment.rb +12 -0
  33. data/lib/stripe/resources/issuing/authorization.rb +8 -8
  34. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +88 -0
  35. data/lib/stripe/resources/issuing/dispute.rb +16 -16
  36. data/lib/stripe/resources/issuing/personalization_design.rb +119 -0
  37. data/lib/stripe/resources/issuing/physical_bundle.rb +26 -0
  38. data/lib/stripe/resources/margin.rb +37 -0
  39. data/lib/stripe/resources/order.rb +120 -0
  40. data/lib/stripe/resources/payment_intent.rb +150 -100
  41. data/lib/stripe/resources/payment_link.rb +10 -10
  42. data/lib/stripe/resources/payment_method.rb +17 -17
  43. data/lib/stripe/resources/payment_method_domain.rb +29 -29
  44. data/lib/stripe/resources/payout.rb +22 -22
  45. data/lib/stripe/resources/quote.rb +136 -32
  46. data/lib/stripe/resources/quote_phase.rb +39 -0
  47. data/lib/stripe/resources/quote_preview_invoice.rb +43 -0
  48. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +11 -0
  49. data/lib/stripe/resources/setup_intent.rb +32 -32
  50. data/lib/stripe/resources/sigma/scheduled_query_run.rb +4 -4
  51. data/lib/stripe/resources/source.rb +17 -17
  52. data/lib/stripe/resources/subscription.rb +36 -36
  53. data/lib/stripe/resources/subscription_schedule.rb +31 -11
  54. data/lib/stripe/resources/tax/calculation.rb +10 -10
  55. data/lib/stripe/resources/tax/form.rb +49 -0
  56. data/lib/stripe/resources/tax/transaction.rb +10 -10
  57. data/lib/stripe/resources/terminal/reader.rb +101 -41
  58. data/lib/stripe/resources/treasury/financial_account.rb +25 -25
  59. data/lib/stripe/resources/treasury/transaction_entry.rb +4 -4
  60. data/lib/stripe/resources.rb +21 -0
  61. data/lib/stripe/stripe_client.rb +62 -28
  62. data/lib/stripe/stripe_configuration.rb +2 -1
  63. data/lib/stripe/util.rb +8 -1
  64. data/lib/stripe/version.rb +1 -1
  65. data/lib/stripe.rb +54 -0
  66. metadata +25 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28c08ac3bb74417f42f5d45630f1efdad13075deec60589cea4c8b88c8db9a3b
4
- data.tar.gz: 1b2560d8edde07beba5f2534efc3f7ca3009cdd4b431d10539d5e6542ef2a58f
3
+ metadata.gz: c161ad9743ceceb2624b6df2f851bb5c58ce3a7dd25c00e0406a41ee307af98d
4
+ data.tar.gz: d1fea5ff8da6ad1baa4a0e8256d869cf7104ef75175ab14ff3e08b887b695b84
5
5
  SHA512:
6
- metadata.gz: 86ec1cc29d4876d59b00854f73d6a7e10c19bcb91bd5b708dd943e2e36d16c07d74b8766fc47093a584926257f37d4c150c716c0ac73e4b3820311b250a942ec
7
- data.tar.gz: 51ae5ff315ca40fdfab8eae78945ffea6f96d06a41d7cabfb5bf3c3b437534cf5ca9a9a437c3ec87d46c39f7d8aed4698beb88ca16ca84ac64ea6d480eb9e82a
6
+ metadata.gz: 8557c142f12cb1dcedba2fc486966ba9bbfb73fb4dfd2bea71490c906484bdd1972d982aefe41f00a0e28f2d9220d7de5cc7bbbf4a575ab1d807bd33408a7fe7
7
+ data.tar.gz: 9be2fb4c050e44b88a888bd835840ae84371527e5feb56f7d7883e4e0064271f4821b5a2f0ecdf7d6213efaf7aca6fd9ccdb96a209ea32ddaa7ba12fbf9d878a
data/CHANGELOG.md CHANGED
@@ -1,19 +1,23 @@
1
1
  # Changelog
2
- ## 10.11.0 - 2024-02-29
3
- * [#1348](https://github.com/stripe/stripe-ruby/pull/1348) Use sorbet gem instead of sorbet-static
4
- * [#1342](https://github.com/stripe/stripe-ruby/pull/1342) Update generated code
5
- * Add `list_refunds` and `retrieve_refund` methods on resource `Charge`.
6
- * [#1345](https://github.com/stripe/stripe-ruby/pull/1345) Update README to use add_beta_version
7
2
 
8
- ## 10.11.0 - 2024-02-29
9
- * [#1348](https://github.com/stripe/stripe-ruby/pull/1348) Use sorbet gem instead of sorbet-static
3
+ ## 10.12.0-beta.1 - 2024-02-29
4
+ * [#1352](https://github.com/stripe/stripe-ruby/pull/1352) Update generated code for beta
5
+ Release specs are identical.
6
+ * [#1350](https://github.com/stripe/stripe-ruby/pull/1350) Update generated code for beta
7
+
8
+ * [#1341](https://github.com/stripe/stripe-ruby/pull/1341) Update generated code for beta
9
+ * Remove support for resource `Entitlements.Event`
10
+ * [#1343](https://github.com/stripe/stripe-ruby/pull/1343) Add a helper to add a beta version
10
11
 
11
12
  ## 10.11.0 - 2024-02-29
12
13
  * [#1348](https://github.com/stripe/stripe-ruby/pull/1348) Use sorbet gem instead of sorbet-static
13
14
  * [#1342](https://github.com/stripe/stripe-ruby/pull/1342) Update generated code
14
- * Add `list_refunds` and `retrieve_refund` methods on resource `Charge`
15
+ * Add `list_refunds` and `retrieve_refund` methods on resource `Charge`.
15
16
  * [#1345](https://github.com/stripe/stripe-ruby/pull/1345) Update README to use add_beta_version
16
17
 
18
+ ## 10.11.0-beta.1 - 2024-02-22
19
+ * [#1335](https://github.com/stripe/stripe-ruby/pull/1335) Update generated code for beta
20
+
17
21
  ## 10.10.0 - 2024-02-22
18
22
  * [#1336](https://github.com/stripe/stripe-ruby/pull/1336) Update generated code
19
23
  - Add `InvoiceLineItem.update` method.
@@ -22,18 +26,33 @@
22
26
  * 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.
23
27
  * 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.
24
28
 
29
+ ## 10.10.0-beta.1 - 2024-02-16
30
+ * [#1332](https://github.com/stripe/stripe-ruby/pull/1332) Update generated code for beta
31
+ * Add support for `decrement_authorization` method on resource `PaymentIntent`
32
+ * [#1328](https://github.com/stripe/stripe-ruby/pull/1328) Update generated code for beta
33
+
25
34
  ## 10.9.0 - 2024-02-15
26
35
  * [#1329](https://github.com/stripe/stripe-ruby/pull/1329) Update generated code
27
36
  * Fixed bug where `TaxId` resource `delete` method sent request to wrong URL (https://github.com/stripe/stripe-ruby/issues/1333)
28
37
  * [#1324](https://github.com/stripe/stripe-ruby/pull/1324) Start running Sorbet in CI
29
38
  * [#1327](https://github.com/stripe/stripe-ruby/pull/1327) Add methods for dynamically referenced constants
30
39
 
40
+ ## 10.9.0-beta.1 - 2024-02-08
41
+ * [#1321](https://github.com/stripe/stripe-ruby/pull/1321) Update generated code for beta
42
+ * Release specs are identical.
43
+
31
44
  ## 10.8.0 - 2024-02-08
32
45
  * [#1322](https://github.com/stripe/stripe-ruby/pull/1322) Update generated code
33
46
  * [#1323](https://github.com/stripe/stripe-ruby/pull/1323) Extract other CRUDL api operations from mixins
34
47
  * Extract more CRUDL operations, namely `create`, `delete`, `update`, and `list` into the resources. These methods will no longer rely on the APIOperation mixins.
35
48
  * [#1314](https://github.com/stripe/stripe-ruby/pull/1314) Update mocha gem to 1.16
36
49
 
50
+ ## 10.8.0-beta.1 - 2024-02-01
51
+ * [#1318](https://github.com/stripe/stripe-ruby/pull/1318) Update generated code for beta
52
+ * Add support for new resources `Entitlements.Event` and `Entitlements.Feature`
53
+ * Add support for `create` method on resource `Event`
54
+ * Add support for `create` and `list` methods on resource `Feature`
55
+
37
56
  ## 10.7.1 - 2024-02-05
38
57
  * [#1320](https://github.com/stripe/stripe-ruby/pull/1320) Remove spurious _search deprecation messages (https://github.com/stripe/stripe-ruby/issues/1319)
39
58
 
@@ -42,15 +61,34 @@
42
61
  * Removes list method mixin from child resources, as these methods always return `InvalidRequestError` and never succeed
43
62
  * [#1311](https://github.com/stripe/stripe-ruby/pull/1311) Use the deprecation gem in search and clean up usage of the gem
44
63
 
64
+ ## 10.7.0-beta.3 - 2024-01-25
65
+ * [#1313](https://github.com/stripe/stripe-ruby/pull/1313) Update generated code for beta
66
+ * Add support for `create_preview` method on resource `Invoice`
67
+ * [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
68
+
69
+ ## 10.7.0-beta.2 - 2024-01-19
70
+ * [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
71
+
72
+ ## 10.7.0-beta.1 - 2024-01-12
73
+ * [#1309](https://github.com/stripe/stripe-ruby/pull/1309) Update generated code for beta
74
+ * [#1305](https://github.com/stripe/stripe-ruby/pull/1305) Update generated code for beta
75
+
45
76
  ## 10.6.0 - 2024-01-12
46
77
  * [#1310](https://github.com/stripe/stripe-ruby/pull/1310) Update generated code
47
78
  * Add support for new resource `CustomerSession`
48
79
  * Add support for `create` method on resource `CustomerSession`
49
80
 
81
+ ## 10.6.0-beta.1 - 2024-01-04
82
+ * [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
83
+ * Updated stable APIs to the latest version
84
+
50
85
  ## 10.5.0 - 2024-01-04
51
86
  * [#1306](https://github.com/stripe/stripe-ruby/pull/1306) Update generated code
52
87
  * Add support for `retrieve` method on resource `Tax.Registration`
53
88
 
89
+ ## 10.5.0-beta.1 - 2023-12-22
90
+ * [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
91
+
54
92
  ## 10.4.0 - 2023-12-22
55
93
  * [#1303](https://github.com/stripe/stripe-ruby/pull/1303) Update generated code
56
94
  * Add support for new resource `FinancialConnections.Transaction`
@@ -58,9 +96,16 @@
58
96
  * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
59
97
  * [#1304](https://github.com/stripe/stripe-ruby/pull/1304) Add support for updatable singleton resources
60
98
 
99
+ ## 10.4.0-beta.1 - 2023-12-14
100
+ Updated stable APIs to the latest version
101
+
61
102
  ## 10.3.0 - 2023-12-14
62
103
  * [#1294](https://github.com/stripe/stripe-ruby/pull/1294) Support sending parameters inside singleton retrieve
63
104
 
105
+ ## 10.3.0-beta.1 - 2023-11-30
106
+ * [#1298](https://github.com/stripe/stripe-ruby/pull/1298) Update generated code for beta
107
+ * [#1296](https://github.com/stripe/stripe-ruby/pull/1296) Merge master into beta
108
+
64
109
  ## 10.2.0 - 2023-11-30
65
110
  * [#1292](https://github.com/stripe/stripe-ruby/pull/1292) Update generated code
66
111
  * Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier`
@@ -73,12 +118,26 @@
73
118
 
74
119
  * [#1288](https://github.com/stripe/stripe-ruby/pull/1288) Update generated code
75
120
 
121
+ ## 10.2.0-beta.1 - 2023-11-02
122
+ * [#1287](https://github.com/stripe/stripe-ruby/pull/1287) Update generated code for beta
123
+ * Add support for `attach_payment_intent` method on resource `Invoice`
124
+ * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
76
125
 
77
126
  ## 10.1.0 - 2023-11-02
78
127
  * [#1286](https://github.com/stripe/stripe-ruby/pull/1286) Update generated code
79
128
  * Add support for new resource `Tax.Registration`
80
129
  * Add support for `create`, `list`, and `update` methods on resource `Registration`
81
130
 
131
+ ## 10.1.0-beta.2 - 2023-10-26
132
+ * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
133
+ * Add support for new resource `Margin`
134
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Margin`
135
+
136
+ ## 10.1.0-beta.1 - 2023-10-17
137
+ * [#1284](https://github.com/stripe/stripe-ruby/pull/1284) Update generated code for beta
138
+ - Update pinned API version to `2023-10-16`
139
+ * [#1282](https://github.com/stripe/stripe-ruby/pull/1282) Update generated code for beta
140
+
82
141
  ## 10.0.0 - 2023-10-16
83
142
  * 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`.
84
143
  * [#1283](https://github.com/stripe/stripe-ruby/pull/1283) Update generated code
@@ -86,11 +145,33 @@
86
145
  * [#1281](https://github.com/stripe/stripe-ruby/pull/1281) Update generated code
87
146
  * Documentation only changes
88
147
 
148
+ ## 9.5.0-beta.2 - 2023-10-12
149
+ * [#1280](https://github.com/stripe/stripe-ruby/pull/1280) Update generated code for beta
150
+ * Add support for new resources `AccountNotice` and `Issuing.CreditUnderwritingRecord`
151
+ * Add support for `list`, `retrieve`, and `update` methods on resource `AccountNotice`
152
+ * Add support for `correct`, `create_from_application`, `create_from_proactive_review`, `list`, `report_decision`, and `retrieve` methods on resource `CreditUnderwritingRecord`
153
+
154
+ ## 9.5.0-beta.1 - 2023-10-05
155
+ * [#1278](https://github.com/stripe/stripe-ruby/pull/1278) Update generated code for beta
156
+ * Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
157
+ * Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
158
+ * Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote`
159
+
89
160
  ## 9.4.0 - 2023-10-05
90
161
  * [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code
91
162
  * Add support for new resources `Issuing.Token`
92
163
  * Add support for `list`, `retrieve`, and `update` methods on resource `Token`
93
164
 
165
+ ## 9.4.0-beta.3 - 2023-09-28
166
+ * [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
167
+ * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
168
+
169
+ ## 9.4.0-beta.2 - 2023-09-21
170
+ * [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
171
+
172
+ ## 9.4.0-beta.1 - 2023-09-14
173
+ * Updated stable APIs to the latest version
174
+
94
175
  ## 9.3.0 - 2023-09-14
95
176
  * [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
96
177
  * Add support for new resource `PaymentMethodConfiguration`
@@ -99,18 +180,38 @@
99
180
  * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
100
181
  * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
101
182
 
183
+ ## 9.3.0-beta.1 - 2023-09-07
184
+ * [#1269](https://github.com/stripe/stripe-ruby/pull/1269) Update generated code for beta
185
+ * Release specs are identical.
186
+ * [#1268](https://github.com/stripe/stripe-ruby/pull/1268) Update generated code for beta
187
+ * Remove support for `submit_card` test helper method on resource `Issuing.Card`
188
+ * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
189
+ * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
190
+ * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
191
+ * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
192
+ * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
193
+
194
+ * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
195
+
196
+ * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
197
+ * Add support for `submit_card` test helper method on resource `Issuing.Card`
198
+ * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
199
+
102
200
  ## 9.2.0 - 2023-09-07
103
201
  * [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
104
202
  * Add support for new resource `PaymentMethodDomain`
105
203
  * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
106
204
 
205
+ ## 9.2.0-beta.1 - 2023-08-31
206
+ * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
207
+ * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
208
+
107
209
  ## 9.1.0 - 2023-08-31
108
210
  * [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
109
211
  * Add support for new resource `AccountSession`
110
212
  * Add support for `create` method on resource `AccountSession`
111
213
  * [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
112
214
 
113
-
114
215
  ## 9.0.0 - 2023-08-16
115
216
  **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
116
217
 
@@ -143,10 +244,39 @@
143
244
 
144
245
  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.
145
246
 
247
+ ## 9.0.0-beta.1 - 2023-08-24
248
+ * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
249
+ * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
250
+ * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
251
+
252
+ ## 8.8.0-beta.1 - 2023-08-10
253
+ * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
254
+ * Updated stable APIs to the latest version
255
+
146
256
  ## 8.7.0 - 2023-08-10
147
257
  * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
148
258
  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.
149
259
 
260
+ ## 8.7.0-beta.3 - 2023-08-03
261
+ * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
262
+ * Add support for `submit_card` test helper method on resource `Issuing.Card`
263
+ * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
264
+
265
+ ## 8.7.0-beta.2 - 2023-07-28
266
+ * [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
267
+ * Add support for new resource `Tax.Form`
268
+ * Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
269
+ * [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
270
+ * [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
271
+
272
+ ## 8.7.0-beta.1 - 2023-07-13
273
+ * [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
274
+ Release specs are identical.
275
+ * [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
276
+ * Add support for new resource `PaymentMethodConfiguration`
277
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
278
+ * [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
279
+
150
280
  ## 8.6.0 - 2023-07-13
151
281
  * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
152
282
  * Add support for new resource `Tax.Settings`
@@ -175,6 +305,37 @@
175
305
 
176
306
  * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
177
307
 
308
+ ## 8.6.0-beta.6 - 2023-06-22
309
+ * [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
310
+ * Add support for new resource `CustomerSession`
311
+ * Add support for `create` method on resource `CustomerSession`
312
+ * [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
313
+ * [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
314
+
315
+ ## 8.6.0-beta.5 - 2023-06-01
316
+ * [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
317
+ * [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
318
+ * [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
319
+ * [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
320
+
321
+ ## 8.6.0-beta.4 - 2023-05-19
322
+ * [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
323
+ * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
324
+ * [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
325
+ * [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
326
+ * [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
327
+
328
+ ## 8.6.0-beta.3 - 2023-04-17
329
+ * [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
330
+ * [#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
331
+
332
+ ## 8.6.0-beta.2 - 2023-04-13
333
+ * [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
334
+ * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
335
+ * [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
336
+
337
+ ## 8.6.0-beta.1 - 2023-03-30
338
+ * [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
178
339
 
179
340
  ## 8.5.0 - 2023-03-30
180
341
  * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
@@ -182,6 +343,11 @@
182
343
  * 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.
183
344
  * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
184
345
 
346
+ ## 8.5.0-beta.1 - 2023-03-23
347
+ * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
348
+ * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
349
+ * Add support for `collect_inputs` method on resource `Terminal.Reader`
350
+
185
351
  ## 8.4.0 - 2023-03-23
186
352
  * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
187
353
  * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
@@ -189,18 +355,91 @@
189
355
  * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
190
356
  * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
191
357
 
358
+ ## 8.4.0-beta.4 - 2023-03-16
359
+ * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
360
+ * Add support for `create_from_calculation` method on resource `Tax.Transaction`
361
+ * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
362
+ * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
363
+ * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
364
+ * Remove support for `retrieve` method on resource `FinancingSummary`
365
+ * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
366
+
367
+ ## 8.4.0-beta.3 - 2023-03-09
368
+ * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
369
+ * Updated stable APIs to the latest version
370
+ * Remove support for `list_transactions` method on resource `Tax.Transaction`
371
+
372
+ ## 8.4.0-beta.2 - 2023-03-03
373
+ * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
374
+ * Updated stable APIs to the latest version
375
+ * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
376
+ * Add support for `list` and `retrieve` methods on resource `CardBundle`
377
+ * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
378
+
379
+ ## 8.4.0-beta.1 - 2023-02-23
380
+ * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
381
+ * Updated stable APIs to the latest version
382
+
192
383
  ## 8.3.0 - 2023-02-16
193
384
  * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
194
385
  * Add support for `refund_payment` method on resource `Terminal.Reader`
195
386
 
387
+ ## 8.3.0-beta.1 - 2023-02-02
388
+ * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
389
+ * Updated stable APIs to the latest version
390
+ * Add support for new resource `FinancialConnections.Transaction`
391
+ * Add support for `list` method on resource `Transaction`
392
+
196
393
  ## 8.2.0 - 2023-02-02
197
394
  * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
198
395
  * Add support for `resume` method on resource `Subscription`
199
396
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
200
397
 
398
+ ## 8.2.0-beta.3 - 2023-01-26
399
+ * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
400
+ * Updated stable APIs to the latest version
401
+ * Add support for `list_transactions` method on resource `Tax.Transaction`
402
+
403
+ ## 8.2.0-beta.2 - 2023-01-19
404
+ * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
405
+ * Updated stable APIs to the latest version
406
+ * Add support for `Tax.Settings` resource.
407
+
408
+ ## 8.2.0-beta.1 - 2023-01-12
409
+ * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
410
+ * Updated stable APIs to the latest version
411
+ * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
412
+ * Add support for `Tax::Register` resource
413
+
201
414
  ## 8.1.0 - 2023-01-12
202
415
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
203
416
 
417
+ ## 8.1.0-beta.4 - 2023-01-05
418
+ * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
419
+ * Updated stable APIs to the latest version
420
+ * Add support for `mark_stale_quote` method on resource `Quote`
421
+
422
+ ## 8.1.0-beta.3 - 2022-12-22
423
+ * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
424
+ * Updated stable APIs to the latest version
425
+ * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
426
+
427
+ ## 8.1.0-beta.2 - 2022-12-15
428
+ * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
429
+ * Updated stable APIs to the latest version
430
+ * Add support for new resources `TaxCalculation`, and `TaxTransaction`
431
+ * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
432
+ * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
433
+ * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
434
+ * Updated stable APIs to the latest version
435
+ * Add support for new resource `QuoteLine`.
436
+
437
+ ## 8.1.0-beta.1 - 2022-12-08
438
+ * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
439
+ * Updated stable APIs to the latest version
440
+ * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
441
+ * Updated stable APIs to the latest version
442
+
204
443
  ## 8.0.0 - 2022-11-16
205
444
  * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
206
445
 
@@ -208,30 +447,29 @@ Breaking changes that arose during code generation of the library that we postpo
208
447
 
209
448
  "⚠️" symbol highlights breaking changes.
210
449
 
211
- ### Deprecated
212
- - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
213
- ``` ruby
214
- # before
215
- refund = Stripe::Refund.retrieve("re_123")
216
- refund.description = "Refund description"
217
- refund.save
218
-
219
- # after
220
- Stripe::Refund.update("re_123", description: "Refund description")
221
- ```
450
+ ## 7.2.0-beta.5 - 2022-11-02
451
+ * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
452
+ * Updated beta APIs to the latest stable version
453
+ * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
454
+ * Updated stable APIs to the latest version
455
+
456
+ ## 7.2.0-beta.4 - 2022-10-07
457
+ * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
222
458
 
223
- ### ⚠️ Removed
224
- - Removed deprecated `Sku` resource.
225
- - Removed deprecated `Orders` resource.
226
- - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
227
- ```ruby
228
- # before
229
- Stripe::Subscription::delete("sub_12345")
459
+ ## 7.2.0-beta.3 - 2022-09-26
460
+ * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
461
+ * Updated stable APIs to the latest version
462
+ * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
230
463
 
231
- # after
232
- Stripe::Subscription::cancel("sub_12345")
233
- ```
464
+ ## 7.2.0-beta.2 - 2022-08-26
465
+ * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
466
+ * Updated stable APIs to the latest version
467
+ * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
234
468
 
469
+ ## 7.2.0-beta.1 - 2022-08-23
470
+ * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
471
+ - Updated stable APIs to the latest version
472
+ - `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)
235
473
 
236
474
  ## 7.1.0 - 2022-08-19
237
475
  * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@@ -240,6 +478,16 @@ Breaking changes that arose during code generation of the library that we postpo
240
478
  * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
241
479
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
242
480
 
481
+ ## 7.1.0-beta.2 - 2022-08-11
482
+ * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
483
+ - Updated stable APIs to the latest version
484
+ - Add `refund_payment` method to Terminal resource
485
+
486
+ ## 7.1.0-beta.1 - 2022-08-03
487
+ * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
488
+ - Updated stable APIs to the latest version
489
+ - Added the `Order` resource support
490
+
243
491
  ## 7.0.0 - 2022-08-02
244
492
 
245
493
  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.
@@ -251,21 +499,19 @@ Breaking changes that arose during code generation of the library that we postpo
251
499
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
252
500
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
253
501
 
254
- ### ⚠️ Changed
255
- * `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.
256
- * Update default bundle of CA certificates to April 26, 2022.
257
-
258
- ### Deprecated
259
- * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
260
-
261
- ### ⚠️ Removed
262
- * Remove `details` method from `Issuing.Card` resource. The method was not supported.
263
- * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
264
- * Remove `create` method from `ReportType` resource. The method was not supported.
265
- * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
266
- * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
267
- * Remove ability to list `Card` resource for a `Recipient`.
268
- * Remove `cancel` method from `Transfer` resource. The method was deprecated.
502
+ ## 6.6.0-beta.1 - 2022-07-22
503
+ * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
504
+ - Updated stable APIs to the latest version
505
+ - Add `QuotePhase` resource
506
+ * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
507
+ - Updated stable APIs to the latest version
508
+ - Add `SubscriptionSchedule.amend` method.
509
+ * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
510
+ - Include `server_side_confirmation_beta=v1` beta
511
+ - Add `secretKeyConfirmation` to `PaymentIntent`
512
+ * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
513
+ - Updated stable APIs to the latest version
514
+ * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
269
515
 
270
516
  ## 6.5.0 - 2022-06-29
271
517
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -295,8 +541,6 @@ Breaking changes that arose during code generation of the library that we postpo
295
541
  * 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`
296
542
  * Add support for `retrieve_payment_method` method on resource `Customer`
297
543
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
298
-
299
-
300
544
 
301
545
  ## 6.0.0 - 2022-05-09
302
546
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -312,7 +556,6 @@ Breaking changes that arose during code generation of the library that we postpo
312
556
  ## 5.55.0 - 2022-05-05
313
557
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
314
558
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
315
-
316
559
 
317
560
  ## 5.54.0 - 2022-05-03
318
561
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1343,3 +1586,4 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1343
1586
  <!--
1344
1587
  # vim: set tw=0:
1345
1588
  -->
1589
+
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v841
1
+ v857
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.11.0
1
+ 10.12.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-02-15.preview-v2"
7
8
  end
8
9
  end