Documentation ¶
Index ¶
Constants ¶
View Source
const (
// europeanViesEndpoint is the current default vies endpoint
VIESEndpoint = "http://ec.europa.eu/taxation_customs/vies/services/checkVatService"
)
Variables ¶
View Source
var ( ErrorVatTooShort = errors.New("VAT number is too short") ErrorInvalidCountryCode = errors.New("invalid country code") )
Functions ¶
This section is empty.
Types ¶
type VATInfo ¶
type VATInfo struct { CountryCode string `xml:"countryCode"` VatNumber string `xml:"vatNumber"` RequestDate string `xml:"requestDate"` Valid bool `xml:"valid"` Name string `xml:"name"` Address string `xml:"address"` }
ValidationVAT Response message for valid responses from VIES
func GetViesVatInfo ¶
type XMLBody ¶
type XMLBody struct { XMLName xml.Name VATInfo VATInfo `xml:"checkVatResponse"` Error ErrorInfo `xml:"Fault"` }
body is the body of a response
type XMLResponse ¶
XMLResponse is the response from the vies service
Click to show internal directories.
Click to hide internal directories.