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
public class RetConsGTIN : XMLBase, IXmlSerializable
Fields
GTINField
Declaration
string GTINField
Field Value
Type | Description |
---|---|
System.String |
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
public List<string> CEST { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
CStat
Código do status da resposta. Se não tiver erro, será retornado: “9490 – Consulta realizada com sucesso“
Declaration
public int CStat { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DhResp
Data e hora da resposta
Declaration
public DateTimeOffset DhResp { get; set; }
Property Value
Type | Description |
---|---|
System.DateTimeOffset |
DhRespField
Data e hora da resposta (Obs: Utilize a propriedade DhResp para atribuir o valor)
Declaration
public string DhRespField { get; set; }
Property Value
Type | Description |
---|---|
System.String |
GTIN
Código GTIN consultado
Declaration
public string GTIN { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NCM
Código do NCM, cadastrado pelo “Dono da Marca” na GS1, para o GTIN consultado
Declaration
public string NCM { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TpGTIN
Tipos possíveis: 8, 12, 13, 14
Declaration
public TipoCodigoGTIN TpGTIN { get; set; }
Property Value
Type | Description |
---|---|
TipoCodigoGTIN |
VerAplic
Versão da aplicação que atendeu a requisição
Declaration
public string VerAplic { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Versao
Versão do schema XML
Declaration
public string Versao { get; set; }
Property Value
Type | Description |
---|---|
System.String |
XMotivo
Descrição do status da resposta
Declaration
public string XMotivo { get; set; }
Property Value
Type | Description |
---|---|
System.String |
XProd
Descrição do Produto, cadastrada pelo “Dono da Marca” na GS1, para o GTIN consultado
Declaration
public string XProd { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
LoadFromFile(String)
Deserializar o XML retConsGTIN no objeto RetConsGTIN.
Declaration
public RetConsGTIN LoadFromFile(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.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 |
---|---|---|
System.String | xml | string do XML retConsGTIN |
Returns
Type | Description |
---|---|
RetConsGTIN | Objeto do RetConsGTIN |