AeatResponse
extends Model
in package
Response from AEAT server
Tags
Table of Contents
Properties
- $csv : string|null
- CSV asociado al envío generado por AEAT
- $items : array<string|int, ResponseItem>
- Estado detallado de cada línea del suministro
- $status : ResponseStatus
- Estado global del envío
- $submittedAt : DateTimeImmutable|null
- Timestamp asociado a la remisión enviada
- $waitSeconds : int
- Segundos de espera entre envíos
Methods
- from() : AeatResponse
- Create new instance from XML response
- validate() : void
- Validate this instance
Properties
$csv
CSV asociado al envío generado por AEAT
public
string|null
$csv
= null
Solo se genera si no hay rechazo del envío.
Tags
$items
Estado detallado de cada línea del suministro
public
array<string|int, ResponseItem>
$items
= []
Tags
Attributes
- #[Valid]
$status
Estado global del envío
public
ResponseStatus
$status
Tags
Attributes
- #[NotBlank]
$submittedAt
Timestamp asociado a la remisión enviada
public
DateTimeImmutable|null
$submittedAt
= null
Solo se genera si no hay rechazo del envío.
Tags
$waitSeconds
Segundos de espera entre envíos
public
int
$waitSeconds
Para poder realizar el siguiente envío, el SIF deberá esperar a que transcurran X segundos.
Tags
Attributes
- #[NotBlank]
- #[Positive]
Methods
from()
Create new instance from XML response
public
static from(UXML $xml) : AeatResponse
Parameters
- $xml : UXML
-
Raw XML response
Tags
Return values
AeatResponse —Parsed response
validate()
Validate this instance
public
final validate() : void