Class: Avatax::Api::Accounts
Overview
Accounts Client
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#activate(account_id, args = {}) ⇒ Avatax::Response
Activate an account.
-
#configuration(account_id, args = {}) ⇒ Avatax::Response
Get configuration for an account.
-
#get(account_id, args = {}) ⇒ Avatax::Response
Get an account.
-
#reset_license_key(account_id, args = {}) ⇒ Avatax::Response
Reset the license key for an account.
-
#update_configuration(account_id, args = {}) ⇒ Avatax::Response
Update configuration for an account.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Avatax::Api::Base
Instance Method Details
#activate(account_id, args = {}) ⇒ Avatax::Response
Activate an account
16 17 18 |
# File 'lib/avatax/api/accounts.rb', line 16 def activate(account_id, args = {}) post_for(:activate, account_id, args) end |
#configuration(account_id, args = {}) ⇒ Avatax::Response
Get configuration for an account
28 29 30 |
# File 'lib/avatax/api/accounts.rb', line 28 def configuration(account_id, args = {}) get_for(:configuration, account_id, args) end |
#get(account_id, args = {}) ⇒ Avatax::Response
Get an account.
64 65 66 |
# File 'lib/avatax/api/accounts.rb', line 64 def get(account_id, args = {}) get_for(nil, account_id, args) end |
#reset_license_key(account_id, args = {}) ⇒ Avatax::Response
Reset the license key for an account.
52 53 54 |
# File 'lib/avatax/api/accounts.rb', line 52 def reset_license_key(account_id, args = {}) post_for(:resetlicensekey, account_id, args) end |
#update_configuration(account_id, args = {}) ⇒ Avatax::Response
Update configuration for an account
40 41 42 |
# File 'lib/avatax/api/accounts.rb', line 40 def update_configuration(account_id, args = {}) post_for(:configuration, account_id, args) end |