Skip to content

\Einvoicing\Party

getElectronicAddress()

Get electronic address

public getElectronicAddress(): \Einvoicing\Identifier|null

Returns


setElectronicAddress()

Set electronic address

public setElectronicAddress($electronicAddress: \Einvoicing\Identifier|null): \Einvoicing\Party

Parameters

Returns


getName()

Get party legal name

public getName(): string|null

Returns

  • string|null — Party legal name

setName()

Set party legal name

public setName($name: string|null): \Einvoicing\Party

Parameters

  • $name: string|null — Party legal name

Returns


getTradingName()

Get party trading name (also known as business name)

public getTradingName(): string|null

Returns

  • string|null — Party trading name

setTradingName()

Set party trading name (also known as business name)

public setTradingName($tradingName: string|null): \Einvoicing\Party

Parameters

  • $tradingName: string|null — Party trading name

Returns


getCompanyId()

Get party company legal ID

public getCompanyId(): \Einvoicing\Identifier|null

Returns


setCompanyId()

Set party company legal ID

public setCompanyId($companyId: \Einvoicing\Identifier|null): \Einvoicing\Party

Parameters

Returns


getVatNumber()

Get party VAT number

public getVatNumber(): string|null

Returns

  • string|null — Party VAT number

setVatNumber()

Set party VAT number

public setVatNumber($vatNumber: string|null): \Einvoicing\Party

Parameters

  • $vatNumber: string|null — Party VAT number

Returns


getTaxRegistrationId()

Get tax registration ID

public getTaxRegistrationId(): \Einvoicing\Identifier|null

Returns


setTaxRegistrationId()

Set tax registration ID

public setTaxRegistrationId($taxRegistrationId: \Einvoicing\Identifier|null): \Einvoicing\Party

Parameters

Returns


getContactName()

Get contact point name

public getContactName(): string|null

Returns

  • string|null — Contact name

setContactName()

Set contact point name

public setContactName($contactName: string|null): \Einvoicing\Party

Parameters

  • $contactName: string|null — Contact name

Returns


getContactPhone()

Get contact point phone number

public getContactPhone(): string|null

Returns

  • string|null — Contact phone number

setContactPhone()

Set contact point phone number

public setContactPhone($contactPhone: string|null): \Einvoicing\Party

Parameters

  • $contactPhone: string|null — Contact phone number

Returns


getContactEmail()

Get contact point email addresss

public getContactEmail(): string|null

Returns

  • string|null — Contact email address

setContactEmail()

Set contact point email address

public setContactEmail($contactEmail: string|null): \Einvoicing\Party

Parameters

  • $contactEmail: string|null — Contact email address

Returns


hasContactInformation()

Has contact information

public hasContactInformation(): bool

Returns

  • bool — TRUE if party has any contact information, FALSE otherwise

getIdentifiers()

Get additional identifiers

public getIdentifiers(): \Einvoicing\Identifier[]

Returns


addIdentifier()

Add additional identifier

public addIdentifier($identifier: \Einvoicing\Identifier): \Einvoicing\Party

Parameters

Returns


removeIdentifier()

Remove additional identifier

public removeIdentifier($index: int): \Einvoicing\Party

Parameters

  • $index: int — Identifier index

Returns

Throws


clearIdentifiers()

Clear all additional identifiers

public clearIdentifiers(): \Einvoicing\Party

Returns


getAddress()

Get address lines

public getAddress(): string[]

Returns

  • string[] — Address lines (up to 3 lines)

setAddress()

Set address lines

public setAddress($addressLines: string[]): \Einvoicing\Party

Parameters

  • $addressLines: string[] — Address lines (up to 3 lines)

Returns

Throws


getCity()

Get city name

public getCity(): string|null

Returns

  • string|null — City name

setCity()

Set city name

public setCity($city: string|null): \Einvoicing\Party

Parameters

  • $city: string|null — City name

Returns


getPostalCode()

Get postal code

public getPostalCode(): string|null

Returns

  • string|null — Postal code

setPostalCode()

Set postal code

public setPostalCode($postalCode: string|null): \Einvoicing\Party

Parameters

  • $postalCode: string|null — Postal code

Returns


getSubdivision()

Get country subdivision (region, province, etc.)

public getSubdivision(): string|null

Returns

  • string|null — Country subdivision

setSubdivision()

Set country subdivision (region, province, etc.)

public setSubdivision($subdivision: string|null): \Einvoicing\Party

Parameters

  • $subdivision: string|null — Country subdivision

Returns


getCountry()

Get country code

public getCountry(): string|null

Returns

  • string|null — Country code

setCountry()

Set country code

public setCountry($countryCode: string|null): \Einvoicing\Party

Parameters

  • $countryCode: string|null — Country code

Returns