Deleting a Customer
To delete a customer:
require 'chargeover_ruby'
# Initialize the client
client = ChargeOver::Client.new("https://your-chargeover-url.com", "your_api_key", "your_api_secret")
# Define the customer ID to delete
customer_id = "12345" # Replace with the actual customer ID
# Delete the customer
response = client.delete(:customer, customer_id)
# Check if successful
if response['status'] == 'success'
puts "Customer deleted successfully."
else
puts "Error: #{response['error']}"
end