Skip to content

Insurance doesn't fully work? #3

@Lambik

Description

@Lambik

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions