Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/Objects/AssociatedDocumentObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

namespace Multinexo\Objects;

/**
* @see https://github.com/AfipSDK/afip.php/issues/82#issuecomment-819823603
*/
class AssociatedDocumentObject
{
/** @var int */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

namespace Multinexo\Objects;

class DocumentObject
abstract class FiscalDocumentDto
{
}
36 changes: 23 additions & 13 deletions src/Objects/InvoiceObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
Loading