Class OmieServiceInfo
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
ServiceCodelongOmie's internal service identifier (
nCodServico).CodestringBusiness code (
cCodigo).DescriptionstringService description.
UnitPricedecimalRegistered unit price.
Properties
Code
Business code (cCodigo).
public string Code { get; init; }
Property Value
Description
Service description.
public string? Description { get; init; }
Property Value
ServiceCode
Omie's internal service identifier (nCodServico).
public long ServiceCode { get; init; }
Property Value
UnitPrice
Registered unit price.
public decimal UnitPrice { get; init; }