Skip to content

Commit ea66c7d

Browse files
Add debugging logs
1 parent c74e95b commit ea66c7d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

uk_vat_service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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.
1919
func (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)

validate.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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.
1313
func 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

0 commit comments

Comments
 (0)