Closed clandry94 closed 7 months ago
3.1.1
1) Update to 3.1.1 2) Make a call to Stripe.TestHelpers.TestClock.retrieve(...) 3) The following error will be shown
Stripe.TestHelpers.TestClock.retrieve(...)
[error] ** (UndefinedFunctionError) function Stripe.TestClock.__struct__/0 is undefined (module Stripe.TestClock is not available) Stripe.TestClock.__struct__() (stripity_stripe 3.1.1) lib/stripe/converter.ex:41: Stripe.Converter.convert_stripe_object/1 (stripity_stripe 3.1.1) lib/stripe/request.ex:204: Stripe.Request.make_request/1
This should be parsed into the Stripe.TestHelpers.TestClock struct instead of Stripe.TestClock
Stripe.TestHelpers.TestClock
Stripe.TestClock
I believe this issue is related to https://github.com/beam-community/stripity-stripe/pull/792/ which made a change to how object_name_to_module parses test clocks. Line 54 added in that PR does
object_name_to_module
def object_name_to_module("test_helpers.test_clock"), do: Stripe.TestClock
instead of
def object_name_to_module("test_helpers.test_clock"), do: Stripe.TestHelpers.TestClock
We have the same issue
Are you able to contribute?
@yordis yeah I can put up a PR
Thx for the PR, gonna close this now
Existing Issue or Pull Request Verification
Package Version
3.1.1
Are you using the latest version?
Steps to Reproduce
1) Update to 3.1.1 2) Make a call to
Stripe.TestHelpers.TestClock.retrieve(...)
3) The following error will be shownExpected Result
This should be parsed into the
Stripe.TestHelpers.TestClock
struct instead ofStripe.TestClock
Actual Result
I believe this issue is related to https://github.com/beam-community/stripity-stripe/pull/792/ which made a change to how
object_name_to_module
parses test clocks. Line 54 added in that PR doesinstead of