SwissAddress class

SwissAddress class

Represents the address of the creditor or debtor.

You can either set street, house number, postal code, and town (structured address type) or address line 1 and 2 (combined address elements type).

The SwissAddress type exposes the following members:

Constructors

Constructor Description
init

Properties

Property Description
address_line1 The address line 1, containing street name, house number, or P.O. box, is optional and used only for combined elements addresses.
address_line2 The address line 2, which contains the postal code and town, is mandatory for combined elements addresses.
country_code The two-letter ISO country code. The country code is mandatory unless the entire address contains null or empty values.
house_no The house number. This field is only used for structured addresses and is optional.
name The name, either the first and last name of a natural person or the company name of a legal person.
postal_code The postal code. This field is only used for structured addresses. For this type, it’s mandatory.
street The street of the address, without a house number; optional and used only for structured addresses.
town The town or city, used only for structured addresses and mandatory for this type.

See Also