stripe 10.9.0 → 10.10.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 +282 -40
  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/capital/financing_offer.rb +49 -0
  12. data/lib/stripe/resources/capital/financing_summary.rb +15 -0
  13. data/lib/stripe/resources/capital/financing_transaction.rb +27 -0
  14. data/lib/stripe/resources/confirmation_token.rb +16 -0
  15. data/lib/stripe/resources/customer.rb +11 -0
  16. data/lib/stripe/resources/customer_entitlement.rb +12 -0
  17. data/lib/stripe/resources/customer_entitlement_summary.rb +12 -0
  18. data/lib/stripe/resources/entitlements/event.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 +53 -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/issuing/personalization_design.rb +119 -0
  28. data/lib/stripe/resources/issuing/physical_bundle.rb +26 -0
  29. data/lib/stripe/resources/margin.rb +37 -0
  30. data/lib/stripe/resources/order.rb +120 -0
  31. data/lib/stripe/resources/payment_intent.rb +50 -0
  32. data/lib/stripe/resources/quote.rb +104 -0
  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 +46 -0
  45. metadata +26 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2f7b58163e4353bfa2145baed7e00ad770b8a84151047636a41b4a7e8e7eb60
4
- data.tar.gz: 90e66e626c77ea4a1b8a8f664b46c5cef59903ebd00b8765e24ab4ec276de9af
3
+ metadata.gz: 15d265db0d747be11b2f268b6cf7e2c26e78cadbe764f9c4b55868d532415ea7
4
+ data.tar.gz: b4cc1df3d68f967ff58dff2f5163bffe50c3b355ad1370dc59fa452879472dd5
5
5
  SHA512:
6
- metadata.gz: 0d0b03dc95ab2be4ee4a10cd7c599f2e25e06f83b1c4d06166f13d56c2f4e979292b2b72a7f5ce134ab384a57fb39b5d9758bf4ebfd2e4607c664fa06c7c7a6c
7
- data.tar.gz: 21db9ed53787a4213883fd1784099412fe174367ffe5ed2ccc58cbbf03ab6ac0ec80b52512bffea6efe2bcd29acbd4de649d50c9eb92de24b80961cc06966e7d
6
+ metadata.gz: e190327bb385b28037e0a6043f2c27267e02c260480981e6109f5f80ddeb8f17a0d2b45576c5ec455a46a634848b934ee79b453d86aa045663dc0e9618e118bb
7
+ data.tar.gz: 78c3b59537ec23445582d2607cabdb006304aa3b7308d0d914886c988f8ca2cf8f2480596c006dfa868efc6e856022b0d512983998bd20a303dbb17a5f898f75
data/CHANGELOG.md CHANGED
@@ -1,16 +1,33 @@
1
1
  # Changelog
