Class OmieServiceDetail
The full registration of a service (ConsultarCadastroServico). The listing does not carry these fields and
including a service order requires them on every item: LC 116 service code, municipal service code and tax
classification. None of them can be invented — when they are missing from the Omie registration, the caller
should stop and say which service to fix.
Besides the positional fields, the record carries the rest of what the registration screen holds (tipo de
tributação, NBS, detailed description, ISS retention and the whole impostos block) so a service
order item can be built as the registration defines it — see IncludeOSTaxes.FromServiceRegistration.
public record OmieServiceDetail : IEquatable<OmieServiceDetail>
- Inheritance
-
OmieServiceDetail
- Implements
- Inherited Members
Constructors
OmieServiceDetail(long, string?, string?, decimal, string?, string?, string?)
The full registration of a service (ConsultarCadastroServico). The listing does not carry these fields and
including a service order requires them on every item: LC 116 service code, municipal service code and tax
classification. None of them can be invented — when they are missing from the Omie registration, the caller
should stop and say which service to fix.
Besides the positional fields, the record carries the rest of what the registration screen holds (tipo de
tributação, NBS, detailed description, ISS retention and the whole impostos block) so a service
order item can be built as the registration defines it — see IncludeOSTaxes.FromServiceRegistration.
public OmieServiceDetail(long ServiceCode, string? Code, string? Description, decimal UnitPrice, string? Lc116Code, string? MunicipalServiceCode, string? TaxClassification)
Parameters
ServiceCodelongOmie's internal service identifier (
nCodServico).CodestringBusiness code (
cCodigo).DescriptionstringService description.
UnitPricedecimalRegistered unit price.
Lc116CodestringLC 116 service code.
MunicipalServiceCodestringService code within the municipality.
TaxClassificationstringTax classification of the service.
Properties
Code
Business code (cCodigo).
public string? Code { get; init; }
Property Value
Description
Service description.
public string? Description { get; init; }
Property Value
FullDescription
Descrição Detalhada do Serviço (descricao.cDescrCompleta).
public string? FullDescription { get; init; }
Property Value
Lc116Code
LC 116 service code.
public string? Lc116Code { get; init; }
Property Value
MunicipalServiceCode
Service code within the municipality.
public string? MunicipalServiceCode { get; init; }
Property Value
NbsCode
NBS code (nIdNBS) — on the OS item it is cNbs.
public string? NbsCode { get; init; }
Property Value
ServiceCode
Omie's internal service identifier (nCodServico).
public long ServiceCode { get; init; }
Property Value
TaxClassification
Tax classification of the service.
public string? TaxClassification { get; init; }
Property Value
TaxationType
Tipo de Tributação dos Serviços (cIdTrib) — on the OS item it is cTribServ.
public string? TaxationType { get; init; }
Property Value
Taxes
The registration's tax block (impostos): ISS, retentions and rates of PIS/COFINS/CSLL/IR/INSS and the
Reforma Tributária fields. Null only when Omie returned no tax block at all.
public ConsultServiceTaxes? Taxes { get; init; }
Property Value
UnitPrice
Registered unit price.
public decimal UnitPrice { get; init; }