Open RickOSM opened 2 years ago
I'm having the same problem, is there already any update on this?
No update? We are stuck, we tried many times to get this working.
Dankzij hulp van jeroen een oplossing gekregen. Dit werkt nu voor ons:
Shiporderitem was het probleem.
/* @var \BolCom\RetailerApi\Model\ProcessStatus\ProcessStatus $processStatus / $processStatus = $messageBus->dispatch(\BolCom\RetailerApi\Model\Order\Command\ShipOrderItems::with([ \BolCom\RetailerApi\Model\Order\Command\ShipOrderItem::fromArray([ 'orderItemId' => \BolCom\RetailerApi\Model\Order\OrderItemId::fromString("$artikelid")->toString(), ]), ], "$artikelid",null, \BolCom\RetailerApi\Model\Transport\TransportInstruction::fromArray([ 'transporterCode' => "$shipper", 'trackAndTrace' => "$tt" ]) ),$land);
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: