| 1 | <?php |
||
| 5 | class TaxResponse |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var float |
||
| 9 | */ |
||
| 10 | private $totalAmount; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var float |
||
| 14 | */ |
||
| 15 | private $shipping; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var float |
||
| 19 | */ |
||
| 20 | private $taxableAmount; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var float |
||
| 24 | */ |
||
| 25 | private $amountToCollect; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var float |
||
| 29 | */ |
||
| 30 | private $rate; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var bool |
||
| 34 | */ |
||
| 35 | private $hasNexus; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var bool |
||
| 39 | */ |
||
| 40 | private $freightTaxable; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var string |
||
| 44 | */ |
||
| 45 | private $taxSource; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @var TaxBreakdown |
||
| 49 | */ |
||
| 50 | private $taxBreakdown; |
||
| 51 | |||
| 52 | 6 | public function __construct(\stdClass $response) |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return float |
||
| 67 | */ |
||
| 68 | 2 | public function getTotalAmount() |
|
| 72 | |||
| 73 | /** |
||
| 74 | * @return float |
||
| 75 | */ |
||
| 76 | 2 | public function getShipping() |
|
| 80 | |||
| 81 | /** |
||
| 82 | * @return float |
||
| 83 | */ |
||
| 84 | 2 | public function getTaxableAmount() |
|
| 88 | |||
| 89 | /** |
||
| 90 | * @return float |
||
| 91 | */ |
||
| 92 | 2 | public function getAmountToCollect() |
|
| 96 | |||
| 97 | /** |
||
| 98 | * @return float |
||
| 99 | */ |
||
| 100 | 2 | public function getRate() |
|
| 104 | |||
| 105 | /** |
||
| 106 | * @return bool |
||
| 107 | */ |
||
| 108 | 2 | public function hasNexus() |
|
| 112 | |||
| 113 | /** |
||
| 114 | * @return bool |
||
| 115 | */ |
||
| 116 | 2 | public function isFreightTaxable() |
|
| 120 | |||
| 121 | /** |
||
| 122 | * @return string |
||
| 123 | */ |
||
| 124 | 2 | public function getTaxSource() |
|
| 128 | |||
| 129 | /** |
||
| 130 | * @return TaxBreakdown |
||
| 131 | */ |
||
| 132 | 2 | public function getTaxBreakdown() |
|
| 136 | } |
||
| 137 |