CancellationRecord
extends Record
in package
Registro de anulación de una factura
Tags
Table of Contents
Properties
- $hash : string
- Huella o hash de cierto contenido de este registro de facturación
- $hashedAt : DateTimeImmutable
- Fecha, hora y huso horario de generación del registro de facturación
- $invoiceId : InvoiceIdentifier
- ID de factura
- $isPriorRejection : bool
- Indicador de rechazo previo
- $previousHash : string|null
- Primeros 64 caracteres de la huella o hash del registro de facturación anterior
- $previousInvoiceId : InvoiceIdentifier|null
- ID de factura del registro anterior
- $withoutPriorRecord : bool
- Indicador que especifica que se trata de la anulación de un registro que no existe en la AEAT o en el SIF.
Methods
- calculateHash() : string
- Calculate record hash
- export() : void
- Export record to XML
- validate() : void
- Validate this instance
- validateEnforcePreviousInvoice() : void
- validateHash() : void
- validatePreviousInvoice() : void
Properties
$hash
Huella o hash de cierto contenido de este registro de facturación
public
string
$hash
Tags
Attributes
- #[NotBlank]
- #[Regex]
- $pattern: '/^[0-9A-F]{64}$/'
$hashedAt
Fecha, hora y huso horario de generación del registro de facturación
public
DateTimeImmutable
$hashedAt
Tags
Attributes
- #[NotBlank]
$invoiceId
ID de factura
public
InvoiceIdentifier
$invoiceId
Tags
Attributes
- #[NotBlank]
- #[Valid]
$isPriorRejection
Indicador de rechazo previo
public
bool
$isPriorRejection
= false
Para remitir un nuevo registro de facturación de anulación subsanado tras haber sido rechazado en su remisión inmediatamente anterior. Es decir, en el último envío que contenía ese registro de facturación de alta rechazado.
Tags
Attributes
- #[NotNull]
- #[Type]
- 'boolean'
$previousHash
Primeros 64 caracteres de la huella o hash del registro de facturación anterior
public
string|null
$previousHash
Tags
Attributes
- #[Regex]
- $pattern: '/^[0-9A-F]{64}$/'
$previousInvoiceId
ID de factura del registro anterior
public
InvoiceIdentifier|null
$previousInvoiceId
Tags
Attributes
- #[Valid]
$withoutPriorRecord
Indicador que especifica que se trata de la anulación de un registro que no existe en la AEAT o en el SIF.
public
bool
$withoutPriorRecord
= false
Tags
Attributes
- #[NotNull]
- #[Type]
- 'boolean'
Methods
calculateHash()
Calculate record hash
public
calculateHash() : string
Tags
Return values
string —Expected record hash
export()
Export record to XML
public
export(UXML $xml, ComputerSystem $system) : void
Parameters
- $xml : UXML
-
UXML instance
- $system : ComputerSystem
-
Computer system information
validate()
Validate this instance
public
final validate() : void
Tags
validateEnforcePreviousInvoice()
public
final validateEnforcePreviousInvoice(ExecutionContextInterface $context) : void
Parameters
- $context : ExecutionContextInterface
Attributes
- #[Callback]
validateHash()
public
final validateHash(ExecutionContextInterface $context) : void
Parameters
- $context : ExecutionContextInterface
Attributes
- #[Callback]
validatePreviousInvoice()
public
final validatePreviousInvoice(ExecutionContextInterface $context) : void
Parameters
- $context : ExecutionContextInterface
Attributes
- #[Callback]