stripe 8.6.0.pre.beta.5 → 8.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +61 -143
  3. data/OPENAPI_VERSION +1 -1
  4. data/README.md +1 -12
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_operations/request.rb +0 -2
  7. data/lib/stripe/api_version.rb +0 -1
  8. data/lib/stripe/object_types.rb +0 -13
  9. data/lib/stripe/resources/financial_connections/account.rb +0 -39
  10. data/lib/stripe/resources/financial_connections/account_owner.rb +1 -0
  11. data/lib/stripe/resources/invoice.rb +1 -1
  12. data/lib/stripe/resources/login_link.rb +1 -0
  13. data/lib/stripe/resources/quote.rb +0 -131
  14. data/lib/stripe/resources/reversal.rb +2 -2
  15. data/lib/stripe/resources/subscription_schedule.rb +0 -18
  16. data/lib/stripe/resources/terminal/reader.rb +0 -54
  17. data/lib/stripe/resources/transfer.rb +1 -1
  18. data/lib/stripe/resources.rb +0 -13
  19. data/lib/stripe/stripe_client.rb +26 -60
  20. data/lib/stripe/stripe_configuration.rb +4 -4
  21. data/lib/stripe/util.rb +1 -8
  22. data/lib/stripe/version.rb +1 -1
  23. data/lib/stripe.rb +0 -47
  24. metadata +4 -18
  25. data/lib/stripe/request_signing_authenticator.rb +0 -83
  26. data/lib/stripe/resources/account_session.rb +0 -17
  27. data/lib/stripe/resources/capital/financing_offer.rb +0 -32
  28. data/lib/stripe/resources/capital/financing_summary.rb +0 -12
  29. data/lib/stripe/resources/capital/financing_transaction.rb +0 -13
  30. data/lib/stripe/resources/financial_connections/inferred_balance.rb +0 -13
  31. data/lib/stripe/resources/financial_connections/transaction.rb +0 -13
  32. data/lib/stripe/resources/gift_cards/card.rb +0 -25
  33. data/lib/stripe/resources/gift_cards/transaction.rb +0 -56
  34. data/lib/stripe/resources/issuing/card_bundle.rb +0 -13
  35. data/lib/stripe/resources/issuing/card_design.rb +0 -58
  36. data/lib/stripe/resources/order.rb +0 -89
  37. data/lib/stripe/resources/quote_phase.rb +0 -29
  38. data/lib/stripe/resources/tax/registration.rb +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bbe5f8429142f8ca731c92b88cdb7ce4c13ac0dc47f736b479c4e12ea73ce53
4
- data.tar.gz: 3fecbead2127d4a54204e04107edf6b9131cce54c94bbc7c550318127354cc03
3
+ metadata.gz: dfcf23587dbf38e28cab0b74cbb9419e67356cec27138393a6112e41ebad55b5
4
+ data.tar.gz: 7b8859429ac9fcadca1af8d6085f0cae63fb33dc95755c66bac128cf592efe38
5
5
  SHA512:
6
- metadata.gz: f386d2f8fbce74b1ea1e898ae28a983689af6ddd87a9ac98b4f60b98866780192d35a89abf80cfbb01630b0dd6ba378486c59b97ab6cb3b9065c347702917260
7
- data.tar.gz: 0cf9d291677ec2fd7186c47c408de3436cca0c3dcd9396d4b388cbdb5cc0b4f9ec6fb992fd99b35cf159f70a5f79de94f1a01cc1f065bca79de9212edf7abf3a
6
+ metadata.gz: 50336f3cc9ce1acf8bf863057aae31293f27f6e2ed45abb0b1be75ddb48082f963eaf3ba9fa0fb8226244fc82d7ed94daef9c9740ed1e724281c4ddecb3f6dda
7
+ data.tar.gz: 5cd44c495b8c3eeba5d3db29f187c1d145684e3074324f38373b4ce87428c5ece7fe219250730c7c46846b54fe367c17409f37e7e7a08d8feb3677c38147aec9
data/CHANGELOG.md CHANGED
@@ -1,44 +1,40 @@
1
1
  # Changelog
2
2
 
