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