NubeFactDotNet 2.0.0

dotnet add package NubeFactDotNet --version 2.0.0                
NuGet\Install-Package NubeFactDotNet -Version 2.0.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="NubeFactDotNet" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NubeFactDotNet --version 2.0.0                
#r "nuget: NubeFactDotNet, 2.0.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 NubeFactDotNet as a Cake Addin
#addin nuget:?package=NubeFactDotNet&version=2.0.0

// Install NubeFactDotNet as a Cake Tool
#tool nuget:?package=NubeFactDotNet&version=2.0.0                

NubeFactDotNet

Un API Wrapper en C# para los servicios de NubeFact que permite: generar, consultar y cancelar boletas/facturas de forma simple y rápida.

Instalación

Install-Package NubeFactDotNet

Documentación

Para empezar a utilizar esta librería, simplemente inicializa un NubeFactClient como se aprecia a continuación:<br>

using NubeFactDotNet;
NubeFactClient client = new("tu-url-va-aqui", "tu-token-va-aqui");

Posteriormente, puedes acceder a cualquiera de las funciones disponibles, las cuales cuentan con versiones tanto sincrónicas como asincrónicas. Por ejemplo:<br>

ConsultInvoiceResponse response = client.ConsultInvoice(TipoDeComprobante.Factura, "FFF1", 1);
ConsultInvoiceResponse asyncResponse = await client.ConsultInvoiceAsync(TipoDeComprobante.Factura, "FFF1", 1);

Las funciones disponibles son las siguientes:

GenerateInvoiceResponse GenerateInvoice(Comprobante invoice, TipoDeComprobante tipoDeComprobante, string serie, int numero)
async Task<GenerateInvoiceResponse> GenerateInvoiceAsync(Comprobante invoice, TipoDeComprobante tipoDeComprobante,
ConsultInvoiceResponse ConsultInvoice(TipoDeComprobante tipoDeComprobante, string serie, int numero)
async Task<ConsultInvoiceResponse> ConsultInvoiceAsync(TipoDeComprobante tipoDeComprobante, string serie, int numero)
CancelInvoiceResponse CancelInvoice(TipoDeComprobante tipoDeComprobante, string serie, int numero,
async Task<CancelInvoiceResponse> CancelInvoiceAsync(TipoDeComprobante tipoDeComprobante, string serie, int numero,
ConsultCancellationResponse ConsultCancellation(TipoDeComprobante tipoDeComprobante, string serie, int numero)
async Task<ConsultCancellationResponse> ConsultCancellationAsync(TipoDeComprobante tipoDeComprobante, string serie, int numero)
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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
2.0.0 87 12/18/2024
1.0.1.1 346 12/15/2021
1.0.0 280 12/14/2021

- Added support for error responses
- Proper return types for requests