Eduardokum\LaravelBoleto\Boleto\Banco\Hsbc::getCampoLivre PHP Method

getCampoLivre() protected method

Método para gerar o código da posição de 20 a 44
protected getCampoLivre ( ) : string
return string
    protected function getCampoLivre()
    {
        if ($this->campoLivre) {
            return $this->campoLivre;
        }
        $ag = Util::numberFormatGeral($this->getAgencia(), 4);
        $cc = Util::numberFormatGeral($this->getConta(), 6);
        $agCc = $ag . $cc . ($this->getContaDv() ? $this->getContaDv() : Util::modulo11($ag . $cc));
        return $this->campoLivre = $this->getNossoNumero() . $agCc . '00' . '1';
        // Codigo do aplicativo
    }