Table of Contents

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 HttpClient
cepService ICepService
options 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

bool

IsHttps

public bool IsHttps { get; set; }

Property Value

bool

Methods

SearchCepAsync(string)

public Task<CepResult> SearchCepAsync(string cep)

Parameters

cep string

Returns

Task<CepResult>

SearchCnpjAsync(string)

public Task<CnpjResult> SearchCnpjAsync(string cnpj)

Parameters

cnpj string

Returns

Task<CnpjResult>

SearchCpfAsync(string, DateTime)

public Task<CpfResult> SearchCpfAsync(string cpf, DateTime birthDate)

Parameters

cpf string
birthDate DateTime

Returns

Task<CpfResult>