Storecove ingestion

This commit is contained in:
David Bomba 2024-11-07 11:45:00 +11:00
parent d4f9ac6dc3
commit 3a3c853fe9
2 changed files with 51 additions and 4 deletions

View File

@ -22,18 +22,34 @@ class TaxSubtotals
#[SerializedPath('[cac:TaxCategory][cbc:ID][#]')]
public ?string $category;
public ?string $type;
public function __construct(
?float $tax_amount,
?string $country,
?float $taxable_amount,
?float $percentage,
?string $category
?string $category,
?string $type
) {
$this->tax_amount = $tax_amount;
$this->country = $country;
$this->taxable_amount = $taxable_amount;
$this->percentage = $percentage;
$this->category = $category;
$this->type = $type;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type):self
{
$this->type = $type;
return $this;
}
public function getTaxAmount(): ?float
@ -90,4 +106,9 @@ class TaxSubtotals
$this->category = $category;
return $this;
}
public function toArray(): array
{
return (array)$this;
}
}

File diff suppressed because one or more lines are too long