class Natero::Account

Public Class Methods

bulk_insert_modify(accounts) click to toggle source
# File lib/natero/account.rb, line 11
def self.bulk_insert_modify(accounts)
  post([], json_data(Natero.to_records_json(accounts)))
end
deactivate_account(id) click to toggle source
# File lib/natero/account.rb, line 43
def self.deactivate_account(id)
  delete([id])
end
delete_assigned_csm_reps(id, email) click to toggle source
# File lib/natero/account.rb, line 59
def self.delete_assigned_csm_reps(id, email)
  delete([id, 'assigned_csms', email])
end
delete_dimension_labels(id, key) click to toggle source
# File lib/natero/account.rb, line 55
def self.delete_dimension_labels(id, key)
  delete([id, 'dimension_labels', key])
end
delete_dimension_values(id, key) click to toggle source
# File lib/natero/account.rb, line 51
def self.delete_dimension_values(id, key)
  delete([id, 'dimension_values', key])
end
delete_nps_history(id, timestamp) click to toggle source
# File lib/natero/account.rb, line 63
def self.delete_nps_history(id, timestamp)
  delete([id, 'nps_history', timestamp])
end
delete_stage_history(id, name, timestamp) click to toggle source
# File lib/natero/account.rb, line 47
def self.delete_stage_history(id, name, timestamp)
  delete([id, 'stage_history', name, timestamp])
end
endpoint_path() click to toggle source
# File lib/natero/account.rb, line 67
def self.endpoint_path
  ['accounts']
end
modify(id, account) click to toggle source
# File lib/natero/account.rb, line 15
def self.modify(id, account)
  put([id], json_data(account.to_json))
end
retrieve(id) click to toggle source
# File lib/natero/account.rb, line 7
def self.retrieve(id)
  get([id])
end
retrieve_all() click to toggle source
# File lib/natero/account.rb, line 2
def self.retrieve_all
  warn "[DEPRECATION] The Natero gem has been deprecated and will no longer be supported. Please switch to using the Freshworks gem. See https://rubygems.org/gems/freshworks and https://github.com/bonusly/freshworks."
  get
end
retrieve_contacts(id) click to toggle source
# File lib/natero/account.rb, line 39
def self.retrieve_contacts(id)
  get([id, 'contacts'])
end
retrieve_custom_metrics(id) click to toggle source
# File lib/natero/account.rb, line 19
def self.retrieve_custom_metrics(id)
  get([id, 'metrics'])
end
retrieve_invoice_statements(id) click to toggle source
# File lib/natero/account.rb, line 23
def self.retrieve_invoice_statements(id)
  get([id, 'statements'])
end
retrieve_product_users(id) click to toggle source
# File lib/natero/account.rb, line 35
def self.retrieve_product_users(id)
  get([id, 'users'])
end
retrieve_subscription_history(id) click to toggle source
# File lib/natero/account.rb, line 27
def self.retrieve_subscription_history(id)
  get([id, 'subscriptions'])
end
retrieve_support_tickets(id) click to toggle source
# File lib/natero/account.rb, line 31
def self.retrieve_support_tickets(id)
  get([id, 'support_tickets'])
end