Table of Contents

Class OmieServiceInfo

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

A service of the Omie catalog, as ListarCadastroServico returns it.

The two codes exist and are not interchangeable: Code is the business code (cCodigo, e.g. "SRV00016"), the one applications store in their own configuration, while ServiceCode is Omie's internal identifier (nCodServico), the only one accepted when building service order items. Translating one into the other is the reason the whole catalog is read.

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

Constructors

OmieServiceInfo(long, string, string?, decimal)

A service of the Omie catalog, as ListarCadastroServico returns it.

The two codes exist and are not interchangeable: Code is the business code (cCodigo, e.g. "SRV00016"), the one applications store in their own configuration, while ServiceCode is Omie's internal identifier (nCodServico), the only one accepted when building service order items. Translating one into the other is the reason the whole catalog is read.

public OmieServiceInfo(long ServiceCode, string Code, string? Description, decimal UnitPrice)

Parameters

ServiceCode long

Omie's internal service identifier (nCodServico).

Code string

Business code (cCodigo).

Description string

Service description.

UnitPrice decimal

Registered unit price.

Properties

Code

Business code (cCodigo).

public string Code { get; init; }

Property Value

string

Description

Service description.

public string? Description { get; init; }

Property Value

string

ServiceCode

Omie's internal service identifier (nCodServico).

public long ServiceCode { get; init; }

Property Value

long

UnitPrice

Registered unit price.

public decimal UnitPrice { get; init; }

Property Value

decimal