Class HubDevService
- Namespace
- JJMasterData.Brasil.Services
- Assembly
- JJMasterData.Brasil.dll
public class HubDevService : IReceitaFederalService, ICepService
- Inheritance
-
HubDevService
- Implements
- Inherited Members
Constructors
HubDevService(HttpClient, IOptions<HubDevSettings>)
public HubDevService(HttpClient httpClient, IOptions<HubDevSettings> options)
Parameters
httpClient
HttpClientoptions
IOptions<HubDevSettings>
Properties
IgnoreDb
Ignora o banco local forçando uma conexão com a Receita Federal para recuperar os dados atualizados.
public bool IgnoreDb { get; set; }
Property Value
IsHttps
public bool IsHttps { get; set; }
Property Value
Methods
SearchCepAsync(string)
public Task<CepResult> SearchCepAsync(string cep)
Parameters
cep
string
Returns
SearchCnpjAsync(string)
public Task<CnpjResult> SearchCnpjAsync(string cnpj)
Parameters
cnpj
string
Returns
SearchCpfAsync(string, DateTime)
public Task<CpfResult> SearchCpfAsync(string cpf, DateTime birthDate)