Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safe Navigation Operator (&) not working on Stripe::Account #1236

Closed
dejoma opened this issue Jun 19, 2023 · 0 comments
Closed

Safe Navigation Operator (&) not working on Stripe::Account #1236

dejoma opened this issue Jun 19, 2023 · 0 comments

Comments

@dejoma
Copy link

dejoma commented Jun 19, 2023

Describe the bug

stripe_account = Stripe::Account.retrieve('acct_****')

stripe_account&.individual # undefined method `individual' for #<Stripe::Account:0xe178 id=acct_***> 

stripe_account.try(:individual) # nil

To Reproduce

stripe_account = Stripe::Account.retrieve('acct_****')

stripe_account&.individual # undefined method `individual' for #<Stripe::Account:0xe178 id=acct_***> 

stripe_account.try(:individual) # nil

Expected behavior

stripe_account = Stripe::Account.retrieve('acct_****')

stripe_account&.individual # nil

stripe_account.try(:individual) # nil

Code snippets

stripe_account = Stripe::Account.retrieve('acct_****')

stripe_account&.individual # undefined method `individual' for #<Stripe::Account:0xe178 id=acct_***> 

stripe_account.try(:individual) # nil

OS

macOS

Language version

Ruby 3.1.3

Library version

8.0.0

API version

2020-03-02

Additional context

No response

@dejoma dejoma added the bug label Jun 19, 2023
@dejoma dejoma closed this as completed Jun 19, 2023
@ramya-stripe ramya-stripe removed the bug label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants