Document address
A postal address in a document template.
A postal address in a document template.
Access via booking.billing_address.
All properties return nil when no billing address is set on the booking.
Properties
city
The city for the address.
Returns: String or nil
country
The localised country name for the country code.
Returns: String or nil
country_code
The ISO 3166-1 alpha-2 country code for the address.
Returns: String or nil
line_one
The first line of the street address.
Returns: String or nil
line_two
The second line of the street address.
Returns: String or nil
post_code
The post code for the address.
Returns: String or nil
region
The geographic region for the country code (e.g. Americas, Europe).
Returns: String or nil
subdivision
The full subdivision name for the subdivision code.
Returns: String or nil
subdivision_code
The ISO 3166-2 subdivision code (e.g. a US state code).
Returns: String or nil
zip_code
The post code for the address.
Returns: String or nil