forked from LiveCarta/PayPal-PHP-SDK
Merge branch 'paid-invoice'
Merge in methods to retrieve paid invoices closes #94
This commit is contained in:
@@ -628,6 +628,32 @@ class Invoice extends PPModel implements IResource {
|
|||||||
return $this->total_amount;
|
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.
|
* List of payment details for the invoice.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user