3
- ## 8.6.0-beta.5 - 2023-06-01
4
- * [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
5
- * [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
6
- * [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
7
- * [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
3
+ ## 8.6.0 - 2023-07-13
4
+ * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
5
+ * Add support for new resource `Tax.Settings`
6
+ * Add support for `retrieve` and `update` methods on resource `Settings`
7
+ * [#1241](https://github.com/stripe/stripe-ruby/pull/1241) Update generated code
8
8
 
9
- ## 8.6.0-beta.4 - 2023-05-19
10
- * [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
11
- * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
12
- * [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
13
- * [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
14
- * [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
9
+ * [#1209](https://github.com/stripe/stripe-ruby/pull/1209) Update shoulda-context version
10
+ * [#1235](https://github.com/stripe/stripe-ruby/pull/1235) Allow "error" string as log level
11
+ * [#1238](https://github.com/stripe/stripe-ruby/pull/1238) Update log level error message to include `error`
12
+ * [#1231](https://github.com/stripe/stripe-ruby/pull/1231) fix: variable typo in README for instrumentation
13
+ * [#1234](https://github.com/stripe/stripe-ruby/pull/1234) Update generated code
15
14
 
15
+ * [#1230](https://github.com/stripe/stripe-ruby/pull/1230) Update generated code
16
+ * Release specs are identical.
17
+ * [#1226](https://github.com/stripe/stripe-ruby/pull/1226) Update generated code
16
18
 
17
- ## 8.6.0-beta.3 - 2023-04-17
18
- * [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
19
- * [#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
19
+ * [#1223](https://github.com/stripe/stripe-ruby/pull/1223) Update generated code
20
20
 
21
- ## 8.6.0-beta.2 - 2023-04-13
22
- * [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
23
- * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
24
- * [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
21
+ * [#1225](https://github.com/stripe/stripe-ruby/pull/1225) Downgrade jaro_winkler
22
+ * [#1219](https://github.com/stripe/stripe-ruby/pull/1219) Update generated code
23
+
24
+ Documentation updates.
25
+ * [#1215](https://github.com/stripe/stripe-ruby/pull/1215) Update generated code
25
26
 
27
+ * [#1208](https://github.com/stripe/stripe-ruby/pull/1208) Update generated code
26
28
 
27
- ## 8.6.0-beta.1 - 2023-03-30
28
- * [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
29
+ * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
29
30
 
30
31
 
31
32
  ## 8.5.0 - 2023-03-30
32
33
  * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
33
- * Remove support for `create` method on resource `Tax.Transaction`
34
+ * Remove support for `create` method on resource `Tax.Transaction`
34
35
  * 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.
35
36
  * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
36
37
 
37
- ## 8.5.0-beta.1 - 2023-03-23
38
- * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
39
- * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
40
- * Add support for `collect_inputs` method on resource `Terminal.Reader`
41
-
42
38
  ## 8.4.0 - 2023-03-23
43
39
  * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
44
40
  * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
@@ -46,91 +42,18 @@
46
42
  * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
47
43
  * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
48
44
 
49
- ## 8.4.0-beta.4 - 2023-03-16
50
- * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
51
- * Add support for `create_from_calculation` method on resource `Tax.Transaction`
52
- * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
53
- * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
54
- * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
55
- * Remove support for `retrieve` method on resource `FinancingSummary`
56
- * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
57
-
58
- ## 8.4.0-beta.3 - 2023-03-09
59
- * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
60
- * Updated stable APIs to the latest version
61
- * Remove support for `list_transactions` method on resource `Tax.Transaction`
62
-
63
- ## 8.4.0-beta.2 - 2023-03-03
64
- * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
65
- * Updated stable APIs to the latest version
66
- * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
67
- * Add support for `list` and `retrieve` methods on resource `CardBundle`
68
- * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
69
-
70
- ## 8.4.0-beta.1 - 2023-02-23
71
- * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
72
- * Updated stable APIs to the latest version
73
-
74
45
  ## 8.3.0 - 2023-02-16
75
46
  * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
76
47
  * Add support for `refund_payment` method on resource `Terminal.Reader`
77
48
 
78
- ## 8.3.0-beta.1 - 2023-02-02
79
- * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
80
- * Updated stable APIs to the latest version
81
- * Add support for new resource `FinancialConnections.Transaction`
82
- * Add support for `list` method on resource `Transaction`
83
-
84
49
  ## 8.2.0 - 2023-02-02
85
50
  * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
86
51
  * Add support for `resume` method on resource `Subscription`
87
52
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
88
53
 
89
- ## 8.2.0-beta.3 - 2023-01-26
90
- * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
91
- * Updated stable APIs to the latest version
92
- * Add support for `list_transactions` method on resource `Tax.Transaction`
93
-
94
- ## 8.2.0-beta.2 - 2023-01-19
95
- * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
96
- * Updated stable APIs to the latest version
97
- * Add support for `Tax.Settings` resource.
98
-
99
- ## 8.2.0-beta.1 - 2023-01-12
100
- * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
101
- * Updated stable APIs to the latest version
102
- * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
103
- * Add support for `Tax::Register` resource
104
-
105
54
  ## 8.1.0 - 2023-01-12
106
55
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
107
56
 
108
- ## 8.1.0-beta.4 - 2023-01-05
109
- * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
110
- * Updated stable APIs to the latest version
111
- * Add support for `mark_stale_quote` method on resource `Quote`
112
-
113
- ## 8.1.0-beta.3 - 2022-12-22
114
- * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
115
- * Updated stable APIs to the latest version
116
- * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
117
-
118
- ## 8.1.0-beta.2 - 2022-12-15
119
- * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
120
- * Updated stable APIs to the latest version
121
- * Add support for new resources `TaxCalculation`, and `TaxTransaction`
122
- * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
123
- * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
124
- * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
125
- * Updated stable APIs to the latest version
126
- * Add support for new resource `QuoteLine`.
127
-
128
- ## 8.1.0-beta.1 - 2022-12-08
129
- * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
130
- * Updated stable APIs to the latest version
131
- * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
132
- * Updated stable APIs to the latest version
133
-
134
57
  ## 8.0.0 - 2022-11-16
135
58
  * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
136
59
 
@@ -138,29 +61,30 @@ Breaking changes that arose during code generation of the library that we postpo
138
61
 
139
62
  "⚠️" symbol highlights breaking changes.
140
63
 
141
- ## 7.2.0-beta.5 - 2022-11-02
142
- * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
143
- * Updated beta APIs to the latest stable version
144
- * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
145
- * Updated stable APIs to the latest version
146
-
147
- ## 7.2.0-beta.4 - 2022-10-07
148
- * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
64
+ ### Deprecated
65
+ - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
66
+ ``` ruby
67
+ # before
68
+ refund = Stripe::Refund.retrieve("re_123")
69
+ refund.description = "Refund description"
70
+ refund.save
71
+
72
+ # after
73
+ Stripe::Refund.update("re_123", description: "Refund description")
74
+ ```
149
75
 
150
- ## 7.2.0-beta.3 - 2022-09-26
151
- * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
152
- * Updated stable APIs to the latest version
153
- * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
76
+ ### ⚠️ Removed
77
+ - Removed deprecated `Sku` resource.
78
+ - Removed deprecated `Orders` resource.
79
+ - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
80
+ ```ruby
81
+ # before
82
+ Stripe::Subscription::delete("sub_12345")
154
83
 
155
- ## 7.2.0-beta.2 - 2022-08-26
156
- * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
157
- * Updated stable APIs to the latest version
158
- * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
84
+ # after
85
+ Stripe::Subscription::cancel("sub_12345")
86
+ ```
159
87
 
160
- ## 7.2.0-beta.1 - 2022-08-23
161
- * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
162
- - Updated stable APIs to the latest version
163
- - `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)
164
88
 
165
89
  ## 7.1.0 - 2022-08-19
166
90
  * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@@ -169,16 +93,6 @@ Breaking changes that arose during code generation of the library that we postpo
169
93
  * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
170
94
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
171
95
 
172
- ## 7.1.0-beta.2 - 2022-08-11
173
- * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
174
- - Updated stable APIs to the latest version
175
- - Add `refund_payment` method to Terminal resource
176
-
177
- ## 7.1.0-beta.1 - 2022-08-03
178
- * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
179
- - Updated stable APIs to the latest version
180
- - Added the `Order` resource support
181
-
182
96
  ## 7.0.0 - 2022-08-02
183
97
 
184
98
  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.
@@ -190,19 +104,21 @@ Breaking changes that arose during code generation of the library that we postpo
190
104
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
191
105
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
192
106
 
193
- ## 6.6.0-beta.1 - 2022-07-22
194
- * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
195
- - Updated stable APIs to the latest version
196
- - Add `QuotePhase` resource
197
- * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
198
- - Updated stable APIs to the latest version
199
- - Add `SubscriptionSchedule.amend` method.
200
- * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
201
- - Include `server_side_confirmation_beta=v1` beta
202
- - Add `secretKeyConfirmation` to `PaymentIntent`
203
- * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
204
- - Updated stable APIs to the latest version
205
- * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
107
+ ### ⚠️ Changed
108
+ * `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.
109
+ * Update default bundle of CA certificates to April 26, 2022.
110
+
111
+ ### Deprecated
112
+ * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
113
+
114
+ ### ⚠️ Removed
115
+ * Remove `details` method from `Issuing.Card` resource. The method was not supported.
116
+ * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
117
+ * Remove `create` method from `ReportType` resource. The method was not supported.
118
+ * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
119
+ * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
120
+ * Remove ability to list `Card` resource for a `Recipient`.
121
+ * Remove `cancel` method from `Transfer` resource. The method was deprecated.
206
122
 
207
123
  ## 6.5.0 - 2022-06-29
208
124
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -232,6 +148,8 @@ Breaking changes that arose during code generation of the library that we postpo
232
148
  * 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`
233
149
  * Add support for `retrieve_payment_method` method on resource `Customer`
234
150
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
151
+
152
+
235
153
 
236
154
  ## 6.0.0 - 2022-05-09
237
155
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -247,6 +165,7 @@ Breaking changes that arose during code generation of the library that we postpo
247
165
  ## 5.55.0 - 2022-05-05
248
166
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
249
167
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
168
+
250
169
 
251
170
  ## 5.54.0 - 2022-05-03
252
171
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1277,4 +1196,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1277
1196
  <!--
1278
1197
  # vim: set tw=0:
1279
1198
  -->
1280
-
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v361
1
+ v413
data/README.md CHANGED
@@ -266,7 +266,7 @@ For example:
266
266
  ```ruby
267
267
  Stripe::Instrumentation.subscribe(:request_end) do |request_event|
268
268
  # Filter out high-cardinality ids from `path`
269
- path_parts = event.path.split("/").drop(2)
269
+ path_parts = request_event.path.split("/").drop(2)
270
270
  resource = path_parts.map { |part| part.match?(/\A[a-z_]+\z/) ? part : ":id" }.join("/")
271
271
 
272
272
  tags = {
@@ -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/VERSION CHANGED
@@ -1 +1 @@
1
- 8.6.0-beta.5
1
+ 8.6.0
@@ -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
 
@@ -4,6 +4,5 @@
4
4
  module Stripe
5
5
  module ApiVersion
6
6
  CURRENT = "2022-11-15"
7
- PREVIEW = "2023-05-26.preview-v2"
8
7
  end
9
8
  end
@@ -14,7 +14,6 @@ module Stripe
14
14
  # business objects
15
15
  Account::OBJECT_NAME => Account,
16
16
  AccountLink::OBJECT_NAME => AccountLink,
17
- AccountSession::OBJECT_NAME => AccountSession,
18
17
  ApplePayDomain::OBJECT_NAME => ApplePayDomain,
19
18
  ApplicationFee::OBJECT_NAME => ApplicationFee,
20
19
  ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund,
@@ -25,9 +24,6 @@ module Stripe
25
24
  BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration,
26
25
  BillingPortal::Session::OBJECT_NAME => BillingPortal::Session,
27
26
  Capability::OBJECT_NAME => Capability,
28
- Capital::FinancingOffer::OBJECT_NAME => Capital::FinancingOffer,
29
- Capital::FinancingSummary::OBJECT_NAME => Capital::FinancingSummary,
30
- Capital::FinancingTransaction::OBJECT_NAME => Capital::FinancingTransaction,
31
27
  Card::OBJECT_NAME => Card,
32
28
  CashBalance::OBJECT_NAME => CashBalance,
33
29
  Charge::OBJECT_NAME => Charge,
@@ -51,12 +47,8 @@ module Stripe
51
47
  FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
52
48
  FinancialConnections::AccountOwnership::OBJECT_NAME =>
53
49
  FinancialConnections::AccountOwnership,
54
- FinancialConnections::InferredBalance::OBJECT_NAME => FinancialConnections::InferredBalance,
55
50
  FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
56
- FinancialConnections::Transaction::OBJECT_NAME => FinancialConnections::Transaction,
57
51
  FundingInstructions::OBJECT_NAME => FundingInstructions,
58
- GiftCards::Card::OBJECT_NAME => GiftCards::Card,
59
- GiftCards::Transaction::OBJECT_NAME => GiftCards::Transaction,
60
52
  Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
61
53
  Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
62
54
  Invoice::OBJECT_NAME => Invoice,
@@ -64,15 +56,12 @@ module Stripe
64
56
  InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
65
57
  Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
66
58
  Issuing::Card::OBJECT_NAME => Issuing::Card,
67
- Issuing::CardBundle::OBJECT_NAME => Issuing::CardBundle,
68
- Issuing::CardDesign::OBJECT_NAME => Issuing::CardDesign,
69
59
  Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
70
60
  Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
71
61
  Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
72
62
  LineItem::OBJECT_NAME => LineItem,
73
63
  LoginLink::OBJECT_NAME => LoginLink,
74
64
  Mandate::OBJECT_NAME => Mandate,
75
- Order::OBJECT_NAME => Order,
76
65
  PaymentIntent::OBJECT_NAME => PaymentIntent,
77
66
  PaymentLink::OBJECT_NAME => PaymentLink,
78
67
  PaymentMethod::OBJECT_NAME => PaymentMethod,
@@ -83,7 +72,6 @@ module Stripe
83
72
  Product::OBJECT_NAME => Product,
84
73
  PromotionCode::OBJECT_NAME => PromotionCode,
85
74
  Quote::OBJECT_NAME => Quote,
86
- QuotePhase::OBJECT_NAME => QuotePhase,
87
75
  Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
88
76
  Radar::ValueList::OBJECT_NAME => Radar::ValueList,
89
77
  Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@@ -102,7 +90,6 @@ module Stripe
102
90
  SubscriptionItem::OBJECT_NAME => SubscriptionItem,
103
91
  SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
104
92
  Tax::Calculation::OBJECT_NAME => Tax::Calculation,
105
- Tax::Registration::OBJECT_NAME => Tax::Registration,
106
93
  Tax::Settings::OBJECT_NAME => Tax::Settings,
107
94
  Tax::Transaction::OBJECT_NAME => Tax::Transaction,
108
95
  TaxCode::OBJECT_NAME => TaxCode,
@@ -6,12 +6,9 @@ module Stripe
6
6
  # A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access.
7
7
  class Account < APIResource
8
8
  extend Stripe::APIOperations::List
9
- extend Stripe::APIOperations::NestedResource
10
9
 
11
10
  OBJECT_NAME = "financial_connections.account"
12
11
 
13
- nested_resource_class_methods :inferred_balance, operations: %i[list]
14
-
15
12
  def disconnect(params = {}, opts = {})
16
13
  request_stripe_object(
17
14
  method: :post,
@@ -39,24 +36,6 @@ module Stripe
39
36
  )
40
37
  end
41
38
 
42
- def subscribe(params = {}, opts = {})
43
- request_stripe_object(
44
- method: :post,
45
- path: format("/v1/financial_connections/accounts/%<account>s/subscribe", { account: CGI.escape(self["id"]) }),
46
- params: params,
47
- opts: opts
48
- )
49
- end
50
-
51
- def unsubscribe(params = {}, opts = {})
52
- request_stripe_object(
53
- method: :post,
54
- path: format("/v1/financial_connections/accounts/%<account>s/unsubscribe", { account: CGI.escape(self["id"]) }),
55
- params: params,
56
- opts: opts
57
- )
58
- end
59
-
60
39
  def self.disconnect(account, params = {}, opts = {})
61
40
  request_stripe_object(
62
41
  method: :post,
@@ -83,24 +62,6 @@ module Stripe
83
62
  opts: opts
84
63
  )
85
64
  end
86
-
87
- def self.subscribe(account, params = {}, opts = {})
88
- request_stripe_object(
89
- method: :post,
90
- path: format("/v1/financial_connections/accounts/%<account>s/subscribe", { account: CGI.escape(account) }),
91
- params: params,
92
- opts: opts
93
- )
94
- end
95
-
96
- def self.unsubscribe(account, params = {}, opts = {})
97
- request_stripe_object(
98
- method: :post,
99
- path: format("/v1/financial_connections/accounts/%<account>s/unsubscribe", { account: CGI.escape(account) }),
100
- params: params,
101
- opts: opts
102
- )
103
- end
104
65
  end
105
66
  end
106
67
  end
@@ -3,6 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module FinancialConnections
6
+ # Describes an owner of an account.
6
7
  class AccountOwner < StripeObject
7
8
  OBJECT_NAME = "financial_connections.account_owner"
8
9
  end
@@ -11,7 +11,7 @@ module Stripe
11
11
  # If your invoice is configured to be billed through automatic charges,
12
12
  # Stripe automatically finalizes your invoice and attempts payment. Note
13
13
  # that finalizing the invoice,
14
- # [when automatic](https://stripe.com/docs/billing/invoices/workflow/#auto_advance), does
14
+ # [when automatic](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection), does
15
15
  # not happen immediately as the invoice is created. Stripe waits
16
16
  # until one hour after the last webhook was successfully sent (or the last
17
17
  # webhook timed out after failing). If you (and the platforms you may have
@@ -2,6 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
+ # Login Links are single-use login link for an Express account to access their Stripe dashboard.
5
6
  class LoginLink < APIResource
6
7
  OBJECT_NAME = "login_link"
7
8