Class OmieServiceInvoiceStatus
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
NumberstringNumber of the authorized NFS-e (
nNfse). Empty until the city hall authorizes it.RpsStatusstringRPS status (
cStatusRps) — see OmieInvoiceRpsStatus.BatchStatusstringSubmission batch status (
cStatusLote), using the same codes as the RPS.VerificationCodestringNFS-e verification code (
cCodVerif).UrlstringLink to the invoice on the city hall site (
cUrlNfse).MessagestringCity 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
IsCancelled
The RPS was cancelled — no invoice will come out of it.
public bool IsCancelled { get; }
Property Value
IsIssued
The invoice is authorized: it has a number, which the city hall only grants at the end.
public bool IsIssued { get; }
Property Value
IsRejected
The city hall (or the batch) rejected the RPS. Without a registration fix there is no invoice.
public bool IsRejected { get; }
Property Value
Message
City hall/Omie messages about the RPS, concatenated — the reason, when it was rejected.
public string? Message { get; init; }
Property Value
Number
Number of the authorized NFS-e (nNfse). Empty until the city hall authorizes it.
public string? Number { get; init; }
Property Value
RpsStatus
RPS status (cStatusRps) — see OmieInvoiceRpsStatus.
public string? RpsStatus { get; init; }
Property Value
Url
Link to the invoice on the city hall site (cUrlNfse).
public string? Url { get; init; }
Property Value
VerificationCode
NFS-e verification code (cCodVerif).
public string? VerificationCode { get; init; }