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;
|
||||
|
||||
/**
|
||||
@@ -67,6 +68,19 @@ class RefundStatusWithDetails implements \JsonSerializable
|
||||
$this->statusDetails = $statusDetails;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts the RefundStatusWithDetails object to a human-readable string representation.
|
||||
*
|
||||
* @return string The string representation of the RefundStatusWithDetails object.
|
||||
*/
|
||||
public function __toString(): string
|
||||
{
|
||||
return ApiHelper::stringify(
|
||||
'RefundStatusWithDetails',
|
||||
['status' => $this->status, 'statusDetails' => $this->statusDetails]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Encode this object to JSON
|
||||
*
|
||||
@@ -80,7 +94,7 @@ class RefundStatusWithDetails implements \JsonSerializable
|
||||
{
|
||||
$json = [];
|
||||
if (isset($this->status)) {
|
||||
$json['status'] = RefundStatus::checkValue($this->status);
|
||||
$json['status'] = $this->status;
|
||||
}
|
||||
if (isset($this->statusDetails)) {
|
||||
$json['status_details'] = $this->statusDetails;
|
||||
|
||||
Reference in New Issue
Block a user