stripe 8.6.0.pre.beta.6 → 8.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +61 -150
  3. data/OPENAPI_VERSION +1 -1
  4. data/README.md +0 -11
  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 -14
  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/quote.rb +0 -131
  12. data/lib/stripe/resources/subscription_schedule.rb +0 -18
  13. data/lib/stripe/resources/terminal/reader.rb +0 -54
  14. data/lib/stripe/resources.rb +0 -14
  15. data/lib/stripe/stripe_client.rb +26 -60
  16. data/lib/stripe/stripe_configuration.rb +4 -4
  17. data/lib/stripe/util.rb +1 -8
  18. data/lib/stripe/version.rb +1 -1
  19. data/lib/stripe.rb +0 -47
  20. metadata +4 -19
  21. data/lib/stripe/request_signing_authenticator.rb +0 -83
  22. data/lib/stripe/resources/account_session.rb +0 -17
  23. data/lib/stripe/resources/capital/financing_offer.rb +0 -32
  24. data/lib/stripe/resources/capital/financing_summary.rb +0 -12
  25. data/lib/stripe/resources/capital/financing_transaction.rb +0 -13
  26. data/lib/stripe/resources/customer_session.rb +0 -12
  27. data/lib/stripe/resources/financial_connections/inferred_balance.rb +0 -13
  28. data/lib/stripe/resources/financial_connections/transaction.rb +0 -13
  29. data/lib/stripe/resources/gift_cards/card.rb +0 -25
  30. data/lib/stripe/resources/gift_cards/transaction.rb +0 -56
  31. data/lib/stripe/resources/issuing/card_bundle.rb +0 -13
  32. data/lib/stripe/resources/issuing/card_design.rb +0 -58
  33. data/lib/stripe/resources/order.rb +0 -89
  34. data/lib/stripe/resources/quote_phase.rb +0 -29
  35. data/lib/stripe/resources/tax/registration.rb +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81d0ddbdb1d081579fb52860e1295326a1e3b9863e84ac8167146525320e7c59
4
- data.tar.gz: 7145dd01065eae301d8ff96f547dee29893f7b7d5e922bd1ed1b6559f57e614e
3
+ metadata.gz: dfcf23587dbf38e28cab0b74cbb9419e67356cec27138393a6112e41ebad55b5
4
+ data.tar.gz: 7b8859429ac9fcadca1af8d6085f0cae63fb33dc95755c66bac128cf592efe38
5
5
  SHA512:
6
- metadata.gz: 9be55e03a197319fcf3115c89e664119e8b1c271e163fc4ac91fe4088f9413cc0dbe9a411f7e4fc1c10b15d75cd9521889807236af044ed9b5c20b45a9272af6
7
- data.tar.gz: 8951c0d63c7124b8c4b9c627e41bb1bc8b6fdc3e63d88d2fdc7faa917f0545a4b362c7886822ce6b817041a28d091e3b1ea5535bb92fa38cead45b6fe9753705
6
+ metadata.gz: 50336f3cc9ce1acf8bf863057aae31293f27f6e2ed45abb0b1be75ddb48082f963eaf3ba9fa0fb8226244fc82d7ed94daef9c9740ed1e724281c4ddecb3f6dda
7
+ data.tar.gz: 5cd44c495b8c3eeba5d3db29f187c1d145684e3074324f38373b4ce87428c5ece7fe219250730c7c46846b54fe367c17409f37e7e7a08d8feb3677c38147aec9
data/CHANGELOG.md CHANGED
@@ -1,51 +1,40 @@
1
1
  # Changelog
2
2
 
