diff --git a/src/Enums/TransmissionFailure.php b/src/Enums/TransmissionFailure.php new file mode 100644 index 0000000..768fb75 --- /dev/null +++ b/src/Enums/TransmissionFailure.php @@ -0,0 +1,23 @@ +getCode() === 0) { throw new MyDataConnectionException(); } diff --git a/src/Models/Invoice.php b/src/Models/Invoice.php index 8ce3b4a..96c1436 100644 --- a/src/Models/Invoice.php +++ b/src/Models/Invoice.php @@ -6,6 +6,7 @@ use DOMDocument; use Firebed\AadeMyData\Actions\SquashInvoiceRows; use Firebed\AadeMyData\Actions\SummarizeInvoice; +use Firebed\AadeMyData\Enums\TransmissionFailure; use Firebed\AadeMyData\Traits\HasFactory; use Firebed\AadeMyData\Xml\InvoicesDocWriter; @@ -91,9 +92,10 @@ public function getTransmissionFailure(): ?int *