forked from LiveCarta/PayPal-PHP-SDK
Removing Dependency from SDK Core Project
- Copied files required for Rest API SDK - Removed PPApiContext and directly connected APIContext with PPConfigManager - Removed duplicate data storage of configuration and credentials. - Code Style Fixes - Remove build.xml file as it is not required anymore - Updated the samples - Updated the documentations
This commit is contained in:
@@ -4,164 +4,182 @@ namespace PayPal\Api;
|
||||
use PayPal\Common\PPModel;
|
||||
use PayPal\Rest\ApiContext;
|
||||
|
||||
class InvoiceItem extends PPModel {
|
||||
/**
|
||||
* Name of the item. 60 characters max.
|
||||
*
|
||||
* @param string $name
|
||||
*/
|
||||
public function setName($name) {
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
class InvoiceItem extends PPModel
|
||||
{
|
||||
/**
|
||||
* Name of the item. 60 characters max.
|
||||
*
|
||||
* @param string $name
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of the item. 60 characters max.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* Name of the item. 60 characters max.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Description of the item. 1000 characters max.
|
||||
*
|
||||
* @param string $description
|
||||
*/
|
||||
public function setDescription($description) {
|
||||
$this->description = $description;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Description of the item. 1000 characters max.
|
||||
*
|
||||
* @param string $description
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Description of the item. 1000 characters max.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription() {
|
||||
return $this->description;
|
||||
}
|
||||
/**
|
||||
* Description of the item. 1000 characters max.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Quantity of the item. Range of 0 to 9999.999.
|
||||
*
|
||||
* @param PayPal\Api\number $quantity
|
||||
*/
|
||||
public function setQuantity($quantity) {
|
||||
$this->quantity = $quantity;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Quantity of the item. Range of 0 to 9999.999.
|
||||
*
|
||||
* @param PayPal\Api\number $quantity
|
||||
*/
|
||||
public function setQuantity($quantity)
|
||||
{
|
||||
$this->quantity = $quantity;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Quantity of the item. Range of 0 to 9999.999.
|
||||
*
|
||||
* @return PayPal\Api\number
|
||||
*/
|
||||
public function getQuantity() {
|
||||
return $this->quantity;
|
||||
}
|
||||
/**
|
||||
* Quantity of the item. Range of 0 to 9999.999.
|
||||
*
|
||||
* @return PayPal\Api\number
|
||||
*/
|
||||
public function getQuantity()
|
||||
{
|
||||
return $this->quantity;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Unit price of the item. Range of -999999.99 to 999999.99.
|
||||
*
|
||||
* @param PayPal\Api\Currency $unit_price
|
||||
*/
|
||||
public function setUnitPrice($unit_price) {
|
||||
$this->unit_price = $unit_price;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Unit price of the item. Range of -999999.99 to 999999.99.
|
||||
*
|
||||
* @param PayPal\Api\Currency $unit_price
|
||||
*/
|
||||
public function setUnitPrice($unit_price)
|
||||
{
|
||||
$this->unit_price = $unit_price;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unit price of the item. Range of -999999.99 to 999999.99.
|
||||
*
|
||||
* @return PayPal\Api\Currency
|
||||
*/
|
||||
public function getUnitPrice() {
|
||||
return $this->unit_price;
|
||||
}
|
||||
/**
|
||||
* Unit price of the item. Range of -999999.99 to 999999.99.
|
||||
*
|
||||
* @return PayPal\Api\Currency
|
||||
*/
|
||||
public function getUnitPrice()
|
||||
{
|
||||
return $this->unit_price;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unit price of the item. Range of -999999.99 to 999999.99.
|
||||
*
|
||||
* @param PayPal\Api\Currency $unit_price
|
||||
* @deprecated. Instead use setUnitPrice
|
||||
*/
|
||||
public function setUnit_price($unit_price) {
|
||||
$this->unit_price = $unit_price;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Unit price of the item. Range of -999999.99 to 999999.99.
|
||||
*
|
||||
* @return PayPal\Api\Currency
|
||||
* @deprecated. Instead use getUnitPrice
|
||||
*/
|
||||
public function getUnit_price() {
|
||||
return $this->unit_price;
|
||||
}
|
||||
/**
|
||||
* Unit price of the item. Range of -999999.99 to 999999.99.
|
||||
*
|
||||
* @param PayPal\Api\Currency $unit_price
|
||||
* @deprecated. Instead use setUnitPrice
|
||||
*/
|
||||
public function setUnit_price($unit_price)
|
||||
{
|
||||
$this->unit_price = $unit_price;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tax associated with the item.
|
||||
*
|
||||
* @param PayPal\Api\Tax $tax
|
||||
*/
|
||||
public function setTax($tax) {
|
||||
$this->tax = $tax;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Unit price of the item. Range of -999999.99 to 999999.99.
|
||||
*
|
||||
* @return PayPal\Api\Currency
|
||||
* @deprecated. Instead use getUnitPrice
|
||||
*/
|
||||
public function getUnit_price()
|
||||
{
|
||||
return $this->unit_price;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tax associated with the item.
|
||||
*
|
||||
* @return PayPal\Api\Tax
|
||||
*/
|
||||
public function getTax() {
|
||||
return $this->tax;
|
||||
}
|
||||
/**
|
||||
* Tax associated with the item.
|
||||
*
|
||||
* @param PayPal\Api\Tax $tax
|
||||
*/
|
||||
public function setTax($tax)
|
||||
{
|
||||
$this->tax = $tax;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tax associated with the item.
|
||||
*
|
||||
* @return PayPal\Api\Tax
|
||||
*/
|
||||
public function getTax()
|
||||
{
|
||||
return $this->tax;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Date on which the item or service was provided. Date format: yyyy-MM-dd z. For example, 2014-02-27 PST.
|
||||
*
|
||||
* @param string $date
|
||||
*/
|
||||
public function setDate($date) {
|
||||
$this->date = $date;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Date on which the item or service was provided. Date format: yyyy-MM-dd z. For example, 2014-02-27 PST.
|
||||
*
|
||||
* @param string $date
|
||||
*/
|
||||
public function setDate($date)
|
||||
{
|
||||
$this->date = $date;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Date on which the item or service was provided. Date format: yyyy-MM-dd z. For example, 2014-02-27 PST.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDate() {
|
||||
return $this->date;
|
||||
}
|
||||
/**
|
||||
* Date on which the item or service was provided. Date format: yyyy-MM-dd z. For example, 2014-02-27 PST.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDate()
|
||||
{
|
||||
return $this->date;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Item discount in percent or amount.
|
||||
*
|
||||
* @param PayPal\Api\Cost $discount
|
||||
*/
|
||||
public function setDiscount($discount) {
|
||||
$this->discount = $discount;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Item discount in percent or amount.
|
||||
*
|
||||
* @param PayPal\Api\Cost $discount
|
||||
*/
|
||||
public function setDiscount($discount)
|
||||
{
|
||||
$this->discount = $discount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Item discount in percent or amount.
|
||||
*
|
||||
* @return PayPal\Api\Cost
|
||||
*/
|
||||
public function getDiscount() {
|
||||
return $this->discount;
|
||||
}
|
||||
/**
|
||||
* Item discount in percent or amount.
|
||||
*
|
||||
* @return PayPal\Api\Cost
|
||||
*/
|
||||
public function getDiscount()
|
||||
{
|
||||
return $this->discount;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user