-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
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
Labels
No labels