BuyerParty
in package
uses
Immutable
Read onlyYes
FinalYes
Buyer (BG-7).
Table of Contents
Properties
- $address : Address
- $contact : Contact|null
- $electronicAddress : ElectronicAddress|null
- $identifier : Identifier|null
- $isConsumer : bool
- $legalRegistration : Identifier|null
- $name : string
- $tradingName : string|null
- $vatId : string|null
Methods
- __construct() : mixed
- with() : static
- Returns a copy with the given properties replaced.
Properties
$address
public
Address
$address
Attributes
- #[Bt]
- 'BG-8'
- #[Cardinality]
- '1'
- #[Cii]
- 'ram:BuyerTradeParty/ram:PostalTradeAddress'
- #[Level]
- ProfileLevel::BasicWl
- #[Ubl]
- 'cac:AccountingCustomerParty/cac:Party/cac:PostalAddress'
$contact
public
Contact|null
$contact
= null
Attributes
- #[Bt]
- 'BG-9'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:BuyerTradeParty/ram:DefinedTradeContact'
- #[Ubl]
- 'cac:Contact'
$electronicAddress
public
ElectronicAddress|null
$electronicAddress
= null
Attributes
- #[Bt]
- 'BT-49'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:BuyerTradeParty/ram:URIUniversalCommunication/ram:URIID'
- #[Level]
- ProfileLevel::BasicWl
- #[RequiredIn]
- 'xrechnung'
- 'peppol'
- #[Ubl]
- 'cbc:EndpointID'
$identifier
public
Identifier|null
$identifier
= null
Attributes
- #[Bt]
- 'BT-46'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:BuyerTradeParty/ram:ID | ram:GlobalID'
- #[Level]
- ProfileLevel::BasicWl
- #[Ubl]
- 'cac:PartyIdentification/cbc:ID'
$isConsumer
public
bool
$isConsumer
= false
Attributes
- #[Internal]
$legalRegistration
public
Identifier|null
$legalRegistration
= null
Attributes
- #[Bt]
- 'BT-47'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:ID'
- #[Level]
- ProfileLevel::Minimum
- #[Ubl]
- 'cac:PartyLegalEntity/cbc:CompanyID'
$name
public
string
$name
Attributes
- #[Bt]
- 'BT-44'
- #[Cardinality]
- '1'
- #[Cii]
- 'ram:BuyerTradeParty/ram:Name'
- #[Level]
- ProfileLevel::Minimum
- #[Ubl]
- 'cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName'
$tradingName
public
string|null
$tradingName
= null
Attributes
- #[Bt]
- 'BT-45'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:TradingBusinessName'
- #[Ubl]
- 'cac:PartyName/cbc:Name'
$vatId
public
string|null
$vatId
= null
Attributes
- #[Bt]
- 'BT-48'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID="VA"]'
- #[Level]
- ProfileLevel::BasicWl
- #[Ubl]
- 'cac:PartyTaxScheme/cbc:CompanyID'
Methods
__construct()
public
__construct(string $name, Address $address[, string|null $tradingName = null ][, Identifier|null $identifier = null ][, Identifier|null $legalRegistration = null ][, string|null $vatId = null ][, ElectronicAddress|null $electronicAddress = null ][, Contact|null $contact = null ][, bool $isConsumer = false ]) : mixed
Parameters
- $name : string
- $address : Address
- $tradingName : string|null = null
- $identifier : Identifier|null = null
- $legalRegistration : Identifier|null = null
- $vatId : string|null = null
- $electronicAddress : ElectronicAddress|null = null
- $contact : Contact|null = null
- $isConsumer : bool = false
with()
Returns a copy with the given properties replaced.
public
with(array<string, mixed> $changes) : static
Parameters
- $changes : array<string, mixed>