forked from tijsverkoyen/bpost
-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
Hi,
I've created a package that is insured, and it's been sent off correctly to bpost.
When I now poll the bpost api (using bpost->fetchOrder), it claims the box has the option "insured".
However, this fails (Bpost\Order\Box\National.php:241):
$className = '\\Bpost\\BpostApiClient\\Bpost\\Order\\Box\\Option\\' . ucfirst($optionData->getName());
if (!method_exists($className, 'createFromXML')) {
throw new BpostXmlInvalidItemException();
}
This throws the exception that $optionData->getName() returns 'insured', and there is no such class. I do see a class called 'Insurance'. Should this one be renamed?
Metadata
Metadata
Assignees
Labels
No labels