forked from LiveCarta/PayPal-PHP-Server-SDK
Release 0.7.0
Beta Release 0.7.0 including: - Bug fixes - Updated model/function names - Updated models to reflect changes in APIs
This commit is contained in:
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use PaypalServerSdkLib\ApiHelper;
|
||||
use stdClass;
|
||||
|
||||
class Payer implements \JsonSerializable
|
||||
@@ -51,10 +52,9 @@ class Payer implements \JsonSerializable
|
||||
|
||||
/**
|
||||
* Returns Email Address.
|
||||
* The internationalized email address.<blockquote><strong>Note:</strong> Up to 64 characters are
|
||||
* allowed before and 255 characters are allowed after the <code>@</code> sign. However, the generally
|
||||
* accepted maximum length for an email address is 254 characters. The pattern verifies that an
|
||||
* unquoted <code>@</code> sign exists.</blockquote>
|
||||
* The internationalized email address. Note: Up to 64 characters are allowed before and 255 characters
|
||||
* are allowed after the @ sign. However, the generally accepted maximum length for an email address is
|
||||
* 254 characters. The pattern verifies that an unquoted @ sign exists.
|
||||
*/
|
||||
public function getEmailAddress(): ?string
|
||||
{
|
||||
@@ -63,10 +63,9 @@ class Payer implements \JsonSerializable
|
||||
|
||||
/**
|
||||
* Sets Email Address.
|
||||
* The internationalized email address.<blockquote><strong>Note:</strong> Up to 64 characters are
|
||||
* allowed before and 255 characters are allowed after the <code>@</code> sign. However, the generally
|
||||
* accepted maximum length for an email address is 254 characters. The pattern verifies that an
|
||||
* unquoted <code>@</code> sign exists.</blockquote>
|
||||
* The internationalized email address. Note: Up to 64 characters are allowed before and 255 characters
|
||||
* are allowed after the @ sign. However, the generally accepted maximum length for an email address is
|
||||
* 254 characters. The pattern verifies that an unquoted @ sign exists.
|
||||
*
|
||||
* @maps email_address
|
||||
*/
|
||||
@@ -211,6 +210,27 @@ class Payer implements \JsonSerializable
|
||||
$this->address = $address;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts the Payer object to a human-readable string representation.
|
||||
*
|
||||
* @return string The string representation of the Payer object.
|
||||
*/
|
||||
public function __toString(): string
|
||||
{
|
||||
return ApiHelper::stringify(
|
||||
'Payer',
|
||||
[
|
||||
'emailAddress' => $this->emailAddress,
|
||||
'payerId' => $this->payerId,
|
||||
'name' => $this->name,
|
||||
'phone' => $this->phone,
|
||||
'birthDate' => $this->birthDate,
|
||||
'taxInfo' => $this->taxInfo,
|
||||
'address' => $this->address
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Encode this object to JSON
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user