NubeFactDotNet 2.0.0
dotnet add package NubeFactDotNet --version 2.0.0
NuGet\Install-Package NubeFactDotNet -Version 2.0.0
<PackageReference Include="NubeFactDotNet" Version="2.0.0" />
paket add NubeFactDotNet --version 2.0.0
#r "nuget: NubeFactDotNet, 2.0.0"
// 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 | Versions 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. |
-
net5.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
- Added support for error responses
- Proper return types for requests