Compare commits

..

3 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
5 changed files with 2 additions and 16 deletions

View File

@ -1,9 +1,5 @@
# Changelog
## 8.3.0 - 2023-02-16
* [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
* Add support for `refund_payment` method on resource `Terminal.Reader`
## 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

View File

@ -1 +1 @@
v232
v226

View File

@ -133,8 +133,7 @@ module Stripe
when Hash
# Try converting to a known object class. If none available, fall back
# to generic StripeObject
object_name = data[:object] || data["object"]
obj = object_classes.fetch(object_name, StripeObject)
obj = object_classes.fetch(data[:object], StripeObject)
.construct_from(data, opts)
# set filters so that we can fetch the same limit, expansions, and

View File

@ -826,10 +826,6 @@ module Stripe
Stripe::Invoice.retrieve("in_xxxxxxxxxxxxx")
assert_requested :get, "#{Stripe.api_base}/v1/invoices/in_xxxxxxxxxxxxx?"
end
should "support requests with args: id, expand" do
Stripe::Invoice.retrieve({ expand: ["customer"], id: "in_xxxxxxxxxxxxx" })
assert_requested :get, "#{Stripe.api_base}/v1/invoices/in_xxxxxxxxxxxxx?expand[0]=customer"
end
end
context "Invoice.search" do
should "support requests with args: query" do

View File

@ -122,11 +122,6 @@ module Stripe
assert obj.is_a?(ListObject)
end
should "#convert_to_stripe_object should marshal hashes with string keys" do
obj = Util.convert_to_stripe_object({ "object" => "account" }, {})
assert obj.is_a?(Account)
end
should "#convert_to_stripe_object should marshal other classes" do
obj = Util.convert_to_stripe_object({ object: "account" }, {})
assert obj.is_a?(Account)