Verifactu-PHP

CancellationRecord extends Record
in package

Registro de anulación de una factura

Tags
field

RegistroAnulacion

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
field

Huella

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
field

FechaHoraHusoGenRegistro

Attributes
#[NotBlank]

$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
field

RechazoPrevio

Attributes
#[NotNull]
#[Type]
'boolean'

$previousHash

Primeros 64 caracteres de la huella o hash del registro de facturación anterior

public string|null $previousHash
Tags
field

Encadenamiento/RegistroAnterior/Huella

Attributes
#[Regex]
$pattern: '/^[0-9A-F]{64}$/'

$previousInvoiceId

ID de factura del registro anterior

public InvoiceIdentifier|null $previousInvoiceId
Tags
field

Encadenamiento/RegistroAnterior

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
field

SinRegistroPrevio

Attributes
#[NotNull]
#[Type]
'boolean'

Methods

calculateHash()

Calculate record hash

public calculateHash() : string
Tags
inheritDoc
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

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]

        
On this page

Search results