Module: AvaTax

Extended by:
Configuration
Defined in:
lib/avatax.rb,
lib/avatax/api.rb,
lib/avatax/client.rb,
lib/avatax/request.rb,
lib/avatax/version.rb,
lib/avatax/connection.rb,
lib/avatax/client/ecms.rb,
lib/avatax/client/free.rb,
lib/avatax/client/upcs.rb,
lib/avatax/client/items.rb,
lib/avatax/client/nexus.rb,
lib/avatax/client/users.rb,
lib/avatax/configuration.rb,
lib/avatax/client/batches.rb,
lib/avatax/client/filings.rb,
lib/avatax/client/notices.rb,
lib/avatax/client/reports.rb,
lib/avatax/client/accounts.rb,
lib/avatax/client/contacts.rb,
lib/avatax/client/settings.rb,
lib/avatax/client/taxcodes.rb,
lib/avatax/client/taxrules.rb,
lib/avatax/client/addresses.rb,
lib/avatax/client/companies.rb,
lib/avatax/client/customers.rb,
lib/avatax/client/locations.rb,
lib/avatax/client/registrar.rb,
lib/avatax/client/utilities.rb,
lib/avatax/client/compliance.rb,
lib/avatax/client/onboarding.rb,
lib/avatax/client/taxcontent.rb,
lib/avatax/client/datasources.rb,
lib/avatax/client/definitions.rb,
lib/avatax/client/pointofsale.rb,
lib/avatax/client/taxprofiles.rb,
lib/avatax/client/avafileforms.rb,
lib/avatax/client/certificates.rb,
lib/avatax/client/provisioning.rb,
lib/avatax/client/transactions.rb,
lib/avatax/client/advancedrules.rb,
lib/avatax/client/multidocument.rb,
lib/avatax/client/notifications.rb,
lib/avatax/client/subscriptions.rb,
lib/avatax/client/ecommercetoken.rb,
lib/avatax/client/filingcalendars.rb,
lib/avatax/client/fundingrequests.rb,
lib/avatax/client/errortransactions.rb,
lib/avatax/client/certexpressinvites.rb,
lib/avatax/client/distancethresholds.rb,
lib/avatax/client/firmclientlinkages.rb,
lib/avatax/client/jurisdictionoverrides.rb

Defined Under Namespace

Modules: Configuration, Connection, Request Classes: API, Client

Constant Summary collapse

VERSION =
'21.3.1'.freeze

Constants included from Configuration

Configuration::DEFAULT_APP_NAME, Configuration::DEFAULT_APP_VERSION, Configuration::DEFAULT_CONNECTION_OPTIONS, Configuration::DEFAULT_CUSTOM_LOGGER, Configuration::DEFAULT_CUSTOM_LOGGER_OPTIONS, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FARADAY_RESPONSE, Configuration::DEFAULT_LOGGER, Configuration::DEFAULT_MACHINE_NAME, Configuration::DEFAULT_PASSWORD, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_RESPONSE_BIG_DECIMAL_CONVERSION, Configuration::DEFAULT_USERNAME, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ Avatax::Client

Alias for Avatax::Client.new

Returns:

  • (Avatax::Client)

11
12
13
# File 'lib/avatax.rb', line 11

def self.client(options={})
  AvaTax::Client.new(options)
end

.method_missing(method, *args, &block) ⇒ Object

Delegate to AvaTax::Client


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

def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end

.respond_to?(method, include_all = false) ⇒ Boolean

Delegate to AvaTax::Client

Returns:

  • (Boolean)

22
23
24
# File 'lib/avatax.rb', line 22

def self.respond_to?(method, include_all=false)
  return client.respond_to?(method, include_all) || super
end