2024-10-23 04:00:25 +02:00
|
|
|
<?php
|
2024-10-28 05:47:57 +01:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2024-10-23 04:00:25 +02:00
|
|
|
|
|
|
|
namespace App\Services\EDocument\Gateway\Storecove\Models;
|
|
|
|
|
2024-10-25 08:51:01 +02:00
|
|
|
use Symfony\Component\Serializer\Annotation\SerializedName;
|
2024-10-28 05:47:57 +01:00
|
|
|
use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer;
|
|
|
|
use Symfony\Component\Serializer\Attribute\Context;
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
class Invoice
|
2024-10-23 04:00:25 +02:00
|
|
|
{
|
2024-10-28 05:47:57 +01:00
|
|
|
public string $taxSystem = 'tax_line_percentages';
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public string $documentCurrency = '';
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public string $invoiceNumber = '';
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public string $issueDate = '';
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public string $taxPointDate = '';
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public string $dueDate = '';
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public string $invoicePeriod = '';
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public array $references = [];
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public ?string $accountingCost = null;
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public string $note = '';
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public float $amountIncludingVat = 0.0;
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public ?float $prepaidAmount = null;
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public array $accountingSupplierParty = [];
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public array $accountingCustomerParty = [];
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public array $paymentMeans = [];
|
2024-10-25 08:51:01 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public array $taxTotal = [];
|
2024-10-23 04:00:25 +02:00
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public array $invoiceLines = [];
|
2024-10-25 08:51:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
public function setDocumentCurrency(string $documentCurrency): void
|
|
|
|
{
|
2024-10-23 04:00:25 +02:00
|
|
|
$this->documentCurrency = $documentCurrency;
|
2024-10-25 08:51:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function setInvoiceNumber(string $invoiceNumber): void
|
|
|
|
{
|
2024-10-23 04:00:25 +02:00
|
|
|
$this->invoiceNumber = $invoiceNumber;
|
2024-10-25 08:51:01 +02:00
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setIssueDate($issueDate): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
2024-10-23 04:00:25 +02:00
|
|
|
$this->issueDate = $issueDate;
|
2024-10-25 08:51:01 +02:00
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setTaxPointDate($taxPointDate): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
2024-10-23 04:00:25 +02:00
|
|
|
$this->taxPointDate = $taxPointDate;
|
2024-10-25 08:51:01 +02:00
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setDueDate($dueDate): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
2024-10-23 04:00:25 +02:00
|
|
|
$this->dueDate = $dueDate;
|
2024-10-25 08:51:01 +02:00
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setInvoicePeriod($invoicePeriod): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
2024-10-23 04:00:25 +02:00
|
|
|
$this->invoicePeriod = $invoicePeriod;
|
2024-10-25 08:51:01 +02:00
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setReferences( $references): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
2024-10-23 04:00:25 +02:00
|
|
|
$this->references = $references;
|
2024-10-25 08:51:01 +02:00
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setAccountingCost($accountingCost): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
2024-10-23 04:00:25 +02:00
|
|
|
$this->accountingCost = $accountingCost;
|
2024-10-25 08:51:01 +02:00
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setNote($note): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
2024-10-23 04:00:25 +02:00
|
|
|
$this->note = $note;
|
2024-10-25 08:51:01 +02:00
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setAmountIncludingVat ($amountIncludingVat): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
|
|
|
$this->amountIncludingVat = $amountIncludingVat;
|
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setPrepaidAmount( $prepaidAmount): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
|
|
|
$this->prepaidAmount = $prepaidAmount;
|
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setAccountingSupplierParty( $accountingSupplierParty): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
2024-10-23 04:00:25 +02:00
|
|
|
$this->accountingSupplierParty = $accountingSupplierParty;
|
2024-10-25 08:51:01 +02:00
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setAccountingCustomerParty( $accountingCustomerParty): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
2024-10-23 04:00:25 +02:00
|
|
|
$this->accountingCustomerParty = $accountingCustomerParty;
|
2024-10-25 08:51:01 +02:00
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setPaymentMeans( $paymentMeans): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
|
|
|
$this->paymentMeans = $paymentMeans;
|
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function setTaxTotal( $taxTotal): void
|
2024-10-25 08:51:01 +02:00
|
|
|
{
|
|
|
|
$this->taxTotal = $taxTotal;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setInvoiceLines(array $invoiceLines): void
|
|
|
|
{
|
2024-10-23 04:00:25 +02:00
|
|
|
$this->invoiceLines = $invoiceLines;
|
2024-10-25 08:51:01 +02:00
|
|
|
}
|
|
|
|
|
2024-10-28 05:47:57 +01:00
|
|
|
public function getInvoiceLines()
|
|
|
|
{
|
|
|
|
return $this->invoiceLines;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTaxSystem(): string
|
|
|
|
{
|
|
|
|
return $this->taxSystem;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getDocumentCurrency(): string
|
|
|
|
{
|
|
|
|
return $this->documentCurrency;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getInvoiceNumber(): string
|
|
|
|
{
|
|
|
|
return $this->invoiceNumber;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getIssueDate(): string
|
|
|
|
{
|
|
|
|
return $this->issueDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTaxPointDate(): string
|
|
|
|
{
|
|
|
|
return $this->taxPointDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getDueDate(): string
|
|
|
|
{
|
|
|
|
return $this->dueDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getInvoicePeriod(): string
|
|
|
|
{
|
|
|
|
return $this->invoicePeriod;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getReferences(): array
|
|
|
|
{
|
|
|
|
return $this->references;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getAccountingCost(): ?string
|
|
|
|
{
|
|
|
|
return $this->accountingCost;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getNote(): string
|
|
|
|
{
|
|
|
|
return $this->note;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getAmountIncludingVat(): float
|
|
|
|
{
|
|
|
|
return $this->amountIncludingVat;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPrepaidAmount(): ?float
|
|
|
|
{
|
|
|
|
return $this->prepaidAmount;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getAccountingSupplierParty(): array
|
|
|
|
{
|
|
|
|
return $this->accountingSupplierParty;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getAccountingCustomerParty(): array
|
|
|
|
{
|
|
|
|
return $this->accountingCustomerParty;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPaymentMeans(): array
|
|
|
|
{
|
|
|
|
return $this->paymentMeans;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTaxTotal(): array
|
|
|
|
{
|
|
|
|
return $this->taxTotal;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setTaxSystem(string $taxSystem): void
|
|
|
|
{
|
|
|
|
$this->taxSystem = $taxSystem;
|
2024-10-23 04:00:25 +02:00
|
|
|
}
|
|
|
|
}
|