diff --git a/InvoiceService.cs b/InvoiceService.cs index e6fed64..db068bc 100644 --- a/InvoiceService.cs +++ b/InvoiceService.cs @@ -152,6 +152,7 @@ public async Task CreateInvoiceAsync( return new CreateInvoiceResult { IsSuccessful = false, + EnvelopedRequestXmlText = envelopedRequestXmlText, ErrorMessage = responseBodyElement["env:Fault"]!["faultstring"]!.InnerText, InvoiceNumber = request.Invoice.Number, Iic = iicHashText, @@ -176,6 +177,7 @@ public async Task CreateInvoiceAsync( return new CreateInvoiceResult { IsSuccessful = true, + EnvelopedRequestXmlText = envelopedRequestXmlText, Fic = responseBodyElement["RegisterInvoiceResponse"]!["FIC"]!.InnerText, VerificationUrl = $"{UriProvider.GetInvoiceVerificationUri(_settings.Environment)}ic/#/verify?{queryString}", diff --git a/Models/CreateInvoiceResult.cs b/Models/CreateInvoiceResult.cs index 5f472e1..e8b6708 100644 --- a/Models/CreateInvoiceResult.cs +++ b/Models/CreateInvoiceResult.cs @@ -3,6 +3,7 @@ public sealed class CreateInvoiceResult { public bool IsSuccessful { get; set; } + public string EnvelopedRequestXmlText { get; set; } public string InvoiceNumber { get; set; } public string Iic { get; set; } public string? Fic { get; set; } diff --git a/README.md b/README.md index 5b5d6b3..b742d41 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ Registarski podaci softvera: - Proizvođač/Održavaoc: `NOVI ALGORITAM DOO` - Naziv: `OpenMicroFiscal` -- Verzija: `1.0.4` -- Identifikator: `zn566nz586` +- Verzija: `1.0.5` +- Identifikator: `ab747pq901` > ❗Napomena: Kompanija NOVI ALGORITAM DOO ne upravlja direktno nijednom pokrenutom instancom ovog softvera nigdje na > internetu