diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bbeca6..66bf1a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Some enums removed. + +## [2.0.10] - 2025-01-18 +### Added +- Some enums changed based on AFIP/ARCA. ## [2.0.9] - 2022-08-27 ### Fixed diff --git a/src/Objects/AssociatedDocumentObject.php b/src/Objects/AssociatedDocumentObject.php index 3e12e5a..e74dd4f 100644 --- a/src/Objects/AssociatedDocumentObject.php +++ b/src/Objects/AssociatedDocumentObject.php @@ -10,6 +10,9 @@ namespace Multinexo\Objects; +/** + * @see https://github.com/AfipSDK/afip.php/issues/82#issuecomment-819823603 + */ class AssociatedDocumentObject { /** @var int */ diff --git a/src/Objects/DocumentObject.php b/src/Objects/FiscalDocumentDto.php similarity index 89% rename from src/Objects/DocumentObject.php rename to src/Objects/FiscalDocumentDto.php index 7ba5b59..4dcabb4 100644 --- a/src/Objects/DocumentObject.php +++ b/src/Objects/FiscalDocumentDto.php @@ -10,6 +10,6 @@ namespace Multinexo\Objects; -class DocumentObject +abstract class FiscalDocumentDto { } diff --git a/src/Objects/InvoiceObject.php b/src/Objects/InvoiceObject.php index efecbd0..279d2cb 100644 --- a/src/Objects/InvoiceObject.php +++ b/src/Objects/InvoiceObject.php @@ -11,24 +11,34 @@ namespace Multinexo\Objects; /** - * @property int $puntoVenta - * @property int $codigoComprobante - * @property int $codigoConcepto - * @property int $codigoDocumento - * @property int $numeroDocumento - * @property string $fechaEmision Format Y-m-d - * @property float $importeTotal - * @property float $importeNoGravado - * @property int $importeExento - * @property float $importeIVA - * @property string|null $codigoTipoAutorizacion - * ONLY READ PROPERTIES + * ONLY READ PROPERTIES. + * * @property \stdClass $FeDetReq * @property \stdClass $otroTributo * @SuppressWarnings(PHPMD.TooManyFields) */ -class InvoiceObject extends DocumentObject +class InvoiceObject extends FiscalDocumentDto { + /** @var ?int */ + public $puntoVenta; + /** @var ?int */ + public $codigoComprobante; + /** @var ?int */ + public $codigoDocumento; + /** @var ?int */ + public $numeroDocumento; + /** @var ?string */ + public $fechaEmision; // Format Y-m-d + /** @var ?float */ + public $importeTotal; + /** @var ?float */ + public $importeNoGravado; + /** @var ?float */ + public $importeExento; + /** @var ?float */ + public $importeIVA; + /** @var ?string */ + public $codigoTipoAutorizacion; /** @var int */ public $cantidadRegistros = 1; /** @var int|null */