-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathItem.php
48 lines (41 loc) · 1.05 KB
/
Item.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
namespace Omnipay\SagePay\Extend;
/**
* Extends the Item class to support properties
*/
use Omnipay\Common\Item as CommonItem;
class Item extends CommonItem implements ItemInterface
{
/**
* {@inheritDoc}
*/
public function getVat()
{
return $this->getParameter('vat');
}
/**
* {@inheritDoc}
*/
public function setVat($value)
{
return $this->setParameter('vat', $value);
}
/**
* Product Code is used for the Product Sage 50 Accounts Software Integration
* It allows reconcile the transactions on your account within the financial software
* by linking the product record to a specific transaction.
* This is not available for BasketXML and only Basket Integration. See docs for more info.
* {@inheritDoc}
*/
public function getProductCode()
{
return $this->getParameter('productCode');
}
/**
* {@inheritDoc}
*/
public function setProductCode($value)
{
return $this->setParameter('productCode', $value);
}
}