1
0

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:
Patrick Powers
2025-03-20 13:18:55 -05:00
committed by GitHub
parent bba7e8b3d0
commit 504c367386
707 changed files with 22368 additions and 9237 deletions

View File

@@ -10,6 +10,7 @@ declare(strict_types=1);
namespace PaypalServerSdkLib\Models;
use PaypalServerSdkLib\ApiHelper;
use stdClass;
/**
@@ -252,8 +253,8 @@ class AuthorizationWithAdditionalData implements \JsonSerializable
/**
* Returns Expiration Time.
* The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.
* 6). Seconds are required while fractional seconds are optional.<blockquote><strong>Note:</strong>
* The regular expression provides guidance but does not reject all invalid dates.</blockquote>
* 6). Seconds are required while fractional seconds are optional. Note: The regular expression
* provides guidance but does not reject all invalid dates.
*/
public function getExpirationTime(): ?string
{
@@ -263,8 +264,8 @@ class AuthorizationWithAdditionalData implements \JsonSerializable
/**
* Sets Expiration Time.
* The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.
* 6). Seconds are required while fractional seconds are optional.<blockquote><strong>Note:</strong>
* The regular expression provides guidance but does not reject all invalid dates.</blockquote>
* 6). Seconds are required while fractional seconds are optional. Note: The regular expression
* provides guidance but does not reject all invalid dates.
*
* @maps expiration_time
*/
@@ -300,8 +301,8 @@ class AuthorizationWithAdditionalData implements \JsonSerializable
/**
* Returns Create Time.
* The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.
* 6). Seconds are required while fractional seconds are optional.<blockquote><strong>Note:</strong>
* The regular expression provides guidance but does not reject all invalid dates.</blockquote>
* 6). Seconds are required while fractional seconds are optional. Note: The regular expression
* provides guidance but does not reject all invalid dates.
*/
public function getCreateTime(): ?string
{
@@ -311,8 +312,8 @@ class AuthorizationWithAdditionalData implements \JsonSerializable
/**
* Sets Create Time.
* The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.
* 6). Seconds are required while fractional seconds are optional.<blockquote><strong>Note:</strong>
* The regular expression provides guidance but does not reject all invalid dates.</blockquote>
* 6). Seconds are required while fractional seconds are optional. Note: The regular expression
* provides guidance but does not reject all invalid dates.
*
* @maps create_time
*/
@@ -324,8 +325,8 @@ class AuthorizationWithAdditionalData implements \JsonSerializable
/**
* Returns Update Time.
* The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.
* 6). Seconds are required while fractional seconds are optional.<blockquote><strong>Note:</strong>
* The regular expression provides guidance but does not reject all invalid dates.</blockquote>
* 6). Seconds are required while fractional seconds are optional. Note: The regular expression
* provides guidance but does not reject all invalid dates.
*/
public function getUpdateTime(): ?string
{
@@ -335,8 +336,8 @@ class AuthorizationWithAdditionalData implements \JsonSerializable
/**
* Sets Update Time.
* The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.
* 6). Seconds are required while fractional seconds are optional.<blockquote><strong>Note:</strong>
* The regular expression provides guidance but does not reject all invalid dates.</blockquote>
* 6). Seconds are required while fractional seconds are optional. Note: The regular expression
* provides guidance but does not reject all invalid dates.
*
* @maps update_time
*/
@@ -365,6 +366,33 @@ class AuthorizationWithAdditionalData implements \JsonSerializable
$this->processorResponse = $processorResponse;
}
/**
* Converts the AuthorizationWithAdditionalData object to a human-readable string representation.
*
* @return string The string representation of the AuthorizationWithAdditionalData object.
*/
public function __toString(): string
{
return ApiHelper::stringify(
'AuthorizationWithAdditionalData',
[
'status' => $this->status,
'statusDetails' => $this->statusDetails,
'id' => $this->id,
'amount' => $this->amount,
'invoiceId' => $this->invoiceId,
'customId' => $this->customId,
'networkTransactionReference' => $this->networkTransactionReference,
'sellerProtection' => $this->sellerProtection,
'expirationTime' => $this->expirationTime,
'links' => $this->links,
'createTime' => $this->createTime,
'updateTime' => $this->updateTime,
'processorResponse' => $this->processorResponse
]
);
}
/**
* Encode this object to JSON
*
@@ -378,7 +406,7 @@ class AuthorizationWithAdditionalData implements \JsonSerializable
{
$json = [];
if (isset($this->status)) {
$json['status'] = AuthorizationStatus::checkValue($this->status);
$json['status'] = $this->status;
}
if (isset($this->statusDetails)) {
$json['status_details'] = $this->statusDetails;