2
+
3
+ ## 10.10.0-beta.1 - 2024-02-16
4
+ * [#1332](https://github.com/stripe/stripe-ruby/pull/1332) Update generated code for beta
5
+ * Add support for `decrement_authorization` method on resource `PaymentIntent`
6
+ * [#1328](https://github.com/stripe/stripe-ruby/pull/1328) Update generated code for beta
7
+
8
+
2
9
  ## 10.9.0 - 2024-02-15
3
10
  * [#1329](https://github.com/stripe/stripe-ruby/pull/1329) Update generated code
4
11
  * Fixed bug where `TaxId` resource `delete` method sent request to wrong URL (https://github.com/stripe/stripe-ruby/issues/1333)
5
12
  * [#1324](https://github.com/stripe/stripe-ruby/pull/1324) Start running Sorbet in CI
6
13
  * [#1327](https://github.com/stripe/stripe-ruby/pull/1327) Add methods for dynamically referenced constants
7
14
 
15
+ ## 10.9.0-beta.1 - 2024-02-08
16
+ * [#1321](https://github.com/stripe/stripe-ruby/pull/1321) Update generated code for beta
17
+ * Release specs are identical.
18
+
8
19
  ## 10.8.0 - 2024-02-08
9
20
  * [#1322](https://github.com/stripe/stripe-ruby/pull/1322) Update generated code
10
21
  * [#1323](https://github.com/stripe/stripe-ruby/pull/1323) Extract other CRUDL api operations from mixins
11
22
  * Extract more CRUDL operations, namely `create`, `delete`, `update`, and `list` into the resources. These methods will no longer rely on the APIOperation mixins.
12
23
  * [#1314](https://github.com/stripe/stripe-ruby/pull/1314) Update mocha gem to 1.16
13
24
 
25
+ ## 10.8.0-beta.1 - 2024-02-01
26
+ * [#1318](https://github.com/stripe/stripe-ruby/pull/1318) Update generated code for beta
27
+ * Add support for new resources `Entitlements.Event` and `Entitlements.Feature`
28
+ * Add support for `create` method on resource `Event`
29
+ * Add support for `create` and `list` methods on resource `Feature`
30
+
14
31
  ## 10.7.1 - 2024-02-05
15
32
  * [#1320](https://github.com/stripe/stripe-ruby/pull/1320) Remove spurious _search deprecation messages (https://github.com/stripe/stripe-ruby/issues/1319)
16
33
 
@@ -19,15 +36,34 @@
19
36
  * Removes list method mixin from child resources, as these methods always return `InvalidRequestError` and never succeed
20
37
  * [#1311](https://github.com/stripe/stripe-ruby/pull/1311) Use the deprecation gem in search and clean up usage of the gem
21
38
 
39
+ ## 10.7.0-beta.3 - 2024-01-25
40
+ * [#1313](https://github.com/stripe/stripe-ruby/pull/1313) Update generated code for beta
41
+ * Add support for `create_preview` method on resource `Invoice`
42
+ * [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
43
+
44
+ ## 10.7.0-beta.2 - 2024-01-19
45
+ * [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
46
+
47
+ ## 10.7.0-beta.1 - 2024-01-12
48
+ * [#1309](https://github.com/stripe/stripe-ruby/pull/1309) Update generated code for beta
49
+ * [#1305](https://github.com/stripe/stripe-ruby/pull/1305) Update generated code for beta
50
+
22
51
  ## 10.6.0 - 2024-01-12
23
52
  * [#1310](https://github.com/stripe/stripe-ruby/pull/1310) Update generated code
24
53
  * Add support for new resource `CustomerSession`
25
54
  * Add support for `create` method on resource `CustomerSession`
26
55
 
56
+ ## 10.6.0-beta.1 - 2024-01-04
57
+ * [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
58
+ * Updated stable APIs to the latest version
59
+
27
60
  ## 10.5.0 - 2024-01-04
28
61
  * [#1306](https://github.com/stripe/stripe-ruby/pull/1306) Update generated code
29
62
  * Add support for `retrieve` method on resource `Tax.Registration`
30
63
 
64
+ ## 10.5.0-beta.1 - 2023-12-22
65
+ * [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
66
+
31
67
  ## 10.4.0 - 2023-12-22
32
68
  * [#1303](https://github.com/stripe/stripe-ruby/pull/1303) Update generated code
33
69
  * Add support for new resource `FinancialConnections.Transaction`
@@ -35,9 +71,16 @@
35
71
  * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
36
72
  * [#1304](https://github.com/stripe/stripe-ruby/pull/1304) Add support for updatable singleton resources
37
73
 
74
+ ## 10.4.0-beta.1 - 2023-12-14
75
+ Updated stable APIs to the latest version
76
+
38
77
  ## 10.3.0 - 2023-12-14
39
78
  * [#1294](https://github.com/stripe/stripe-ruby/pull/1294) Support sending parameters inside singleton retrieve
40
79
 
80
+ ## 10.3.0-beta.1 - 2023-11-30
81
+ * [#1298](https://github.com/stripe/stripe-ruby/pull/1298) Update generated code for beta
82
+ * [#1296](https://github.com/stripe/stripe-ruby/pull/1296) Merge master into beta
83
+
41
84
  ## 10.2.0 - 2023-11-30
42
85
  * [#1292](https://github.com/stripe/stripe-ruby/pull/1292) Update generated code
43
86
  * Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier`
@@ -50,12 +93,26 @@
50
93
 
51
94
  * [#1288](https://github.com/stripe/stripe-ruby/pull/1288) Update generated code
52
95
 
96
+ ## 10.2.0-beta.1 - 2023-11-02
97
+ * [#1287](https://github.com/stripe/stripe-ruby/pull/1287) Update generated code for beta
98
+ * Add support for `attach_payment_intent` method on resource `Invoice`
99
+ * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
53
100
 
54
101
  ## 10.1.0 - 2023-11-02
55
102
  * [#1286](https://github.com/stripe/stripe-ruby/pull/1286) Update generated code
56
103
  * Add support for new resource `Tax.Registration`
57
104
  * Add support for `create`, `list`, and `update` methods on resource `Registration`
58
105
 
106
+ ## 10.1.0-beta.2 - 2023-10-26
107
+ * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
108
+ * Add support for new resource `Margin`
109
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Margin`
110
+
111
+ ## 10.1.0-beta.1 - 2023-10-17
112
+ * [#1284](https://github.com/stripe/stripe-ruby/pull/1284) Update generated code for beta
113
+ - Update pinned API version to `2023-10-16`
114
+ * [#1282](https://github.com/stripe/stripe-ruby/pull/1282) Update generated code for beta
115
+
59
116
  ## 10.0.0 - 2023-10-16
60
117
  * 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`.
61
118
  * [#1283](https://github.com/stripe/stripe-ruby/pull/1283) Update generated code
@@ -63,11 +120,33 @@
63
120
  * [#1281](https://github.com/stripe/stripe-ruby/pull/1281) Update generated code
64
121
  * Documentation only changes
65
122
 
123
+ ## 9.5.0-beta.2 - 2023-10-12
124
+ * [#1280](https://github.com/stripe/stripe-ruby/pull/1280) Update generated code for beta
125
+ * Add support for new resources `AccountNotice` and `Issuing.CreditUnderwritingRecord`
126
+ * Add support for `list`, `retrieve`, and `update` methods on resource `AccountNotice`
127
+ * Add support for `correct`, `create_from_application`, `create_from_proactive_review`, `list`, `report_decision`, and `retrieve` methods on resource `CreditUnderwritingRecord`
128
+
129
+ ## 9.5.0-beta.1 - 2023-10-05
130
+ * [#1278](https://github.com/stripe/stripe-ruby/pull/1278) Update generated code for beta
131
+ * Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
132
+ * Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
133
+ * Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote`
134
+
66
135
  ## 9.4.0 - 2023-10-05
67
136
  * [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code
68
137
  * Add support for new resources `Issuing.Token`
69
138
  * Add support for `list`, `retrieve`, and `update` methods on resource `Token`
70
139
 
140
+ ## 9.4.0-beta.3 - 2023-09-28
141
+ * [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
142
+ * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
143
+
144
+ ## 9.4.0-beta.2 - 2023-09-21
145
+ * [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
146
+
147
+ ## 9.4.0-beta.1 - 2023-09-14
148
+ * Updated stable APIs to the latest version
149
+
71
150
  ## 9.3.0 - 2023-09-14
72
151
  * [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
73
152
  * Add support for new resource `PaymentMethodConfiguration`
@@ -76,18 +155,38 @@
76
155
  * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
77
156
  * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
78
157
 
158
+ ## 9.3.0-beta.1 - 2023-09-07
159
+ * [#1269](https://github.com/stripe/stripe-ruby/pull/1269) Update generated code for beta
160
+ * Release specs are identical.
161
+ * [#1268](https://github.com/stripe/stripe-ruby/pull/1268) Update generated code for beta
162
+ * Remove support for `submit_card` test helper method on resource `Issuing.Card`
163
+ * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
164
+ * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
165
+ * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
166
+ * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
167
+ * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
168
+
169
+ * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
170
+
171
+ * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
172
+ * Add support for `submit_card` test helper method on resource `Issuing.Card`
173
+ * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
174
+
79
175
  ## 9.2.0 - 2023-09-07
80
176
  * [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
81
177
  * Add support for new resource `PaymentMethodDomain`
82
178
  * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
83
179
 
180
+ ## 9.2.0-beta.1 - 2023-08-31
181
+ * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
182
+ * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
183
+
84
184
  ## 9.1.0 - 2023-08-31
85
185
  * [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
86
186
  * Add support for new resource `AccountSession`
87
187
  * Add support for `create` method on resource `AccountSession`
88
188
  * [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
89
189
 
90
-
91
190
  ## 9.0.0 - 2023-08-16
92
191
  **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
93
192
 
@@ -120,10 +219,39 @@
120
219
 
121
220
  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.
122
221
 
222
+ ## 9.0.0-beta.1 - 2023-08-24
223
+ * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
224
+ * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
225
+ * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
226
+
227
+ ## 8.8.0-beta.1 - 2023-08-10
228
+ * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
229
+ * Updated stable APIs to the latest version
230
+
123
231
  ## 8.7.0 - 2023-08-10
124
232
  * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
125
233
  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.
126
234
 
235
+ ## 8.7.0-beta.3 - 2023-08-03
236
+ * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
237
+ * Add support for `submit_card` test helper method on resource `Issuing.Card`
238
+ * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
239
+
240
+ ## 8.7.0-beta.2 - 2023-07-28
241
+ * [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
242
+ * Add support for new resource `Tax.Form`
243
+ * Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
244
+ * [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
245
+ * [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
246
+
247
+ ## 8.7.0-beta.1 - 2023-07-13
248
+ * [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
249
+ Release specs are identical.
250
+ * [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
251
+ * Add support for new resource `PaymentMethodConfiguration`
252
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
253
+ * [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
254
+
127
255
  ## 8.6.0 - 2023-07-13
128
256
  * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
129
257
  * Add support for new resource `Tax.Settings`
@@ -152,6 +280,37 @@
152
280
 
153
281
  * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
154
282
 
283
+ ## 8.6.0-beta.6 - 2023-06-22
284
+ * [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
285
+ * Add support for new resource `CustomerSession`
286
+ * Add support for `create` method on resource `CustomerSession`
287
+ * [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
288
+ * [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
289
+
290
+ ## 8.6.0-beta.5 - 2023-06-01
291
+ * [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
292
+ * [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
293
+ * [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
294
+ * [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
295
+
296
+ ## 8.6.0-beta.4 - 2023-05-19
297
+ * [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
298
+ * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
299
+ * [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
300
+ * [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
301
+ * [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
302
+
303
+ ## 8.6.0-beta.3 - 2023-04-17
304
+ * [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
305
+ * [#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
306
+
307
+ ## 8.6.0-beta.2 - 2023-04-13
308
+ * [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
309
+ * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
310
+ * [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
311
+
312
+ ## 8.6.0-beta.1 - 2023-03-30
313
+ * [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
155
314
 
156
315
  ## 8.5.0 - 2023-03-30
157
316
  * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
@@ -159,6 +318,11 @@
159
318
  * 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.
160
319
  * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
161
320
 
321
+ ## 8.5.0-beta.1 - 2023-03-23
322
+ * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
323
+ * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
324
+ * Add support for `collect_inputs` method on resource `Terminal.Reader`
325
+
162
326
  ## 8.4.0 - 2023-03-23
163
327
  * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
164
328
  * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
@@ -166,18 +330,91 @@
166
330
  * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
167
331
  * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
168
332
 
333
+ ## 8.4.0-beta.4 - 2023-03-16
334
+ * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
335
+ * Add support for `create_from_calculation` method on resource `Tax.Transaction`
336
+ * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
337
+ * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
338
+ * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
339
+ * Remove support for `retrieve` method on resource `FinancingSummary`
340
+ * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
341
+
342
+ ## 8.4.0-beta.3 - 2023-03-09
343
+ * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
344
+ * Updated stable APIs to the latest version
345
+ * Remove support for `list_transactions` method on resource `Tax.Transaction`
346
+
347
+ ## 8.4.0-beta.2 - 2023-03-03
348
+ * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
349
+ * Updated stable APIs to the latest version
350
+ * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
351
+ * Add support for `list` and `retrieve` methods on resource `CardBundle`
352
+ * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
353
+
354
+ ## 8.4.0-beta.1 - 2023-02-23
355
+ * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
356
+ * Updated stable APIs to the latest version
357
+
169
358
  ## 8.3.0 - 2023-02-16
170
359
  * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
171
360
  * Add support for `refund_payment` method on resource `Terminal.Reader`
172
361
 
362
+ ## 8.3.0-beta.1 - 2023-02-02
363
+ * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
364
+ * Updated stable APIs to the latest version
365
+ * Add support for new resource `FinancialConnections.Transaction`
366
+ * Add support for `list` method on resource `Transaction`
367
+
173
368
  ## 8.2.0 - 2023-02-02
174
369
  * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
175
370
  * Add support for `resume` method on resource `Subscription`
176
371
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
177
372
 
373
+ ## 8.2.0-beta.3 - 2023-01-26
374
+ * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
375
+ * Updated stable APIs to the latest version
376
+ * Add support for `list_transactions` method on resource `Tax.Transaction`
377
+
378
+ ## 8.2.0-beta.2 - 2023-01-19
379
+ * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
380
+ * Updated stable APIs to the latest version
381
+ * Add support for `Tax.Settings` resource.
382
+
383
+ ## 8.2.0-beta.1 - 2023-01-12
384
+ * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
385
+ * Updated stable APIs to the latest version
386
+ * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
387
+ * Add support for `Tax::Register` resource
388
+
178
389
  ## 8.1.0 - 2023-01-12
179
390
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
180
391
 
392
+ ## 8.1.0-beta.4 - 2023-01-05
393
+ * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
394
+ * Updated stable APIs to the latest version
395
+ * Add support for `mark_stale_quote` method on resource `Quote`
396
+
397
+ ## 8.1.0-beta.3 - 2022-12-22
398
+ * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
399
+ * Updated stable APIs to the latest version
400
+ * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
401
+
402
+ ## 8.1.0-beta.2 - 2022-12-15
403
+ * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
404
+ * Updated stable APIs to the latest version
405
+ * Add support for new resources `TaxCalculation`, and `TaxTransaction`
406
+ * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
407
+ * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
408
+ * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
409
+ * Updated stable APIs to the latest version
410
+ * Add support for new resource `QuoteLine`.
411
+
412
+ ## 8.1.0-beta.1 - 2022-12-08
413
+ * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
414
+ * Updated stable APIs to the latest version
415
+ * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
416
+ * Updated stable APIs to the latest version
417
+
181
418
  ## 8.0.0 - 2022-11-16
182
419
  * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
183
420
 
@@ -185,30 +422,29 @@ Breaking changes that arose during code generation of the library that we postpo
185
422
 
186
423
  "⚠️" symbol highlights breaking changes.
187
424
 
188
- ### Deprecated
189
- - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
190
- ``` ruby
191
- # before
192
- refund = Stripe::Refund.retrieve("re_123")
193
- refund.description = "Refund description"
194
- refund.save
195
-
196
- # after
197
- Stripe::Refund.update("re_123", description: "Refund description")
198
- ```
425
+ ## 7.2.0-beta.5 - 2022-11-02
426
+ * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
427
+ * Updated beta APIs to the latest stable version
428
+ * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
429
+ * Updated stable APIs to the latest version
430
+
431
+ ## 7.2.0-beta.4 - 2022-10-07
432
+ * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
199
433
 
200
- ### ⚠️ Removed
201
- - Removed deprecated `Sku` resource.
202
- - Removed deprecated `Orders` resource.
203
- - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
204
- ```ruby
205
- # before
206
- Stripe::Subscription::delete("sub_12345")
434
+ ## 7.2.0-beta.3 - 2022-09-26
435
+ * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
436
+ * Updated stable APIs to the latest version
437
+ * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
207
438
 
208
- # after
209
- Stripe::Subscription::cancel("sub_12345")
210
- ```
439
+ ## 7.2.0-beta.2 - 2022-08-26
440
+ * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
441
+ * Updated stable APIs to the latest version
442
+ * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
211
443
 
444
+ ## 7.2.0-beta.1 - 2022-08-23
445
+ * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
446
+ - Updated stable APIs to the latest version
447
+ - `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)
212
448
 
213
449
  ## 7.1.0 - 2022-08-19
214
450
  * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@@ -217,6 +453,16 @@ Breaking changes that arose during code generation of the library that we postpo
217
453
  * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
218
454
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
219
455
 
456
+ ## 7.1.0-beta.2 - 2022-08-11
457
+ * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
458
+ - Updated stable APIs to the latest version
459
+ - Add `refund_payment` method to Terminal resource
460
+
461
+ ## 7.1.0-beta.1 - 2022-08-03
462
+ * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
463
+ - Updated stable APIs to the latest version
464
+ - Added the `Order` resource support
465
+
220
466
  ## 7.0.0 - 2022-08-02
221
467
 
222
468
  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.
@@ -228,21 +474,19 @@ Breaking changes that arose during code generation of the library that we postpo
228
474
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
229
475
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
230
476
 
231
- ### ⚠️ Changed
232
- * `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.
233
- * Update default bundle of CA certificates to April 26, 2022.
234
-
235
- ### Deprecated
236
- * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
237
-
238
- ### ⚠️ Removed
239
- * Remove `details` method from `Issuing.Card` resource. The method was not supported.
240
- * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
241
- * Remove `create` method from `ReportType` resource. The method was not supported.
242
- * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
243
- * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
244
- * Remove ability to list `Card` resource for a `Recipient`.
245
- * Remove `cancel` method from `Transfer` resource. The method was deprecated.
477
+ ## 6.6.0-beta.1 - 2022-07-22
478
+ * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
479
+ - Updated stable APIs to the latest version
480
+ - Add `QuotePhase` resource
481
+ * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
482
+ - Updated stable APIs to the latest version
483
+ - Add `SubscriptionSchedule.amend` method.
484
+ * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
485
+ - Include `server_side_confirmation_beta=v1` beta
486
+ - Add `secretKeyConfirmation` to `PaymentIntent`
487
+ * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
488
+ - Updated stable APIs to the latest version
489
+ * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
246
490
 
247
491
  ## 6.5.0 - 2022-06-29
248
492
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -272,8 +516,6 @@ Breaking changes that arose during code generation of the library that we postpo
272
516
  * 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`
273
517
  * Add support for `retrieve_payment_method` method on resource `Customer`
274
518
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
275
-
276
-
277
519
 
278
520
  ## 6.0.0 - 2022-05-09
279
521
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -289,7 +531,6 @@ Breaking changes that arose during code generation of the library that we postpo
289
531
  ## 5.55.0 - 2022-05-05
290
532
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
291
533
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
292
-
293
534
 
294
535
  ## 5.54.0 - 2022-05-03
295
536
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1320,3 +1561,4 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1320
1561
  <!--
1321
1562
  # vim: set tw=0:
1322
1563
  -->
1564
+
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v829
1
+ v831
data/README.md CHANGED
@@ -324,6 +324,17 @@ If your beta feature requires a `Stripe-Version` header to be sent, use the `Str
324
324
  Stripe.api_version += "; feature_beta=v3"
325
325
  ```
326
326
 
327
+ ### Custom requests
328
+
329
+ 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`.
330
+
331
+ ```ruby
332
+ resp = Stripe.raw_request(:post, "/v1/beta_endpoint", {param: 123}, {stripe_version: "2022-11-15; feature_beta=v3"})
333
+
334
+ # (Optional) resp is a StripeResponse. You can use `Stripe.deserialize` to get a StripeObject.
335
+ deserialized_resp = Stripe.deserialize(resp.http_body)
336
+ ```
337
+
327
338
  ## Support
328
339
 
329
340
  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.9.0
1
+ 10.10.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 = "2023-12-11.preview-v2"
7
8
  end
8
9
  end
@@ -16,6 +16,7 @@ module Stripe
16
16
  File.object_name_alt => File,
17
17
  Account.object_name => Account,
18
18
  AccountLink.object_name => AccountLink,
19
+ AccountNotice.object_name => AccountNotice,
19
20
  AccountSession.object_name => AccountSession,
20
21
  ApplePayDomain.object_name => ApplePayDomain,
21
22
  ApplicationFee.object_name => ApplicationFee,
@@ -27,6 +28,9 @@ module Stripe
27
28
  BillingPortal::Configuration.object_name => BillingPortal::Configuration,
28
29
  BillingPortal::Session.object_name => BillingPortal::Session,
29
30
  Capability.object_name => Capability,
31
+ Capital::FinancingOffer.object_name => Capital::FinancingOffer,
32
+ Capital::FinancingSummary.object_name => Capital::FinancingSummary,
33
+ Capital::FinancingTransaction.object_name => Capital::FinancingTransaction,
30
34
  Card.object_name => Card,
31
35
  CashBalance.object_name => CashBalance,
32
36
  Charge.object_name => Charge,
@@ -34,6 +38,7 @@ module Stripe
34
38
  Climate::Order.object_name => Climate::Order,
35
39
  Climate::Product.object_name => Climate::Product,
36
40
  Climate::Supplier.object_name => Climate::Supplier,
41
+ ConfirmationToken.object_name => ConfirmationToken,
37
42
  CountrySpec.object_name => CountrySpec,
38
43
  Coupon.object_name => Coupon,
39
44
  CreditNote.object_name => CreditNote,
@@ -41,35 +46,49 @@ module Stripe
41
46
  Customer.object_name => Customer,
42
47
  CustomerBalanceTransaction.object_name => CustomerBalanceTransaction,
43
48
  CustomerCashBalanceTransaction.object_name => CustomerCashBalanceTransaction,
49
+ CustomerEntitlement.object_name => CustomerEntitlement,
50
+ CustomerEntitlementSummary.object_name => CustomerEntitlementSummary,
44
51
  CustomerSession.object_name => CustomerSession,
45
52
  Discount.object_name => Discount,
46
53
  Dispute.object_name => Dispute,
54
+ Entitlements::Event.object_name => Entitlements::Event,
55
+ Entitlements::Feature.object_name => Entitlements::Feature,
47
56
  EphemeralKey.object_name => EphemeralKey,
48
57
  Event.object_name => Event,
49
58
  ExchangeRate.object_name => ExchangeRate,
50
59
  File.object_name => File,
51
60
  FileLink.object_name => FileLink,
52
61
  FinancialConnections::Account.object_name => FinancialConnections::Account,
62
+ FinancialConnections::AccountInferredBalance.object_name =>
63
+ FinancialConnections::AccountInferredBalance,
53
64
  FinancialConnections::AccountOwner.object_name => FinancialConnections::AccountOwner,
54
65
  FinancialConnections::AccountOwnership.object_name =>
55
66
  FinancialConnections::AccountOwnership,
56
67
  FinancialConnections::Session.object_name => FinancialConnections::Session,
57
68
  FinancialConnections::Transaction.object_name => FinancialConnections::Transaction,
58
69
  FundingInstructions.object_name => FundingInstructions,
70
+ GiftCards::Card.object_name => GiftCards::Card,
71
+ GiftCards::Transaction.object_name => GiftCards::Transaction,
59
72
  Identity::VerificationReport.object_name => Identity::VerificationReport,
60
73
  Identity::VerificationSession.object_name => Identity::VerificationSession,
61
74
  Invoice.object_name => Invoice,
62
75
  InvoiceItem.object_name => InvoiceItem,
63
76
  InvoiceLineItem.object_name => InvoiceLineItem,
77
+ InvoicePayment.object_name => InvoicePayment,
64
78
  Issuing::Authorization.object_name => Issuing::Authorization,
65
79
  Issuing::Card.object_name => Issuing::Card,
66
80
  Issuing::Cardholder.object_name => Issuing::Cardholder,
81
+ Issuing::CreditUnderwritingRecord.object_name => Issuing::CreditUnderwritingRecord,
67
82
  Issuing::Dispute.object_name => Issuing::Dispute,
83
+ Issuing::PersonalizationDesign.object_name => Issuing::PersonalizationDesign,
84
+ Issuing::PhysicalBundle.object_name => Issuing::PhysicalBundle,
68
85
  Issuing::Token.object_name => Issuing::Token,
69
86
  Issuing::Transaction.object_name => Issuing::Transaction,
70
87
  LineItem.object_name => LineItem,
71
88
  LoginLink.object_name => LoginLink,
72
89
  Mandate.object_name => Mandate,
90
+ Margin.object_name => Margin,
91
+ Order.object_name => Order,
73
92
  PaymentIntent.object_name => PaymentIntent,
74
93
  PaymentLink.object_name => PaymentLink,
75
94
  PaymentMethod.object_name => PaymentMethod,
@@ -82,6 +101,9 @@ module Stripe
82
101
  Product.object_name => Product,
83
102
  PromotionCode.object_name => PromotionCode,
84
103
  Quote.object_name => Quote,
104
+ QuotePhase.object_name => QuotePhase,
105
+ QuotePreviewInvoice.object_name => QuotePreviewInvoice,
106
+ QuotePreviewSubscriptionSchedule.object_name => QuotePreviewSubscriptionSchedule,
85
107
  Radar::EarlyFraudWarning.object_name => Radar::EarlyFraudWarning,
86
108
  Radar::ValueList.object_name => Radar::ValueList,
87
109
  Radar::ValueListItem.object_name => Radar::ValueListItem,
@@ -101,6 +123,7 @@ module Stripe
101
123
  SubscriptionSchedule.object_name => SubscriptionSchedule,
102
124
  Tax::Calculation.object_name => Tax::Calculation,
103
125
  Tax::CalculationLineItem.object_name => Tax::CalculationLineItem,
126
+ Tax::Form.object_name => Tax::Form,
104
127
  Tax::Registration.object_name => Tax::Registration,
105
128
  Tax::Settings.object_name => Tax::Settings,
106
129
  Tax::Transaction.object_name => Tax::Transaction,