Skip to content

Commit

Permalink
Added XML content in invoice response
Browse files Browse the repository at this point in the history
  • Loading branch information
dalrankov committed Jul 20, 2023
1 parent 43bfcf5 commit c906815
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions InvoiceService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public async Task<CreateInvoiceResult> CreateInvoiceAsync(
return new CreateInvoiceResult
{
IsSuccessful = false,
EnvelopedRequestXmlText = envelopedRequestXmlText,
ErrorMessage = responseBodyElement["env:Fault"]!["faultstring"]!.InnerText,
InvoiceNumber = request.Invoice.Number,
Iic = iicHashText,
Expand All @@ -176,6 +177,7 @@ public async Task<CreateInvoiceResult> CreateInvoiceAsync(
return new CreateInvoiceResult
{
IsSuccessful = true,
EnvelopedRequestXmlText = envelopedRequestXmlText,
Fic = responseBodyElement["RegisterInvoiceResponse"]!["FIC"]!.InnerText,
VerificationUrl =
$"{UriProvider.GetInvoiceVerificationUri(_settings.Environment)}ic/#/verify?{queryString}",
Expand Down
1 change: 1 addition & 0 deletions Models/CreateInvoiceResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c906815

Please sign in to comment.