PgmeiService class

Serviço: PGMEI (Programa Gerador do DAS para o MEI)

Serviço para geração e consulta de DAS (Documento de Arrecadação do Simples Nacional) para contribuintes Microempreendedores Individuais (MEI).

Este serviço permite:

  • GERARDASPDF21: Gerar DAS com PDF completo
  • GERARDASCODBARRA22: Gerar DAS apenas com código de barras
  • ATUBENEFICIO23: Atualizar informações de benefícios
  • DIVIDAATIVA24: Consultar dívida ativa do MEI

Documentação oficial: .cursor/rules/pgmei.mdc

Exemplo de uso:

final pgmeiService = PgmeiService(apiClient);

// Gerar DAS com PDF
final response = await pgmeiService.gerarDas(
  cnpj: '12345678000190',
  periodoApuracao: '202403',
);
if (response.sucesso) {
  final pdf = response.dasGerados?.first.pdf;
  print('PDF Base64: $pdf');
}

Constructors

PgmeiService(ApiClient _apiClient)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

atualizarBeneficio({String? cnpj, required int anoCalendario, required List<InfoBeneficio> beneficios, String? contratanteNumero, String? autorPedidoDadosNumero}) Future<AtualizarBeneficioResponse>
ATUBENEFICIO23 - Atualizar Benefício
atualizarBeneficioPeriodoUnico({String? cnpj, required int anoCalendario, required String periodoApuracao, required bool indicadorBeneficio, String? contratanteNumero, String? autorPedidoDadosNumero}) Future<AtualizarBeneficioResponse>
Wrapper simplificado para atualizar benefício com período único
consultarDividaAtiva({String? cnpj, required String anoCalendario, String? contratanteNumero, String? autorPedidoDadosNumero}) Future<ConsultarDividaAtivaResponse>
DIVIDAATIVA24 - Consultar Dívida Ativa
gerarDas({String? cnpj, required String periodoApuracao, String? dataConsolidacao, String? contratanteNumero, String? autorPedidoDadosNumero}) Future<PgmeiGerarDasResponse>
GERARDASPDF21 - Gerar DAS com PDF completo
gerarDasCodigoBarras({String? cnpj, required String periodoApuracao, String? dataConsolidacao, String? contratanteNumero, String? autorPedidoDadosNumero}) Future<GerarDasCodigoBarrasResponse>
GERARDASCODBARRA22 - Gerar DAS apenas com código de barras
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited