public function save(Source $invoiceSource, $entryId, $token)
    {
        $now = $this->sqlNow();
        $record = $this->getByInvoiceSource($invoiceSource, false);
        if ($record === null) {
            $result = $this->insert($invoiceSource, $entryId, $token, $now);
        } else {
            $result = $this->update($record, $entryId, $token, $now);
        }
        return $result;
    }