DotNet.CodigosBancos is a .Net library that helps you to get brazilian's offset codes .
Version 1.0.2:
- Upgrade to .NET 6
Use the package manager to install.
Install-Package DotNetCodigosBancos -Version 1.0.2
services.<ChooseYours><IHttpClientWrapper, HttpClientWrapper>();
services.<ChooseYours><ICodigosBanco, CodigoBanco>();
var bancosByNome = GetBancosByNome("itau");
// bancosByNome.BancoArray[0].Codigo -> 341
// bancosByNome.BancoArray[0].Nome -> Itaú Unibanco S.A.
// bancosByNome.BancoArray[0].Site -> www.itau.com.br
var bancos = GetBancos();
// It returns all banks.
var bancosByCodigo = GetBancoByCodigo(654);
// bancosByCodigo.BancoArray[0].Codigo -> 654
// bancosByCodigo.BancoArray[0].Nome -> Banco A.J.Renner S.A.
// bancosByCodigo.BancoArray[0].Site -> www.bancorenner.com.br
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.