-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathTaxTypeEntityInterface.php
115 lines (101 loc) · 2.5 KB
/
TaxTypeEntityInterface.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
<?php
namespace CommerceGuys\Tax\Model;
use Doctrine\Common\Collections\Collection;
use CommerceGuys\Zone\Model\ZoneEntityInterface;
interface TaxTypeEntityInterface extends TaxTypeInterface
{
/**
* Sets the tax type id.
*
* @param string $id The tax type id.
*
* @return self
*/
public function setId($id);
/**
* Sets the tax type name.
*
* @param string $name The tax type name.
*
* @return self
*/
public function setName($name);
/**
* Sets the tax type generic label.
*
* @param string $genericLabel The tax type generic label.
*
* @return self
*/
public function setGenericLabel($genericLabel);
/**
* Sets whether the tax type is compound.
*
* @param bool $compound Whether the tax type is compound.
*
* @return self
*/
public function setCompound($compound);
/**
* Sets whether the tax type is display inclusive.
*
* @param bool $displayInclusive Whether the tax type is display inclusive.
*
* @return self
*/
public function setDisplayInclusive($displayInclusive);
/**
* Sets the tax type rounding mode.
*
* @param int $roundingMode The tax type rounding mode, a ROUND_ constant.
*/
public function setRoundingMode($roundingMode);
/**
* Sets the tax type zone.
*
* @param ZoneEntityInterface $zone The tax type zone.
*
* @return self
*/
public function setZone(ZoneEntityInterface $zone);
/**
* Sets the tax type tag.
*
* @param string $tag The tax type tag.
*
* @return self
*/
public function setTag($tag);
/**
* Sets the tax rates.
*
* @param TaxRateEntityInterface[] $rates The tax rates.
*
* @return self
*/
public function setRates(Collection $rates);
/**
* Adds a tax rate.
*
* @param TaxRateEntityInterface $rate The tax rate.
*
* @return self
*/
public function addRate(TaxRateEntityInterface $rate);
/**
* Removes a tax rate.
*
* @param TaxRateEntityInterface $rate The tax rate.
*
* @return self
*/
public function removeRate(TaxRateEntityInterface $rate);
/**
* Checks whether the tax type has a tax rate.
*
* @param TaxRateEntityInterface $rate The tax rate.
*
* @return bool True if the tax rate was found, false otherwise.
*/
public function hasRate(TaxRateEntityInterface $rate);
}