You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rework to add UK VAT validation and improve error reporting (#6)
* Rework to add UK VAT validation and improve error reporting
* Few little tweaks
* Appease the linter gods
* I guess remove this blank import as it seems to be unnecessary
* Few changes based on PR review
* Remove ErrUnexpected since any error we don't handle is unexpected...
VAT numbers can be validated by format, existence or both. VAT numbers are looked up using the [VIES VAT validation API](http://ec.europa.eu/taxation_customs/vies/).
32
+
VAT numbers can be validated by format, existence or both.
33
+
34
+
EU VAT numbers are looked up using the [VIES VAT validation API](http://ec.europa.eu/taxation_customs/vies/).
35
+
36
+
UK VAT numbers are looked up
37
+
using [UK GOV VAT validation API](https://developer.service.hmrc.gov.uk/api-documentation/docs/api/service/vat-registered-companies-api/1.0)
> This package relies on a [community maintained repository of vat rates](https://github.com/ibericode/vat-rates). We invite you to toggle notifications for that repository and contribute changes to VAT rates in your country once they are announced.
61
+
> This package relies on a [community maintained repository of vat rates](https://github.com/ibericode/vat-rates). We
62
+
> invite you to toggle notifications for that repository and contribute changes to VAT rates in your country once they
63
+
> are announced.
53
64
54
65
To get VAT rate periods for a country, first get a CountryRates struct using the country's ISO-3166-1-alpha2 code.
55
66
@@ -59,16 +70,16 @@ You can get the rate that is currently in effect using the `GetRate` function.
0 commit comments