Quittio next API

Address
in package
uses Immutable

Read onlyYes
FinalYes

Postal address (BG-5 seller, BG-8 buyer, BG-12 tax representative, BG-15 deliver to).

Business terms: line1 BT-35/50/64/75, line2 BT-36/51/65/76, line3 BT-162/163/164/165, city BT-37/52/66/77, postcode BT-38/53/67/78, subdivision BT-39/54/68/79, country BT-40/55/69/80.

Profile levels (Factur-X/ZUGFeRD): the country code from MINIMUM, the other parts from BASIC WL. The level of the address field raises them (FieldMatrix::level()): in MINIMUM only the seller address (BG-5) exists, with the country code (BT-40) alone; the buyer (BG-8), tax representative (BG-12) and deliver-to (BG-15) addresses start with BASIC WL.

Table of Contents

Properties

$city  : string|null
$countryCode  : string
$line1  : string|null
$line2  : string|null
$line3  : string|null
$postcode  : string|null
$subdivision  : string|null

Methods

__construct()  : mixed
make()  : self
with()  : static
Returns a copy with the given properties replaced.

Properties

$city

public string|null $city = null
Attributes
#[Bt]
'BT-37'
#[Cardinality]
'0..1'
#[Cii]
'ram:CityName'
#[Level]
ProfileLevel::BasicWl
#[Ubl]
'cbc:CityName'

$countryCode

public string $countryCode
Attributes
#[Bt]
'BT-40'
#[Cardinality]
'1'
#[Cii]
'ram:CountryID'
#[Level]
ProfileLevel::Minimum
#[Ubl]
'cac:Country/cbc:IdentificationCode'

$line1

public string|null $line1 = null
Attributes
#[Bt]
'BT-35'
#[Cardinality]
'0..1'
#[Cii]
'ram:LineOne'
#[Level]
ProfileLevel::BasicWl
#[Ubl]
'cbc:StreetName'

$line2

public string|null $line2 = null
Attributes
#[Bt]
'BT-36'
#[Cardinality]
'0..1'
#[Cii]
'ram:LineTwo'
#[Level]
ProfileLevel::BasicWl
#[Ubl]
'cbc:AdditionalStreetName'

$line3

public string|null $line3 = null
Attributes
#[Bt]
'BT-162'
#[Cardinality]
'0..1'
#[Cii]
'ram:LineThree'
#[Level]
ProfileLevel::BasicWl
#[Ubl]
'cac:AddressLine/cbc:Line'

$postcode

public string|null $postcode = null
Attributes
#[Bt]
'BT-38'
#[Cardinality]
'0..1'
#[Cii]
'ram:PostcodeCode'
#[Level]
ProfileLevel::BasicWl
#[Ubl]
'cbc:PostalZone'

$subdivision

public string|null $subdivision = null
Attributes
#[Bt]
'BT-39'
#[Cardinality]
'0..1'
#[Cii]
'ram:CountrySubDivisionName'
#[Level]
ProfileLevel::BasicWl
#[Ubl]
'cbc:CountrySubentity'

Methods

__construct()

public __construct(string $countryCode[, string|null $line1 = null ][, string|null $line2 = null ][, string|null $line3 = null ][, string|null $city = null ][, string|null $postcode = null ][, string|null $subdivision = null ]) : mixed
Parameters
$countryCode : string
$line1 : string|null = null
$line2 : string|null = null
$line3 : string|null = null
$city : string|null = null
$postcode : string|null = null
$subdivision : string|null = null

make()

public static make(string|null $line1, string|null $postcode, string|null $city, string $countryCode) : self
Parameters
$line1 : string|null
$postcode : string|null
$city : string|null
$countryCode : string
Return values
self

with()

Returns a copy with the given properties replaced.

public with(array<string, mixed> $changes) : static
Parameters
$changes : array<string, mixed>
Return values
static
On this page

Search results