This repository has been archived by the owner on May 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
BasketItem.php
160 lines (142 loc) · 3.02 KB
/
BasketItem.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<?php
namespace Hochstrasser\Wirecard\Model\Common;
use Hochstrasser\Wirecard\Model\Model;
class BasketItem extends Model
{
/**
* Set the item's article number, typically an SKU
*
* @param string $articleNumber
* @return BasketItem
*/
function setArticleNumber($articleNumber)
{
return $this->addParam('articleNumber', $articleNumber);
}
/**
* @return string
*/
function getArticleNumber()
{
return $this->getParam('articleNumber');
}
/**
* Set the item's name
*
* @param string $name
* @return BasketItem
*/
function setName($name)
{
return $this->addParam('name', $name);
}
/**
* @return string
*/
function getName()
{
return $this->getParam('name');
}
/**
* Set the item description, typically a product name
*
* @param string $description
* @return BasketItem
*/
function setDescription($description)
{
return $this->addParam('description', $description);
}
/**
* @return string
*/
function getDescription()
{
return $this->getParam('description');
}
/**
* Set item quantity
*
* @param int $quantity
* @return BasketItem
*/
function setQuantity($quantity)
{
return $this->addParam('quantity', $quantity);
}
/**
* @return int
*/
function getQuantity()
{
return $this->getParam('quantity');
}
/**
* Set item tax amount as string, formatted as float, e.g. "2.50"
*
* @param string $amount
* @return BasketItem
*/
function setUnitTaxAmount($amount)
{
return $this->addParam('unitTaxAmount', $amount);
}
/**
* @return string
*/
function getUnitTaxAmount()
{
return $this->getParam('unitTaxAmount');
}
/**
* Set item tax rate as string, formatted as float, e.g. "25"
*
* @param string $rate
* @return BasketItem
*/
function setUnitTaxRate($rate)
{
return $this->addParam('unitTaxRate', $rate);
}
/**
* @return string
*/
function getUnitTaxRate()
{
return $this->getParam('unitTaxRate');
}
/**
* Set item gross amount as string, formatted as float, e.g. "12.50"
*
* @param string $amount
* @return BasketItem
*/
function setUnitGrossAmount($amount)
{
return $this->addParam('unitGrossAmount', $amount);
}
/**
* @return string
*/
function getUnitGrossAmount()
{
return $this->getParam('unitGrossAmount');
}
/**
* Set item net amount as string, formatted as float, e.g. "10.00"
*
* @param string $amount
* @return BasketItem
*/
function setUnitNetAmount($amount)
{
return $this->addParam('unitNetAmount', $amount);
}
/**
* @return string
*/
function getUnitNetAmount()
{
return $this->getParam('unitNetAmount');
}
}