stripe 9.3.0.pre.beta.1 → 9.3.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 +47 -203
- 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 +0 -1
- data/lib/stripe/object_types.rb +0 -16
- data/lib/stripe/resources/account.rb +1 -2
- data/lib/stripe/resources/application_fee.rb +1 -2
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/customer.rb +5 -13
- data/lib/stripe/resources/dispute.rb +2 -4
- data/lib/stripe/resources/event.rb +17 -16
- data/lib/stripe/resources/financial_connections/account.rb +0 -39
- data/lib/stripe/resources/invoice.rb +1 -6
- data/lib/stripe/resources/issuing/authorization.rb +89 -0
- data/lib/stripe/resources/issuing/transaction.rb +44 -0
- data/lib/stripe/resources/quote.rb +0 -100
- data/lib/stripe/resources/source.rb +1 -2
- data/lib/stripe/resources/subscription_schedule.rb +0 -18
- data/lib/stripe/resources/terminal/reader.rb +0 -54
- data/lib/stripe/resources/transfer.rb +1 -2
- data/lib/stripe/resources/treasury/outbound_transfer.rb +1 -5
- 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/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/quote_phase.rb +0 -29
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -42
- data/lib/stripe/resources/quote_preview_schedule.rb +0 -10
- 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: dcf0274fbad4e15be02d4b11d735147eab8d6cb5c7dd570c9d40a459a08f3ebc
|
4
|
+
data.tar.gz: d67f24cc6bef98f57a2f0d1f54034cce8c8d9f1db8c656badd06f63ca28851c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff8e6be35379dde8bd4a51c08d11955267347520f654f5cb508ee78b277078b659c5db4582e306d2f271739152635e0dc16d4736e0800bae04f9e4109bbc52f5
|
7
|
+
data.tar.gz: e4a11dc8805e67040a96f6a5a1d113bbde439d9a1fff61d6566963c20f7ac0608757fba85c58c4475e7bdcd4e199d839a41905df66fe710e5b1cfdd9207ce89b
|
data/CHANGELOG.md
CHANGED
@@ -1,37 +1,24 @@
|
|
1
1
|
# Changelog
|
2
|
-
|
3
|
-
|
4
|
-
*
|
5
|
-
*
|
6
|
-
* [#
|
7
|
-
*
|
8
|
-
*
|
9
|
-
* Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
|
10
|
-
* [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
|
11
|
-
* Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
|
12
|
-
* [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
|
13
|
-
|
14
|
-
* [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
|
15
|
-
|
16
|
-
* [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
|
17
|
-
* Add support for `submit_card` test helper method on resource `Issuing.Card`
|
18
|
-
* [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
|
2
|
+
## 9.3.0 - 2023-09-14
|
3
|
+
* [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
|
4
|
+
* Add support for new resource `PaymentMethodConfiguration`
|
5
|
+
* Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
|
6
|
+
* [#1271](https://github.com/stripe/stripe-ruby/pull/1271) Update generated code
|
7
|
+
* Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
|
8
|
+
* Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
|
19
9
|
|
20
10
|
## 9.2.0 - 2023-09-07
|
21
11
|
* [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
|
22
12
|
* Add support for new resource `PaymentMethodDomain`
|
23
13
|
* Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
|
24
14
|
|
25
|
-
## 9.2.0-beta.1 - 2023-08-31
|
26
|
-
* [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
|
27
|
-
* Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
|
28
|
-
|
29
15
|
## 9.1.0 - 2023-08-31
|
30
16
|
* [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
|
31
17
|
* Add support for new resource `AccountSession`
|
32
18
|
* Add support for `create` method on resource `AccountSession`
|
33
19
|
* [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
|
34
20
|
|
21
|
+
|
35
22
|
## 9.0.0 - 2023-08-16
|
36
23
|
**⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
|
37
24
|
|
@@ -64,39 +51,10 @@
|
|
64
51
|
|
65
52
|
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.
|
66
53
|
|
67
|
-
## 9.0.0-beta.1 - 2023-08-24
|
68
|
-
* [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
|
69
|
-
* Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
|
70
|
-
* [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
|
71
|
-
|
72
|
-
## 8.8.0-beta.1 - 2023-08-10
|
73
|
-
* [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
|
74
|
-
* Updated stable APIs to the latest version
|
75
|
-
|
76
54
|
## 8.7.0 - 2023-08-10
|
77
55
|
* [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
|
78
56
|
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.
|
79
57
|
|
80
|
-
## 8.7.0-beta.3 - 2023-08-03
|
81
|
-
* [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
|
82
|
-
* Add support for `submit_card` test helper method on resource `Issuing.Card`
|
83
|
-
* [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
|
84
|
-
|
85
|
-
## 8.7.0-beta.2 - 2023-07-28
|
86
|
-
* [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
|
87
|
-
* Add support for new resource `Tax.Form`
|
88
|
-
* Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
|
89
|
-
* [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
|
90
|
-
* [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
|
91
|
-
|
92
|
-
## 8.7.0-beta.1 - 2023-07-13
|
93
|
-
* [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
|
94
|
-
Release specs are identical.
|
95
|
-
* [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
|
96
|
-
* Add support for new resource `PaymentMethodConfiguration`
|
97
|
-
* Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
|
98
|
-
* [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
|
99
|
-
|
100
58
|
## 8.6.0 - 2023-07-13
|
101
59
|
* [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
|
102
60
|
* Add support for new resource `Tax.Settings`
|
@@ -125,37 +83,6 @@
|
|
125
83
|
|
126
84
|
* [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
|
127
85
|
|
128
|
-
## 8.6.0-beta.6 - 2023-06-22
|
129
|
-
* [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
|
130
|
-
* Add support for new resource `CustomerSession`
|
131
|
-
* Add support for `create` method on resource `CustomerSession`
|
132
|
-
* [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
|
133
|
-
* [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
|
134
|
-
|
135
|
-
## 8.6.0-beta.5 - 2023-06-01
|
136
|
-
* [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
|
137
|
-
* [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
|
138
|
-
* [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
|
139
|
-
* [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
|
140
|
-
|
141
|
-
## 8.6.0-beta.4 - 2023-05-19
|
142
|
-
* [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
|
143
|
-
* Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
|
144
|
-
* [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
|
145
|
-
* [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
|
146
|
-
* [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
|
147
|
-
|
148
|
-
## 8.6.0-beta.3 - 2023-04-17
|
149
|
-
* [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
|
150
|
-
* [#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
|
151
|
-
|
152
|
-
## 8.6.0-beta.2 - 2023-04-13
|
153
|
-
* [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
|
154
|
-
* Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
|
155
|
-
* [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
|
156
|
-
|
157
|
-
## 8.6.0-beta.1 - 2023-03-30
|
158
|
-
* [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
|
159
86
|
|
160
87
|
## 8.5.0 - 2023-03-30
|
161
88
|
* [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
|
@@ -163,11 +90,6 @@
|
|
163
90
|
* 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.
|
164
91
|
* [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
|
165
92
|
|
166
|
-
## 8.5.0-beta.1 - 2023-03-23
|
167
|
-
* [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
|
168
|
-
* Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
|
169
|
-
* Add support for `collect_inputs` method on resource `Terminal.Reader`
|
170
|
-
|
171
93
|
## 8.4.0 - 2023-03-23
|
172
94
|
* [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
|
173
95
|
* Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
|
@@ -175,91 +97,18 @@
|
|
175
97
|
* Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
|
176
98
|
* [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
|
177
99
|
|
178
|
-
## 8.4.0-beta.4 - 2023-03-16
|
179
|
-
* [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
|
180
|
-
* Add support for `create_from_calculation` method on resource `Tax.Transaction`
|
181
|
-
* [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
|
182
|
-
* Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
|
183
|
-
* Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
|
184
|
-
* Remove support for `retrieve` method on resource `FinancingSummary`
|
185
|
-
* [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
|
186
|
-
|
187
|
-
## 8.4.0-beta.3 - 2023-03-09
|
188
|
-
* [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
|
189
|
-
* Updated stable APIs to the latest version
|
190
|
-
* Remove support for `list_transactions` method on resource `Tax.Transaction`
|
191
|
-
|
192
|
-
## 8.4.0-beta.2 - 2023-03-03
|
193
|
-
* [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
|
194
|
-
* Updated stable APIs to the latest version
|
195
|
-
* Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
|
196
|
-
* Add support for `list` and `retrieve` methods on resource `CardBundle`
|
197
|
-
* Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
|
198
|
-
|
199
|
-
## 8.4.0-beta.1 - 2023-02-23
|
200
|
-
* [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
|
201
|
-
* Updated stable APIs to the latest version
|
202
|
-
|
203
100
|
## 8.3.0 - 2023-02-16
|
204
101
|
* [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
|
205
102
|
* Add support for `refund_payment` method on resource `Terminal.Reader`
|
206
103
|
|
207
|
-
## 8.3.0-beta.1 - 2023-02-02
|
208
|
-
* [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
|
209
|
-
* Updated stable APIs to the latest version
|
210
|
-
* Add support for new resource `FinancialConnections.Transaction`
|
211
|
-
* Add support for `list` method on resource `Transaction`
|
212
|
-
|
213
104
|
## 8.2.0 - 2023-02-02
|
214
105
|
* [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
|
215
106
|
* Add support for `resume` method on resource `Subscription`
|
216
107
|
* [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
|
217
108
|
|
218
|
-
## 8.2.0-beta.3 - 2023-01-26
|
219
|
-
* [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
|
220
|
-
* Updated stable APIs to the latest version
|
221
|
-
* Add support for `list_transactions` method on resource `Tax.Transaction`
|
222
|
-
|
223
|
-
## 8.2.0-beta.2 - 2023-01-19
|
224
|
-
* [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
|
225
|
-
* Updated stable APIs to the latest version
|
226
|
-
* Add support for `Tax.Settings` resource.
|
227
|
-
|
228
|
-
## 8.2.0-beta.1 - 2023-01-12
|
229
|
-
* [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
|
230
|
-
* Updated stable APIs to the latest version
|
231
|
-
* Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
|
232
|
-
* Add support for `Tax::Register` resource
|
233
|
-
|
234
109
|
## 8.1.0 - 2023-01-12
|
235
110
|
* [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
|
236
111
|
|
237
|
-
## 8.1.0-beta.4 - 2023-01-05
|
238
|
-
* [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
|
239
|
-
* Updated stable APIs to the latest version
|
240
|
-
* Add support for `mark_stale_quote` method on resource `Quote`
|
241
|
-
|
242
|
-
## 8.1.0-beta.3 - 2022-12-22
|
243
|
-
* [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
|
244
|
-
* Updated stable APIs to the latest version
|
245
|
-
* Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
|
246
|
-
|
247
|
-
## 8.1.0-beta.2 - 2022-12-15
|
248
|
-
* [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
|
249
|
-
* Updated stable APIs to the latest version
|
250
|
-
* Add support for new resources `TaxCalculation`, and `TaxTransaction`
|
251
|
-
* Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
|
252
|
-
* Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
|
253
|
-
* [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
|
254
|
-
* Updated stable APIs to the latest version
|
255
|
-
* Add support for new resource `QuoteLine`.
|
256
|
-
|
257
|
-
## 8.1.0-beta.1 - 2022-12-08
|
258
|
-
* [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
|
259
|
-
* Updated stable APIs to the latest version
|
260
|
-
* [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
|
261
|
-
* Updated stable APIs to the latest version
|
262
|
-
|
263
112
|
## 8.0.0 - 2022-11-16
|
264
113
|
* [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
|
265
114
|
|
@@ -267,29 +116,30 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
267
116
|
|
268
117
|
"⚠️" symbol highlights breaking changes.
|
269
118
|
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
119
|
+
### Deprecated
|
120
|
+
- The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
|
121
|
+
``` ruby
|
122
|
+
# before
|
123
|
+
refund = Stripe::Refund.retrieve("re_123")
|
124
|
+
refund.description = "Refund description"
|
125
|
+
refund.save
|
126
|
+
|
127
|
+
# after
|
128
|
+
Stripe::Refund.update("re_123", description: "Refund description")
|
129
|
+
```
|
278
130
|
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
131
|
+
### ⚠️ Removed
|
132
|
+
- Removed deprecated `Sku` resource.
|
133
|
+
- Removed deprecated `Orders` resource.
|
134
|
+
- Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
|
135
|
+
```ruby
|
136
|
+
# before
|
137
|
+
Stripe::Subscription::delete("sub_12345")
|
283
138
|
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
* Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
|
139
|
+
# after
|
140
|
+
Stripe::Subscription::cancel("sub_12345")
|
141
|
+
```
|
288
142
|
|
289
|
-
## 7.2.0-beta.1 - 2022-08-23
|
290
|
-
* [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
|
291
|
-
- Updated stable APIs to the latest version
|
292
|
-
- `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)
|
293
143
|
|
294
144
|
## 7.1.0 - 2022-08-19
|
295
145
|
* [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
|
@@ -298,16 +148,6 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
298
148
|
* [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
|
299
149
|
* [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
|
300
150
|
|
301
|
-
## 7.1.0-beta.2 - 2022-08-11
|
302
|
-
* [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
|
303
|
-
- Updated stable APIs to the latest version
|
304
|
-
- Add `refund_payment` method to Terminal resource
|
305
|
-
|
306
|
-
## 7.1.0-beta.1 - 2022-08-03
|
307
|
-
* [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
|
308
|
-
- Updated stable APIs to the latest version
|
309
|
-
- Added the `Order` resource support
|
310
|
-
|
311
151
|
## 7.0.0 - 2022-08-02
|
312
152
|
|
313
153
|
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.
|
@@ -319,19 +159,21 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
319
159
|
* [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
|
320
160
|
* [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
|
321
161
|
|
322
|
-
|
323
|
-
*
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
*
|
333
|
-
|
334
|
-
*
|
162
|
+
### ⚠️ Changed
|
163
|
+
* `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.
|
164
|
+
* Update default bundle of CA certificates to April 26, 2022.
|
165
|
+
|
166
|
+
### Deprecated
|
167
|
+
* Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
|
168
|
+
|
169
|
+
### ⚠️ Removed
|
170
|
+
* Remove `details` method from `Issuing.Card` resource. The method was not supported.
|
171
|
+
* Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
|
172
|
+
* Remove `create` method from `ReportType` resource. The method was not supported.
|
173
|
+
* Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
|
174
|
+
* Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
|
175
|
+
* Remove ability to list `Card` resource for a `Recipient`.
|
176
|
+
* Remove `cancel` method from `Transfer` resource. The method was deprecated.
|
335
177
|
|
336
178
|
## 6.5.0 - 2022-06-29
|
337
179
|
* [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
|
@@ -361,6 +203,8 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
361
203
|
* 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`
|
362
204
|
* Add support for `retrieve_payment_method` method on resource `Customer`
|
363
205
|
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
|
206
|
+
|
207
|
+
|
364
208
|
|
365
209
|
## 6.0.0 - 2022-05-09
|
366
210
|
* [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
|
@@ -376,6 +220,7 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
376
220
|
## 5.55.0 - 2022-05-05
|
377
221
|
* [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
|
378
222
|
* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
|
223
|
+
|
379
224
|
|
380
225
|
## 5.54.0 - 2022-05-03
|
381
226
|
* [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
|
@@ -1406,4 +1251,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
|
|
1406
1251
|
<!--
|
1407
1252
|
# vim: set tw=0:
|
1408
1253
|
-->
|
1409
|
-
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v532
|
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
|
-
9.3.0
|
1
|
+
9.3.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
@@ -25,9 +25,6 @@ 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,
|
31
28
|
Card::OBJECT_NAME => Card,
|
32
29
|
CashBalance::OBJECT_NAME => CashBalance,
|
33
30
|
Charge::OBJECT_NAME => Charge,
|
@@ -39,7 +36,6 @@ module Stripe
|
|
39
36
|
Customer::OBJECT_NAME => Customer,
|
40
37
|
CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction,
|
41
38
|
CustomerCashBalanceTransaction::OBJECT_NAME => CustomerCashBalanceTransaction,
|
42
|
-
CustomerSession::OBJECT_NAME => CustomerSession,
|
43
39
|
Discount::OBJECT_NAME => Discount,
|
44
40
|
Dispute::OBJECT_NAME => Dispute,
|
45
41
|
EphemeralKey::OBJECT_NAME => EphemeralKey,
|
@@ -52,12 +48,8 @@ module Stripe
|
|
52
48
|
FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
|
53
49
|
FinancialConnections::AccountOwnership::OBJECT_NAME =>
|
54
50
|
FinancialConnections::AccountOwnership,
|
55
|
-
FinancialConnections::InferredBalance::OBJECT_NAME => FinancialConnections::InferredBalance,
|
56
51
|
FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
|
57
|
-
FinancialConnections::Transaction::OBJECT_NAME => FinancialConnections::Transaction,
|
58
52
|
FundingInstructions::OBJECT_NAME => FundingInstructions,
|
59
|
-
GiftCards::Card::OBJECT_NAME => GiftCards::Card,
|
60
|
-
GiftCards::Transaction::OBJECT_NAME => GiftCards::Transaction,
|
61
53
|
Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
|
62
54
|
Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
|
63
55
|
Invoice::OBJECT_NAME => Invoice,
|
@@ -65,15 +57,12 @@ module Stripe
|
|
65
57
|
InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
|
66
58
|
Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
|
67
59
|
Issuing::Card::OBJECT_NAME => Issuing::Card,
|
68
|
-
Issuing::CardBundle::OBJECT_NAME => Issuing::CardBundle,
|
69
|
-
Issuing::CardDesign::OBJECT_NAME => Issuing::CardDesign,
|
70
60
|
Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
|
71
61
|
Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
|
72
62
|
Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
|
73
63
|
LineItem::OBJECT_NAME => LineItem,
|
74
64
|
LoginLink::OBJECT_NAME => LoginLink,
|
75
65
|
Mandate::OBJECT_NAME => Mandate,
|
76
|
-
Order::OBJECT_NAME => Order,
|
77
66
|
PaymentIntent::OBJECT_NAME => PaymentIntent,
|
78
67
|
PaymentLink::OBJECT_NAME => PaymentLink,
|
79
68
|
PaymentMethod::OBJECT_NAME => PaymentMethod,
|
@@ -86,9 +75,6 @@ module Stripe
|
|
86
75
|
Product::OBJECT_NAME => Product,
|
87
76
|
PromotionCode::OBJECT_NAME => PromotionCode,
|
88
77
|
Quote::OBJECT_NAME => Quote,
|
89
|
-
QuotePhase::OBJECT_NAME => QuotePhase,
|
90
|
-
QuotePreviewInvoice::OBJECT_NAME => QuotePreviewInvoice,
|
91
|
-
QuotePreviewSchedule::OBJECT_NAME => QuotePreviewSchedule,
|
92
78
|
Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
|
93
79
|
Radar::ValueList::OBJECT_NAME => Radar::ValueList,
|
94
80
|
Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
|
@@ -108,8 +94,6 @@ module Stripe
|
|
108
94
|
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
109
95
|
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
|
110
96
|
Tax::CalculationLineItem::OBJECT_NAME => Tax::CalculationLineItem,
|
111
|
-
Tax::Form::OBJECT_NAME => Tax::Form,
|
112
|
-
Tax::Registration::OBJECT_NAME => Tax::Registration,
|
113
97
|
Tax::Settings::OBJECT_NAME => Tax::Settings,
|
114
98
|
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
|
115
99
|
Tax::TransactionLineItem::OBJECT_NAME => Tax::TransactionLineItem,
|
@@ -23,8 +23,7 @@ module Stripe
|
|
23
23
|
nested_resource_class_methods :capability,
|
24
24
|
operations: %i[retrieve update list],
|
25
25
|
resource_plural: "capabilities"
|
26
|
-
nested_resource_class_methods :person,
|
27
|
-
operations: %i[create retrieve update delete list]
|
26
|
+
nested_resource_class_methods :person, operations: %i[create retrieve update delete list]
|
28
27
|
|
29
28
|
def persons(params = {}, opts = {})
|
30
29
|
request_stripe_object(
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
# Balance transactions represent funds moving through your Stripe account.
|
6
|
-
#
|
6
|
+
# Stripe creates them for every type of transaction that enters or leaves your Stripe account balance.
|
7
7
|
#
|
8
8
|
# Related guide: [Balance transaction types](https://stripe.com/docs/reports/balance-transaction-types)
|
9
9
|
class BalanceTransaction < APIResource
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module Stripe
|
5
|
-
# This object represents a customer of your business.
|
5
|
+
# This object represents a customer of your business. Use it to create recurring charges and track payments that belong to the same customer.
|
6
6
|
#
|
7
7
|
# Related guide: [Save a card during payment](https://stripe.com/docs/payments/save-during-payment)
|
8
8
|
class Customer < APIResource
|
@@ -15,12 +15,9 @@ module Stripe
|
|
15
15
|
|
16
16
|
OBJECT_NAME = "customer"
|
17
17
|
|
18
|
-
nested_resource_class_methods :balance_transaction,
|
19
|
-
|
20
|
-
nested_resource_class_methods :
|
21
|
-
operations: %i[retrieve list]
|
22
|
-
nested_resource_class_methods :tax_id,
|
23
|
-
operations: %i[create retrieve delete list]
|
18
|
+
nested_resource_class_methods :balance_transaction, operations: %i[create retrieve update list]
|
19
|
+
nested_resource_class_methods :cash_balance_transaction, operations: %i[retrieve list]
|
20
|
+
nested_resource_class_methods :tax_id, operations: %i[create retrieve delete list]
|
24
21
|
|
25
22
|
def create_funding_instructions(params = {}, opts = {})
|
26
23
|
request_stripe_object(
|
@@ -85,12 +82,7 @@ module Stripe
|
|
85
82
|
)
|
86
83
|
end
|
87
84
|
|
88
|
-
def self.retrieve_payment_method(
|
89
|
-
customer,
|
90
|
-
payment_method,
|
91
|
-
params = {},
|
92
|
-
opts = {}
|
93
|
-
)
|
85
|
+
def self.retrieve_payment_method(customer, payment_method, params = {}, opts = {})
|
94
86
|
request_stripe_object(
|
95
87
|
method: :get,
|
96
88
|
path: format("/v1/customers/%<customer>s/payment_methods/%<payment_method>s", { customer: CGI.escape(customer), payment_method: CGI.escape(payment_method) }),
|
@@ -3,10 +3,8 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
# A dispute occurs when a customer questions your charge with their card issuer.
|
6
|
-
# When this happens, you
|
7
|
-
# evidence that shows that the charge is legitimate.
|
8
|
-
# information about the dispute process in our [Disputes and
|
9
|
-
# Fraud](https://stripe.com/docs/disputes) documentation.
|
6
|
+
# When this happens, you have the opportunity to respond to the dispute with
|
7
|
+
# evidence that shows that the charge is legitimate.
|
10
8
|
#
|
11
9
|
# Related guide: [Disputes and fraud](https://stripe.com/docs/disputes)
|
12
10
|
class Dispute < APIResource
|
@@ -5,32 +5,33 @@ module Stripe
|
|
5
5
|
# Events are our way of letting you know when something interesting happens in
|
6
6
|
# your account. When an interesting event occurs, we create a new `Event`
|
7
7
|
# object. For example, when a charge succeeds, we create a `charge.succeeded`
|
8
|
-
# event
|
9
|
-
# `invoice.payment_failed` event.
|
10
|
-
# events
|
11
|
-
# customer, you
|
8
|
+
# event, and when an invoice payment attempt fails, we create an
|
9
|
+
# `invoice.payment_failed` event. Certain API requests might create multiple
|
10
|
+
# events. For example, if you create a new subscription for a
|
11
|
+
# customer, you receive both a `customer.subscription.created` event and a
|
12
12
|
# `charge.succeeded` event.
|
13
13
|
#
|
14
|
-
# Events occur when the state of another API resource changes. The
|
15
|
-
# resource at the time of the change
|
16
|
-
# example, a `charge.succeeded` event
|
17
|
-
# `invoice.payment_failed` event
|
14
|
+
# Events occur when the state of another API resource changes. The event's data
|
15
|
+
# field embeds the resource's state at the time of the change. For
|
16
|
+
# example, a `charge.succeeded` event contains a charge, and an
|
17
|
+
# `invoice.payment_failed` event contains an invoice.
|
18
18
|
#
|
19
19
|
# As with other API resources, you can use endpoints to retrieve an
|
20
20
|
# [individual event](https://stripe.com/docs/api#retrieve_event) or a [list of events](https://stripe.com/docs/api#list_events)
|
21
21
|
# from the API. We also have a separate
|
22
22
|
# [webhooks](http://en.wikipedia.org/wiki/Webhook) system for sending the
|
23
|
-
# `Event` objects directly to an endpoint on your server.
|
24
|
-
# in your
|
25
|
-
# [account settings](https://dashboard.stripe.com/account/webhooks)
|
26
|
-
#
|
23
|
+
# `Event` objects directly to an endpoint on your server. You can manage
|
24
|
+
# webhooks in your
|
25
|
+
# [account settings](https://dashboard.stripe.com/account/webhooks). Learn how
|
26
|
+
# to [listen for events]
|
27
|
+
# (/docs/webhooks) so that your integration can automatically trigger reactions.
|
27
28
|
#
|
28
|
-
# When using [Connect](https://stripe.com/docs/connect), you can also receive notifications
|
29
|
-
#
|
29
|
+
# When using [Connect](https://stripe.com/docs/connect), you can also receive event notifications
|
30
|
+
# that occur in connected accounts. For these events, there's an
|
30
31
|
# additional `account` attribute in the received `Event` object.
|
31
32
|
#
|
32
|
-
#
|
33
|
-
#
|
33
|
+
# We only guarantee access to events through the [Retrieve Event API](https://stripe.com/docs/api#retrieve_event)
|
34
|
+
# for 30 days.
|
34
35
|
class Event < APIResource
|
35
36
|
extend Stripe::APIOperations::List
|
36
37
|
|