mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-18 00:00:44 -04:00
Compare commits
3 Commits
705078e2cf
...
1d74e42c87
Author | SHA1 | Date | |
---|---|---|---|
|
1d74e42c87 | ||
|
30fa39cb6a | ||
|
ae24837bb5 |
@ -1,9 +1,5 @@
|
|||||||
# Changelog
|
# 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
|
## 8.3.0-beta.1 - 2023-02-02
|
||||||
* [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
|
* [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
|
||||||
* Updated stable APIs to the latest version
|
* Updated stable APIs to the latest version
|
||||||
|
@ -1 +1 @@
|
|||||||
v232
|
v226
|
@ -133,8 +133,7 @@ module Stripe
|
|||||||
when Hash
|
when Hash
|
||||||
# Try converting to a known object class. If none available, fall back
|
# Try converting to a known object class. If none available, fall back
|
||||||
# to generic StripeObject
|
# to generic StripeObject
|
||||||
object_name = data[:object] || data["object"]
|
obj = object_classes.fetch(data[:object], StripeObject)
|
||||||
obj = object_classes.fetch(object_name, StripeObject)
|
|
||||||
.construct_from(data, opts)
|
.construct_from(data, opts)
|
||||||
|
|
||||||
# set filters so that we can fetch the same limit, expansions, and
|
# set filters so that we can fetch the same limit, expansions, and
|
||||||
|
@ -826,10 +826,6 @@ module Stripe
|
|||||||
Stripe::Invoice.retrieve("in_xxxxxxxxxxxxx")
|
Stripe::Invoice.retrieve("in_xxxxxxxxxxxxx")
|
||||||
assert_requested :get, "#{Stripe.api_base}/v1/invoices/in_xxxxxxxxxxxxx?"
|
assert_requested :get, "#{Stripe.api_base}/v1/invoices/in_xxxxxxxxxxxxx?"
|
||||||
end
|
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
|
end
|
||||||
context "Invoice.search" do
|
context "Invoice.search" do
|
||||||
should "support requests with args: query" do
|
should "support requests with args: query" do
|
||||||
|
@ -122,11 +122,6 @@ module Stripe
|
|||||||
assert obj.is_a?(ListObject)
|
assert obj.is_a?(ListObject)
|
||||||
end
|
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
|
should "#convert_to_stripe_object should marshal other classes" do
|
||||||
obj = Util.convert_to_stripe_object({ object: "account" }, {})
|
obj = Util.convert_to_stripe_object({ object: "account" }, {})
|
||||||
assert obj.is_a?(Account)
|
assert obj.is_a?(Account)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user