Sha256: 5e58bc9ad1477ae6390b4f553ebc3567eafa56db9e734364361cbcafa6d6a3a0
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
module Quaderno class Tax < Base api_model Quaderno::Tax api_path 'taxes' class << self undef :all, :find, :create, :update, :delete, :parse_nested 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quaderno-1.10.0 | lib/quaderno-ruby/tax.rb |
quaderno-1.9.2 | lib/quaderno-ruby/tax.rb |