Markind.Siat 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Markind.Siat --version 0.2.0
NuGet\Install-Package Markind.Siat -Version 0.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Markind.Siat" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Markind.Siat --version 0.2.0
#r "nuget: Markind.Siat, 0.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Markind.Siat as a Cake Addin
#addin nuget:?package=Markind.Siat&version=0.2.0

// Install Markind.Siat as a Cake Tool
#tool nuget:?package=Markind.Siat&version=0.2.0

Library to consume SIAT services

This library contains clients and messages for https://pilotosiatservicios.impuestos.gob.bo.

Usage

using Markind.Siat;
using Markind.Siat.Utils;
using Markind.Siat.Generated.FacturacionCodigos;

var dto = new solicitudCuis
{
    codigoAmbiente = (int) CodigoAmbiente.Pruebas,
    codigoPuntoVenta= 1,
    codigoSistema = "<codigo sistema>",
    nit = 4870903018,
    codigoSucursal = 0,
    codigoModalidad = (int) CodigoModalidad.Electronica
};

var token = "token from https://pilotosiat.impuestos.gob.bo/facturacionv2/secure/Token/GestorToken.xhtml";
var codigos = new ServicioFacturacionCodigosClient(token, "https://pilotosiatservicios.impuestos.gob.bo/v2/FacturacionCodigos");
Console.WriteLine(codigos.verificarComunicacion().ToJson()));
Console.WriteLine(codigos.cuis(dto).ToJson()));

Advanced usage

using Markind.Siat;
using Markind.Siat.Utils;
using Markind.Siat.Generated.FacturacionSincronizacion;

var dto = new solicitudSincronizacion
{
    codigoAmbiente = (int) CodigoAmbiente.Produccion,
    codigoSistema = "<codigo sistema>",
    nit = 487090318,
    cuis = "<cuis>",
    codigoSucursal = 1,
    codigoPuntoVenta= null,
};

var service = new ServicioFacturacionSincronizacionClient("<token>", "https://pilotosiatservicios.impuestos.gob.bo/v2/FacturacionSincronizacion");
service.DefaultSolicitudSincronizacion = dto; // sets the default message.

Console.WriteLine(service.sincronizarFechaHora().fechaHora); // So you can execute requests without building the message, it wil take the DefaultSolicitudSincronizacion instead.
Console.WriteLine(service.sincronizarActividades().listaActividades.ToJson());
// Or partially override the DefaultSolicitudSincronizacion
Console.WriteLine(service.sincronizarActividades(new(){ codigoSucursal = 2 }).listaActividades.ToJson()); // It stills uses DefaultSolicitudSincronizacion but overrides codigoSucursal = 2  // is in it great? (:

Available clients:

  • ServicioFacturacionCodigosClient
  • ServicioServicioFacturacionElectronicaClient
  • ServicioServicioFacturacionComputarizadaClient
  • ServicioFacturacionOperacionesClient
  • ServicioFacturacionSincronizacionClient
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.16.0 255 3/3/2023
0.15.1 213 2/27/2023
0.15.0 228 2/9/2023
0.14.0 246 1/31/2023
0.13.0 274 1/30/2023
0.12.0 277 1/13/2023
0.11.0 304 1/10/2023
0.10.0 308 12/27/2022
0.9.0 277 12/27/2022
0.8.0 418 9/29/2022
0.7.0 362 9/28/2022
0.6.0 781 9/26/2022
0.5.0 492 9/13/2022
0.4.0 405 9/9/2022
0.3.0 388 9/7/2022
0.2.1 406 9/7/2022
0.2.0 414 9/2/2022
0.1.2 415 9/2/2022
0.1.1 367 9/1/2022
0.1.0 392 8/27/2022
0.0.1 382 8/26/2022
0.0.0 377 8/26/2022