Documentation
¶
Overview ¶
Package vies implements the API call to the VIES service to validate a TIN number
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct{}
API is a struct that implements the VIES lookup and inherits from LookupAPI
type CheckTINResponse ¶
type CheckTINResponse struct {
Valid bool `json:"valid"`
CountryCode string `json:"countryCode"`
TinNumber string `json:"vatNumber"`
}
CheckTINResponse is the response from a TIN lookup
type CheckVatRequest ¶
type CheckVatRequest struct {
CountryCode l10n.TaxCountryCode `json:"countryCode"`
VatNumber cbc.Code `json:"vatNumber"`
}
CheckVatRequest is the request body for the VIES API
type CommonResponse ¶
type CommonResponse struct {
Message string `json:"message"`
}
CommonResponse is the response body for the VIES API
Click to show internal directories.
Click to hide internal directories.