Skip to content

Commit

Permalink
Merge pull request #1202 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
* Update generated code (new) (#1197)

* Update generated code for v275

* Update generated code for v276

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

* Update generated code for v277 (#1198)

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

* Bump version to 8.4.0

* Update save deprecation message (#1201)

* Update save deprecation message

* comma

* Update generated code for v285

* Update generated code for v285 (#1203)

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

* Bump version to 8.5.0

---------

Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Pavel Krymets <pakrym@stripe.com>
Co-authored-by: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com>
Co-authored-by: Annie Li <anniel@stripe.com>
  • Loading branch information
4 people committed Mar 30, 2023
2 parents 4143d39 + 732a146 commit 890cdae
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
# Changelog

## 8.5.0 - 2023-03-30
* [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
* Remove support for `create` method on resource `Tax.Transaction`
* 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.
* [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message

## 8.5.0-beta.1 - 2023-03-23
* [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
* Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
* Add support for `collect_inputs` method on resource `Terminal.Reader`

## 8.4.0 - 2023-03-23
* [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
* Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
* Add support for `create` and `list_line_items` methods on resource `Calculation`
* Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
* [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`

## 8.4.0-beta.4 - 2023-03-16
* [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
* Add support for `create_from_calculation` method on resource `Tax.Transaction`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v277
v287
4 changes: 3 additions & 1 deletion lib/stripe/api_operations/save.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def save(params = {}, opts = {})
initialize_from(resp.data, opts)
end
extend Gem::Deprecate
deprecate :save, :update, 2022, 11
deprecate :save, "the `update` class method (for examples"\
" see https://github.com/stripe/stripe-ruby"\
"/wiki/Migration-guide-for-v8)", 2022, 11

def self.included(base)
# Set `metadata` as additive so that when it's set directly we remember
Expand Down
2 changes: 0 additions & 2 deletions lib/stripe/resources/tax/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ 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 = {})
Expand Down

0 comments on commit 890cdae

Please sign in to comment.