|
Apache/2.4.41 (Ubuntu) Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) server ip : 62.171.164.128 | your ip : 127.0.0.1 safemode OFF > / home / dev2.destoffenstraat.com / vendor / vertex / sdk / src / Data / |
Filename | /home/dev2.destoffenstraat.com/vendor/vertex/sdk/src/Data/LineItem.php |
Size | 5.91 kb |
Permission | rw-rw-rw- |
Owner | root : root |
Create time | 17-Aug-2025 10:26 |
Last modified | 23-Sep-2020 09:46 |
Last accessed | 23-Aug-2025 03:56 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
/**
* @copyright Vertex. All rights reserved. https://www.vertexinc.com/
* @author Mediotype Development <diveinto@mediotype.com>
*/
namespace Vertex\Data;
/**
* {@inheritDoc}
*
* @SuppressWarnings(PHPMD.TooManyFields)
*/
class LineItem implements LineItemInterface
{
/** @var string */
private $commodityCode;
/** @var string */
private $commodityCodeType;
/** @var CustomerInterface */
private $customer;
/** @var string */
private $deliveryTerm;
/** @var float */
private $extendedPrice;
/** @var FlexibleFieldInterface[] */
private $flexibleFields = [];
/** @var int */
private $lineItemId;
/** @var string */
private $locationCode;
/** @var string */
private $productClass;
/** @var string */
private $productCode;
/** @var float */
private $quantity;
/** @var SellerInterface */
private $seller;
/** @var bool */
private $taxIncludedIndicator;
/** @var TaxInterface[] */
private $taxes = [];
/** @var float */
private $totalTax;
/** @var float */
private $unitPrice;
/**
* @inheritdoc
*/
public function getCommodityCode()
{
return $this->commodityCode;
}
/**
* @inheritdoc
*/
public function getCommodityCodeType()
{
return $this->commodityCodeType;
}
/**
* @inheritdoc
*/
public function getCustomer()
{
return $this->customer;
}
/**
* @inheritdoc
*/
public function getDeliveryTerm()
{
return $this->deliveryTerm;
}
/**
* @inheritdoc
*/
public function getExtendedPrice()
{
return $this->extendedPrice;
}
/**
* @inheritdoc
*/
public function getFlexibleFields()
{
return $this->flexibleFields;
}
/**
* @inheritdoc
*/
public function getLineItemId()
{
return $this->lineItemId;
}
/**
* @inheritdoc
*/
public function getLocationCode()
{
return $this->locationCode;
}
/**
* @inheritdoc
*/
public function getProductClass()
{
return $this->productClass;
}
/**
* @inheritdoc
*/
public function getProductCode()
{
return $this->productCode;
}
/**
* @inheritdoc
*/
public function getQuantity()
{
return $this->quantity;
}
/**
* @inheritdoc
*/
public function getSeller()
{
return $this->seller;
}
/**
* @inheritdoc
*/
public function getTaxes()
{
return $this->taxes;
}
/**
* @inheritdoc
*/
public function getTotalTax()
{
return $this->totalTax;
}
/**
* @inheritdoc
*/
public function getUnitPrice()
{
return $this->unitPrice;
}
/**
* @inheritdoc
*/
public function isTaxIncluded()
{
return $this->taxIncludedIndicator;
}
/**
* @inheritdoc
*/
public function setCommodityCode($code)
{
$this->commodityCode = $code;
return $this;
}
/**
* @inheritdoc
*/
public function setCommodityCodeType($type)
{
$this->commodityCodeType = $type;
return $this;
}
/**
* @inheritdoc
*/
public function setCustomer(CustomerInterface $customer)
{
$this->customer = $customer;
return $this;
}
/**
* @inheritdoc
*/
public function setDeliveryTerm($deliveryTerm)
{
$this->deliveryTerm = $deliveryTerm;
return $this;
}
/**
* @inheritdoc
*/
public function setExtendedPrice($extendedPrice)
{
$this->extendedPrice = $extendedPrice;
return $this;
}
/**
* @inheritdoc
*/
public function setFlexibleFields(array $fields)
{
foreach ($fields as $field) {
if (!($field instanceof FlexibleFieldInterface)) {
throw new \InvalidArgumentException('Must be an array of FlexibleFieldInterface');
}
}
$this->flexibleFields = $fields;
return $this;
}
/**
* @inheritdoc
*/
public function setLineItemId($lineItemId)
{
$this->lineItemId = $lineItemId;
return $this;
}
/**
* @inheritdoc
*/
public function setLocationCode($locationCode)
{
$this->locationCode = $locationCode;
return $this;
}
/**
* @inheritdoc
*/
public function setProductClass($productClass)
{
$this->productClass = $productClass;
return $this;
}
/**
* @inheritdoc
*/
public function setProductCode($productCode)
{
$this->productCode = $productCode;
return $this;
}
/**
* @inheritdoc
*/
public function setQuantity($quantity)
{
$this->quantity = $quantity;
return $this;
}
/**
* @inheritdoc
*/
public function setSeller(SellerInterface $seller)
{
$this->seller = $seller;
return $this;
}
/**
* @inheritdoc
*/
public function setTaxIncluded($isTaxIncluded)
{
$this->taxIncludedIndicator = $isTaxIncluded;
return $this;
}
/**
* @inheritdoc
*/
public function setTaxes(array $taxes)
{
foreach ($taxes as $tax) {
if (!($tax instanceof TaxInterface)) {
throw new \InvalidArgumentException('Must be an array of TaxInterface');
}
}
$this->taxes = $taxes;
return $this;
}
/**
* @inheritdoc
*/
public function setTotalTax($totalTax)
{
$this->totalTax = $totalTax;
return $this;
}
/**
* @inheritdoc
*/
public function setUnitPrice($unitPrice)
{
$this->unitPrice = $unitPrice;
return $this;
}
}
/**
* @copyright Vertex. All rights reserved. https://www.vertexinc.com/
* @author Mediotype Development <diveinto@mediotype.com>
*/
namespace Vertex\Data;
/**
* {@inheritDoc}
*
* @SuppressWarnings(PHPMD.TooManyFields)
*/
class LineItem implements LineItemInterface
{
/** @var string */
private $commodityCode;
/** @var string */
private $commodityCodeType;
/** @var CustomerInterface */
private $customer;
/** @var string */
private $deliveryTerm;
/** @var float */
private $extendedPrice;
/** @var FlexibleFieldInterface[] */
private $flexibleFields = [];
/** @var int */
private $lineItemId;
/** @var string */
private $locationCode;
/** @var string */
private $productClass;
/** @var string */
private $productCode;
/** @var float */
private $quantity;
/** @var SellerInterface */
private $seller;
/** @var bool */
private $taxIncludedIndicator;
/** @var TaxInterface[] */
private $taxes = [];
/** @var float */
private $totalTax;
/** @var float */
private $unitPrice;
/**
* @inheritdoc
*/
public function getCommodityCode()
{
return $this->commodityCode;
}
/**
* @inheritdoc
*/
public function getCommodityCodeType()
{
return $this->commodityCodeType;
}
/**
* @inheritdoc
*/
public function getCustomer()
{
return $this->customer;
}
/**
* @inheritdoc
*/
public function getDeliveryTerm()
{
return $this->deliveryTerm;
}
/**
* @inheritdoc
*/
public function getExtendedPrice()
{
return $this->extendedPrice;
}
/**
* @inheritdoc
*/
public function getFlexibleFields()
{
return $this->flexibleFields;
}
/**
* @inheritdoc
*/
public function getLineItemId()
{
return $this->lineItemId;
}
/**
* @inheritdoc
*/
public function getLocationCode()
{
return $this->locationCode;
}
/**
* @inheritdoc
*/
public function getProductClass()
{
return $this->productClass;
}
/**
* @inheritdoc
*/
public function getProductCode()
{
return $this->productCode;
}
/**
* @inheritdoc
*/
public function getQuantity()
{
return $this->quantity;
}
/**
* @inheritdoc
*/
public function getSeller()
{
return $this->seller;
}
/**
* @inheritdoc
*/
public function getTaxes()
{
return $this->taxes;
}
/**
* @inheritdoc
*/
public function getTotalTax()
{
return $this->totalTax;
}
/**
* @inheritdoc
*/
public function getUnitPrice()
{
return $this->unitPrice;
}
/**
* @inheritdoc
*/
public function isTaxIncluded()
{
return $this->taxIncludedIndicator;
}
/**
* @inheritdoc
*/
public function setCommodityCode($code)
{
$this->commodityCode = $code;
return $this;
}
/**
* @inheritdoc
*/
public function setCommodityCodeType($type)
{
$this->commodityCodeType = $type;
return $this;
}
/**
* @inheritdoc
*/
public function setCustomer(CustomerInterface $customer)
{
$this->customer = $customer;
return $this;
}
/**
* @inheritdoc
*/
public function setDeliveryTerm($deliveryTerm)
{
$this->deliveryTerm = $deliveryTerm;
return $this;
}
/**
* @inheritdoc
*/
public function setExtendedPrice($extendedPrice)
{
$this->extendedPrice = $extendedPrice;
return $this;
}
/**
* @inheritdoc
*/
public function setFlexibleFields(array $fields)
{
foreach ($fields as $field) {
if (!($field instanceof FlexibleFieldInterface)) {
throw new \InvalidArgumentException('Must be an array of FlexibleFieldInterface');
}
}
$this->flexibleFields = $fields;
return $this;
}
/**
* @inheritdoc
*/
public function setLineItemId($lineItemId)
{
$this->lineItemId = $lineItemId;
return $this;
}
/**
* @inheritdoc
*/
public function setLocationCode($locationCode)
{
$this->locationCode = $locationCode;
return $this;
}
/**
* @inheritdoc
*/
public function setProductClass($productClass)
{
$this->productClass = $productClass;
return $this;
}
/**
* @inheritdoc
*/
public function setProductCode($productCode)
{
$this->productCode = $productCode;
return $this;
}
/**
* @inheritdoc
*/
public function setQuantity($quantity)
{
$this->quantity = $quantity;
return $this;
}
/**
* @inheritdoc
*/
public function setSeller(SellerInterface $seller)
{
$this->seller = $seller;
return $this;
}
/**
* @inheritdoc
*/
public function setTaxIncluded($isTaxIncluded)
{
$this->taxIncludedIndicator = $isTaxIncluded;
return $this;
}
/**
* @inheritdoc
*/
public function setTaxes(array $taxes)
{
foreach ($taxes as $tax) {
if (!($tax instanceof TaxInterface)) {
throw new \InvalidArgumentException('Must be an array of TaxInterface');
}
}
$this->taxes = $taxes;
return $this;
}
/**
* @inheritdoc
*/
public function setTotalTax($totalTax)
{
$this->totalTax = $totalTax;
return $this;
}
/**
* @inheritdoc
*/
public function setUnitPrice($unitPrice)
{
$this->unitPrice = $unitPrice;
return $this;
}
}