forked from LiveCarta/PayPal-PHP-SDK
Added missing reference field to Invoice
This commit is contained in:
@@ -25,6 +25,7 @@ use PayPal\Validation\UrlValidator;
|
|||||||
* @property \PayPal\Api\InvoiceItem[] items
|
* @property \PayPal\Api\InvoiceItem[] items
|
||||||
* @property string invoice_date
|
* @property string invoice_date
|
||||||
* @property \PayPal\Api\PaymentTerm payment_term
|
* @property \PayPal\Api\PaymentTerm payment_term
|
||||||
|
* @property String reference
|
||||||
* @property \PayPal\Api\Cost discount
|
* @property \PayPal\Api\Cost discount
|
||||||
* @property \PayPal\Api\ShippingCost shipping_cost
|
* @property \PayPal\Api\ShippingCost shipping_cost
|
||||||
* @property \PayPal\Api\CustomAmount custom
|
* @property \PayPal\Api\CustomAmount custom
|
||||||
@@ -333,6 +334,29 @@ class Invoice extends PayPalResourceModel
|
|||||||
return $this->payment_term;
|
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.
|
* Invoice level discount in percent or amount.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user