stripe 9.4.0 → 9.5.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +220 -44
- data/OPENAPI_VERSION +1 -1
- data/README.md +11 -0
- data/VERSION +1 -1
- data/lib/stripe/api_operations/request.rb +2 -0
- data/lib/stripe/api_version.rb +1 -0
- data/lib/stripe/object_types.rb +18 -0
- data/lib/stripe/request_signing_authenticator.rb +83 -0
- data/lib/stripe/resources/capital/financing_offer.rb +32 -0
- data/lib/stripe/resources/capital/financing_summary.rb +12 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +13 -0
- data/lib/stripe/resources/confirmation_token.rb +11 -0
- data/lib/stripe/resources/customer_session.rb +12 -0
- data/lib/stripe/resources/financial_connections/account.rb +39 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +13 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +13 -0
- data/lib/stripe/resources/gift_cards/card.rb +25 -0
- data/lib/stripe/resources/gift_cards/transaction.rb +56 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +77 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +13 -0
- data/lib/stripe/resources/order.rb +89 -0
- data/lib/stripe/resources/quote.rb +94 -0
- data/lib/stripe/resources/quote_phase.rb +29 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +42 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +10 -0
- data/lib/stripe/resources/subscription_schedule.rb +18 -0
- data/lib/stripe/resources/tax/form.rb +39 -0
- data/lib/stripe/resources/tax/registration.rb +19 -0
- data/lib/stripe/resources/terminal/reader.rb +54 -0
- data/lib/stripe/resources.rb +17 -0
- data/lib/stripe/stripe_client.rb +60 -26
- data/lib/stripe/stripe_configuration.rb +2 -0
- data/lib/stripe/util.rb +8 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +46 -0
- metadata +21 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffa1ec982a25761b4fbcde466352c0d7b33c271b4984cfd6d8952f022c708d28
|
4
|
+
data.tar.gz: d0b809023169184e8988ed38b95056cbe266198a171ff057016f95ca0b42a731
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28575518bc3d43f30b58cec8f077e9ee19d1a8b289bfba46a2229c13436dc1f48e857ac33a2cb7ce7e7a085a7411bb78ebd33ee49d8f14482e39b269e0aea8cf
|
7
|
+
data.tar.gz: 840eb431868dd83b08ebb1800983e49eb3a9f2842745c570ec54944e6d0e9c30c9057f776c7c37b39596ff561e0469116c215824841fc0584fbe0fbd596aad42
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,21 @@
|
|
1
1
|
# Changelog
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
* Add support for `
|
2
|
+
|
3
|
+
## 9.5.0-beta.1 - 2023-10-05
|
4
|
+
* [#1278](https://github.com/stripe/stripe-ruby/pull/1278) Update generated code for beta
|
5
|
+
* Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
|
6
|
+
* Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
|
7
|
+
* Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote`
|
8
|
+
|
9
|
+
|
10
|
+
## 9.4.0-beta.3 - 2023-09-28
|
11
|
+
* [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
|
12
|
+
* Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
|
13
|
+
|
14
|
+
## 9.4.0-beta.2 - 2023-09-21
|
15
|
+
* [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
|
16
|
+
|
17
|
+
## 9.4.0-beta.1 - 2023-09-14
|
18
|
+
* Updated stable APIs to the latest version
|
6
19
|
|
7
20
|
## 9.3.0 - 2023-09-14
|
8
21
|
* [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
|
@@ -12,18 +25,38 @@
|
|
12
25
|
* Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
|
13
26
|
* Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
|
14
27
|
|
28
|
+
## 9.3.0-beta.1 - 2023-09-07
|
29
|
+
* [#1269](https://github.com/stripe/stripe-ruby/pull/1269) Update generated code for beta
|
30
|
+
* Release specs are identical.
|
31
|
+
* [#1268](https://github.com/stripe/stripe-ruby/pull/1268) Update generated code for beta
|
32
|
+
* Remove support for `submit_card` test helper method on resource `Issuing.Card`
|
33
|
+
* [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
|
34
|
+
* Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
|
35
|
+
* [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
|
36
|
+
* Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
|
37
|
+
* [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
|
38
|
+
|
39
|
+
* [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
|
40
|
+
|
41
|
+
* [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
|
42
|
+
* Add support for `submit_card` test helper method on resource `Issuing.Card`
|
43
|
+
* [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
|
44
|
+
|
15
45
|
## 9.2.0 - 2023-09-07
|
16
46
|
* [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
|
17
47
|
* Add support for new resource `PaymentMethodDomain`
|
18
48
|
* Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
|
19
49
|
|
50
|
+
## 9.2.0-beta.1 - 2023-08-31
|
51
|
+
* [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
|
52
|
+
* Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
|
53
|
+
|
20
54
|
## 9.1.0 - 2023-08-31
|
21
55
|
* [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
|
22
56
|
* Add support for new resource `AccountSession`
|
23
57
|
* Add support for `create` method on resource `AccountSession`
|
24
58
|
* [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
|
25
59
|
|
26
|
-
|
27
60
|
## 9.0.0 - 2023-08-16
|
28
61
|
**⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
|
29
62
|
|
@@ -56,10 +89,39 @@
|
|
56
89
|
|
57
90
|
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.
|
58
91
|
|
92
|
+
## 9.0.0-beta.1 - 2023-08-24
|
93
|
+
* [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
|
94
|
+
* Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
|
95
|
+
* [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
|
96
|
+
|
97
|
+
## 8.8.0-beta.1 - 2023-08-10
|
98
|
+
* [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
|
99
|
+
* Updated stable APIs to the latest version
|
100
|
+
|
59
101
|
## 8.7.0 - 2023-08-10
|
60
102
|
* [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
|
61
103
|
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.
|
62
104
|
|
105
|
+
## 8.7.0-beta.3 - 2023-08-03
|
106
|
+
* [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
|
107
|
+
* Add support for `submit_card` test helper method on resource `Issuing.Card`
|
108
|
+
* [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
|
109
|
+
|
110
|
+
## 8.7.0-beta.2 - 2023-07-28
|
111
|
+
* [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
|
112
|
+
* Add support for new resource `Tax.Form`
|
113
|
+
* Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
|
114
|
+
* [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
|
115
|
+
* [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
|
116
|
+
|
117
|
+
## 8.7.0-beta.1 - 2023-07-13
|
118
|
+
* [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
|
119
|
+
Release specs are identical.
|
120
|
+
* [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
|
121
|
+
* Add support for new resource `PaymentMethodConfiguration`
|
122
|
+
* Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
|
123
|
+
* [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
|
124
|
+
|
63
125
|
## 8.6.0 - 2023-07-13
|
64
126
|
* [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
|
65
127
|
* Add support for new resource `Tax.Settings`
|
@@ -88,6 +150,37 @@
|
|
88
150
|
|
89
151
|
* [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
|
90
152
|
|
153
|
+
## 8.6.0-beta.6 - 2023-06-22
|
154
|
+
* [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
|
155
|
+
* Add support for new resource `CustomerSession`
|
156
|
+
* Add support for `create` method on resource `CustomerSession`
|
157
|
+
* [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
|
158
|
+
* [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
|
159
|
+
|
160
|
+
## 8.6.0-beta.5 - 2023-06-01
|
161
|
+
* [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
|
162
|
+
* [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
|
163
|
+
* [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
|
164
|
+
* [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
|
165
|
+
|
166
|
+
## 8.6.0-beta.4 - 2023-05-19
|
167
|
+
* [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
|
168
|
+
* Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
|
169
|
+
* [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
|
170
|
+
* [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
|
171
|
+
* [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
|
172
|
+
|
173
|
+
## 8.6.0-beta.3 - 2023-04-17
|
174
|
+
* [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
|
175
|
+
* [#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
|
176
|
+
|
177
|
+
## 8.6.0-beta.2 - 2023-04-13
|
178
|
+
* [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
|
179
|
+
* Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
|
180
|
+
* [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
|
181
|
+
|
182
|
+
## 8.6.0-beta.1 - 2023-03-30
|
183
|
+
* [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
|
91
184
|
|
92
185
|
## 8.5.0 - 2023-03-30
|
93
186
|
* [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
|
@@ -95,6 +188,11 @@
|
|
95
188
|
* 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.
|
96
189
|
* [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
|
97
190
|
|
191
|
+
## 8.5.0-beta.1 - 2023-03-23
|
192
|
+
* [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
|
193
|
+
* Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
|
194
|
+
* Add support for `collect_inputs` method on resource `Terminal.Reader`
|
195
|
+
|
98
196
|
## 8.4.0 - 2023-03-23
|
99
197
|
* [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
|
100
198
|
* Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
|
@@ -102,18 +200,91 @@
|
|
102
200
|
* Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
|
103
201
|
* [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
|
104
202
|
|
203
|
+
## 8.4.0-beta.4 - 2023-03-16
|
204
|
+
* [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
|
205
|
+
* Add support for `create_from_calculation` method on resource `Tax.Transaction`
|
206
|
+
* [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
|
207
|
+
* Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
|
208
|
+
* Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
|
209
|
+
* Remove support for `retrieve` method on resource `FinancingSummary`
|
210
|
+
* [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
|
211
|
+
|
212
|
+
## 8.4.0-beta.3 - 2023-03-09
|
213
|
+
* [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
|
214
|
+
* Updated stable APIs to the latest version
|
215
|
+
* Remove support for `list_transactions` method on resource `Tax.Transaction`
|
216
|
+
|
217
|
+
## 8.4.0-beta.2 - 2023-03-03
|
218
|
+
* [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
|
219
|
+
* Updated stable APIs to the latest version
|
220
|
+
* Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
|
221
|
+
* Add support for `list` and `retrieve` methods on resource `CardBundle`
|
222
|
+
* Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
|
223
|
+
|
224
|
+
## 8.4.0-beta.1 - 2023-02-23
|
225
|
+
* [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
|
226
|
+
* Updated stable APIs to the latest version
|
227
|
+
|
105
228
|
## 8.3.0 - 2023-02-16
|
106
229
|
* [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
|
107
230
|
* Add support for `refund_payment` method on resource `Terminal.Reader`
|
108
231
|
|
232
|
+
## 8.3.0-beta.1 - 2023-02-02
|
233
|
+
* [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
|
234
|
+
* Updated stable APIs to the latest version
|
235
|
+
* Add support for new resource `FinancialConnections.Transaction`
|
236
|
+
* Add support for `list` method on resource `Transaction`
|
237
|
+
|
109
238
|
## 8.2.0 - 2023-02-02
|
110
239
|
* [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
|
111
240
|
* Add support for `resume` method on resource `Subscription`
|
112
241
|
* [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
|
113
242
|
|
243
|
+
## 8.2.0-beta.3 - 2023-01-26
|
244
|
+
* [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
|
245
|
+
* Updated stable APIs to the latest version
|
246
|
+
* Add support for `list_transactions` method on resource `Tax.Transaction`
|
247
|
+
|
248
|
+
## 8.2.0-beta.2 - 2023-01-19
|
249
|
+
* [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
|
250
|
+
* Updated stable APIs to the latest version
|
251
|
+
* Add support for `Tax.Settings` resource.
|
252
|
+
|
253
|
+
## 8.2.0-beta.1 - 2023-01-12
|
254
|
+
* [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
|
255
|
+
* Updated stable APIs to the latest version
|
256
|
+
* Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
|
257
|
+
* Add support for `Tax::Register` resource
|
258
|
+
|
114
259
|
## 8.1.0 - 2023-01-12
|
115
260
|
* [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
|
116
261
|
|
262
|
+
## 8.1.0-beta.4 - 2023-01-05
|
263
|
+
* [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
|
264
|
+
* Updated stable APIs to the latest version
|
265
|
+
* Add support for `mark_stale_quote` method on resource `Quote`
|
266
|
+
|
267
|
+
## 8.1.0-beta.3 - 2022-12-22
|
268
|
+
* [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
|
269
|
+
* Updated stable APIs to the latest version
|
270
|
+
* Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
|
271
|
+
|
272
|
+
## 8.1.0-beta.2 - 2022-12-15
|
273
|
+
* [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
|
274
|
+
* Updated stable APIs to the latest version
|
275
|
+
* Add support for new resources `TaxCalculation`, and `TaxTransaction`
|
276
|
+
* Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
|
277
|
+
* Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
|
278
|
+
* [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
|
279
|
+
* Updated stable APIs to the latest version
|
280
|
+
* Add support for new resource `QuoteLine`.
|
281
|
+
|
282
|
+
## 8.1.0-beta.1 - 2022-12-08
|
283
|
+
* [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
|
284
|
+
* Updated stable APIs to the latest version
|
285
|
+
* [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
|
286
|
+
* Updated stable APIs to the latest version
|
287
|
+
|
117
288
|
## 8.0.0 - 2022-11-16
|
118
289
|
* [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
|
119
290
|
|
@@ -121,30 +292,29 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
121
292
|
|
122
293
|
"⚠️" symbol highlights breaking changes.
|
123
294
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
# after
|
133
|
-
Stripe::Refund.update("re_123", description: "Refund description")
|
134
|
-
```
|
295
|
+
## 7.2.0-beta.5 - 2022-11-02
|
296
|
+
* [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
|
297
|
+
* Updated beta APIs to the latest stable version
|
298
|
+
* [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
|
299
|
+
* Updated stable APIs to the latest version
|
300
|
+
|
301
|
+
## 7.2.0-beta.4 - 2022-10-07
|
302
|
+
* [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
|
135
303
|
|
136
|
-
|
137
|
-
-
|
138
|
-
|
139
|
-
|
140
|
-
```ruby
|
141
|
-
# before
|
142
|
-
Stripe::Subscription::delete("sub_12345")
|
304
|
+
## 7.2.0-beta.3 - 2022-09-26
|
305
|
+
* [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
|
306
|
+
* Updated stable APIs to the latest version
|
307
|
+
* Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
|
143
308
|
|
144
|
-
|
145
|
-
|
146
|
-
|
309
|
+
## 7.2.0-beta.2 - 2022-08-26
|
310
|
+
* [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
|
311
|
+
* Updated stable APIs to the latest version
|
312
|
+
* Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
|
147
313
|
|
314
|
+
## 7.2.0-beta.1 - 2022-08-23
|
315
|
+
* [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
|
316
|
+
- Updated stable APIs to the latest version
|
317
|
+
- `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)
|
148
318
|
|
149
319
|
## 7.1.0 - 2022-08-19
|
150
320
|
* [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
|
@@ -153,6 +323,16 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
153
323
|
* [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
|
154
324
|
* [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
|
155
325
|
|
326
|
+
## 7.1.0-beta.2 - 2022-08-11
|
327
|
+
* [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
|
328
|
+
- Updated stable APIs to the latest version
|
329
|
+
- Add `refund_payment` method to Terminal resource
|
330
|
+
|
331
|
+
## 7.1.0-beta.1 - 2022-08-03
|
332
|
+
* [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
|
333
|
+
- Updated stable APIs to the latest version
|
334
|
+
- Added the `Order` resource support
|
335
|
+
|
156
336
|
## 7.0.0 - 2022-08-02
|
157
337
|
|
158
338
|
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.
|
@@ -164,21 +344,19 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
164
344
|
* [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
|
165
345
|
* [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
|
166
346
|
|
167
|
-
|
168
|
-
*
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
*
|
178
|
-
|
179
|
-
*
|
180
|
-
* Remove ability to list `Card` resource for a `Recipient`.
|
181
|
-
* Remove `cancel` method from `Transfer` resource. The method was deprecated.
|
347
|
+
## 6.6.0-beta.1 - 2022-07-22
|
348
|
+
* [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
|
349
|
+
- Updated stable APIs to the latest version
|
350
|
+
- Add `QuotePhase` resource
|
351
|
+
* [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
|
352
|
+
- Updated stable APIs to the latest version
|
353
|
+
- Add `SubscriptionSchedule.amend` method.
|
354
|
+
* [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
|
355
|
+
- Include `server_side_confirmation_beta=v1` beta
|
356
|
+
- Add `secretKeyConfirmation` to `PaymentIntent`
|
357
|
+
* [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
|
358
|
+
- Updated stable APIs to the latest version
|
359
|
+
* [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
|
182
360
|
|
183
361
|
## 6.5.0 - 2022-06-29
|
184
362
|
* [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
|
@@ -208,8 +386,6 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
208
386
|
* 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`
|
209
387
|
* Add support for `retrieve_payment_method` method on resource `Customer`
|
210
388
|
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
|
211
|
-
|
212
|
-
|
213
389
|
|
214
390
|
## 6.0.0 - 2022-05-09
|
215
391
|
* [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
|
@@ -225,7 +401,6 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
225
401
|
## 5.55.0 - 2022-05-05
|
226
402
|
* [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
|
227
403
|
* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
|
228
|
-
|
229
404
|
|
230
405
|
## 5.54.0 - 2022-05-03
|
231
406
|
* [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
|
@@ -1256,3 +1431,4 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
|
|
1256
1431
|
<!--
|
1257
1432
|
# vim: set tw=0:
|
1258
1433
|
-->
|
1434
|
+
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v582
|
data/README.md
CHANGED
@@ -323,6 +323,17 @@ 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
|
+
|
326
337
|
## Support
|
327
338
|
|
328
339
|
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
|
-
9.
|
1
|
+
9.5.0-beta.1
|
@@ -47,6 +47,7 @@ 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)
|
50
51
|
# Assume all remaining opts must be headers
|
51
52
|
|
52
53
|
resp, opts[:api_key] = client.send(
|
@@ -54,6 +55,7 @@ module Stripe
|
|
54
55
|
method, url,
|
55
56
|
api_base: api_base, api_key: api_key,
|
56
57
|
headers: headers, params: params,
|
58
|
+
api_mode: api_mode,
|
57
59
|
&read_body_chunk_block
|
58
60
|
)
|
59
61
|
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/object_types.rb
CHANGED
@@ -25,10 +25,14 @@ module Stripe
|
|
25
25
|
BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration,
|
26
26
|
BillingPortal::Session::OBJECT_NAME => BillingPortal::Session,
|
27
27
|
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,
|
28
31
|
Card::OBJECT_NAME => Card,
|
29
32
|
CashBalance::OBJECT_NAME => CashBalance,
|
30
33
|
Charge::OBJECT_NAME => Charge,
|
31
34
|
Checkout::Session::OBJECT_NAME => Checkout::Session,
|
35
|
+
ConfirmationToken::OBJECT_NAME => ConfirmationToken,
|
32
36
|
CountrySpec::OBJECT_NAME => CountrySpec,
|
33
37
|
Coupon::OBJECT_NAME => Coupon,
|
34
38
|
CreditNote::OBJECT_NAME => CreditNote,
|
@@ -36,6 +40,7 @@ module Stripe
|
|
36
40
|
Customer::OBJECT_NAME => Customer,
|
37
41
|
CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction,
|
38
42
|
CustomerCashBalanceTransaction::OBJECT_NAME => CustomerCashBalanceTransaction,
|
43
|
+
CustomerSession::OBJECT_NAME => CustomerSession,
|
39
44
|
Discount::OBJECT_NAME => Discount,
|
40
45
|
Dispute::OBJECT_NAME => Dispute,
|
41
46
|
EphemeralKey::OBJECT_NAME => EphemeralKey,
|
@@ -45,11 +50,16 @@ module Stripe
|
|
45
50
|
File::OBJECT_NAME_ALT => File,
|
46
51
|
FileLink::OBJECT_NAME => FileLink,
|
47
52
|
FinancialConnections::Account::OBJECT_NAME => FinancialConnections::Account,
|
53
|
+
FinancialConnections::AccountInferredBalance::OBJECT_NAME =>
|
54
|
+
FinancialConnections::AccountInferredBalance,
|
48
55
|
FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
|
49
56
|
FinancialConnections::AccountOwnership::OBJECT_NAME =>
|
50
57
|
FinancialConnections::AccountOwnership,
|
51
58
|
FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
|
59
|
+
FinancialConnections::Transaction::OBJECT_NAME => FinancialConnections::Transaction,
|
52
60
|
FundingInstructions::OBJECT_NAME => FundingInstructions,
|
61
|
+
GiftCards::Card::OBJECT_NAME => GiftCards::Card,
|
62
|
+
GiftCards::Transaction::OBJECT_NAME => GiftCards::Transaction,
|
53
63
|
Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
|
54
64
|
Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
|
55
65
|
Invoice::OBJECT_NAME => Invoice,
|
@@ -59,11 +69,14 @@ module Stripe
|
|
59
69
|
Issuing::Card::OBJECT_NAME => Issuing::Card,
|
60
70
|
Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
|
61
71
|
Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
|
72
|
+
Issuing::PersonalizationDesign::OBJECT_NAME => Issuing::PersonalizationDesign,
|
73
|
+
Issuing::PhysicalBundle::OBJECT_NAME => Issuing::PhysicalBundle,
|
62
74
|
Issuing::Token::OBJECT_NAME => Issuing::Token,
|
63
75
|
Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
|
64
76
|
LineItem::OBJECT_NAME => LineItem,
|
65
77
|
LoginLink::OBJECT_NAME => LoginLink,
|
66
78
|
Mandate::OBJECT_NAME => Mandate,
|
79
|
+
Order::OBJECT_NAME => Order,
|
67
80
|
PaymentIntent::OBJECT_NAME => PaymentIntent,
|
68
81
|
PaymentLink::OBJECT_NAME => PaymentLink,
|
69
82
|
PaymentMethod::OBJECT_NAME => PaymentMethod,
|
@@ -76,6 +89,9 @@ module Stripe
|
|
76
89
|
Product::OBJECT_NAME => Product,
|
77
90
|
PromotionCode::OBJECT_NAME => PromotionCode,
|
78
91
|
Quote::OBJECT_NAME => Quote,
|
92
|
+
QuotePhase::OBJECT_NAME => QuotePhase,
|
93
|
+
QuotePreviewInvoice::OBJECT_NAME => QuotePreviewInvoice,
|
94
|
+
QuotePreviewSubscriptionSchedule::OBJECT_NAME => QuotePreviewSubscriptionSchedule,
|
79
95
|
Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
|
80
96
|
Radar::ValueList::OBJECT_NAME => Radar::ValueList,
|
81
97
|
Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
|
@@ -95,6 +111,8 @@ module Stripe
|
|
95
111
|
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
96
112
|
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
|
97
113
|
Tax::CalculationLineItem::OBJECT_NAME => Tax::CalculationLineItem,
|
114
|
+
Tax::Form::OBJECT_NAME => Tax::Form,
|
115
|
+
Tax::Registration::OBJECT_NAME => Tax::Registration,
|
98
116
|
Tax::Settings::OBJECT_NAME => Tax::Settings,
|
99
117
|
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
|
100
118
|
Tax::TransactionLineItem::OBJECT_NAME => Tax::TransactionLineItem,
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Stripe
|
4
|
+
class RequestSigningAuthenticator
|
5
|
+
AUTHORIZATION_HEADER_NAME = "Authorization"
|
6
|
+
CONTENT_TYPE_HEADER_NAME = "Content-Type"
|
7
|
+
STRIPE_CONTEXT_HEADER_NAME = "Stripe-Context"
|
8
|
+
STRIPE_ACCOUNT_HEADER_NAME = "Stripe-Account"
|
9
|
+
CONTENT_DIGEST_HEADER_NAME = "Content-Digest"
|
10
|
+
SIGNATURE_INPUT_HEADER_NAME = "Signature-Input"
|
11
|
+
SIGNATURE_HEADER_NAME = "Signature"
|
12
|
+
|
13
|
+
attr_reader :auth_token, :sign_lambda
|
14
|
+
|
15
|
+
def initialize(auth_token, sign_lambda)
|
16
|
+
unless auth_token.is_a?(String)
|
17
|
+
raise ArgumentError, "auth_token must be a string"
|
18
|
+
end
|
19
|
+
unless sign_lambda.is_a?(Proc)
|
20
|
+
raise ArgumentError, "sign_lambda must be a lambda"
|
21
|
+
end
|
22
|
+
|
23
|
+
@auth_token = auth_token
|
24
|
+
@sign_lambda = sign_lambda
|
25
|
+
end
|
26
|
+
|
27
|
+
def authenticate(method, headers, body)
|
28
|
+
covered_headers = [CONTENT_TYPE_HEADER_NAME,
|
29
|
+
CONTENT_DIGEST_HEADER_NAME,
|
30
|
+
STRIPE_CONTEXT_HEADER_NAME,
|
31
|
+
STRIPE_ACCOUNT_HEADER_NAME,
|
32
|
+
AUTHORIZATION_HEADER_NAME,]
|
33
|
+
|
34
|
+
headers[AUTHORIZATION_HEADER_NAME] = "STRIPE-V2-SIG #{auth_token}"
|
35
|
+
|
36
|
+
if method == :get
|
37
|
+
covered_headers -= [CONTENT_TYPE_HEADER_NAME,
|
38
|
+
CONTENT_DIGEST_HEADER_NAME,]
|
39
|
+
else
|
40
|
+
content = body || ""
|
41
|
+
headers[CONTENT_DIGEST_HEADER_NAME] =
|
42
|
+
%(sha-256=:#{content_digest(content)}:)
|
43
|
+
end
|
44
|
+
|
45
|
+
covered_headers_formatted = covered_headers
|
46
|
+
.map { |string| %("#{string.downcase}") }
|
47
|
+
.join(" ")
|
48
|
+
|
49
|
+
signature_input = "(#{covered_headers_formatted});created=#{created_time}"
|
50
|
+
|
51
|
+
inputs = covered_headers
|
52
|
+
.map { |header| %("#{header.downcase}": #{headers[header]}) }
|
53
|
+
.join("\n")
|
54
|
+
|
55
|
+
signature_base = %(#{inputs}\n"@signature-params": #{signature_input})
|
56
|
+
.encode(Encoding::UTF_8)
|
57
|
+
|
58
|
+
headers[SIGNATURE_INPUT_HEADER_NAME] = "sig1=#{signature_input}"
|
59
|
+
|
60
|
+
headers[SIGNATURE_HEADER_NAME] =
|
61
|
+
"sig1=:#{encoded_signature(signature_base)}:"
|
62
|
+
end
|
63
|
+
|
64
|
+
private def sign(signature_base)
|
65
|
+
@sign_lambda.call(signature_base)
|
66
|
+
end
|
67
|
+
|
68
|
+
private def encoded_signature(signature_base)
|
69
|
+
Base64.strict_encode64(sign(signature_base))
|
70
|
+
rescue StandardError
|
71
|
+
raise AuthenticationError, "Encountered '#{e.message} (#{e.class})' "\
|
72
|
+
"when calculating request signature."
|
73
|
+
end
|
74
|
+
|
75
|
+
private def content_digest(content)
|
76
|
+
Base64.strict_encode64(OpenSSL::Digest.new("SHA256").digest(content))
|
77
|
+
end
|
78
|
+
|
79
|
+
private def created_time
|
80
|
+
Time.now.to_i
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Capital
|
6
|
+
# This is an object representing an offer of financing from
|
7
|
+
# Stripe Capital to a Connect subaccount.
|
8
|
+
class FinancingOffer < APIResource
|
9
|
+
extend Stripe::APIOperations::List
|
10
|
+
|
11
|
+
OBJECT_NAME = "capital.financing_offer"
|
12
|
+
|
13
|
+
def mark_delivered(params = {}, opts = {})
|
14
|
+
request_stripe_object(
|
15
|
+
method: :post,
|
16
|
+
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(self["id"]) }),
|
17
|
+
params: params,
|
18
|
+
opts: opts
|
19
|
+
)
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.mark_delivered(financing_offer, params = {}, opts = {})
|
23
|
+
request_stripe_object(
|
24
|
+
method: :post,
|
25
|
+
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }),
|
26
|
+
params: params,
|
27
|
+
opts: opts
|
28
|
+
)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Capital
|
6
|
+
# A financing object describes an account's current financing state. Used by Connect
|
7
|
+
# platforms to read the state of Capital offered to their connected accounts.
|
8
|
+
class FinancingSummary < SingletonAPIResource
|
9
|
+
OBJECT_NAME = "capital.financing_summary"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Capital
|
6
|
+
# This is an object representing the details of a transaction on a Capital financing object.
|
7
|
+
class FinancingTransaction < APIResource
|
8
|
+
extend Stripe::APIOperations::List
|
9
|
+
|
10
|
+
OBJECT_NAME = "capital.financing_transaction"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|