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 Constructs a new instance of SwissAddress

Properties

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

See Also