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;
|
|
|
|
|
2023-03-26 22:46:26 +02:00
|
|
|
use App\Models\Client;
|
|
|
|
use App\DataMapper\Tax\ZipTax\Response;
|
|
|
|
|
2023-03-19 06:14:04 +01:00
|
|
|
interface RuleInterface
|
|
|
|
{
|
2023-03-29 05:23:06 +02:00
|
|
|
public function init();
|
|
|
|
|
2023-04-02 23:48:59 +02:00
|
|
|
public function tax(mixed $type);
|
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
|
|
|
|
|
|
|
public function taxExempt();
|
|
|
|
|
|
|
|
public function taxDigital();
|
|
|
|
|
|
|
|
public function taxService();
|
|
|
|
|
|
|
|
public function taxShipping();
|
|
|
|
|
|
|
|
public function taxPhysical();
|
|
|
|
|
2023-03-26 22:46:26 +02:00
|
|
|
public function taxReduced();
|
|
|
|
|
2023-03-24 08:02:34 +01:00
|
|
|
public function default();
|
2023-03-26 22:46:26 +02:00
|
|
|
|
2023-03-29 04:13:50 +02:00
|
|
|
public function override();
|
|
|
|
|
2023-03-26 22:46:26 +02:00
|
|
|
public function setClient(Client $client);
|
|
|
|
|
|
|
|
public function setTaxData(Response $tax_data);
|
2023-03-29 05:23:06 +02:00
|
|
|
|
|
|
|
public function calculateRates();
|
2023-03-19 06:14:04 +01:00
|
|
|
}
|