Merge pull request #387 from stripe/brandur-pass-params-fee-refund

Pass params and opts through on `ApplicationFee#refund`
This commit is contained in:
Brandur 2016-03-03 23:59:33 -08:00
commit f711494f54

View File

@ -9,7 +9,7 @@ module Stripe
# If you don't need access to an updated fee object after the refund, it's
# more performant to just call `fee.refunds.create` directly.
def refund(params={}, opts={})
self.refunds.create
self.refunds.create(params, opts)
# now that a refund has been created, we expect the state of this object
# to change as well (i.e. `refunded` will now be `true`) so refresh it