forked from LiveCarta/PayPal-PHP-SDK
- Updated Api to enabled EC Parameters - Updated Tests - Updated Logging Manager - Added a feature to do validation on accessors.
94 lines
1.7 KiB
PHP
94 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace PayPal\Api;
|
|
|
|
use PayPal\Common\PPModel;
|
|
use PayPal\Rest\ApiContext;
|
|
|
|
/**
|
|
* Class ItemList
|
|
*
|
|
* List of items being paid for.
|
|
*
|
|
* @package PayPal\Api
|
|
*
|
|
* @property \PayPal\Api\Item items
|
|
* @property \PayPal\Api\ShippingAddress shipping_address
|
|
*/
|
|
class ItemList extends PPModel
|
|
{
|
|
/**
|
|
* List of items.
|
|
*
|
|
*
|
|
* @param \PayPal\Api\Item $items
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setItems($items)
|
|
{
|
|
$this->items = $items;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* List of items.
|
|
*
|
|
* @return \PayPal\Api\Item[]
|
|
*/
|
|
public function getItems()
|
|
{
|
|
return $this->items;
|
|
}
|
|
|
|
/**
|
|
* Shipping address.
|
|
*
|
|
*
|
|
* @param \PayPal\Api\ShippingAddress $shipping_address
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setShippingAddress($shipping_address)
|
|
{
|
|
$this->shipping_address = $shipping_address;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Shipping address.
|
|
*
|
|
* @return \PayPal\Api\ShippingAddress
|
|
*/
|
|
public function getShippingAddress()
|
|
{
|
|
return $this->shipping_address;
|
|
}
|
|
|
|
/**
|
|
* Shipping address.
|
|
*
|
|
* @deprecated Instead use setShippingAddress
|
|
*
|
|
* @param \PayPal\Api\ShippingAddress $shipping_address
|
|
* @return $this
|
|
*/
|
|
public function setShipping_address($shipping_address)
|
|
{
|
|
$this->shipping_address = $shipping_address;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Shipping address.
|
|
* @deprecated Instead use getShippingAddress
|
|
*
|
|
* @return \PayPal\Api\ShippingAddress
|
|
*/
|
|
public function getShipping_address()
|
|
{
|
|
return $this->shipping_address;
|
|
}
|
|
|
|
}
|