stripe-ruby
stripe-ruby copied to clipboard
Unable to retrieve Transfer Reversal while expanding the transfer object
Describe the bug
Unable to retrieve Transfer Reversal while expanding the transfer object as the API Docs state. The expected expand addition to the Stripe Transfer retrieve_reversal raises a NoMethodError.
I noticed the NestedResource retrieve_
does not account for params
as the update, delete & list methods do.
To Reproduce
- Retrieve a transfer reversal with the expand key.
Note: The code snippet is generated from the Stripe Shell
Expected behavior
Retrieves the Transfer Reversal Object with the transfer expanded
Code snippets
Stripe::Transfer.retrieve_reversal(
'tr_xxx',
'trr_xxx',
{ expand: ['transfer'] }
)
NoMethodError: undefined method `strip' for ["transfer"]:Array
### OS
macOS
### Language version
Ruby 3.0.1
### Library version
stripe-ruby v11.2.0
### API version
2024-04-10
### Additional context
_No response_