1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Omnipay\CapitaPay360; |
4
|
|
|
|
5
|
|
|
use Omnipay\Common\Item as BaseItem; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Capita Pay360 sale line item |
9
|
|
|
*/ |
10
|
|
|
class Item extends BaseItem |
11
|
|
|
{ |
12
|
|
|
/** |
13
|
|
|
* Get the item reference (acccount code) |
14
|
|
|
*/ |
15
|
|
|
public function getReference() |
16
|
|
|
{ |
17
|
|
|
return $this->getParameter('reference'); |
18
|
|
|
} |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* Set the item reference (acccount code) |
22
|
|
|
*/ |
23
|
|
|
public function setReference($value) |
24
|
|
|
{ |
25
|
|
|
return $this->setParameter('reference', substr($value, 0, 50)); |
26
|
|
|
} |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* Get the item additional reference |
30
|
|
|
*/ |
31
|
|
|
public function getAdditionalReference() |
32
|
|
|
{ |
33
|
|
|
return $this->getParameter('additionalReference'); |
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* Set the item additional reference |
38
|
|
|
*/ |
39
|
|
|
public function setAdditionalReference($value) |
40
|
|
|
{ |
41
|
|
|
return $this->setParameter('additionalReference', substr($value, 0, 50)); |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* Get the item fund code |
46
|
|
|
*/ |
47
|
|
|
public function getFundCode() |
48
|
|
|
{ |
49
|
|
|
return $this->getParameter('fundCode'); |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* Set the item fund code |
54
|
|
|
*/ |
55
|
|
|
public function setFundCode($value) |
56
|
|
|
{ |
57
|
|
|
return $this->setParameter('fundCode', substr($value, 0, 5)); |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* Get the item narrative |
62
|
|
|
*/ |
63
|
|
|
public function getNarrative() |
64
|
|
|
{ |
65
|
|
|
return $this->getParameter('narrative'); |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* Set the item narrative |
70
|
|
|
*/ |
71
|
|
|
public function setNarrative($value) |
72
|
|
|
{ |
73
|
|
|
return $this->setParameter('narrative', substr($value, 0, 50)); |
74
|
|
|
} |
75
|
|
|
} |
76
|
|
|
|