/** * @return \Generated\Shared\Transfer\OrderTransfer */ protected function getOrderTransferWithRefundedItem() { $orderTransfer = new OrderTransfer(); $itemTransfer = new ItemTransfer(); $itemTransfer->setRefundableAmount(0); $itemTransfer->setIdSalesOrderItem(1); $orderTransfer->addItem($itemTransfer); $itemTransfer = new ItemTransfer(); $itemTransfer->setRefundableAmount(100); $itemTransfer->setIdSalesOrderItem(2); $orderTransfer->addItem($itemTransfer); $expenseTransfer = new ExpenseTransfer(); $expenseTransfer->setRefundableAmount(10); $orderTransfer->addExpense($expenseTransfer); return $orderTransfer; }