Payer

Informations about a payer.

package

Default

Methods

Initialize the model.

__construct(string $email, string $firstName = '', string $lastName = '') 

Arguments

$email

string

Email address of the payer

$firstName

string

First name of the payer

$lastName

string

Last name of the payer

Return an email address of the payer.

getEmail() : string

Response

string

Return a first name of the payer.

getFirstName() : string

Response

string

Return a last name of the payer.

getLastName() : string

Response

string

Set the email address of the payer.

setEmail(\Dotpay\Model\type $email) : \Dotpay\Model\Payer
Throws
\Dotpay\Exception\BadParameter\EmailException

Thrown when the given email address is incorrect

Arguments

$email

\Dotpay\Model\type

Email address of the payer

Response

\Dotpay\Model\Payer

Set the first name of the payer.

setFirstName(string $firstName) : \Dotpay\Model\Payer
Throws
\Dotpay\Exception\BadParameter\FirstnameException

Thrown when the given first name is incorrect

Arguments

$firstName

string

First name of the payer

Response

\Dotpay\Model\Payer

Set the last name of the payer.

setLastName(\Dotpay\Model\type $lastName) : \Dotpay\Model\Payer
Throws
\Dotpay\Exception\BadParameter\LastnameException

Thrown when the given last name is incorrect

Arguments

$lastName

\Dotpay\Model\type

Last name of the payer

Response

\Dotpay\Model\Payer

Properties

Email address of the payer

email : string
var

Email address of the payer

Type(s)

string

First name of the payer

firstName : string
var

First name of the payer

Type(s)

string

Last name of the payer

lastName : string
var

Last name of the payer

Type(s)

string