Zum Inhalt springen

API reference / Quittio \ Core \ Data \ Party

Address

final readonly class in quittio/core · uses Immutable

Quittio\Core\Data\Party\Address · Source

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.

Properties#

PropertyTypeDescription
$city readonly?string
$countryCode readonlystring
$line1 readonly?string
$line2 readonly?string
$line3 readonly?string
$postcode readonly?string
$subdivision readonly?string

Methods#

MethodDescription
->__construct()
::make()
->with()Returns a copy with the given properties replaced.

__construct()#

public function __construct(
    string $countryCode,
    ?string $line1 = null,
    ?string $line2 = null,
    ?string $line3 = null,
    ?string $city = null,
    ?string $postcode = null,
    ?string $subdivision = null,
)
ParameterTypeDescription
$countryCodestring
$line1?string = null
$line2?string = null
$line3?string = null
$city?string = null
$postcode?string = null
$subdivision?string = null

make()#

public static function make(
    ?string $line1,
    ?string $postcode,
    ?string $city,
    string $countryCode,
): self

static

ParameterTypeDescription
$line1?string
$postcode?string
$city?string
$countryCodestring
Returns
self

with()#

public function with(array<string, mixed> $changes): static

Returns a copy with the given properties replaced.

ParameterTypeDescription
$changesarray<string, mixed>
Returns
static

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.