class Stripe::Customer
Constants
- OBJECT_NAME
Public Instance Methods
delete_discount()
click to toggle source
Deletes a discount associated with the customer.
Returns the deleted discount. The customer object is not updated, so you must call `refresh` on it to get a new version with the discount removed.
# File lib/stripe/resources/customer.rb, line 36 def delete_discount resp, opts = execute_resource_request(:delete, resource_url + "/discount") Util.convert_to_stripe_object(resp.data, opts) end