protected function factoryDecorator(Order $order, $data = []) { if (array_key_exists('cancellationReason', $data)) { $order->getShipping()->setCancellationReason($data['cancellationReason']); } return parent::factoryDecorator($order, $data); }
protected function factoryDecorator(Order $order, $data = []) { if (array_key_exists('number', $data)) { $order->getShipping()->getInvoice()->setNumber($data['number'])->setLine($data['line'])->setAccessKey($data['key'])->setIssueDate($data['issueDate']); } return parent::factoryDecorator($order, $data); }
protected function factoryDecorator(Order $order, $data = []) { if (array_key_exists('deliveryDate', $data)) { $order->getShipping()->getTransport()->setDeliveryDate($data['deliveryDate']); } return parent::factoryDecorator($order, $data); }
protected function factoryDecorator(Order $order, $data = []) { if (array_key_exists('carrier', $data)) { $order->getShipping()->getTransport()->setCarrier($data['carrier'])->setTrackingNumber($data['trackingNumber'])->setShipDate($data['deliveredCarrierDate'])->setEstimatedDeliveryDate($data['estimatedDelivery']); } return parent::factoryDecorator($order, $data); }