Sha256: 7149129f6ec71e1a7e288c83078115077a4a402f2d226d8a79b96277fa07fbe5

Contents?: true

Size: 494 Bytes

Versions: 5

Compression:

Stored size: 494 Bytes

Contents

module Quaderno
  class Tax < Base
    api_model Quaderno::Tax
    api_path 'taxes'
    
    class << self
      undef :all, :find, :create, :update, :delete, :parse
    end
    
    def self.calculate(params)
      party_response = get("#{self.url}taxes/calculate.json", query: params, basic_auth: { username: api_model.auth_token } )
      check_exception_for(party_response, { rate_limit: true, subdomain_or_token: true, id: true })
      new party_response.parsed_response
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
quaderno-1.9.1 lib/quaderno-ruby/tax.rb
quaderno-1.9.0 lib/quaderno-ruby/tax.rb
quaderno-1.8.0 lib/quaderno-ruby/tax.rb
quaderno-1.7.3 lib/quaderno-ruby/tax.rb
quaderno-1.7.2 lib/quaderno-ruby/tax.rb