From 50e41e806887fe5ee9b33d3f034300094fee5fc0 Mon Sep 17 00:00:00 2001 From: Jay Patel Date: Mon, 11 Jul 2016 11:36:43 -0500 Subject: [PATCH] Added missing `reference` field to Invoice --- lib/PayPal/Api/Invoice.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lib/PayPal/Api/Invoice.php b/lib/PayPal/Api/Invoice.php index df82c6e..1a55548 100644 --- a/lib/PayPal/Api/Invoice.php +++ b/lib/PayPal/Api/Invoice.php @@ -25,6 +25,7 @@ use PayPal\Validation\UrlValidator; * @property \PayPal\Api\InvoiceItem[] items * @property string invoice_date * @property \PayPal\Api\PaymentTerm payment_term + * @property String reference * @property \PayPal\Api\Cost discount * @property \PayPal\Api\ShippingCost shipping_cost * @property \PayPal\Api\CustomAmount custom @@ -333,6 +334,29 @@ class Invoice extends PayPalResourceModel return $this->payment_term; } + /** + * Reference data, such as PO number, to add to the invoice. Maximum length is 60 characters. + * + * @param String $reference + * + * @return $this + */ + public function setReference($reference) + { + $this->reference = $reference; + return $this; + } + + /** + * Reference data, such as PO number, to add to the invoice. Maximum length is 60 characters. + * + * @return String + */ + public function getReference() + { + return $this->reference; + } + /** * Invoice level discount in percent or amount. *