/*
 * Copyright (C) 2025 ctecinf.com.br
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
 * @author Cássio Conceição
 * @since 04/05/2025
 * @version 2505
 * @see http://ctecinf.com.br/
 *
 */

package br.inf.portalfiscal.nfe;

/**
 * Tipo Pedido de Consulta da Situação Atual da Nota Fiscal Eletrônica
 */
public class TConsSitNFe extends SimpleXML {

    @SimpleXML.Name("tpAmb")
    protected String tpAmb;

    @SimpleXML.Name("xServ")
    protected String xServ;

    @SimpleXML.Name("chNFe")
    protected String chNFe;

    public TConsSitNFe() {
        super("consSitNFe", "versao", "xmlns=http://www.portalfiscal.inf.br/nfe");
    }

    public final String getVersao() {
        return this.getAttribute("versao");
    }

    public final void setVersao(String versao) {
        this.setAttribute("versao", versao);
    }

    /**
     * Identificação do Ambiente:<br>
     * 1 - Produção<br>
     * 2 - Homologação
     *
     * @return String
     */
    public final String getTpAmb() {
        return this.tpAmb;
    }

    /**
     * Identificação do Ambiente:<br>
     * 1 - Produção<br>
     * 2 - Homologação
     *
     * @param tpAmb
     */
    public final void setTpAmb(String tpAmb) {
        this.tpAmb = tpAmb;
    }

    /**
     * Serviço Solicitado
     *
     * @return String
     */
    public final String getXServ() {
        return this.xServ;
    }

    /**
     * Serviço Solicitado
     *
     * @param xServ
     */
    public final void setXServ(String xServ) {
        this.xServ = xServ;
    }

    /**
     * Chaves de acesso da NF-e, compostas por: UF do emitente, AAMM da emissão da NFe, CNPJ do emitente, modelo, série e número da NF-e e código numérico + DV.
     *
     * @return String
     */
    public final String getChNFe() {
        return this.chNFe;
    }

    /**
     * Chaves de acesso da NF-e, compostas por: UF do emitente, AAMM da emissão da NFe, CNPJ do emitente, modelo, série e número da NF-e e código numérico + DV.
     *
     * @param chNFe
     */
    public final void setChNFe(String chNFe) {
        this.chNFe = chNFe;
    }

}