Table of Contents

Class OmieServiceInvoiceStatus

Namespace
NuvTools.Payment.Omie.ApiClient.DTOs.Responses
Assembly
NuvTools.Payment.Omie.ApiClient.dll

The service invoice (NFS-e) of a service order and the progress of the RPS it came from. Issuing is a process, not an instant: Omie transmits the RPS and the city hall authorizes it later, so there is a window in which the invoice exists as a request and has no number yet.

public record OmieServiceInvoiceStatus : IEquatable<OmieServiceInvoiceStatus>
Inheritance
OmieServiceInvoiceStatus
Implements
Inherited Members

Constructors

OmieServiceInvoiceStatus(string?, string?, string?, string?, string?, string?)

The service invoice (NFS-e) of a service order and the progress of the RPS it came from. Issuing is a process, not an instant: Omie transmits the RPS and the city hall authorizes it later, so there is a window in which the invoice exists as a request and has no number yet.

public OmieServiceInvoiceStatus(string? Number, string? RpsStatus, string? BatchStatus, string? VerificationCode, string? Url, string? Message)

Parameters

Number string

Number of the authorized NFS-e (nNfse). Empty until the city hall authorizes it.

RpsStatus string

RPS status (cStatusRps) — see OmieInvoiceRpsStatus.

BatchStatus string

Submission batch status (cStatusLote), using the same codes as the RPS.

VerificationCode string

NFS-e verification code (cCodVerif).

Url string

Link to the invoice on the city hall site (cUrlNfse).

Message string

City hall/Omie messages about the RPS, concatenated — the reason, when it was rejected.

Properties

BatchStatus

Submission batch status (cStatusLote), using the same codes as the RPS.

public string? BatchStatus { get; init; }

Property Value

string

IsCancelled

The RPS was cancelled — no invoice will come out of it.

public bool IsCancelled { get; }

Property Value

bool

IsIssued

The invoice is authorized: it has a number, which the city hall only grants at the end.

public bool IsIssued { get; }

Property Value

bool

IsRejected

The city hall (or the batch) rejected the RPS. Without a registration fix there is no invoice.

public bool IsRejected { get; }

Property Value

bool

Message

City hall/Omie messages about the RPS, concatenated — the reason, when it was rejected.

public string? Message { get; init; }

Property Value

string

Number

Number of the authorized NFS-e (nNfse). Empty until the city hall authorizes it.

public string? Number { get; init; }

Property Value

string

RpsStatus

RPS status (cStatusRps) — see OmieInvoiceRpsStatus.

public string? RpsStatus { get; init; }

Property Value

string

Url

Link to the invoice on the city hall site (cUrlNfse).

public string? Url { get; init; }

Property Value

string

VerificationCode

NFS-e verification code (cCodVerif).

public string? VerificationCode { get; init; }

Property Value

string