From 5cf5de65c8fcad42f10c451c7135835fa61d1a6b Mon Sep 17 00:00:00 2001 From: Avi Das Date: Tue, 5 Aug 2014 11:20:26 -0500 Subject: [PATCH] patch to retrieve paid invoices --- lib/PayPal/Api/Invoice.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/lib/PayPal/Api/Invoice.php b/lib/PayPal/Api/Invoice.php index 05abe44..53a2047 100644 --- a/lib/PayPal/Api/Invoice.php +++ b/lib/PayPal/Api/Invoice.php @@ -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. *