protected function generateBarcode($value)
    {
        $title = $this->title;

        $value = $title->currency->format($value, 'nomask');
        $barcode = [
            $title->assignment->bank->code,
            $title->getCurrencyCode()->billet,
            '', // Check digit
            $this->dueFactor(),
            BankInterchange\Utils::padNumber($value, 10),
            $this->generateFreeSpace()
        ];
        $barcode[2] = self::checkDigitBarcode(implode('', $barcode));

        return [
            'barcode' => implode('', $barcode),
            'digitable' => self::formatDigitable(...$barcode),
        ];
    }