class Stripe::Refund

Related guide: [Refunds](stripe.com/docs/refunds)
was originally charged.
but not yet refunded. Funds will be refunded to the credit or debit card that
`Refund` objects allow you to refund a charge that has previously been created

def self.cancel(refund, params = {}, opts = {})

def self.cancel(refund, params = {}, opts = {})
  request_stripe_object(
    method: :post,
    path: format("/v1/refunds/%<refund>s/cancel", { refund: CGI.escape(refund) }),
    params: params,
    opts: opts
  )
end

def cancel(params = {}, opts = {})

def cancel(params = {}, opts = {})
  request_stripe_object(
    method: :post,
    path: format("/v1/refunds/%<refund>s/cancel", { refund: CGI.escape(self["id"]) }),
    params: params,
    opts: opts
  )
end

def test_helpers

def test_helpers
  TestHelpers.new(self)
end