stripe 10.2.0.pre.beta.1 → 10.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -239
- data/Gemfile +5 -2
- data/OPENAPI_VERSION +1 -1
- data/README.md +0 -11
- data/Rakefile +7 -5
- data/VERSION +1 -1
- data/bin/stripe-console +1 -1
- data/lib/stripe/api_operations/request.rb +3 -7
- data/lib/stripe/api_operations/save.rb +5 -7
- data/lib/stripe/api_resource_test_helpers.rb +2 -2
- data/lib/stripe/api_version.rb +0 -1
- data/lib/stripe/connection_manager.rb +4 -6
- data/lib/stripe/errors.rb +3 -11
- data/lib/stripe/instrumentation.rb +5 -21
- data/lib/stripe/multipart_encoder.rb +7 -7
- data/lib/stripe/oauth.rb +6 -6
- data/lib/stripe/object_types.rb +3 -21
- data/lib/stripe/resources/account.rb +6 -10
- data/lib/stripe/resources/alipay_account.rb +1 -1
- data/lib/stripe/resources/application_fee_refund.rb +1 -1
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/climate/order.rb +34 -0
- data/lib/stripe/resources/climate/product.rb +14 -0
- data/lib/stripe/resources/climate/supplier.rb +13 -0
- data/lib/stripe/resources/event.rb +2 -2
- data/lib/stripe/resources/file.rb +2 -4
- data/lib/stripe/resources/financial_connections/account.rb +0 -39
- data/lib/stripe/resources/invoice.rb +0 -21
- data/lib/stripe/resources/quote.rb +0 -94
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/subscription_schedule.rb +0 -18
- data/lib/stripe/resources/tax_id.rb +1 -1
- data/lib/stripe/resources/terminal/reader.rb +0 -54
- data/lib/stripe/resources.rb +3 -20
- data/lib/stripe/stripe_client.rb +51 -102
- data/lib/stripe/stripe_configuration.rb +13 -31
- data/lib/stripe/stripe_object.rb +15 -18
- data/lib/stripe/stripe_response.rb +1 -3
- data/lib/stripe/util.rb +11 -20
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -46
- data/stripe.gemspec +3 -2
- metadata +8 -25
- data/lib/stripe/request_signing_authenticator.rb +0 -83
- data/lib/stripe/resources/account_notice.rb +0 -14
- data/lib/stripe/resources/capital/financing_offer.rb +0 -32
- data/lib/stripe/resources/capital/financing_summary.rb +0 -12
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -13
- data/lib/stripe/resources/confirmation_token.rb +0 -11
- data/lib/stripe/resources/customer_session.rb +0 -12
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -13
- data/lib/stripe/resources/financial_connections/transaction.rb +0 -13
- data/lib/stripe/resources/gift_cards/card.rb +0 -25
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -56
- data/lib/stripe/resources/invoice_payment.rb +0 -11
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -69
- data/lib/stripe/resources/issuing/personalization_design.rb +0 -77
- data/lib/stripe/resources/issuing/physical_bundle.rb +0 -13
- data/lib/stripe/resources/margin.rb +0 -14
- data/lib/stripe/resources/order.rb +0 -89
- data/lib/stripe/resources/quote_phase.rb +0 -29
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -42
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -10
- data/lib/stripe/resources/tax/form.rb +0 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1175af77634044ef0ef6efda0626ace1431bdb4ad52eb78c643af4eba8982faf
|
4
|
+
data.tar.gz: 19863ceeab18b449560dc647213d5873eadb190db544015e88749b5e79414528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24f1e67f729c964e150bf991140467c85d2b85430da3a7d736cd6b6ae5a9ce8afac2664e27fb3df51d472eb23b1ae67f5933e019e8c6fd9c7639d32e4713a334
|
7
|
+
data.tar.gz: 28dee05f7251e400ba32ace17cb0e8e78f63bfa156ba36c9d6f3baa7cc6d361d0e86826a962a117e70cd774628183eddf70d0379c9c485a74192b9844c3855c5
|
data/CHANGELOG.md
CHANGED
@@ -1,25 +1,22 @@
|
|
1
1
|
# Changelog
|
2
|
+
## 10.2.0 - 2023-11-30
|
3
|
+
* [#1292](https://github.com/stripe/stripe-ruby/pull/1292) Update generated code
|
4
|
+
* Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier`
|
5
|
+
* Add support for `cancel`, `create`, `list`, `retrieve`, and `update` methods on resource `Order`
|
6
|
+
* Add support for `list` and `retrieve` methods on resources `Product` and `Supplier`
|
7
|
+
* [#1295](https://github.com/stripe/stripe-ruby/pull/1295) Upgrade rubocop
|
8
|
+
* [#1291](https://github.com/stripe/stripe-ruby/pull/1291) Update generated code
|
9
|
+
|
10
|
+
* [#1290](https://github.com/stripe/stripe-ruby/pull/1290) Update generated code
|
11
|
+
|
12
|
+
* [#1288](https://github.com/stripe/stripe-ruby/pull/1288) Update generated code
|
2
13
|
|
3
|
-
## 10.2.0-beta.1 - 2023-11-02
|
4
|
-
* [#1287](https://github.com/stripe/stripe-ruby/pull/1287) Update generated code for beta
|
5
|
-
* Add support for `attach_payment_intent` method on resource `Invoice`
|
6
|
-
* [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
|
7
14
|
|
8
15
|
## 10.1.0 - 2023-11-02
|
9
16
|
* [#1286](https://github.com/stripe/stripe-ruby/pull/1286) Update generated code
|
10
17
|
* Add support for new resource `Tax.Registration`
|
11
18
|
* Add support for `create`, `list`, and `update` methods on resource `Registration`
|
12
19
|
|
13
|
-
## 10.1.0-beta.2 - 2023-10-26
|
14
|
-
* [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
|
15
|
-
* Add support for new resource `Margin`
|
16
|
-
* Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Margin`
|
17
|
-
|
18
|
-
## 10.1.0-beta.1 - 2023-10-17
|
19
|
-
* [#1284](https://github.com/stripe/stripe-ruby/pull/1284) Update generated code for beta
|
20
|
-
- Update pinned API version to `2023-10-16`
|
21
|
-
* [#1282](https://github.com/stripe/stripe-ruby/pull/1282) Update generated code for beta
|
22
|
-
|
23
20
|
## 10.0.0 - 2023-10-16
|
24
21
|
* 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`.
|
25
22
|
* [#1283](https://github.com/stripe/stripe-ruby/pull/1283) Update generated code
|
@@ -27,33 +24,11 @@
|
|
27
24
|
* [#1281](https://github.com/stripe/stripe-ruby/pull/1281) Update generated code
|
28
25
|
* Documentation only changes
|
29
26
|
|
30
|
-
## 9.5.0-beta.2 - 2023-10-12
|
31
|
-
* [#1280](https://github.com/stripe/stripe-ruby/pull/1280) Update generated code for beta
|
32
|
-
* Add support for new resources `AccountNotice` and `Issuing.CreditUnderwritingRecord`
|
33
|
-
* Add support for `list`, `retrieve`, and `update` methods on resource `AccountNotice`
|
34
|
-
* Add support for `correct`, `create_from_application`, `create_from_proactive_review`, `list`, `report_decision`, and `retrieve` methods on resource `CreditUnderwritingRecord`
|
35
|
-
|
36
|
-
## 9.5.0-beta.1 - 2023-10-05
|
37
|
-
* [#1278](https://github.com/stripe/stripe-ruby/pull/1278) Update generated code for beta
|
38
|
-
* Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
|
39
|
-
* Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
|
40
|
-
* Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote`
|
41
|
-
|
42
27
|
## 9.4.0 - 2023-10-05
|
43
28
|
* [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code
|
44
29
|
* Add support for new resources `Issuing.Token`
|
45
30
|
* Add support for `list`, `retrieve`, and `update` methods on resource `Token`
|
46
31
|
|
47
|
-
## 9.4.0-beta.3 - 2023-09-28
|
48
|
-
* [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
|
49
|
-
* Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
|
50
|
-
|
51
|
-
## 9.4.0-beta.2 - 2023-09-21
|
52
|
-
* [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
|
53
|
-
|
54
|
-
## 9.4.0-beta.1 - 2023-09-14
|
55
|
-
* Updated stable APIs to the latest version
|
56
|
-
|
57
32
|
## 9.3.0 - 2023-09-14
|
58
33
|
* [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
|
59
34
|
* Add support for new resource `PaymentMethodConfiguration`
|
@@ -62,38 +37,18 @@
|
|
62
37
|
* Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
|
63
38
|
* Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
|
64
39
|
|
65
|
-
## 9.3.0-beta.1 - 2023-09-07
|
66
|
-
* [#1269](https://github.com/stripe/stripe-ruby/pull/1269) Update generated code for beta
|
67
|
-
* Release specs are identical.
|
68
|
-
* [#1268](https://github.com/stripe/stripe-ruby/pull/1268) Update generated code for beta
|
69
|
-
* Remove support for `submit_card` test helper method on resource `Issuing.Card`
|
70
|
-
* [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
|
71
|
-
* Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
|
72
|
-
* [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
|
73
|
-
* Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
|
74
|
-
* [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
|
75
|
-
|
76
|
-
* [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
|
77
|
-
|
78
|
-
* [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
|
79
|
-
* Add support for `submit_card` test helper method on resource `Issuing.Card`
|
80
|
-
* [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
|
81
|
-
|
82
40
|
## 9.2.0 - 2023-09-07
|
83
41
|
* [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
|
84
42
|
* Add support for new resource `PaymentMethodDomain`
|
85
43
|
* Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
|
86
44
|
|
87
|
-
## 9.2.0-beta.1 - 2023-08-31
|
88
|
-
* [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
|
89
|
-
* Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
|
90
|
-
|
91
45
|
## 9.1.0 - 2023-08-31
|
92
46
|
* [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
|
93
47
|
* Add support for new resource `AccountSession`
|
94
48
|
* Add support for `create` method on resource `AccountSession`
|
95
49
|
* [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
|
96
50
|
|
51
|
+
|
97
52
|
## 9.0.0 - 2023-08-16
|
98
53
|
**⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
|
99
54
|
|
@@ -126,39 +81,10 @@
|
|
126
81
|
|
127
82
|
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.
|
128
83
|
|
129
|
-
## 9.0.0-beta.1 - 2023-08-24
|
130
|
-
* [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
|
131
|
-
* Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
|
132
|
-
* [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
|
133
|
-
|
134
|
-
## 8.8.0-beta.1 - 2023-08-10
|
135
|
-
* [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
|
136
|
-
* Updated stable APIs to the latest version
|
137
|
-
|
138
84
|
## 8.7.0 - 2023-08-10
|
139
85
|
* [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
|
140
86
|
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.
|
141
87
|
|
142
|
-
## 8.7.0-beta.3 - 2023-08-03
|
143
|
-
* [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
|
144
|
-
* Add support for `submit_card` test helper method on resource `Issuing.Card`
|
145
|
-
* [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
|
146
|
-
|
147
|
-
## 8.7.0-beta.2 - 2023-07-28
|
148
|
-
* [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
|
149
|
-
* Add support for new resource `Tax.Form`
|
150
|
-
* Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
|
151
|
-
* [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
|
152
|
-
* [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
|
153
|
-
|
154
|
-
## 8.7.0-beta.1 - 2023-07-13
|
155
|
-
* [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
|
156
|
-
Release specs are identical.
|
157
|
-
* [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
|
158
|
-
* Add support for new resource `PaymentMethodConfiguration`
|
159
|
-
* Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
|
160
|
-
* [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
|
161
|
-
|
162
88
|
## 8.6.0 - 2023-07-13
|
163
89
|
* [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
|
164
90
|
* Add support for new resource `Tax.Settings`
|
@@ -187,37 +113,6 @@
|
|
187
113
|
|
188
114
|
* [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
|
189
115
|
|
190
|
-
## 8.6.0-beta.6 - 2023-06-22
|
191
|
-
* [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
|
192
|
-
* Add support for new resource `CustomerSession`
|
193
|
-
* Add support for `create` method on resource `CustomerSession`
|
194
|
-
* [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
|
195
|
-
* [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
|
196
|
-
|
197
|
-
## 8.6.0-beta.5 - 2023-06-01
|
198
|
-
* [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
|
199
|
-
* [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
|
200
|
-
* [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
|
201
|
-
* [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
|
202
|
-
|
203
|
-
## 8.6.0-beta.4 - 2023-05-19
|
204
|
-
* [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
|
205
|
-
* Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
|
206
|
-
* [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
|
207
|
-
* [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
|
208
|
-
* [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
|
209
|
-
|
210
|
-
## 8.6.0-beta.3 - 2023-04-17
|
211
|
-
* [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
|
212
|
-
* [#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
|
213
|
-
|
214
|
-
## 8.6.0-beta.2 - 2023-04-13
|
215
|
-
* [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
|
216
|
-
* Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
|
217
|
-
* [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
|
218
|
-
|
219
|
-
## 8.6.0-beta.1 - 2023-03-30
|
220
|
-
* [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
|
221
116
|
|
222
117
|
## 8.5.0 - 2023-03-30
|
223
118
|
* [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
|
@@ -225,11 +120,6 @@
|
|
225
120
|
* 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.
|
226
121
|
* [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
|
227
122
|
|
228
|
-
## 8.5.0-beta.1 - 2023-03-23
|
229
|
-
* [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
|
230
|
-
* Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
|
231
|
-
* Add support for `collect_inputs` method on resource `Terminal.Reader`
|
232
|
-
|
233
123
|
## 8.4.0 - 2023-03-23
|
234
124
|
* [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
|
235
125
|
* Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
|
@@ -237,91 +127,18 @@
|
|
237
127
|
* Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
|
238
128
|
* [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
|
239
129
|
|
240
|
-
## 8.4.0-beta.4 - 2023-03-16
|
241
|
-
* [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
|
242
|
-
* Add support for `create_from_calculation` method on resource `Tax.Transaction`
|
243
|
-
* [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
|
244
|
-
* Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
|
245
|
-
* Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
|
246
|
-
* Remove support for `retrieve` method on resource `FinancingSummary`
|
247
|
-
* [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
|
248
|
-
|
249
|
-
## 8.4.0-beta.3 - 2023-03-09
|
250
|
-
* [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
|
251
|
-
* Updated stable APIs to the latest version
|
252
|
-
* Remove support for `list_transactions` method on resource `Tax.Transaction`
|
253
|
-
|
254
|
-
## 8.4.0-beta.2 - 2023-03-03
|
255
|
-
* [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
|
256
|
-
* Updated stable APIs to the latest version
|
257
|
-
* Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
|
258
|
-
* Add support for `list` and `retrieve` methods on resource `CardBundle`
|
259
|
-
* Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
|
260
|
-
|
261
|
-
## 8.4.0-beta.1 - 2023-02-23
|
262
|
-
* [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
|
263
|
-
* Updated stable APIs to the latest version
|
264
|
-
|
265
130
|
## 8.3.0 - 2023-02-16
|
266
131
|
* [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
|
267
132
|
* Add support for `refund_payment` method on resource `Terminal.Reader`
|
268
133
|
|
269
|
-
## 8.3.0-beta.1 - 2023-02-02
|
270
|
-
* [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
|
271
|
-
* Updated stable APIs to the latest version
|
272
|
-
* Add support for new resource `FinancialConnections.Transaction`
|
273
|
-
* Add support for `list` method on resource `Transaction`
|
274
|
-
|
275
134
|
## 8.2.0 - 2023-02-02
|
276
135
|
* [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
|
277
136
|
* Add support for `resume` method on resource `Subscription`
|
278
137
|
* [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
|
279
138
|
|
280
|
-
## 8.2.0-beta.3 - 2023-01-26
|
281
|
-
* [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
|
282
|
-
* Updated stable APIs to the latest version
|
283
|
-
* Add support for `list_transactions` method on resource `Tax.Transaction`
|
284
|
-
|
285
|
-
## 8.2.0-beta.2 - 2023-01-19
|
286
|
-
* [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
|
287
|
-
* Updated stable APIs to the latest version
|
288
|
-
* Add support for `Tax.Settings` resource.
|
289
|
-
|
290
|
-
## 8.2.0-beta.1 - 2023-01-12
|
291
|
-
* [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
|
292
|
-
* Updated stable APIs to the latest version
|
293
|
-
* Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
|
294
|
-
* Add support for `Tax::Register` resource
|
295
|
-
|
296
139
|
## 8.1.0 - 2023-01-12
|
297
140
|
* [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
|
298
141
|
|
299
|
-
## 8.1.0-beta.4 - 2023-01-05
|
300
|
-
* [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
|
301
|
-
* Updated stable APIs to the latest version
|
302
|
-
* Add support for `mark_stale_quote` method on resource `Quote`
|
303
|
-
|
304
|
-
## 8.1.0-beta.3 - 2022-12-22
|
305
|
-
* [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
|
306
|
-
* Updated stable APIs to the latest version
|
307
|
-
* Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
|
308
|
-
|
309
|
-
## 8.1.0-beta.2 - 2022-12-15
|
310
|
-
* [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
|
311
|
-
* Updated stable APIs to the latest version
|
312
|
-
* Add support for new resources `TaxCalculation`, and `TaxTransaction`
|
313
|
-
* Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
|
314
|
-
* Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
|
315
|
-
* [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
|
316
|
-
* Updated stable APIs to the latest version
|
317
|
-
* Add support for new resource `QuoteLine`.
|
318
|
-
|
319
|
-
## 8.1.0-beta.1 - 2022-12-08
|
320
|
-
* [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
|
321
|
-
* Updated stable APIs to the latest version
|
322
|
-
* [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
|
323
|
-
* Updated stable APIs to the latest version
|
324
|
-
|
325
142
|
## 8.0.0 - 2022-11-16
|
326
143
|
* [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
|
327
144
|
|
@@ -329,29 +146,30 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
329
146
|
|
330
147
|
"⚠️" symbol highlights breaking changes.
|
331
148
|
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
149
|
+
### Deprecated
|
150
|
+
- The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
|
151
|
+
``` ruby
|
152
|
+
# before
|
153
|
+
refund = Stripe::Refund.retrieve("re_123")
|
154
|
+
refund.description = "Refund description"
|
155
|
+
refund.save
|
156
|
+
|
157
|
+
# after
|
158
|
+
Stripe::Refund.update("re_123", description: "Refund description")
|
159
|
+
```
|
340
160
|
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
161
|
+
### ⚠️ Removed
|
162
|
+
- Removed deprecated `Sku` resource.
|
163
|
+
- Removed deprecated `Orders` resource.
|
164
|
+
- Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
|
165
|
+
```ruby
|
166
|
+
# before
|
167
|
+
Stripe::Subscription::delete("sub_12345")
|
345
168
|
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
* Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
|
169
|
+
# after
|
170
|
+
Stripe::Subscription::cancel("sub_12345")
|
171
|
+
```
|
350
172
|
|
351
|
-
## 7.2.0-beta.1 - 2022-08-23
|
352
|
-
* [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
|
353
|
-
- Updated stable APIs to the latest version
|
354
|
-
- `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)
|
355
173
|
|
356
174
|
## 7.1.0 - 2022-08-19
|
357
175
|
* [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
|
@@ -360,16 +178,6 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
360
178
|
* [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
|
361
179
|
* [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
|
362
180
|
|
363
|
-
## 7.1.0-beta.2 - 2022-08-11
|
364
|
-
* [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
|
365
|
-
- Updated stable APIs to the latest version
|
366
|
-
- Add `refund_payment` method to Terminal resource
|
367
|
-
|
368
|
-
## 7.1.0-beta.1 - 2022-08-03
|
369
|
-
* [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
|
370
|
-
- Updated stable APIs to the latest version
|
371
|
-
- Added the `Order` resource support
|
372
|
-
|
373
181
|
## 7.0.0 - 2022-08-02
|
374
182
|
|
375
183
|
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.
|
@@ -381,19 +189,21 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
381
189
|
* [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
|
382
190
|
* [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
|
383
191
|
|
384
|
-
|
385
|
-
*
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
*
|
395
|
-
|
396
|
-
*
|
192
|
+
### ⚠️ Changed
|
193
|
+
* `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.
|
194
|
+
* Update default bundle of CA certificates to April 26, 2022.
|
195
|
+
|
196
|
+
### Deprecated
|
197
|
+
* Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
|
198
|
+
|
199
|
+
### ⚠️ Removed
|
200
|
+
* Remove `details` method from `Issuing.Card` resource. The method was not supported.
|
201
|
+
* Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
|
202
|
+
* Remove `create` method from `ReportType` resource. The method was not supported.
|
203
|
+
* Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
|
204
|
+
* Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
|
205
|
+
* Remove ability to list `Card` resource for a `Recipient`.
|
206
|
+
* Remove `cancel` method from `Transfer` resource. The method was deprecated.
|
397
207
|
|
398
208
|
## 6.5.0 - 2022-06-29
|
399
209
|
* [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
|
@@ -423,6 +233,8 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
423
233
|
* 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`
|
424
234
|
* Add support for `retrieve_payment_method` method on resource `Customer`
|
425
235
|
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
|
236
|
+
|
237
|
+
|
426
238
|
|
427
239
|
## 6.0.0 - 2022-05-09
|
428
240
|
* [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
|
@@ -438,6 +250,7 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
438
250
|
## 5.55.0 - 2022-05-05
|
439
251
|
* [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
|
440
252
|
* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
|
253
|
+
|
441
254
|
|
442
255
|
## 5.54.0 - 2022-05-03
|
443
256
|
* [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
|
@@ -1468,4 +1281,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
|
|
1468
1281
|
<!--
|
1469
1282
|
# vim: set tw=0:
|
1470
1283
|
-->
|
1471
|
-
|
data/Gemfile
CHANGED
@@ -23,10 +23,13 @@ group :development do
|
|
23
23
|
# `Gemfile.lock` checked in, so to prevent good builds from suddenly going
|
24
24
|
# bad, pin to a specific version number here. Try to keep this relatively
|
25
25
|
# up-to-date, but it's not the end of the world if it's not.
|
26
|
-
|
26
|
+
#
|
27
|
+
# The latest version of rubocop is only compatible with Ruby 2.7+
|
28
|
+
gem "rubocop", "1.57.2" if RUBY_VERSION >= "2.7"
|
27
29
|
|
28
30
|
# jaro_winkler 1.5.5 installation fails for jruby
|
29
|
-
|
31
|
+
# don't install on truffleruby
|
32
|
+
gem "jaro_winkler", "1.5.4" unless RUBY_ENGINE == "truffleruby"
|
30
33
|
|
31
34
|
platforms :mri do
|
32
35
|
gem "byebug"
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v682
|
data/README.md
CHANGED
@@ -323,17 +323,6 @@ If your beta feature requires a `Stripe-Version` header to be sent, use the `Str
|
|
323
323
|
Stripe.api_version += "; feature_beta=v3"
|
324
324
|
```
|
325
325
|
|
326
|
-
### Custom requests
|
327
|
-
|
328
|
-
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`.
|
329
|
-
|
330
|
-
```ruby
|
331
|
-
resp = Stripe.raw_request(:post, "/v1/beta_endpoint", {param: 123}, {stripe_version: "2022-11-15; feature_beta=v3"})
|
332
|
-
|
333
|
-
# (Optional) resp is a StripeResponse. You can use `Stripe.deserialize` to get a StripeObject.
|
334
|
-
deserialized_resp = Stripe.deserialize(resp.http_body)
|
335
|
-
```
|
336
|
-
|
337
326
|
## Support
|
338
327
|
|
339
328
|
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/Rakefile
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "rake/testtask"
|
4
|
-
require "rubocop/rake_task"
|
5
4
|
|
6
5
|
task default: %i[test rubocop]
|
7
6
|
|
@@ -9,7 +8,10 @@ Rake::TestTask.new do |t|
|
|
9
8
|
t.pattern = "./test/**/*_test.rb"
|
10
9
|
end
|
11
10
|
|
12
|
-
|
11
|
+
if RUBY_VERSION >= "2.7.0"
|
12
|
+
require "rubocop/rake_task"
|
13
|
+
RuboCop::RakeTask.new
|
14
|
+
end
|
13
15
|
|
14
16
|
desc "Update bundled certs"
|
15
17
|
task :update_certs do
|
@@ -17,7 +19,7 @@ task :update_certs do
|
|
17
19
|
require "uri"
|
18
20
|
|
19
21
|
fetch_file "https://curl.haxx.se/ca/cacert.pem",
|
20
|
-
|
22
|
+
File.expand_path("lib/data/ca-certificates.crt", __dir__)
|
21
23
|
end
|
22
24
|
|
23
25
|
#
|
@@ -25,11 +27,11 @@ end
|
|
25
27
|
#
|
26
28
|
|
27
29
|
def fetch_file(uri, dest)
|
28
|
-
|
30
|
+
File.open(dest, "w") do |file|
|
29
31
|
resp = Net::HTTP.get_response(URI.parse(uri))
|
30
32
|
unless resp.code.to_i == 200
|
31
33
|
abort("bad response when fetching: #{uri}\n" \
|
32
|
-
|
34
|
+
"Status #{resp.code}: #{resp.body}")
|
33
35
|
end
|
34
36
|
file.write(resp.body)
|
35
37
|
puts "Successfully fetched: #{uri}"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.2.0
|
1
|
+
10.2.0
|
data/bin/stripe-console
CHANGED
@@ -47,7 +47,6 @@ module Stripe
|
|
47
47
|
api_key = headers.delete(:api_key)
|
48
48
|
api_base = headers.delete(:api_base)
|
49
49
|
client = headers.delete(:client)
|
50
|
-
api_mode = headers.delete(:api_mode)
|
51
50
|
# Assume all remaining opts must be headers
|
52
51
|
|
53
52
|
resp, opts[:api_key] = client.send(
|
@@ -55,7 +54,6 @@ module Stripe
|
|
55
54
|
method, url,
|
56
55
|
api_base: api_base, api_key: api_key,
|
57
56
|
headers: headers, params: params,
|
58
|
-
api_mode: api_mode,
|
59
57
|
&read_body_chunk_block
|
60
58
|
)
|
61
59
|
|
@@ -89,7 +87,7 @@ module Stripe
|
|
89
87
|
|
90
88
|
raise ArgumentError,
|
91
89
|
"request option '#{opt}' should be a string value " \
|
92
|
-
|
90
|
+
"(was a #{val.class})"
|
93
91
|
end
|
94
92
|
end
|
95
93
|
|
@@ -98,14 +96,12 @@ module Stripe
|
|
98
96
|
|
99
97
|
raise ArgumentError,
|
100
98
|
"request params should be either a Hash or nil " \
|
101
|
-
|
99
|
+
"(was a #{params.class})"
|
102
100
|
end
|
103
101
|
|
104
102
|
private def warn_on_opts_in_params(params)
|
105
103
|
Util::OPTS_USER_SPECIFIED.each do |opt|
|
106
|
-
if params.key?(opt)
|
107
|
-
warn("WARNING: '#{opt}' should be in opts instead of params.")
|
108
|
-
end
|
104
|
+
warn("WARNING: '#{opt}' should be in opts instead of params.") if params.key?(opt)
|
109
105
|
end
|
110
106
|
end
|
111
107
|
end
|
@@ -19,9 +19,7 @@ module Stripe
|
|
19
19
|
# {APIOperations::Request.execute_resource_request}.
|
20
20
|
def update(id, params = {}, opts = {})
|
21
21
|
params.each_key do |k|
|
22
|
-
if protected_fields.include?(k)
|
23
|
-
raise ArgumentError, "Cannot update protected field: #{k}"
|
24
|
-
end
|
22
|
+
raise ArgumentError, "Cannot update protected field: #{k}" if protected_fields.include?(k)
|
25
23
|
end
|
26
24
|
|
27
25
|
request_stripe_object(
|
@@ -64,7 +62,7 @@ module Stripe
|
|
64
62
|
|
65
63
|
values = serialize_params(self).merge(params)
|
66
64
|
|
67
|
-
# note that id gets removed here our call to #url above has already
|
65
|
+
# Please note that id gets removed here our call to #url above has already
|
68
66
|
# generated a uri for this object with an identifier baked in
|
69
67
|
values.delete(:id)
|
70
68
|
|
@@ -72,9 +70,9 @@ module Stripe
|
|
72
70
|
initialize_from(resp.data, opts)
|
73
71
|
end
|
74
72
|
extend Gem::Deprecate
|
75
|
-
deprecate :save, "the `update` class method (for examples"\
|
76
|
-
|
77
|
-
|
73
|
+
deprecate :save, "the `update` class method (for examples " \
|
74
|
+
"see https://github.com/stripe/stripe-ruby" \
|
75
|
+
"/wiki/Migration-guide-for-v8)", 2022, 11
|
78
76
|
|
79
77
|
def self.included(base)
|
80
78
|
# Set `metadata` as additive so that when it's set directly we remember
|
@@ -31,8 +31,8 @@ module Stripe
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.resource_url
|
34
|
-
"/v1/test_helpers/"\
|
35
|
-
|
34
|
+
"/v1/test_helpers/" \
|
35
|
+
"#{self::RESOURCE_CLASS::OBJECT_NAME.downcase.tr('.', '/')}s"
|
36
36
|
end
|
37
37
|
|
38
38
|
def resource_url
|
data/lib/stripe/api_version.rb
CHANGED
@@ -157,9 +157,7 @@ module Stripe
|
|
157
157
|
|
158
158
|
connection.open_timeout = config.open_timeout
|
159
159
|
connection.read_timeout = config.read_timeout
|
160
|
-
if connection.respond_to?(:write_timeout=)
|
161
|
-
connection.write_timeout = config.write_timeout
|
162
|
-
end
|
160
|
+
connection.write_timeout = config.write_timeout if connection.respond_to?(:write_timeout=)
|
163
161
|
|
164
162
|
connection.use_ssl = uri.scheme == "https"
|
165
163
|
|
@@ -192,9 +190,9 @@ module Stripe
|
|
192
190
|
|
193
191
|
@verify_ssl_warned = true
|
194
192
|
warn("WARNING: Running without SSL cert verification. " \
|
195
|
-
|
196
|
-
|
197
|
-
|
193
|
+
"You should never do this in production. " \
|
194
|
+
"Execute `Stripe.verify_ssl_certs = true` to enable " \
|
195
|
+
"verification.")
|
198
196
|
end
|
199
197
|
end
|
200
198
|
end
|