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;
|
||||
|
||||
/**
|
||||
@@ -60,10 +61,9 @@ class SofortPaymentObject implements \JsonSerializable
|
||||
/**
|
||||
* Returns Country Code.
|
||||
* The [two-character ISO 3166-1 code](/api/rest/reference/country-codes/) that identifies the country
|
||||
* or region.<blockquote><strong>Note:</strong> The country code for Great Britain is <code>GB</code>
|
||||
* and not <code>UK</code> as used in the top-level domain names for that country. Use the `C2` country
|
||||
* code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border
|
||||
* transactions.</blockquote>
|
||||
* or region. Note: The country code for Great Britain is GB and not UK as used in the top-level domain
|
||||
* names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled
|
||||
* price (CUP) method, bank card, and cross-border transactions.
|
||||
*/
|
||||
public function getCountryCode(): ?string
|
||||
{
|
||||
@@ -73,10 +73,9 @@ class SofortPaymentObject implements \JsonSerializable
|
||||
/**
|
||||
* Sets Country Code.
|
||||
* The [two-character ISO 3166-1 code](/api/rest/reference/country-codes/) that identifies the country
|
||||
* or region.<blockquote><strong>Note:</strong> The country code for Great Britain is <code>GB</code>
|
||||
* and not <code>UK</code> as used in the top-level domain names for that country. Use the `C2` country
|
||||
* code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border
|
||||
* transactions.</blockquote>
|
||||
* or region. Note: The country code for Great Britain is GB and not UK as used in the top-level domain
|
||||
* names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled
|
||||
* price (CUP) method, bank card, and cross-border transactions.
|
||||
*
|
||||
* @maps country_code
|
||||
*/
|
||||
@@ -127,6 +126,24 @@ class SofortPaymentObject implements \JsonSerializable
|
||||
$this->ibanLastChars = $ibanLastChars;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts the SofortPaymentObject object to a human-readable string representation.
|
||||
*
|
||||
* @return string The string representation of the SofortPaymentObject object.
|
||||
*/
|
||||
public function __toString(): string
|
||||
{
|
||||
return ApiHelper::stringify(
|
||||
'SofortPaymentObject',
|
||||
[
|
||||
'name' => $this->name,
|
||||
'countryCode' => $this->countryCode,
|
||||
'bic' => $this->bic,
|
||||
'ibanLastChars' => $this->ibanLastChars
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Encode this object to JSON
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user