LibreDteDotNet.RestRequest
1.1.1
dotnet add package LibreDteDotNet.RestRequest --version 1.1.1
NuGet\Install-Package LibreDteDotNet.RestRequest -Version 1.1.1
<PackageReference Include="LibreDteDotNet.RestRequest" Version="1.1.1" />
paket add LibreDteDotNet.RestRequest --version 1.1.1
#r "nuget: LibreDteDotNet.RestRequest, 1.1.1"
// Install LibreDteDotNet.RestRequest as a Cake Addin #addin nuget:?package=LibreDteDotNet.RestRequest&version=1.1.1 // Install LibreDteDotNet.RestRequest as a Cake Tool #tool nuget:?package=LibreDteDotNet.RestRequest&version=1.1.1
LibreDteDotNet.RestRequest
This solution tries to show how to access the information published by the Servicio de Impuestos Internos through REST services. The services are packaged in "Library Class" and can be accessed through Dependency Injection.
It should be noted that this repository has no relationship with the government entity, only for educational purposes.
๐ย Details
Framework .Net 6.0 |
Autofac 7.0.0 |
Autofac.Extensions.DependencyInjection 8.0.0 |
Security.Cryptography.Xml 7.0.1 |
โ ย Requirements
- Framework .Net >= 5.0.
- Autofac Framework.
๐ RoadMap
- Add Feature: "Libro DTE emitidos/recibidos" Consulta de DTE en el SII
- Add: Consulta Emitidos.
- Add: Consulta recibidos.
- Add: Exporta a CSV.
- Add Function: "Solicitar folios CAF"
๐ย Usage
This class is accessed via dependency injection:
IHost host = Host.CreateDefaultBuilder()
.RestRequestBuild() // This is important!
.ConfigureServices(
(c, s) => {
// your config
}
)
.Build();
Function : GetLibroResumen
var resumencompras = await restRequest.LibroService.GetLibroResumen(
tkn, // token
"99000111", // rut company
"4", // dv company
"2023-03", // period
TipoOperacion.Emitidos
);
Function : GetLibroDetalle
var detalleventas = await restRequest.LibroService.GetLibroDetalle(
tkn,
"99000111", // rut company
"4", // dv company
"2023-03", // period
TipoDoc.FacturaAfectaElectronica, // 33-34-61
TipoOperacion.Recibidos
);
๐ซย Have a question? Found a Bug?
Feel free to file a new issue with a respective title and description on the LibreDteDotNet.RestRequest/issues repository.
โค๏ธย Community and Contributions
I think that Knowledge Doesnโt Belong to Just Any One Person, and I always intend to share my knowledge with other developers, a voluntary monetary contribution or contribute ideas and/or comments to improve these tools would be appreciated.
๐ย License
All my repository content is released under the terms of the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Autofac (>= 7.0.0)
- Autofac.Extensions.DependencyInjection (>= 8.0.0)
- Enums.NET (>= 4.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Http (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|