1 | <?php |
||
7 | trait BillableWithinTheEU |
||
8 | { |
||
9 | /** |
||
10 | * @var int |
||
11 | */ |
||
12 | protected $stripeTaxPercent = 0; |
||
13 | |||
14 | /** |
||
15 | * @var |
||
16 | */ |
||
17 | protected $userCountryCode; |
||
18 | |||
19 | /** |
||
20 | * @var bool |
||
21 | */ |
||
22 | protected $userIsCompany = false; |
||
23 | |||
24 | /** |
||
25 | * @param string $countryCode |
||
26 | * @param bool|false $company |
||
27 | * |
||
28 | * @return $this |
||
29 | */ |
||
30 | public function setTaxForCountry($countryCode, $company = false) |
||
37 | |||
38 | /** |
||
39 | * @param $countryCode |
||
40 | * |
||
41 | * @return $this |
||
42 | */ |
||
43 | public function useTaxFrom($countryCode) |
||
49 | |||
50 | /** |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function asBusiness() |
||
59 | |||
60 | /** |
||
61 | * @return $this |
||
62 | */ |
||
63 | public function asIndividual() |
||
69 | |||
70 | /** |
||
71 | * Get the tax percentage to apply to the subscription. |
||
72 | * |
||
73 | * @return int |
||
74 | */ |
||
75 | public function getTaxPercent() |
||
79 | |||
80 | /** |
||
81 | * Get the tax percentage to apply to the subscription for Cashier > 6.0. |
||
82 | * |
||
83 | * @return int |
||
84 | */ |
||
85 | public function taxPercentage() |
||
89 | } |
||
90 |