1 | <?php |
||
12 | class Controller extends BaseController |
||
13 | { |
||
14 | /** |
||
15 | * @var VatCalculator |
||
16 | */ |
||
17 | private $calculator; |
||
18 | |||
19 | public function __construct(ConfigRepository $configRepository) |
||
23 | |||
24 | /** |
||
25 | * Returns the tax rate for the given country code and postal code. |
||
26 | * |
||
27 | * @return \Illuminate\Http\Response |
||
28 | */ |
||
29 | public function getTaxRateForLocation($countryCode = null, $postalCode = null) |
||
35 | |||
36 | /** |
||
37 | * Returns the tax rate for the given country. |
||
38 | * |
||
39 | * @param Request $request |
||
40 | * |
||
41 | * @return \Illuminate\Http\Response |
||
42 | */ |
||
43 | public function calculateGrossPrice(Request $request) |
||
67 | |||
68 | /** |
||
69 | * Returns the tax rate for the given country. |
||
70 | * |
||
71 | * @return \Illuminate\Http\Response |
||
72 | */ |
||
73 | public function getCountryCode() |
||
79 | |||
80 | /** |
||
81 | * Returns the tax rate for the given country. |
||
82 | * |
||
83 | * @param string $vat_id |
||
84 | * |
||
85 | * @throws \Mpociot\VatCalculator\Exceptions\VATCheckUnavailableException |
||
86 | * |
||
87 | * @return \Illuminate\Http\Response |
||
88 | */ |
||
89 | public function validateVATID($vat_id) |
||
105 | } |
||
106 |