File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ type ukVATService struct{}
1717
1818// Validate checks if the given VAT number exists and is active. If no error is returned, then it is.
1919func (s * ukVATService ) Validate (vatNumber string , opts ValidatorOpts ) error {
20+ fmt .Printf ("Validating UK VAT WITH OPTS: %+v\n " , opts ) // todo remove me
2021 if opts .UKAccessToken == nil || opts .UKAccessToken .IsExpired () {
2122 // if no access token is provided or if it's expired, try to generate one
2223 // (it is recommended to generate one separately and cache it and pass it in as an option here)
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
1111// If no opts are passed in, VIES numbers will still be validated as always, but GB numbers will not.
1212// If multiple opts arguments passed in, only the first one is used.
1313func Validate (vatNumber string , opts ... ValidatorOpts ) error {
14+ fmt .Printf ("VALIDATE CALLED WITH OPTS: %+v\n " , opts ) // todo remove me
1415 err := ValidateFormat (vatNumber )
1516 if err != nil {
1617 return err
You can’t perform that action at this time.
0 commit comments