Class Address
Address is an object of convenience, to parse and create addresses.
Methods summary
public
|
#
__construct( string $email = '', string $telno = '', string $cellno = '', string $fname = '', string $lname = '', string $careof = '', string $street = '', string $zip = '', string $city = '', string|integer $country = null, string $houseNo = '', string $houseExt = '' )
Class constructor. |
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
#
setCompanyName( string $company )
Sets the company name. If the purchase results in a company purchase, reference person will be used from first and last name, or the value set with Klarna::setReference(). |
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
integer
|
|
public
string
|
|
public
|
#
setCountry( integer $country )
Sets the country, use either a two letter representation or the integer constant. |
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
array
|
Magic methods summary
Properties summary
protected
string
|
$email
Email address. |
|
protected
string
|
$telno
Phone number. |
|
protected
string
|
$cellno
Cellphone number. |
|
protected
string
|
$fname
First name. |
|
protected
string
|
$lname
Last name. |
|
protected
string
|
$company
Company name. |
|
protected
string
|
$careof
Care of, C/O. |
|
protected
string
|
$street
Street address. |
|
protected
string
|
$zip
Zip code. |
|
protected
string
|
$city
City. |
|
protected
integer
|
$country
Country constant. |
|
protected
string
|
$houseNo
House number. Only for NL and DE! |
|
protected
string
|
$houseExt
House extension. Only for NL! |
|
public
boolean|null
|
$isCompany
When using Klarna::getAddresses() this might be guessed depending on type used. |
#
null
|