{"id":21179150,"url":"https://github.com/avadev/avatax-calc-rest-ruby","last_synced_at":"2025-07-09T22:32:10.821Z","repository":{"id":12790126,"uuid":"15463818","full_name":"avadev/AvaTax-Calc-REST-Ruby","owner":"avadev","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-20T02:26:20.000Z","size":42,"stargazers_count":7,"open_issues_count":3,"forks_count":12,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-03-27T01:28:10.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avadev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-27T01:26:26.000Z","updated_at":"2024-03-27T01:28:10.657Z","dependencies_parsed_at":"2022-09-17T00:01:12.516Z","dependency_job_id":null,"html_url":"https://github.com/avadev/AvaTax-Calc-REST-Ruby","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-Calc-REST-Ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-Calc-REST-Ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-Calc-REST-Ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-Calc-REST-Ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avadev","download_url":"https://codeload.github.com/avadev/AvaTax-Calc-REST-Ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225600947,"owners_count":17494734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T17:28:58.697Z","updated_at":"2024-11-20T17:28:59.281Z","avatar_url":"https://github.com/avadev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"avatax.rb\n=====================\n[Other Samples](http://developer.avalara.com/avatax/sample-code)\n\nThis is a Ruby client library for the [AvaTax REST API](http://developer.avalara.com/avatax/tax/v1)\nmethods:\n[tax/get POST](http://developer.avalara.com/avatax/tax/v1#getTax),\n[tax/get GET](http://developer.avalara.com/avatax/tax/v1#estimateTax),\n[tax/cancel POST](http://developer.avalara.com/avatax/tax/v1#cancelTax), and\n[address/validate GET](http://developer.avalara.com/avatax/tax/v1#validateAddress).\n\nFor more information on the use of these methods and the AvaTax product, please\nvisit our [developer site](http://developer.avalara.com/) or [homepage](http://www.avalara.com/)\n\nDependencies\n-----------\n- Ruby 1.9.2 or later\n- [Bundler](http://bundler.io)\n\nRequirements\n----------\n- Add the `avatax` gem to your Gemfile with `gem 'avatax'`\n- Run `bundle install` to retrieve `avatax` and all its dependencies\n- Authentication requires an valid **Account Number** and **License Key**. If you do not have an AvaTax account, a free trial account can be acquired through our [developer site](http://developer.avalara.com/avatax/get-started)\n- Specify your authentication credentials as\n  - environment variables,\n  - YAML file (see `credentials.yml.example`), or\n  - in source\n\nCredentials as environment variables\n------------------------------------\n```shell\n$ AVATAX_ACCOUNT_NUMBER=1234567890 AVATAX_LICENSE_KEY=A1B2C3D4E5F6G7H8 AVATAX_SERVICE_URL=https://development.avalara.net bundle exec ruby examples/PingTest.rb\n```\n\nCredentials from YAML file\n--------------------------\n```ruby\nAvaTax.configure_from 'credentials.yml.example'\n```\n\nCredentials in source\n---------------------\n```ruby\nAvaTax.configure do\n  account_number '1234567890'\n  license_key 'A1B2C3D4E5F6G7H8'\n  service_url 'https://development.avalara.net'\nend\n```\n\nExamples\n--------\n\n| Filename           | Description |\n| :----------------- | :---------- |\n| CancelTaxTest.rb   | Demonstrates [AvaTax::TaxService.cancel](http://developer.avalara.com/avatax/tax/v1#cancelTax) used to [void a document](http://developer.avalara.com/avatax/tax/v1#voiding-documents) |\n| EstimateTaxTest.rb | Demonstrates the [AvaTax::TaxService.estimate](http://developer.avalara.com/avatax/tax/v1#estimateTax) method used for product- and line- indifferent tax estimates. |\n| GetTaxTest.rb      | Demonstrates the [AvaTax::TaxService.get](http://developer.avalara.com/avatax/tax/v1#getTax) method used for product- and line- specific [calculation](http://developer.avalara.com/avatax/calculating-tax). **NOTE:** This will generate a new transaction/document each time. |\n| PingTest.rb        | Uses a hardcoded `AvaTax::TaxService.estimate` call to test connectivity and credential information. |\n| ValidateTest.rb    | Demonstrates the [AvaTax::AddressService.validate](http://developer.avalara.com/avatax/tax/v1#validateAddress) method to [normalize an address](http://developer.avalara.com/avatax/address-validation). |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favadev%2Favatax-calc-rest-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favadev%2Favatax-calc-rest-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favadev%2Favatax-calc-rest-ruby/lists"}