forked from LiveCarta/PayPal-PHP-SDK
patch to retrieve paid invoices
This commit is contained in:
@@ -628,6 +628,32 @@ class Invoice extends PPModel implements IResource {
|
||||
return $this->total_amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Payments
|
||||
* A list of Payment resources
|
||||
*
|
||||
* @param \PayPal\Api\Payment $payments
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayments($payments)
|
||||
{
|
||||
$this->payments = $payments;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Payments
|
||||
* A list of Payment resources
|
||||
*
|
||||
* @return \PayPal\Api\Payment
|
||||
*/
|
||||
public function getPayments()
|
||||
{
|
||||
return $this->payments;
|
||||
}
|
||||
|
||||
/**
|
||||
* List of payment details for the invoice.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user