node-boleto icon indicating copy to clipboard operation
node-boleto copied to clipboard

No error handling for required parameters for boleto generation

Open theiostream opened this issue 8 years ago • 1 comments

There are some node-boleto parameters that:

  • Are required and generated by default: data_vencimento.
  • Are optional and generated by default: data_emissao, local_de_pagamento.
  • Are optional and blank by default: instrucoes, pagador, cedente_cnpj, cedente, numero_documento.

These parameters require proper documentation.

  • Are required and don't error appropriately if not supplied: agencia, valor, carteira, codigo_cedente, nosso_numero.

These parameters require proper error handling.

theiostream avatar Jan 20 '17 20:01 theiostream

Additionally, passing {} or [] as an option will not throw the appropriate error.

theiostream avatar Jan 20 '17 20:01 theiostream