Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix return value of
Customer#delete_discount
`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.
- Loading branch information