mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-05-31 00:00:37 -04:00
For now, only two options are supported: `api_key` and `idempotency_key`. In the future, we'll be adding support for additional headers as needed.
12 lines
294 B
Ruby
12 lines
294 B
Ruby
module Stripe
|
|
module APIOperations
|
|
module Delete
|
|
def delete(params = {}, opts={})
|
|
api_key, headers = Util.parse_opts(opts)
|
|
response, api_key = Stripe.request(:delete, url, api_key, params, headers)
|
|
refresh_from(response, api_key)
|
|
end
|
|
end
|
|
end
|
|
end
|