2023-03-19 06:14:04 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\DataMapper\Tax;
|
|
|
|
|
|
|
|
interface RuleInterface
|
|
|
|
{
|
2023-03-29 05:23:06 +02:00
|
|
|
public function init();
|
|
|
|
|
2023-05-15 13:20:47 +02:00
|
|
|
public function tax($item);
|
2023-03-24 08:02:34 +01:00
|
|
|
|
2023-03-31 06:25:30 +02:00
|
|
|
public function taxByType($type);
|
2023-03-24 08:02:34 +01:00
|
|
|
|
2023-05-15 13:20:47 +02:00
|
|
|
public function taxExempt($item);
|
2024-01-14 05:05:00 +01:00
|
|
|
|
2023-05-15 13:20:47 +02:00
|
|
|
public function taxDigital($item);
|
2023-03-24 08:02:34 +01:00
|
|
|
|
2023-05-15 13:20:47 +02:00
|
|
|
public function taxService($item);
|
2023-03-24 08:02:34 +01:00
|
|
|
|
2023-05-15 13:20:47 +02:00
|
|
|
public function taxShipping($item);
|
2023-03-24 08:02:34 +01:00
|
|
|
|
2023-05-15 13:20:47 +02:00
|
|
|
public function taxPhysical($item);
|
2023-03-24 08:02:34 +01:00
|
|
|
|
2023-05-15 13:20:47 +02:00
|
|
|
public function taxReduced($item);
|
2023-03-26 22:46:26 +02:00
|
|
|
|
2023-05-15 13:20:47 +02:00
|
|
|
public function default($item);
|
2023-03-26 22:46:26 +02:00
|
|
|
|
2023-05-15 13:20:47 +02:00
|
|
|
public function override($item);
|
2023-03-29 04:13:50 +02:00
|
|
|
|
2023-03-29 05:23:06 +02:00
|
|
|
public function calculateRates();
|
2024-02-24 03:28:19 +01:00
|
|
|
|
|
|
|
public function regionWithNoTaxCoverage(string $iso_3166_2): bool;
|
|
|
|
|
|
|
|
public function setEntity($entity): self;
|
|
|
|
|
|
|
|
public function shouldCalcTax(): bool;
|
2023-10-26 04:57:44 +02:00
|
|
|
}
|