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;
|
||||
|
||||
/**
|
||||
@@ -121,6 +122,19 @@ class VaultResponse implements \JsonSerializable
|
||||
$this->links = $links;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts the VaultResponse object to a human-readable string representation.
|
||||
*
|
||||
* @return string The string representation of the VaultResponse object.
|
||||
*/
|
||||
public function __toString(): string
|
||||
{
|
||||
return ApiHelper::stringify(
|
||||
'VaultResponse',
|
||||
['id' => $this->id, 'status' => $this->status, 'customer' => $this->customer, 'links' => $this->links]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Encode this object to JSON
|
||||
*
|
||||
@@ -137,7 +151,7 @@ class VaultResponse implements \JsonSerializable
|
||||
$json['id'] = $this->id;
|
||||
}
|
||||
if (isset($this->status)) {
|
||||
$json['status'] = VaultStatus::checkValue($this->status);
|
||||
$json['status'] = $this->status;
|
||||
}
|
||||
if (isset($this->customer)) {
|
||||
$json['customer'] = $this->customer;
|
||||
|
||||
Reference in New Issue
Block a user