Method: Stripe::ApplicationFeeRefundService#update

Defined in:
lib/stripe/services/application_fee_refund_service.rb

#update(fee, id, params = {}, opts = {}) ⇒ Object

Updates the specified application fee refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

This request only accepts metadata as an argument.



50
51
52
53
54
55
56
57
58
# File 'lib/stripe/services/application_fee_refund_service.rb', line 50

def update(fee, id, params = {}, opts = {})
  request(
    method: :post,
    path: format("/v1/application_fees/%<fee>s/refunds/%<id>s", { fee: CGI.escape(fee), id: CGI.escape(id) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end