module Taxjar::API::Customer
Public Instance Methods
create_customer(options = {})
click to toggle source
# File lib/taxjar/api/customer.rb, line 16 def create_customer(options = {}) perform_post_with_object("/v2/customers", 'customer', options, Taxjar::Customer) end
delete_customer(id, options={})
click to toggle source
# File lib/taxjar/api/customer.rb, line 25 def delete_customer(id, options={}) perform_delete_with_object("/v2/customers/#{id}", 'customer', options, Taxjar::Customer) end
list_customers(options = {})
click to toggle source
# File lib/taxjar/api/customer.rb, line 8 def list_customers(options = {}) perform_get_with_array("/v2/customers", 'customers', options) end
show_customer(id, options = {})
click to toggle source
# File lib/taxjar/api/customer.rb, line 12 def show_customer(id, options = {}) perform_get_with_object("/v2/customers/#{id}", 'customer', options, Taxjar::Customer) end
update_customer(options = {})
click to toggle source
# File lib/taxjar/api/customer.rb, line 20 def update_customer(options = {}) id = options.fetch(:customer_id) perform_put_with_object("/v2/customers/#{id}", 'customer', options, Taxjar::Customer) end