VatNumberHelperValidateVatNumber Method |
Determines whether the specified VAT number is valid.
Namespace:
Atomia.Billing.Core.Sdk.BusinessLogic
Assembly:
Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax public static VatNumberValidationResultType ValidateVatNumber(
string countryCode,
string vatNumber,
bool forceLiveValidation,
IAtomiaBillingApi atomiaBillingApi
)
Public Shared Function ValidateVatNumber (
countryCode As String,
vatNumber As String,
forceLiveValidation As Boolean,
atomiaBillingApi As IAtomiaBillingApi
) As VatNumberValidationResultType
public:
static VatNumberValidationResultType ValidateVatNumber(
String^ countryCode,
String^ vatNumber,
bool forceLiveValidation,
IAtomiaBillingApi^ atomiaBillingApi
)
static member ValidateVatNumber :
countryCode : string *
vatNumber : string *
forceLiveValidation : bool *
atomiaBillingApi : IAtomiaBillingApi -> VatNumberValidationResultType
Parameters
- countryCode
- Type: SystemString
The country code. - vatNumber
- Type: SystemString
The VAT number. - forceLiveValidation
- Type: SystemBoolean
Flag which tells whether validation using service should be used when there is cached copy of VAT number with validation data. - atomiaBillingApi
- Type: Atomia.Billing.Core.SdkIAtomiaBillingApi
The atomia billing API.
Return Value
Type:
VatNumberValidationResultTypetrue if the specified VAT number is valid,
false otherwise.
See Also