forked from LiveCarta/PayPal-PHP-SDK
Helper Function to Retrieve Specific Link from Model Object
- Helper Methods in Payment and Agreement to get ApprovalLink - Fixes #195
This commit is contained in:
@@ -27,7 +27,6 @@ use PayPal\Validation\ArgumentValidator;
|
||||
* @property string protection_eligibility_type
|
||||
* @property string clearing_time
|
||||
* @property string parent_payment
|
||||
* @property \PayPal\Api\Links links
|
||||
*/
|
||||
class Sale extends PayPalResourceModel
|
||||
{
|
||||
@@ -562,30 +561,6 @@ class Sale extends PayPalResourceModel
|
||||
return $this->parent_payment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets Links
|
||||
*
|
||||
*
|
||||
* @param \PayPal\Api\Links $links
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLinks($links)
|
||||
{
|
||||
$this->links = $links;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets Links
|
||||
*
|
||||
* @return \PayPal\Api\Links[]
|
||||
*/
|
||||
public function getLinks()
|
||||
{
|
||||
return $this->links;
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtain the Sale transaction resource for the given identifier.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user