Class RetConsGTIN
Classe para serialização e deserialização do XML de consulta centralizada do código GTIN
Implements
Inherited Members
Namespace: Unimake.Business.DFe.Xml.CCG
Assembly: Unimake.Business.DFe.dll
Syntax
[XmlRoot("retConsGTIN", Namespace = "http://www.portalfiscal.inf.br/nfe", IsNullable = false)]
public class RetConsGTIN : XMLBase, IXmlSerializable
Properties
CEST
Código do CEST, cadastrado pelo “Dono da Marca” na´GS1. Normalmente um Produto (definido pelo código do GTIN) está vinculado a somente 1 CEST, mas existem situações pouco frequentes onde um Produto pode estar associado a mais de 1 CEST, conforme a operação.
Declaration
[XmlElement("CEST")]
public List<string> CEST { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> |
CStat
Código do status da resposta. Se não tiver erro, será retornado: “9490 – Consulta realizada com sucesso“
Declaration
[XmlElement("cStat")]
public int CStat { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
DhResp
Data e hora da resposta
Declaration
[XmlIgnore]
public DateTimeOffset DhResp { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset |
DhRespField
Data e hora da resposta (Obs: Utilize a propriedade DhResp para atribuir o valor)
Declaration
[XmlElement("dhResp")]
public string DhRespField { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
GTIN
Código GTIN consultado
Declaration
[XmlElement("GTIN")]
public string GTIN { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NCM
Código do NCM, cadastrado pelo “Dono da Marca” na GS1, para o GTIN consultado
Declaration
[XmlElement("NCM")]
public string NCM { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TpGTIN
Tipos possíveis: 8, 12, 13, 14
Declaration
[XmlElement("tpGTIN")]
public TipoCodigoGTIN TpGTIN { get; set; }
Property Value
| Type | Description |
|---|---|
| TipoCodigoGTIN |
VerAplic
Versão da aplicação que atendeu a requisição
Declaration
[XmlElement("verAplic")]
public string VerAplic { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Versao
Versão do schema XML
Declaration
[XmlAttribute(AttributeName = "versao", DataType = "token")]
public string Versao { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
XMotivo
Descrição do status da resposta
Declaration
[XmlElement("xMotivo")]
public string XMotivo { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
XProd
Descrição do Produto, cadastrada pelo “Dono da Marca” na GS1, para o GTIN consultado
Declaration
[XmlElement("xProd")]
public string XProd { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
LoadFromFile(string)
Deserializar o XML retConsGTIN no objeto RetConsGTIN.
Declaration
public RetConsGTIN LoadFromFile(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | Localização do arquivo XML retConsGTIN |
Returns
| Type | Description |
|---|---|
| RetConsGTIN | Objeto do RetConsGTIN |
LoadFromXML(string)
Deserializar o XML retConsGTIN no objeto RetConsGTIN.
Declaration
public RetConsGTIN LoadFromXML(string xml)
Parameters
| Type | Name | Description |
|---|---|---|
| string | xml | string do XML retConsGTIN |
Returns
| Type | Description |
|---|---|
| RetConsGTIN | Objeto do RetConsGTIN |