3
- ## 8.6.0-beta.6 - 2023-06-22
4
- * [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
5
- * Add support for new resource `CustomerSession`
6
- * Add support for `create` method on resource `CustomerSession`
7
- * [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
8
- * [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
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
9
8
 
10
- ## 8.6.0-beta.5 - 2023-06-01
11
- * [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
12
- * [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
13
- * [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
14
- * [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
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
 
16
- ## 8.6.0-beta.4 - 2023-05-19
17
- * [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
18
- * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
19
- * [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
20
- * [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
21
- * [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
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
22
18
 
19
+ * [#1223](https://github.com/stripe/stripe-ruby/pull/1223) Update generated code
23
20
 
24
- ## 8.6.0-beta.3 - 2023-04-17
25
- * [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
26
- * [#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
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
27
26
 
28
- ## 8.6.0-beta.2 - 2023-04-13
29
- * [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
30
- * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
31
- * [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
27
+ * [#1208](https://github.com/stripe/stripe-ruby/pull/1208) Update generated code
32
28
 
33
-
34
- ## 8.6.0-beta.1 - 2023-03-30
35
- * [#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
36
30
 
37
31
 
38
32
  ## 8.5.0 - 2023-03-30
39
33
  * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
40
- * Remove support for `create` method on resource `Tax.Transaction`
34
+ * Remove support for `create` method on resource `Tax.Transaction`
41
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.
42
36
  * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
43
37
 
44
- ## 8.5.0-beta.1 - 2023-03-23
45
- * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
46
- * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
47
- * Add support for `collect_inputs` method on resource `Terminal.Reader`
48
-
49
38
  ## 8.4.0 - 2023-03-23
50
39
  * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
51
40
  * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
@@ -53,91 +42,18 @@
53
42
  * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
54
43
  * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
55
44
 
56
- ## 8.4.0-beta.4 - 2023-03-16
57
- * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
58
- * Add support for `create_from_calculation` method on resource `Tax.Transaction`
59
- * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
60
- * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
61
- * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
62
- * Remove support for `retrieve` method on resource `FinancingSummary`
63
- * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
64
-
65
- ## 8.4.0-beta.3 - 2023-03-09
66
- * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
67
- * Updated stable APIs to the latest version
68
- * Remove support for `list_transactions` method on resource `Tax.Transaction`
69
-
70
- ## 8.4.0-beta.2 - 2023-03-03
71
- * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
72
- * Updated stable APIs to the latest version
73
- * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
74
- * Add support for `list` and `retrieve` methods on resource `CardBundle`
75
- * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
76
-
77
- ## 8.4.0-beta.1 - 2023-02-23
78
- * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
79
- * Updated stable APIs to the latest version
80
-
81
45
  ## 8.3.0 - 2023-02-16
82
46
  * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
83
47
  * Add support for `refund_payment` method on resource `Terminal.Reader`
84
48
 
85
- ## 8.3.0-beta.1 - 2023-02-02
86
- * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
87
- * Updated stable APIs to the latest version
88
- * Add support for new resource `FinancialConnections.Transaction`
89
- * Add support for `list` method on resource `Transaction`
90
-
91
49
  ## 8.2.0 - 2023-02-02
92
50
  * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
93
51
  * Add support for `resume` method on resource `Subscription`
94
52
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
95
53
 
96
- ## 8.2.0-beta.3 - 2023-01-26
97
- * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
98
- * Updated stable APIs to the latest version
99
- * Add support for `list_transactions` method on resource `Tax.Transaction`
100
-
101
- ## 8.2.0-beta.2 - 2023-01-19
102
- * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
103
- * Updated stable APIs to the latest version
104
- * Add support for `Tax.Settings` resource.
105
-
106
- ## 8.2.0-beta.1 - 2023-01-12
107
- * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
108
- * Updated stable APIs to the latest version
109
- * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
110
- * Add support for `Tax::Register` resource
111
-
112
54
  ## 8.1.0 - 2023-01-12
113
55
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
114
56
 
115
- ## 8.1.0-beta.4 - 2023-01-05
116
- * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
117
- * Updated stable APIs to the latest version
118
- * Add support for `mark_stale_quote` method on resource `Quote`
119
-
120
- ## 8.1.0-beta.3 - 2022-12-22
121
- * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
122
- * Updated stable APIs to the latest version
123
- * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
124
-
125
- ## 8.1.0-beta.2 - 2022-12-15
126
- * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
127
- * Updated stable APIs to the latest version
128
- * Add support for new resources `TaxCalculation`, and `TaxTransaction`
129
- * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
130
- * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
131
- * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
132
- * Updated stable APIs to the latest version
133
- * Add support for new resource `QuoteLine`.
134
-
135
- ## 8.1.0-beta.1 - 2022-12-08
136
- * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
137
- * Updated stable APIs to the latest version
138
- * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
139
- * Updated stable APIs to the latest version
140
-
141
57
  ## 8.0.0 - 2022-11-16
142
58
  * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
143
59
 
@@ -145,29 +61,30 @@ Breaking changes that arose during code generation of the library that we postpo
145
61
 
146
62
  "⚠️" symbol highlights breaking changes.
147
63
 
148
- ## 7.2.0-beta.5 - 2022-11-02
149
- * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
150
- * Updated beta APIs to the latest stable version
151
- * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
152
- * Updated stable APIs to the latest version
153
-
154
- ## 7.2.0-beta.4 - 2022-10-07
155
- * [#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
+ ```
156
75
 
157
- ## 7.2.0-beta.3 - 2022-09-26
158
- * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
159
- * Updated stable APIs to the latest version
160
- * 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")
161
83
 
162
- ## 7.2.0-beta.2 - 2022-08-26
163
- * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
164
- * Updated stable APIs to the latest version
165
- * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
84
+ # after
85
+ Stripe::Subscription::cancel("sub_12345")
86
+ ```
166
87
 
167
- ## 7.2.0-beta.1 - 2022-08-23
168
- * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
169
- - Updated stable APIs to the latest version
170
- - `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)
171
88
 
172
89
  ## 7.1.0 - 2022-08-19
173
90
  * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@@ -176,16 +93,6 @@ Breaking changes that arose during code generation of the library that we postpo
176
93
  * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
177
94
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
178
95
 
179
- ## 7.1.0-beta.2 - 2022-08-11
180
- * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
181
- - Updated stable APIs to the latest version
182
- - Add `refund_payment` method to Terminal resource
183
-
184
- ## 7.1.0-beta.1 - 2022-08-03
185
- * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
186
- - Updated stable APIs to the latest version
187
- - Added the `Order` resource support
188
-
189
96
  ## 7.0.0 - 2022-08-02
190
97
 
191
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.
@@ -197,19 +104,21 @@ Breaking changes that arose during code generation of the library that we postpo
197
104
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
198
105
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
199
106
 
200
- ## 6.6.0-beta.1 - 2022-07-22
201
- * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
202
- - Updated stable APIs to the latest version
203
- - Add `QuotePhase` resource
204
- * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
205
- - Updated stable APIs to the latest version
206
- - Add `SubscriptionSchedule.amend` method.
207
- * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
208
- - Include `server_side_confirmation_beta=v1` beta
209
- - Add `secretKeyConfirmation` to `PaymentIntent`
210
- * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
211
- - Updated stable APIs to the latest version
212
- * [#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.
213
122
 
214
123
  ## 6.5.0 - 2022-06-29
215
124
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -239,6 +148,8 @@ Breaking changes that arose during code generation of the library that we postpo
239
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`
240
149
  * Add support for `retrieve_payment_method` method on resource `Customer`
241
150
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
151
+
152
+
242
153
 
243
154
  ## 6.0.0 - 2022-05-09
244
155
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -254,6 +165,7 @@ Breaking changes that arose during code generation of the library that we postpo
254
165
  ## 5.55.0 - 2022-05-05
255
166
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
256
167
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
168
+
257
169
 
258
170
  ## 5.54.0 - 2022-05-03
259
171
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1284,4 +1196,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1284
1196
  <!--
1285
1197
  # vim: set tw=0:
1286
1198
  -->
1287
-
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v392
1
+ v413
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/VERSION CHANGED
@@ -1 +1 @@
1
- 8.6.0-beta.6
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-06-08.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,
@@ -39,7 +35,6 @@ module Stripe
39
35
  Customer::OBJECT_NAME => Customer,
40
36
  CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction,
41
37
  CustomerCashBalanceTransaction::OBJECT_NAME => CustomerCashBalanceTransaction,
42
- CustomerSession::OBJECT_NAME => CustomerSession,
43
38
  Discount::OBJECT_NAME => Discount,
44
39
  Dispute::OBJECT_NAME => Dispute,
45
40
  EphemeralKey::OBJECT_NAME => EphemeralKey,
@@ -52,12 +47,8 @@ module Stripe
52
47
  FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
53
48
  FinancialConnections::AccountOwnership::OBJECT_NAME =>
54
49
  FinancialConnections::AccountOwnership,
55
- FinancialConnections::InferredBalance::OBJECT_NAME => FinancialConnections::InferredBalance,
56
50
  FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
57
- FinancialConnections::Transaction::OBJECT_NAME => FinancialConnections::Transaction,
58
51
  FundingInstructions::OBJECT_NAME => FundingInstructions,
59
- GiftCards::Card::OBJECT_NAME => GiftCards::Card,
60
- GiftCards::Transaction::OBJECT_NAME => GiftCards::Transaction,
61
52
  Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
62
53
  Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
63
54
  Invoice::OBJECT_NAME => Invoice,
@@ -65,15 +56,12 @@ module Stripe
65
56
  InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
66
57
  Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
67
58
  Issuing::Card::OBJECT_NAME => Issuing::Card,
68
- Issuing::CardBundle::OBJECT_NAME => Issuing::CardBundle,
69
- Issuing::CardDesign::OBJECT_NAME => Issuing::CardDesign,
70
59
  Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
71
60
  Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
72
61
  Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
73
62
  LineItem::OBJECT_NAME => LineItem,
74
63
  LoginLink::OBJECT_NAME => LoginLink,
75
64
  Mandate::OBJECT_NAME => Mandate,
76
- Order::OBJECT_NAME => Order,
77
65
  PaymentIntent::OBJECT_NAME => PaymentIntent,
78
66
  PaymentLink::OBJECT_NAME => PaymentLink,
79
67
  PaymentMethod::OBJECT_NAME => PaymentMethod,
@@ -84,7 +72,6 @@ module Stripe
84
72
  Product::OBJECT_NAME => Product,
85
73
  PromotionCode::OBJECT_NAME => PromotionCode,
86
74
  Quote::OBJECT_NAME => Quote,
87
- QuotePhase::OBJECT_NAME => QuotePhase,
88
75
  Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
89
76
  Radar::ValueList::OBJECT_NAME => Radar::ValueList,
90
77
  Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@@ -103,7 +90,6 @@ module Stripe
103
90
  SubscriptionItem::OBJECT_NAME => SubscriptionItem,
104
91
  SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
105
92
  Tax::Calculation::OBJECT_NAME => Tax::Calculation,
106
- Tax::Registration::OBJECT_NAME => Tax::Registration,
107
93
  Tax::Settings::OBJECT_NAME => Tax::Settings,
108
94
  Tax::Transaction::OBJECT_NAME => Tax::Transaction,
109
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
@@ -29,15 +29,6 @@ module Stripe
29
29
  )
30
30
  end
31
31
 
32
- def draft_quote(params = {}, opts = {})
33
- request_stripe_object(
34
- method: :post,
35
- path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(self["id"]) }),
36
- params: params,
37
- opts: opts
38
- )
39
- end
40
-
41
32
  def finalize_quote(params = {}, opts = {})
42
33
  request_stripe_object(
43
34
  method: :post,
@@ -65,60 +56,6 @@ module Stripe
65
56
  )
66
57
  end
67
58
 
68
- def list_lines(params = {}, opts = {})
69
- request_stripe_object(
70
- method: :get,
71
- path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(self["id"]) }),
72
- params: params,
73
- opts: opts
74
- )
75
- end
76
-
77
- def mark_stale_quote(params = {}, opts = {})
78
- request_stripe_object(
79
- method: :post,
80
- path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(self["id"]) }),
81
- params: params,
82
- opts: opts
83
- )
84
- end
85
-
86
- def preview_invoice_lines(preview_invoice, params = {}, opts = {})
87
- request_stripe_object(
88
- method: :get,
89
- path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }),
90
- params: params,
91
- opts: opts
92
- )
93
- end
94
-
95
- def preview_invoices(params = {}, opts = {})
96
- request_stripe_object(
97
- method: :get,
98
- path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(self["id"]) }),
99
- params: params,
100
- opts: opts
101
- )
102
- end
103
-
104
- def preview_subscription_schedules(params = {}, opts = {})
105
- request_stripe_object(
106
- method: :get,
107
- path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(self["id"]) }),
108
- params: params,
109
- opts: opts
110
- )
111
- end
112
-
113
- def reestimate(params = {}, opts = {})
114
- request_stripe_object(
115
- method: :post,
116
- path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(self["id"]) }),
117
- params: params,
118
- opts: opts
119
- )
120
- end
121
-
122
59
  def self.accept(quote, params = {}, opts = {})
123
60
  request_stripe_object(
124
61
  method: :post,
@@ -137,15 +74,6 @@ module Stripe
137
74
  )
138
75
  end
139
76
 
140
- def self.draft_quote(quote, params = {}, opts = {})
141
- request_stripe_object(
142
- method: :post,
143
- path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(quote) }),
144
- params: params,
145
- opts: opts
146
- )
147
- end
148
-
149
77
  def self.finalize_quote(quote, params = {}, opts = {})
150
78
  request_stripe_object(
151
79
  method: :post,
@@ -173,65 +101,6 @@ module Stripe
173
101
  )
174
102
  end
175
103
 
176
- def self.list_lines(quote, params = {}, opts = {})
177
- request_stripe_object(
178
- method: :get,
179
- path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(quote) }),
180
- params: params,
181
- opts: opts
182
- )
183
- end
184
-
185
- def self.mark_stale_quote(quote, params = {}, opts = {})
186
- request_stripe_object(
187
- method: :post,
188
- path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(quote) }),
189
- params: params,
190
- opts: opts
191
- )
192
- end
193
-
194
- def self.preview_invoice_lines(
195
- quote,
196
- preview_invoice,
197
- params = {},
198
- opts = {}
199
- )
200
- request_stripe_object(
201
- method: :get,
202
- path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
203
- params: params,
204
- opts: opts
205
- )
206
- end
207
-
208
- def self.preview_invoices(quote, params = {}, opts = {})
209
- request_stripe_object(
210
- method: :get,
211
- path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(quote) }),
212
- params: params,
213
- opts: opts
214
- )
215
- end
216
-
217
- def self.preview_subscription_schedules(quote, params = {}, opts = {})
218
- request_stripe_object(
219
- method: :get,
220
- path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(quote) }),
221
- params: params,
222
- opts: opts
223
- )
224
- end
225
-
226
- def self.reestimate(quote, params = {}, opts = {})
227
- request_stripe_object(
228
- method: :post,
229
- path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(quote) }),
230
- params: params,
231
- opts: opts
232
- )
233
- end
234
-
235
104
  def pdf(params = {}, opts = {}, &read_body_chunk_block)
236
105
  unless block_given?
237
106
  raise ArgumentError, "A read_body_chunk_block block parameter is required when calling the pdf method."