mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-18 00:00:44 -04:00
Compare commits
7 Commits
1d74e42c87
...
705078e2cf
Author | SHA1 | Date | |
---|---|---|---|
|
705078e2cf | ||
|
29d8261b17 | ||
|
3958d6a9df | ||
|
e4e6bb54fd | ||
|
e2e4b77a87 | ||
|
57a2806c18 | ||
|
7db585f5a4 |
@ -1,5 +1,9 @@
|
||||
# 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
|
||||
|
@ -1 +1 @@
|
||||
v226
|
||||
v232
|
@ -133,7 +133,8 @@ module Stripe
|
||||
when Hash
|
||||
# Try converting to a known object class. If none available, fall back
|
||||
# to generic StripeObject
|
||||
obj = object_classes.fetch(data[:object], StripeObject)
|
||||
object_name = data[:object] || data["object"]
|
||||
obj = object_classes.fetch(object_name, StripeObject)
|
||||
.construct_from(data, opts)
|
||||
|
||||
# set filters so that we can fetch the same limit, expansions, and
|
||||
|
@ -826,6 +826,10 @@ 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
|
||||
|
@ -122,6 +122,11 @@ 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user