Class: Avatax::Api::Accounts

Inherits:
Base
  • Object
show all
Defined in:
lib/avatax/api/accounts.rb

Overview

Accounts Client

Instance Attribute Summary

Attributes inherited from Base

#connection

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Avatax::Api::Base

Instance Method Details

#activate(account_id, args = {}) ⇒ Avatax::Response

Activate an account

Parameters:

  • account_id (String, Integer)

    The ID of the account to activate.

  • args (Hash) (defaults to: {})

    The arguments for avatax.

Returns:

See Also:



16
17
18
# File 'lib/avatax/api/accounts.rb', line 16

def activate(, args = {})
  post_for(:activate, , args)
end

#configuration(account_id, args = {}) ⇒ Avatax::Response

Get configuration for an account

Parameters:

  • account_id (String, Integer)

    The ID of the account to activate.

  • args (Hash) (defaults to: {})

    The arguments for avatax.

Returns:

See Also:



28
29
30
# File 'lib/avatax/api/accounts.rb', line 28

def configuration(, args = {})
  get_for(:configuration, , args)
end

#get(account_id, args = {}) ⇒ Avatax::Response

Get an account.

Parameters:

  • account_id (String, Integer)

    The ID of the account to activate.

  • args (Hash) (defaults to: {})

    The arguments for avatax.

Returns:

See Also:



64
65
66
# File 'lib/avatax/api/accounts.rb', line 64

def get(, args = {})
  get_for(nil, , args)
end

#reset_license_key(account_id, args = {}) ⇒ Avatax::Response

Reset the license key for an account.

Parameters:

  • account_id (String, Integer)

    The ID of the account to activate.

  • args (Hash) (defaults to: {})

    The arguments for avatax.

Returns:

See Also:



52
53
54
# File 'lib/avatax/api/accounts.rb', line 52

def reset_license_key(, args = {})
  post_for(:resetlicensekey, , args)
end

#update_configuration(account_id, args = {}) ⇒ Avatax::Response

Update configuration for an account

Parameters:

  • account_id (String, Integer)

    The ID of the account to activate.

  • args (Hash) (defaults to: {})

    The arguments for avatax.

Returns:

See Also:



40
41
42
# File 'lib/avatax/api/accounts.rb', line 40

def update_configuration(, args = {})
  post_for(:configuration, , args)
end