![]() |
Aspose.Barcode for Python via Java Generation and Recognition API docs
|
Address of creditor or debtor. More...
Inherits _MwWrapper.
Public Member Functions | |
| None | __init__ (self) |
| bool | __eq__ (self, Address other) |
| Determines whether the specified object is equal to the current object. More... | |
| int | __hash__ (self) |
| Returns the hash code for the current instance. More... | |
| Optional[str] | address_line1 (self) |
| Gets the address line 1. More... | |
| None | address_line1 (self, Optional[str] value) |
| Sets the address line 1. More... | |
| Optional[str] | address_line2 (self) |
| Gets the address line 2. More... | |
| None | address_line2 (self, Optional[str] value) |
| Sets the address line 2. More... | |
| None | clear (self) |
| Clears all fields and sets the type to AddressType.Undetermined. More... | |
| Optional[str] | country_code (self) |
| Gets the two-letter ISO country code. More... | |
| None | country_code (self, Optional[str] value) |
| Sets the two-letter ISO country code. More... | |
| Optional[str] | house_no (self) |
| Gets the house number. More... | |
| None | house_no (self, Optional[str] value) |
| Sets the house number. More... | |
| Optional[str] | name (self) |
| Gets the name, either the first and last name of a natural person or the company name of a legal person. More... | |
| None | name (self, Optional[str] value) |
| Sets the name, either the first and last name of a natural person or the company name of a legal person. More... | |
| Optional[str] | postal_code (self) |
| Gets the postal code. More... | |
| None | postal_code (self, Optional[str] value) |
| Sets the postal code. More... | |
| Optional[str] | street (self) |
| Gets the street. More... | |
| None | street (self, Optional[str] value) |
| Sets the street. More... | |
| Optional[str] | town (self) |
| Gets the town or city. More... | |
| None | town (self, Optional[str] value) |
| Sets the town or city. More... | |
| AddressType | type (self) |
Public Attributes | |
| address_line1 | |
| address_line2 | |
| country_code | |
| house_no | |
| name | |
| postal_code | |
| street | |
| town | |
Address of creditor or debtor.
You can either set street, house number, postal code and town (type structured address) or address line 1 and 2 (type combined address elements). The type is automatically set once any of these fields is set. Before setting the fields, the address type is undetermined. If fields of both types are set, the address type becomes conflicting. Name and country code must always be set unless all fields are empty.
| None __init__ | ( | self | ) |
| bool __eq__ | ( | self, | |
| Address | other | ||
| ) |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
| int __hash__ | ( | self | ) |
Returns the hash code for the current instance.
| Optional[str] address_line1 | ( | self | ) |
Gets the address line 1.
Address line 1 contains street name, house number or P.O. box. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting. This field is only used for combined elements addresses and is optional.
| None address_line1 | ( | self, | |
| Optional[str] | value | ||
| ) |
Sets the address line 1.
Address line 1 contains street name, house number or P.O. box. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting. This field is only used for combined elements addresses and is optional.
| :The | address line 1. |
| Optional[str] address_line2 | ( | self | ) |
Gets the address line 2.
Address line 2 contains postal code and town. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting. This field is only used for combined elements addresses. For this type, it's mandatory.
| None address_line2 | ( | self, | |
| Optional[str] | value | ||
| ) |
Sets the address line 2.
Address line 2 contains postal code and town. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting. This field is only used for combined elements addresses. For this type, it's mandatory.
| :The | address line 2. |
| None clear | ( | self | ) |
Clears all fields and sets the type to AddressType.Undetermined.
| Optional[str] country_code | ( | self | ) |
Gets the two-letter ISO country code.
The country code is mandatory unless the entire address contains None or emtpy values.
| None country_code | ( | self, | |
| Optional[str] | value | ||
| ) |
Sets the two-letter ISO country code.
The country code is mandatory unless the entire address contains None or emtpy values.
| :The | ISO country code. |
| Optional[str] house_no | ( | self | ) |
Gets the house number.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses and is optional.
| None house_no | ( | self, | |
| Optional[str] | value | ||
| ) |
Sets the house number.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses and is optional.
| :The | house number. |
| Optional[str] name | ( | self | ) |
Gets the name, either the first and last name of a natural person or the company name of a legal person.
| None name | ( | self, | |
| Optional[str] | value | ||
| ) |
Sets the name, either the first and last name of a natural person or the company name of a legal person.
| :The | name. |
| Optional[str] postal_code | ( | self | ) |
Gets the postal code.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses. For this type, it's mandatory.
| None postal_code | ( | self, | |
| Optional[str] | value | ||
| ) |
Sets the postal code.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses. For this type, it's mandatory.
| :The | postal code. |
| Optional[str] street | ( | self | ) |
Gets the street.
The street must be speicfied without house number. Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses and is optional.
| None street | ( | self, | |
| Optional[str] | value | ||
| ) |
Sets the street.
The street must be speicfied without house number. Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses and is optional.
| :The | street. |
| Optional[str] town | ( | self | ) |
Gets the town or city.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses. For this type, it's mandatory.
| None town | ( | self, | |
| Optional[str] | value | ||
| ) |
Sets the town or city.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses. For this type, it's mandatory.
| :The | town or city. |
| AddressType type | ( | self | ) |
| address_line1 |
| address_line2 |
| country_code |
| house_no |
| name |
| postal_code |
| street |
| town |