mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
`Customer#delete_discount` has been broken for some time in that it tries to re-initialize `self` (which is a customer) with a received discount response. This is incorrect and leads to various problems. Here, we redefine the return value of `delete_discount` as a discount, and have it no longer mutate the object on which is was called. We add a comment as well just to help flag some of the behavior which could potentially be confusing. Fixes #963.