Table of Contents

Class OmieServiceDetail

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

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

ServiceCode long

Omie's internal service identifier (nCodServico).

Code string

Business code (cCodigo).

Description string

Service description.

UnitPrice decimal

Registered unit price.

Lc116Code string

LC 116 service code.

MunicipalServiceCode string

Service code within the municipality.

TaxClassification string

Tax classification of the service.

Properties

Code

Business code (cCodigo).

public string? Code { get; init; }

Property Value

string

Description

Service description.

public string? Description { get; init; }

Property Value

string

FullDescription

Descrição Detalhada do Serviço (descricao.cDescrCompleta).

public string? FullDescription { get; init; }

Property Value

string

Lc116Code

LC 116 service code.

public string? Lc116Code { get; init; }

Property Value

string

MunicipalServiceCode

Service code within the municipality.

public string? MunicipalServiceCode { get; init; }

Property Value

string

NbsCode

NBS code (nIdNBS) — on the OS item it is cNbs.

public string? NbsCode { get; init; }

Property Value

string

ServiceCode

Omie's internal service identifier (nCodServico).

public long ServiceCode { get; init; }

Property Value

long

TaxClassification

Tax classification of the service.

public string? TaxClassification { get; init; }

Property Value

string

TaxationType

Tipo de Tributação dos Serviços (cIdTrib) — on the OS item it is cTribServ.

public string? TaxationType { get; init; }

Property Value

string

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

ConsultServiceTaxes

UnitPrice

Registered unit price.

public decimal UnitPrice { get; init; }

Property Value

decimal