Class SintegraService
- Namespace
- JJMasterData.Brasil.Services
- Assembly
- JJMasterData.Brasil.dll
public class SintegraService : IReceitaFederalService, ICepService
- Inheritance
-
SintegraService
- Implements
- Inherited Members
Constructors
SintegraService(HttpClient, ICepService, IOptions<SintegraSettings>)
public SintegraService(HttpClient httpClient, ICepService cepService, IOptions<SintegraSettings> options)
Parameters
httpClient
HttpClientcepService
ICepServiceoptions
IOptions<SintegraSettings>
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)