/** * updates a position within an invoice * * @param \Rokde\Gsales\Api\Types\InvoiceType|int $invoice * @param Position $position * * @return \Rokde\Gsales\Api\Types\InvoiceType */ public function updatePosition($invoice, Position $position) { $invoiceId = Type::getIdentifier($invoice); $positionId = $position->getId(); return $this->call('updateInvoicePosition', ['invoiceid' => $invoiceId, 'positionid' => $positionId, 'data' => $position]); }