Module: Stripe::APIOperations::Delete

Included in:
Card, Coupon, Customer, InvoiceItem, Plan, Recipient, Subscription
Defined in:
lib/stripe/api_operations/delete.rb

Instance Method Summary collapse

Instance Method Details

#delete(params = {}, opts = {}) ⇒ Object



4
5
6
7
8
# File 'lib/stripe/api_operations/delete.rb', line 4

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