Skip to content

Call to undefined method BolCom\RetailerApi\Model\Order\OrderItemId::toArray() #47

@RickOSM

Description

@RickOSM

We are having problems with the shipment updates to Bol. Since the v4 update this isn't working properly anymore. At first we found out we had to update the ShipOrderItem to the ShipOrderItems version while this gave an error that the Handler was not found anymore for this command.

At the moment we are stuck with the following error message:
Call to undefined method BolCom\RetailerApi\Model\Order\OrderItemId::toArray()

It looks like this method is just not defined, is this correct or are we missing out on something

We use the following code:

/** @var \BolCom\RetailerApi\Model\ProcessStatus\ProcessStatus $processStatus */
        $processStatus = $this->messageBus->dispatch(ShipOrderItems::with(
            [OrderItemId::fromString($orderline->external_reference_id)],
            "{$orderline->order->external_reference_id}:{$orderline->external_reference_id}",
            null,
            $this->getTransportInstruction($orderline->shippingMethod, $orderline->barcode) // returning \BolCom\RetailerApi\Model\Transport\TransportInstruction
        ));

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