Compare commits

...

101 Commits

Author SHA1 Message Date
Annie Li
1d74e42c87 Reset version to 8.3.0-beta.1 2023-02-16 14:51:55 -08:00
Annie Li
30fa39cb6a Include latest changes from the master branch 2023-02-16 14:51:55 -08:00
Annie Li
ae24837bb5 Set version to 8.2.0 to simplify merge 2023-02-16 14:51:55 -08:00
Richard Marmorstein
696be38196 Bump version to 8.3.0-beta.1 2023-02-02 17:52:41 -06:00
Richard Marmorstein
ff853fda95
Merge pull request #1174 from stripe/latest-codegen-beta
API Updates for beta branch
2023-02-02 15:50:52 -08:00
Richard Marmorstein
d10398a825 Codegen for openapi v223 2023-02-02 15:06:51 -06:00
Richard Marmorstein
6f70bd8696 Reset version to 8.2.0-beta.3 2023-02-02 15:06:37 -06:00
Richard Marmorstein
1d21c60802 Include latest changes from the master branch 2023-02-02 15:06:37 -06:00
Richard Marmorstein
b9c10b9c2f Set version to 8.2.0 to simplify merge 2023-02-02 15:06:37 -06:00
Annie Li
446ffc7a22 Bump version to 8.2.0-beta.3 2023-01-26 16:15:28 -08:00
anniel-stripe
58db6d32ef
Merge pull request #1172 from stripe/latest-codegen-beta
API Updates for beta branch
2023-01-26 16:13:01 -08:00
Annie Li
9a4dfdcb2f Codegen for openapi v221 2023-01-26 10:51:25 -08:00
Annie Li
50bbc0df17 Reset version to 8.2.0-beta.2 2023-01-26 10:51:08 -08:00
Annie Li
8226f0ad99 Include latest changes from the master branch 2023-01-26 10:51:08 -08:00
Annie Li
43fa8f5af7 Set version to 8.1.0 to simplify merge 2023-01-26 10:51:08 -08:00
Pavel Krymets
0e61789557 Bump version to 8.2.0-beta.2 2023-01-19 14:35:39 -08:00
pakrym-stripe
cfe69c131e
Merge pull request #1170 from stripe/latest-codegen-beta
API Updates for beta branch
2023-01-19 14:30:44 -08:00
Pavel Krymets
7bf9cace9e Codegen for openapi v219 2023-01-19 12:27:31 -08:00
Pavel Krymets
d7eac6010d Reset version to 8.2.0-beta.1 2023-01-19 12:27:16 -08:00
Pavel Krymets
7d91cb83d9 Include latest changes from the master branch 2023-01-19 12:27:16 -08:00
Pavel Krymets
ce4946f5d8 Set version to 8.1.0 to simplify merge 2023-01-19 12:27:16 -08:00
Richard Marmorstein
15415fcbf3 Bump version to 8.2.0-beta.1 2023-01-12 13:41:17 -06:00
Richard Marmorstein
f8acdb5f6a
Merge pull request #1167 from stripe/latest-codegen-beta
API Updates for beta branch
2023-01-12 10:56:35 -08:00
Richard Marmorstein
fe794f4868 Codegen for openapi v218 2023-01-12 11:27:18 -06:00
Richard Marmorstein
2b841bc109 Reset version to 8.1.0-beta.4 2023-01-12 11:27:02 -06:00
Richard Marmorstein
1835883848 Include latest changes from the master branch 2023-01-12 11:27:02 -06:00
Richard Marmorstein
e11400adc8 Set version to 8.1.0 to simplify merge 2023-01-12 11:27:02 -06:00
Annie Li
5ea85d0867 Bump version to 8.1.0-beta.4 2023-01-05 15:03:20 -08:00
anniel-stripe
600b1965f6
Merge pull request #1164 from stripe/latest-codegen-beta
API Updates for beta branch
2023-01-05 14:46:10 -08:00
Annie Li
5fdd180667 Codegen for openapi v217 2023-01-05 11:43:34 -08:00
Annie Li
97e24e9e57 Reset version to 8.1.0-beta.3 2023-01-05 11:43:18 -08:00
Annie Li
9531f57236 Set version to 8.0.0 to simplify merge 2023-01-05 11:43:18 -08:00
Richard Marmorstein
094574d2fe Bump version to 8.1.0-beta.3 2022-12-22 17:29:09 -06:00
Richard Marmorstein
cff25d0c8b
API Updates for beta branch (#1158)
* Set version to 8.0.0 to simplify merge

* Reset version to 8.1.0-beta.2

* Codegen for openapi v216
2022-12-22 13:25:13 -08:00
Annie Li
0795c1d3d0 Bump version to 8.1.0-beta.2 2022-12-15 16:05:43 -08:00
anniel-stripe
802a1a7aa6
Merge pull request #1156 from stripe/latest-codegen-beta
API Updates for beta branch
2022-12-15 15:51:48 -08:00
Annie Li
13b0bca995 Codegen for openapi v215 2022-12-15 15:42:16 -08:00
Annie Li
51d364c844 Reset version to 8.1.0-beta.1 2022-12-15 15:41:58 -08:00
Annie Li
f4c6f2b304 Set version to 8.0.0 to simplify merge 2022-12-15 15:41:58 -08:00
anniel-stripe
b64fe42043
API Updates for beta branch (#1155)
* Set version to 8.0.0 to simplify merge

* Reset version to 8.1.0-beta.1

* Codegen for openapi v214
2022-12-15 14:53:06 -08:00
Pavel Krymets
586e685e63 Bump version to 8.1.0-beta.1 2022-12-08 14:55:41 -08:00
pakrym-stripe
3b5c725539
Merge pull request #1153 from stripe/latest-codegen-beta
API Updates for beta branch
2022-12-08 12:18:01 -08:00
Pavel Krymets
ea91a6f0b9 Codegen for openapi v212 2022-12-08 12:08:39 -08:00
Pavel Krymets
21f31edff4 Reset version to 7.2.0-beta.5 2022-12-08 12:08:24 -08:00
Pavel Krymets
a11f1ffd2a Include latest changes from the master branch 2022-12-08 12:08:24 -08:00
Pavel Krymets
4bd92239d5 Set version to 8.0.0 to simplify merge 2022-12-08 12:08:24 -08:00
anniel-stripe
c261f6bbb6
Merge pull request #1146 from stripe/latest-codegen-beta
API Updates for beta branch
2022-11-10 14:49:10 -08:00
Annie Li
f45fc7d703 Reset version to 7.2.0-beta.5 2022-11-10 12:10:48 -08:00
Annie Li
5cd522c007 Include latest changes from the master branch 2022-11-10 12:10:48 -08:00
Annie Li
e6bda8356d Set version to 7.1.0 to simplify merge 2022-11-10 12:10:48 -08:00
Kamil Pajdzik
2354633a92 Bump version to 7.2.0-beta.5 2022-11-02 13:07:25 -07:00
Kamil Pajdzik
549a73544f
Merge pull request #1139 from stripe/latest-codegen-beta
API Updates for beta branch
2022-11-02 08:58:59 -07:00
Kamil Pajdzik
25833c1408 Codegen for openapi v205 2022-11-01 16:18:04 -07:00
Kamil Pajdzik
a59b57c3d1 Reset version to 7.2.0-beta.4 2022-11-01 16:17:47 -07:00
Kamil Pajdzik
63d447df77 Include latest changes from the master branch 2022-11-01 16:17:47 -07:00
Kamil Pajdzik
5cd6f9f9bc Set version to 7.1.0 to simplify merge 2022-11-01 16:17:47 -07:00
Richard Marmorstein
ffa3747bdf
Merge pull request #1135 from stripe/latest-codegen-beta
API Updates for beta branch
2022-10-14 10:43:19 -07:00
Richard Marmorstein
ddf79610d9 Fix formatting 2022-10-14 10:26:51 -07:00
Richard Marmorstein
edad946244 Codegen for openapi v202 2022-10-14 10:08:49 -07:00
Richard Marmorstein
e3785d5893 Reset version to 7.2.0-beta.4 2022-10-14 10:08:42 -07:00
Richard Marmorstein
2062e988eb Set version to 7.1.0 to simplify merge 2022-10-14 10:08:42 -07:00
Kamil Pajdzik
0bdc688516 Bump version to 7.2.0-beta.4 2022-10-07 08:48:11 -07:00
Pavel Krymets
82ac9f2720 Bump version to 7.2.0-beta.3 2022-09-26 16:32:21 -07:00
pakrym-stripe
7381eb02a6
Merge pull request #1129 from stripe/latest-codegen-beta
API Updates for beta branch
2022-09-26 13:35:10 -07:00
Pavel Krymets
6720fc8d3f Codegen for openapi v196 2022-09-26 12:26:38 -07:00
Pavel Krymets
35a29332c5 Reset version to 7.2.0-beta.2 2022-09-26 12:26:08 -07:00
Pavel Krymets
519d68ce10 Include latest changes from the master branch 2022-09-26 12:26:08 -07:00
Pavel Krymets
b95ea4ba27 Set version to 7.1.0 to simplify merge 2022-09-26 12:26:07 -07:00
Dominic Charley-Roy
318e244a76 Bump version to 7.2.0-beta.2 2022-08-26 11:16:19 -04:00
Dominic Charley-Roy
bb1c995e93
API Updates for beta branch (#1127) 2022-08-25 10:02:19 -04:00
Pavel Krymets
0f12721697 Bump version to 7.2.0-beta.1 2022-08-23 11:57:55 -07:00
pakrym-stripe
671163245a
Merge pull request #1122 from stripe/latest-codegen-beta
API Updates for beta branch
2022-08-23 10:25:10 -07:00
Pavel Krymets
486bee15a8 Codegen for openapi v184 2022-08-23 05:35:55 -07:00
Pavel Krymets
fdf5be66f5 Reset version to 7.1.0-beta.2 2022-08-23 05:35:23 -07:00
Pavel Krymets
c732841fd3 Include latest changes from the master branch 2022-08-23 05:35:23 -07:00
Pavel Krymets
22db70b479 Set version to 7.1.0 to simplify merge 2022-08-23 05:35:23 -07:00
Pavel Krymets
2db4fd9d06 Bump version to 7.1.0-beta.2 2022-08-11 15:42:00 -07:00
pakrym-stripe
6797f906e1
Merge pull request #1113 from stripe/latest-codegen-beta
API Updates for beta branch
2022-08-11 15:39:47 -07:00
Pavel Krymets
59f2d4d0fe suppress linting error 2022-08-11 15:03:49 -07:00
Pavel Krymets
0d1b570bfa Codegen for openapi v178 2022-08-11 14:50:55 -07:00
Pavel Krymets
d7d3c1b425 Reset version to 7.1.0-beta.1 2022-08-11 14:50:25 -07:00
Pavel Krymets
7df619de69 Set version to 7.0.0 to simplify merge 2022-08-11 14:50:24 -07:00
Pavel Krymets
f649ed3824 Bump version to 7.1.0-beta.1 2022-08-03 14:04:17 -07:00
pakrym-stripe
32a95902cc
Merge pull request #1107 from stripe/latest-codegen-beta
API Updates for beta branch
2022-08-03 13:49:41 -07:00
Pavel Krymets
bdcfe6cc33 Codegen for openapi v175 2022-08-02 13:42:48 -07:00
Pavel Krymets
5e1c4a2302 Reset version to 6.6.0-beta.1 2022-08-02 13:42:16 -07:00
Pavel Krymets
54a073783f Include latest changes from the master branch 2022-08-02 13:42:16 -07:00
Pavel Krymets
e6a07ae658 Set version to 7.0.0 to simplify merge 2022-08-02 13:42:16 -07:00
Dominic Charley-Roy
588ed3b5e7 Bump version to 6.6.0-beta.1 2022-07-22 14:01:30 -04:00
Dominic Charley-Roy
de33cde125
API Updates for beta branch (#1100) 2022-07-21 17:35:24 -04:00
pakrym-stripe
d849ec3b14
Merge pull request #1097 from stripe/latest-codegen-beta
API Updates for beta branch
2022-07-19 16:32:55 -07:00
Pavel Krymets
8b5f78aa6a Codegen for openapi v166 2022-07-19 14:35:01 -07:00
Pavel Krymets
7f6ba1c35c Reset version to 6.4.0 2022-07-19 14:34:31 -07:00
Pavel Krymets
e55a2559ae Set version to 6.5.0 to simplify merge 2022-07-19 14:34:31 -07:00
pakrym-stripe
0b00266be1
Merge pull request #1093 from stripe/latest-codegen-beta
API Updates for beta branch
2022-07-07 12:07:07 -07:00
Pavel Krymets
d0cd4fbaa6 Codegen for openapi v163 2022-07-07 11:05:19 -07:00
Pavel Krymets
979da6f84b Reset version to 6.4.0 2022-07-07 11:04:51 -07:00
Pavel Krymets
d95c518a3c Include latest changes from the master branch 2022-07-07 11:04:51 -07:00
Pavel Krymets
83c773f61e Set version to 6.5.0 to simplify merge 2022-07-07 11:04:51 -07:00
pakrym-stripe
d9f719ba01
API Updates for beta branch (#1085)
* fix: Update logging to coerce ASCII-8BIT into UTF-8. (#1076)

* Add release/* and feature/* to PR CI triggers (#1080)

* Add next-major-release to PR CI triggers

* Update branch names

* Rename release to sdk-release in CI triggers

* API Updates (#1084)

* Bump version to 6.5.0

* Set version to 6.5.0 to simplify merge

* Reset version to 6.4.0

Co-authored-by: Dominic Charley-Roy <78050200+dcr-stripe@users.noreply.github.com>
Co-authored-by: Kamil Pajdzik <99290280+kamil-stripe@users.noreply.github.com>
Co-authored-by: Dominic Charley-Roy <dcr@stripe.com>
2022-06-30 13:12:17 -07:00
pakrym-stripe
73d10e8557
Use the generated API version (#1075) 2022-06-21 13:42:58 -07:00
25 changed files with 684 additions and 42 deletions

View File

@ -1,13 +1,61 @@
# Changelog # Changelog
## 8.3.0-beta.1 - 2023-02-02
* [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
* Updated stable APIs to the latest version
* Add support for new resource `FinancialConnections.Transaction`
* Add support for `list` method on resource `Transaction`
## 8.2.0 - 2023-02-02 ## 8.2.0 - 2023-02-02
* [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
* Add support for `resume` method on resource `Subscription` * Add support for `resume` method on resource `Subscription`
* [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from` * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
## 8.2.0-beta.3 - 2023-01-26
* [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
* Updated stable APIs to the latest version
* Add support for `list_transactions` method on resource `Tax.Transaction`
## 8.2.0-beta.2 - 2023-01-19
* [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
* Updated stable APIs to the latest version
* Add support for `Tax.Settings` resource.
## 8.2.0-beta.1 - 2023-01-12
* [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
* Updated stable APIs to the latest version
* Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
* Add support for `Tax::Register` resource
## 8.1.0 - 2023-01-12 ## 8.1.0 - 2023-01-12
* [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
## 8.1.0-beta.4 - 2023-01-05
* [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
* Updated stable APIs to the latest version
* Add support for `mark_stale_quote` method on resource `Quote`
## 8.1.0-beta.3 - 2022-12-22
* [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
* Updated stable APIs to the latest version
* Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
## 8.1.0-beta.2 - 2022-12-15
* [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
* Updated stable APIs to the latest version
* Add support for new resources `TaxCalculation`, and `TaxTransaction`
* Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
* Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
* [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
* Updated stable APIs to the latest version
* Add support for new resource `QuoteLine`.
## 8.1.0-beta.1 - 2022-12-08
* [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
* Updated stable APIs to the latest version
* [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
* Updated stable APIs to the latest version
## 8.0.0 - 2022-11-16 ## 8.0.0 - 2022-11-16
* [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
@ -15,30 +63,29 @@ Breaking changes that arose during code generation of the library that we postpo
"⚠️" symbol highlights breaking changes. "⚠️" symbol highlights breaking changes.
### Deprecated ## 7.2.0-beta.5 - 2022-11-02
- The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it. * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
``` ruby * Updated beta APIs to the latest stable version
# before * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
refund = Stripe::Refund.retrieve("re_123") * Updated stable APIs to the latest version
refund.description = "Refund description"
refund.save
# after ## 7.2.0-beta.4 - 2022-10-07
Stripe::Refund.update("re_123", description: "Refund description") * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
```
### ⚠️ Removed ## 7.2.0-beta.3 - 2022-09-26
- Removed deprecated `Sku` resource. * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
- Removed deprecated `Orders` resource. * Updated stable APIs to the latest version
- Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead. * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
```ruby
# before
Stripe::Subscription::delete("sub_12345")
# after ## 7.2.0-beta.2 - 2022-08-26
Stripe::Subscription::cancel("sub_12345") * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
``` * Updated stable APIs to the latest version
* Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
## 7.2.0-beta.1 - 2022-08-23
* [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
- Updated stable APIs to the latest version
- `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)
## 7.1.0 - 2022-08-19 ## 7.1.0 - 2022-08-19
* [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@ -47,6 +94,16 @@ Breaking changes that arose during code generation of the library that we postpo
* [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config. * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
* [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
## 7.1.0-beta.2 - 2022-08-11
* [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
- Updated stable APIs to the latest version
- Add `refund_payment` method to Terminal resource
## 7.1.0-beta.1 - 2022-08-03
* [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
- Updated stable APIs to the latest version
- Added the `Order` resource support
## 7.0.0 - 2022-08-02 ## 7.0.0 - 2022-08-02
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. 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.
@ -58,21 +115,19 @@ Breaking changes that arose during code generation of the library that we postpo
* [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
* [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
### ⚠️ Changed ## 6.6.0-beta.1 - 2022-07-22
* `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. * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
* Update default bundle of CA certificates to April 26, 2022. - Updated stable APIs to the latest version
- Add `QuotePhase` resource
### Deprecated * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
* Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead. - Updated stable APIs to the latest version
- Add `SubscriptionSchedule.amend` method.
### ⚠️ Removed * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
* Remove `details` method from `Issuing.Card` resource. The method was not supported. - Include `server_side_confirmation_beta=v1` beta
* Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual. - Add `secretKeyConfirmation` to `PaymentIntent`
* Remove `create` method from `ReportType` resource. The method was not supported. * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
* Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead. - Updated stable APIs to the latest version
* Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use. * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
* Remove ability to list `Card` resource for a `Recipient`.
* Remove `cancel` method from `Transfer` resource. The method was deprecated.
## 6.5.0 - 2022-06-29 ## 6.5.0 - 2022-06-29
* [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@ -103,8 +158,6 @@ Breaking changes that arose during code generation of the library that we postpo
* Add support for `retrieve_payment_method` method on resource `Customer` * Add support for `retrieve_payment_method` method on resource `Customer`
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account` * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
## 6.0.0 - 2022-05-09 ## 6.0.0 - 2022-05-09
* [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-Guide-for-v6) contains more information. Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-Guide-for-v6) contains more information.
@ -120,7 +173,6 @@ Breaking changes that arose during code generation of the library that we postpo
* [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session` * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
## 5.54.0 - 2022-05-03 ## 5.54.0 - 2022-05-03
* [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
* Add support for new resource `CashBalance` * Add support for new resource `CashBalance`
@ -1150,3 +1202,4 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
<!-- <!--
# vim: set tw=0: # vim: set tw=0:
--> -->

View File

@ -1 +1 @@
8.2.0 8.3.0-beta.1

View File

@ -15,6 +15,7 @@ require "uri"
require "forwardable" require "forwardable"
# Version # Version
require "stripe/api_version"
require "stripe/version" require "stripe/version"
# API operations # API operations

View File

@ -14,6 +14,7 @@ module Stripe
# business objects # business objects
Account::OBJECT_NAME => Account, Account::OBJECT_NAME => Account,
AccountLink::OBJECT_NAME => AccountLink, AccountLink::OBJECT_NAME => AccountLink,
AccountSession::OBJECT_NAME => AccountSession,
ApplePayDomain::OBJECT_NAME => ApplePayDomain, ApplePayDomain::OBJECT_NAME => ApplePayDomain,
ApplicationFee::OBJECT_NAME => ApplicationFee, ApplicationFee::OBJECT_NAME => ApplicationFee,
ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund, ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund,
@ -24,6 +25,9 @@ module Stripe
BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration, BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration,
BillingPortal::Session::OBJECT_NAME => BillingPortal::Session, BillingPortal::Session::OBJECT_NAME => BillingPortal::Session,
Capability::OBJECT_NAME => Capability, Capability::OBJECT_NAME => Capability,
Capital::FinancingOffer::OBJECT_NAME => Capital::FinancingOffer,
Capital::FinancingSummary::OBJECT_NAME => Capital::FinancingSummary,
Capital::FinancingTransaction::OBJECT_NAME => Capital::FinancingTransaction,
Card::OBJECT_NAME => Card, Card::OBJECT_NAME => Card,
CashBalance::OBJECT_NAME => CashBalance, CashBalance::OBJECT_NAME => CashBalance,
Charge::OBJECT_NAME => Charge, Charge::OBJECT_NAME => Charge,
@ -47,8 +51,12 @@ module Stripe
FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner, FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
FinancialConnections::AccountOwnership::OBJECT_NAME => FinancialConnections::AccountOwnership::OBJECT_NAME =>
FinancialConnections::AccountOwnership, FinancialConnections::AccountOwnership,
FinancialConnections::InferredBalance::OBJECT_NAME => FinancialConnections::InferredBalance,
FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session, FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
FinancialConnections::Transaction::OBJECT_NAME => FinancialConnections::Transaction,
FundingInstructions::OBJECT_NAME => FundingInstructions, FundingInstructions::OBJECT_NAME => FundingInstructions,
GiftCards::Card::OBJECT_NAME => GiftCards::Card,
GiftCards::Transaction::OBJECT_NAME => GiftCards::Transaction,
Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport, Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession, Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
Invoice::OBJECT_NAME => Invoice, Invoice::OBJECT_NAME => Invoice,
@ -62,6 +70,7 @@ module Stripe
LineItem::OBJECT_NAME => LineItem, LineItem::OBJECT_NAME => LineItem,
LoginLink::OBJECT_NAME => LoginLink, LoginLink::OBJECT_NAME => LoginLink,
Mandate::OBJECT_NAME => Mandate, Mandate::OBJECT_NAME => Mandate,
Order::OBJECT_NAME => Order,
PaymentIntent::OBJECT_NAME => PaymentIntent, PaymentIntent::OBJECT_NAME => PaymentIntent,
PaymentLink::OBJECT_NAME => PaymentLink, PaymentLink::OBJECT_NAME => PaymentLink,
PaymentMethod::OBJECT_NAME => PaymentMethod, PaymentMethod::OBJECT_NAME => PaymentMethod,
@ -72,6 +81,7 @@ module Stripe
Product::OBJECT_NAME => Product, Product::OBJECT_NAME => Product,
PromotionCode::OBJECT_NAME => PromotionCode, PromotionCode::OBJECT_NAME => PromotionCode,
Quote::OBJECT_NAME => Quote, Quote::OBJECT_NAME => Quote,
QuotePhase::OBJECT_NAME => QuotePhase,
Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning, Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
Radar::ValueList::OBJECT_NAME => Radar::ValueList, Radar::ValueList::OBJECT_NAME => Radar::ValueList,
Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem, Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@ -89,6 +99,10 @@ module Stripe
Subscription::OBJECT_NAME => Subscription, Subscription::OBJECT_NAME => Subscription,
SubscriptionItem::OBJECT_NAME => SubscriptionItem, SubscriptionItem::OBJECT_NAME => SubscriptionItem,
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule, SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
Tax::Registration::OBJECT_NAME => Tax::Registration,
Tax::Settings::OBJECT_NAME => Tax::Settings,
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
TaxCode::OBJECT_NAME => TaxCode, TaxCode::OBJECT_NAME => TaxCode,
TaxId::OBJECT_NAME => TaxId, TaxId::OBJECT_NAME => TaxId,
TaxRate::OBJECT_NAME => TaxRate, TaxRate::OBJECT_NAME => TaxRate,

View File

@ -3,6 +3,7 @@
require "stripe/resources/account" require "stripe/resources/account"
require "stripe/resources/account_link" require "stripe/resources/account_link"
require "stripe/resources/account_session"
require "stripe/resources/apple_pay_domain" require "stripe/resources/apple_pay_domain"
require "stripe/resources/application_fee" require "stripe/resources/application_fee"
require "stripe/resources/application_fee_refund" require "stripe/resources/application_fee_refund"
@ -13,6 +14,9 @@ require "stripe/resources/bank_account"
require "stripe/resources/billing_portal/configuration" require "stripe/resources/billing_portal/configuration"
require "stripe/resources/billing_portal/session" require "stripe/resources/billing_portal/session"
require "stripe/resources/capability" require "stripe/resources/capability"
require "stripe/resources/capital/financing_offer"
require "stripe/resources/capital/financing_summary"
require "stripe/resources/capital/financing_transaction"
require "stripe/resources/card" require "stripe/resources/card"
require "stripe/resources/cash_balance" require "stripe/resources/cash_balance"
require "stripe/resources/charge" require "stripe/resources/charge"
@ -34,8 +38,12 @@ require "stripe/resources/file_link"
require "stripe/resources/financial_connections/account" require "stripe/resources/financial_connections/account"
require "stripe/resources/financial_connections/account_owner" require "stripe/resources/financial_connections/account_owner"
require "stripe/resources/financial_connections/account_ownership" require "stripe/resources/financial_connections/account_ownership"
require "stripe/resources/financial_connections/inferred_balance"
require "stripe/resources/financial_connections/session" require "stripe/resources/financial_connections/session"
require "stripe/resources/financial_connections/transaction"
require "stripe/resources/funding_instructions" require "stripe/resources/funding_instructions"
require "stripe/resources/gift_cards/card"
require "stripe/resources/gift_cards/transaction"
require "stripe/resources/identity/verification_report" require "stripe/resources/identity/verification_report"
require "stripe/resources/identity/verification_session" require "stripe/resources/identity/verification_session"
require "stripe/resources/invoice" require "stripe/resources/invoice"
@ -49,6 +57,7 @@ require "stripe/resources/issuing/transaction"
require "stripe/resources/line_item" require "stripe/resources/line_item"
require "stripe/resources/login_link" require "stripe/resources/login_link"
require "stripe/resources/mandate" require "stripe/resources/mandate"
require "stripe/resources/order"
require "stripe/resources/payment_intent" require "stripe/resources/payment_intent"
require "stripe/resources/payment_link" require "stripe/resources/payment_link"
require "stripe/resources/payment_method" require "stripe/resources/payment_method"
@ -59,6 +68,7 @@ require "stripe/resources/price"
require "stripe/resources/product" require "stripe/resources/product"
require "stripe/resources/promotion_code" require "stripe/resources/promotion_code"
require "stripe/resources/quote" require "stripe/resources/quote"
require "stripe/resources/quote_phase"
require "stripe/resources/radar/early_fraud_warning" require "stripe/resources/radar/early_fraud_warning"
require "stripe/resources/radar/value_list" require "stripe/resources/radar/value_list"
require "stripe/resources/radar/value_list_item" require "stripe/resources/radar/value_list_item"
@ -76,6 +86,10 @@ require "stripe/resources/source_transaction"
require "stripe/resources/subscription" require "stripe/resources/subscription"
require "stripe/resources/subscription_item" require "stripe/resources/subscription_item"
require "stripe/resources/subscription_schedule" require "stripe/resources/subscription_schedule"
require "stripe/resources/tax/calculation"
require "stripe/resources/tax/registration"
require "stripe/resources/tax/settings"
require "stripe/resources/tax/transaction"
require "stripe/resources/tax_code" require "stripe/resources/tax_code"
require "stripe/resources/tax_id" require "stripe/resources/tax_id"
require "stripe/resources/tax_rate" require "stripe/resources/tax_rate"

View File

@ -0,0 +1,17 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
# An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded UIs.
#
# We recommend that you create an AccountSession each time you need to display an embedded UI
# to your user. Do not save AccountSessions to your database as they expire relatively
# quickly, and cannot be used more than once.
#
# Related guide: [Connect embedded UIs](https://stripe.com/docs/connect/get-started-connect-embedded-uis).
class AccountSession < APIResource
extend Stripe::APIOperations::Create
OBJECT_NAME = "account_session"
end
end

View File

@ -0,0 +1,32 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Capital
# This is an object representing an offer of financing from
# Stripe Capital to a Connect subaccount.
class FinancingOffer < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "capital.financing_offer"
def mark_delivered(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def self.mark_delivered(financing_offer, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }),
params: params,
opts: opts
)
end
end
end
end

View File

@ -0,0 +1,12 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Capital
# A financing object describes an account's current financing state. Used by Connect
# platforms to read the state of Capital offered to their connected accounts.
class FinancingSummary < SingletonAPIResource
OBJECT_NAME = "capital.financing_summary"
end
end
end

View File

@ -0,0 +1,13 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Capital
# This is an object representing the details of a transaction on a Capital financing object.
class FinancingTransaction < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "capital.financing_transaction"
end
end
end

View File

@ -6,9 +6,12 @@ module Stripe
# A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access. # A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access.
class Account < APIResource class Account < APIResource
extend Stripe::APIOperations::List extend Stripe::APIOperations::List
extend Stripe::APIOperations::NestedResource
OBJECT_NAME = "financial_connections.account" OBJECT_NAME = "financial_connections.account"
nested_resource_class_methods :inferred_balance, operations: %i[list]
def disconnect(params = {}, opts = {}) def disconnect(params = {}, opts = {})
request_stripe_object( request_stripe_object(
method: :post, method: :post,

View File

@ -0,0 +1,13 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module FinancialConnections
# A historical balance for the account on a particular day. It may be sourced from a balance snapshot provided by a financial institution, or inferred using transactions data.
class InferredBalance < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "financial_connections.account_inferred_balance"
end
end
end

View File

@ -0,0 +1,13 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module FinancialConnections
# A Transaction represents a real transaction that affects a Financial Connections Account balance.
class Transaction < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "financial_connections.transaction"
end
end
end

View File

@ -0,0 +1,25 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module GiftCards
# A gift card represents a single gift card owned by a customer, including the
# remaining balance, gift card code, and whether or not it is active.
class Card < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
OBJECT_NAME = "gift_cards.card"
def self.validate(params = {}, opts = {})
request_stripe_object(
method: :post,
path: "/v1/gift_cards/cards/validate",
params: params,
opts: opts
)
end
end
end
end

View File

@ -0,0 +1,56 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module GiftCards
# A gift card transaction represents a single transaction on a referenced gift card.
# A transaction is in one of three states, `confirmed`, `held` or `canceled`. A `confirmed`
# transaction is one that has added/deducted funds. A `held` transaction has created a
# temporary hold on funds, which can then be cancelled or confirmed. A `held` transaction
# can be confirmed into a `confirmed` transaction, or canceled into a `canceled` transaction.
# A `canceled` transaction has no effect on a gift card's balance.
class Transaction < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
OBJECT_NAME = "gift_cards.transaction"
def cancel(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/gift_cards/transactions/%<id>s/cancel", { id: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def confirm(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/gift_cards/transactions/%<id>s/confirm", { id: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def self.cancel(id, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/gift_cards/transactions/%<id>s/cancel", { id: CGI.escape(id) }),
params: params,
opts: opts
)
end
def self.confirm(id, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/gift_cards/transactions/%<id>s/confirm", { id: CGI.escape(id) }),
params: params,
opts: opts
)
end
end
end
end

View File

@ -0,0 +1,89 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
# An Order describes a purchase being made by a customer, including the
# products & quantities being purchased, the order status, the payment information,
# and the billing/shipping details.
#
# Related guide: [Orders overview](https://stripe.com/docs/orders)
class Order < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
OBJECT_NAME = "order"
def cancel(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/orders/%<id>s/cancel", { id: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def list_line_items(params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/orders/%<id>s/line_items", { id: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def reopen(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/orders/%<id>s/reopen", { id: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def submit(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/orders/%<id>s/submit", { id: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def self.cancel(id, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/orders/%<id>s/cancel", { id: CGI.escape(id) }),
params: params,
opts: opts
)
end
def self.list_line_items(id, params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/orders/%<id>s/line_items", { id: CGI.escape(id) }),
params: params,
opts: opts
)
end
def self.reopen(id, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/orders/%<id>s/reopen", { id: CGI.escape(id) }),
params: params,
opts: opts
)
end
def self.submit(id, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/orders/%<id>s/submit", { id: CGI.escape(id) }),
params: params,
opts: opts
)
end
end
end

View File

@ -29,6 +29,15 @@ module Stripe
) )
end end
def draft_quote(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def finalize_quote(params = {}, opts = {}) def finalize_quote(params = {}, opts = {})
request_stripe_object( request_stripe_object(
method: :post, method: :post,
@ -56,6 +65,60 @@ module Stripe
) )
end end
def list_lines(params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def mark_stale_quote(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def preview_invoice_lines(params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/quotes/%<quote>s/preview_invoice_lines", { quote: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def preview_invoices(params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def preview_subscription_schedules(params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def reestimate(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def self.accept(quote, params = {}, opts = {}) def self.accept(quote, params = {}, opts = {})
request_stripe_object( request_stripe_object(
method: :post, method: :post,
@ -74,6 +137,15 @@ module Stripe
) )
end end
def self.draft_quote(quote, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(quote) }),
params: params,
opts: opts
)
end
def self.finalize_quote(quote, params = {}, opts = {}) def self.finalize_quote(quote, params = {}, opts = {})
request_stripe_object( request_stripe_object(
method: :post, method: :post,
@ -101,6 +173,60 @@ module Stripe
) )
end end
def self.list_lines(quote, params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(quote) }),
params: params,
opts: opts
)
end
def self.mark_stale_quote(quote, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(quote) }),
params: params,
opts: opts
)
end
def self.preview_invoice_lines(quote, params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/quotes/%<quote>s/preview_invoice_lines", { quote: CGI.escape(quote) }),
params: params,
opts: opts
)
end
def self.preview_invoices(quote, params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(quote) }),
params: params,
opts: opts
)
end
def self.preview_subscription_schedules(quote, params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(quote) }),
params: params,
opts: opts
)
end
def self.reestimate(quote, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(quote) }),
params: params,
opts: opts
)
end
def pdf(params = {}, opts = {}, &read_body_chunk_block) def pdf(params = {}, opts = {}, &read_body_chunk_block)
unless block_given? unless block_given?
raise ArgumentError, "A read_body_chunk_block block parameter is required when calling the pdf method." raise ArgumentError, "A read_body_chunk_block block parameter is required when calling the pdf method."

View File

@ -0,0 +1,29 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
# A quote phase describes the line items, coupons, and trialing status of a subscription for a predefined time period.
class QuotePhase < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "quote_phase"
def list_line_items(params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/quote_phases/%<quote_phase>s/line_items", { quote_phase: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def self.list_line_items(quote_phase, params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/quote_phases/%<quote_phase>s/line_items", { quote_phase: CGI.escape(quote_phase) }),
params: params,
opts: opts
)
end
end
end

View File

@ -12,6 +12,15 @@ module Stripe
OBJECT_NAME = "subscription_schedule" OBJECT_NAME = "subscription_schedule"
def amend(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def cancel(params = {}, opts = {}) def cancel(params = {}, opts = {})
request_stripe_object( request_stripe_object(
method: :post, method: :post,
@ -30,6 +39,15 @@ module Stripe
) )
end end
def self.amend(schedule, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
params: params,
opts: opts
)
end
def self.cancel(schedule, params = {}, opts = {}) def self.cancel(schedule, params = {}, opts = {})
request_stripe_object( request_stripe_object(
method: :post, method: :post,

View File

@ -0,0 +1,31 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Tax
# A Tax `Calculation` allows you to calculate the tax to collect from your customer.
class Calculation < APIResource
extend Stripe::APIOperations::Create
OBJECT_NAME = "tax.calculation"
def list_line_items(params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def self.list_line_items(calculation, params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(calculation) }),
params: params,
opts: opts
)
end
end
end
end

View File

@ -0,0 +1,17 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Tax
# A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://stripe.com/docs/tax).
#
# Stripe will not register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://stripe.com/docs/tax/registering).
class Registration < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
OBJECT_NAME = "tax.registration"
end
end
end

View File

@ -0,0 +1,15 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Tax
# You can use Tax `Settings` to manage configurations used by Stripe Tax calculations.
#
# Related guide: [Account settings](https://stripe.com/docs/tax/connect/settings).
class Settings < SingletonAPIResource
include Stripe::APIOperations::Save
OBJECT_NAME = "tax.settings"
end
end
end

View File

@ -0,0 +1,49 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Tax
# A Tax `Transaction` records the tax collected from or refunded to your customer.
class Transaction < APIResource
extend Stripe::APIOperations::Create
OBJECT_NAME = "tax.transaction"
def list_line_items(params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/tax/transactions/%<transaction>s/line_items", { transaction: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def self.create_reversal(params = {}, opts = {})
request_stripe_object(
method: :post,
path: "/v1/tax/transactions/create_reversal",
params: params,
opts: opts
)
end
def self.list_line_items(transaction, params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/tax/transactions/%<transaction>s/line_items", { transaction: CGI.escape(transaction) }),
params: params,
opts: opts
)
end
def self.list_transactions(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/tax/transactions",
params: params,
opts: opts
)
end
end
end
end

View File

@ -63,6 +63,8 @@ module Stripe
end end
def initialize def initialize
@api_version = ApiVersion::CURRENT
@ca_bundle_path = Stripe::DEFAULT_CA_BUNDLE_PATH @ca_bundle_path = Stripe::DEFAULT_CA_BUNDLE_PATH
@enable_telemetry = true @enable_telemetry = true
@verify_ssl_certs = true @verify_ssl_certs = true

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Stripe module Stripe
VERSION = "8.2.0" VERSION = "8.3.0-beta.1"
end end

View File

@ -20,7 +20,7 @@ module Stripe
assert_equal "https://api.stripe.com", config.api_base assert_equal "https://api.stripe.com", config.api_base
assert_equal "https://connect.stripe.com", config.connect_base assert_equal "https://connect.stripe.com", config.connect_base
assert_equal "https://files.stripe.com", config.uploads_base assert_equal "https://files.stripe.com", config.uploads_base
assert_equal nil, config.api_version assert !config.api_version.nil?
end end
should "allow for overrides when a block is passed" do should "allow for overrides when a block is passed" do