\Einvoicing\Party¶
getElectronicAddress()
¶
Get electronic address
public getElectronicAddress(): \Einvoicing\Identifier|null
Returns
\Einvoicing\Identifier
|null
— Electronic address
setElectronicAddress()
¶
Set electronic address
public setElectronicAddress($electronicAddress: \Einvoicing\Identifier|null): \Einvoicing\Party
Parameters
$electronicAddress
:\Einvoicing\Identifier
|null
— Electronic address
Returns
\Einvoicing\Party
— Party instance
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
\Einvoicing\Party
— Party instance
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
\Einvoicing\Party
— Party instance
getCompanyId()
¶
Get party company legal ID
public getCompanyId(): \Einvoicing\Identifier|null
Returns
\Einvoicing\Identifier
|null
— Party company legal ID
setCompanyId()
¶
Set party company legal ID
public setCompanyId($companyId: \Einvoicing\Identifier|null): \Einvoicing\Party
Parameters
$companyId
:\Einvoicing\Identifier
|null
— Party company legal ID
Returns
\Einvoicing\Party
— Party instance
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
\Einvoicing\Party
— Party instance
getTaxRegistrationId()
¶
Get tax registration ID
public getTaxRegistrationId(): \Einvoicing\Identifier|null
Returns
\Einvoicing\Identifier
|null
— Tax registration ID
setTaxRegistrationId()
¶
Set tax registration ID
public setTaxRegistrationId($taxRegistrationId: \Einvoicing\Identifier|null): \Einvoicing\Party
Parameters
$taxRegistrationId
:\Einvoicing\Identifier
|null
— Tax registration ID
Returns
\Einvoicing\Party
— Party instance
getLegalInformation()
¶
Get additional legal information
public getLegalInformation(): string|null
Returns
string
|null
— Additional legal information
setLegalInformation()
¶
Set additional legal information
public setLegalInformation($legalInformation: string|null): \Einvoicing\Party
Parameters
$legalInformation
:string
|null
— Additional legal information
Returns
\Einvoicing\Party
— Party instance
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
\Einvoicing\Party
— This instance
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
\Einvoicing\Party
— This instance
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
\Einvoicing\Party
— This instance
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
\Einvoicing\Identifier
[] — Array of identifiers
addIdentifier()
¶
Add additional identifier
public addIdentifier($identifier: \Einvoicing\Identifier): \Einvoicing\Party
Parameters
$identifier
:\Einvoicing\Identifier
— Identifier instance
Returns
\Einvoicing\Party
— This instance
removeIdentifier()
¶
Remove additional identifier
public removeIdentifier($index: int): \Einvoicing\Party
Parameters
$index
:int
— Identifier index
Returns
\Einvoicing\Party
— This instance
Throws
\OutOfBoundsException
if identifier index is out of bounds
clearIdentifiers()
¶
Clear all additional identifiers
public clearIdentifiers(): \Einvoicing\Party
Returns
\Einvoicing\Party
— This instance
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
\Einvoicing\Party
— This instance
Throws
\InvalidArgumentException
if more than 3 lines are provided
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
\Einvoicing\Party
— This instance
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
\Einvoicing\Party
— This instance
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
\Einvoicing\Party
— This instance
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
\Einvoicing\Party
— This instance