{"id":17766457,"url":"https://github.com/dmitry/vat_rates","last_synced_at":"2025-03-15T12:30:38.368Z","repository":{"id":25000988,"uuid":"28419957","full_name":"dmitry/vat_rates","owner":"dmitry","description":"VAT rates for european countries based on the ec.europa.eu website","archived":false,"fork":false,"pushed_at":"2014-12-24T09:53:00.000Z","size":140,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T08:06:30.764Z","etag":null,"topics":["vat-rates"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmitry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-23T21:14:27.000Z","updated_at":"2023-01-02T13:49:44.000Z","dependencies_parsed_at":"2022-08-23T15:40:13.346Z","dependency_job_id":null,"html_url":"https://github.com/dmitry/vat_rates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitry%2Fvat_rates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitry%2Fvat_rates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitry%2Fvat_rates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitry%2Fvat_rates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmitry","download_url":"https://codeload.github.com/dmitry/vat_rates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243730917,"owners_count":20338734,"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":["vat-rates"],"created_at":"2024-10-26T20:29:56.047Z","updated_at":"2025-03-15T12:30:37.980Z","avatar_url":"https://github.com/dmitry.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VAT Rates\n\n[![Build Status](https://secure.travis-ci.org/dmitry/vat_rates.png?branch=master)](http://travis-ci.org/dmitry/vat_rates) [![Gem Version](https://badge.fury.io/rb/vat_rates.png)](http://badge.fury.io/rb/vat_rates)\n\nVAT rates based on the [ec.europa.eu](http://ec.europa.eu/taxation_customs/tic/public/vatRates/vatratesSearch.html) website list. This gem parses information on the website and provides interface to the data.\n\nFormat of the data:\n\n    code: 'ES' [required string, ISO 3166 format country code]\n    name: 'Spain' [required string, english name of the country]\n    rate: 21.0 [required float, standard rate percentage]\n    regions: [optional array]\n      name: 'Canary Islands' [required string, name of the region in english]\n      rate: 0 [required float or integer, standard rate percentage in the region, might be 0 or \u003e= float number]\n      reduced_rates: [optional hash]\n        category: 'Taux intermédiaire' [required string, category of the reduced taxes]\n        rate: 10.0 [required float, rate of the reduced tax in percentage]\n\n## Installation\n\nAdd this line to your application's `Gemfile`:\n\n    gem 'vat_rates'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install vat_rates\n\n## Usage\n\nTo get current VAT rates from ec.europa.eu, just invoke following command:\n\n    VatRates.fetch\n\nLoad from file or fetch from server:\n\n    VatRates.load(filepath = nil)\n\n\nSave to json file:\n\n    VatRates.save(filepath)\n\n## Changes\n\n### 2014-12-23 - 0.0.2\n\n- Fetch data in JSON format from http://ec.europa.eu/taxation_customs/tic/public/vatRates/vatratesSearch.html website\n- Save data in JSON file\n- Load data from JSON file or by fetching from the website\n\n## Alternatives and more information\n\n- http://ec.europa.eu/taxation_customs/taxation/vat/how_vat_works/index_en.htm - official information about VAT\n- http://ec.europa.eu/taxation_customs/taxation/vat/how_vat_works/telecom/index_en.htm - official information about VAT 2015 changes\n- http://rachelandrew.github.io/eu-vat/ - information about the VAT 2015 changes\n- https://github.com/staaky/vatrates - PHP, JS and JSON versions of VAT rates (without regions)\n- https://github.com/modmore/euvatrates.com - JSON version of VAT rates (without regions)\n- https://github.com/kdeldycke/vat-rates - VAT rates with history and regions in CSV\n- https://github.com/adamcooke/vat-rates - Ruby library to provide VAT rates for all EU countries in DSL format\n\n## Contributing\n\n1. Fork it ( https://github.com/dmitry/vat_rates/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitry%2Fvat_rates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmitry%2Fvat_rates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitry%2Fvat_rates/lists"}