wip: finalize implementation

This commit is contained in:
Björn Fromme
2025-10-18 11:46:12 +02:00
parent 434c4d0a11
commit 49b5ccf308
3 changed files with 7 additions and 3 deletions
@@ -17,6 +17,7 @@ use Symfony\Component\DomCrawler\Crawler;
* <satz typ="BUCHUNG" />
* <buchung>möglich|erfolgt</buchung>
* <vorgang>321530</vorgang>
* <hinweis>...</hinweis>
* <preise>
* <preis position="1" art="BEF" unterart="BUS" bezeichnung="..." ... />
* </preise>
@@ -34,6 +35,7 @@ class BookingResponseParser extends AbstractParser
$status = $node->filterXPath('//buchung')->text();
$transactionNumber = $this->getStringOrNullValue($node->filterXPath('//vorgang'));
$totalPrice = $this->getFloatOrNullValue($node->filterXPath('//gesamtpreis'));
$message = $this->getStringOrNullValue($node->filterXPath('//hinweis'));
$priceItems = $this->parsePriceItems($node);
$paymentTerms = $this->parsePaymentTerms($node);
@@ -43,7 +45,8 @@ class BookingResponseParser extends AbstractParser
transactionNumber: $transactionNumber,
priceItems: $priceItems,
totalPrice: $totalPrice,
paymentTerms: $paymentTerms
paymentTerms: $paymentTerms,
message: $message,
);
}