stripe-ruby
stripe-ruby copied to clipboard
[MAJOR] Fixed support for passing params and options to retrieve methods
Changelog
- Singleton
retrievemethod now requiresparamsto be passed as the first argument. Existing calls to singletonretrievemethod with onlyoptsargument will have to be updated to account for the addition ofparamsargument.
params = { expand: ["available"] }
opts = { stripe_account: "acct_123" }
# ❌ No longer works
Stripe::Balance.retrieve(opts)
# ✅ Correct way to call retrieve method
Stripe::Balance.retrieve(params, opts)