getMerchant()->getAddress(); $buyerAddress = $orderShop->getInvoiceAddress(); $document = $this->documentUtils->createDocument([ 'type' => Document::TYPE_INVOICE, 'title' => '', 'status' => 1, 'order_shops' => [$orderShop], 'merchant_address' => $merchantAddress, 'buyer_address' => $buyerAddress, 'created_by' => $orderShop->getUser() ]); return $document; } }