\Einvoicing\Delivery¶
getName()
¶
Get party name
public getName(): string|null
Returns
string
|null
— Party name
setName()
¶
Set party name
public setName($name: string|null): \Einvoicing\Delivery
Parameters
$name
:string
|null
— Party name
Returns
\Einvoicing\Delivery
— Delivery instance
getDate()
¶
Get actual delivery date
public getDate(): \DateTime|null
Returns
\DateTime
|null
— Actual delivery date
setDate()
¶
Set actual delivery date
public setDate($date: \DateTime|null): \Einvoicing\Delivery
Parameters
$date
:\DateTime
|null
— Actual delivery date
Returns
\Einvoicing\Delivery
— Delivery instance
getLocationIdentifier()
¶
Get delivery location identifier
public getLocationIdentifier(): \Einvoicing\Identifier|null
Returns
\Einvoicing\Identifier
|null
— Delivery location identifier
setLocationIdentifier()
¶
Set delivery location identifier
public setLocationIdentifier($identifier: \Einvoicing\Identifier|null): \Einvoicing\Delivery
Parameters
$identifier
:\Einvoicing\Identifier
|null
— Delivery location identifier
Returns
\Einvoicing\Delivery
— Delivery 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\Delivery
Parameters
$addressLines
:string
[] — Address lines (up to 3 lines)
Returns
\Einvoicing\Delivery
— 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\Delivery
Parameters
$city
:string
|null
— City name
Returns
\Einvoicing\Delivery
— 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\Delivery
Parameters
$postalCode
:string
|null
— Postal code
Returns
\Einvoicing\Delivery
— 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\Delivery
Parameters
$subdivision
:string
|null
— Country subdivision
Returns
\Einvoicing\Delivery
— 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\Delivery
Parameters
$countryCode
:string
|null
— Country code
Returns
\Einvoicing\Delivery
— This instance