forked from LiveCarta/PayPal-PHP-SDK
Payments API Updates
This commit is contained in:
41
lib/PayPal/Api/CountryCode.php
Normal file
41
lib/PayPal/Api/CountryCode.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace PayPal\Api;
|
||||
|
||||
use PayPal\Common\PayPalModel;
|
||||
|
||||
/**
|
||||
* Class CountryCode
|
||||
*
|
||||
* Representation of a country code.
|
||||
*
|
||||
* @package PayPal\Api
|
||||
*
|
||||
* @property string country_code
|
||||
*/
|
||||
class CountryCode extends PayPalModel
|
||||
{
|
||||
/**
|
||||
* ISO country code based on 2-character IS0-3166-1 codes.
|
||||
*
|
||||
* @param string $country_code
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCountryCode($country_code)
|
||||
{
|
||||
$this->country_code = $country_code;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* ISO country code based on 2-character IS0-3166-1 codes.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCountryCode()
|
||||
{
|
||||
return $this->country_code;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user