Skip to main content

sunat_cpe_dart 1.0.1 copy "sunat_cpe_dart: ^1.0.1" to clipboard
sunat_cpe_dart: ^1.0.1 copied to clipboard

Umbrella package and intelligent CPE router for Peruvian Electronic Invoicing (SUNAT Direct SOL + 9 OSE/PSE adapters) in pure Dart.

example/main.dart

import 'package:sunat_cpe_dart/sunat_cpe_dart.dart';

void main() {
  final router = SunatCpeRouter.fromDescriptors(
    primaryDescriptor: NubefactDescriptor(
      NubefactConfig(
        routeUri: Uri.parse('https://api.nubefact.com/api/v1/demo'),
        apiToken: 'DEMO_TOKEN',
      ),
    ),
    routeDescriptorsByDocumentType: {
      CpeDocumentType.guiaRemisionRemitente: DirectSunatDescriptor(
        SunatDirectConfig.beta(),
      ),
    },
  );

  print(
    'Router initialized: ${router.providerId}, '
    'GRE target: ${router.resolveProviderForDocumentType(CpeDocumentType.guiaRemisionRemitente).providerId}',
  );
}
0
likes
160
points
675
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Umbrella package and intelligent CPE router for Peruvian Electronic Invoicing (SUNAT Direct SOL + 9 OSE/PSE adapters) in pure Dart.

Repository (GitHub)
View/report issues

Topics

#sunat #cpe #facturacion-electronica #ose #peru

License

MIT (license)

Dependencies

sunat_cpe_bizlinks, sunat_cpe_cavali, sunat_cpe_core, sunat_cpe_digiflow, sunat_cpe_direct, sunat_cpe_efact, sunat_cpe_facturaloperu, sunat_cpe_mifact, sunat_cpe_nubefact, sunat_cpe_sovos, sunat_cpe_tci

More

Packages that depend on sunat_cpe_dart