1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 15:42:51 +01:00
invoiceninja/app/Services/EDocument/Gateway/Storecove/Models/Tax.php

72 lines
1.6 KiB
PHP
Raw Normal View History

2024-10-23 04:00:25 +02:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Services\EDocument\Gateway\Storecove\Models;
2024-10-25 08:51:01 +02:00
use Symfony\Component\Serializer\Annotation\SerializedName;
2024-10-23 04:00:25 +02:00
class Tax
{
2024-10-25 08:51:01 +02:00
#[SerializedName('Item.ClassifiedTaxCategory.0.Percent')]
public float $taxPercentage = 0.0;
#[SerializedName('LineExtensionAmount.amount')]
public float $taxableAmount = 0.0;
#[SerializedName('TaxTotal.0.TaxAmount.amount')]
public float $taxAmount = 0.0;
#[SerializedName('Item.ClassifiedTaxCategory.0.ID.value')]
public string $taxCategory = '';
// Getters and setters
public function getTaxPercentage(): float
{
return $this->taxPercentage;
}
public function setTaxPercentage(float $taxPercentage): void
{
$this->taxPercentage = $taxPercentage;
}
public function getTaxableAmount(): float
{
return $this->taxableAmount;
}
public function setTaxableAmount(float $taxableAmount): void
{
$this->taxableAmount = $taxableAmount;
}
public function getTaxAmount(): float
{
return $this->taxAmount;
}
public function setTaxAmount(float $taxAmount): void
{
$this->taxAmount = $taxAmount;
}
public function getTaxCategory(): string
{
return $this->taxCategory;
}
public function setTaxCategory(string $taxCategory): void
{
$this->taxCategory = $taxCategory;
2024-10-23 04:00:25 +02:00
}
}