Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No error handling for required parameters for boleto generation #13

Open
theiostream opened this issue Jan 20, 2017 · 1 comment
Open

Comments

@theiostream
Copy link
Contributor

theiostream commented Jan 20, 2017

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant