Table of Contents

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

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>