Class SepaPostalAddress
public class SepaPostalAddress : SepaObject
- Inheritance
-
SepaPostalAddress
- Inherited Members
Constructors
SepaPostalAddress(bool)
public SepaPostalAddress(bool fIsMandatory)
Parameters
fIsMandatorybool
Properties
AddressLines
Unstructured address lines.
public string[] AddressLines { get; set; }
Property Value
- string[]
Remarks
Each line may contain up to 70 characters. For SEPA at most two address lines may be used.
Exceptions
- ArgumentException
An attempt was made to set an array that contained
nullvalues, or strings longer than 70 characters.
BuildingName
public string BuildingName { get; set; }
Property Value
Exceptions
- ArgumentException
An attempt was made to set a string with more than 35 characters.
BuildingNumber
public string BuildingNumber { get; set; }
Property Value
Exceptions
- ArgumentException
An attempt was made to set a string with more than 16 characters.
Country
Two letter ISO country code.
public string Country { get; set; }
Property Value
Exceptions
- ArgumentException
An attempt was made to set a country code that did not consist of exactly two upper case letters.
CountrySubDivision
public string CountrySubDivision { get; set; }
Property Value
Exceptions
- ArgumentException
An attempt was made to set a string with more than 35 characters.
Department
public string Department { get; set; }
Property Value
Exceptions
- ArgumentException
An attempt was made to set a string with more than 70 characters.
DistrictName
public string DistrictName { get; set; }
Property Value
Remarks
This element only exists since ISO 20022 standard maintenance release 2019. The value will not be written in older formats.
Exceptions
- ArgumentException
An attempt was made to set a string with more than 35 characters.
Floor
public string Floor { get; set; }
Property Value
Remarks
This element only exists since ISO 20022 standard maintenance release 2019. The value will not be written in older formats.
Exceptions
- ArgumentException
An attempt was made to set a string with more than 70 characters.
IsEmpty
public override bool IsEmpty { get; }
Property Value
PostBox
public string PostBox { get; set; }
Property Value
Remarks
This element only exists since ISO 20022 standard maintenance release 2019. The value will not be written in older formats.
Exceptions
- ArgumentException
An attempt was made to set a string with more than 16 characters.
PostCode
public string PostCode { get; set; }
Property Value
Exceptions
- ArgumentException
An attempt was made to set a string with more than 16 characters.
PostCodeAndTownName
public string PostCodeAndTownName { get; set; }
Property Value
Remarks
When the TownName is not set, then an attempt is made to return the second line from the AddressLines array as a substitude.
When the property is set, then an attempts is made to split the value into
PostCode and TownName. If this is not possible, then
the entire trimmed value is set as the TownName and the
PostCode is set to null.
Room
public string Room { get; set; }
Property Value
Remarks
This element only exists since ISO 20022 standard maintenance release 2019. The value will not be written in older formats.
Exceptions
- ArgumentException
An attempt was made to set a string with more than 70 characters.
StreetName
public string StreetName { get; set; }
Property Value
Exceptions
- ArgumentException
An attempt was made to set a string with more than 70 characters.
StreetNameAndBuildingNumber
Returns a combination of StreetName and BuildingNumber.
public string StreetNameAndBuildingNumber { get; set; }
Property Value
Remarks
If the StreetName is not set, then an attempt is made to return the first line from the AddressLines array as a substitude.
SubDepartment
public string SubDepartment { get; set; }
Property Value
Exceptions
- ArgumentException
An attempt was made to set a string with more than 70 characters.
TownLocationName
public string TownLocationName { get; set; }
Property Value
Remarks
This element only exists since ISO 20022 standard maintenance release 2019. The value will not be written in older formats.
Exceptions
- ArgumentException
An attempt was made to set a string with more than 35 characters.
TownName
public string TownName { get; set; }
Property Value
Exceptions
- ArgumentException
An attempt was made to set a string with more than 35 characters.
Methods
Clear()
public override void Clear()
OnReadXml(XmlReader, SepaMessageInfo)
protected override void OnReadXml(XmlReader aXmlReader, SepaMessageInfo aMessageInfo)
Parameters
aXmlReaderXmlReaderaMessageInfoSepaMessageInfo
OnValidate(ICollection<SepaException>, string)
protected override void OnValidate(ICollection<SepaException> vErrors, string sPath)
Parameters
vErrorsICollection<SepaException>sPathstring
OnWriteXml(XmlWriter, SepaMessageInfo)
protected override void OnWriteXml(XmlWriter aXmlWriter, SepaMessageInfo aMessageInfo)
Parameters
aXmlWriterXmlWriteraMessageInfoSepaMessageInfo