forked from LiveCarta/PayPal-PHP-SDK
Enabled EC Parameters support
- Updated Api to enabled EC Parameters - Updated Tests - Updated Logging Manager - Added a feature to do validation on accessors.
This commit is contained in:
@@ -8,28 +8,56 @@ use PayPal\Rest\ApiContext;
|
||||
/**
|
||||
* Class ShippingAddress
|
||||
*
|
||||
* Extended Address object used as shipping address in a payment.
|
||||
*
|
||||
* @package PayPal\Api
|
||||
*
|
||||
* @property string id
|
||||
* @property string recipient_name
|
||||
* @property bool default_address
|
||||
*/
|
||||
class ShippingAddress extends Address
|
||||
class ShippingAddress extends Address
|
||||
{
|
||||
/**
|
||||
* Set Recipient Name
|
||||
* Name of the recipient at this address
|
||||
* Address ID assigned in PayPal system.
|
||||
*
|
||||
*
|
||||
* @param string $id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address ID assigned in PayPal system.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of the recipient at this address.
|
||||
*
|
||||
*
|
||||
* @param string $recipient_name
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRecipientName($recipient_name)
|
||||
{
|
||||
$this->recipient_name = $recipient_name;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Recipient Name
|
||||
* Name of the recipient at this address
|
||||
* Name of the recipient at this address.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -39,27 +67,22 @@ class ShippingAddress extends Address
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Recipient Name
|
||||
* Name of the recipient at this address
|
||||
* Name of the recipient at this address.
|
||||
*
|
||||
* @deprecated Instead use setRecipientName
|
||||
*
|
||||
* @param string $recipient_name
|
||||
*
|
||||
* @deprecated Use setRecipientName
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRecipient_name($recipient_name)
|
||||
{
|
||||
$this->recipient_name = $recipient_name;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Recipient Name
|
||||
* Name of the recipient at this address
|
||||
*
|
||||
* @deprecated Use getRecipientName
|
||||
* Name of the recipient at this address.
|
||||
* @deprecated Instead use getRecipientName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -67,4 +90,54 @@ class ShippingAddress extends Address
|
||||
{
|
||||
return $this->recipient_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default shipping address of the Payer.
|
||||
*
|
||||
*
|
||||
* @param bool $default_address
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setDefaultAddress($default_address)
|
||||
{
|
||||
$this->default_address = $default_address;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default shipping address of the Payer.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getDefaultAddress()
|
||||
{
|
||||
return $this->default_address;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default shipping address of the Payer.
|
||||
*
|
||||
* @deprecated Instead use setDefaultAddress
|
||||
*
|
||||
* @param bool $default_address
|
||||
* @return $this
|
||||
*/
|
||||
public function setDefault_address($default_address)
|
||||
{
|
||||
$this->default_address = $default_address;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default shipping address of the Payer.
|
||||
* @deprecated Instead use getDefaultAddress
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getDefault_address()
|
||||
{
|
||||
return $this->default_address;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user