Skip to content

Commit

Permalink
Update Insured.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-driesmans authored Jan 11, 2024
1 parent 46f9db9 commit 27a4e74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Bpost/Order/Box/Option/Insured.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ public function toXML(DOMDocument $document, $prefix = 'common')
*/
public static function createFromXML(SimpleXMLElement $xml)
{
$insuranceDetail = $xml->children('common', true);

// $insuranceDetail = $xml->children('common', true);
$insuranceDetail = $xml->children('http://schema.post.be/shm/deepintegration/v3/common');

$type = $insuranceDetail->getName();
$value = $insuranceDetail->attributes()->value !== null ? (int) $insuranceDetail->attributes()->value : null;

Expand Down

0 comments on commit 27a4e74

Please sign in to comment.