Struct SepaVatID
Assembly: Subsembly.Sepa.dll
Syntax
Constructors
SepaVatID(string)
Declaration
public SepaVatID(string sVatID)
Parameters
Type |
Name |
Description |
string |
sVatID |
|
Fields
MAXLENGTH
The maximum length of a valid VAT ID.
Declaration
public const int MAXLENGTH = 14
Field Value
MINLENGTH
The minimum length of a valid VAT ID.
Declaration
public const int MINLENGTH = 4
Field Value
NullVatID
Declaration
public static readonly SepaVatID NullVatID
Field Value
Properties
CountryCode
The country code of the issuing country.
Declaration
public string CountryCode { get; }
Property Value
IsNull
Declaration
public bool IsNull { get; }
Property Value
VatID
Declaration
public string VatID { get; }
Property Value
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
Right hand side to compare to.
|
Returns
Overrides
GetCountryCode(string)
If the given VAT ID is valid, then the country code of the issuing country is
returned.
Declaration
public static string GetCountryCode(string sVatID)
Parameters
Type |
Name |
Description |
string |
sVatID |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
Hashcode.
|
Overrides
IsValid(string)
Declaration
public static bool IsValid(string sVatID)
Parameters
Type |
Name |
Description |
string |
sVatID |
A strictly formatted VAT ID. If this is null or an empty string, then
false is returned.
|
Returns
Type |
Description |
bool |
If a syntactically valid VAT ID was given, then true is returned.
Otherwise, false is returned.
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
TryCapture(string)
Try to capture a user entered VAT ID.
Declaration
public static SepaVatID TryCapture(string sPaperVatID)
Parameters
Type |
Name |
Description |
string |
sPaperVatID |
A string that represents a VAT ID that was manually entered by an user. It may
contain blanks and may use lower case letters. If this is null or an
empty string, then NullVatID is returned.
|
Returns
Operators
operator ==(SepaVatID, SepaVatID)
Declaration
public static bool operator ==(SepaVatID lhs, SepaVatID rhs)
Parameters
Returns
operator !=(SepaVatID, SepaVatID)
Declaration
public static bool operator !=(SepaVatID lhs, SepaVatID rhs)
Parameters
Returns