javascript icon indicating copy to clipboard operation
javascript copied to clipboard

Feat: Add bank validations

Open mateusbw opened this issue 5 years ago • 4 comments

As requested on #171, this PR adds validation to the following banks:

Banco do Brasil, Santander, CEF, Bradesco, Itau, Real, HSBC, Citibank

The validations goes according to this provided documentation http://177.153.6.25/ercompany.com.br/boleto/laravel-boleto-master/manuais/Regras%20Validacao%20Conta%20Corrente%20VI_EPS.pdf

mateusbw avatar May 18 '21 02:05 mateusbw

Hello @mateusbw . We are very happy with your first contribution to our library! I gonna review your code as soon as I have time available.

Thanks!

hyanmandian avatar May 19 '21 14:05 hyanmandian

Nice job doing code review @diasbruno ! Hey @mateusbw can you check @diasbruno suggestions?

hyanmandian avatar Oct 25 '21 15:10 hyanmandian

Thanks for the review @diasbruno!! @hyanmandian sure, i'll do that!!

mateusbw avatar Oct 25 '21 15:10 mateusbw

Glad to help!

Also, and this is the big one,...In OOP, we only instantiate object of classes if we are encapsulating data and providing behavior. Since the only method isValid is used and all the data it uses are external to the object, maybe providing just the function isValid can simplify things.

diasbruno avatar Oct 25 '21 16:10 diasbruno