stripe 8.8.0.pre.beta.1 → 9.0.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 +73 -178
- data/OPENAPI_VERSION +1 -1
- data/README.md +0 -11
- data/VERSION +1 -1
- data/lib/stripe/api_operations/request.rb +0 -2
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/object_types.rb +0 -16
- data/lib/stripe/resources/financial_connections/account.rb +0 -39
- data/lib/stripe/resources/issuing/card.rb +0 -18
- data/lib/stripe/resources/quote.rb +0 -131
- data/lib/stripe/resources/subscription_schedule.rb +0 -18
- data/lib/stripe/resources/terminal/reader.rb +0 -54
- data/lib/stripe/resources.rb +0 -16
- data/lib/stripe/stripe_client.rb +26 -60
- data/lib/stripe/stripe_configuration.rb +0 -2
- data/lib/stripe/util.rb +1 -8
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -46
- metadata +4 -21
- data/lib/stripe/request_signing_authenticator.rb +0 -83
- data/lib/stripe/resources/account_session.rb +0 -17
- 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/customer_session.rb +0 -12
- data/lib/stripe/resources/financial_connections/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/issuing/card_bundle.rb +0 -13
- data/lib/stripe/resources/issuing/card_design.rb +0 -58
- data/lib/stripe/resources/order.rb +0 -89
- data/lib/stripe/resources/payment_method_configuration.rb +0 -13
- data/lib/stripe/resources/quote_phase.rb +0 -29
- data/lib/stripe/resources/tax/form.rb +0 -39
- data/lib/stripe/resources/tax/registration.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7dfdb00614bcd3674779d258240b4c5e9cf5cb6806a9bc456d2384b19f652be
|
4
|
+
data.tar.gz: d4ab60d674524c92fbdf7c7fde52329ee2280685422c95673461fbb99ba3e3cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c405ffc3f03cdb9da19dc5fcbac2a56f22dca4b9f3dc93e2a524655d12d84464a2788ce90f2b593dd8ca8c5475a4fb734e882fc9c7eb3e88fc460fe743025c16
|
7
|
+
data.tar.gz: 34063f3c3d73a69c89584f0eb381739634a91f3b7e57d7c1cf1ed7b08a64fcc1c40938bb2b0fdd8e5305d72fbe9c4313a5de64c598dbd870cfb29a86d8ea37a0
|
data/CHANGELOG.md
CHANGED
@@ -1,30 +1,39 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
##
|
4
|
-
|
5
|
-
* Updated stable APIs to the latest version
|
3
|
+
## 9.0.0 - 2023-08-16
|
4
|
+
**⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
|
6
5
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
6
|
+
* [#1253](https://github.com/stripe/stripe-ruby/pull/1253) [#1260](https://github.com/stripe/stripe-ruby/pull/1260) Pin latest API version as the default
|
7
|
+
In this release, Stripe API Version `2023-08-16` (the latest at time of release) will be sent by default on all requests. This is a significant change with wide ramifications. The API version affects the properties you see on responses, the parameters you are allowed to send on requests, and so on. The previous default was to use your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version).
|
8
|
+
|
9
|
+
To successfully upgrade to stripe-ruby v9, you must either
|
10
|
+
|
11
|
+
1. **(Recommended) Upgrade your integration to be compatible with API Version `2023-08-16`.**
|
12
|
+
|
13
|
+
Please read the API Changelog carefully for each API Version from `2023-08-16` back to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). Determine if you are using any of the APIs that have changed in a breaking way, and adjust your integration accordingly. Carefully test your changes with Stripe [Test Mode](https://stripe.com/docs/keys#test-live-modes) before deploying them to production.
|
14
|
+
|
15
|
+
You can read the [v9 migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v9) for more detailed instructions.
|
16
|
+
2. **(Alternative option) Specify a version other than `2023-08-16` when initializing `stripe-ruby`.**
|
17
|
+
|
18
|
+
If you were previously initializing stripe-ruby without an explicit API Version, you can postpone modifying your integration by specifying a version equal to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). For example:
|
19
|
+
|
20
|
+
```diff
|
21
|
+
require 'stripe'
|
22
|
+
Stripe.api_key = "sk_test_..."
|
23
|
+
+ Stripe.api_version = '2020-08-27'
|
24
|
+
```
|
25
|
+
|
26
|
+
If you were already initializing stripe-ruby with an explicit API Version, upgrading to v9 will not affect your integration.
|
27
|
+
|
28
|
+
Read the [v9 migration guide](https://github.com/stripe-ruby/wiki/Migration-guide-for-v9) for more details.
|
29
|
+
|
30
|
+
Going forward, each major release of this library will be *pinned* by default to the latest Stripe API Version at the time of release.
|
31
|
+
|
32
|
+
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.
|
27
33
|
|
34
|
+
## 8.7.0 - 2023-08-10
|
35
|
+
* [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
|
36
|
+
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.
|
28
37
|
|
29
38
|
## 8.6.0 - 2023-07-13
|
30
39
|
* [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
|
@@ -46,7 +55,7 @@
|
|
46
55
|
|
47
56
|
* [#1225](https://github.com/stripe/stripe-ruby/pull/1225) Downgrade jaro_winkler
|
48
57
|
* [#1219](https://github.com/stripe/stripe-ruby/pull/1219) Update generated code
|
49
|
-
|
58
|
+
|
50
59
|
Documentation updates.
|
51
60
|
* [#1215](https://github.com/stripe/stripe-ruby/pull/1215) Update generated code
|
52
61
|
|
@@ -54,49 +63,13 @@
|
|
54
63
|
|
55
64
|
* [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
|
56
65
|
|
57
|
-
## 8.6.0-beta.6 - 2023-06-22
|
58
|
-
* [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
|
59
|
-
* Add support for new resource `CustomerSession`
|
60
|
-
* Add support for `create` method on resource `CustomerSession`
|
61
|
-
* [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
|
62
|
-
* [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
|
63
|
-
|
64
|
-
## 8.6.0-beta.5 - 2023-06-01
|
65
|
-
* [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
|
66
|
-
* [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
|
67
|
-
* [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
|
68
|
-
* [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
|
69
|
-
|
70
|
-
## 8.6.0-beta.4 - 2023-05-19
|
71
|
-
* [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
|
72
|
-
* Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
|
73
|
-
* [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
|
74
|
-
* [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
|
75
|
-
* [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
|
76
|
-
|
77
|
-
## 8.6.0-beta.3 - 2023-04-17
|
78
|
-
* [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
|
79
|
-
* [#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
|
80
|
-
|
81
|
-
## 8.6.0-beta.2 - 2023-04-13
|
82
|
-
* [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
|
83
|
-
* Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
|
84
|
-
* [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
|
85
|
-
|
86
|
-
## 8.6.0-beta.1 - 2023-03-30
|
87
|
-
* [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
|
88
66
|
|
89
67
|
## 8.5.0 - 2023-03-30
|
90
68
|
* [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
|
91
|
-
* Remove support for `create` method on resource `Tax.Transaction`
|
69
|
+
* Remove support for `create` method on resource `Tax.Transaction`
|
92
70
|
* 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.
|
93
71
|
* [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
|
94
72
|
|
95
|
-
## 8.5.0-beta.1 - 2023-03-23
|
96
|
-
* [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
|
97
|
-
* Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
|
98
|
-
* Add support for `collect_inputs` method on resource `Terminal.Reader`
|
99
|
-
|
100
73
|
## 8.4.0 - 2023-03-23
|
101
74
|
* [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
|
102
75
|
* Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
|
@@ -104,91 +77,18 @@
|
|
104
77
|
* Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
|
105
78
|
* [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
|
106
79
|
|
107
|
-
## 8.4.0-beta.4 - 2023-03-16
|
108
|
-
* [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
|
109
|
-
* Add support for `create_from_calculation` method on resource `Tax.Transaction`
|
110
|
-
* [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
|
111
|
-
* Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
|
112
|
-
* Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
|
113
|
-
* Remove support for `retrieve` method on resource `FinancingSummary`
|
114
|
-
* [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
|
115
|
-
|
116
|
-
## 8.4.0-beta.3 - 2023-03-09
|
117
|
-
* [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
|
118
|
-
* Updated stable APIs to the latest version
|
119
|
-
* Remove support for `list_transactions` method on resource `Tax.Transaction`
|
120
|
-
|
121
|
-
## 8.4.0-beta.2 - 2023-03-03
|
122
|
-
* [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
|
123
|
-
* Updated stable APIs to the latest version
|
124
|
-
* Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
|
125
|
-
* Add support for `list` and `retrieve` methods on resource `CardBundle`
|
126
|
-
* Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
|
127
|
-
|
128
|
-
## 8.4.0-beta.1 - 2023-02-23
|
129
|
-
* [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
|
130
|
-
* Updated stable APIs to the latest version
|
131
|
-
|
132
80
|
## 8.3.0 - 2023-02-16
|
133
81
|
* [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
|
134
82
|
* Add support for `refund_payment` method on resource `Terminal.Reader`
|
135
83
|
|
136
|
-
## 8.3.0-beta.1 - 2023-02-02
|
137
|
-
* [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
|
138
|
-
* Updated stable APIs to the latest version
|
139
|
-
* Add support for new resource `FinancialConnections.Transaction`
|
140
|
-
* Add support for `list` method on resource `Transaction`
|
141
|
-
|
142
84
|
## 8.2.0 - 2023-02-02
|
143
85
|
* [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
|
144
86
|
* Add support for `resume` method on resource `Subscription`
|
145
87
|
* [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
|
146
88
|
|
147
|
-
## 8.2.0-beta.3 - 2023-01-26
|
148
|
-
* [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
|
149
|
-
* Updated stable APIs to the latest version
|
150
|
-
* Add support for `list_transactions` method on resource `Tax.Transaction`
|
151
|
-
|
152
|
-
## 8.2.0-beta.2 - 2023-01-19
|
153
|
-
* [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
|
154
|
-
* Updated stable APIs to the latest version
|
155
|
-
* Add support for `Tax.Settings` resource.
|
156
|
-
|
157
|
-
## 8.2.0-beta.1 - 2023-01-12
|
158
|
-
* [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
|
159
|
-
* Updated stable APIs to the latest version
|
160
|
-
* Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
|
161
|
-
* Add support for `Tax::Register` resource
|
162
|
-
|
163
89
|
## 8.1.0 - 2023-01-12
|
164
90
|
* [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
|
165
91
|
|
166
|
-
## 8.1.0-beta.4 - 2023-01-05
|
167
|
-
* [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
|
168
|
-
* Updated stable APIs to the latest version
|
169
|
-
* Add support for `mark_stale_quote` method on resource `Quote`
|
170
|
-
|
171
|
-
## 8.1.0-beta.3 - 2022-12-22
|
172
|
-
* [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
|
173
|
-
* Updated stable APIs to the latest version
|
174
|
-
* Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
|
175
|
-
|
176
|
-
## 8.1.0-beta.2 - 2022-12-15
|
177
|
-
* [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
|
178
|
-
* Updated stable APIs to the latest version
|
179
|
-
* Add support for new resources `TaxCalculation`, and `TaxTransaction`
|
180
|
-
* Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
|
181
|
-
* Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
|
182
|
-
* [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
|
183
|
-
* Updated stable APIs to the latest version
|
184
|
-
* Add support for new resource `QuoteLine`.
|
185
|
-
|
186
|
-
## 8.1.0-beta.1 - 2022-12-08
|
187
|
-
* [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
|
188
|
-
* Updated stable APIs to the latest version
|
189
|
-
* [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
|
190
|
-
* Updated stable APIs to the latest version
|
191
|
-
|
192
92
|
## 8.0.0 - 2022-11-16
|
193
93
|
* [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
|
194
94
|
|
@@ -196,29 +96,30 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
196
96
|
|
197
97
|
"⚠️" symbol highlights breaking changes.
|
198
98
|
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
99
|
+
### Deprecated
|
100
|
+
- The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
|
101
|
+
``` ruby
|
102
|
+
# before
|
103
|
+
refund = Stripe::Refund.retrieve("re_123")
|
104
|
+
refund.description = "Refund description"
|
105
|
+
refund.save
|
106
|
+
|
107
|
+
# after
|
108
|
+
Stripe::Refund.update("re_123", description: "Refund description")
|
109
|
+
```
|
207
110
|
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
111
|
+
### ⚠️ Removed
|
112
|
+
- Removed deprecated `Sku` resource.
|
113
|
+
- Removed deprecated `Orders` resource.
|
114
|
+
- Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
|
115
|
+
```ruby
|
116
|
+
# before
|
117
|
+
Stripe::Subscription::delete("sub_12345")
|
212
118
|
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
* Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
|
119
|
+
# after
|
120
|
+
Stripe::Subscription::cancel("sub_12345")
|
121
|
+
```
|
217
122
|
|
218
|
-
## 7.2.0-beta.1 - 2022-08-23
|
219
|
-
* [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
|
220
|
-
- Updated stable APIs to the latest version
|
221
|
-
- `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)
|
222
123
|
|
223
124
|
## 7.1.0 - 2022-08-19
|
224
125
|
* [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
|
@@ -227,16 +128,6 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
227
128
|
* [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
|
228
129
|
* [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
|
229
130
|
|
230
|
-
## 7.1.0-beta.2 - 2022-08-11
|
231
|
-
* [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
|
232
|
-
- Updated stable APIs to the latest version
|
233
|
-
- Add `refund_payment` method to Terminal resource
|
234
|
-
|
235
|
-
## 7.1.0-beta.1 - 2022-08-03
|
236
|
-
* [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
|
237
|
-
- Updated stable APIs to the latest version
|
238
|
-
- Added the `Order` resource support
|
239
|
-
|
240
131
|
## 7.0.0 - 2022-08-02
|
241
132
|
|
242
133
|
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.
|
@@ -248,19 +139,21 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
248
139
|
* [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
|
249
140
|
* [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
|
250
141
|
|
251
|
-
|
252
|
-
*
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
*
|
262
|
-
|
263
|
-
*
|
142
|
+
### ⚠️ Changed
|
143
|
+
* `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.
|
144
|
+
* Update default bundle of CA certificates to April 26, 2022.
|
145
|
+
|
146
|
+
### Deprecated
|
147
|
+
* Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
|
148
|
+
|
149
|
+
### ⚠️ Removed
|
150
|
+
* Remove `details` method from `Issuing.Card` resource. The method was not supported.
|
151
|
+
* Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
|
152
|
+
* Remove `create` method from `ReportType` resource. The method was not supported.
|
153
|
+
* Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
|
154
|
+
* Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
|
155
|
+
* Remove ability to list `Card` resource for a `Recipient`.
|
156
|
+
* Remove `cancel` method from `Transfer` resource. The method was deprecated.
|
264
157
|
|
265
158
|
## 6.5.0 - 2022-06-29
|
266
159
|
* [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
|
@@ -290,6 +183,8 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
290
183
|
* 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`
|
291
184
|
* Add support for `retrieve_payment_method` method on resource `Customer`
|
292
185
|
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
|
186
|
+
|
187
|
+
|
293
188
|
|
294
189
|
## 6.0.0 - 2022-05-09
|
295
190
|
* [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
|
@@ -305,6 +200,7 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
305
200
|
## 5.55.0 - 2022-05-05
|
306
201
|
* [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
|
307
202
|
* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
|
203
|
+
|
308
204
|
|
309
205
|
## 5.54.0 - 2022-05-03
|
310
206
|
* [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
|
@@ -1335,4 +1231,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
|
|
1335
1231
|
<!--
|
1336
1232
|
# vim: set tw=0:
|
1337
1233
|
-->
|
1338
|
-
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v461
|
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
|
-
|
1
|
+
9.0.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
|
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/object_types.rb
CHANGED
@@ -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,19 +56,15 @@ 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,
|
80
|
-
PaymentMethodConfiguration::OBJECT_NAME => PaymentMethodConfiguration,
|
81
68
|
Payout::OBJECT_NAME => Payout,
|
82
69
|
Person::OBJECT_NAME => Person,
|
83
70
|
Plan::OBJECT_NAME => Plan,
|
@@ -85,7 +72,6 @@ module Stripe
|
|
85
72
|
Product::OBJECT_NAME => Product,
|
86
73
|
PromotionCode::OBJECT_NAME => PromotionCode,
|
87
74
|
Quote::OBJECT_NAME => Quote,
|
88
|
-
QuotePhase::OBJECT_NAME => QuotePhase,
|
89
75
|
Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
|
90
76
|
Radar::ValueList::OBJECT_NAME => Radar::ValueList,
|
91
77
|
Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
|
@@ -105,8 +91,6 @@ module Stripe
|
|
105
91
|
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
106
92
|
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
|
107
93
|
Tax::CalculationLineItem::OBJECT_NAME => Tax::CalculationLineItem,
|
108
|
-
Tax::Form::OBJECT_NAME => Tax::Form,
|
109
|
-
Tax::Registration::OBJECT_NAME => Tax::Registration,
|
110
94
|
Tax::Settings::OBJECT_NAME => Tax::Settings,
|
111
95
|
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
|
112
96
|
Tax::TransactionLineItem::OBJECT_NAME => Tax::TransactionLineItem,
|
@@ -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
|
@@ -54,15 +54,6 @@ module Stripe
|
|
54
54
|
)
|
55
55
|
end
|
56
56
|
|
57
|
-
def self.submit_card(card, params = {}, opts = {})
|
58
|
-
request_stripe_object(
|
59
|
-
method: :post,
|
60
|
-
path: format("/v1/test_helpers/issuing/cards/%<card>s/shipping/submit", { card: CGI.escape(card) }),
|
61
|
-
params: params,
|
62
|
-
opts: opts
|
63
|
-
)
|
64
|
-
end
|
65
|
-
|
66
57
|
def deliver_card(params = {}, opts = {})
|
67
58
|
@resource.request_stripe_object(
|
68
59
|
method: :post,
|
@@ -98,15 +89,6 @@ module Stripe
|
|
98
89
|
opts: opts
|
99
90
|
)
|
100
91
|
end
|
101
|
-
|
102
|
-
def submit_card(params = {}, opts = {})
|
103
|
-
@resource.request_stripe_object(
|
104
|
-
method: :post,
|
105
|
-
path: format("/v1/test_helpers/issuing/cards/%<card>s/shipping/submit", { card: CGI.escape(@resource["id"]) }),
|
106
|
-
params: params,
|
107
|
-
opts: opts
|
108
|
-
)
|
109
|
-
end
|
110
92
|
end
|
111
93
|
end
|
112
94
|
end
|