From 2b96773e6b0f0c53af76d2a24e4f0b5a64f3eff1 Mon Sep 17 00:00:00 2001 From: Joseph Ting Date: Sun, 14 Sep 2014 16:25:11 +0800 Subject: [PATCH 1/2] Resolves #113 --- lib/PayPal/Api/Item.php | 52 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/lib/PayPal/Api/Item.php b/lib/PayPal/Api/Item.php index f6a0aa0..82e326c 100644 --- a/lib/PayPal/Api/Item.php +++ b/lib/PayPal/Api/Item.php @@ -13,6 +13,8 @@ use PayPal\Rest\ApiContext; * @property string price * @property string currency * @property string sku + * @property string description + * @property string tax */ class Item extends PPModel { @@ -136,7 +138,7 @@ class Item extends PPModel } /** - * Get SKI + * Get SKU * Number or code to identify the item in your catalog/records * * @return string @@ -145,4 +147,52 @@ class Item extends PPModel { return $this->sku; } + + /** + * Set Description + * Description of the item + * + * @param string $description + * + * @return $this + */ + public function setDescription($description) { + $this->description = $description; + + return $this; + } + + /** + * Get Description + * Description of the item + * + * @return string + */ + public function getDescription() { + return $this->description; + } + + /** + * Set Tax + * Tax of the item + * + * @param string $tax + * + * @return $this + */ + public function setTax($tax) { + $this->tax = $tax; + + return $this; + } + + /** + * Get Tax + * Tax of the item + * + * @return string + */ + public function getTax($tax) { + return $this->tax; + } } From db4bdc635afb68c8dcfa1d8f166e40d689042ff5 Mon Sep 17 00:00:00 2001 From: Joseph Ting Date: Wed, 17 Sep 2014 21:58:49 +0800 Subject: [PATCH 2/2] Change indentation from tabs to spaces --- lib/PayPal/Api/Item.php | 84 ++++++++++++++++++++--------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/lib/PayPal/Api/Item.php b/lib/PayPal/Api/Item.php index 82e326c..9dd8510 100644 --- a/lib/PayPal/Api/Item.php +++ b/lib/PayPal/Api/Item.php @@ -148,51 +148,51 @@ class Item extends PPModel return $this->sku; } - /** - * Set Description - * Description of the item - * - * @param string $description - * - * @return $this - */ - public function setDescription($description) { - $this->description = $description; + /** + * Set Description + * Description of the item + * + * @param string $description + * + * @return $this + */ + public function setDescription($description) { + $this->description = $description; - return $this; - } + return $this; + } - /** - * Get Description - * Description of the item - * - * @return string - */ - public function getDescription() { - return $this->description; - } + /** + * Get Description + * Description of the item + * + * @return string + */ + public function getDescription() { + return $this->description; + } - /** - * Set Tax - * Tax of the item - * - * @param string $tax - * - * @return $this - */ - public function setTax($tax) { - $this->tax = $tax; + /** + * Set Tax + * Tax of the item + * + * @param string $tax + * + * @return $this + */ + public function setTax($tax) { + $this->tax = $tax; - return $this; - } + return $this; + } - /** - * Get Tax - * Tax of the item - * - * @return string - */ - public function getTax($tax) { - return $this->tax; - } + /** + * Get Tax + * Tax of the item + * + * @return string + */ + public function getTax($tax) { + return $this->tax; + } }