balanced / balanced-ruby

Balanced API library in ruby.
MIT License
111 stars 47 forks source link

Delete Customer #113

Closed remear closed 10 years ago

remear commented 11 years ago

The API allows for the deletion of Customers "so long as there has been no activity associated with it such as creating a hold, credit, or debit"

This ability needs to be added.

remear commented 11 years ago

Looks like you can do customer.unstore which calls destroy, https://github.com/balanced/balanced-ruby/blob/master/lib/balanced/resources/resource.rb#L70. Seems this is available only in master and not in the latest version on rubygems, 0.7.2. <= 0.7.2 only has destroy.

Since it appears from other issue discussions that unstore is the standard, I will create an example in examples/customers.rb for unstoring a customer.

aimee-ault commented 10 years ago

FYI: This same issue also exists with Card. destroy works, unstore, which is what's used in the scenarios in this repo, does not work.

remear commented 10 years ago

v1.0 has been standardized to use unstore in most delete operations. If you experience any other issues, please open another issue and let us know.