stripe 10.8.0 → 10.9.0.pre.beta.1

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