Class: CashOut::Payments::Customer::Delete

Inherits:
ServiceBase
  • Object
show all
Defined in:
lib/cash_out/payments/customer/delete.rb

Constant Summary

Constants inherited from ServiceBase

ServiceBase::STRIPE_ERRORS

Instance Method Summary collapse

Methods inherited from ServiceBase

#failure_message, #failure_status, #success_message, #validate_and_save

Instance Method Details

#executeObject



7
8
9
10
11
# File 'lib/cash_out/payments/customer/delete.rb', line 7

def execute
  delete_customer
  user.stripe_id = nil
  validate_and_save(user)
end